Billing / Client / tag_resource
tag_resource¶
- Billing.Client.tag_resource(**kwargs)¶
An API operation for adding one or more tags (key-value pairs) to a resource.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource( resourceArn='string', resourceTags=[ { 'key': 'string', 'value': 'string' }, ] )
- Parameters:
resourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the resource.
resourceTags (list) –
[REQUIRED]
A list of tag key value pairs that are associated with the resource.
(dict) –
The tag structure that contains a tag key and value.
key (string) – [REQUIRED]
The key that’s associated with the tag.
value (string) –
The value that’s associated with the tag.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
Billing.Client.exceptions.ThrottlingException
Billing.Client.exceptions.ResourceNotFoundException
Billing.Client.exceptions.AccessDeniedException
Billing.Client.exceptions.ValidationException
Billing.Client.exceptions.InternalServerException