| 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.RebootInstance
Description
Restarts a specific instance. When your Amazon Lightsail instance is finished rebooting, Lightsail assigns a new public IP address. To use the same IP address after restarting, create a static IP address and attach it to the instance.
Creating a Request
Arguments
| :: Text | |
| -> RebootInstance |
Creates a value of RebootInstance with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
riInstanceName- The name of the instance to reboot.
data RebootInstance Source #
See: rebootInstance smart constructor.
Instances
Request Lenses
riInstanceName :: Lens' RebootInstance Text Source #
The name of the instance to reboot.
Destructuring the Response
rebootInstanceResponse Source #
Arguments
| :: Int | |
| -> RebootInstanceResponse |
Creates a value of RebootInstanceResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rirsOperations- An array of key-value pairs containing information about the request operation.rirsResponseStatus- -- | The response status code.
data RebootInstanceResponse Source #
See: rebootInstanceResponse smart constructor.
Response Lenses
rirsOperations :: Lens' RebootInstanceResponse [Operation] Source #
An array of key-value pairs containing information about the request operation.
rirsResponseStatus :: Lens' RebootInstanceResponse Int Source #
- - | The response status code.