Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Network.AWS.ELBv2.AddTags
Description
Adds the specified tags to the specified Elastic Load Balancing resource. You can tag your Application Load Balancers, Network Load Balancers, and your target groups.
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.
To list the current tags for your resources, use DescribeTags
. To remove tags from your resources, use RemoveTags
.
Synopsis
- addTags :: NonEmpty Tag -> AddTags
- data AddTags
- atResourceARNs :: Lens' AddTags [Text]
- atTags :: Lens' AddTags (NonEmpty Tag)
- addTagsResponse :: Int -> AddTagsResponse
- data AddTagsResponse
- atrsResponseStatus :: Lens' AddTagsResponse Int
Creating a Request
Creates a value of AddTags
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atResourceARNs
- The Amazon Resource Name (ARN) of the resource.atTags
- The tags. Each resource can have a maximum of 10 tags.
See: addTags
smart constructor.
Instances
Request Lenses
atTags :: Lens' AddTags (NonEmpty Tag) Source #
The tags. Each resource can have a maximum of 10 tags.
Destructuring the Response
Arguments
:: Int | |
-> AddTagsResponse |
Creates a value of AddTagsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atrsResponseStatus
- -- | The response status code.
data AddTagsResponse Source #
See: addTagsResponse
smart constructor.
Instances
Response Lenses
atrsResponseStatus :: Lens' AddTagsResponse Int Source #
- - | The response status code.