Skip to main content

endpoints

Creates, updates, deletes or gets an endpoint resource or lists endpoints in a region

Overview

Nameendpoints
TypeResource
DescriptionResource Type definition for AWS::Events::Endpoint.
Idaws.events.endpoints

Fields

NameDatatypeDescription
namestring
arnstring
role_arnstring
descriptionstring
routing_configobject
replication_configobject
event_busesarray
endpoint_idstring
endpoint_urlstring
statestring
state_reasonstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTRoutingConfig, EventBuses, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all endpoints in a region.

SELECT
region,
name,
arn,
role_arn,
description,
routing_config,
replication_config,
event_buses,
endpoint_id,
endpoint_url,
state,
state_reason
FROM aws.events.endpoints
WHERE region = 'us-east-1';

Gets all properties from an individual endpoint.

SELECT
region,
name,
arn,
role_arn,
description,
routing_config,
replication_config,
event_buses,
endpoint_id,
endpoint_url,
state,
state_reason
FROM aws.events.endpoints
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

Use the following StackQL query and manifest file to create a new endpoint resource, using stack-deploy.

/*+ create */
INSERT INTO aws.events.endpoints (
RoutingConfig,
EventBuses,
region
)
SELECT
'{{ RoutingConfig }}',
'{{ EventBuses }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.events.endpoints
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';

Permissions

To operate on the endpoints resource, the following permissions are required:

Create

events:CreateEndpoint,
events:DescribeEndpoint,
route53:GetHealthCheck,
iam:PassRole

Read

events:DescribeEndpoint

Update

events:DescribeEndpoint,
events:UpdateEndpoint,
route53:GetHealthCheck,
iam:PassRole

Delete

events:DeleteEndpoint,
events:DescribeEndpoint

List

events:ListEndpoints