| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Lightsail.RebootInstance
Description
Restarts a specific instance.
The reboot instance operation supports tag-based access control via
resource tags applied to the resource identified by instance name. For
more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data RebootInstance = RebootInstance' {
- instanceName :: Text
- newRebootInstance :: Text -> RebootInstance
- rebootInstance_instanceName :: Lens' RebootInstance Text
- data RebootInstanceResponse = RebootInstanceResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newRebootInstanceResponse :: Int -> RebootInstanceResponse
- rebootInstanceResponse_operations :: Lens' RebootInstanceResponse (Maybe [Operation])
- rebootInstanceResponse_httpStatus :: Lens' RebootInstanceResponse Int
Creating a Request
data RebootInstance Source #
See: newRebootInstance smart constructor.
Constructors
| RebootInstance' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> RebootInstance |
Create a value of RebootInstance with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
RebootInstance, rebootInstance_instanceName - The name of the instance to reboot.
Request Lenses
rebootInstance_instanceName :: Lens' RebootInstance Text Source #
The name of the instance to reboot.
Destructuring the Response
data RebootInstanceResponse Source #
See: newRebootInstanceResponse smart constructor.
Constructors
| RebootInstanceResponse' | |
Fields
| |
Instances
newRebootInstanceResponse Source #
Create a value of RebootInstanceResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:operations:RebootInstanceResponse', rebootInstanceResponse_operations - An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:RebootInstanceResponse', rebootInstanceResponse_httpStatus - The response's http status code.
Response Lenses
rebootInstanceResponse_operations :: Lens' RebootInstanceResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
rebootInstanceResponse_httpStatus :: Lens' RebootInstanceResponse Int Source #
The response's http status code.