LookoutforVision / Client / tag_resource

tag_resource#

LookoutforVision.Client.tag_resource(**kwargs)#

Adds one or more key-value tags to an Amazon Lookout for Vision model. For more information, see Tagging a model in the Amazon Lookout for Vision Developer Guide.

This operation requires permissions to perform the lookoutvision:TagResource operation.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the model to assign the tags.

  • Tags (list) –

    [REQUIRED]

    The key-value tags to assign to the model.

    • (dict) –

      A key and value pair that is attached to the specified Amazon Lookout for Vision model.

      • Key (string) – [REQUIRED]

        The key of the tag that is attached to the specified model.

      • Value (string) – [REQUIRED]

        The value of the tag that is attached to the specified model.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions