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.GetInstanceState

Description

Returns the state of a specific instance. Works on one instance at a time.

Synopsis

Creating a Request

data GetInstanceState Source #

See: newGetInstanceState smart constructor.

Constructors

GetInstanceState' 

Fields

Instances

Instances details
Eq GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Read GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Show GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Generic GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Associated Types

type Rep GetInstanceState :: Type -> Type #

NFData GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Methods

rnf :: GetInstanceState -> () #

Hashable GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

ToJSON GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

AWSRequest GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Associated Types

type AWSResponse GetInstanceState #

ToHeaders GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

ToPath GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

ToQuery GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

type Rep GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

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

Defined in Amazonka.Lightsail.GetInstanceState

newGetInstanceState Source #

Create a value of GetInstanceState 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:GetInstanceState', getInstanceState_instanceName - The name of the instance to get state information about.

Request Lenses

getInstanceState_instanceName :: Lens' GetInstanceState Text Source #

The name of the instance to get state information about.

Destructuring the Response

data GetInstanceStateResponse Source #

See: newGetInstanceStateResponse smart constructor.

Constructors

GetInstanceStateResponse' 

Fields

Instances

Instances details
Eq GetInstanceStateResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Read GetInstanceStateResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Show GetInstanceStateResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Generic GetInstanceStateResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Associated Types

type Rep GetInstanceStateResponse :: Type -> Type #

NFData GetInstanceStateResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

type Rep GetInstanceStateResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

type Rep GetInstanceStateResponse = D1 ('MetaData "GetInstanceStateResponse" "Amazonka.Lightsail.GetInstanceState" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetInstanceStateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceState)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetInstanceStateResponse Source #

Create a value of GetInstanceStateResponse 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:state:GetInstanceStateResponse', getInstanceStateResponse_state - The state of the instance.

$sel:httpStatus:GetInstanceStateResponse', getInstanceStateResponse_httpStatus - The response's http status code.

Response Lenses