amazonka-autoscaling-1.6.1: Amazon Auto Scaling SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 #

See: attachInstances smart constructor.

Instances
Eq AttachInstances Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

Data AttachInstances Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

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 # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

Show AttachInstances Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

Generic AttachInstances Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

Associated Types

type Rep AttachInstances :: Type -> Type #

Hashable AttachInstances Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

AWSRequest AttachInstances Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

Associated Types

type Rs AttachInstances :: Type #

ToHeaders AttachInstances Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

ToPath AttachInstances Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

ToQuery AttachInstances Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

NFData AttachInstances Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

Methods

rnf :: AttachInstances -> () #

type Rep AttachInstances Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

type Rep AttachInstances = D1 (MetaData "AttachInstances" "Network.AWS.AutoScaling.AttachInstances" "amazonka-autoscaling-1.6.1-AbdWdH026wCXAk2CK79vG" False) (C1 (MetaCons "AttachInstances'" PrefixI True) (S1 (MetaSel (Just "_aiInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_aiAutoScalingGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs AttachInstances Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

Request Lenses

aiInstanceIds :: Lens' AttachInstances [Text] Source #

The IDs of the instances. You can specify up to 20 instances.

aiAutoScalingGroupName :: Lens' AttachInstances Text Source #

The name of the Auto Scaling group.

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 # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

Data AttachInstancesResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

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 # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

Show AttachInstancesResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

Generic AttachInstancesResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

Associated Types

type Rep AttachInstancesResponse :: Type -> Type #

NFData AttachInstancesResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

Methods

rnf :: AttachInstancesResponse -> () #

type Rep AttachInstancesResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.AttachInstances

type Rep AttachInstancesResponse = D1 (MetaData "AttachInstancesResponse" "Network.AWS.AutoScaling.AttachInstances" "amazonka-autoscaling-1.6.1-AbdWdH026wCXAk2CK79vG" False) (C1 (MetaCons "AttachInstancesResponse'" PrefixI False) (U1 :: Type -> Type))