amazonka-autoscaling-1.3.7: Amazon Auto Scaling SDK.

Copyright(c) 2013-2015 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.

See: AWS API Reference for DeleteAutoScalingGroup.

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:

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.