Skip to main content

destinations

Creates, updates, deletes or gets a destination resource or lists destinations in a region

Overview

Namedestinations
TypeResource
DescriptionDestination's resource schema demonstrating some basic constructs and validation rules.
Idaws.iotwireless.destinations

Fields

NameDatatypeDescription
namestringUnique name of destination
expressionstringDestination expression
expression_typestringMust be RuleName
descriptionstringDestination description
tagsarrayA list of key-value pairs that contain metadata for the destination.
role_arnstringAWS role ARN that grants access
arnstringDestination arn. Returned after successful create.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, Expression, ExpressionType, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all destinations in a region.

SELECT
region,
name,
expression,
expression_type,
description,
tags,
role_arn,
arn
FROM aws.iotwireless.destinations
WHERE region = 'us-east-1';

Gets all properties from an individual destination.

SELECT
region,
name,
expression,
expression_type,
description,
tags,
role_arn,
arn
FROM aws.iotwireless.destinations
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

/*+ create */
INSERT INTO aws.iotwireless.destinations (
Name,
Expression,
ExpressionType,
region
)
SELECT
'{{ Name }}',
'{{ Expression }}',
'{{ ExpressionType }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

iam:PassRole,
iotwireless:CreateDestination,
iotwireless:TagResource,
iotwireless:ListTagsForResource

Read

iotwireless:GetDestination,
iotwireless:ListTagsForResource

Update

iam:PassRole,
iotwireless:UpdateDestination,
iotwireless:UntagResource,
iotwireless:ListTagsForResource

Delete

iotwireless:DeleteDestination

List

iotwireless:ListDestinations,
iotwireless:ListTagsForResource