amazonka-autoscaling-1.6.0: 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.DetachInstances

Contents

Description

Removes one or more instances from the specified Auto Scaling group.

After the instances are detached, you can manage them independent of the Auto Scaling group.

If you do not specify the option to decrement the desired capacity, Auto Scaling launches instances to replace the ones that are detached.

If there is a Classic Load Balancer attached to the Auto Scaling group, the instances are deregistered from the load balancer. If there are target groups attached to the Auto Scaling group, the instances are deregistered from the target groups.

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

Synopsis

Creating a Request

detachInstances Source #

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

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

data DetachInstances Source #

See: detachInstances smart constructor.

Instances

Eq DetachInstances Source # 
Data DetachInstances Source # 

Methods

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

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

toConstr :: DetachInstances -> Constr #

dataTypeOf :: DetachInstances -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachInstances Source # 
Show DetachInstances Source # 
Generic DetachInstances Source # 
Hashable DetachInstances Source # 
NFData DetachInstances Source # 

Methods

rnf :: DetachInstances -> () #

AWSRequest DetachInstances Source # 
ToHeaders DetachInstances Source # 
ToPath DetachInstances Source # 
ToQuery DetachInstances Source # 
type Rep DetachInstances Source # 
type Rep DetachInstances = D1 * (MetaData "DetachInstances" "Network.AWS.AutoScaling.DetachInstances" "amazonka-autoscaling-1.6.0-Cbg5YTxJJyv60SSUTcTsy3" False) (C1 * (MetaCons "DetachInstances'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_diInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_diAutoScalingGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_diShouldDecrementDesiredCapacity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Bool)))))
type Rs DetachInstances Source # 

Request Lenses

diInstanceIds :: Lens' DetachInstances [Text] Source #

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

diAutoScalingGroupName :: Lens' DetachInstances Text Source #

The name of the Auto Scaling group.

diShouldDecrementDesiredCapacity :: Lens' DetachInstances Bool Source #

Indicates whether the Auto Scaling group decrements the desired capacity value by the number of instances detached.

Destructuring the Response

detachInstancesResponse Source #

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

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

data DetachInstancesResponse Source #

See: detachInstancesResponse smart constructor.

Instances

Eq DetachInstancesResponse Source # 
Data DetachInstancesResponse Source # 

Methods

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

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

toConstr :: DetachInstancesResponse -> Constr #

dataTypeOf :: DetachInstancesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachInstancesResponse Source # 
Show DetachInstancesResponse Source # 
Generic DetachInstancesResponse Source # 
NFData DetachInstancesResponse Source # 

Methods

rnf :: DetachInstancesResponse -> () #

type Rep DetachInstancesResponse Source # 
type Rep DetachInstancesResponse = D1 * (MetaData "DetachInstancesResponse" "Network.AWS.AutoScaling.DetachInstances" "amazonka-autoscaling-1.6.0-Cbg5YTxJJyv60SSUTcTsy3" False) (C1 * (MetaCons "DetachInstancesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dirsActivities") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Activity]))) (S1 * (MetaSel (Just Symbol "_dirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

dirsActivities :: Lens' DetachInstancesResponse [Activity] Source #

The activities related to detaching the instances from the Auto Scaling group.