Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Stops a specific Amazon Lightsail instance that is currently running.
- stopInstance :: Text -> StopInstance
- data StopInstance
- siForce :: Lens' StopInstance (Maybe Bool)
- siInstanceName :: Lens' StopInstance Text
- stopInstanceResponse :: Int -> StopInstanceResponse
- data StopInstanceResponse
- sirsOperations :: Lens' StopInstanceResponse [Operation]
- sirsResponseStatus :: Lens' StopInstanceResponse Int
Creating a Request
Creates a value of StopInstance
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
siForce
- When set toTrue
, forces a Lightsail instance that is stuck in astopping
state to stop. Important: Only use theforce
parameter if your instance is stuck in thestopping
state. In any other state, your instance should stop normally without adding this parameter to your API request.siInstanceName
- The name of the instance (a virtual private server) to stop.
data StopInstance Source #
See: stopInstance
smart constructor.
Request Lenses
siForce :: Lens' StopInstance (Maybe Bool) Source #
When set to True
, forces a Lightsail instance that is stuck in a stopping
state to stop. Important: Only use the force
parameter if your instance is stuck in the stopping
state. In any other state, your instance should stop normally without adding this parameter to your API request.
siInstanceName :: Lens' StopInstance Text Source #
The name of the instance (a virtual private server) to stop.
Destructuring the Response
Creates a value of StopInstanceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sirsOperations
- An array of key-value pairs containing information about the request operation.sirsResponseStatus
- -- | The response status code.
data StopInstanceResponse Source #
See: stopInstanceResponse
smart constructor.
Response Lenses
sirsOperations :: Lens' StopInstanceResponse [Operation] Source #
An array of key-value pairs containing information about the request operation.
sirsResponseStatus :: Lens' StopInstanceResponse Int Source #
- - | The response status code.