codestar-notifications:ListTargets

List

codestar-notifications:ListTargets is a List access-level action in the codestar-notifications service. Grants permission to list the notification rule targets for an AWS account

Resource types

This action does not support resource-level permissions; use "Resource": "*" in your policy.

Condition keys

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

aws:RequestTag/${TagKey} String

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

aws:TagKeys ArrayOfString

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

Example IAM policy

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

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

Related actions in codestar-notifications

View all codestar-notifications actions →