Resources: MyTopic86869434: Type: AWS::SNS::Topic Metadata: aws:cdk:path: CdkmokuStack/MyTopic/Resource MyQueueE6CA6235: Type: AWS::SQS::Queue UpdateReplacePolicy: Delete DeletionPolicy: Delete Metadata: aws:cdk:path: CdkmokuStack/MyQueue/Resource MyQueuePolicy6BBEDDAC: Type: AWS::SQS::QueuePolicy Properties: PolicyDocument: Statement: - Action: sqs:SendMessage Condition: ArnEquals: aws:SourceArn: Ref: MyTopic86869434 Effect: Allow Principal: Service: sns.amazonaws.com Resource: Fn::GetAtt: - MyQueueE6CA6235 - Arn Version: "2012-10-17" Queues: - Ref: MyQueueE6CA6235 Metadata: aws:cdk:path: CdkmokuStack/MyQueue/Policy/Resource MyQueueCdkmokuStackMyTopicEA174B526D0F9924: Type: AWS::SNS::Subscription Properties: Endpoint: Fn::GetAtt: - MyQueueE6CA6235 - Arn Protocol: sqs TopicArn: Ref: MyTopic86869434 DependsOn: - MyQueuePolicy6BBEDDAC Metadata: aws:cdk:path: CdkmokuStack/MyQueue/CdkmokuStackMyTopicEA174B52/Resource CDKMetadata: Type: AWS::CDK::Metadata Properties: Analytics: v2:deflate64:H4sIAAAAAAAA/02MSwvCMBCEf4v3dvvwcfMg1WvRtniVNo2wtiYxm1gk9L9LGhBZ2J35htkcsnwD6aqdKGb9EI/YgatNy4aonejmSBC4RipkUXEXQdS2I6ZRGZTC038/R/QicBfLLfdZEMs+yxHZ5weDnWc PKk7SarY0Cil6DK+O0pTcJDtIId8mUJ6aQmp+UCq+ck0oxf69hizJIPWzehBirK0w+ORQhfsF92YCaeAAAAA= Metadata: aws:cdk:path: CdkmokuStack/CDKMetadata/Default Condition: CDKMetadataAvailable Conditions: CDKMetadataAvailable: Fn::Or: - Fn::Or: - Fn::Equals: - Ref: AWS::Region - af-south-1 - Fn::Equals: - Ref: AWS::Region - ap-east-1 - Fn::Equals: - Ref: AWS::Region - ap-northeast-1 - Fn::Equals: - Ref: AWS::Region - ap-northeast-2 - Fn::Equals: - Ref: AWS::Region - ap-south-1 - Fn::Equals: - Ref: AWS::Region - ap-southeast-1 - Fn::Equals: - Ref: AWS::Region - ap-southeast-2 - Fn::Equals: - Ref: AWS::Region - ca-central-1 - Fn::Equals: - Ref: AWS::Region - cn-north-1 - Fn::Equals: - Ref: AWS::Region - cn-northwest-1 - Fn::Or: - Fn::Equals: - Ref: AWS::Region - eu-central-1 - Fn::Equals: - Ref: AWS::Region - eu-north-1 - Fn::Equals: - Ref: AWS::Region - eu-south-1 - Fn::Equals: - Ref: AWS::Region - eu-west-1 - Fn::Equals: - Ref: AWS::Region - eu-west-2 - Fn::Equals: - Ref: AWS::Region - eu-west-3 - Fn::Equals: - Ref: AWS::Region - il-central-1 - Fn::Equals: - Ref: AWS::Region - me-central-1 - Fn::Equals: - Ref: AWS::Region - me-south-1 - Fn::Equals: - Ref: AWS::Region - sa-east-1 - Fn::Or: - Fn::Equals: - Ref: AWS::Region - us-east-1 - Fn::Equals: - Ref: AWS::Region - us-east-2 - Fn::Equals: - Ref: AWS::Region - us-west-1 - Fn::Equals: - Ref: AWS::Region - us-west-2 Parameters: BootstrapVersion: Type: AWS::SSM::Parameter::Value<String> Default: /cdk-bootstrap/hnb659fds/version Description: Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip] Rules: CheckBootstrapVersion: Assertions: - Assert: Fn::Not: - Fn::Contains: - - "1" - "2" - "3" - "4" - "5" - Ref: BootstrapVersion AssertDescription: CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI. { "Resources": { "MyTopic86869434": { "Type": "AWS::SNS::Topic", "Metadata": { "aws:cdk:path": "CdkmokuStack/MyTopic/Resource" } }, "MyQueueE6CA6235": { "Type": "AWS::SQS::Queue", "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { "aws:cdk:path": "CdkmokuStack/MyQueue/Resource" } }, "MyQueuePolicy6BBEDDAC": { "Type": "AWS::SQS::QueuePolicy", "Properties": { "PolicyDocument": { "Statement": [ { "Action": "sqs:SendMessage", "Condition": { "ArnEquals": { "aws:SourceArn": { "Ref": "MyTopic86869434" } } }, "Effect": "Allow", "Principal": { "Service": "sns.amazonaws.com" }, "Resource": { "Fn::GetAtt": [ "MyQueueE6CA6235", "Arn" ] } } ], "Version": "2012-10-17" }, "Queues": [ { "Ref": "MyQueueE6CA6235" } ] }, "Metadata": { "aws:cdk:path": "CdkmokuStack/MyQueue/Policy/Resource" } }, "MyQueueCdkmokuStackMyTopicEA174B526D0F9924": { "Type": "AWS::SNS::Subscription", "Properties": { "Endpoint": { "Fn::GetAtt": [ "MyQueueE6CA6235", "Arn" ] }, "Protocol": "sqs", "TopicArn": { "Ref": "MyTopic86869434" } }, "DependsOn": [ "MyQueuePolicy6BBEDDAC" ], "Metadata": { "aws:cdk:path": "CdkmokuStack/MyQueue/CdkmokuStackMyTopicEA174B52/Resource" } }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { "Analytics": "v2:deflate64:H4sIAAAAAAAA/02MSwvCMBCEf4v3dvvwcfMg1WvRtniVNo2wtiYxm1gk9L9LGhBZ2J35htkcsnwD6aqdKGb9EI/YgatNy4aonejmSBC4RipkUXEXQdS2I6ZRGZTC038/R/QicBfLLfdZEMs+yxHZ5weDnW cPKk7SarY0Cil6DK+O0pTcJDtIId8mUJ6aQmp+UCq+ck0oxf69hizJIPWzehBirK0w+ORQhfsF92YCaeAAAAA=" }, "Metadata": { "aws:cdk:path": "CdkmokuStack/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } }, "Conditions": { "CDKMetadataAvailable": { "Fn::Or": [ { "Fn::Or": [ { "Fn::Equals": [ { "Ref": "AWS::Region" }, "af-south-1" ] }, { "Fn::Equals": [ { "Ref": "AWS::Region" }, "ap-east-1" ] }, { "Fn::Equals": [ { "Ref": "AWS::Region" }, "ap-northeast-1" ] }, { "Fn::Equals": [ { "Ref": "AWS::Region" }, "ap-northeast-2" ] }, { "Fn::Equals": [ { "Ref": "AWS::Region" }, "ap-south-1" ] }, { "Fn::Equals": [ { "Ref": "AWS::Region" }, "ap-southeast-1" ] }, { "Fn::Equals": [ { "Ref": "AWS::Region" }, "ap-southeast-2" ] }, { "Fn::Equals": [ { "Ref": "AWS::Region" }, "ca-central-1" ] }, { "Fn::Equals": [ { "Ref": "AWS::Region" }, "cn-north-1" ] }, { "Fn::Equals": [ { "Ref": "AWS::Region" }, "cn-northwest-1" ] } ] }, { "Fn::Or": [ { "Fn::Equals": [ { "Ref": "AWS::Region" }, "eu-central-1" ] }, { "Fn::Equals": [ { "Ref": "AWS::Region" }, "eu-north-1" ] ⚫ YAML ⚫ 150行 ⚫ 4600文字 ⚫ JSON ⚫ 330行 ⚫ 6200文字