Skip to main content

endpoints

Creates, updates, deletes, gets or lists an endpoints resource.

Overview

Nameendpoints
TypeResource
Idaws.events.endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the endpoint you asked for information about. (pattern: <code>^arn:aws([a-z]|-):events:([a-z]|\d|-):([0-9]{12})?:endpoint/[/.-_A-Za-z0-9]+$</code>)
creation_timestring (date-time)The time the endpoint you asked for information about was created.
descriptionstringThe description of the endpoint you asked for information about. (pattern: <code>.*</code>)
endpoint_idstringThe ID of the endpoint you asked for information about. (pattern: <code>^[A-Za-z0-9-]+[.][A-Za-z0-9-]+$</code>)
endpoint_urlstringThe URL of the endpoint you asked for information about. (pattern: <code>^(https:​//)?[.-a-z0-9]+$</code>)
event_busesarrayThe event buses being used by the endpoint you asked for information about.
last_modified_timestring (date-time)The last time the endpoint you asked for information about was modified.
namestringThe name of the endpoint you asked for information about. (pattern: <code>[.-_A-Za-z0-9]+</code>)
replication_configobjectWhether replication is enabled or disabled for the endpoint you asked for information about.
role_arnstringThe ARN of the role used by the endpoint you asked for information about. (pattern: <code>^arn:aws[a-z-]*:iam::\d{12}:role/[\w+=,.@/-]+$</code>)
routing_configobjectThe routing configuration of the endpoint you asked for information about.
statestringThe current state of the endpoint you asked for information about. (ACTIVE, CREATING, UPDATING, DELETING, CREATE_FAILED, UPDATE_FAILED, DELETE_FAILED)
state_reasonstringThe reason the endpoint you asked for information about is in its current state. (pattern: <code>.*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_endpointselectregionGet 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 .
create_endpointinsertregion, RoutingConfig, EventBusesCreates 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.
update_endpointupdateregionUpdate 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 .
delete_endpointdeleteregionDelete 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 .
list_endpointsexecregionList 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 .

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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 .

SELECT
arn,
creation_time,
description,
endpoint_id,
endpoint_url,
event_buses,
last_modified_time,
name,
replication_config,
role_arn,
routing_config,
state,
state_reason
FROM aws.events.endpoints
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.events.endpoints (
Name,
Description,
RoutingConfig,
ReplicationConfig,
EventBuses,
RoleArn,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ RoutingConfig }}' /* required */,
'{{ ReplicationConfig }}',
'{{ EventBuses }}' /* required */,
'{{ RoleArn }}',
'{{ region }}'
RETURNING
arn,
event_buses,
name,
replication_config,
role_arn,
routing_config,
state
;

UPDATE examples

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 .

UPDATE aws.events.endpoints
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
RoutingConfig = '{{ RoutingConfig }}',
ReplicationConfig = '{{ ReplicationConfig }}',
EventBuses = '{{ EventBuses }}',
RoleArn = '{{ RoleArn }}'
WHERE
region = '{{ region }}' --required
RETURNING
arn,
endpoint_id,
endpoint_url,
event_buses,
name,
replication_config,
role_arn,
routing_config,
state;

DELETE examples

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 .

DELETE FROM aws.events.endpoints
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

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 .

EXEC aws.events.endpoints.list_endpoints
@region='{{ region }}' --required
@@json=
'{
"NamePrefix": "{{ NamePrefix }}",
"HomeRegion": "{{ HomeRegion }}",
"NextToken": "{{ NextToken }}",
"MaxResults": {{ MaxResults }}
}'
;