events:PutTargets

Write

events:PutTargets is a Write access-level action in the events service. Grants permission to add targets to a rule

Resource types

ARNs that events:PutTargets can be scoped to in an IAM policy.

arn:${Partition}:events:${Region}:${Account}:rule/${EventBusName}/${RuleName}
rule-on-custom-event-bus
arn:${Partition}:events:${Region}:${Account}:rule/${RuleName}
rule-on-default-event-bus

Condition keys

Keys you can use in the Condition block of a policy that grants events:PutTargets.

events:ManagedBy String

Filters access by AWS services. If a rule is created by an AWS service on your behalf, the value is the principal name of the service that created the rule

events:TargetArn ArrayOfARN

Filters access by the ARN of a target that can be put to a rule to PutTargets actions. TargetARN doesn't include DeadLetterConfigArn

events:creatorAccount String

Filters access by the account the rule was created in to rule actions

aws:ResourceTag/${TagKey} String

Filters access by tag-value associated with the resource to event bus and rule actions

Example IAM policy

A minimal policy that allows events:PutTargets. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowEventsPutTargets",
      "Effect": "Allow",
      "Action": "events:PutTargets",
      "Resource": "*"
    }
  ]
}

Related actions in events

View all events actions →