CloudFront / Client / list_tags_for_resource
list_tags_for_resource¶
- CloudFront.Client.list_tags_for_resource(**kwargs)¶
List tags for a CloudFront resource. For more information, see Tagging a distribution in the Amazon CloudFront Developer Guide.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( Resource='string' )
- Parameters:
Resource (string) –
[REQUIRED]
An ARN of a CloudFront resource.
- Return type:
dict
- Returns:
Response Syntax
{ 'Tags': { 'Items': [ { 'Key': 'string', 'Value': 'string' }, ] } }
Response Structure
(dict) –
The returned result of the corresponding request.
Tags (dict) –
A complex type that contains zero or more
Tagelements.Items (list) –
A complex type that contains
Tagelements.(dict) –
A complex type that contains
Tagkey andTagvalue.Key (string) –
A string that contains
Tagkey.The string length should be between 1 and 128 characters. Valid characters include
a-z,A-Z,0-9, space, and the special characters_ - . : / = + @.Value (string) –
A string that contains an optional
Tagvalue.The string length should be between 0 and 256 characters. Valid characters include
a-z,A-Z,0-9, space, and the special characters_ - . : / = + @.
Exceptions
CloudFront.Client.exceptions.AccessDeniedCloudFront.Client.exceptions.InvalidTaggingCloudFront.Client.exceptions.InvalidArgumentCloudFront.Client.exceptions.NoSuchResource