PinpointSMSVoiceV2 / Client / tag_resource
tag_resource#
- PinpointSMSVoiceV2.Client.tag_resource(**kwargs)#
Adds or overwrites only the specified tags for the specified resource. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see Tags in the AWS End User Messaging SMS User Guide.
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.
Tags (list) –
[REQUIRED]
An array of key and value pair tags that are associated with the resource.
(dict) –
The list of tags to be added to the specified topic.
Key (string) – [REQUIRED]
The key identifier, or name, of the tag.
Value (string) – [REQUIRED]
The string value associated with the key of the tag.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions