Route53Resolver / Client / tag_resource
tag_resource¶
- Route53Resolver.Client.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' }, ] )
- Parameters:
ResourceArn (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
GetorListcommand:Tags (list) –
[REQUIRED]
The tags that you want to add to the specified resource.
(dict) –
One tag that you want to add to the specified resource. A tag consists of a
Key(a name for the tag) and aValue.Key (string) – [REQUIRED]
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
Keymight beaccount-id.Value (string) – [REQUIRED]
The value for the tag. For example, if
Keyisaccount-id, thenValuemight be the ID of the customer account that you’re creating the resource for.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
Route53Resolver.Client.exceptions.LimitExceededExceptionRoute53Resolver.Client.exceptions.ResourceNotFoundExceptionRoute53Resolver.Client.exceptions.InvalidParameterExceptionRoute53Resolver.Client.exceptions.InvalidRequestExceptionRoute53Resolver.Client.exceptions.InvalidTagExceptionRoute53Resolver.Client.exceptions.InternalServiceErrorExceptionRoute53Resolver.Client.exceptions.ThrottlingException