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 |
Starts a specific Amazon Lightsail instance from a stopped state. To
restart an instance, use the reboot instance
operation.
When you start a stopped instance, Lightsail assigns a new public IP address to the instance. To use the same IP address after stopping and starting an instance, create a static IP address and attach it to the instance. For more information, see the Amazon Lightsail Developer Guide.
The start 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 StartInstance = StartInstance' {
- instanceName :: Text
- newStartInstance :: Text -> StartInstance
- startInstance_instanceName :: Lens' StartInstance Text
- data StartInstanceResponse = StartInstanceResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newStartInstanceResponse :: Int -> StartInstanceResponse
- startInstanceResponse_operations :: Lens' StartInstanceResponse (Maybe [Operation])
- startInstanceResponse_httpStatus :: Lens' StartInstanceResponse Int
Creating a Request
data StartInstance Source #
See: newStartInstance
smart constructor.
StartInstance' | |
|
Instances
Create a value of StartInstance
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:StartInstance'
, startInstance_instanceName
- The name of the instance (a virtual private server) to start.
Request Lenses
startInstance_instanceName :: Lens' StartInstance Text Source #
The name of the instance (a virtual private server) to start.
Destructuring the Response
data StartInstanceResponse Source #
See: newStartInstanceResponse
smart constructor.
StartInstanceResponse' | |
|
Instances
newStartInstanceResponse Source #
Create a value of StartInstanceResponse
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:StartInstanceResponse'
, startInstanceResponse_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:StartInstanceResponse'
, startInstanceResponse_httpStatus
- The response's http status code.
Response Lenses
startInstanceResponse_operations :: Lens' StartInstanceResponse (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.
startInstanceResponse_httpStatus :: Lens' StartInstanceResponse Int Source #
The response's http status code.