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

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 Auto Scaling group.

data DeleteAutoScalingGroup #

See: deleteAutoScalingGroup smart constructor.

Instances

Eq DeleteAutoScalingGroup # 
Data DeleteAutoScalingGroup # 

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

Methods

rnf :: DeleteAutoScalingGroup -> () #

AWSRequest DeleteAutoScalingGroup # 
ToHeaders DeleteAutoScalingGroup # 
ToPath DeleteAutoScalingGroup # 
ToQuery DeleteAutoScalingGroup # 
type Rep DeleteAutoScalingGroup # 
type Rep DeleteAutoScalingGroup = D1 * (MetaData "DeleteAutoScalingGroup" "Network.AWS.AutoScaling.DeleteAutoScalingGroup" "amazonka-autoscaling-1.6.0-DMznPeeRJvH7GRIPsqcJh1" 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 # 

Request Lenses

dasgForceDelete :: Lens' DeleteAutoScalingGroup (Maybe Bool) #

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 :: Lens' DeleteAutoScalingGroup Text #

The name of the Auto Scaling group.

Destructuring the Response

deleteAutoScalingGroupResponse :: DeleteAutoScalingGroupResponse #

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

data DeleteAutoScalingGroupResponse #

See: deleteAutoScalingGroupResponse smart constructor.

Instances

Eq DeleteAutoScalingGroupResponse # 
Data DeleteAutoScalingGroupResponse # 

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 # 
Show DeleteAutoScalingGroupResponse # 
Generic DeleteAutoScalingGroupResponse # 
NFData DeleteAutoScalingGroupResponse # 
type Rep DeleteAutoScalingGroupResponse # 
type Rep DeleteAutoScalingGroupResponse = D1 * (MetaData "DeleteAutoScalingGroupResponse" "Network.AWS.AutoScaling.DeleteAutoScalingGroup" "amazonka-autoscaling-1.6.0-DMznPeeRJvH7GRIPsqcJh1" False) (C1 * (MetaCons "DeleteAutoScalingGroupResponse'" PrefixI False) (U1 *))