CloudDirectory.Client.
tag_resource
(**kwargs)¶An API operation for adding tags to a 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) of the resource. Tagging is only supported for directories.
[REQUIRED]
A list of tag key-value pairs.
The tag structure that contains a tag key and value.
The key that is associated with the tag.
The value that is associated with the tag.
dict
Response Syntax
{}
Response Structure
Exceptions
CloudDirectory.Client.exceptions.InternalServiceException
CloudDirectory.Client.exceptions.InvalidArnException
CloudDirectory.Client.exceptions.RetryableConflictException
CloudDirectory.Client.exceptions.ValidationException
CloudDirectory.Client.exceptions.LimitExceededException
CloudDirectory.Client.exceptions.AccessDeniedException
CloudDirectory.Client.exceptions.ResourceNotFoundException
CloudDirectory.Client.exceptions.InvalidTaggingRequestException