Actions, resources, and condition keys for Amazon EventBridge
Amazon EventBridge (service prefix:
events
) provides the following service-specific resources, actions, and condition context
keys for use in IAM permission policies.
References:
-
Learn how to configure this service .
-
View a list of the API operations available for this service .
-
Learn how to secure this service and its resources by using IAM permission policies.
Topics
Actions defined by Amazon EventBridge
You can specify the following actions in the
Action
element of an IAM policy statement. Use policies to grant permissions to perform
an operation in AWS. When you use an action in a policy, you usually allow or
deny access to the API operation or CLI command with the same name. However,
in some cases, a single action controls access to more than one operation. Alternatively,
some operations require several different actions.
The
Resource types
column indicates whether each action supports resource-level permissions. If
there is no value for this column, you must specify all resources ("*") in the
Resource
element of your policy statement. If the column includes a resource type, then
you can specify an ARN of that type in a statement with that action. Required
resources are indicated in the table with an asterisk (*). If you specify a resource-level
permission ARN in a statement using this action, then it must be of this type.
Some actions support multiple resource types. If the resource type is optional (not
indicated as required), then you can choose to use one but not the other.
For details about the columns in the following table, see The actions table .
Actions | Description | Access level | Resource types (*required) | Condition keys | Dependent actions |
---|---|---|---|---|---|
ActivateEventSource | Activates a partner event source that has been deactivated. Once activated, your matching event bus will start receiving events from the event source. | Write | |||
CreateEventBus | Creates a new event bus within your account. This can be a custom event bus which you can use to receive events from your own custom applications and services, or it can be a partner event bus which can be matched to a partner event source. | Write | |||
CreatePartnerEventSource | Called by an AWS partner to create a partner event source. | Write | |||
DeactivateEventSource | Called by an AWS partner to create a partner event source. | Write | |||
DeleteEventBus | Deletes the specified custom event bus or partner event bus. All rules associated with this event bus are also deleted. You can't delete your account's default event bus. | Write | |||
DeletePartnerEventSource | Called by an AWS partner to delete a partner event source. | Write | |||
DeleteRule | Deletes a rule. You must remove all targets from a rule using RemoveTargets before you can delete the rule. | Write | |||
DescribeEventBus | Displays the external AWS accounts that are permitted to write events to your account using your account's event bus, and the associated policy. | Read | |||
DescribeEventSource | Describes the details of the specified partner event source that is shared with your account. | Read | |||
DescribePartnerEventSource | Called by an AWS partner describe the details of the specified partner event source that they have created. | Read | |||
DescribeRule | Describes the details of the specified rule. | Read | |||
DisableRule | Disables a rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression. | Write | |||
EnableRule | Enables a rule. If the rule does not exist, the operation fails. | Write | |||
ListEventBuses | Lists all the event buses in your account, including the default event bus, custom event buses, and partner event buses. | List | |||
ListEventSources | Lists the event sources shared with this account. | List | |||
ListPartnerEventSourceAccounts | Called by an AWS partner to display the AWS account ID that the specified partner event source is associated with. | List | |||
ListPartnerEventSources | Called by an AWS partner to list all the partner event sources that they have created. | List | |||
ListRuleNamesByTarget | Lists the names of the rules that the given target is put to. | List | |||
ListRules | Lists the Amazon EventBridge rules in your account. | List | |||
ListTagsForResource | This action lists tags for an Amazon EventBridge resource. | List | |||
ListTargetsByRule | Lists of targets assigned to the rule. | List | |||
PutEvents | Sends custom events to Amazon EventBridge so that they can be matched to rules. | Write | |||
PutPartnerEvents | Sends custom events to Amazon EventBridge so that they can be matched to rules. | Write | |||
PutPermission | Running PutPermission permits the specified AWS account to put events to your account's default event bus. | Write | |||
PutRule | Creates or updates a rule. Rules are enabled by default, or based on value of the State parameter. | Tagging | |||
PutTargets | Adds target(s) to a rule. Targets are the resources that can be invoked when a rule is triggered. | Write | |||
RemovePermission | Revokes the permission of another AWS account to be able to put events to your default event bus. | Write | |||
RemoveTargets | Removes target(s) from a rule so that when the rule is triggered, those targets will no longer be invoked. | Write | |||
TagResource | This action tags an Amazon EventBridge resource. | Tagging | |||
TestEventPattern | Tests whether an event pattern matches the provided event. | Read | |||
UntagResource | This action removes a tag from an Amazon EventBridge resource. | Tagging | |||
Resource types defined by Amazon EventBridge
The following resource types are defined by this service and can be used in the
Resource
element of IAM permission policy statements. Each action in the
Actions table
identifies the resource types that can be specified with that action. A resource
type can also define which condition keys you can include in a policy. These
keys are displayed in the last column of the table. For details about the columns
in the following table, see
The resource types table
.
Resource types | ARN | Condition keys |
---|---|---|
event-source |
arn:$
{
Partition}:events:$
{
Region}::event-source/$
{
EventSourceName}
|
|
event-bus |
arn:$
{
Partition}:events:$
{
Region}:$
{
Account}:event-bus/$
{
EventBusName}
|
|
rule |
arn:$
{
Partition}:events:$
{
Region}:$
{
Account}:rule/[$
{
EventBusName}/]$
{
RuleName}
|
Condition keys for Amazon EventBridge
Amazon EventBridge defines the following condition keys that can be used in the
Condition
element of an IAM policy. You can use these keys to further refine the conditions
under which the policy statement applies. For details about the columns in the
following table, see
The condition keys table
.
To view the global condition keys that are available to all services, see Available global condition keys .
Condition keys | Description | Type |
---|---|---|
aws:RequestTag/${TagKey} | Filters actions based on the allowed set of values for each of the tags | String |
aws:ResourceTag/${TagKey} | Filters actions based on tag-value associated with the resource | String |
aws:TagKeys | Filters actions based on the presence of mandatory tags in the request | String |
events:TargetArn | The ARN of a target that can be put to a rule. | ARN |
events:detail-type | Matches the literal string of the detail-type filed of the event. | String |
events:detail.eventTypeCode | Matches the literal string for the detail.eventTypeCode field of the event. | String |
events:detail.service | Matches the literal string for the detail.service field of the event. | String |
events:detail.userIdentity.principalId | Matches the literal string for the detail.useridentity.principalid field of the event. | String |
events:source | The AWS service or AWS partner event source that generated the event. Matches the literal string of the source field of the event. | String |