PartnerCentralSellingAPI / Client / tag_resource
tag_resource¶
- PartnerCentralSellingAPI.Client.tag_resource(**kwargs)¶
Assigns one or more tags (key-value pairs) to the specified resource.
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 resource that you want to tag.
Tags (list) –
[REQUIRED]
A map of the key-value pairs of the tag or tags to assign to the resource.
(dict) –
The key-value pair assigned to a specified resource.
Key (string) – [REQUIRED]
The key in the tag.
Value (string) – [REQUIRED]
The value in the tag.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
PartnerCentralSellingAPI.Client.exceptions.ThrottlingException
PartnerCentralSellingAPI.Client.exceptions.ConflictException
PartnerCentralSellingAPI.Client.exceptions.AccessDeniedException
PartnerCentralSellingAPI.Client.exceptions.InternalServerException
PartnerCentralSellingAPI.Client.exceptions.ValidationException
PartnerCentralSellingAPI.Client.exceptions.ResourceNotFoundException