Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- detachInstances :: Text -> Bool -> DetachInstances
- data DetachInstances
- diInstanceIds :: Lens' DetachInstances [Text]
- diAutoScalingGroupName :: Lens' DetachInstances Text
- diShouldDecrementDesiredCapacity :: Lens' DetachInstances Bool
- detachInstancesResponse :: Int -> DetachInstancesResponse
- data DetachInstancesResponse
- dirsActivities :: Lens' DetachInstancesResponse [Activity]
- dirsResponseStatus :: Lens' DetachInstancesResponse Int
Creating a Request
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:
data DetachInstances Source
See: detachInstances
smart constructor.
Request Lenses
diInstanceIds :: Lens' DetachInstances [Text] Source
One or more instance IDs.
diAutoScalingGroupName :: Lens' DetachInstances Text Source
The name of the group.
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:
data DetachInstancesResponse Source
See: detachInstancesResponse
smart constructor.
Response Lenses
dirsActivities :: Lens' DetachInstancesResponse [Activity] Source
The activities related to detaching the instances from the Auto Scaling group.
dirsResponseStatus :: Lens' DetachInstancesResponse Int Source
The response status code.