CmdID / aws / aws iotthingsgraph
aws iotthingsgraph list-tags-for-resource
Lists all tags on an AWS IoT Things Graph resource. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To list all tags for a resource
The following list-tags-for-resource example list all tags for an AWS IoT Things Graph resource.
aws iotthingsgraph list-tags-for-resource --resource-arn "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment/default/Room218"Identify--resource-arnThe Amazon Resource Name (ARN) of the resource whose tags are to be returned.Its output
{
"tags": [
{
"key": "Type",
"value": "Residential"
}
]
}Options
--max-resultsThe maximum number of tags to return.--next-tokenThe token that specifies the next page of results to return.--resource-arnThe Amazon Resource Name (ARN) of the resource whose tags are to be returned.