PI / Client / tag_resource
tag_resource¶
- PI.Client.tag_resource(**kwargs)¶
Adds metadata tags to the Amazon RDS Performance Insights resource.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource( ServiceType='RDS'|'DOCDB', ResourceARN='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] )
- Parameters:
ServiceType (string) –
[REQUIRED]
The Amazon Web Services service for which Performance Insights returns metrics. Valid value is
RDS
.ResourceARN (string) –
[REQUIRED]
The Amazon RDS Performance Insights resource that the tags are added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).
Tags (list) –
[REQUIRED]
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) – [REQUIRED]
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) – [REQUIRED]
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}_.:/=+\-@]*)$”).
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
PI.Client.exceptions.InvalidArgumentException
PI.Client.exceptions.InternalServiceError
PI.Client.exceptions.NotAuthorizedException