libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lightsail.StartInstance

Description

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

Creating a Request

data StartInstance Source #

See: newStartInstance smart constructor.

Constructors

StartInstance' 

Fields

  • instanceName :: Text

    The name of the instance (a virtual private server) to start.

Instances

Instances details
Eq StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

Read StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

Show StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

Generic StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

Associated Types

type Rep StartInstance :: Type -> Type #

NFData StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

Methods

rnf :: StartInstance -> () #

Hashable StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

ToJSON StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

AWSRequest StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

Associated Types

type AWSResponse StartInstance #

ToHeaders StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

ToPath StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

ToQuery StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

type Rep StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

type Rep StartInstance = D1 ('MetaData "StartInstance" "Amazonka.Lightsail.StartInstance" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "StartInstance'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse StartInstance Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

newStartInstance Source #

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.

Constructors

StartInstanceResponse' 

Fields

  • operations :: Maybe [Operation]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq StartInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

Read StartInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

Show StartInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

Generic StartInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

Associated Types

type Rep StartInstanceResponse :: Type -> Type #

NFData StartInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

Methods

rnf :: StartInstanceResponse -> () #

type Rep StartInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.StartInstance

type Rep StartInstanceResponse = D1 ('MetaData "StartInstanceResponse" "Amazonka.Lightsail.StartInstance" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "StartInstanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.