amazonka-autoscaling-1.4.5: Amazon Auto Scaling SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.AutoScaling.AttachInstances

Contents

Description

Attaches one or more EC2 instances to the specified Auto Scaling group.

When you attach instances, Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.

If there is a Classic load balancer attached to your Auto Scaling group, the instances are also registered with the load balancer. If there are target groups attached to your Auto Scaling group, the instances are also registered with the target groups.

For more information, see Attach EC2 Instances to Your Auto Scaling Group in the Auto Scaling User Guide .

Synopsis

Creating a Request

attachInstances Source #

Creates a value of AttachInstances with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AttachInstances Source #

Contains the parameters for AttachInstances.

See: attachInstances smart constructor.

Instances

Eq AttachInstances Source # 
Data AttachInstances Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AttachInstances -> c AttachInstances #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AttachInstances #

toConstr :: AttachInstances -> Constr #

dataTypeOf :: AttachInstances -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c AttachInstances) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AttachInstances) #

gmapT :: (forall b. Data b => b -> b) -> AttachInstances -> AttachInstances #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AttachInstances -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AttachInstances -> r #

gmapQ :: (forall d. Data d => d -> u) -> AttachInstances -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AttachInstances -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AttachInstances -> m AttachInstances #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AttachInstances -> m AttachInstances #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AttachInstances -> m AttachInstances #

Read AttachInstances Source # 
Show AttachInstances Source # 
Generic AttachInstances Source # 
Hashable AttachInstances Source # 
NFData AttachInstances Source # 

Methods

rnf :: AttachInstances -> () #

AWSRequest AttachInstances Source # 
ToPath AttachInstances Source # 
ToHeaders AttachInstances Source # 
ToQuery AttachInstances Source # 
type Rep AttachInstances Source # 
type Rep AttachInstances = D1 (MetaData "AttachInstances" "Network.AWS.AutoScaling.AttachInstances" "amazonka-autoscaling-1.4.5-8yDHjz7ddEsEeD2f2YA1qk" False) (C1 (MetaCons "AttachInstances'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_aiInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_aiAutoScalingGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs AttachInstances Source # 

Request Lenses

aiInstanceIds :: Lens' AttachInstances [Text] Source #

One or more instance IDs.

Destructuring the Response

attachInstancesResponse :: AttachInstancesResponse Source #

Creates a value of AttachInstancesResponse with the minimum fields required to make a request.

data AttachInstancesResponse Source #

See: attachInstancesResponse smart constructor.

Instances

Eq AttachInstancesResponse Source # 
Data AttachInstancesResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AttachInstancesResponse -> c AttachInstancesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AttachInstancesResponse #

toConstr :: AttachInstancesResponse -> Constr #

dataTypeOf :: AttachInstancesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c AttachInstancesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AttachInstancesResponse) #

gmapT :: (forall b. Data b => b -> b) -> AttachInstancesResponse -> AttachInstancesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AttachInstancesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AttachInstancesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> AttachInstancesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AttachInstancesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AttachInstancesResponse -> m AttachInstancesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AttachInstancesResponse -> m AttachInstancesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AttachInstancesResponse -> m AttachInstancesResponse #

Read AttachInstancesResponse Source # 
Show AttachInstancesResponse Source # 
Generic AttachInstancesResponse Source # 
NFData AttachInstancesResponse Source # 

Methods

rnf :: AttachInstancesResponse -> () #

type Rep AttachInstancesResponse Source # 
type Rep AttachInstancesResponse = D1 (MetaData "AttachInstancesResponse" "Network.AWS.AutoScaling.AttachInstances" "amazonka-autoscaling-1.4.5-8yDHjz7ddEsEeD2f2YA1qk" False) (C1 (MetaCons "AttachInstancesResponse'" PrefixI False) U1)