AddTagsToResource
This is documentation for AWS CloudHSM Classic. For
more information, see AWS CloudHSM
Classic FAQs
For information about the current version of AWS
CloudHSM, see AWS CloudHSM
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.
Request Syntax
{
"ResourceArn": "string
",
"TagList": [
{
"Key": "string
",
"Value": "string
"
}
]
}
Request Parameters
The request accepts the following data in JSON format.
- ResourceArn
-
The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
Type: String
Pattern:
[\w :+=./\\-]*
Required: Yes
- TagList
-
One or more tags.
Type: Array of Tag objects
Required: Yes
Response Syntax
{
"Status": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- Status
-
The status of the operation.
Type: String
Pattern:
[\w :+=./\\-]*
Errors
For information about the errors that are common to all actions, see Common Errors.
- CloudHsmInternalException
-
Indicates that an internal error occurred.
HTTP Status Code: 500
- CloudHsmServiceException
-
Indicates that an exception occurred in the AWS CloudHSM service.
HTTP Status Code: 400
- InvalidRequestException
-
Indicates that one or more of the request parameters are not valid.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: