| 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.ELB.AddTags
Description
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 Balancer Guide .
Synopsis
- addTags :: NonEmpty Tag -> AddTags
- data AddTags
- atLoadBalancerNames :: 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:
atLoadBalancerNames- The name of the load balancer. You can specify one load balancer only.atTags- The tags.
Contains the parameters for AddTags.
See: addTags smart constructor.
Instances
| Eq AddTags Source # | |
| Data AddTags Source # | |
Defined in Network.AWS.ELB.AddTags Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AddTags -> c AddTags # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AddTags # toConstr :: AddTags -> Constr # dataTypeOf :: AddTags -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AddTags) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AddTags) # gmapT :: (forall b. Data b => b -> b) -> AddTags -> AddTags # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AddTags -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AddTags -> r # gmapQ :: (forall d. Data d => d -> u) -> AddTags -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> AddTags -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> AddTags -> m AddTags # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AddTags -> m AddTags # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AddTags -> m AddTags # | |
| Read AddTags Source # | |
| Show AddTags Source # | |
| Generic AddTags Source # | |
| Hashable AddTags Source # | |
Defined in Network.AWS.ELB.AddTags | |
| AWSRequest AddTags Source # | |
| ToHeaders AddTags Source # | |
Defined in Network.AWS.ELB.AddTags | |
| ToPath AddTags Source # | |
Defined in Network.AWS.ELB.AddTags Methods toPath :: AddTags -> ByteString # | |
| ToQuery AddTags Source # | |
Defined in Network.AWS.ELB.AddTags Methods toQuery :: AddTags -> QueryString # | |
| NFData AddTags Source # | |
Defined in Network.AWS.ELB.AddTags | |
| type Rep AddTags Source # | |
Defined in Network.AWS.ELB.AddTags type Rep AddTags = D1 (MetaData "AddTags" "Network.AWS.ELB.AddTags" "amazonka-elb-1.6.1-Ih5hIKrYl5yJOuBwSBSzZS" False) (C1 (MetaCons "AddTags'" PrefixI True) (S1 (MetaSel (Just "_atLoadBalancerNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: S1 (MetaSel (Just "_atTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (List1 Tag)))) | |
| type Rs AddTags Source # | |
Defined in Network.AWS.ELB.AddTags | |
Request Lenses
atLoadBalancerNames :: Lens' AddTags [Text] Source #
The name of the load balancer. You can specify one load balancer only.
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 #
Contains the output of AddTags.
See: addTagsResponse smart constructor.
Instances
Response Lenses
atrsResponseStatus :: Lens' AddTagsResponse Int Source #
- - | The response status code.