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.DetachInstances

Contents

Description

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

After the instances are detached, you can manage them independently from the rest 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 #

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 #

Contains the parameters for DetachInstances.

See: detachInstances smart constructor.

Instances

Eq DetachInstances # 
Data DetachInstances # 

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 # 
Show DetachInstances # 
Generic DetachInstances # 
Hashable DetachInstances # 
NFData DetachInstances # 

Methods

rnf :: DetachInstances -> () #

AWSRequest DetachInstances # 
ToQuery DetachInstances # 
ToPath DetachInstances # 
ToHeaders DetachInstances # 
type Rep DetachInstances # 
type Rep DetachInstances = D1 (MetaData "DetachInstances" "Network.AWS.AutoScaling.DetachInstances" "amazonka-autoscaling-1.4.5-7eWJWM4Di3O2fihmLpacNP" 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 # 

Request Lenses

diInstanceIds :: Lens' DetachInstances [Text] #

One or more instance IDs.

diShouldDecrementDesiredCapacity :: Lens' DetachInstances Bool #

If True , the Auto Scaling group decrements the desired capacity value by the number of instances detached.

Destructuring the Response

detachInstancesResponse #

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 #

Contains the output of DetachInstances.

See: detachInstancesResponse smart constructor.

Instances

Eq DetachInstancesResponse # 
Data DetachInstancesResponse # 

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 # 
Show DetachInstancesResponse # 
Generic DetachInstancesResponse # 
NFData DetachInstancesResponse # 

Methods

rnf :: DetachInstancesResponse -> () #

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

Response Lenses

dirsActivities :: Lens' DetachInstancesResponse [Activity] #

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

dirsResponseStatus :: Lens' DetachInstancesResponse Int #

  • - | The response status code.