PartnerCentralAccountAPI / Client / tag_resource
tag_resource¶
- PartnerCentralAccountAPI.Client.tag_resource(**kwargs)¶
Adds or updates tags for a specified AWS Partner Central Account 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]
A list of tags to add or update for the specified resource.
(dict) –
A key-value pair used to associate metadata with AWS Partner Central Account resources.
Key (string) – [REQUIRED]
The key name of the tag. Tag keys are case-sensitive.
Value (string) – [REQUIRED]
The value associated with the tag key. Tag values are case-sensitive.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
PartnerCentralAccountAPI.Client.exceptions.ResourceNotFoundExceptionPartnerCentralAccountAPI.Client.exceptions.AccessDeniedExceptionPartnerCentralAccountAPI.Client.exceptions.ThrottlingExceptionPartnerCentralAccountAPI.Client.exceptions.ConflictExceptionPartnerCentralAccountAPI.Client.exceptions.ValidationExceptionPartnerCentralAccountAPI.Client.exceptions.InternalServerException