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

Description

Updates the instance protection settings of the specified instances. This operation cannot be called on instances in a warm pool.

For more information about preventing instances that are part of an Auto Scaling group from terminating on scale in, see Instance scale-in protection in the Amazon EC2 Auto Scaling User Guide.

If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group, the call fails.

Synopsis

Creating a Request

data SetInstanceProtection Source #

See: newSetInstanceProtection smart constructor.

Constructors

SetInstanceProtection' 

Fields

Instances

Instances details
Eq SetInstanceProtection Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

Read SetInstanceProtection Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

Show SetInstanceProtection Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

Generic SetInstanceProtection Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

Associated Types

type Rep SetInstanceProtection :: Type -> Type #

NFData SetInstanceProtection Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

Methods

rnf :: SetInstanceProtection -> () #

Hashable SetInstanceProtection Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

AWSRequest SetInstanceProtection Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

Associated Types

type AWSResponse SetInstanceProtection #

ToHeaders SetInstanceProtection Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

ToPath SetInstanceProtection Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

ToQuery SetInstanceProtection Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

type Rep SetInstanceProtection Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

type Rep SetInstanceProtection = D1 ('MetaData "SetInstanceProtection" "Amazonka.AutoScaling.SetInstanceProtection" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "SetInstanceProtection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: (S1 ('MetaSel ('Just "autoScalingGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "protectedFromScaleIn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))
type AWSResponse SetInstanceProtection Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

newSetInstanceProtection Source #

Create a value of SetInstanceProtection 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:instanceIds:SetInstanceProtection', setInstanceProtection_instanceIds - One or more instance IDs. You can specify up to 50 instances.

$sel:autoScalingGroupName:SetInstanceProtection', setInstanceProtection_autoScalingGroupName - The name of the Auto Scaling group.

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

Request Lenses

setInstanceProtection_instanceIds :: Lens' SetInstanceProtection [Text] Source #

One or more instance IDs. You can specify up to 50 instances.

setInstanceProtection_protectedFromScaleIn :: Lens' SetInstanceProtection Bool Source #

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

Destructuring the Response

data SetInstanceProtectionResponse Source #

See: newSetInstanceProtectionResponse smart constructor.

Constructors

SetInstanceProtectionResponse' 

Fields

Instances

Instances details
Eq SetInstanceProtectionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

Read SetInstanceProtectionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

Show SetInstanceProtectionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

Generic SetInstanceProtectionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

Associated Types

type Rep SetInstanceProtectionResponse :: Type -> Type #

NFData SetInstanceProtectionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

type Rep SetInstanceProtectionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.SetInstanceProtection

type Rep SetInstanceProtectionResponse = D1 ('MetaData "SetInstanceProtectionResponse" "Amazonka.AutoScaling.SetInstanceProtection" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "SetInstanceProtectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newSetInstanceProtectionResponse Source #

Create a value of SetInstanceProtectionResponse 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:httpStatus:SetInstanceProtectionResponse', setInstanceProtectionResponse_httpStatus - The response's http status code.

Response Lenses