Get AWS IoT FleetWise state template information - AWS IoT FleetWise

Get AWS IoT FleetWise state template information

Important

Access to certain AWS IoT FleetWise features is currently gated. For more information, see AWS Region and feature availability in AWS IoT FleetWise.

You can use the GetStateTemplate API operation to retrieve information about a state template. The following example uses the AWS CLI.

Replace identifier with the name of the state template.

aws iotfleetwise get-state-template \ --identifier idenitfier

You can use the ListStateTemplates API operation to retrieve a list of your created state templates. The following example uses the AWS CLI.

aws iotfleetwise list-state-templates

If you enabled encryption using a customer managed AWS KMS key, include the following policy statement so that your role can invoke the GetStateTemplate or ListStateTemplates API operations.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "kms:Decrypt" ], "Resource": [ "arn:aws:kms:KMS_KEY_REGION:KMS_KEY_ACCOUNT_ID:key/KMS_KEY_ID" ] }, ] }