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

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

Data DeleteAutoScalingGroup # 
Instance details

Defined in Network.AWS.AutoScaling.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 # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

Show DeleteAutoScalingGroup # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

Generic DeleteAutoScalingGroup # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

Associated Types

type Rep DeleteAutoScalingGroup :: * -> * #

Hashable DeleteAutoScalingGroup # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

AWSRequest DeleteAutoScalingGroup # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

Associated Types

type Rs DeleteAutoScalingGroup :: * #

ToHeaders DeleteAutoScalingGroup # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

ToPath DeleteAutoScalingGroup # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

ToQuery DeleteAutoScalingGroup # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

NFData DeleteAutoScalingGroup # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

Methods

rnf :: DeleteAutoScalingGroup -> () #

type Rep DeleteAutoScalingGroup # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

type Rep DeleteAutoScalingGroup = D1 (MetaData "DeleteAutoScalingGroup" "Network.AWS.AutoScaling.DeleteAutoScalingGroup" "amazonka-autoscaling-1.6.0-DYtPJWRFp2RHFedRQEOKCy" False) (C1 (MetaCons "DeleteAutoScalingGroup'" PrefixI True) (S1 (MetaSel (Just "_dasgForceDelete") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_dasgAutoScalingGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DeleteAutoScalingGroup # 
Instance details

Defined in Network.AWS.AutoScaling.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 # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

Data DeleteAutoScalingGroupResponse # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

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

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

Show DeleteAutoScalingGroupResponse # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

Generic DeleteAutoScalingGroupResponse # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

Associated Types

type Rep DeleteAutoScalingGroupResponse :: * -> * #

NFData DeleteAutoScalingGroupResponse # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

type Rep DeleteAutoScalingGroupResponse # 
Instance details

Defined in Network.AWS.AutoScaling.DeleteAutoScalingGroup

type Rep DeleteAutoScalingGroupResponse = D1 (MetaData "DeleteAutoScalingGroupResponse" "Network.AWS.AutoScaling.DeleteAutoScalingGroup" "amazonka-autoscaling-1.6.0-DYtPJWRFp2RHFedRQEOKCy" False) (C1 (MetaCons "DeleteAutoScalingGroupResponse'" PrefixI False) (U1 :: * -> *))