Skip to main content

dimensions

Creates, updates, deletes or gets a dimension resource or lists dimensions in a region

Overview

Namedimensions
TypeResource
DescriptionA dimension can be used to limit the scope of a metric used in a security profile for AWS IoT Device Defender.
Idaws.iot.dimensions

Fields

NameDatatypeDescription
namestringA unique identifier for the dimension.
typestringSpecifies the type of the dimension.
string_valuesarraySpecifies the value or list of values for the dimension.
tagsarrayMetadata that can be used to manage the dimension.
arnstringThe ARN (Amazon resource name) of the created dimension.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTType, StringValues, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all dimensions in a region.

SELECT
region,
name,
type,
string_values,
tags,
arn
FROM aws.iot.dimensions
WHERE region = 'us-east-1';

Gets all properties from an individual dimension.

SELECT
region,
name,
type,
string_values,
tags,
arn
FROM aws.iot.dimensions
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

/*+ create */
INSERT INTO aws.iot.dimensions (
Type,
StringValues,
region
)
SELECT
'{{ Type }}',
'{{ StringValues }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

iot:CreateDimension,
iot:TagResource

Read

iot:DescribeDimension,
iot:ListTagsForResource

Update

iot:UpdateDimension,
iot:ListTagsForResource,
iot:UntagResource,
iot:TagResource

Delete

iot:DescribeDimension,
iot:DeleteDimension

List

iot:ListDimensions