PartnerCentralChannelAPI / Client / tag_resource
tag_resource¶
- PartnerCentralChannelAPI.Client.tag_resource(**kwargs)¶
Adds or updates tags for a 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 to tag.
tags (list) –
[REQUIRED]
Key-value pairs to associate with the resource.
(dict) –
A key-value pair that can be associated with a resource.
key (string) – [REQUIRED]
The key of the tag.
value (string) – [REQUIRED]
The value of the tag.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
PartnerCentralChannelAPI.Client.exceptions.ResourceNotFoundExceptionPartnerCentralChannelAPI.Client.exceptions.InternalServerExceptionPartnerCentralChannelAPI.Client.exceptions.ValidationExceptionPartnerCentralChannelAPI.Client.exceptions.ThrottlingExceptionPartnerCentralChannelAPI.Client.exceptions.AccessDeniedExceptionPartnerCentralChannelAPI.Client.exceptions.ConflictException