LookoutEquipment / Client / tag_resource



Associates a given tag to a resource in your account. A tag is a key-value pair which can be added to an Amazon Lookout for Equipment resource as metadata. Tags can be used for organizing your resources as well as helping you to search and filter by tag. Multiple tags can be added to a resource, either when you create it, or later. Up to 50 tags can be associated with each resource.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
            'Key': 'string',
            'Value': 'string'
  • ResourceArn (string) –


    The Amazon Resource Name (ARN) of the specific resource to which the tag should be associated.

  • Tags (list) –


    The tag or tags to be associated with a specific resource. Both the tag key and value are specified.

    • (dict) –

      A tag is a key-value pair that can be added to a resource as metadata.

      • Key (string) – [REQUIRED]

        The key for the specified tag.

      • Value (string) – [REQUIRED]

        The value for the specified tag.

Return type:



Response Syntax


Response Structure

  • (dict) –


  • LookoutEquipment.Client.exceptions.ValidationException

  • LookoutEquipment.Client.exceptions.ResourceNotFoundException

  • LookoutEquipment.Client.exceptions.ServiceQuotaExceededException

  • LookoutEquipment.Client.exceptions.ThrottlingException

  • LookoutEquipment.Client.exceptions.AccessDeniedException

  • LookoutEquipment.Client.exceptions.InternalServerException