tag_resource

CloudHSMV2.Client.tag_resource(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceId='string',
    TagList=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • ResourceId (string) --

    [REQUIRED]

    The cluster identifier (ID) for the cluster that you are tagging. To find the cluster ID, use DescribeClusters.

  • TagList (list) --

    [REQUIRED]

    A list of one or more tags.

    • (dict) --

      Contains a tag. A tag is a key-value pair.

      • Key (string) -- [REQUIRED]

        The key of the tag.

      • Value (string) -- [REQUIRED]

        The value of the tag.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • CloudHSMV2.Client.exceptions.CloudHsmAccessDeniedException
  • CloudHSMV2.Client.exceptions.CloudHsmInternalFailureException
  • CloudHSMV2.Client.exceptions.CloudHsmInvalidRequestException
  • CloudHSMV2.Client.exceptions.CloudHsmResourceNotFoundException
  • CloudHSMV2.Client.exceptions.CloudHsmServiceException
  • CloudHSMV2.Client.exceptions.CloudHsmTagException