Rekognition / Client / tag_resource
tag_resource#
- Rekognition.Client.tag_resource(**kwargs)#
Adds one or more key-value tags to an Amazon Rekognition collection, stream processor, or Custom Labels model. For more information, see Tagging AWS Resources.
This operation requires permissions to perform the
rekognition:TagResource
action.See also: AWS API Documentation
Request Syntax
response = client.tag_resource( ResourceArn='string', Tags={ 'string': 'string' } )
- Parameters:
ResourceArn (string) –
[REQUIRED]
Amazon Resource Name (ARN) of the model, collection, or stream processor that you want to assign the tags to.
Tags (dict) –
[REQUIRED]
The key-value tags to assign to the resource.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
Rekognition.Client.exceptions.ResourceNotFoundException
Rekognition.Client.exceptions.InvalidParameterException
Rekognition.Client.exceptions.ServiceQuotaExceededException
Rekognition.Client.exceptions.AccessDeniedException
Rekognition.Client.exceptions.InternalServerError
Rekognition.Client.exceptions.ThrottlingException
Rekognition.Client.exceptions.ProvisionedThroughputExceededException