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'
},
]
)
[REQUIRED]
The cluster identifier (ID) for the cluster that you are tagging. To find the cluster ID, use DescribeClusters.
[REQUIRED]
A list of one or more tags.
Contains a tag. A tag is a key-value pair.
The key of the tag.
The value of the tag.
dict
Response Syntax
{}
Response Structure
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