Class: AWS.EventBridge
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.EventBridge
- Identifier:
- eventbridge
- API Version:
- 2015-10-07
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
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.
Sending a Request Using EventBridge
var eventbridge = new AWS.EventBridge();
eventbridge.listRuleNamesByTarget(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the EventBridge object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var eventbridge = new AWS.EventBridge({apiVersion: '2015-10-07'});
You can also set the API version globally in AWS.config.apiVersions using
the eventbridge service identifier:
AWS.config.apiVersions = {
eventbridge: '2015-10-07',
// other service API versions
};
var eventbridge = new AWS.EventBridge();
Constructor Summary collapse
-
new AWS.EventBridge(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
activateEventSource(params = {}, callback) ⇒ AWS.Request
Activates a partner event source that has been deactivated.
-
cancelReplay(params = {}, callback) ⇒ AWS.Request
Cancels the specified replay.
.
-
createApiDestination(params = {}, callback) ⇒ AWS.Request
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.
. -
createArchive(params = {}, callback) ⇒ AWS.Request
Creates an archive of events with the specified settings.
-
createConnection(params = {}, callback) ⇒ AWS.Request
Creates a connection.
-
createEndpoint(params = {}, callback) ⇒ AWS.Request
Creates a global endpoint.
-
createEventBus(params = {}, callback) ⇒ AWS.Request
Creates a new event bus within your account.
-
createPartnerEventSource(params = {}, callback) ⇒ AWS.Request
Called by an SaaS partner to create a partner event source.
-
deactivateEventSource(params = {}, callback) ⇒ AWS.Request
You can use this operation to temporarily stop receiving events from the specified partner event source.
-
deauthorizeConnection(params = {}, callback) ⇒ AWS.Request
Removes all authorization parameters from the connection.
-
deleteApiDestination(params = {}, callback) ⇒ AWS.Request
Deletes the specified API destination.
.
-
deleteArchive(params = {}, callback) ⇒ AWS.Request
Deletes the specified archive.
.
-
deleteConnection(params = {}, callback) ⇒ AWS.Request
Deletes a connection.
.
-
deleteEndpoint(params = {}, callback) ⇒ AWS.Request
Delete an existing global endpoint.
-
deleteEventBus(params = {}, callback) ⇒ AWS.Request
Deletes the specified custom event bus or partner event bus.
-
deletePartnerEventSource(params = {}, callback) ⇒ AWS.Request
This operation is used by SaaS partners to delete a partner event source.
-
deleteRule(params = {}, callback) ⇒ AWS.Request
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.
-
describeApiDestination(params = {}, callback) ⇒ AWS.Request
Retrieves details about an API destination.
.
-
describeArchive(params = {}, callback) ⇒ AWS.Request
Retrieves details about an archive.
.
-
describeConnection(params = {}, callback) ⇒ AWS.Request
Retrieves details about a connection.
.
-
describeEndpoint(params = {}, callback) ⇒ AWS.Request
Get the information about an existing global endpoint.
-
describeEventBus(params = {}, callback) ⇒ AWS.Request
Displays details about an event bus in your account.
-
describeEventSource(params = {}, callback) ⇒ AWS.Request
This operation lists details about a partner event source that is shared with your account.
.
-
describePartnerEventSource(params = {}, callback) ⇒ AWS.Request
An SaaS partner can use this operation to list details about a partner event source that they have created.
-
describeReplay(params = {}, callback) ⇒ AWS.Request
Retrieves details about a replay.
-
describeRule(params = {}, callback) ⇒ AWS.Request
Describes the specified rule.
DescribeRule does not list the targets of a rule.
-
disableRule(params = {}, callback) ⇒ AWS.Request
Disables the specified rule.
-
enableRule(params = {}, callback) ⇒ AWS.Request
Enables the specified rule.
-
listApiDestinations(params = {}, callback) ⇒ AWS.Request
Retrieves a list of API destination in the account in the current Region.
.
-
listArchives(params = {}, callback) ⇒ AWS.Request
Lists your archives.
-
listConnections(params = {}, callback) ⇒ AWS.Request
Retrieves a list of connections from the account.
.
-
listEndpoints(params = {}, callback) ⇒ AWS.Request
List the global endpoints associated with this account.
-
listEventBuses(params = {}, callback) ⇒ AWS.Request
Lists all the event buses in your account, including the default event bus, custom event buses, and partner event buses.
.
-
listEventSources(params = {}, callback) ⇒ AWS.Request
You can use this to see all the partner event sources that have been shared with your Amazon Web Services account.
-
listPartnerEventSourceAccounts(params = {}, callback) ⇒ AWS.Request
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.
-
listPartnerEventSources(params = {}, callback) ⇒ AWS.Request
An SaaS partner can use this operation to list all the partner event source names that they have created.
-
listReplays(params = {}, callback) ⇒ AWS.Request
Lists your replays.
-
listRuleNamesByTarget(params = {}, callback) ⇒ AWS.Request
Lists the rules for the specified target.
-
listRules(params = {}, callback) ⇒ AWS.Request
Lists your Amazon EventBridge rules.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Displays the tags associated with an EventBridge resource.
-
listTargetsByRule(params = {}, callback) ⇒ AWS.Request
Lists the targets assigned to the specified rule.
The maximum number of results per page for requests is 100.
. -
putEvents(params = {}, callback) ⇒ AWS.Request
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.
-
putPartnerEvents(params = {}, callback) ⇒ AWS.Request
This is used by SaaS partners to write events to a customer's partner event bus.
-
putPermission(params = {}, callback) ⇒ AWS.Request
Running
PutPermissionpermits the specified Amazon Web Services account or Amazon Web Services organization to put events to the specified event bus. -
putRule(params = {}, callback) ⇒ AWS.Request
Creates or updates the specified rule.
-
putTargets(params = {}, callback) ⇒ AWS.Request
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.
The maximum number of entries per request is 10.
Note: Each rule can have up to five (5) targets associated with it at one time.- removePermission(params = {}, callback) ⇒ AWS.Request
Revokes the permission of another Amazon Web Services account to be able to put events to the specified event bus.
- removeTargets(params = {}, callback) ⇒ AWS.Request
Removes the specified targets from the specified rule.
- startReplay(params = {}, callback) ⇒ AWS.Request
Starts the specified replay.
- tagResource(params = {}, callback) ⇒ AWS.Request
Assigns one or more tags (key-value pairs) to the specified EventBridge resource.
- testEventPattern(params = {}, callback) ⇒ AWS.Request
Tests whether the specified event pattern matches the provided event.
Most services in Amazon Web Services treat : or / as the same character in Amazon Resource Names (ARNs).
- untagResource(params = {}, callback) ⇒ AWS.Request
Removes one or more tags from the specified EventBridge resource.
- updateApiDestination(params = {}, callback) ⇒ AWS.Request
Updates an API destination.
.
- updateArchive(params = {}, callback) ⇒ AWS.Request
Updates the specified archive.
.
- updateConnection(params = {}, callback) ⇒ AWS.Request
Updates settings for a connection.
.
- updateEndpoint(params = {}, callback) ⇒ AWS.Request
Update an existing endpoint.
- updateEventBus(params = {}, callback) ⇒ AWS.Request
Updates the specified event bus.
.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, defineService
Constructor Details
new AWS.EventBridge(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
activateEventSource(params = {}, callback) ⇒ AWS.Request
Activates a partner event source that has been deactivated. Once activated, your matching event bus will start receiving events from the event source.
createApiDestination(params = {}, callback) ⇒ AWS.Request
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.
createArchive(params = {}, callback) ⇒ AWS.Request
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
CreateArchiveon an event bus set to use a customer managed key for encryption. - You call
CreateDiscovereron an event bus set to use a customer managed key for encryption. - You call
UpdatedEventBusto set a customer managed key on an event bus with an archives or schema discovery enabled.
- removePermission(params = {}, callback) ⇒ AWS.Request