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.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
Eq InstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.Types.InstanceState

Read InstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.Types.InstanceState

Show 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 #

NFData InstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.Types.InstanceState

Methods

rnf :: InstanceState -> () #

Hashable InstanceState Source # 
Instance details

Defined in Amazonka.Lightsail.Types.InstanceState

FromJSON 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" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "InstanceState'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))

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:name:InstanceState', instanceState_name - The state of the instance (e.g., running or pending).

$sel:code:InstanceState', instanceState_code - The status code for the instance.

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

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

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

The status code for the instance.