PI / Client / list_tags_for_resource
list_tags_for_resource#
- PI.Client.list_tags_for_resource(**kwargs)#
Retrieves all the metadata tags associated with Amazon RDS Performance Insights resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( ServiceType='RDS'|'DOCDB', ResourceARN='string' )
- Parameters:
ServiceType (string) –
[REQUIRED]
List the tags for the Amazon Web Services service for which Performance Insights returns metrics. Valid value is
RDS
.ResourceARN (string) –
[REQUIRED]
Lists all the tags for the Amazon RDS Performance Insights resource. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).
- Return type:
dict
- Returns:
Response Syntax
{ 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }
Response Structure
(dict) –
Tags (list) –
The metadata assigned to an Amazon RDS resource consisting of a key-value pair.
(dict) –
Metadata assigned to an Amazon RDS resource consisting of a key-value pair.
Key (string) –
A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can’t be prefixed with
aws:
orrds:
. The string can only contain only the set of Unicode letters, digits, white-space, ‘_’, ‘.’, ‘:’, ‘/’, ‘=’, ‘+’, ‘-’, ‘@’ (Java regex:"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
).Value (string) –
A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can’t be prefixed with
aws:
orrds:
. The string can only contain only the set of Unicode letters, digits, white-space, ‘_’, ‘.’, ‘:’, ‘/’, ‘=’, ‘+’, ‘-’, ‘@’ (Java regex: “^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$”).
Exceptions
PI.Client.exceptions.InvalidArgumentException
PI.Client.exceptions.InternalServiceError
PI.Client.exceptions.NotAuthorizedException