Event Bridge API
Event Bridge API
Event Bridge API
Amazon EventBridge
Amazon's trademarks and trade dress may not be used in connection with any product or service
that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any
manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are
the property of their respective owners, who may or may not be affiliated with, connected to, or
sponsored by Amazon.
Amazon EventBridge API Reference
Table of Contents
Amazon EventBridge API Reference ............................................................................................... 1
Actions .............................................................................................................................................. 2
ActivateEventSource ..................................................................................................................................... 5
Request Syntax ........................................................................................................................................ 5
Request Parameters ................................................................................................................................ 5
Response Elements ................................................................................................................................. 5
Errors .......................................................................................................................................................... 5
See Also ..................................................................................................................................................... 6
CancelReplay .................................................................................................................................................. 7
Request Syntax ........................................................................................................................................ 7
Request Parameters ................................................................................................................................ 7
Response Syntax ...................................................................................................................................... 7
Response Elements ................................................................................................................................. 7
Errors .......................................................................................................................................................... 8
See Also ..................................................................................................................................................... 9
CreateApiDestination ................................................................................................................................. 10
Request Syntax ...................................................................................................................................... 10
Request Parameters .............................................................................................................................. 10
Response Syntax ................................................................................................................................... 12
Response Elements ............................................................................................................................... 12
Errors ....................................................................................................................................................... 13
See Also .................................................................................................................................................. 13
CreateArchive .............................................................................................................................................. 15
Request Syntax ...................................................................................................................................... 15
Request Parameters .............................................................................................................................. 15
Response Syntax ................................................................................................................................... 17
Response Elements ............................................................................................................................... 17
Errors ....................................................................................................................................................... 18
See Also .................................................................................................................................................. 19
CreateConnection ....................................................................................................................................... 20
Request Syntax ...................................................................................................................................... 20
Request Parameters .............................................................................................................................. 21
Response Syntax ................................................................................................................................... 23
Response Elements ............................................................................................................................... 23
Errors ....................................................................................................................................................... 24
See Also .................................................................................................................................................. 24
CreateEndpoint ........................................................................................................................................... 25
Request Syntax ...................................................................................................................................... 25
Request Parameters .............................................................................................................................. 25
Response Syntax ................................................................................................................................... 27
Response Elements ............................................................................................................................... 28
Errors ....................................................................................................................................................... 29
See Also .................................................................................................................................................. 30
CreateEventBus ........................................................................................................................................... 31
Request Syntax ...................................................................................................................................... 31
Request Parameters .............................................................................................................................. 31
Response Syntax ................................................................................................................................... 33
Response Elements ............................................................................................................................... 34
Errors ....................................................................................................................................................... 35
See Also .................................................................................................................................................. 36
CreatePartnerEventSource ........................................................................................................................ 37
Request Syntax ...................................................................................................................................... 37
Request Parameters .............................................................................................................................. 38
Response Syntax ................................................................................................................................... 38
Response Elements ............................................................................................................................... 39
Errors ....................................................................................................................................................... 39
See Also .................................................................................................................................................. 40
DeactivateEventSource .............................................................................................................................. 41
Request Syntax ...................................................................................................................................... 41
Request Parameters .............................................................................................................................. 41
Response Elements ............................................................................................................................... 41
Errors ....................................................................................................................................................... 41
See Also .................................................................................................................................................. 42
DeauthorizeConnection ............................................................................................................................. 44
Request Syntax ...................................................................................................................................... 44
Request Parameters .............................................................................................................................. 44
Response Syntax ................................................................................................................................... 44
Response Elements ............................................................................................................................... 45
Errors ....................................................................................................................................................... 46
See Also .................................................................................................................................................. 46
DeleteApiDestination ................................................................................................................................. 47
Request Syntax ...................................................................................................................................... 47
Request Parameters .............................................................................................................................. 47
Response Elements ............................................................................................................................... 47
Errors ....................................................................................................................................................... 47
See Also .................................................................................................................................................. 48
DeleteArchive .............................................................................................................................................. 49
Request Syntax ...................................................................................................................................... 49
Request Parameters .............................................................................................................................. 49
Response Elements ............................................................................................................................... 49
Errors ....................................................................................................................................................... 49
See Also .................................................................................................................................................. 50
DeleteConnection ....................................................................................................................................... 51
Request Syntax ...................................................................................................................................... 51
Request Parameters .............................................................................................................................. 51
Response Syntax ................................................................................................................................... 51
Response Elements ............................................................................................................................... 51
Errors ....................................................................................................................................................... 52
See Also .................................................................................................................................................. 53
DeleteEndpoint ........................................................................................................................................... 54
Request Syntax ...................................................................................................................................... 54
Request Parameters .............................................................................................................................. 54
Response Elements ............................................................................................................................... 54
Errors ....................................................................................................................................................... 54
See Also .................................................................................................................................................. 55
DeleteEventBus ........................................................................................................................................... 56
Request Syntax ...................................................................................................................................... 56
Request Parameters .............................................................................................................................. 56
Response Elements ............................................................................................................................... 56
Errors ....................................................................................................................................................... 56
See Also .................................................................................................................................................. 57
DeletePartnerEventSource ........................................................................................................................ 58
Request Syntax ...................................................................................................................................... 58
Request Parameters .............................................................................................................................. 58
Response Elements ............................................................................................................................... 59
Errors ....................................................................................................................................................... 59
DescribeEventBus ....................................................................................................................................... 87
Request Syntax ...................................................................................................................................... 87
Request Parameters .............................................................................................................................. 87
Response Syntax ................................................................................................................................... 87
Response Elements ............................................................................................................................... 88
Errors ....................................................................................................................................................... 89
Examples ................................................................................................................................................. 90
See Also .................................................................................................................................................. 91
DescribeEventSource .................................................................................................................................. 92
Request Syntax ...................................................................................................................................... 92
Request Parameters .............................................................................................................................. 92
Response Syntax ................................................................................................................................... 92
Response Elements ............................................................................................................................... 93
Errors ....................................................................................................................................................... 94
See Also .................................................................................................................................................. 94
DescribePartnerEventSource .................................................................................................................... 95
Request Syntax ...................................................................................................................................... 95
Request Parameters .............................................................................................................................. 95
Response Syntax ................................................................................................................................... 95
Response Elements ............................................................................................................................... 95
Errors ....................................................................................................................................................... 96
See Also .................................................................................................................................................. 96
DescribeReplay ............................................................................................................................................ 98
Request Syntax ...................................................................................................................................... 98
Request Parameters .............................................................................................................................. 98
Response Syntax ................................................................................................................................... 98
Response Elements ............................................................................................................................... 99
Errors ..................................................................................................................................................... 101
See Also ................................................................................................................................................ 101
DescribeRule .............................................................................................................................................. 103
Request Syntax .................................................................................................................................... 103
Request Parameters ........................................................................................................................... 103
Response Syntax ................................................................................................................................. 104
Response Elements ............................................................................................................................ 104
Errors ..................................................................................................................................................... 106
Examples ............................................................................................................................................... 106
EventBridge was formerly known as Amazon CloudWatch Events. EventBridge expands on the
capabilities of CloudWatch Events, adding support for processing events from software-as-a-
service (SaaS) partner applications and making it easier for you to process events from your own
applications. EventBridge starts with the same set of APIs as CloudWatch Events and adds new
APIs. EventBridge also offers more functionality both in the API and on the console.
Use the following links to get started using the EventBridge API:
Alternatively, you can use one of the AWS SDKs to access EventBridge using an API that is tailored
to your programming language or platform.
Developers in the AWS developer community also provide their own libraries, which you can find at
the following AWS developer centers:
Actions
The following actions are supported:
• ActivateEventSource
• CancelReplay
• CreateApiDestination
• CreateArchive
• CreateConnection
• CreateEndpoint
• CreateEventBus
• CreatePartnerEventSource
• DeactivateEventSource
• DeauthorizeConnection
• DeleteApiDestination
• DeleteArchive
• DeleteConnection
• DeleteEndpoint
• DeleteEventBus
• DeletePartnerEventSource
• DeleteRule
• DescribeApiDestination
• DescribeArchive
• DescribeConnection
• DescribeEndpoint
• DescribeEventBus
• DescribeEventSource
• DescribePartnerEventSource
• DescribeReplay
• DescribeRule
• DisableRule
• EnableRule
• ListApiDestinations
• ListArchives
• ListConnections
• ListEndpoints
• ListEventBuses
• ListEventSources
• ListPartnerEventSourceAccounts
• ListPartnerEventSources
• ListReplays
• ListRuleNamesByTarget
• ListRules
• ListTagsForResource
• ListTargetsByRule
• PutEvents
• PutPartnerEvents
• PutPermission
• PutRule
• PutTargets
• RemovePermission
• RemoveTargets
• StartReplay
• TagResource
• TestEventPattern
• UntagResource
• UpdateApiDestination
• UpdateArchive
• UpdateConnection
• UpdateEndpoint
• UpdateEventBus
ActivateEventSource
Activates a partner event source that has been deactivated. Once activated, your matching event
bus will start receiving events from the event source.
Request Syntax
{
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Name
Type: String
Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CancelReplay
Cancels the specified replay.
Request Syntax
{
"ReplayName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ReplayName
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"ReplayArn": "string",
"State": "string",
"StateReason": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ReplayArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:.+\/[\.\-
_A-Za-z0-9]+$
State
Type: String
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
An error occurred because a replay can be canceled only when the state is Running or Starting.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateApiDestination
Creates an API destination, which is an HTTP invocation endpoint configured as a target for events.
API destinations do not support private destinations, such as interface VPC endpoints.
For more information, see API destinations in the EventBridge User Guide.
Request Syntax
{
"ConnectionArn": "string",
"Description": "string",
"HttpMethod": "string",
"InvocationEndpoint": "string",
"InvocationRateLimitPerSecond": number,
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ConnectionArn
The ARN of the connection to use for the API destination. The destination endpoint must
support the authorization type specified for the connection.
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection
\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
Required: Yes
Description
Type: String
Pattern: .*
Required: No
HttpMethod
The method to use for the request to the HTTP invocation endpoint.
Type: String
Required: Yes
InvocationEndpoint
The URL to the HTTP invocation endpoint for the API destination.
Type: String
Pattern: ^((%[0-9A-Fa-f]{2}|[-()_.!~*';/?:@\x26=+$,A-Za-z0-9])+)
([).!';/?:,])?$
Required: Yes
InvocationRateLimitPerSecond
The maximum number of requests per second to send to the HTTP invocation endpoint.
Type: Integer
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"ApiDestinationArn": "string",
"ApiDestinationState": "string",
"CreationTime": number,
"LastModifiedTime": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ApiDestinationArn
The ARN of the API destination that was created by the request.
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:api-
destination\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
ApiDestinationState
The state of the API destination that was created by the request.
Type: String
A time stamp indicating the time that the API destination was created.
Type: Timestamp
LastModifiedTime
A time stamp indicating the time that the API destination was last modified.
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
The request failed because it attempted to create resource beyond the allowed service quota.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateArchive
Creates an archive of events with the specified settings. When you create an archive, incoming
events might not immediately start being sent to the archive. Allow a short period of time for
changes to take effect. If you do not specify a pattern to filter events sent to the archive, all events
are sent to the archive except replayed events. Replayed events are not sent to an archive.
Note
Archives and schema discovery are not supported for event buses encrypted using a
customer managed key. EventBridge returns an error if:
• You call CreateArchive on an event bus set to use a customer managed key for
encryption.
• You call CreateDiscoverer on an event bus set to use a customer managed key for
encryption.
• You call UpdatedEventBus to set a customer managed key on an event bus with an
archives or schema discovery enabled.
To enable archives or schema discovery on an event bus, choose to use an AWS owned key.
For more information, see Data encryption in EventBridge in the Amazon EventBridge User
Guide.
Request Syntax
{
"ArchiveName": "string",
"Description": "string",
"EventPattern": "string",
"EventSourceArn": "string",
"RetentionDays": number
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ArchiveName
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Description
Type: String
Pattern: .*
Required: No
EventPattern
Type: String
Required: No
EventSourceArn
The ARN of the event bus that sends events to the archive.
Type: String
Required: Yes
RetentionDays
The number of days to retain events for. Default value is 0. If set to 0, events are retained
indefinitely
Type: Integer
Required: No
Response Syntax
{
"ArchiveArn": "string",
"CreationTime": number,
"State": "string",
"StateReason": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ArchiveArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:.+\/.+$
CreationTime
Type: Timestamp
State
Type: String
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
The request failed because it attempted to create resource beyond the allowed service quota.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateConnection
Creates a connection. A connection defines the authorization type and credentials to use for
authorization with an API destination HTTP endpoint.
Request Syntax
{
"AuthorizationType": "string",
"AuthParameters": {
"ApiKeyAuthParameters": {
"ApiKeyName": "string",
"ApiKeyValue": "string"
},
"BasicAuthParameters": {
"Password": "string",
"Username": "string"
},
"InvocationHttpParameters": {
"BodyParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
],
"HeaderParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
],
"QueryStringParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
]
},
"OAuthParameters": {
"AuthorizationEndpoint": "string",
"ClientParameters": {
"ClientID": "string",
"ClientSecret": "string"
},
"HttpMethod": "string",
"OAuthHttpParameters": {
"BodyParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
],
"HeaderParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
],
"QueryStringParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
]
}
}
},
"Description": "string",
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AuthorizationType
Note
OAUTH tokens are refreshed when a 401 or 407 response is returned.
Type: String
Required: Yes
AuthParameters
Required: Yes
Description
Type: String
Pattern: .*
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"ConnectionArn": "string",
"ConnectionState": "string",
"CreationTime": number,
"LastModifiedTime": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ConnectionArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection
\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
ConnectionState
Type: String
A time stamp for the time that the connection was created.
Type: Timestamp
LastModifiedTime
A time stamp for the time that the connection was last updated.
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
The request failed because it attempted to create resource beyond the allowed service quota.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateEndpoint
Creates a global endpoint. Global endpoints improve your application's availability by making it
regional-fault tolerant. To do this, you define a primary and secondary Region with event buses
in each Region. You also create a Amazon Route 53 health check that will tell EventBridge to
route events to the secondary Region when an "unhealthy" state is encountered and events will be
routed back to the primary Region when the health check reports a "healthy" state.
Request Syntax
{
"Description": "string",
"EventBuses": [
{
"EventBusArn": "string"
}
],
"Name": "string",
"ReplicationConfig": {
"State": "string"
},
"RoleArn": "string",
"RoutingConfig": {
"FailoverConfig": {
"Primary": {
"HealthCheck": "string"
},
"Secondary": {
"Route": "string"
}
}
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Description
Type: String
Pattern: .*
Required: No
EventBuses
Important
The names of the event buses must be identical in each Region.
Required: Yes
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
ReplicationConfig
Enable or disable event replication. The default state is ENABLED which means you must supply
a RoleArn. If you don't have a RoleArn or you don't want event replication enabled, set the
state to DISABLED.
Required: No
RoleArn
Type: String
Pattern: ^arn:aws[a-z-]*:iam::\d{12}:role\/[\w+=,.@/-]+$
Required: No
RoutingConfig
Configure the routing policy, including the health check and secondary Region..
Required: Yes
Response Syntax
{
"Arn": "string",
"EventBuses": [
{
"EventBusArn": "string"
}
],
"Name": "string",
"ReplicationConfig": {
"State": "string"
},
"RoleArn": "string",
"RoutingConfig": {
"FailoverConfig": {
"Primary": {
"HealthCheck": "string"
},
"Secondary": {
"Route": "string"
}
}
},
"State": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Arn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:endpoint\/
[/\.\-_A-Za-z0-9]+$
EventBuses
Type: String
Pattern: [\.\-_A-Za-z0-9]+
ReplicationConfig
The ARN of the role used by event replication for this request.
Type: String
Pattern: ^arn:aws[a-z-]*:iam::\d{12}:role\/[\w+=,.@/-]+$
RoutingConfig
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
The request failed because it attempted to create resource beyond the allowed service quota.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
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 custom applications and services, or it can be a partner event bus which
can be matched to a partner event source.
Request Syntax
{
"DeadLetterConfig": {
"Arn": "string"
},
"Description": "string",
"EventSourceName": "string",
"KmsKeyIdentifier": "string",
"Name": "string",
"Tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
DeadLetterConfig
Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue
(DLQ).
For more information, see Using dead-letter queues to process undelivered events in the
EventBridge User Guide.
Required: No
Description
Type: String
Required: No
EventSourceName
If you are creating a partner event bus, this specifies the partner event source that the new
event bus will be matched with.
Type: String
Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}
Required: No
KmsKeyIdentifier
The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to
use a customer managed key to encrypt events on this event bus. The identifier can be the key
Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN.
If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to
encrypt events on the event bus.
For more information, see Managing keys in the AWS Key Management Service Developer Guide.
Note
Archives and schema discovery are not supported for event buses encrypted using a
customer managed key. EventBridge returns an error if:
• You call CreateArchive on an event bus set to use a customer managed key for
encryption.
• You call CreateDiscoverer on an event bus set to use a customer managed key
for encryption.
• You call UpdatedEventBus to set a customer managed key on an event bus with
an archives or schema discovery enabled.
To enable archives or schema discovery on an event bus, choose to use an AWS
owned key. For more information, see Data encryption in EventBridge in the Amazon
EventBridge User Guide.
Type: String
Required: No
Name
Custom event bus names can't contain the / character, but you can use the / character in
partner event bus names. In addition, for partner event buses, the name must exactly match the
name of the partner event source that this event bus is matched to.
You can't use the name default for a custom event bus, as this name is already used for your
account's default event bus.
Type: String
Pattern: [/\.\-_A-Za-z0-9]+
Required: Yes
Tags
Required: No
Response Syntax
"DeadLetterConfig": {
"Arn": "string"
},
"Description": "string",
"EventBusArn": "string",
"KmsKeyIdentifier": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
DeadLetterConfig
Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue
(DLQ).
For more information, see Using dead-letter queues to process undelivered events in the
EventBridge User Guide.
Type: String
Type: String
KmsKeyIdentifier
The identifier of the AWS KMS customer managed key for EventBridge to use to encrypt events
on this event bus, if one has been specified.
For more information, see Data encryption in EventBridge in the Amazon EventBridge User
Guide.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
The request failed because it attempted to create resource beyond the allowed service quota.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreatePartnerEventSource
Called by an SaaS partner to create a partner event source. This operation is not used by AWS
customers.
Each partner event source can be used by one AWS account to create a matching partner event bus
in that AWS account. A SaaS partner must create one partner event source for each AWS account
that wants to receive those event types.
A partner event source creates events based on resources within the SaaS partner's service or
application.
An AWS account that creates a partner event bus that matches the partner event source can use
that event bus to receive events from the partner, and then process them using AWS Events rules
and targets.
partner_name/event_namespace/event_name
• partner_name is determined during partner registration, and identifies the partner to AWS
customers.
• event_namespace is determined by the partner, and is a way for the partner to categorize their
events.
• event_name is determined by the partner, and should uniquely identify an event-generating
resource within the partner system.
The event_name must be unique across all AWS customers. This is because the event source is
a shared resource between the partner and customer accounts, and each partner event source
unique in the partner account.
The combination of event_namespace and event_name should help AWS customers decide whether
to create an event bus to receive these events.
Request Syntax
{
"Account": "string",
"Name": "string"
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Account
The AWS account ID that is permitted to create a matching partner event bus for this partner
event source.
Type: String
Pattern: \d{12}
Required: Yes
Name
The name of the partner event source. This name must be unique and must be in the format
partner_name/event_namespace/event_name . The AWS account that wants to use this
partner event source must create a partner event bus with a name that matches the name of
the partner event source.
Type: String
Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}
Required: Yes
Response Syntax
{
"EventSourceArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
EventSourceArn
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
The request failed because it attempted to create resource beyond the allowed service quota.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeactivateEventSource
You can use this operation to temporarily stop receiving events from the specified partner event
source. The matching event bus is not deleted.
When you deactivate a partner event source, the source goes into PENDING state. If it remains in
PENDING state for more than two weeks, it is deleted.
Request Syntax
{
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Name
Type: String
Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeauthorizeConnection
Removes all authorization parameters from the connection. This lets you remove the secret from
the connection so you can reuse it without having to create a new connection.
Request Syntax
{
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"ConnectionArn": "string",
"ConnectionState": "string",
"CreationTime": number,
"LastAuthorizedTime": number,
"LastModifiedTime": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ConnectionArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection
\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
ConnectionState
Type: String
A time stamp for the time that the connection was created.
Type: Timestamp
LastAuthorizedTime
A time stamp for the time that the connection was last authorized.
Type: Timestamp
LastModifiedTime
A time stamp for the time that the connection was last updated.
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteApiDestination
Deletes the specified API destination.
Request Syntax
{
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteArchive
Deletes the specified archive.
Request Syntax
{
"ArchiveName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ArchiveName
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteConnection
Deletes a connection.
Request Syntax
{
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"ConnectionArn": "string",
"ConnectionState": "string",
"CreationTime": number,
"LastAuthorizedTime": number,
"LastModifiedTime": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ConnectionArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection
\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
ConnectionState
Type: String
A time stamp for the time that the connection was created.
Type: Timestamp
LastAuthorizedTime
A time stamp for the time that the connection was last authorized before it wa deleted.
Type: Timestamp
LastModifiedTime
A time stamp for the time that the connection was last modified before it was deleted.
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteEndpoint
Delete an existing global endpoint. For more information about global endpoints, see Making
applications Regional-fault tolerant with global endpoints and event replication in the Amazon
EventBridge User Guide .
Request Syntax
{
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Name
The name of the endpoint you want to delete. For example, "Name":"us-east-2-
custom_bus_A-endpoint"..
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteEventBus
Deletes the specified custom event bus or partner event bus. All rules associated with this event
bus need to be deleted. You can't delete your account's default event bus.
Request Syntax
{
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Name
Type: String
Pattern: [/\.\-_A-Za-z0-9]+
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeletePartnerEventSource
This operation is used by SaaS partners to delete a partner event source. This operation is not used
by AWS customers.
When you delete an event source, the status of the corresponding partner event bus in the AWS
customer account becomes DELETED.
Request Syntax
{
"Account": "string",
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Account
The AWS account ID of the AWS customer that the event source was created for.
Type: String
Pattern: \d{12}
Required: Yes
Name
Type: String
Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeleteRule
Deletes the specified rule.
Before you can delete the rule, you must remove all targets, using RemoveTargets.
When you delete a rule, incoming events might continue to match to the deleted rule. Allow a
short period of time for changes to take effect.
If you call delete rule multiple times for the same rule, all calls will succeed. When you call delete
rule for a non-existent custom eventbus, ResourceNotFoundException is returned.
Managed rules are rules created and managed by another AWS service on your behalf. These rules
are created by those other AWS services to support functionality in those services. You can delete
these rules using the Force option, but you should do so only if you are sure the other service is
not still using that rule.
Request Syntax
{
"EventBusName": "string",
"Force": boolean,
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventBusName
The name or ARN of the event bus associated with the rule. If you omit this, the default event
bus is used.
Type: String
Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus
\/)?[/\.\-_A-Za-z0-9]+
Required: No
Force
If this is a managed rule, created by an AWS service on your behalf, you must specify Force as
True to delete the rule. This parameter is ignored for rules that are not managed rules. You can
check whether a rule is a managed rule by using DescribeRule or ListRules and checking
the ManagedBy field of the response.
Type: Boolean
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
This rule was created by an AWS service on behalf of your account. It is managed by that
service. If you see this error in response to DeleteRule or RemoveTargets, you can use the
Force parameter in those calls to delete the rule or remove targets from the rule. You cannot
modify these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
TagResource, or UntagResource.
Examples
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.DeleteRule
{
"Name": "test"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeApiDestination
Retrieves details about an API destination.
Request Syntax
{
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"ApiDestinationArn": "string",
"ApiDestinationState": "string",
"ConnectionArn": "string",
"CreationTime": number,
"Description": "string",
"HttpMethod": "string",
"InvocationEndpoint": "string",
"InvocationRateLimitPerSecond": number,
"LastModifiedTime": number,
"Name": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ApiDestinationArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:api-
destination\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
ApiDestinationState
Type: String
The ARN of the connection specified for the API destination retrieved.
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection
\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
CreationTime
A time stamp for the time that the API destination was created.
Type: Timestamp
Description
Type: String
Pattern: .*
HttpMethod
Type: String
Type: String
Pattern: ^((%[0-9A-Fa-f]{2}|[-()_.!~*';/?:@\x26=+$,A-Za-z0-9])+)
([).!';/?:,])?$
InvocationRateLimitPerSecond
The maximum number of invocations per second to specified for the API destination. Note that
if you set the invocation rate maximum to a value lower the rate necessary to send all events
received on to the destination HTTP endpoint, some events may not be delivered within the 24-
hour retry window. If you plan to set the rate lower than the rate necessary to deliver all events,
consider using a dead-letter queue to catch events that are not delivered within 24 hours.
Type: Integer
A time stamp for the time that the API destination was last modified.
Type: Timestamp
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeArchive
Retrieves details about an archive.
Request Syntax
{
"ArchiveName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ArchiveName
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"ArchiveArn": "string",
"ArchiveName": "string",
"CreationTime": number,
"Description": "string",
"EventCount": number,
"EventPattern": "string",
"EventSourceArn": "string",
"RetentionDays": number,
"SizeBytes": number,
"State": "string",
"StateReason": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ArchiveArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:.+\/.+$
ArchiveName
Type: String
Pattern: [\.\-_A-Za-z0-9]+
CreationTime
Type: Timestamp
Description
Type: String
Pattern: .*
EventCount
Type: Long
EventPattern
Type: String
Type: String
Type: Integer
Type: Long
State
Type: String
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeConnection
Retrieves details about a connection.
Request Syntax
{
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"AuthorizationType": "string",
"AuthParameters": {
"ApiKeyAuthParameters": {
"ApiKeyName": "string"
},
"BasicAuthParameters": {
"Username": "string"
},
"InvocationHttpParameters": {
"BodyParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
],
"HeaderParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
],
"QueryStringParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
]
},
"OAuthParameters": {
"AuthorizationEndpoint": "string",
"ClientParameters": {
"ClientID": "string"
},
"HttpMethod": "string",
"OAuthHttpParameters": {
"BodyParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
],
"HeaderParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
],
"QueryStringParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
]
}
}
},
"ConnectionArn": "string",
"ConnectionState": "string",
"CreationTime": number,
"Description": "string",
"LastAuthorizedTime": number,
"LastModifiedTime": number,
"Name": "string",
"SecretArn": "string",
"StateReason": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
AuthorizationType
Type: String
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection
\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
ConnectionState
Type: String
A time stamp for the time that the connection was created.
Type: Timestamp
Description
Type: String
Pattern: .*
LastAuthorizedTime
A time stamp for the time that the connection was last authorized.
Type: Timestamp
LastModifiedTime
A time stamp for the time that the connection was last modified.
Type: Timestamp
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
SecretArn
The ARN of the secret created from the authorization parameters specified for the connection.
Type: String
Pattern: ^arn:aws([a-z]|\-)*:secretsmanager:([a-z]|\d|\-)*:([0-9]
{12})?:secret:[\/_+=\.@\-A-Za-z0-9]+$
StateReason
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeEndpoint
Get the information about an existing global endpoint. For more information about global
endpoints, see Making applications Regional-fault tolerant with global endpoints and event
replication in the Amazon EventBridge User Guide .
Request Syntax
{
"HomeRegion": "string",
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
HomeRegion
The primary Region of the endpoint you want to get information about. For example
"HomeRegion": "us-east-1".
Type: String
Pattern: ^[\-a-z0-9]+$
Required: No
Name
The name of the endpoint you want to get information about. For example, "Name":"us-
east-2-custom_bus_A-endpoint".
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"Arn": "string",
"CreationTime": number,
"Description": "string",
"EndpointId": "string",
"EndpointUrl": "string",
"EventBuses": [
{
"EventBusArn": "string"
}
],
"LastModifiedTime": number,
"Name": "string",
"ReplicationConfig": {
"State": "string"
},
"RoleArn": "string",
"RoutingConfig": {
"FailoverConfig": {
"Primary": {
"HealthCheck": "string"
},
"Secondary": {
"Route": "string"
}
}
},
"State": "string",
"StateReason": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Arn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:endpoint\/
[/\.\-_A-Za-z0-9]+$
CreationTime
The time the endpoint you asked for information about was created.
Type: Timestamp
Description
Type: String
Pattern: .*
EndpointId
Type: String
Pattern: ^[A-Za-z0-9\-]+[\.][A-Za-z0-9\-]+$
EndpointUrl
Type: String
Pattern: ^(https://)?[\.\-a-z0-9]+$
EventBuses
The event buses being used by the endpoint you asked for information about.
The last time the endpoint you asked for information about was modified.
Type: Timestamp
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
ReplicationConfig
Whether replication is enabled or disabled for the endpoint you asked for information about.
The ARN of the role used by the endpoint you asked for information about.
Type: String
Pattern: ^arn:aws[a-z-]*:iam::\d{12}:role\/[\w+=,.@/-]+$
RoutingConfig
The routing configuration of the endpoint you asked for information about.
The current state of the endpoint you asked for information about.
Type: String
The reason the endpoint you asked for information about is in its current state.
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeEventBus
Displays details about an event bus in your account. This can include the external AWS accounts
that are permitted to write events to your default event bus, and the associated policy. For custom
event buses and partner event buses, it displays the name, ARN, policy, state, and creation time.
To enable your account to receive events from other accounts on its default event bus, use
PutPermission.
Request Syntax
{
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Name
The name or ARN of the event bus to show details for. If you omit this, the default event bus is
displayed.
Type: String
Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus
\/)?[/\.\-_A-Za-z0-9]+
Required: No
Response Syntax
"Arn": "string",
"CreationTime": number,
"DeadLetterConfig": {
"Arn": "string"
},
"Description": "string",
"KmsKeyIdentifier": "string",
"LastModifiedTime": number,
"Name": "string",
"Policy": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Arn
The Amazon Resource Name (ARN) of the account permitted to write events to the current
account.
Type: String
CreationTime
Type: Timestamp
DeadLetterConfig
Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue
(DLQ).
For more information, see Using dead-letter queues to process undelivered events in the
EventBridge User Guide.
Type: String
The identifier of the AWS KMS customer managed key for EventBridge to use to encrypt events
on this event bus, if one has been specified.
For more information, see Data encryption in EventBridge in the Amazon EventBridge User
Guide.
Type: String
Type: Timestamp
Name
Type: String
Policy
The policy that enables the external account to send events to your account.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
ResourceNotFoundException
Examples
Example
The following example is run in account 444455556666, which has granted permission to AWS
account 111122223333 to send events to 444455556666.
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.DescribeEventBus
Example
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
"Policy":
{
"Version":"2012-10-17",
"Statement":[
{
"Sid": "mysid",
"Effect": "Allow",
"Principal":{
"AWS": "arn:aws:iam::111122223333:root"
},
"Action":"events:PutEvents",
"Resource": "arn:aws:events:us-east-1:444455556666:event-bus/default"
}
]
},
"Name": "default",
"Arn": "arn:aws:events:us-east-1:444455556666:event-bus/default"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeEventSource
This operation lists details about a partner event source that is shared with your account.
Request Syntax
{
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Name
The name of the partner event source to display the details of.
Type: String
Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}
Required: Yes
Response Syntax
{
"Arn": "string",
"CreatedBy": "string",
"CreationTime": number,
"ExpirationTime": number,
"Name": "string",
"State": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Arn
Type: String
CreatedBy
The name of the SaaS partner that created the event source.
Type: String
CreationTime
The date and time that the event source was created.
Type: Timestamp
ExpirationTime
The date and time that the event source will expire if you do not create a matching event bus.
Type: Timestamp
Name
Type: String
State
The state of the event source. If it is ACTIVE, you have already created a matching event bus for
this event source, and that event bus is active. If it is PENDING, either you haven't yet created
a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a
matching event bus, but the event source has since been deleted.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribePartnerEventSource
An SaaS partner can use this operation to list details about a partner event source that they
have created. AWS customers do not use this operation. Instead, AWS customers can use
DescribeEventSource to see details about a partner event source that is shared with them.
Request Syntax
{
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Name
Type: String
Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}
Required: Yes
Response Syntax
{
"Arn": "string",
"Name": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Arn
Type: String
Name
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeReplay
Retrieves details about a replay. Use DescribeReplay to determine the progress of a running
replay. A replay processes events to replay based on the time in the event, and replays them
using 1 minute intervals. If you use StartReplay and specify an EventStartTime and an
EventEndTime that covers a 20 minute time range, the events are replayed from the first
minute of that 20 minute range first. Then the events from the second minute are replayed.
You can use DescribeReplay to determine the progress of a replay. The value returned for
EventLastReplayedTime indicates the time within the specified time range associated with the
last event replayed.
Request Syntax
{
"ReplayName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ReplayName
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"Description": "string",
"Destination": {
"Arn": "string",
"FilterArns": [ "string" ]
},
"EventEndTime": number,
"EventLastReplayedTime": number,
"EventSourceArn": "string",
"EventStartTime": number,
"ReplayArn": "string",
"ReplayEndTime": number,
"ReplayName": "string",
"ReplayStartTime": number,
"State": "string",
"StateReason": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Description
Type: String
Pattern: .*
Destination
The time stamp for the last event that was replayed from the archive.
Type: Timestamp
EventLastReplayedTime
Type: Timestamp
EventSourceArn
Type: String
The time stamp of the first event that was last replayed from the archive.
Type: Timestamp
ReplayArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:.+\/[\.\-
_A-Za-z0-9]+$
ReplayEndTime
Type: Timestamp
ReplayName
Type: String
Pattern: [\.\-_A-Za-z0-9]+
ReplayStartTime
Type: Timestamp
State
Type: String
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DescribeRule
Describes the specified rule.
DescribeRule does not list the targets of a rule. To see the targets associated with a rule, use
ListTargetsByRule.
Request Syntax
{
"EventBusName": "string",
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventBusName
The name or ARN of the event bus associated with the rule. If you omit this, the default event
bus is used.
Type: String
Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus
\/)?[/\.\-_A-Za-z0-9]+
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"Arn": "string",
"CreatedBy": "string",
"Description": "string",
"EventBusName": "string",
"EventPattern": "string",
"ManagedBy": "string",
"Name": "string",
"RoleArn": "string",
"ScheduleExpression": "string",
"State": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Arn
Type: String
The account ID of the user that created the rule. If you use PutRule to put a rule on an event
bus in another account, the other account is the owner of the rule, and the rule ARN includes
the account ID for that account. However, the value for CreatedBy is the account ID as the
account that created the rule in the other account.
Type: String
Description
Type: String
Type: String
Pattern: [/\.\-_A-Za-z0-9]+
EventPattern
The event pattern. For more information, see Events and Event Patterns in the Amazon
EventBridge User Guide .
Type: String
If this is a managed rule, created by an AWS service on your behalf, this field displays the
principal name of the AWS service that created the rule.
Type: String
Type: String
Pattern: [\.\-_A-Za-z0-9]+
RoleArn
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
Type: String
Type: String
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
Examples
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.DescribeRule
{
"Name": "test"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"Name": "test",
"EventPattern": "{\"source\":[\"aws.autoscaling\"],\"detail-type\":[\"EC2 Instance
Launch Successful\",\"EC2 Instance Terminate Successful\",\"EC2 Instance Launch
Unsuccessful\",\"EC2 Instance Terminate Unsuccessful\"]}",
"State": "ENABLED",
"Arn": "arn:aws:events:us-east-1:123456789012:rule/test",
"Description": "Test rule for Auto Scaling events"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DisableRule
Disables the specified rule. A disabled rule won't match any events, and won't self-trigger if it has a
schedule expression.
When you disable a rule, incoming events might continue to match to the disabled rule. Allow a
short period of time for changes to take effect.
Request Syntax
{
"EventBusName": "string",
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventBusName
The name or ARN of the event bus associated with the rule. If you omit this, the default event
bus is used.
Type: String
Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus
\/)?[/\.\-_A-Za-z0-9]+
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
This rule was created by an AWS service on behalf of your account. It is managed by that
service. If you see this error in response to DeleteRule or RemoveTargets, you can use the
Force parameter in those calls to delete the rule or remove targets from the rule. You cannot
modify these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
TagResource, or UntagResource.
Examples
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.DisableRule
{
"Name": "test"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EnableRule
Enables the specified rule. If the rule does not exist, the operation fails.
When you enable a rule, incoming events might not immediately start matching to a newly
enabled rule. Allow a short period of time for changes to take effect.
Request Syntax
{
"EventBusName": "string",
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventBusName
The name or ARN of the event bus associated with the rule. If you omit this, the default event
bus is used.
Type: String
Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus
\/)?[/\.\-_A-Za-z0-9]+
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
This rule was created by an AWS service on behalf of your account. It is managed by that
service. If you see this error in response to DeleteRule or RemoveTargets, you can use the
Force parameter in those calls to delete the rule or remove targets from the rule. You cannot
modify these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
TagResource, or UntagResource.
Examples
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.EnableRule
{
"Name": "test"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListApiDestinations
Retrieves a list of API destination in the account in the current Region.
Request Syntax
{
"ConnectionArn": "string",
"Limit": number,
"NamePrefix": "string",
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ConnectionArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection
\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
Required: No
Limit
Type: Integer
Required: No
NamePrefix
A name prefix to filter results returned. Only API destinations with a name that starts with the
prefix are returned.
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Required: No
Response Syntax
{
"ApiDestinations": [
{
"ApiDestinationArn": "string",
"ApiDestinationState": "string",
"ConnectionArn": "string",
"CreationTime": number,
"HttpMethod": "string",
"InvocationEndpoint": "string",
"InvocationRateLimitPerSecond": number,
"LastModifiedTime": number,
"Name": "string"
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ApiDestinations
A token indicating there are more results available. If there are no more results, no token is
included in the response.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListArchives
Lists your archives. You can either list all the archives or you can provide a prefix to match to the
archive names. Filter parameters are exclusive.
Request Syntax
{
"EventSourceArn": "string",
"Limit": number,
"NamePrefix": "string",
"NextToken": "string",
"State": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventSourceArn
Type: String
Required: No
Limit
Type: Integer
Required: No
NamePrefix
A name prefix to filter the archives returned. Only archives with name that match the prefix are
returned.
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Required: No
State
Type: String
Required: No
Response Syntax
{
"Archives": [
{
"ArchiveName": "string",
"CreationTime": number,
"EventCount": number,
"EventSourceArn": "string",
"RetentionDays": number,
"SizeBytes": number,
"State": "string",
"StateReason": "string"
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Archives
A token indicating there are more results available. If there are no more results, no token is
included in the response.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListConnections
Retrieves a list of connections from the account.
Request Syntax
{
"ConnectionState": "string",
"Limit": number,
"NamePrefix": "string",
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ConnectionState
Type: String
Required: No
Limit
Type: Integer
Required: No
NamePrefix
A name prefix to filter results returned. Only connections with a name that starts with the prefix
are returned.
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Required: No
Response Syntax
{
"Connections": [
{
"AuthorizationType": "string",
"ConnectionArn": "string",
"ConnectionState": "string",
"CreationTime": number,
"LastAuthorizedTime": number,
"LastModifiedTime": number,
"Name": "string",
"StateReason": "string"
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Connections
A token indicating there are more results available. If there are no more results, no token is
included in the response.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListEndpoints
List the global endpoints associated with this account. For more information about global
endpoints, see Making applications Regional-fault tolerant with global endpoints and event
replication in the Amazon EventBridge User Guide .
Request Syntax
{
"HomeRegion": "string",
"MaxResults": number,
"NamePrefix": "string",
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
HomeRegion
The primary Region of the endpoints associated with this account. For example
"HomeRegion": "us-east-1".
Type: String
Pattern: ^[\-a-z0-9]+$
Required: No
MaxResults
Type: Integer
Required: No
NamePrefix
A value that will return a subset of the endpoints associated with this account. For example,
"NamePrefix": "ABC" will return all endpoints with "ABC" in the name.
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Required: No
Response Syntax
{
"Endpoints": [
{
"Arn": "string",
"CreationTime": number,
"Description": "string",
"EndpointId": "string",
"EndpointUrl": "string",
"EventBuses": [
{
"EventBusArn": "string"
}
],
"LastModifiedTime": number,
"Name": "string",
"ReplicationConfig": {
"State": "string"
},
"RoleArn": "string",
"RoutingConfig": {
"FailoverConfig": {
"Primary": {
"HealthCheck": "string"
},
"Secondary": {
"Route": "string"
}
}
},
"State": "string",
"StateReason": "string"
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Endpoints
A token indicating there are more results available. If there are no more results, no token is
included in the response.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListEventBuses
Lists all the event buses in your account, including the default event bus, custom event buses, and
partner event buses.
Request Syntax
{
"Limit": number,
"NamePrefix": "string",
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Limit
Specifying this limits the number of results returned by this operation. The operation also
returns a NextToken which you can use in a subsequent operation to retrieve the next set of
results.
Type: Integer
Required: No
NamePrefix
Specifying this limits the results to only those event buses with names that start with the
specified prefix.
Type: String
Pattern: [/\.\-_A-Za-z0-9]+
Required: No
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Required: No
Response Syntax
{
"EventBuses": [
{
"Arn": "string",
"CreationTime": number,
"Description": "string",
"LastModifiedTime": number,
"Name": "string",
"Policy": "string"
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
EventBuses
A token indicating there are more results available. If there are no more results, no token is
included in the response.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListEventSources
You can use this to see all the partner event sources that have been shared with your AWS account.
For more information about partner event sources, see CreateEventBus.
Request Syntax
{
"Limit": number,
"NamePrefix": "string",
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Limit
Specifying this limits the number of results returned by this operation. The operation also
returns a NextToken which you can use in a subsequent operation to retrieve the next set of
results.
Type: Integer
Required: No
NamePrefix
Specifying this limits the results to only those partner event sources with names that start with
the specified prefix.
Type: String
Pattern: [/\.\-_A-Za-z0-9]+
Required: No
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Required: No
Response Syntax
{
"EventSources": [
{
"Arn": "string",
"CreatedBy": "string",
"CreationTime": number,
"ExpirationTime": number,
"Name": "string",
"State": "string"
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
EventSources
A token indicating there are more results available. If there are no more results, no token is
included in the response.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListPartnerEventSourceAccounts
An SaaS partner can use this operation to display the AWS account ID that a particular partner
event source name is associated with. This operation is not used by AWS customers.
Request Syntax
{
"EventSourceName": "string",
"Limit": number,
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventSourceName
The name of the partner event source to display account information about.
Type: String
Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}
Required: Yes
Limit
Specifying this limits the number of results returned by this operation. The operation also
returns a NextToken which you can use in a subsequent operation to retrieve the next set of
results.
Type: Integer
Required: No
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Required: No
Response Syntax
{
"NextToken": "string",
"PartnerEventSourceAccounts": [
{
"Account": "string",
"CreationTime": number,
"ExpirationTime": number,
"State": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
A token indicating there are more results available. If there are no more results, no token is
included in the response.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListPartnerEventSources
An SaaS partner can use this operation to list all the partner event source names that they have
created. This operation is not used by AWS customers.
Request Syntax
{
"Limit": number,
"NamePrefix": "string",
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Limit
pecifying this limits the number of results returned by this operation. The operation also
returns a NextToken which you can use in a subsequent operation to retrieve the next set of
results.
Type: Integer
Required: No
NamePrefix
If you specify this, the results are limited to only those partner event sources that start with the
string you specify.
Type: String
Pattern: aws\.partner/[\.\-_A-Za-z0-9]+/[/\.\-_A-Za-z0-9]*
Required: Yes
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Required: No
Response Syntax
{
"NextToken": "string",
"PartnerEventSources": [
{
"Arn": "string",
"Name": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
A token indicating there are more results available. If there are no more results, no token is
included in the response.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListReplays
Lists your replays. You can either list all the replays or you can provide a prefix to match to the
replay names. Filter parameters are exclusive.
Request Syntax
{
"EventSourceArn": "string",
"Limit": number,
"NamePrefix": "string",
"NextToken": "string",
"State": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventSourceArn
The ARN of the archive from which the events are replayed.
Type: String
Required: No
Limit
Type: Integer
Required: No
NamePrefix
A name prefix to filter the replays returned. Only replays with name that match the prefix are
returned.
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Required: No
State
Type: String
Required: No
Response Syntax
{
"NextToken": "string",
"Replays": [
{
"EventEndTime": number,
"EventLastReplayedTime": number,
"EventSourceArn": "string",
"EventStartTime": number,
"ReplayEndTime": number,
"ReplayName": "string",
"ReplayStartTime": number,
"State": "string",
"StateReason": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
A token indicating there are more results available. If there are no more results, no token is
included in the response.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListRuleNamesByTarget
Lists the rules for the specified target. You can see which of the rules in Amazon EventBridge can
invoke a specific target in your account.
Request Syntax
{
"EventBusName": "string",
"Limit": number,
"NextToken": "string",
"TargetArn": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventBusName
The name or ARN of the event bus to list rules for. If you omit this, the default event bus is
used.
Type: String
Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus
\/)?[/\.\-_A-Za-z0-9]+
Required: No
Limit
Type: Integer
Required: No
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Required: No
TargetArn
Type: String
Required: Yes
Response Syntax
{
"NextToken": "string",
"RuleNames": [ "string" ]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
A token indicating there are more results available. If there are no more results, no token is
included in the response.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
The names of the rules that can invoke the given target.
Pattern: [\.\-_A-Za-z0-9]+
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
Examples
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.ListRuleNamesByTarget
{
"TargetArn": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction",
"NextToken": "",
"Limit": 0
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"RuleNames": [
"test1",
"test2",
"test3",
"test4",
"test5"
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListRules
Lists your Amazon EventBridge rules. You can either list all the rules or you can provide a prefix to
match to the rule names.
ListRules does not list the targets of a rule. To see the targets associated with a rule, use
ListTargetsByRule.
Request Syntax
{
"EventBusName": "string",
"Limit": number,
"NamePrefix": "string",
"NextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventBusName
The name or ARN of the event bus to list the rules for. If you omit this, the default event bus is
used.
Type: String
Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus
\/)?[/\.\-_A-Za-z0-9]+
Required: No
Limit
Type: Integer
Required: No
NamePrefix
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Required: No
Response Syntax
{
"NextToken": "string",
"Rules": [
{
"Arn": "string",
"Description": "string",
"EventBusName": "string",
"EventPattern": "string",
"ManagedBy": "string",
"Name": "string",
"RoleArn": "string",
"ScheduleExpression": "string",
"State": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
A token indicating there are more results available. If there are no more results, no token is
included in the response.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
Examples
Lists all the rules that start with the letter "t" with a page size of 1
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.ListRules
{
"NamePrefix": "t",
"Limit": 1
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
"Rules": [
{
"EventPattern": "{\"source\":[\"aws.autoscaling\"],\"detail-type\":[\"EC2
Instance Launch Successful\",\"EC2 Instance Terminate Successful\",\"EC2 Instance
Launch Unsuccessful\",\"EC2 Instance Terminate Unsuccessful\"]}",
"State": "DISABLED",
"Name": "test",
"Arn": "arn:aws:events:us-east-1:123456789012:rule/test",
"Description": "Test rule for Auto Scaling events"
}
],
"NextToken":
"ABCDEgAAAAAAAAAAQAAABCXtD8i7XlyFv5XFKH8GrudAAAAQIoQ0+7qXp63vQf1pvVklfHFd
+p2QgY36pjlAqsSsrkNbOtTePaCeJqN8O
+jbu66UhpJh7huA9r0iY9zjdtZ3vsAAAAgAAAAAAAAAAF5MZWktllmMuLd9gUjryM4sL9EG5IkcPUm60Vq1tzyYw=="
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTagsForResource
Displays the tags associated with an EventBridge resource. In EventBridge, rules and event buses
can be tagged.
Request Syntax
{
"ResourceARN": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceARN
The ARN of the EventBridge resource for which you want to view tags.
Type: String
Required: Yes
Response Syntax
{
"Tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Tags
The list of tag keys and values associated with the resource you specified
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
Examples
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.ListTagsForResource
{
"ResourceARN": "arn:aws:events:us-west-1:123456789012:rule/test",
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"Tags": [
{
"Key": "Stack",
"Value": "Prod"
},
{
"Key": "CostCenter",
"Value": "12345"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ListTargetsByRule
Lists the targets assigned to the specified rule.
Request Syntax
{
"EventBusName": "string",
"Limit": number,
"NextToken": "string",
"Rule": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventBusName
The name or ARN of the event bus associated with the rule. If you omit this, the default event
bus is used.
Type: String
Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus
\/)?[/\.\-_A-Za-z0-9]+
Required: No
Limit
Type: Integer
Required: No
NextToken
The token returned by a previous call, which you can use to retrieve the next set of results.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Required: No
Rule
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"NextToken": "string",
"Targets": [
{
"AppSyncParameters": {
"GraphQLOperation": "string"
},
"Arn": "string",
"BatchParameters": {
"ArrayProperties": {
"Size": number
},
"JobDefinition": "string",
"JobName": "string",
"RetryStrategy": {
"Attempts": number
}
},
"DeadLetterConfig": {
"Arn": "string"
},
"EcsParameters": {
"CapacityProviderStrategy": [
{
"base": number,
"capacityProvider": "string",
"weight": number
}
],
"EnableECSManagedTags": boolean,
"EnableExecuteCommand": boolean,
"Group": "string",
"LaunchType": "string",
"NetworkConfiguration": {
"awsvpcConfiguration": {
"AssignPublicIp": "string",
"SecurityGroups": [ "string" ],
"Subnets": [ "string" ]
}
},
"PlacementConstraints": [
{
"expression": "string",
"type": "string"
}
],
"PlacementStrategy": [
{
"field": "string",
"type": "string"
}
],
"PlatformVersion": "string",
"PropagateTags": "string",
"ReferenceId": "string",
"Tags": [
{
"Key": "string",
"Value": "string"
}
],
"TaskCount": number,
"TaskDefinitionArn": "string"
},
"HttpParameters": {
"HeaderParameters": {
"string" : "string"
},
"PathParameterValues": [ "string" ],
"QueryStringParameters": {
"string" : "string"
}
},
"Id": "string",
"Input": "string",
"InputPath": "string",
"InputTransformer": {
"InputPathsMap": {
"string" : "string"
},
"InputTemplate": "string"
},
"KinesisParameters": {
"PartitionKeyPath": "string"
},
"RedshiftDataParameters": {
"Database": "string",
"DbUser": "string",
"SecretManagerArn": "string",
"Sql": "string",
"Sqls": [ "string" ],
"StatementName": "string",
"WithEvent": boolean
},
"RetryPolicy": {
"MaximumEventAgeInSeconds": number,
"MaximumRetryAttempts": number
},
"RoleArn": "string",
"RunCommandParameters": {
"RunCommandTargets": [
{
"Key": "string",
"Values": [ "string" ]
}
]
},
"SageMakerPipelineParameters": {
"PipelineParameterList": [
{
"Name": "string",
"Value": "string"
}
]
},
"SqsParameters": {
"MessageGroupId": "string"
}
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
NextToken
A token indicating there are more results available. If there are no more results, no token is
included in the response.
The value of nextToken is a unique pagination token for each page. To retrieve the next page
of results, make the call again using the returned token. Keep all other arguments unchanged.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
Examples
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.ListTargetsByRule
{
"Rule": "test"
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"Targets": [
{
"Id": "MyTargetId",
"Arn": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutEvents
Sends custom events to Amazon EventBridge so that they can be matched to rules.
The maximum size for a PutEvents event entry is 256 KB. Entry size is calculated including the
event and any necessary characters and keys of the JSON representation of the event. To learn
more, see Calculating PutEvents event entry size in the Amazon EventBridge User Guide
PutEvents accepts the data in JSON format. For the JSON number (integer) data type, the
constraints are: a minimum value of -9,223,372,036,854,775,808 and a maximum value of
9,223,372,036,854,775,807.
Note
PutEvents will only process nested JSON up to 1000 levels deep.
Request Syntax
{
"EndpointId": "string",
"Entries": [
{
"Detail": "string",
"DetailType": "string",
"EventBusName": "string",
"Resources": [ "string" ],
"Source": "string",
"Time": number,
"TraceHeader": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EndpointId
The URL subdomain of the endpoint. For example, if the URL for Endpoint is https://
abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo.
Important
When using Java, you must include auth-crt on the class path.
Type: String
Pattern: ^[A-Za-z0-9\-]+[\.][A-Za-z0-9\-]+$
Required: No
Entries
The entry that defines an event in your system. You can specify several parameters for the entry
such as the source and type of the event, resources associated with the event, and so on.
Required: Yes
Response Syntax
{
"Entries": [
{
"ErrorCode": "string",
"ErrorMessage": "string",
"EventId": "string"
}
],
"FailedEntryCount": number
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Entries
The successfully and unsuccessfully ingested events results. If the ingestion was successful, the
entry has the event ID in it. Otherwise, you can use the error code and error message to identify
the problem with the entry.
For each record, the index of the response element is the same as the index in the request array.
Type: Integer
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
Examples
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutEvents
{
"Entries":[
{
"Source":"com.mycompany.myapp",
"Detail":"{ \"key1\": \"value1\", \"key2\": \"value2\" }",
"Resources":[
"resource1",
"resource2"
],
"DetailType":"myDetailType"
},
{
"Source":"com.mycompany.myapp",
"Detail":"{ \"key1\": \"value3\", \"key2\": \"value4\" }",
"Resources":[
"resource1",
"resource2"
],
"DetailType":"myDetailType"
}
]
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"FailedEntryCount": 0,
"Entries": [
{
"EventId": "11710aed-b79e-4468-a20b-bb3c0c3b4860"
},
{
"EventId": "d804d26a-88db-4b66-9eaf-9a11c708ae82"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutPartnerEvents
This is used by SaaS partners to write events to a customer's partner event bus. AWS customers do
not use this operation.
For information on calculating event batch size, see Calculating EventBridge PutEvents event entry
size in the EventBridge User Guide.
Request Syntax
{
"Entries": [
{
"Detail": "string",
"DetailType": "string",
"Resources": [ "string" ],
"Source": "string",
"Time": number
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Entries
Required: Yes
Response Syntax
"Entries": [
{
"ErrorCode": "string",
"ErrorMessage": "string",
"EventId": "string"
}
],
"FailedEntryCount": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Entries
The results for each event entry the partner submitted in this request. If the event was
successfully submitted, the entry has the event ID in it. Otherwise, you can use the error code
and error message to identify the problem with the entry.
For each record, the index of the response element is the same as the index in the request array.
The number of events from this operation that could not be written to the partner event bus.
Type: Integer
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
OperationDisabledException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutPermission
Running PutPermission permits the specified AWS account or AWS organization to put events
to the specified event bus. Amazon EventBridge rules in your account are triggered by these events
arriving to an event bus in your account.
For another account to send events to your account, that external account must have an
EventBridge rule with your account's event bus as a target.
To enable multiple AWS accounts to put events to your event bus, run PutPermission once for
each of these accounts. Or, if all the accounts are members of the same AWS organization, you can
run PutPermission once specifying Principal as "*" and specifying the AWS organization ID in
Condition, to grant permissions to all accounts in that organization.
If you grant permissions using an organization, then accounts in that organization must specify a
RoleArn with proper permissions when they use PutTarget to add your account's event bus as
a target. For more information, see Sending and Receiving Events Between AWS Accounts in the
Amazon EventBridge User Guide.
Request Syntax
{
"Action": "string",
"Condition": {
"Key": "string",
"Type": "string",
"Value": "string"
},
"EventBusName": "string",
"Policy": "string",
"Principal": "string",
"StatementId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Action
The action that you are enabling the other account to perform.
Type: String
Pattern: events:[a-zA-Z]+
Required: No
Condition
This parameter enables you to limit the permission to accounts that fulfill a certain condition,
such as being a member of a certain AWS organization. For more information about AWS
Organizations, see What Is AWS Organizations in the AWS Organizations User Guide.
If you specify Condition with an AWS organization ID, and specify "*" as the value for
Principal, you grant permission to all the accounts in the named organization.
The Condition is a JSON string which must contain Type, Key, and Value fields.
Required: No
EventBusName
The name of the event bus associated with the rule. If you omit this, the default event bus is
used.
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
Policy
A JSON string that describes the permission policy statement. You can include a Policy
parameter in the request instead of using the StatementId, Action, Principal, or
Condition parameters.
Type: String
Required: No
Principal
The 12-digit AWS account ID that you are permitting to put events to your default event bus.
Specify "*" to permit any account to put events to your default event bus.
If you specify "*" without specifying Condition, avoid creating rules that may match
undesirable events. To create more secure rules, make sure that the event pattern for each rule
contains an account field with a specific account ID from which to receive events. Rules with an
account field do not match any events sent from other accounts.
Type: String
Pattern: (\d{12}|\*)
Required: No
StatementId
An identifier string for the external account that you are granting permissions to. If you later
want to revoke the permission for this external account, specify this StatementId when you
run RemovePermission.
Note
Each StatementId must be unique.
Type: String
Pattern: [a-zA-Z0-9-_]+
Required: No
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
The event bus policy is too long. For more information, see the limits.
Examples
The following example enables the current account to receive events from account
111122223333.
Example
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutPermission
{
"Action":"events:PutEvents"
"Principal":"111122223333"
"StatementId":"MyStatement"
Example
The following example grants permissions to all accounts in the organization with an ID of
o-1234567890
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutPermission
{
"Action":"events:PutEvents"
"Principal":"*"
"Condition": '{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value":
"o-1234567890"}'
"StatementId":"MyStatement"
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutRule
Creates or updates the specified rule. Rules are enabled by default, or based on value of the state.
You can disable a rule using DisableRule.
A single rule watches for events from a single event bus. Events generated by AWS services go to
your account's default event bus. Events generated by SaaS partner services or applications go
to the matching partner event bus. If you have custom applications or services, you can specify
whether their events go to your default event bus or a custom event bus that you have created. For
more information, see CreateEventBus.
If you are updating an existing rule, the rule is replaced with what you specify in this PutRule
command. If you omit arguments in PutRule, the old values for those arguments are not kept.
Instead, they are replaced with null values.
When you create or update a rule, incoming events might not immediately start matching to new
or updated rules. Allow a short period of time for changes to take effect.
A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns are
triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger based on
the given schedule. A rule can have both an EventPattern and a ScheduleExpression, in which case
the rule triggers on matching events as well as on a schedule.
When you initially create a rule, you can optionally assign one or more tags to the rule. Tags
can help you organize and categorize your resources. You can also use them to scope user
permissions, by granting a user permission to access or change only rules with certain tag values.
To use the PutRule operation and assign tags, you must have both the events:PutRule and
events:TagResource permissions.
If you are updating an existing rule, any tags you specify in the PutRule operation are ignored. To
update the tags of an existing rule, use TagResource and UntagResource.
Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs).
However, EventBridge uses an exact match in event patterns and rules. Be sure to use the correct
ARN characters when creating event patterns so that they match the ARN syntax in the event you
want to match.
In EventBridge, it is possible to create rules that lead to infinite loops, where a rule is fired
repeatedly. For example, a rule might detect that ACLs have changed on an S3 bucket, and trigger
software to change them to the desired state. If the rule is not written carefully, the subsequent
change to the ACLs fires the rule again, creating an infinite loop.
To prevent this, write the rules so that the triggered actions do not re-fire the same rule. For
example, your rule could fire only if ACLs are found to be in a bad state, instead of after any
change.
An infinite loop can quickly cause higher than expected charges. We recommend that you use
budgeting, which alerts you when charges exceed your specified limit. For more information, see
Managing Your Costs with Budgets.
Request Syntax
{
"Description": "string",
"EventBusName": "string",
"EventPattern": "string",
"Name": "string",
"RoleArn": "string",
"ScheduleExpression": "string",
"State": "string",
"Tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Description
Type: String
Required: No
EventBusName
The name or ARN of the event bus to associate with this rule. If you omit this, the default event
bus is used.
Type: String
Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus
\/)?[/\.\-_A-Za-z0-9]+
Required: No
EventPattern
The event pattern. For more information, see Amazon EventBridge event patterns in the
Amazon EventBridge User Guide .
Type: String
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
RoleArn
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
If you're setting an event bus in another account as the target and that account granted
permission to your account through an organization instead of directly by the account ID, you
must specify a RoleArn with proper permissions in the Target structure, instead of here in
this parameter.
Type: String
Required: No
ScheduleExpression
Type: String
Required: No
State
Management events provide visibility into management operations that are performed on
resources in your AWS account. These are also known as control plane operations. For more
information, see Logging management events in the CloudTrail User Guide, and Filtering
management events from AWS services in the Amazon EventBridge User Guide .
This value is only valid for rules on the default event bus or custom event buses. It does not
apply to partner event buses.
Type: String
Required: No
Tags
Required: No
Response Syntax
{
"RuleArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
RuleArn
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
The request failed because it attempted to create resource beyond the allowed service quota.
This rule was created by an AWS service on behalf of your account. It is managed by that
service. If you see this error in response to DeleteRule or RemoveTargets, you can use the
Force parameter in those calls to delete the rule or remove targets from the rule. You cannot
modify these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
TagResource, or UntagResource.
Examples
Creates a rule named "test" that matches events from Amazon EC2. The rule is
also given two tags.
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
{
"Name": "test",
"EventPattern": "{ \"source\": [\"aws.ec2\"] }",
"Tags": [
{
"Key": "Stack",
"Value": "Prod"
},
{
"Key": "CostCenter",
"Value": "12345"
}
]
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"RuleArn": "arn:aws:events:us-east-1:123456789012:rule/test"
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutTargets
Adds the specified targets to the specified rule, or updates the targets if they are already
associated with the rule.
Targets are the resources that are invoked when a rule is triggered.
Note
Each rule can have up to five (5) targets associated with it at one time.
For a list of services you can configure as targets for events, see EventBridge targets in the Amazon
EventBridge User Guide .
Creating rules with built-in targets is supported only in the AWS Management Console. The built-in
targets are:
For some target types, PutTargets provides target-specific parameters. If the target is a
Kinesis data stream, you can optionally specify which shard the event goes to by using the
KinesisParameters argument. To invoke a command on multiple EC2 instances with one rule,
you can use the RunCommandParameters field.
To be able to make API calls against the resources that you own, Amazon EventBridge needs the
appropriate permissions:
• For AWS Lambda and Amazon SNS resources, EventBridge relies on resource-based policies.
• For EC2 instances, Kinesis Data Streams, AWS Step Functions state machines and API Gateway
APIs, EventBridge relies on IAM roles that you specify in the RoleARN argument in PutTargets.
For more information, see Authentication and Access Control in the Amazon EventBridge User
Guide .
If another AWS account is in the same region and has granted you permission (using
PutPermission), you can send events to that account. Set that account's event bus as a target of
the rules in your account. To send the matched events to the other account, specify that account's
event bus as the Arn value when you run PutTargets. If your account sends events to another
account, your account is charged for each sent event. Each event sent to another account is
charged as a custom event. The account receiving the event is not charged. For more information,
see Amazon EventBridge Pricing.
Note
Input, InputPath, and InputTransformer are not available with PutTarget if the
target is an event bus of a different AWS account.
If you are setting the event bus of another account as the target, and that account granted
permission to your account through an organization instead of directly by the account ID, then you
must specify a RoleArn with proper permissions in the Target structure. For more information,
see Sending and Receiving Events Between AWS Accounts in the Amazon EventBridge User Guide.
Note
If you have an IAM role on a cross-account event bus target, a PutTargets call without a
role on the same target (same Id and Arn) will not remove the role.
Input, InputPath, and InputTransformer are mutually exclusive and optional parameters of a
target. When a rule is triggered due to a matched event:
• If none of the following arguments are specified for a target, then the entire event is passed to
the target in JSON format (unless the target is Amazon EC2 Run Command or Amazon ECS task,
in which case nothing from the event is passed to the target).
• If Input is specified in the form of valid JSON, then the matched event is overridden with this
constant.
• If InputPath is specified in the form of JSONPath (for example, $.detail), then only the part
of the event specified in the path is passed to the target (for example, only the detail part of the
event is passed).
• If InputTransformer is specified, then one or more specified JSONPaths are extracted from the
event and used as values in a template that you specify as the input to the target.
When you specify InputPath or InputTransformer, you must use JSON dot notation, not
bracket notation.
When you add targets to a rule and the associated rule triggers soon after, new or updated targets
might not be immediately invoked. Allow a short period of time for changes to take effect.
This action can partially fail if too many requests are made at the same time. If that happens,
FailedEntryCount is non-zero in the response and each entry in FailedEntries provides the
ID of the failed target and the error code.
Request Syntax
{
"EventBusName": "string",
"Rule": "string",
"Targets": [
{
"AppSyncParameters": {
"GraphQLOperation": "string"
},
"Arn": "string",
"BatchParameters": {
"ArrayProperties": {
"Size": number
},
"JobDefinition": "string",
"JobName": "string",
"RetryStrategy": {
"Attempts": number
}
},
"DeadLetterConfig": {
"Arn": "string"
},
"EcsParameters": {
"CapacityProviderStrategy": [
{
"base": number,
"capacityProvider": "string",
"weight": number
}
],
"EnableECSManagedTags": boolean,
"EnableExecuteCommand": boolean,
"Group": "string",
"LaunchType": "string",
"NetworkConfiguration": {
"awsvpcConfiguration": {
"AssignPublicIp": "string",
"SecurityGroups": [ "string" ],
"Subnets": [ "string" ]
}
},
"PlacementConstraints": [
{
"expression": "string",
"type": "string"
}
],
"PlacementStrategy": [
{
"field": "string",
"type": "string"
}
],
"PlatformVersion": "string",
"PropagateTags": "string",
"ReferenceId": "string",
"Tags": [
{
"Key": "string",
"Value": "string"
}
],
"TaskCount": number,
"TaskDefinitionArn": "string"
},
"HttpParameters": {
"HeaderParameters": {
"string" : "string"
},
"PathParameterValues": [ "string" ],
"QueryStringParameters": {
"string" : "string"
}
},
"Id": "string",
"Input": "string",
"InputPath": "string",
"InputTransformer": {
"InputPathsMap": {
"string" : "string"
},
"InputTemplate": "string"
},
"KinesisParameters": {
"PartitionKeyPath": "string"
},
"RedshiftDataParameters": {
"Database": "string",
"DbUser": "string",
"SecretManagerArn": "string",
"Sql": "string",
"Sqls": [ "string" ],
"StatementName": "string",
"WithEvent": boolean
},
"RetryPolicy": {
"MaximumEventAgeInSeconds": number,
"MaximumRetryAttempts": number
},
"RoleArn": "string",
"RunCommandParameters": {
"RunCommandTargets": [
{
"Key": "string",
"Values": [ "string" ]
}
]
},
"SageMakerPipelineParameters": {
"PipelineParameterList": [
{
"Name": "string",
"Value": "string"
}
]
},
"SqsParameters": {
"MessageGroupId": "string"
}
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventBusName
The name or ARN of the event bus associated with the rule. If you omit this, the default event
bus is used.
Type: String
Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus
\/)?[/\.\-_A-Za-z0-9]+
Required: No
Rule
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Targets
Required: Yes
Response Syntax
{
"FailedEntries": [
{
"ErrorCode": "string",
"ErrorMessage": "string",
"TargetId": "string"
}
],
"FailedEntryCount": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
FailedEntries
FailedEntryCount
Type: Integer
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
The request failed because it attempted to create resource beyond the allowed service quota.
This rule was created by an AWS service on behalf of your account. It is managed by that
service. If you see this error in response to DeleteRule or RemoveTargets, you can use the
Force parameter in those calls to delete the rule or remove targets from the rule. You cannot
modify these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
TagResource, or UntagResource.
Examples
Adds a target to a Lambda function with the ID "MyTargetId" to the rule named
"test"
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutTargets
{
"Rule": "test",
"Targets": [
{
"Id": "MyTargetId",
"Arn": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction"
}
]
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"FailedEntries": [],
"FailedEntryCount": 0
}
Use Input Transformer to extract data from an event and input that data to the
target
This example extracts the instance and state from an event, puts them into a simple text template,
and passes this data to a Lambda function called MyFunction.
Note
If your are using InputTransformer with CloudWatch Logs as a target, the Template
must be {"timestamp":<timestamp>,"message":<version-id>}.
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutTargets
{
"Rule": "testrule",
"Targets": [
{
"Id": "MyTargetId",
"Arn": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction",
"InputTransformer":
{
"InputPathsMap": {"instance": "$.detail.instance","status":
"$.detail.status"},
"InputTemplate": "<instance> is in state <status>"
}
}
]
}
Example
Here is another sample request using InputTransformer. The input to the Lambda function is in
JSON format, with an array substituted. Below that sample request are examples of an event and
the resulting output to the target, using this sample request.
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutTargets
{
"Rule": "testrule",
"Targets": [
{
"Id": "MyTargetId",
"Arn": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction"
"InputTransformer":
{
"InputPathsMap": {"commandsToRun": "$.detail.commands"},
"InputTemplate": "{\"commands\": <commandsToRun>}"
}
}
]
}
Incoming event:
{
"Time": 1225864800,
"Source": "foo",
"Resources": ["foo", "foo"],
"DetailType": "foo",
"Detail": {
"commands": ["ls -lrt", "echo HelloWorld!"]
}
}
{
"commands" : ["ls -lrt", "echo HelloWorld!"]
}
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutTargets
{
"Rule": "testrule",
"Targets": [
{
"Id": "id123456789",
"Arn": "arn:aws:ssm:us-east-1:12345679012:document/RestartLinuxService",
"RoleArn": "arn:aws:iam::123456789012:role/MyRoleToAccessEC2"
"RunCommandParameters": {
"RunCommandTargets": [
{
"Key":"InstanceIds",
"Values":["i-123456789012", "i-098765432109"]
}
]
}
]
}
When the target is an AWS Batch job queue, the Arn field specifies the ARN of the job queue, while
JobDefinition specifies the ARN of the job definition.
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutTargets
{
"Rule":"batch-job-rule",
"Targets":[
{
"Id":"id123456789",
"Arn":"arn:aws:batch:us-west-2:012345678910:job-queue/default",
"BatchParameters":{
"ArrayProperties":{
"Size":25
},
"JobDefinition":"arn:aws:batch:us-west-2:012345678910:job-definition/
nvidia-smi:1",
"JobName":"unique-job-name",
"RetryStrategy":{
"Attempts":5
}
}
}
]
}
In this example, KinesisParameters is used to specify that events related to status changes are
sent to a shard specific to the affected instance ID.
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutTargets
{
"Rule": "StatusChangeRule",
"Targets": [
{
"Id" : "1",
"Arn": "arn:aws:kinesis:us-east-1:123456789012:function:stream/mystream",
"KinesisParameters":{
"PartitionKeyPath":"$.detail.instance-id"}'
}
]
}
This example sets a Kinesis data delivery stream named target-stream-name as a target.
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutTargets
{
"Rule": "FirehoseExample",
"Targets": [
{
"RoleArn": "arn:aws:iam::123456789012:role/MyRoleToAccessKinesis"
"Id" : "FirehoseStream",
"Arn": "arn:aws:firehose:us-east-1:123456789012:deliverystream/target-stream-
name",
}
]
}
This example targets a state machine called "HelloWorld", and sends the input constant "Hello
World!" to that target.
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutTargets
{
"Rule": "testrule",
"Targets": [
{
"RoleArn": "arn:aws:iam::123456789012:role/MyRoleToAccessStepFunctions"
"Arn":"arn:aws:states:us-east-1:123456789012:stateMachine:HelloWorld",
"Input":"HelloWorld!"
}
]
}
Adds a target that creates three Amazon ECS tasks based on a task definition
This example uses Amazon ECS as the target. You must have already created the task definition
and cluster in Amazon ECS.
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutTargets
{
"Rule": "test",
"Targets": [
{
"Id": "Target1",
"RoleArn": "arn:aws:iam::123456789012:role/MyRoleToAccessECS"
"Arn": "arn:aws:ecs:us-east-1:123456789012:cluster/example-cluster",
"ECSParameters": {
"TaskDefinitionArn": "arn:aws:ecs:us-east-1:123456789012:task-
definition/example",
"TaskCount": 3
}
}
]
}
This example sets two simple targets with one command. In this example, both targets are AWS
Lambda functions, but the two targets could be different AWS services as well.
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutTargets
{
"Rule": "test",
"Targets": [
{
"Id": "MyTargetId",
"Arn": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction"
}
{
"Id": "MyTargetId2",
"Arn": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction2"
}
]
}
This example shows cross-account event delivery. The target being added is the event bus of a
separate AWS account, which has the AWS account ID of 444455556666.
Note
Input, InputPath, and InputTransformer are not available with PutTarget if the
target is an event bus of a different AWS account.
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutTargets
{
"Rule": "producer-rule",
"Targets": [
{
"Id": "CrossAccountTargetId",
"Arn": "arn:aws:events:us-east-1:444455556666:event-bus/default"
}
]
}
This example targets an API Gateway API with static and dynamic HTTP parameters.
Note
HTTP parameters with static values are passed through to API Gateway as-is. If you provide
a JSON Path (prefixed with "$."), it will be dynamically replaced at runtime with a value
from the event payload (before input transformation).
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.PutTargets
{
"Rule": "test",
"Targets":
[
{
"Id": "testTargetId",
"Arn": "arn:aws:execute-api:us-east-1:444455556666:py1kl011je/testStage/POST/
path1/*/path2/*",
"RoleArn": "arn:aws:iam::415653183693:role/APIGatewayPOC",
"HttpParameters":
{
"PathParameterValues": ["pp1Val", "pp2Val"],
"HeaderParameters": {"hp1": "hp1Val", "hp2": "$.detail.header"},
"QueryStringParameters": {"qsp1": "qsp1Val", "qsp2": "$.source"}
}
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RemovePermission
Revokes the permission of another AWS account to be able to put events to the specified event
bus. Specify the account to revoke by the StatementId value that you associated with the
account when you granted it permission with PutPermission. You can find the StatementId by
using DescribeEventBus.
Request Syntax
{
"EventBusName": "string",
"RemoveAllPermissions": boolean,
"StatementId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventBusName
The name of the event bus to revoke permissions for. If you omit this, the default event bus is
used.
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
RemoveAllPermissions
Type: Boolean
Required: No
StatementId
The statement ID corresponding to the account that is no longer allowed to put events to the
default event bus.
Type: String
Pattern: [a-zA-Z0-9-_]+
Required: No
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RemoveTargets
Removes the specified targets from the specified rule. When the rule is triggered, those targets are
no longer be invoked.
Note
A successful execution of RemoveTargets doesn't guarantee all targets are removed from
the rule, it means that the target(s) listed in the request are removed.
When you remove a target, when the associated rule triggers, removed targets might continue to
be invoked. Allow a short period of time for changes to take effect.
This action can partially fail if too many requests are made at the same time. If that happens,
FailedEntryCount is non-zero in the response and each entry in FailedEntries provides the
ID of the failed target and the error code.
Request Syntax
{
"EventBusName": "string",
"Force": boolean,
"Ids": [ "string" ],
"Rule": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
EventBusName
The name or ARN of the event bus associated with the rule. If you omit this, the default event
bus is used.
Type: String
Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus
\/)?[/\.\-_A-Za-z0-9]+
Required: No
Force
If this is a managed rule, created by an AWS service on your behalf, you must specify Force as
True to remove targets. This parameter is ignored for rules that are not managed rules. You can
check whether a rule is a managed rule by using DescribeRule or ListRules and checking
the ManagedBy field of the response.
Type: Boolean
Required: No
Ids
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Rule
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"FailedEntries": [
{
"ErrorCode": "string",
"ErrorMessage": "string",
"TargetId": "string"
}
],
"FailedEntryCount": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
FailedEntries
Type: Integer
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
InternalException
This rule was created by an AWS service on behalf of your account. It is managed by that
service. If you see this error in response to DeleteRule or RemoveTargets, you can use the
Force parameter in those calls to delete the rule or remove targets from the rule. You cannot
modify these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
TagResource, or UntagResource.
Examples
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.RemoveTargets
"Rule": "test",
"Ids": [
"MyTargetId"
]
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"FailedEntries": [],
"FailedEntryCount": 0
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
StartReplay
Starts the specified replay. Events are not necessarily replayed in the exact same order that
they were added to the archive. A replay processes events to replay based on the time in the
event, and replays them using 1 minute intervals. If you specify an EventStartTime and an
EventEndTime that covers a 20 minute time range, the events are replayed from the first
minute of that 20 minute range first. Then the events from the second minute are replayed.
You can use DescribeReplay to determine the progress of a replay. The value returned for
EventLastReplayedTime indicates the time within the specified time range associated with the
last event replayed.
Request Syntax
{
"Description": "string",
"Destination": {
"Arn": "string",
"FilterArns": [ "string" ]
},
"EventEndTime": number,
"EventSourceArn": "string",
"EventStartTime": number,
"ReplayName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Description
Type: String
Pattern: .*
Required: No
Destination
A ReplayDestination object that includes details about the destination for the replay.
Required: Yes
EventEndTime
A time stamp for the time to stop replaying events. Only events that occurred between the
EventStartTime and EventEndTime are replayed.
Type: Timestamp
Required: Yes
EventSourceArn
Type: String
Required: Yes
EventStartTime
A time stamp for the time to start replaying events. Only events that occurred between the
EventStartTime and EventEndTime are replayed.
Type: Timestamp
Required: Yes
ReplayName
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"ReplayArn": "string",
"ReplayStartTime": number,
"State": "string",
"StateReason": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ReplayArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:.+\/[\.\-
_A-Za-z0-9]+$
ReplayStartTime
Type: Timestamp
State
Type: String
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
The request failed because it attempted to create resource beyond the allowed service quota.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TagResource
Assigns one or more tags (key-value pairs) to the specified EventBridge resource. Tags can help
you organize and categorize your resources. You can also use them to scope user permissions
by granting a user permission to access or change only resources with certain tag values. In
EventBridge, rules and event buses can be tagged.
Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.
You can use the TagResource action with a resource that already has tags. If you specify a new
tag key, this tag is appended to the list of tags associated with the resource. If you specify a tag
key that is already associated with the resource, the new tag value that you specify replaces the
previous value for that tag.
Request Syntax
{
"ResourceARN": "string",
"Tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceARN
The ARN of the EventBridge resource that you're adding tags to.
Type: String
Required: Yes
Tags
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
This rule was created by an AWS service on behalf of your account. It is managed by that
service. If you see this error in response to DeleteRule or RemoveTargets, you can use the
Force parameter in those calls to delete the rule or remove targets from the rule. You cannot
modify these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
TagResource, or UntagResource.
Examples
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.TagResource
{
"ResourceARN": "arn:aws:events:us-west-1:123456789012:rule/test",
"Tags": [
{
"Key": "Stack",
"Value": "Prod"
},
{
"Key": "Team",
"Value": "Green"
}
]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
TestEventPattern
Tests whether the specified event pattern matches the provided event.
Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs).
However, EventBridge uses an exact match in event patterns and rules. Be sure to use the correct
ARN characters when creating event patterns so that they match the ARN syntax in the event you
want to match.
Request Syntax
{
"Event": "string",
"EventPattern": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Event
The event, in JSON format, to test against the event pattern. The JSON must follow the format
specified in AWS Events, and the following fields are mandatory:
• id
• account
• source
• time
• region
• resources
• detail-type
Type: String
Required: Yes
EventPattern
The event pattern. For more information, see Events and Event Patterns in the Amazon
EventBridge User Guide .
Type: String
Required: Yes
Response Syntax
{
"Result": boolean
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Result
Type: Boolean
Errors
For information about the errors that are common to all actions, see Common Errors.
InternalException
Examples
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-
type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,
Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AWSEvents.TestEventPattern
{
"EventPattern": "{\"source\": [\"com.mycompany.myapp\"]}",
"Event": "{\"id\": \"e00c66cb-fe7a-4fcc-81ad-58eb60f5d96b\", \"detail-type\":
\"myDetailType\", \"source\": \"com.mycompany.myapp\", \"account\": \"123456789012\",
\"time\": \"2016-01-10T01:29:23Z\", \"region\": \"us-east-1\", \"resources\":
[\"resource1\", \"resource2\"], \"detail\": {\"key1\": \"value1\", \"key2\":
\"value2\"}}"
}
}
Sample Response
HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
"Result": true
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UntagResource
Removes one or more tags from the specified EventBridge resource. In Amazon EventBridge, rules
and event buses can be tagged.
Request Syntax
{
"ResourceARN": "string",
"TagKeys": [ "string" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ResourceARN
The ARN of the EventBridge resource from which you are removing tags.
Type: String
Required: Yes
TagKeys
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
This rule was created by an AWS service on behalf of your account. It is managed by that
service. If you see this error in response to DeleteRule or RemoveTargets, you can use the
Force parameter in those calls to delete the rule or remove targets from the rule. You cannot
modify these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
TagResource, or UntagResource.
Examples
Sample Request
POST / HTTP/1.1
Host: events.<region>.<domain>
x-amz-Date: <Date>
{
"ResourceARN": "arn:aws:events:us-west-1:123456789012:rule/test",
"TagKeys": [ "CostCenter", "Team" ]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateApiDestination
Updates an API destination.
Request Syntax
{
"ConnectionArn": "string",
"Description": "string",
"HttpMethod": "string",
"InvocationEndpoint": "string",
"InvocationRateLimitPerSecond": number,
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ConnectionArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection
\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
Required: No
Description
Type: String
Pattern: .*
Required: No
HttpMethod
Type: String
Required: No
InvocationEndpoint
Type: String
Pattern: ^((%[0-9A-Fa-f]{2}|[-()_.!~*';/?:@\x26=+$,A-Za-z0-9])+)
([).!';/?:,])?$
Required: No
InvocationRateLimitPerSecond
The maximum number of invocations per second to send to the API destination.
Type: Integer
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"ApiDestinationArn": "string",
"ApiDestinationState": "string",
"CreationTime": number,
"LastModifiedTime": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ApiDestinationArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:api-
destination\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
ApiDestinationState
Type: String
A time stamp for the time that the API destination was created.
Type: Timestamp
LastModifiedTime
A time stamp for the time that the API destination was last modified.
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
The request failed because it attempted to create resource beyond the allowed service quota.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateArchive
Updates the specified archive.
Request Syntax
{
"ArchiveName": "string",
"Description": "string",
"EventPattern": "string",
"RetentionDays": number
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
ArchiveName
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Description
Type: String
Pattern: .*
Required: No
EventPattern
Type: String
Required: No
RetentionDays
Type: Integer
Required: No
Response Syntax
{
"ArchiveArn": "string",
"CreationTime": number,
"State": "string",
"StateReason": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ArchiveArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:.+\/.+$
CreationTime
Type: Timestamp
State
Type: String
Type: String
Pattern: .*
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
The request failed because it attempted to create resource beyond the allowed service quota.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateConnection
Updates settings for a connection.
Request Syntax
{
"AuthorizationType": "string",
"AuthParameters": {
"ApiKeyAuthParameters": {
"ApiKeyName": "string",
"ApiKeyValue": "string"
},
"BasicAuthParameters": {
"Password": "string",
"Username": "string"
},
"InvocationHttpParameters": {
"BodyParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
],
"HeaderParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
],
"QueryStringParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
]
},
"OAuthParameters": {
"AuthorizationEndpoint": "string",
"ClientParameters": {
"ClientID": "string",
"ClientSecret": "string"
},
"HttpMethod": "string",
"OAuthHttpParameters": {
"BodyParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
],
"HeaderParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
],
"QueryStringParameters": [
{
"IsValueSecret": boolean,
"Key": "string",
"Value": "string"
}
]
}
}
},
"Description": "string",
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
AuthorizationType
Type: String
Required: No
AuthParameters
Required: No
Description
Type: String
Pattern: .*
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
Response Syntax
{
"ConnectionArn": "string",
"ConnectionState": "string",
"CreationTime": number,
"LastAuthorizedTime": number,
"LastModifiedTime": number
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
ConnectionArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection
\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
ConnectionState
Type: String
A time stamp for the time that the connection was created.
Type: Timestamp
LastAuthorizedTime
A time stamp for the time that the connection was last authorized.
Type: Timestamp
LastModifiedTime
A time stamp for the time that the connection was last modified.
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
The request failed because it attempted to create resource beyond the allowed service quota.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateEndpoint
Update an existing endpoint. For more information about global endpoints, see Making
applications Regional-fault tolerant with global endpoints and event replication in the Amazon
EventBridge User Guide .
Request Syntax
{
"Description": "string",
"EventBuses": [
{
"EventBusArn": "string"
}
],
"Name": "string",
"ReplicationConfig": {
"State": "string"
},
"RoleArn": "string",
"RoutingConfig": {
"FailoverConfig": {
"Primary": {
"HealthCheck": "string"
},
"Secondary": {
"Route": "string"
}
}
}
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
Description
Type: String
Pattern: .*
Required: No
EventBuses
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
ReplicationConfig
Required: No
RoleArn
The ARN of the role used by event replication for this request.
Type: String
Pattern: ^arn:aws[a-z-]*:iam::\d{12}:role\/[\w+=,.@/-]+$
Required: No
RoutingConfig
Configure the routing policy, including the health check and secondary Region.
Required: No
Response Syntax
{
"Arn": "string",
"EndpointId": "string",
"EndpointUrl": "string",
"EventBuses": [
{
"EventBusArn": "string"
}
],
"Name": "string",
"ReplicationConfig": {
"State": "string"
},
"RoleArn": "string",
"RoutingConfig": {
"FailoverConfig": {
"Primary": {
"HealthCheck": "string"
},
"Secondary": {
"Route": "string"
}
}
},
"State": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Arn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:endpoint\/
[/\.\-_A-Za-z0-9]+$
EndpointId
Type: String
Pattern: ^[A-Za-z0-9\-]+[\.][A-Za-z0-9\-]+$
EndpointUrl
Type: String
Pattern: ^(https://)?[\.\-a-z0-9]+$
EventBuses
The event buses used for replication for the endpoint you updated in this request.
Type: String
Pattern: [\.\-_A-Za-z0-9]+
ReplicationConfig
Whether event replication was enabled or disabled for the endpoint you updated in this
request.
The ARN of the role used by event replication for the endpoint you updated in this request.
Type: String
Pattern: ^arn:aws[a-z-]*:iam::\d{12}:role\/[\w+=,.@/-]+$
RoutingConfig
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
InternalException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateEventBus
Updates the specified event bus.
Request Syntax
{
"DeadLetterConfig": {
"Arn": "string"
},
"Description": "string",
"KmsKeyIdentifier": "string",
"Name": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
DeadLetterConfig
Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue
(DLQ).
For more information, see Using dead-letter queues to process undelivered events in the
EventBridge User Guide.
Required: No
Description
Type: String
Required: No
KmsKeyIdentifier
The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to
use a customer managed key to encrypt events on this event bus. The identifier can be the key
Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN.
If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to
encrypt events on the event bus.
For more information, see Managing keys in the AWS Key Management Service Developer Guide.
Note
Archives and schema discovery are not supported for event buses encrypted using a
customer managed key. EventBridge returns an error if:
• You call CreateArchive on an event bus set to use a customer managed key for
encryption.
• You call CreateDiscoverer on an event bus set to use a customer managed key
for encryption.
• You call UpdatedEventBus to set a customer managed key on an event bus with
an archives or schema discovery enabled.
To enable archives or schema discovery on an event bus, choose to use an AWS
owned key. For more information, see Data encryption in EventBridge in the Amazon
EventBridge User Guide.
Type: String
Required: No
Name
Type: String
Pattern: [/\.\-_A-Za-z0-9]+
Required: No
Response Syntax
{
"Arn": "string",
"DeadLetterConfig": {
"Arn": "string"
},
"Description": "string",
"KmsKeyIdentifier": "string",
"Name": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
Arn
Type: String
DeadLetterConfig
Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue
(DLQ).
For more information, see Using dead-letter queues to process undelivered events in the
EventBridge User Guide.
Type: String
KmsKeyIdentifier
The identifier of the AWS KMS customer managed key for EventBridge to use to encrypt events
on this event bus, if one has been specified.
For more information, see Data encryption in EventBridge in the Amazon EventBridge User
Guide.
Type: String
Type: String
Pattern: [/\.\-_A-Za-z0-9]+
Errors
For information about the errors that are common to all actions, see Common Errors.
ConcurrentModificationException
ResourceNotFoundException
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Data Types
The Amazon EventBridge API contains several data types that various actions use. This section
describes each data type in detail.
Note
The order of each element in a data type structure is not guaranteed. Applications should
not assume a particular order.
• ApiDestination
• AppSyncParameters
• Archive
• AwsVpcConfiguration
• BatchArrayProperties
• BatchParameters
• BatchRetryStrategy
• CapacityProviderStrategyItem
• Condition
• Connection
• ConnectionApiKeyAuthResponseParameters
• ConnectionAuthResponseParameters
• ConnectionBasicAuthResponseParameters
• ConnectionBodyParameter
• ConnectionHeaderParameter
• ConnectionHttpParameters
• ConnectionOAuthClientResponseParameters
• ConnectionOAuthResponseParameters
• ConnectionQueryStringParameter
• CreateConnectionApiKeyAuthRequestParameters
• CreateConnectionAuthRequestParameters
• CreateConnectionBasicAuthRequestParameters
• CreateConnectionOAuthClientRequestParameters
• CreateConnectionOAuthRequestParameters
• DeadLetterConfig
• EcsParameters
• Endpoint
• EndpointEventBus
• EventBus
• EventSource
• FailoverConfig
• HttpParameters
• InputTransformer
• KinesisParameters
• NetworkConfiguration
• PartnerEventSource
• PartnerEventSourceAccount
• PlacementConstraint
• PlacementStrategy
• Primary
• PutEventsRequestEntry
• PutEventsResultEntry
• PutPartnerEventsRequestEntry
• PutPartnerEventsResultEntry
• PutTargetsResultEntry
• RedshiftDataParameters
• RemoveTargetsResultEntry
• Replay
• ReplayDestination
• ReplicationConfig
• RetryPolicy
• RoutingConfig
• Rule
• RunCommandParameters
• RunCommandTarget
• SageMakerPipelineParameter
• SageMakerPipelineParameters
• Secondary
• SqsParameters
• Tag
• Target
• UpdateConnectionApiKeyAuthRequestParameters
• UpdateConnectionAuthRequestParameters
• UpdateConnectionBasicAuthRequestParameters
• UpdateConnectionOAuthClientRequestParameters
• UpdateConnectionOAuthRequestParameters
ApiDestination
Contains details about an API destination.
Contents
ApiDestinationArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:api-
destination\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
Required: No
ApiDestinationState
Type: String
Required: No
ConnectionArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection
\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
Required: No
CreationTime
A time stamp for the time that the API destination was created.
Type: Timestamp
Required: No
HttpMethod
Type: String
Required: No
InvocationEndpoint
Type: String
Pattern: ^((%[0-9A-Fa-f]{2}|[-()_.!~*';/?:@\x26=+$,A-Za-z0-9])+)
([).!';/?:,])?$
Required: No
InvocationRateLimitPerSecond
The maximum number of invocations per second to send to the HTTP endpoint.
Type: Integer
Required: No
LastModifiedTime
A time stamp for the time that the API destination was last modified.
Type: Timestamp
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AppSyncParameters
Contains the GraphQL operation to be parsed and executed, if the event target is an AWS AppSync
API.
Contents
GraphQLOperation
The GraphQL operation; that is, the query, mutation, or subscription to be parsed and executed
by the GraphQL service.
For more information, see Operations in the AWS AppSync User Guide.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Archive
An Archive object that contains details about an archive.
Contents
ArchiveName
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
CreationTime
The time stamp for the time that the archive was created.
Type: Timestamp
Required: No
EventCount
Type: Long
Required: No
EventSourceArn
The ARN of the event bus associated with the archive. Only events from this event bus are sent
to the archive.
Type: String
Required: No
RetentionDays
The number of days to retain events in the archive before they are deleted.
Type: Integer
Required: No
SizeBytes
Type: Long
Required: No
State
Type: String
Required: No
StateReason
A description for the reason that the archive is in the current state.
Type: String
Pattern: .*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
AwsVpcConfiguration
This structure specifies the VPC subnets and security groups for the task, and whether a public IP
address is to be used. This structure is relevant only for ECS tasks that use the awsvpc network
mode.
Contents
Subnets
Specifies the subnets associated with the task. These subnets must all be in the same VPC. You
can specify as many as 16 subnets.
Required: Yes
AssignPublicIp
Specifies whether the task's elastic network interface receives a public IP address. You can
specify ENABLED only when LaunchType in EcsParameters is set to FARGATE.
Type: String
Required: No
SecurityGroups
Specifies the security groups associated with the task. These security groups must all be in
the same VPC. You can specify as many as five security groups. If you do not specify a security
group, the default security group for the VPC is used.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchArrayProperties
The array properties for the submitted job, such as the size of the array. The array size can be
between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This
parameter is used only if the target is an AWS Batch job.
Contents
Size
The size of the array, if this is an array batch job. Valid values are integers between 2 and
10,000.
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchParameters
The custom parameters to be used when the target is an AWS Batch job.
Contents
JobDefinition
The ARN or name of the job definition to use if the event target is an AWS Batch job. This job
definition must already exist.
Type: String
Required: Yes
JobName
The name to use for this execution of the job, if the target is an AWS Batch job.
Type: String
Required: Yes
ArrayProperties
The array properties for the submitted job, such as the size of the array. The array size can be
between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This
parameter is used only if the target is an AWS Batch job.
Required: No
RetryStrategy
The retry strategy to use for failed jobs, if the target is an AWS Batch job. The retry strategy is
the number of times to retry the failed job execution. Valid values are 1–10. When you specify a
retry strategy here, it overrides the retry strategy defined in the job definition.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
BatchRetryStrategy
The retry strategy to use for failed jobs, if the target is an AWS Batch job. If you specify a retry
strategy here, it overrides the retry strategy defined in the job definition.
Contents
Attempts
The number of times to attempt to retry, if the job fails. Valid values are 1–10.
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CapacityProviderStrategyItem
The details of a capacity provider strategy. To learn more, see CapacityProviderStrategyItem in the
Amazon ECS API Reference.
Contents
capacityProvider
Type: String
Required: Yes
base
The base value designates how many tasks, at a minimum, to run on the specified capacity
provider. Only one capacity provider in a capacity provider strategy can have a base defined. If
no value is specified, the default value of 0 is used.
Type: Integer
Required: No
weight
The weight value designates the relative percentage of the total number of tasks launched that
should use the specified capacity provider. The weight value is taken into consideration after
the base value, if defined, is satisfied.
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Condition
A JSON string which you can use to limit the event bus permissions you are granting to only
accounts that fulfill the condition. Currently, the only supported condition is membership in a
certain AWS organization. The string must contain Type, Key, and Value fields. The Value field
specifies the ID of the AWS organization. Following is an example value for Condition:
Contents
Key
Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.
Type: String
Required: Yes
Type
Specifies the type of condition. Currently the only supported value is StringEquals.
Type: String
Required: Yes
Value
Specifies the value for the key. Currently, this must be the ID of the organization.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Connection
Contains information about a connection.
Contents
AuthorizationType
Note
OAUTH tokens are refreshed when a 401 or 407 response is returned.
Type: String
Required: No
ConnectionArn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:connection
\/[\.\-_A-Za-z0-9]+\/[\-A-Za-z0-9]+$
Required: No
ConnectionState
Type: String
Required: No
CreationTime
A time stamp for the time that the connection was created.
Type: Timestamp
Required: No
LastAuthorizedTime
A time stamp for the time that the connection was last authorized.
Type: Timestamp
Required: No
LastModifiedTime
A time stamp for the time that the connection was last modified.
Type: Timestamp
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
StateReason
Type: String
Pattern: .*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ConnectionApiKeyAuthResponseParameters
Contains the authorization parameters for the connection if API Key is specified as the
authorization type.
Contents
ApiKeyName
The name of the header to use for the APIKeyValue used for authorization.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ConnectionAuthResponseParameters
Contains the authorization parameters to use for the connection.
Contents
ApiKeyAuthParameters
Required: No
BasicAuthParameters
Required: No
InvocationHttpParameters
Additional parameters for the connection that are passed through with every invocation to the
HTTP endpoint.
Required: No
OAuthParameters
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ConnectionBasicAuthResponseParameters
Contains the authorization parameters for the connection if Basic is specified as the authorization
type.
Contents
Username
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ConnectionBodyParameter
Additional parameter included in the body. You can include up to 100 additional body parameters
per request. An event payload cannot exceed 64 KB.
Contents
IsValueSecret
Type: Boolean
Required: No
Key
Type: String
Required: No
Value
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ConnectionHeaderParameter
Additional parameter included in the header. You can include up to 100 additional header
parameters per request. An event payload cannot exceed 64 KB.
Contents
IsValueSecret
Type: Boolean
Required: No
Key
Type: String
Pattern: ^[!#$%&'*+-.^_`|~0-9a-zA-Z]+$
Required: No
Value
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ConnectionHttpParameters
Contains additional parameters for the connection.
Contents
BodyParameters
Required: No
HeaderParameters
Required: No
QueryStringParameters
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ConnectionOAuthClientResponseParameters
Contains the client response parameters for the connection when OAuth is specified as the
authorization type.
Contents
ClientID
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ConnectionOAuthResponseParameters
Contains the response parameters when OAuth is specified as the authorization type.
Contents
AuthorizationEndpoint
Type: String
Pattern: ^((%[0-9A-Fa-f]{2}|[-()_.!~*';/?:@\x26=+$,A-Za-z0-9])+)
([).!';/?:,])?$
Required: No
ClientParameters
Required: No
HttpMethod
Type: String
Required: No
OAuthHttpParameters
The additional HTTP parameters used for the OAuth authorization request.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ConnectionQueryStringParameter
Additional query string parameter for the connection. You can include up to 100 additional query
string parameters per request. Each additional parameter counts towards the event payload size,
which cannot exceed 64 KB.
Contents
IsValueSecret
Type: Boolean
Required: No
Key
Type: String
Pattern: [^\x00-\x1F\x7F]+
Required: No
Value
The value associated with the key for the query string parameter.
Type: String
Pattern: [^\x00-\x09\x0B\x0C\x0E-\x1F\x7F]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateConnectionApiKeyAuthRequestParameters
Contains the API key authorization parameters for the connection.
Contents
ApiKeyName
Type: String
Required: Yes
ApiKeyValue
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateConnectionAuthRequestParameters
Contains the authorization parameters for the connection.
Contents
ApiKeyAuthParameters
Required: No
BasicAuthParameters
Required: No
InvocationHttpParameters
Required: No
OAuthParameters
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateConnectionBasicAuthRequestParameters
Contains the Basic authorization parameters to use for the connection.
Contents
Password
The password associated with the user name to use for Basic authorization.
Type: String
Required: Yes
Username
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateConnectionOAuthClientRequestParameters
Contains the Basic authorization parameters to use for the connection.
Contents
ClientID
Type: String
Required: Yes
ClientSecret
The client secret associated with the client ID to use for OAuth authorization for the connection.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
CreateConnectionOAuthRequestParameters
Contains the OAuth authorization parameters to use for the connection.
Contents
AuthorizationEndpoint
The URL to the authorization endpoint when OAuth is specified as the authorization type.
Type: String
Pattern: ^((%[0-9A-Fa-f]{2}|[-()_.!~*';/?:@\x26=+$,A-Za-z0-9])+)
([).!';/?:,])?$
Required: Yes
ClientParameters
Required: Yes
HttpMethod
Type: String
Required: Yes
OAuthHttpParameters
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
DeadLetterConfig
Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue
(DLQ).
For more information, see Using dead-letter queues to process undelivered events in the
EventBridge User Guide.
Contents
Arn
The ARN of the SQS queue specified as the target for the dead-letter queue.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EcsParameters
The custom parameters to be used when the target is an Amazon ECS task.
Contents
TaskDefinitionArn
The ARN of the task definition to use if the event target is an Amazon ECS task.
Type: String
Required: Yes
CapacityProviderStrategy
Required: No
EnableECSManagedTags
Specifies whether to enable Amazon ECS managed tags for the task. For more information, see
Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide.
Type: Boolean
Required: No
EnableExecuteCommand
Whether or not to enable the execute command functionality for the containers in this task. If
true, this enables execute command functionality on all containers in the task.
Type: Boolean
Required: No
Group
Specifies an ECS task group for the task. The maximum length is 255 characters.
Type: String
Required: No
LaunchType
Specifies the launch type on which your task is running. The launch type that you specify here
must match one of the launch type (compatibilities) of the target task. The FARGATE value is
supported only in the Regions where AWS Fargate with Amazon ECS is supported. For more
information, see AWS Fargate on Amazon ECS in the Amazon Elastic Container Service Developer
Guide.
Type: String
Required: No
NetworkConfiguration
Use this structure if the Amazon ECS task uses the awsvpc network mode. This structure
specifies the VPC subnets and security groups associated with the task, and whether a public IP
address is to be used. This structure is required if LaunchType is FARGATE because the awsvpc
mode is required for Fargate tasks.
If you specify NetworkConfiguration when the target ECS task does not use the awsvpc
network mode, the task fails.
Required: No
PlacementConstraints
An array of placement constraint objects to use for the task. You can specify up to 10
constraints per task (including constraints in the task definition and those specified at runtime).
Required: No
PlacementStrategy
The placement strategy objects to use for the task. You can specify a maximum of five strategy
rules per task.
Required: No
PlatformVersion
Specifies the platform version for the task. Specify only the numeric portion of the platform
version, such as 1.1.0.
This structure is used only if LaunchType is FARGATE. For more information about valid
platform versions, see AWS Fargate Platform Versions in the Amazon Elastic Container Service
Developer Guide.
Type: String
Required: No
PropagateTags
Specifies whether to propagate the tags from the task definition to the task. If no value is
specified, the tags are not propagated. Tags can only be propagated to the task during task
creation. To add tags to a task after task creation, use the TagResource API action.
Type: String
Required: No
ReferenceId
Type: String
Required: No
Tags
The metadata that you apply to the task to help you categorize and organize them. Each tag
consists of a key and an optional value, both of which you define. To learn more, see RunTask in
the Amazon ECS API Reference.
Required: No
TaskCount
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Endpoint
A global endpoint used to improve your application's availability by making it regional-fault
tolerant. For more information about global endpoints, see Making applications Regional-fault
tolerant with global endpoints and event replication in the Amazon EventBridge User Guide .
Contents
Arn
Type: String
Pattern: ^arn:aws([a-z]|\-)*:events:([a-z]|\d|\-)*:([0-9]{12})?:endpoint\/
[/\.\-_A-Za-z0-9]+$
Required: No
CreationTime
Type: Timestamp
Required: No
Description
Type: String
Pattern: .*
Required: No
EndpointId
The URL subdomain of the endpoint. For example, if the URL for Endpoint is https://
abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo.
Type: String
Pattern: ^[A-Za-z0-9\-]+[\.][A-Za-z0-9\-]+$
Required: No
EndpointUrl
Type: String
Pattern: ^(https://)?[\.\-a-z0-9]+$
Required: No
EventBuses
Required: No
LastModifiedTime
Type: Timestamp
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
ReplicationConfig
Whether event replication was enabled or disabled for this endpoint. The default state is
ENABLED which means you must supply a RoleArn. If you don't have a RoleArn or you don't
want event replication enabled, set the state to DISABLED.
Required: No
RoleArn
The ARN of the role used by event replication for the endpoint.
Type: String
Pattern: ^arn:aws[a-z-]*:iam::\d{12}:role\/[\w+=,.@/-]+$
Required: No
RoutingConfig
Required: No
State
Type: String
Required: No
StateReason
Type: String
Pattern: .*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EndpointEventBus
The event buses the endpoint is associated with.
Contents
EventBusArn
Type: String
Pattern: ^arn:aws[a-z-]*:events:[a-z]{2}-[a-z-]+-\d+:\d{12}:event-bus/
[\w.-]+$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EventBus
An event bus receives events from a source, uses rules to evaluate them, applies any configured
input transformation, and routes them to the appropriate target(s). Your account's default event
bus receives events from AWS services. A custom event bus can receive events from your custom
applications and services. A partner event bus receives events from an event source created by an
SaaS partner. These events come from the partners services or applications.
Contents
Arn
Type: String
Required: No
CreationTime
Type: Timestamp
Required: No
Description
Type: String
Required: No
LastModifiedTime
Type: Timestamp
Required: No
Name
Type: String
Required: No
Policy
The permissions policy of the event bus, describing which other AWS accounts can write events
to this event bus.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EventSource
A partner event source is created by an SaaS partner. If a customer creates a partner event bus that
matches this event source, that AWS account can receive events from the partner's applications or
services.
Contents
Arn
Type: String
Required: No
CreatedBy
Type: String
Required: No
CreationTime
Type: Timestamp
Required: No
ExpirationTime
The date and time that the event source will expire, if the AWS account doesn't create a
matching event bus for it.
Type: Timestamp
Required: No
Name
Type: String
Required: No
State
The state of the event source. If it is ACTIVE, you have already created a matching event bus for
this event source, and that event bus is active. If it is PENDING, either you haven't yet created
a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a
matching event bus, but the event source has since been deleted.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
FailoverConfig
The failover configuration for an endpoint. This includes what triggers failover and what happens
when it's triggered.
Contents
Primary
Required: Yes
Secondary
The Region that events are routed to when failover is triggered or event replication is enabled.
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
HttpParameters
These are custom parameter to be used when the target is an API Gateway APIs or EventBridge
ApiDestinations. In the latter case, these are merged with any InvocationParameters specified on
the Connection, with any values from the Connection taking precedence.
Contents
HeaderParameters
The headers that need to be sent as part of request invoking the API Gateway API or
EventBridge ApiDestination.
Required: No
PathParameterValues
The path parameter values to be used to populate API Gateway API or EventBridge
ApiDestination path wildcards ("*").
Pattern: ^(?!\s*$).+
Required: No
QueryStringParameters
The query string keys/values that need to be sent as part of request invoking the API Gateway
API or EventBridge ApiDestination.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
InputTransformer
Contains the parameters needed for you to provide custom input to a target based on one or more
pieces of data extracted from the event.
Contents
InputTemplate
Input template where you specify placeholders that will be filled with the values of
the keys from InputPathsMap to customize the data sent to the target. Enclose each
InputPathsMaps value in brackets: <value>
The following example shows the syntax for using InputPathsMap and InputTemplate.
"InputTransformer":
To have the InputTemplate include quote marks within a JSON string, escape each quote
marks with a slash, as in the following example:
"InputTransformer":
The InputTemplate can also be valid JSON with varibles in quotes or out, as in the following
example:
"InputTransformer":
Type: String
Required: Yes
InputPathsMap
Map of JSON paths to be extracted from the event. You can then insert these in the template in
InputTemplate to produce the output you want to be sent to the target.
InputPathsMap is an array key-value pairs, where each value is a valid JSON path. You can
have as many as 100 key-value pairs. You must use JSON dot notation, not bracket notation.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
KinesisParameters
This object enables you to specify a JSON path to extract from the event and use as the partition
key for the Amazon Kinesis data stream, so that you can control the shard to which the event goes.
If you do not include this parameter, the default is to use the eventId as the partition key.
Contents
PartitionKeyPath
The JSON path to be extracted from the event and used as the partition key. For more
information, see Amazon Kinesis Streams Key Concepts in the Amazon Kinesis Streams
Developer Guide.
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
NetworkConfiguration
This structure specifies the network configuration for an ECS task.
Contents
awsvpcConfiguration
Use this structure to specify the VPC subnets and security groups for the task, and whether a
public IP address is to be used. This structure is relevant only for ECS tasks that use the awsvpc
network mode.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PartnerEventSource
A partner event source is created by an SaaS partner. If a customer creates a partner event bus that
matches this event source, that AWS account can receive events from the partner's applications or
services.
Contents
Arn
Type: String
Required: No
Name
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PartnerEventSourceAccount
The AWS account that a partner event source has been offered to.
Contents
Account
The AWS account ID that the partner event source was offered to.
Type: String
Pattern: \d{12}
Required: No
CreationTime
Type: Timestamp
Required: No
ExpirationTime
The date and time that the event source will expire, if the AWS account doesn't create a
matching event bus for it.
Type: Timestamp
Required: No
State
The state of the event source. If it is ACTIVE, you have already created a matching event bus for
this event source, and that event bus is active. If it is PENDING, either you haven't yet created
a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a
matching event bus, but the event source has since been deleted.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PlacementConstraint
An object representing a constraint on task placement. To learn more, see Task Placement
Constraints in the Amazon Elastic Container Service Developer Guide.
Contents
expression
A cluster query language expression to apply to the constraint. You cannot specify an
expression if the constraint type is distinctInstance. To learn more, see Cluster Query
Language in the Amazon Elastic Container Service Developer Guide.
Type: String
Required: No
type
The type of constraint. Use distinctInstance to ensure that each task in a particular group is
running on a different container instance. Use memberOf to restrict the selection to a group of
valid candidates.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PlacementStrategy
The task placement strategy for a task or service. To learn more, see Task Placement Strategies in
the Amazon Elastic Container Service Service Developer Guide.
Contents
field
The field to apply the placement strategy against. For the spread placement strategy, valid
values are instanceId (or host, which has the same effect), or any platform or custom attribute
that is applied to a container instance, such as attribute:ecs.availability-zone. For the binpack
placement strategy, valid values are cpu and memory. For the random placement strategy, this
field is not used.
Type: String
Required: No
type
The type of placement strategy. The random placement strategy randomly places tasks on
available candidates. The spread placement strategy spreads placement across available
candidates evenly based on the field parameter. The binpack strategy places tasks on available
candidates that have the least available amount of the resource that is specified with the field
parameter. For example, if you binpack on memory, a task is placed on the instance with the
least amount of remaining memory (but still enough to run the task).
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Primary
The primary Region of the endpoint.
Contents
HealthCheck
The ARN of the health check used by the endpoint to determine whether failover is triggered.
Type: String
Pattern: ^arn:aws([a-z]|\-)*:route53:::healthcheck/[\-a-z0-9]+$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutEventsRequestEntry
Represents an event to be submitted.
Contents
Detail
A valid JSON object. There is no other schema imposed. The JSON object may contain fields and
nested sub-objects.
Note
Detail, DetailType, and Source are required for EventBridge to successfully send an
event to an event bus. If you include event entries in a request that do not include each
of those properties, EventBridge fails that entry. If you submit a request in which none
of the entries have each of these properties, EventBridge fails the entire request.
Type: String
Required: No
DetailType
Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the
event detail.
Note
Detail, DetailType, and Source are required for EventBridge to successfully send an
event to an event bus. If you include event entries in a request that do not include each
of those properties, EventBridge fails that entry. If you submit a request in which none
of the entries have each of these properties, EventBridge fails the entire request.
Type: String
Required: No
EventBusName
The name or ARN of the event bus to receive the event. Only the rules that are associated with
this event bus are used to match the event. If you omit this, the default event bus is used.
Note
If you're using a global endpoint with a custom bus, you can enter either the name
or Amazon Resource Name (ARN) of the event bus in either the primary or secondary
Region here. EventBridge then determines the corresponding event bus in the other
Region based on the endpoint referenced by the EndpointId. Specifying the event bus
ARN is preferred.
Type: String
Pattern: (arn:aws[\w-]*:events:[a-z]{2}-[a-z]+-[\w-]+:[0-9]{12}:event-bus
\/)?[\.\-_A-Za-z0-9]+
Required: No
Resources
AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns.
Any number, including zero, may be present.
Required: No
Source
Note
Detail, DetailType, and Source are required for EventBridge to successfully send an
event to an event bus. If you include event entries in a request that do not include each
of those properties, EventBridge fails that entry. If you submit a request in which none
of the entries have each of these properties, EventBridge fails the entire request.
Type: String
Required: No
Time
The time stamp of the event, per RFC3339. If no time stamp is provided, the time stamp of the
PutEvents call is used.
Type: Timestamp
Required: No
TraceHeader
An AWS X-Ray trace header, which is an http header (X-Amzn-Trace-Id) that contains the trace-
id associated with the event.
To learn more about X-Ray trace headers, see Tracing header in the AWS X-Ray Developer
Guide.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutEventsResultEntry
Represents the results of an event submitted to an event bus.
If the submission was successful, the entry has the event ID in it. Otherwise, you can use the error
code and error message to identify the problem with the entry.
For information about the errors that are common to all actions, see Common Errors.
Contents
ErrorCode
The error code that indicates why the event submission failed.
The request processing has failed because of an unknown error, exception or failure.
• ThrottlingException
• NotAuthorizedForSourceException
You do not have permissions to publish events with this source onto this event bus.
• NotAuthorizedForDetailTypeException
You do not have permissions to publish events with this detail type onto this event bus.
Type: String
Required: No
ErrorMessage
The error message that explains why the event submission failed.
Type: String
Required: No
EventId
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutPartnerEventsRequestEntry
The details about an event generated by an SaaS partner.
Contents
Detail
A valid JSON string. There is no other schema imposed. The JSON string may contain fields and
nested sub-objects.
Note
Detail, DetailType, and Source are required for EventBridge to successfully send an
event to an event bus. If you include event entries in a request that do not include each
of those properties, EventBridge fails that entry. If you submit a request in which none
of the entries have each of these properties, EventBridge fails the entire request.
Type: String
Required: No
DetailType
A free-form string, with a maximum of 128 characters, used to decide what fields to expect in
the event detail.
Note
Detail, DetailType, and Source are required for EventBridge to successfully send an
event to an event bus. If you include event entries in a request that do not include each
of those properties, EventBridge fails that entry. If you submit a request in which none
of the entries have each of these properties, EventBridge fails the entire request.
Type: String
Required: No
Resources
AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns.
Any number, including zero, may be present.
Required: No
Source
Note
Detail, DetailType, and Source are required for EventBridge to successfully send an
event to an event bus. If you include event entries in a request that do not include each
of those properties, EventBridge fails that entry. If you submit a request in which none
of the entries have each of these properties, EventBridge fails the entire request.
Type: String
Pattern: aws\.partner(/[\.\-_A-Za-z0-9]+){2,}
Required: No
Time
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutPartnerEventsResultEntry
The result of an event entry the partner submitted in this request. If the event was successfully
submitted, the entry has the event ID in it. Otherwise, you can use the error code and error
message to identify the problem with the entry.
Contents
ErrorCode
The error code that indicates why the event submission failed.
Type: String
Required: No
ErrorMessage
The error message that explains why the event submission failed.
Type: String
Required: No
EventId
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
PutTargetsResultEntry
Represents a target that failed to be added to a rule.
Contents
ErrorCode
The error code that indicates why the target addition failed. If the value is
ConcurrentModificationException, too many requests were made at the same time.
Type: String
Required: No
ErrorMessage
The error message that explains why the target addition failed.
Type: String
Required: No
TargetId
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RedshiftDataParameters
These are custom parameters to be used when the target is a Amazon Redshift cluster to invoke
the Amazon Redshift Data API ExecuteStatement based on EventBridge events.
Contents
Database
The name of the database. Required when authenticating using temporary credentials.
Type: String
Required: Yes
DbUser
The database user name. Required when authenticating using temporary credentials.
Type: String
Required: No
SecretManagerArn
The name or ARN of the secret that enables access to the database. Required when
authenticating using AWS Secrets Manager.
Type: String
Pattern: (^arn:aws([a-z]|\-)*:secretsmanager:[a-z0-9-.]+:.*)|(\$(\.
[\w_-]+(\[(\d+|\*)\])*)*)
Required: No
Sql
Type: String
Required: No
Sqls
One or more SQL statements to run. The SQL statements are run as a single transaction. They
run serially in the order of the array. Subsequent SQL statements don't start until the previous
statement in the array completes. If any SQL statement fails, then because they are run as one
transaction, all work is rolled back.
Required: No
StatementName
The name of the SQL statement. You can name the SQL statement when you create it to
identify the query.
Type: String
Required: No
WithEvent
Indicates whether to send an event back to EventBridge after the SQL statement runs.
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RemoveTargetsResultEntry
Represents a target that failed to be removed from a rule.
Contents
ErrorCode
The error code that indicates why the target removal failed. If the value is
ConcurrentModificationException, too many requests were made at the same time.
Type: String
Required: No
ErrorMessage
The error message that explains why the target removal failed.
Type: String
Required: No
TargetId
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Replay
A Replay object that contains details about a replay.
Contents
EventEndTime
A time stamp for the time to start replaying events. Any event with a creation time prior to the
EventEndTime specified is replayed.
Type: Timestamp
Required: No
EventLastReplayedTime
A time stamp for the time that the last event was replayed.
Type: Timestamp
Required: No
EventSourceArn
Type: String
Required: No
EventStartTime
A time stamp for the time to start replaying events. This is determined by the time in the event
as described in Time.
Type: Timestamp
Required: No
ReplayEndTime
Type: Timestamp
Required: No
ReplayName
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
ReplayStartTime
Type: Timestamp
Required: No
State
Type: String
Required: No
StateReason
Type: String
Pattern: .*
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReplayDestination
A ReplayDestination object that contains details about a replay.
Contents
Arn
The ARN of the event bus to replay event to. You can replay events only to the event bus
specified to create the archive.
Type: String
Required: Yes
FilterArns
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
ReplicationConfig
Endpoints can replicate all events to the secondary Region.
Contents
State
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RetryPolicy
A RetryPolicy object that includes information about the retry policy settings.
Contents
MaximumEventAgeInSeconds
Type: Integer
Required: No
MaximumRetryAttempts
The maximum number of retry attempts to make before the request fails. Retry attempts
continue until either the maximum number of attempts is made or until the duration of the
MaximumEventAgeInSeconds is met.
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RoutingConfig
The routing configuration of the endpoint.
Contents
FailoverConfig
The failover configuration for an endpoint. This includes what triggers failover and what
happens when it's triggered.
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Rule
Contains information about a rule in Amazon EventBridge.
Contents
Arn
Type: String
Required: No
Description
Type: String
Required: No
EventBusName
The name or ARN of the event bus associated with the rule. If you omit this, the default event
bus is used.
Type: String
Pattern: [/\.\-_A-Za-z0-9]+
Required: No
EventPattern
The event pattern of the rule. For more information, see Events and Event Patterns in the
Amazon EventBridge User Guide .
Type: String
Required: No
ManagedBy
If the rule was created on behalf of your account by an AWS service, this field displays the
principal name of the service that created the rule.
Type: String
Required: No
Name
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: No
RoleArn
The Amazon Resource Name (ARN) of the role that is used for target invocation.
If you're setting an event bus in another account as the target and that account granted
permission to your account through an organization instead of directly by the account ID, you
must specify a RoleArn with proper permissions in the Target structure, instead of here in
this parameter.
Type: String
Required: No
ScheduleExpression
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". For more
information, see Creating an Amazon EventBridge rule that runs on a schedule.
Type: String
Required: No
State
Management events provide visibility into management operations that are performed on
resources in your AWS account. These are also known as control plane operations. For more
information, see Logging management events in the CloudTrail User Guide, and Filtering
management events from AWS services in the Amazon EventBridge User Guide .
This value is only valid for rules on the default event bus or custom event buses. It does not
apply to partner event buses.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RunCommandParameters
This parameter contains the criteria (either InstanceIds or a tag) used to specify which EC2
instances are to be sent the command.
Contents
RunCommandTargets
Currently, we support including only one RunCommandTarget block, which specifies either an
array of InstanceIds or a tag.
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
RunCommandTarget
Information about the EC2 instances that are to be sent the command, specified as key-value pairs.
Each RunCommandTarget block can include only one key, but this key may specify multiple values.
Contents
Key
Type: String
Pattern: ^[\p{L}\p{Z}\p{N}_.:/=+\-@]*$
Required: Yes
Values
If Key is tag: tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of
Amazon EC2 instance IDs.
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SageMakerPipelineParameter
Name/Value pair of a parameter to start execution of a SageMaker Model Building Pipeline.
Contents
Name
Type: String
Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
Required: Yes
Value
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SageMakerPipelineParameters
These are custom parameters to use when the target is a SageMaker Model Building Pipeline that
starts based on EventBridge events.
Contents
PipelineParameterList
List of Parameter names and values for SageMaker Model Building Pipeline execution.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Secondary
The secondary Region that processes events when failover is triggered or replication is enabled.
Contents
Route
Type: String
Pattern: ^[\-a-z0-9]+$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
SqsParameters
This structure includes the custom parameter to be used when the target is an SQS FIFO queue.
Contents
MessageGroupId
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Tag
A key-value pair associated with an AWS resource. In EventBridge, rules and event buses support
tagging.
Contents
Key
A string you can use to assign a value. The combination of tag keys and values can help you
organize and categorize your resources.
Type: String
Required: Yes
Value
Type: String
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
Target
Targets are the resources to be invoked when a rule is triggered. For a complete list of services and
resources that can be set as a target, see PutTargets.
If you are setting the event bus of another account as the target, and that account granted
permission to your account through an organization instead of directly by the account ID, then you
must specify a RoleArn with proper permissions in the Target structure. For more information,
see Sending and Receiving Events Between AWS Accounts in the Amazon EventBridge User Guide.
Contents
Arn
Type: String
Required: Yes
Id
The ID of the target within the specified rule. Use this ID to reference the target when updating
the rule. We recommend using a memorable and unique string.
Type: String
Pattern: [\.\-_A-Za-z0-9]+
Required: Yes
AppSyncParameters
Contains the GraphQL operation to be parsed and executed, if the event target is an AWS
AppSync API.
Required: No
BatchParameters
If the event target is an AWS Batch job, this contains the job definition, job name, and other
parameters. For more information, see Jobs in the AWS Batch User Guide.
Required: No
DeadLetterConfig
The DeadLetterConfig that defines the target queue to send dead-letter queue events to.
Required: No
EcsParameters
Contains the Amazon ECS task definition and task count to be used, if the event target is an
Amazon ECS task. For more information about Amazon ECS tasks, see Task Definitions in the
Amazon EC2 Container Service Developer Guide.
Required: No
HttpParameters
Contains the HTTP parameters to use when the target is a API Gateway endpoint or EventBridge
ApiDestination.
If you specify an API Gateway API or EventBridge ApiDestination as a target, you can use this
parameter to specify headers, path parameters, and query string keys/values as part of your
target invoking request. If you're using ApiDestinations, the corresponding Connection can also
have these values configured. In case of any conflicting keys, values from the Connection take
precedence.
Required: No
Input
Valid JSON text passed to the target. In this case, nothing from the event itself is passed to
the target. For more information, see The JavaScript Object Notation (JSON) Data Interchange
Format.
Type: String
Required: No
InputPath
The value of the JSONPath that is used for extracting part of the matched event when passing
it to the target. You may use JSON dot notation or bracket notation. For more information
about JSON paths, see JSONPath.
Type: String
Required: No
InputTransformer
Settings to enable you to provide custom input to a target based on certain event data. You can
extract one or more key-value pairs from the event and then use that data to send customized
input to the target.
Required: No
KinesisParameters
The custom parameter you can use to control the shard assignment, when the target is a Kinesis
data stream. If you do not include this parameter, the default is to use the eventId as the
partition key.
Required: No
RedshiftDataParameters
Contains the Amazon Redshift Data API parameters to use when the target is a Amazon
Redshift cluster.
If you specify a Amazon Redshift Cluster as a Target, you can use this to specify parameters to
invoke the Amazon Redshift Data API ExecuteStatement based on EventBridge events.
Required: No
RetryPolicy
The RetryPolicy object that contains the retry policy configuration to use for the dead-letter
queue.
Required: No
RoleArn
The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is
triggered. If one rule triggers multiple targets, you can use a different IAM role for each target.
Type: String
Required: No
RunCommandParameters
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
Required: No
SageMakerPipelineParameters
Contains the SageMaker Model Building Pipeline parameters to start execution of a SageMaker
Model Building Pipeline.
If you specify a SageMaker Model Building Pipeline as a target, you can use this to specify
parameters to start a pipeline execution based on EventBridge events.
Required: No
SqsParameters
Contains the message group ID to use when the target is a FIFO queue.
If you specify an SQS FIFO queue as a target, the queue must have content-based deduplication
enabled.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateConnectionApiKeyAuthRequestParameters
Contains the API key authorization parameters to use to update the connection.
Contents
ApiKeyName
Type: String
Required: No
ApiKeyValue
The value associated with teh API key to use for authorization.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateConnectionAuthRequestParameters
Contains the additional parameters to use for the connection.
Contents
ApiKeyAuthParameters
Required: No
BasicAuthParameters
Required: No
InvocationHttpParameters
A ConnectionHttpParameters object that contains the additional parameters to use for the
connection.
Required: No
OAuthParameters
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateConnectionBasicAuthRequestParameters
Contains the Basic authorization parameters for the connection.
Contents
Password
The password associated with the user name to use for Basic authorization.
Type: String
Required: No
Username
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateConnectionOAuthClientRequestParameters
Contains the OAuth authorization parameters to use for the connection.
Contents
ClientID
Type: String
Required: No
ClientSecret
The client secret assciated with the client ID to use for OAuth authorization.
Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
UpdateConnectionOAuthRequestParameters
Contains the OAuth request parameters to use for the connection.
Contents
AuthorizationEndpoint
The URL to the authorization endpoint when OAuth is specified as the authorization type.
Type: String
Pattern: ^((%[0-9A-Fa-f]{2}|[-()_.!~*';/?:@\x26=+$,A-Za-z0-9])+)
([).!';/?:,])?$
Required: No
ClientParameters
Required: No
HttpMethod
Type: String
Required: No
OAuthHttpParameters
The additional HTTP parameters used for the OAuth authorization request.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the
following:
EventBridge Endpoints
An endpoint is a URL that serves as an entry point for a web service. You can select a regional
endpoint when you make your requests to reduce latency. For information about the endpoints
used with EventBridge, see Regions and Endpoints in the Amazon Web Services General Reference.
Query Parameters
Each query request must include some common parameters to handle authentication and selection
of an action. For more information, see Common Parameters.
Some API operations take lists of parameters. These lists are specified using the following notation:
param.member.n. Values of n are integers starting from 1. All lists of parameters must follow
this notation, including lists that contain only one parameter. For example, a Query parameter list
looks like this:
&attribute.member.1=this
&attribute.member.2=that
Request Identifiers
In every response from an AWS Query API, there is a ResponseMetadata element, which contains
a RequestId element. This string is a unique identifier that AWS assigns to provide tracking
information. Although RequestId is included as part of every response, it is not listed on the
individual API documentation pages to improve readability and to reduce redundancy.
Available Libraries
AWS provides libraries, sample code, tutorials, and other resources for software developers who
prefer to build applications using language-specific APIs instead of the command-line tools and
Query API. These libraries provide basic functions (not included in the APIs), such as request
authentication, request retries, and error handling so that it is easier to get started. Libraries and
resources are available for the following languages and platforms:
For libraries and sample code in all languages, see Sample Code & Libraries.
Common Parameters
The following list contains the parameters that all actions use for signing Signature Version 4
requests with a query string. Any action-specific parameters are listed in the topic for that action.
For more information about Signature Version 4, see Signing AWS API requests in the IAM User
Guide.
Action
Type: string
Required: Yes
Version
The API version that the request is written for, expressed in the format YYYY-MM-DD.
Type: string
Required: Yes
X-Amz-Algorithm
The hash algorithm that you used to create the request signature.
Condition: Specify this parameter when you include authentication information in a query
string instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-Credential
The credential scope value, which is a string that includes your access key, the date, the region
you are targeting, the service you are requesting, and a termination string ("aws4_request").
The value is expressed in the following format: access_key/YYYYMMDD/region/service/
aws4_request.
For more information, see Create a signed AWS API request in the IAM User Guide.
Condition: Specify this parameter when you include authentication information in a query
string instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-Date
The date that is used to create the signature. The format must be ISO 8601 basic format
(YYYYMMDD'T'HHMMSS'Z'). For example, the following date time is a valid X-Amz-Date value:
20120325T120000Z.
Condition: X-Amz-Date is optional for all requests; it can be used to override the date used for
signing requests. If the Date header is specified in the ISO 8601 basic format, X-Amz-Date is not
required. When X-Amz-Date is used, it always overrides the value of the Date header. For more
information, see Elements of an AWS API request signature in the IAM User Guide.
Type: string
Required: Conditional
X-Amz-Security-Token
The temporary security token that was obtained through a call to AWS Security Token Service
(AWS STS). For a list of services that support temporary security credentials from AWS STS, see
AWS services that work with IAM in the IAM User Guide.
Condition: If you're using temporary security credentials from AWS STS, you must include the
security token.
Type: string
Required: Conditional
X-Amz-Signature
Specifies the hex-encoded signature that was calculated from the string to sign and the derived
signing key.
Condition: Specify this parameter when you include authentication information in a query
string instead of in the HTTP authorization header.
Type: string
Required: Conditional
X-Amz-SignedHeaders
Specifies all the HTTP headers that were included as part of the canonical request. For more
information about specifying signed headers, see Create a signed AWS API request in the IAM
User Guide.
Condition: Specify this parameter when you include authentication information in a query
string instead of in the HTTP authorization header.
Type: string
Required: Conditional
Common Errors
This section lists the errors common to the API actions of all AWS services. For errors specific to an
API action for this service, see the topic for that API action.
AccessDeniedException
The request processing has failed because of an unknown error, exception or failure.
The action or operation requested is invalid. Verify that the action is typed correctly.
The X.509 certificate or AWS access key ID provided does not exist in our records.
RequestExpired
The request reached the service more than 15 minutes after the date stamp on the request or
more than 15 minutes after the request expiration date (such as for pre-signed URLs), or the
date stamp on the request is more than 15 minutes in the future.