amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.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

AWSRequest GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Associated Types

type AWSResponse GetInstanceState #

Generic GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Associated Types

type Rep GetInstanceState :: Type -> Type #

Read GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Show GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

NFData GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Methods

rnf :: GetInstanceState -> () #

Eq GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Hashable GetInstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

type AWSResponse 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetInstanceState'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

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
Generic GetInstanceStateResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Associated Types

type Rep GetInstanceStateResponse :: Type -> Type #

Read GetInstanceStateResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Show GetInstanceStateResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

NFData GetInstanceStateResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstanceState

Eq 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" '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:

GetInstanceStateResponse, getInstanceStateResponse_state - The state of the instance.

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

Response Lenses