CloudHSMV2 / Client / tag_resource
tag_resource#
- CloudHSMV2.Client.tag_resource(**kwargs)#
Adds or overwrites one or more tags for the specified CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
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.CloudHsmResourceLimitExceededException
CloudHSMV2.Client.exceptions.CloudHsmResourceNotFoundException
CloudHSMV2.Client.exceptions.CloudHsmServiceException
CloudHSMV2.Client.exceptions.CloudHsmTagException