CmdID

CmdID / aws / aws greengrass

aws greengrass tag-resource

Adds tags to a Greengrass resource. AWS CLI reference

1 example 2 options 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 apply tags to a resource

The following tag-resource example applies two tags, ResourceType and ResourceSubType, to the specified Greengrass resource. This operation can both add new tags and values or update the value for existing tags. Use the untag-resource command to remove a tag.

aws greengrass tag-resource --resource-arn "arn:aws:greengrass:us-west-2:123456789012:/greengrass/definition/resources/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" --tags "ResourceType=Device,ResourceSubType=USB"Identify
--resource-arnThe Amazon Resource Name (ARN) of the resource.
--tagsThe key-value pair for the resource tag.

This command produces no output.

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

Options

2 in the AWS CLI reference
--resource-arnThe Amazon Resource Name (ARN) of the resource.
--tagsThe key-value pair for the resource tag.