CmdID

CmdID / aws / aws route53resolver

aws route53resolver list-tags-for-resource

Lists the tags that you associated with the specified resource. AWS CLI reference

1 example 3 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 list the tags for a Resolver resource

The following list-tags-for-resource example lists the tags that are assigned to the specified Resolver rule.

aws route53resolver list-tags-for-resource --resource-arn "arn:aws:route53resolver:us-west-2:123456789012:resolver-rule/rslvr-rr-42b60677c0example"Identify
--resource-arnThe Amazon Resource Name (ARN) for the resource that you want to list tags for.
Its output
{
    "Tags": [
        {
            "Key": "my-key-1",
            "Value": "my-value-1"
        },
        {
            "Key": "my-key-2",
            "Value": "my-value-2"
        }
    ]
}

For information about using tags for cost allocation, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

Options

3 in the AWS CLI reference
--max-resultsThe maximum number of tags that you want to return in the response to a ListTagsForResource request.
--next-tokenFor the first ListTagsForResource request, omit this value.
--resource-arnThe Amazon Resource Name (ARN) for the resource that you want to list tags for.