| Copyright | (c) 2013-2017 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 |
Network.AWS.Lightsail.StopInstance
Description
Stops a specific Amazon Lightsail instance that is currently running.
Creating a Request
Arguments
| :: Text | |
| -> StopInstance |
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:
siInstanceName- The name of the instance (a virtual private server) to stop.
data StopInstance Source #
See: stopInstance smart constructor.
Instances
Request Lenses
siInstanceName :: Lens' StopInstance Text Source #
The name of the instance (a virtual private server) to stop.
Destructuring the Response
Arguments
| :: Int | |
| -> StopInstanceResponse |
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.