IAMRolesAnywhere / Client / tag_resource
tag_resource#
- 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' }, ] )
- Parameters:
resourceArn (string) –
[REQUIRED]
The ARN of the resource.
tags (list) –
[REQUIRED]
The tags to attach to the resource.
(dict) –
A label that consists of a key and value you define.
key (string) – [REQUIRED]
The tag key.
value (string) – [REQUIRED]
The tag value.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions