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:TagResourceaction.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.ResourceNotFoundExceptionRekognition.Client.exceptions.InvalidParameterExceptionRekognition.Client.exceptions.ServiceQuotaExceededExceptionRekognition.Client.exceptions.AccessDeniedExceptionRekognition.Client.exceptions.InternalServerErrorRekognition.Client.exceptions.ThrottlingExceptionRekognition.Client.exceptions.ProvisionedThroughputExceededException