| 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.DocumentDB.AddTagsToResource
Description
Adds metadata tags to an Amazon DocumentDB resource. You can use these
tags with cost allocation reporting to track costs that are associated
with Amazon DocumentDB resources or in a Condition statement in an
Identity and Access Management (IAM) policy for Amazon DocumentDB.
Synopsis
- data AddTagsToResource = AddTagsToResource' {
- resourceName :: Text
- tags :: [Tag]
- newAddTagsToResource :: Text -> AddTagsToResource
- addTagsToResource_resourceName :: Lens' AddTagsToResource Text
- addTagsToResource_tags :: Lens' AddTagsToResource [Tag]
- data AddTagsToResourceResponse = AddTagsToResourceResponse' {
- newAddTagsToResourceResponse :: AddTagsToResourceResponse
Creating a Request
data AddTagsToResource Source #
Represents the input to AddTagsToResource.
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:resourceName:AddTagsToResource', addTagsToResource_resourceName - The Amazon DocumentDB resource that the tags are added to. This value is
an Amazon Resource Name .
$sel:tags:AddTagsToResource', addTagsToResource_tags - The tags to be assigned to the Amazon DocumentDB resource.
Request Lenses
addTagsToResource_resourceName :: Lens' AddTagsToResource Text Source #
The Amazon DocumentDB resource that the tags are added to. This value is an Amazon Resource Name .
addTagsToResource_tags :: Lens' AddTagsToResource [Tag] Source #
The tags to be assigned to the Amazon DocumentDB resource.
Destructuring the Response
data AddTagsToResourceResponse Source #
See: newAddTagsToResourceResponse smart constructor.
Constructors
| AddTagsToResourceResponse' | |
Instances
newAddTagsToResourceResponse :: AddTagsToResourceResponse Source #
Create a value of AddTagsToResourceResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.