AnimeshShaw commited on
Commit
ef22f83
·
1 Parent(s): bcf7833

Add human_reference_dataset/aws-cloudformation-templates/SNS/

Browse files
human_reference_dataset/aws-cloudformation-templates/SNS/SNSTopic.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "AWSTemplateFormatVersion": "2010-09-09",
3
+ "Description": "Best Practice SNS Topic",
4
+ "Parameters": {
5
+ "SubscriptionEndPoint": {
6
+ "Description": "The endpoint that receives notifications from the Amazon SNS topic. The endpoint value depends on the protocol that you specify. This could be a URL or ARN",
7
+ "Type": "String"
8
+ },
9
+ "SubscriptionProtocol": {
10
+ "Description": "The subscription's protocol",
11
+ "Type": "String",
12
+ "AllowedValues": [
13
+ "http",
14
+ "https",
15
+ "email",
16
+ "email-json",
17
+ "sms",
18
+ "sqs",
19
+ "application",
20
+ "lambda"
21
+ ],
22
+ "Default": "sqs"
23
+ }
24
+ },
25
+ "Mappings": {},
26
+ "Conditions": {},
27
+ "Resources": {
28
+ "SNSTopic": {
29
+ "Type": "AWS::SNS::Topic",
30
+ "Properties": {}
31
+ },
32
+ "SNSSubscription": {
33
+ "Type": "AWS::SNS::Subscription",
34
+ "Properties": {
35
+ "Endpoint": {
36
+ "Ref": "SubscriptionEndPoint"
37
+ },
38
+ "Protocol": {
39
+ "Ref": "SubscriptionProtocol"
40
+ },
41
+ "TopicArn": {
42
+ "Ref": "SNSTopic"
43
+ }
44
+ }
45
+ }
46
+ },
47
+ "Outputs": {
48
+ "TopicARN": {
49
+ "Description": "ARN of newly created SNS Topic",
50
+ "Value": {
51
+ "Ref": "SNSTopic"
52
+ }
53
+ },
54
+ "QueueName": {
55
+ "Description": "Name of newly created SNS Topic",
56
+ "Value": {
57
+ "Fn::GetAtt": [
58
+ "SNSTopic",
59
+ "TopicName"
60
+ ]
61
+ }
62
+ }
63
+ }
64
+ }
human_reference_dataset/aws-cloudformation-templates/SNS/SNSTopic.yaml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ AWSTemplateFormatVersion: "2010-09-09"
2
+
3
+ Description: Best Practice SNS Topic
4
+
5
+ Parameters:
6
+ SubscriptionEndPoint:
7
+ Description: The endpoint that receives notifications from the Amazon SNS topic. The endpoint value depends on the protocol that you specify. This could be a URL or ARN
8
+ Type: String
9
+
10
+ SubscriptionProtocol:
11
+ Description: The subscription's protocol
12
+ Type: String
13
+ AllowedValues:
14
+ - http
15
+ - https
16
+ - email
17
+ - email-json
18
+ - sms
19
+ - sqs
20
+ - application
21
+ - lambda
22
+ Default: sqs
23
+
24
+ Mappings: {}
25
+
26
+ Conditions: {}
27
+
28
+ Resources:
29
+ SNSTopic:
30
+ Type: AWS::SNS::Topic
31
+ Properties: {}
32
+
33
+ SNSSubscription:
34
+ Type: AWS::SNS::Subscription
35
+ Properties:
36
+ Endpoint: !Ref SubscriptionEndPoint
37
+ Protocol: !Ref SubscriptionProtocol
38
+ TopicArn: !Ref SNSTopic
39
+
40
+ Outputs:
41
+ TopicARN:
42
+ Description: ARN of newly created SNS Topic
43
+ Value: !Ref SNSTopic
44
+
45
+ QueueName:
46
+ Description: Name of newly created SNS Topic
47
+ Value: !GetAtt SNSTopic.TopicName