Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data AddTagsToResource = AddTagsToResource' {
- resourceArn :: Text
- tagList :: [Tag]
- newAddTagsToResource :: Text -> AddTagsToResource
- addTagsToResource_resourceArn :: Lens' AddTagsToResource Text
- addTagsToResource_tagList :: Lens' AddTagsToResource [Tag]
- data AddTagsToResourceResponse = AddTagsToResourceResponse' {
- httpStatus :: Int
- status :: Text
- newAddTagsToResourceResponse :: Int -> Text -> AddTagsToResourceResponse
- addTagsToResourceResponse_httpStatus :: Lens' AddTagsToResourceResponse Int
- addTagsToResourceResponse_status :: Lens' AddTagsToResourceResponse Text
Creating a Request
data AddTagsToResource Source #
See: newAddTagsToResource
smart constructor.
AddTagsToResource' | |
|
Instances
Create a value of AddTagsToResource
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:resourceArn:AddTagsToResource'
, addTagsToResource_resourceArn
- The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
$sel:tagList:AddTagsToResource'
, addTagsToResource_tagList
- One or more tags.
Request Lenses
addTagsToResource_resourceArn :: Lens' AddTagsToResource Text Source #
The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
addTagsToResource_tagList :: Lens' AddTagsToResource [Tag] Source #
One or more tags.
Destructuring the Response
data AddTagsToResourceResponse Source #
See: newAddTagsToResourceResponse
smart constructor.
AddTagsToResourceResponse' | |
|
Instances
newAddTagsToResourceResponse Source #
:: Int | |
-> Text | |
-> AddTagsToResourceResponse |
Create a value of AddTagsToResourceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:AddTagsToResourceResponse'
, addTagsToResourceResponse_httpStatus
- The response's http status code.
$sel:status:AddTagsToResourceResponse'
, addTagsToResourceResponse_status
- The status of the operation.
Response Lenses
addTagsToResourceResponse_httpStatus :: Lens' AddTagsToResourceResponse Int Source #
The response's http status code.
addTagsToResourceResponse_status :: Lens' AddTagsToResourceResponse Text Source #
The status of the operation.