IAMRolesAnywhere.Client.
tag_resource
(**kwargs)¶Attaches tags to a resource.
Required permissions:rolesanywhere:TagResource
.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
resourceArn='string',
tags=[
{
'key': 'string',
'value': 'string'
},
]
)
[REQUIRED]
The ARN of the resource.
[REQUIRED]
The tags to attach to the resource.
A label that consists of a key and value you define.
The tag key.
The tag value.
dict
Response Syntax
{}
Response Structure
Exceptions
IAMRolesAnywhere.Client.exceptions.ValidationException
IAMRolesAnywhere.Client.exceptions.ResourceNotFoundException
IAMRolesAnywhere.Client.exceptions.AccessDeniedException
IAMRolesAnywhere.Client.exceptions.TooManyTagsException