amazonka-autoscaling-1.2.0: 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.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.

For more information, see Detach EC2 Instances from Your Auto Scaling Group in the Auto Scaling Developer Guide.

See: AWS API Reference for DetachInstances.

Synopsis

Creating a Request

detachInstances Source

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:

Request Lenses

diInstanceIds :: Lens' DetachInstances [Text] Source

One or more instance IDs.

diShouldDecrementDesiredCapacity :: Lens' DetachInstances Bool Source

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

Destructuring the Response

detachInstancesResponse Source

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:

Response Lenses

dirsActivities :: Lens' DetachInstancesResponse [Activity] Source

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

dirsStatus :: Lens' DetachInstancesResponse Int Source

The response status code.