Skip to main content

gateways

Creates, updates, deletes or gets a gateway resource or lists gateways in a region

Overview

Namegateways
TypeResource
DescriptionResource schema for AWS::IoTSiteWise::Gateway
Idaws.iotsitewise.gateways

Fields

NameDatatypeDescription
gateway_namestringA unique, friendly name for the gateway.
gateway_platformobjectThe gateway's platform. You can only specify one platform in a gateway.
tagsarrayA list of key-value pairs that contain metadata for the gateway.
gateway_idstringThe ID of the gateway device.
gateway_capability_summariesarrayA list of gateway capability summaries that each contain a namespace and status.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTGatewayName, GatewayPlatform, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all gateways in a region.

SELECT
region,
gateway_name,
gateway_platform,
tags,
gateway_id,
gateway_capability_summaries
FROM aws.iotsitewise.gateways
WHERE region = 'us-east-1';

Gets all properties from an individual gateway.

SELECT
region,
gateway_name,
gateway_platform,
tags,
gateway_id,
gateway_capability_summaries
FROM aws.iotsitewise.gateways
WHERE region = 'us-east-1' AND data__Identifier = '<GatewayId>';

INSERT example

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

/*+ create */
INSERT INTO aws.iotsitewise.gateways (
GatewayName,
GatewayPlatform,
region
)
SELECT
'{{ GatewayName }}',
'{{ GatewayPlatform }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iotsitewise.gateways
WHERE data__Identifier = '<GatewayId>'
AND region = 'us-east-1';

Permissions

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

Create

iotsitewise:CreateGateway,
iotsitewise:DescribeGateway,
iotsitewise:DescribeGatewayCapabilityConfiguration,
iotsitewise:UpdateGatewayCapabilityConfiguration,
iam:PassRole,
iam:GetRole,
greengrass:GetCoreDevice,
iotsitewise:ListTagsForResource,
iotsitewise:TagResource,
iot:DescribeThing

Read

iotsitewise:DescribeGateway,
iotsitewise:DescribeGatewayCapabilityConfiguration,
iotsitewise:ListTagsForResource

Update

iotsitewise:UpdateGateway,
iotsitewise:UpdateGatewayCapabilityConfiguration,
iotsitewise:TagResource,
iotsitewise:UntagResource,
iotsitewise:DescribeGateway,
iotsitewise:DescribeGatewayCapabilityConfiguration,
iotsitewise:ListTagsForResource

Delete

iotsitewise:DescribeGateway,
iotsitewise:DescribeGatewayCapabilityConfiguration,
iotsitewise:DeleteGateway

List

iotsitewise:ListGateways