codestar-notifications:Unsubscribe

Write

codestar-notifications:Unsubscribe is a Write access-level action in the codestar-notifications service. Grants permission to remove an association between a notification rule and an Amazon SNS topic

Resource types

ARNs that codestar-notifications:Unsubscribe can be scoped to in an IAM policy.

arn:${Partition}:codestar-notifications:${Region}:${Account}:notificationrule/${NotificationRuleId} required
notificationrule

Condition keys

Keys you can use in the Condition block of a policy that grants codestar-notifications:Unsubscribe.

aws:RequestTag/${TagKey} String

Filters actions based on the presence of tag key-value pairs in the request

aws:ResourceTag/${TagKey} String

Filters actions based on tag key-value pairs attached to the resource

aws:TagKeys ArrayOfString

Filters actions based on the presence of tag keys in the request

codestar-notifications:NotificationsForResource ARN

Filters access based on the ARN of the resource for which notifications are configured

Example IAM policy

A minimal policy that allows codestar-notifications:Unsubscribe. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowCodestarnotificationsUnsubscribe",
      "Effect": "Allow",
      "Action": "codestar-notifications:Unsubscribe",
      "Resource": "*"
    }
  ]
}

Related actions in codestar-notifications

View all codestar-notifications actions →