CmdID

CmdID / aws / aws greengrass

aws greengrass list-tags-for-resource

Retrieves a list of resource tags for a resource arn. AWS CLI reference

1 example 1 option Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To list the tags attached to a resource

The following list-tags-for-resource example lists the tags and their values that are attached to the specified resource.

aws greengrass list-tags-for-resource --resource-arn "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/resources/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify
--resource-arnThe Amazon Resource Name (ARN) of the resource.
Its output
{
    "tags": {
        "ResourceSubType": "USB",
        "ResourceType": "Device"
    }
}

For more information, see Tagging your AWS IoT Greengrass resources in the AWS IoT Greengrass Version 1 Developer Guide.

Options

1 in the AWS CLI reference
--resource-arnThe Amazon Resource Name (ARN) of the resource.