libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling
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.AutoScaling.Types.Instance

Description

 
Synopsis

Documentation

data Instance Source #

Describes an EC2 instance.

See: newInstance smart constructor.

Constructors

Instance' 

Fields

Instances

Instances details
Eq Instance Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Instance

Read Instance Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Instance

Show Instance Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Instance

Generic Instance Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Instance

Associated Types

type Rep Instance :: Type -> Type #

Methods

from :: Instance -> Rep Instance x #

to :: Rep Instance x -> Instance #

NFData Instance Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Instance

Methods

rnf :: Instance -> () #

Hashable Instance Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Instance

Methods

hashWithSalt :: Int -> Instance -> Int #

hash :: Instance -> Int #

FromXML Instance Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Instance

type Rep Instance Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Instance

type Rep Instance = D1 ('MetaData "Instance" "Amazonka.AutoScaling.Types.Instance" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "Instance'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "weightedCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "instanceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "launchConfigurationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "launchTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LaunchTemplateSpecification)))) :*: ((S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "availabilityZone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "lifecycleState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LifecycleState) :*: (S1 ('MetaSel ('Just "healthStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "protectedFromScaleIn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))))

newInstance Source #

Create a value of Instance 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:weightedCapacity:Instance', instance_weightedCapacity - The number of capacity units contributed by the instance based on its instance type.

Valid Range: Minimum value of 1. Maximum value of 999.

$sel:instanceType:Instance', instance_instanceType - The instance type of the EC2 instance.

$sel:launchConfigurationName:Instance', instance_launchConfigurationName - The launch configuration associated with the instance.

$sel:launchTemplate:Instance', instance_launchTemplate - The launch template for the instance.

$sel:instanceId:Instance', instance_instanceId - The ID of the instance.

$sel:availabilityZone:Instance', instance_availabilityZone - The Availability Zone in which the instance is running.

$sel:lifecycleState:Instance', instance_lifecycleState - A description of the current lifecycle state. The Quarantined state is not used. For information about lifecycle states, see Instance lifecycle in the Amazon EC2 Auto Scaling User Guide.

$sel:healthStatus:Instance', instance_healthStatus - The last reported health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy and that Amazon EC2 Auto Scaling should terminate and replace it.

$sel:protectedFromScaleIn:Instance', instance_protectedFromScaleIn - Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.

instance_weightedCapacity :: Lens' Instance (Maybe Text) Source #

The number of capacity units contributed by the instance based on its instance type.

Valid Range: Minimum value of 1. Maximum value of 999.

instance_instanceType :: Lens' Instance (Maybe Text) Source #

The instance type of the EC2 instance.

instance_launchConfigurationName :: Lens' Instance (Maybe Text) Source #

The launch configuration associated with the instance.

instance_instanceId :: Lens' Instance Text Source #

The ID of the instance.

instance_availabilityZone :: Lens' Instance Text Source #

The Availability Zone in which the instance is running.

instance_lifecycleState :: Lens' Instance LifecycleState Source #

A description of the current lifecycle state. The Quarantined state is not used. For information about lifecycle states, see Instance lifecycle in the Amazon EC2 Auto Scaling User Guide.

instance_healthStatus :: Lens' Instance Text Source #

The last reported health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy and that Amazon EC2 Auto Scaling should terminate and replace it.

instance_protectedFromScaleIn :: Lens' Instance Bool Source #

Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.