tag_resource
(**kwargs)¶Adds one or more tags to a specified resource.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
ResourceArn='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) for the resource that you want to add tags to. To get the ARN for a resource, use the applicable Get
or List
command:
[REQUIRED]
The tags that you want to add to the specified resource.
One tag that you want to add to the specified resource. A tag consists of a Key
(a name for the tag) and a Value
.
The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key
might be account-id
.
The value for the tag. For example, if Key
is account-id
, then Value
might be the ID of the customer account that you're creating the resource for.
dict
Response Syntax
{}
Response Structure
Exceptions
Route53Resolver.Client.exceptions.LimitExceededException
Route53Resolver.Client.exceptions.ResourceNotFoundException
Route53Resolver.Client.exceptions.InvalidParameterException
Route53Resolver.Client.exceptions.InvalidRequestException
Route53Resolver.Client.exceptions.InvalidTagException
Route53Resolver.Client.exceptions.InternalServiceErrorException
Route53Resolver.Client.exceptions.ThrottlingException