Skip to content

Commit eb106b2

Browse files
ssennettauaws-scripting-guy
authored andcommitted
Include sns-subscription (#34)
* Include sns-subscription Adding JSON Snippet for SNS Subscription * Include sns-subscription Adding YAML Snippet for SNS Subscription
1 parent c6ef5af commit eb106b2

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

snippets/snippets.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,12 @@
689689
"description": "",
690690
"scope": "source.cloudformation"
691691
},
692+
"sns-subscription": {
693+
"prefix": "sns-subscription",
694+
"body": "\r\n${$1:sns-subscription}: {\r\n \"Type\": \"AWS::SNS::Subscription\",\r\n \"Properties\": {\r\n \"TopicArn\": \"arn:aws:sns:[Region]:[AccountID]:[TopicName]\",\r\n \"Protocol\": \"http | https | email | email-json | sms | sqs | application | lambda\",\r\n \"Endpoint\": \"\",\r\n \"Region\": \"\",\r\n \"DeliveryPolicy\": \"\",\r\n \"FilterPolicy\": \"\",\r\n \"RawMessageDelivery\": \"\"\r\n }\r\n}\r\n\r\n",
695+
"description": "",
696+
"scope": "source.cloudformation"
697+
},
692698
"sns-topic": {
693699
"prefix": "sns-topic",
694700
"body": "\r\n\"${1:snsTopic}\": {\r\n \"Type\": \"AWS::SNS::Topic\",\r\n \"Properties\": {\r\n \"DisplayName\": \"${2}\",\r\n \"Subscription\": [ ${3} ],\r\n \"TopicName\": \"${4}\"\r\n }\r\n}\r\n",
@@ -761,4 +767,4 @@
761767
"description": "",
762768
"scope": "json"
763769
}
764-
}
770+
}

snippets/yaml-snippets.json

+17
Original file line numberDiff line numberDiff line change
@@ -1298,6 +1298,23 @@
12981298
"description": "",
12991299
"scope": "source.cloudformation"
13001300
},
1301+
"sns-subscription": {
1302+
"prefix": "sns-subscription",
1303+
"body": [
1304+
"${1:sns-subscription}:",
1305+
" Type: AWS::SNS::Subscription",
1306+
" Properties:",
1307+
" TopicArn: 'arn:aws:sns:[Region]:[AccountID]:[TopicName]'",
1308+
" Protocol: http | https | email | email-json | sms | sqs | application | lambda",
1309+
" Endpoint: ",
1310+
" Region: ",
1311+
" DeliveryPolicy: ",
1312+
" FilterPolicy: ",
1313+
" RawMessageDelivery: "
1314+
],
1315+
"description": "",
1316+
"scope": "source.cloudformation"
1317+
},
13011318
"sns-topic": {
13021319
"prefix": "sns-topic",
13031320
"body": [

0 commit comments

Comments
 (0)