Copyright | (c) 2013-2021 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 |
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.
RebootInstance' | |
|
Instances
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:
$sel:instanceName: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.
RebootInstanceResponse' | |
|
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.