| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.DirectoryService.AddTagsToResource
Description
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.
Constructors
| AddTagsToResource' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> AddTagsToResource |
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.
Constructors
| AddTagsToResourceResponse' | |
Fields
| |
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.