CloudHSM / Client / add_tags_to_resource



This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference.

For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference.

Adds or overwrites one or more tags for the specified AWS CloudHSM resource.

Each tag consists of a key and a value. Tag keys must be unique to each resource.


This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.

See also: AWS API Documentation

Request Syntax

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


    The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.

  • TagList (list) –


    One or more tags.

    • (dict) –

      A key-value pair that identifies or specifies metadata about an AWS CloudHSM resource.

      • Key (string) – [REQUIRED]

        The key of the tag.

      • Value (string) – [REQUIRED]

        The value of the tag.

Return type:



Response Syntax

    'Status': 'string'

Response Structure

  • (dict) –

    • Status (string) –

      The status of the operation.


  • CloudHSM.Client.exceptions.CloudHsmServiceException

  • CloudHSM.Client.exceptions.CloudHsmInternalException

  • CloudHSM.Client.exceptions.InvalidRequestException