Untitled

mail@pastecode.io avatar
unknown
json5
2 years ago
1.1 kB
1
Indexable
Never
    "DataIntegrationQueuePolicy": {
        "Type": "AWS::SQS::QueuePolicy",
        "Properties": {
          "PolicyDocument": {
            "Version": "2008-10-17",
            "Id": "__default_policy_ID",
            "Statement": [
              {
                "Effect": "Allow",
                "Principal": {
                  "Service": [
                    "events.amazonaws.com",
                    "sqs.amazonaws.com",
                    "sns.amazonaws.com"
                  ]
                },
                "Action": [
                  "sqs:SendMessage",
                  "sqs:ReceiveMessage",
                  "sqs:DeleteMessage",
                  "sqs:ChangeMessageVisibility",
                  "kms:*"
                ],
                "Resource": {
                  "Fn::GetAtt": [
                    "DataIntegrationQueue",
                    "Arn"
                  ]
                }
              }
            ]
          },
          "Queues": [
            {
              "Ref": "DataIntegrationQueue"
            }
          ]
        }
      },