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 load balancer. Each load balancer can have a maximum of 10 tags.
Each tag consists of a key and an optional value. If a tag with the same
key is already associated with the load balancer, AddTags
updates its
value.
For more information, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
Synopsis
- data AddTags = AddTags' {
- loadBalancerNames :: [Text]
- tags :: NonEmpty Tag
- newAddTags :: NonEmpty Tag -> AddTags
- addTags_loadBalancerNames :: 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
Contains the parameters for AddTags.
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:loadBalancerNames:AddTags'
, addTags_loadBalancerNames
- The name of the load balancer. You can specify one load balancer only.
$sel:tags:AddTags'
, addTags_tags
- The tags.
Request Lenses
addTags_loadBalancerNames :: Lens' AddTags [Text] Source #
The name of the load balancer. You can specify one load balancer only.
Destructuring the Response
data AddTagsResponse Source #
Contains the output of AddTags.
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.