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 the specified tags to the specified Elastic Load Balancing resource. You can tag your Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, and rules.
Each tag consists of a key and an optional value. If a resource already
has a tag with the same key, AddTags
updates its value.
Synopsis
- data AddTags = AddTags' {
- resourceArns :: [Text]
- tags :: NonEmpty Tag
- newAddTags :: NonEmpty Tag -> AddTags
- addTags_resourceArns :: Lens' AddTags [Text]
- addTags_tags :: Lens' AddTags (NonEmpty Tag)
- data AddTagsResponse = AddTagsResponse' {
- httpStatus :: Int
- newAddTagsResponse :: Int -> AddTagsResponse
- addTagsResponse_httpStatus :: Lens' AddTagsResponse Int
Creating a Request
See: newAddTags
smart constructor.
AddTags' | |
|
Instances
Create a value of AddTags
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:resourceArns:AddTags'
, addTags_resourceArns
- The Amazon Resource Name (ARN) of the resource.
$sel:tags:AddTags'
, addTags_tags
- The tags.
Request Lenses
addTags_resourceArns :: Lens' AddTags [Text] Source #
The Amazon Resource Name (ARN) of the resource.
Destructuring the Response
data AddTagsResponse Source #
See: newAddTagsResponse
smart constructor.
AddTagsResponse' | |
|
Instances
Create a value of AddTagsResponse
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:AddTagsResponse'
, addTagsResponse_httpStatus
- The response's http status code.
Response Lenses
addTagsResponse_httpStatus :: Lens' AddTagsResponse Int Source #
The response's http status code.