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 |
Adds or overwrites one or more tags for the specified directory. Each directory can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique to each resource.
Synopsis
- data AddTagsToResource = AddTagsToResource' {
- resourceId :: Text
- tags :: [Tag]
- newAddTagsToResource :: Text -> AddTagsToResource
- addTagsToResource_resourceId :: Lens' AddTagsToResource Text
- addTagsToResource_tags :: Lens' AddTagsToResource [Tag]
- data AddTagsToResourceResponse = AddTagsToResourceResponse' {
- httpStatus :: Int
- newAddTagsToResourceResponse :: Int -> AddTagsToResourceResponse
- addTagsToResourceResponse_httpStatus :: Lens' AddTagsToResourceResponse Int
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:resourceId:AddTagsToResource'
, addTagsToResource_resourceId
- Identifier (ID) for the directory to which to add the tag.
$sel:tags:AddTagsToResource'
, addTagsToResource_tags
- The tags to be assigned to the directory.
Request Lenses
addTagsToResource_resourceId :: Lens' AddTagsToResource Text Source #
Identifier (ID) for the directory to which to add the tag.
addTagsToResource_tags :: Lens' AddTagsToResource [Tag] Source #
The tags to be assigned to the directory.
Destructuring the Response
data AddTagsToResourceResponse Source #
See: newAddTagsToResourceResponse
smart constructor.
AddTagsToResourceResponse' | |
|
Instances
newAddTagsToResourceResponse Source #
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.
Response Lenses
addTagsToResourceResponse_httpStatus :: Lens' AddTagsToResourceResponse Int Source #
The response's http status code.