diff --git a/snippets/snippets.json b/snippets/snippets.json index 434cef0..faf3a69 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -689,6 +689,12 @@ "description": "", "scope": "source.cloudformation" }, + "sns-subscription": { + "prefix": "sns-subscription", + "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", + "description": "", + "scope": "source.cloudformation" + }, "sns-topic": { "prefix": "sns-topic", "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 @@ "description": "", "scope": "json" } -} \ No newline at end of file +} diff --git a/snippets/yaml-snippets.json b/snippets/yaml-snippets.json index 1a76c72..3c10a8c 100644 --- a/snippets/yaml-snippets.json +++ b/snippets/yaml-snippets.json @@ -1298,6 +1298,23 @@ "description": "", "scope": "source.cloudformation" }, + "sns-subscription": { + "prefix": "sns-subscription", + "body": [ + "${1:sns-subscription}:", + " Type: AWS::SNS::Subscription", + " Properties:", + " TopicArn: 'arn:aws:sns:[Region]:[AccountID]:[TopicName]'", + " Protocol: http | https | email | email-json | sms | sqs | application | lambda", + " Endpoint: ", + " Region: ", + " DeliveryPolicy: ", + " FilterPolicy: ", + " RawMessageDelivery: " + ], + "description": "", + "scope": "source.cloudformation" + }, "sns-topic": { "prefix": "sns-topic", "body": [