PartnerCentralBenefits / Client / tag_resource
tag_resource¶
- PartnerCentralBenefits.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 add tags to.
tags (list) –
[REQUIRED]
A list of key-value pairs to add as tags to the resource.
(dict) –
Represents a key-value pair used for categorizing and organizing AWS resources.
Key (string) – [REQUIRED]
The tag key, which acts as a category or label for the tag.
Value (string) – [REQUIRED]
The tag value, which provides additional information or context for the tag key.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
PartnerCentralBenefits.Client.exceptions.AccessDeniedExceptionPartnerCentralBenefits.Client.exceptions.ValidationExceptionPartnerCentralBenefits.Client.exceptions.InternalServerExceptionPartnerCentralBenefits.Client.exceptions.ConflictExceptionPartnerCentralBenefits.Client.exceptions.ServiceQuotaExceededExceptionPartnerCentralBenefits.Client.exceptions.ResourceNotFoundExceptionPartnerCentralBenefits.Client.exceptions.ThrottlingException