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.Types.InstanceState

Description

 
Synopsis

Documentation

data InstanceState Source #

Describes the virtual private server (or instance) status.

See: newInstanceState smart constructor.

Constructors

InstanceState' 

Fields

Instances

Instances details
FromJSON InstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.Types.InstanceState

Generic InstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.Types.InstanceState

Associated Types

type Rep InstanceState :: Type -> Type #

Read InstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.Types.InstanceState

Show InstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.Types.InstanceState

NFData InstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.Types.InstanceState

Methods

rnf :: InstanceState -> () #

Eq InstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.Types.InstanceState

Hashable InstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.Types.InstanceState

type Rep InstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.Types.InstanceState

type Rep InstanceState = D1 ('MetaData "InstanceState" "Amazonka.Lightsail.Types.InstanceState" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "InstanceState'" 'PrefixI 'True) (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newInstanceState :: InstanceState Source #

Create a value of InstanceState 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:code:InstanceState', instanceState_code - The status code for the instance.

$sel:name:InstanceState', instanceState_name - The state of the instance (e.g., running or pending).

instanceState_code :: Lens' InstanceState (Maybe Int) Source #

The status code for the instance.

instanceState_name :: Lens' InstanceState (Maybe Text) Source #

The state of the instance (e.g., running or pending).