Copyright | (c) 2013-2016 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 |
Updates the instance protection settings of the specified instances.
For more information, see Instance Protection in the Auto Scaling User Guide .
- 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
setInstanceProtection Source #
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:
sipInstanceIds
- One or more instance IDs.sipAutoScalingGroupName
- The name of the group.sipProtectedFromScaleIn
- Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
data SetInstanceProtection Source #
Contains the parameters for SetInstanceProtection.
See: setInstanceProtection
smart constructor.
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 #
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:
siprsResponseStatus
- -- | The response status code.
data SetInstanceProtectionResponse Source #
Contains the output of SetInstanceProtection.
See: setInstanceProtectionResponse
smart constructor.
Response Lenses
siprsResponseStatus :: Lens' SetInstanceProtectionResponse Int Source #
- - | The response status code.