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.SetInstanceHealth

Description

Sets the health status of the specified instance.

For more information, see Health checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide.

Synopsis

Creating a Request

data SetInstanceHealth Source #

See: newSetInstanceHealth smart constructor.

Constructors

SetInstanceHealth' 

Fields

  • shouldRespectGracePeriod :: Maybe Bool

    If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the group, by default, this call respects the grace period. Set this to False, to have the call not respect the grace period associated with the group.

    For more information about the health check grace period, see CreateAutoScalingGroup in the Amazon EC2 Auto Scaling API Reference.

  • instanceId :: Text

    The ID of the instance.

  • healthStatus :: Text

    The health status of the instance. Set to Healthy to have the instance remain in service. Set to Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.

Instances

Instances details
Eq SetInstanceHealth Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

Read SetInstanceHealth Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

Show SetInstanceHealth Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

Generic SetInstanceHealth Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

Associated Types

type Rep SetInstanceHealth :: Type -> Type #

NFData SetInstanceHealth Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

Methods

rnf :: SetInstanceHealth -> () #

Hashable SetInstanceHealth Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

AWSRequest SetInstanceHealth Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

Associated Types

type AWSResponse SetInstanceHealth #

ToHeaders SetInstanceHealth Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

ToPath SetInstanceHealth Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

ToQuery SetInstanceHealth Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

type Rep SetInstanceHealth Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

type Rep SetInstanceHealth = D1 ('MetaData "SetInstanceHealth" "Amazonka.AutoScaling.SetInstanceHealth" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "SetInstanceHealth'" 'PrefixI 'True) (S1 ('MetaSel ('Just "shouldRespectGracePeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "healthStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse SetInstanceHealth Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

newSetInstanceHealth Source #

Create a value of SetInstanceHealth 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:shouldRespectGracePeriod:SetInstanceHealth', setInstanceHealth_shouldRespectGracePeriod - If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the group, by default, this call respects the grace period. Set this to False, to have the call not respect the grace period associated with the group.

For more information about the health check grace period, see CreateAutoScalingGroup in the Amazon EC2 Auto Scaling API Reference.

$sel:instanceId:SetInstanceHealth', setInstanceHealth_instanceId - The ID of the instance.

$sel:healthStatus:SetInstanceHealth', setInstanceHealth_healthStatus - The health status of the instance. Set to Healthy to have the instance remain in service. Set to Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.

Request Lenses

setInstanceHealth_shouldRespectGracePeriod :: Lens' SetInstanceHealth (Maybe Bool) Source #

If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the group, by default, this call respects the grace period. Set this to False, to have the call not respect the grace period associated with the group.

For more information about the health check grace period, see CreateAutoScalingGroup in the Amazon EC2 Auto Scaling API Reference.

setInstanceHealth_healthStatus :: Lens' SetInstanceHealth Text Source #

The health status of the instance. Set to Healthy to have the instance remain in service. Set to Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.

Destructuring the Response

data SetInstanceHealthResponse Source #

See: newSetInstanceHealthResponse smart constructor.

Instances

Instances details
Eq SetInstanceHealthResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

Read SetInstanceHealthResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

Show SetInstanceHealthResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

Generic SetInstanceHealthResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

Associated Types

type Rep SetInstanceHealthResponse :: Type -> Type #

NFData SetInstanceHealthResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

type Rep SetInstanceHealthResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceHealth

type Rep SetInstanceHealthResponse = D1 ('MetaData "SetInstanceHealthResponse" "Amazonka.AutoScaling.SetInstanceHealth" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "SetInstanceHealthResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newSetInstanceHealthResponse :: SetInstanceHealthResponse Source #

Create a value of SetInstanceHealthResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.