Skip to main content

destinations

Creates, updates, deletes, gets or lists a destinations resource.

Overview

Namedestinations
TypeResource
Idaws.iot_managed_integrations.destinations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp value of when the destination creation requset occurred.
delivery_destination_arnstringThe Amazon Resource Name (ARN) of the customer-managed destination. (pattern: <code>arn:aws:[0-9a-zA-Z]+:[0-9a-zA-Z-]+:[0-9]+:[0-9a-zA-Z]+/[0-9a-zA-Z._-]+</code>)
delivery_destination_typestringThe destination type for the customer-managed destination. (KINESIS)
descriptionstringThe description of the customer-managed destination. (pattern: <code>[0-9A-Za-z_- ]+</code>)
namestringThe name of the customer-managed destination. (pattern: <code>[\p{L}\p{N} ._-]+</code>)
role_arnstringThe Amazon Resource Name (ARN) of the delivery destination role.
tagsobjectA set of key/value pairs that are used to manage the customer-managed destination.
updated_atstring (date-time)The timestamp value of when the destination update requset occurred.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_destinationselectname, regionGets a destination by name.
list_destinationsselectregionNextToken, MaxResultsList all notification destinations.
create_destinationinsertregion, DeliveryDestinationArn, DeliveryDestinationType, RoleArnCreate a notification destination such as Kinesis Data Streams that receive events and notifications from Managed integrations. Managed integrations uses the destination to determine where to deliver notifications.
update_destinationupdatename, regionUpdate a destination specified by name.
delete_destinationdeletename, regionDeletes a notification destination specified by name.

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
namestringThe id of the customer-managed destination.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe maximum number of results to return at one time.
NextTokenstringA token that can be used to retrieve the next set of results.

SELECT examples

Gets a destination by name.

SELECT
created_at,
delivery_destination_arn,
delivery_destination_type,
description,
name,
role_arn,
tags,
updated_at
FROM aws.iot_managed_integrations.destinations
WHERE name = '{{ name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a notification destination such as Kinesis Data Streams that receive events and notifications from Managed integrations. Managed integrations uses the destination to determine where to deliver notifications.

INSERT INTO aws.iot_managed_integrations.destinations (
DeliveryDestinationArn,
DeliveryDestinationType,
Name,
RoleArn,
ClientToken,
Description,
Tags,
region
)
SELECT
'{{ DeliveryDestinationArn }}' /* required */,
'{{ DeliveryDestinationType }}' /* required */,
'{{ Name }}',
'{{ RoleArn }}' /* required */,
'{{ ClientToken }}',
'{{ Description }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
name
;

UPDATE examples

Update a destination specified by name.

UPDATE aws.iot_managed_integrations.destinations
SET
DeliveryDestinationArn = '{{ DeliveryDestinationArn }}',
DeliveryDestinationType = '{{ DeliveryDestinationType }}',
RoleArn = '{{ RoleArn }}',
Description = '{{ Description }}'
WHERE
name = '{{ name }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes a notification destination specified by name.

DELETE FROM aws.iot_managed_integrations.destinations
WHERE name = '{{ name }}' --required
AND region = '{{ region }}' --required
;