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

Contents

Description

Deletes the specified Auto Scaling group.

If the group has instances or scaling activities in progress, you must specify the option to force the deletion in order for it to succeed.

If the group has policies, deleting the group deletes the policies, the underlying alarm actions, and any alarm that no longer has an associated action.

To remove instances from the Auto Scaling group before deleting it, call DetachInstances with the list of instances and the option to decrement the desired capacity so that Auto Scaling does not launch replacement instances.

To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup and set the minimum size and desired capacity of the Auto Scaling group to zero.

Synopsis

Creating a Request

deleteAutoScalingGroup Source #

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

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

  • dasgForceDelete - Specifies that the group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.
  • dasgAutoScalingGroupName - The name of the group to delete.

data DeleteAutoScalingGroup Source #

Contains the parameters for DeleteAutoScalingGroup.

See: deleteAutoScalingGroup smart constructor.

Instances

Eq DeleteAutoScalingGroup Source # 
Data DeleteAutoScalingGroup Source # 

Methods

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

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

toConstr :: DeleteAutoScalingGroup -> Constr #

dataTypeOf :: DeleteAutoScalingGroup -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteAutoScalingGroup Source # 
Show DeleteAutoScalingGroup Source # 
Generic DeleteAutoScalingGroup Source # 
Hashable DeleteAutoScalingGroup Source # 
NFData DeleteAutoScalingGroup Source # 

Methods

rnf :: DeleteAutoScalingGroup -> () #

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

Request Lenses

dasgForceDelete :: Lens' DeleteAutoScalingGroup (Maybe Bool) Source #

Specifies that the group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.

Destructuring the Response

deleteAutoScalingGroupResponse :: DeleteAutoScalingGroupResponse Source #

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

data DeleteAutoScalingGroupResponse Source #

See: deleteAutoScalingGroupResponse smart constructor.

Instances

Eq DeleteAutoScalingGroupResponse Source # 
Data DeleteAutoScalingGroupResponse Source # 

Methods

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

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

toConstr :: DeleteAutoScalingGroupResponse -> Constr #

dataTypeOf :: DeleteAutoScalingGroupResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteAutoScalingGroupResponse Source # 
Show DeleteAutoScalingGroupResponse Source # 
Generic DeleteAutoScalingGroupResponse Source # 
NFData DeleteAutoScalingGroupResponse Source # 
type Rep DeleteAutoScalingGroupResponse Source # 
type Rep DeleteAutoScalingGroupResponse = D1 (MetaData "DeleteAutoScalingGroupResponse" "Network.AWS.AutoScaling.DeleteAutoScalingGroup" "amazonka-autoscaling-1.4.5-8yDHjz7ddEsEeD2f2YA1qk" False) (C1 (MetaCons "DeleteAutoScalingGroupResponse'" PrefixI False) U1)