amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.Types.ActiveInstance

Description

 
Synopsis

Documentation

data ActiveInstance Source #

Describes a running instance in a Spot Fleet.

See: newActiveInstance smart constructor.

Constructors

ActiveInstance' 

Fields

Instances

Instances details
FromXML ActiveInstance Source # 
Instance details

Defined in Amazonka.EC2.Types.ActiveInstance

Generic ActiveInstance Source # 
Instance details

Defined in Amazonka.EC2.Types.ActiveInstance

Associated Types

type Rep ActiveInstance :: Type -> Type #

Read ActiveInstance Source # 
Instance details

Defined in Amazonka.EC2.Types.ActiveInstance

Show ActiveInstance Source # 
Instance details

Defined in Amazonka.EC2.Types.ActiveInstance

NFData ActiveInstance Source # 
Instance details

Defined in Amazonka.EC2.Types.ActiveInstance

Methods

rnf :: ActiveInstance -> () #

Eq ActiveInstance Source # 
Instance details

Defined in Amazonka.EC2.Types.ActiveInstance

Hashable ActiveInstance Source # 
Instance details

Defined in Amazonka.EC2.Types.ActiveInstance

type Rep ActiveInstance Source # 
Instance details

Defined in Amazonka.EC2.Types.ActiveInstance

type Rep ActiveInstance = D1 ('MetaData "ActiveInstance" "Amazonka.EC2.Types.ActiveInstance" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ActiveInstance'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "instanceHealth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceHealthStatus)) :*: S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "instanceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "spotInstanceRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newActiveInstance :: ActiveInstance Source #

Create a value of ActiveInstance 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:instanceHealth:ActiveInstance', activeInstance_instanceHealth - The health status of the instance. If the status of either the instance status check or the system status check is impaired, the health status of the instance is unhealthy. Otherwise, the health status is healthy.

$sel:instanceId:ActiveInstance', activeInstance_instanceId - The ID of the instance.

$sel:instanceType:ActiveInstance', activeInstance_instanceType - The instance type.

$sel:spotInstanceRequestId:ActiveInstance', activeInstance_spotInstanceRequestId - The ID of the Spot Instance request.

activeInstance_instanceHealth :: Lens' ActiveInstance (Maybe InstanceHealthStatus) Source #

The health status of the instance. If the status of either the instance status check or the system status check is impaired, the health status of the instance is unhealthy. Otherwise, the health status is healthy.