| 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 |
Network.AWS.AutoScaling.SetInstanceProtection
Description
Updates the instance protection settings of the specified instances.
For more information, see Instance Protection in the Auto Scaling Developer Guide.
See: AWS API Reference for SetInstanceProtection.
- setInstanceProtection :: Text -> Bool -> SetInstanceProtection
- data SetInstanceProtection
- sipInstanceIds :: Lens' SetInstanceProtection [Text]
- sipAutoScalingGroupName :: Lens' SetInstanceProtection Text
- sipProtectedFromScaleIn :: Lens' SetInstanceProtection Bool
- setInstanceProtectionResponse :: Int -> SetInstanceProtectionResponse
- data SetInstanceProtectionResponse
- siprsResponseStatus :: Lens' SetInstanceProtectionResponse Int
Creating a Request
Creates a value of SetInstanceProtection with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SetInstanceProtection Source
See: setInstanceProtection smart constructor.
Instances
Request Lenses
sipInstanceIds :: Lens' SetInstanceProtection [Text] Source
One or more instance IDs.
sipAutoScalingGroupName :: Lens' SetInstanceProtection Text Source
The name of the group.
sipProtectedFromScaleIn :: Lens' SetInstanceProtection Bool Source
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
Destructuring the Response
setInstanceProtectionResponse Source
Arguments
| :: Int | |
| -> SetInstanceProtectionResponse |
Creates a value of SetInstanceProtectionResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SetInstanceProtectionResponse Source
See: setInstanceProtectionResponse smart constructor.
Response Lenses
siprsResponseStatus :: Lens' SetInstanceProtectionResponse Int Source
The response status code.