CmdID / aws / aws securitylake
aws securitylake list-tags-for-resource
Retrieves the tags (keys and values) that are associated with an Amazon Security Lake resource: a subscriber, or the data lake configuration for your Amazon Web Services account in a particular Amazon Web Services Region. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To list tags for an existing resource
The following list-tags-for-resource example lists tags for the specified Amazon Security Lake subscriber. In this example, the Owner tag key doesn't have an associated tag value. You can use this operation to list tags for other existing Security Lake resources as well.
aws securitylake list-tags-for-resource --resource-arn "arn:aws:securitylake:us-west-2:123456789012:subscriber/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify--resource-arnThe Amazon Resource Name (ARN) of the Amazon Security Lake resource for which you want to retrieve the tags.Its output
{
"tags": [
{
"key": "Environment",
"value": "Cloud"
},
{
"key": "CostCenter",
"value": "12345"
},
{
"key": "Owner",
"value": ""
}
]
}For more information, see Tagging Amazon Security Lake resources in the Amazon Security Lake User Guide.
Options
--resource-arnThe Amazon Resource Name (ARN) of the Amazon Security Lake resource for which you want to retrieve the tags.