Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • https://docs.aws.amazon.com/cli/latest/reference/sns/set-topic-attributes.html

  • Code Block
    {
       "Version":"2008-10-17",
       "Id":"__default_policy_ID",
       "Statement":[
          {
             "Sid":"__default_statement_ID",
             "Effect":"Allow",
             "Principal":{
                "AWS":"*"
             },
             "Action":[
                "SNS:GetTopicAttributes",
                "SNS:SetTopicAttributes",
                "SNS:AddPermission",
                "SNS:RemovePermission",
                "SNS:DeleteTopic",
                "SNS:Subscribe",
                "SNS:ListSubscriptionsByTopic",
                "SNS:Publish",
                "SNS:Receive"
             ],
             "Resource":"[SNS_TOPIC_ARN]",
             "Condition":{
                "StringEquals":{
                   "AWS:SourceOwner":"[Account_ID]"
                }
             }
          }
       ]
    }