EventBridgeClient

Amazon EventBridge helps you to respond to state changes in your Amazon Web Services resources. When your resources change state, they automatically send events to an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a predetermined schedule. For example, you can configure rules to:

  • Automatically invoke an Lambda function to update DNS entries when an event notifies you that Amazon EC2 instance enters the running state.

  • Direct specific API records from CloudTrail to an Amazon Kinesis data stream for detailed analysis of potential security or availability risks.

  • Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.

For more information about the features of Amazon EventBridge, see the Amazon EventBridge User Guide.

Properties

Link copied to clipboard
abstract override val config: EventBridgeClient.Config

EventBridgeClient's configuration

Functions

Link copied to clipboard

Activates a partner event source that has been deactivated. Once activated, your matching event bus will start receiving events from the event source.

Link copied to clipboard

Cancels the specified replay.

Link copied to clipboard

Creates an API destination, which is an HTTP invocation endpoint configured as a target for events.

Link copied to clipboard

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.

Link copied to clipboard

Creates a connection. A connection defines the authorization type and credentials to use for authorization with an API destination HTTP endpoint.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Called by an SaaS partner to create a partner event source. This operation is not used by Amazon Web Services customers.

Link copied to clipboard

You can use this operation to temporarily stop receiving events from the specified partner event source. The matching event bus is not deleted.

Link copied to clipboard

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.

Link copied to clipboard

Deletes the specified API destination.

Link copied to clipboard

Deletes the specified archive.

Link copied to clipboard

Deletes a connection.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

This operation is used by SaaS partners to delete a partner event source. This operation is not used by Amazon Web Services customers.

Link copied to clipboard
abstract suspend fun deleteRule(input: DeleteRuleRequest): DeleteRuleResponse

Deletes the specified rule.

Link copied to clipboard

Retrieves details about an API destination.

Link copied to clipboard

Retrieves details about an archive.

Link copied to clipboard

Retrieves details about a connection.

Link copied to clipboard

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.

Link copied to clipboard
abstract suspend fun describeEventBus(input: DescribeEventBusRequest = DescribeEventBusRequest { }): DescribeEventBusResponse

Displays details about an event bus in your account. This can include the external Amazon Web Services 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.

Link copied to clipboard

This operation lists details about a partner event source that is shared with your account.

Link copied to clipboard

An SaaS partner can use this operation to list details about a partner event source that they have created. Amazon Web Services customers do not use this operation. Instead, Amazon Web Services customers can use DescribeEventSource to see details about a partner event source that is shared with them.

Link copied to clipboard

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.

Link copied to clipboard

Describes the specified rule.

Link copied to clipboard
abstract suspend fun disableRule(input: DisableRuleRequest): DisableRuleResponse

Disables the specified rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression.

Link copied to clipboard
abstract suspend fun enableRule(input: EnableRuleRequest): EnableRuleResponse

Enables the specified rule. If the rule does not exist, the operation fails.

Link copied to clipboard
abstract suspend fun listApiDestinations(input: ListApiDestinationsRequest = ListApiDestinationsRequest { }): ListApiDestinationsResponse

Retrieves a list of API destination in the account in the current Region.

Link copied to clipboard
abstract suspend fun listArchives(input: ListArchivesRequest = ListArchivesRequest { }): ListArchivesResponse

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.

Link copied to clipboard
abstract suspend fun listConnections(input: ListConnectionsRequest = ListConnectionsRequest { }): ListConnectionsResponse

Retrieves a list of connections from the account.

Link copied to clipboard
abstract suspend fun listEndpoints(input: ListEndpointsRequest = ListEndpointsRequest { }): ListEndpointsResponse

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.

Link copied to clipboard
abstract suspend fun listEventBuses(input: ListEventBusesRequest = ListEventBusesRequest { }): ListEventBusesResponse

Lists all the event buses in your account, including the default event bus, custom event buses, and partner event buses.

Link copied to clipboard
abstract suspend fun listEventSources(input: ListEventSourcesRequest = ListEventSourcesRequest { }): ListEventSourcesResponse

You can use this to see all the partner event sources that have been shared with your Amazon Web Services account. For more information about partner event sources, see CreateEventBus.

Link copied to clipboard

An SaaS partner can use this operation to display the Amazon Web Services account ID that a particular partner event source name is associated with. This operation is not used by Amazon Web Services customers.

Link copied to clipboard

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 Amazon Web Services customers.

Link copied to clipboard
abstract suspend fun listReplays(input: ListReplaysRequest = ListReplaysRequest { }): ListReplaysResponse

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.

Link copied to clipboard

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.

Link copied to clipboard
abstract suspend fun listRules(input: ListRulesRequest = ListRulesRequest { }): ListRulesResponse

Lists your Amazon EventBridge rules. You can either list all the rules or you can provide a prefix to match to the rule names.

Link copied to clipboard

Displays the tags associated with an EventBridge resource. In EventBridge, rules and event buses can be tagged.

Link copied to clipboard

Lists the targets assigned to the specified rule.

Link copied to clipboard
abstract suspend fun putEvents(input: PutEventsRequest): PutEventsResponse

Sends custom events to Amazon EventBridge so that they can be matched to rules.

Link copied to clipboard

This is used by SaaS partners to write events to a customer's partner event bus. Amazon Web Services customers do not use this operation.

Link copied to clipboard
abstract suspend fun putPermission(input: PutPermissionRequest = PutPermissionRequest { }): PutPermissionResponse

Running PutPermission permits the specified Amazon Web Services account or Amazon Web Services organization to put events to the specified event bus. Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these events arriving to an event bus in your account.

Link copied to clipboard
abstract suspend fun putRule(input: PutRuleRequest): PutRuleResponse

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.

Link copied to clipboard
abstract suspend fun putTargets(input: PutTargetsRequest): PutTargetsResponse

Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule.

Link copied to clipboard
abstract suspend fun removePermission(input: RemovePermissionRequest = RemovePermissionRequest { }): RemovePermissionResponse

Revokes the permission of another Amazon Web Services 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.

Link copied to clipboard

Removes the specified targets from the specified rule. When the rule is triggered, those targets are no longer be invoked.

Link copied to clipboard
abstract suspend fun startReplay(input: StartReplayRequest): StartReplayResponse

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.

Link copied to clipboard
abstract suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

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.

Link copied to clipboard

Tests whether the specified event pattern matches the provided event.

Link copied to clipboard

Removes one or more tags from the specified EventBridge resource. In Amazon EventBridge (CloudWatch Events), rules and event buses can be tagged.

Link copied to clipboard

Updates an API destination.

Link copied to clipboard

Updates the specified archive.

Link copied to clipboard

Updates settings for a connection.

Link copied to clipboard

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.

Inherited functions

Link copied to clipboard

Activates a partner event source that has been deactivated. Once activated, your matching event bus will start receiving events from the event source.

Link copied to clipboard

Cancels the specified replay.

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard

Creates an API destination, which is an HTTP invocation endpoint configured as a target for events.

Link copied to clipboard

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.

Link copied to clipboard

Creates a connection. A connection defines the authorization type and credentials to use for authorization with an API destination HTTP endpoint.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Called by an SaaS partner to create a partner event source. This operation is not used by Amazon Web Services customers.

Link copied to clipboard

You can use this operation to temporarily stop receiving events from the specified partner event source. The matching event bus is not deleted.

Link copied to clipboard

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.

Link copied to clipboard

Deletes the specified API destination.

Link copied to clipboard

Deletes the specified archive.

Link copied to clipboard

Deletes a connection.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

This operation is used by SaaS partners to delete a partner event source. This operation is not used by Amazon Web Services customers.

Link copied to clipboard
inline suspend fun EventBridgeClient.deleteRule(crossinline block: DeleteRuleRequest.Builder.() -> Unit): DeleteRuleResponse

Deletes the specified rule.

Link copied to clipboard

Retrieves details about an API destination.

Link copied to clipboard

Retrieves details about an archive.

Link copied to clipboard

Retrieves details about a connection.

Link copied to clipboard

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.

Link copied to clipboard

Displays details about an event bus in your account. This can include the external Amazon Web Services 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.

Link copied to clipboard

This operation lists details about a partner event source that is shared with your account.

Link copied to clipboard

An SaaS partner can use this operation to list details about a partner event source that they have created. Amazon Web Services customers do not use this operation. Instead, Amazon Web Services customers can use DescribeEventSource to see details about a partner event source that is shared with them.

Link copied to clipboard

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.

Link copied to clipboard

Describes the specified rule.

Link copied to clipboard

Disables the specified rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression.

Link copied to clipboard
inline suspend fun EventBridgeClient.enableRule(crossinline block: EnableRuleRequest.Builder.() -> Unit): EnableRuleResponse

Enables the specified rule. If the rule does not exist, the operation fails.

Link copied to clipboard

Retrieves a list of API destination in the account in the current Region.

Link copied to clipboard

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.

Link copied to clipboard

Retrieves a list of connections from the account.

Link copied to clipboard

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.

Link copied to clipboard

Lists all the event buses in your account, including the default event bus, custom event buses, and partner event buses.

Link copied to clipboard

You can use this to see all the partner event sources that have been shared with your Amazon Web Services account. For more information about partner event sources, see CreateEventBus.

Link copied to clipboard

An SaaS partner can use this operation to display the Amazon Web Services account ID that a particular partner event source name is associated with. This operation is not used by Amazon Web Services customers.

Link copied to clipboard

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 Amazon Web Services customers.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard
inline suspend fun EventBridgeClient.listRules(crossinline block: ListRulesRequest.Builder.() -> Unit): ListRulesResponse

Lists your Amazon EventBridge rules. You can either list all the rules or you can provide a prefix to match to the rule names.

Link copied to clipboard

Displays the tags associated with an EventBridge resource. In EventBridge, rules and event buses can be tagged.

Link copied to clipboard

Lists the targets assigned to the specified rule.

Link copied to clipboard
inline suspend fun EventBridgeClient.putEvents(crossinline block: PutEventsRequest.Builder.() -> Unit): PutEventsResponse

Sends custom events to Amazon EventBridge so that they can be matched to rules.

Link copied to clipboard

This is used by SaaS partners to write events to a customer's partner event bus. Amazon Web Services customers do not use this operation.

Link copied to clipboard

Running PutPermission permits the specified Amazon Web Services account or Amazon Web Services organization to put events to the specified event bus. Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these events arriving to an event bus in your account.

Link copied to clipboard
inline suspend fun EventBridgeClient.putRule(crossinline block: PutRuleRequest.Builder.() -> Unit): PutRuleResponse

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.

Link copied to clipboard
inline suspend fun EventBridgeClient.putTargets(crossinline block: PutTargetsRequest.Builder.() -> Unit): PutTargetsResponse

Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule.

Link copied to clipboard

Revokes the permission of another Amazon Web Services 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.

Link copied to clipboard

Removes the specified targets from the specified rule. When the rule is triggered, those targets are no longer be invoked.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Tests whether the specified event pattern matches the provided event.

Link copied to clipboard

Removes one or more tags from the specified EventBridge resource. In Amazon EventBridge (CloudWatch Events), rules and event buses can be tagged.

Link copied to clipboard

Updates an API destination.

Link copied to clipboard

Updates the specified archive.

Link copied to clipboard

Updates settings for a connection.

Link copied to clipboard

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.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.