Skip to main content

api_destinations

Creates, updates, deletes or gets an api_destination resource or lists api_destinations in a region

Overview

Nameapi_destinations
TypeResource
DescriptionResource Type definition for AWS::Events::ApiDestination.
Idaws.events.api_destinations

Fields

NameDatatypeDescription
namestringName of the apiDestination.
descriptionstring
connection_arnstringThe arn of the connection.
arnstringThe arn of the api destination.
invocation_rate_limit_per_secondinteger
invocation_endpointstringUrl endpoint to invoke.
http_methodstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTConnectionArn, InvocationEndpoint, HttpMethod, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all api_destinations in a region.

SELECT
region,
name,
description,
connection_arn,
arn,
invocation_rate_limit_per_second,
invocation_endpoint,
http_method
FROM aws.events.api_destinations
WHERE region = 'us-east-1';

Gets all properties from an individual api_destination.

SELECT
region,
name,
description,
connection_arn,
arn,
invocation_rate_limit_per_second,
invocation_endpoint,
http_method
FROM aws.events.api_destinations
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

/*+ create */
INSERT INTO aws.events.api_destinations (
ConnectionArn,
InvocationEndpoint,
HttpMethod,
region
)
SELECT
'{{ ConnectionArn }}',
'{{ InvocationEndpoint }}',
'{{ HttpMethod }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

events:CreateApiDestination,
events:DescribeApiDestination

Read

events:DescribeApiDestination

Update

events:UpdateApiDestination,
events:DescribeApiDestination

Delete

events:DeleteApiDestination,
events:DescribeApiDestination

List

events:ListApiDestinations