Skip to content

Commit e9abc4d

Browse files
author
AWS Scripting Guy
committed
sns and sqs complete snippets
1 parent f564ef0 commit e9abc4d

File tree

1 file changed

+65
-4
lines changed

1 file changed

+65
-4
lines changed

snippets/yaml-snippets.json

Lines changed: 65 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,68 @@
574574
"description": "",
575575
"scope": "source.cloudformation"
576576
},
577+
"sns-topic": {
578+
"prefix": "sns-topic",
579+
"body": [
580+
"${1:snsTopic}:",
581+
" Type: AWS::SNS::Topic",
582+
" Properties:",
583+
" DisplayName: ${2}",
584+
" Subscription: ${3}",
585+
" TopicName: ${4}"
586+
],
587+
"description": "",
588+
"scope": "source.cloudformation"
589+
},
590+
"sns-topicpolicy": {
591+
"prefix": "sns-topicpolicy",
592+
"body": [
593+
"${1:snsTopicPolicy}:",
594+
"Type: AWS::SNS::TopicPolicy",
595+
"Properties:",
596+
" Topics:",
597+
" - ",
598+
" ${2:sns-topic-arn}",
599+
" PolicyDocument: ${3:# A policy document. JSON or YAML}"
600+
],
601+
"description": "",
602+
"scope": "source.cloudformation"
603+
},
604+
"sqs-queuepolicy": {
605+
"prefix": "sqs-queuepolicy",
606+
"body": [
607+
"${1:sqsQueuePolicy}:",
608+
" Type: AWS::SQS::QueuePolicy",
609+
" Properties:",
610+
" Queues:",
611+
" - ",
612+
" ${2:sqs-id}",
613+
" PolicyDocument: ${3:# include in JSON format}"
614+
],
615+
"description": "",
616+
"scope": "source.cloudformation"
617+
},
618+
"sqs-queue": {
619+
"prefix": "sqs-queue",
620+
"body": [
621+
"${1:sqsQueue}:",
622+
" Type: AWS::SQS::Queue",
623+
" Properties:",
624+
" QueueName: ${2}",
625+
" DelaySeconds: ${3}",
626+
" MaximumMessageSize: ${4}",
627+
" MessageRetentionPeriod: ${5}",
628+
" ReceiveMessageWaitTimeSeconds: ${6}",
629+
" RedrivePolicy: ${6}",
630+
" VisibilityTimeout: ${7}",
631+
" FifoQueue: ${8: true | false}",
632+
" Tags:",
633+
" - Key: ${9:keyname}",
634+
" Value: ${10:value}"
635+
],
636+
"description": "",
637+
"scope": "source.cloudformation"
638+
},
577639
"vpc": {
578640
"prefix": "vpc",
579641
"body": [
@@ -628,7 +690,7 @@
628690
" DisableInboundStageTransitions: ${10}"
629691
],
630692
"description": "",
631-
"scope": "json"
693+
"scope": "yaml"
632694
},
633695
"code-pipeline-stage": {
634696
"prefix": "code-pipeline-stage",
@@ -640,7 +702,7 @@
640702
" - ${3:blockers}"
641703
],
642704
"description": "",
643-
"scope": "json"
705+
"scope": "yaml"
644706
},
645707
"code-pipeline-action": {
646708
"prefix": "code-pipeline-action",
@@ -663,7 +725,6 @@
663725
"RunOrder: ${9:1|2|3|4}"
664726
],
665727
"description": "",
666-
"scope": "json"
728+
"scope": "yaml"
667729
}
668-
669730
}

0 commit comments

Comments
 (0)