RecycleBin / Client / tag_resource
tag_resource#
- RecycleBin.Client.tag_resource(**kwargs)#
Assigns tags to the specified retention rule.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource( ResourceArn='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the retention rule.
Tags (list) –
[REQUIRED]
Information about the tags to assign to the retention rule.
(dict) –
Information about the tags to assign to the retention rule.
Key (string) – [REQUIRED]
The tag key.
Value (string) – [REQUIRED]
The tag value.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
RecycleBin.Client.exceptions.ValidationException
RecycleBin.Client.exceptions.InternalServerException
RecycleBin.Client.exceptions.ResourceNotFoundException
RecycleBin.Client.exceptions.ServiceQuotaExceededException