amazonka-autoscaling-2.0: Amazon Auto Scaling 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.AutoScaling.AttachInstances

Description

Attaches one or more EC2 instances to the specified Auto Scaling group.

When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.

If there is a Classic Load Balancer attached to your Auto Scaling group, the instances are also registered with the load balancer. If there are target groups attached to your Auto Scaling group, the instances are also registered with the target groups.

For more information, see Attach EC2 instances to your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

Synopsis

Creating a Request

data AttachInstances Source #

See: newAttachInstances smart constructor.

Constructors

AttachInstances' 

Fields

Instances

Instances details
ToHeaders AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

ToPath AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

ToQuery AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

AWSRequest AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Associated Types

type AWSResponse AttachInstances #

Generic AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Associated Types

type Rep AttachInstances :: Type -> Type #

Read AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Show AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

NFData AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Methods

rnf :: AttachInstances -> () #

Eq AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Hashable AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

type AWSResponse AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

type Rep AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

type Rep AttachInstances = D1 ('MetaData "AttachInstances" "Amazonka.AutoScaling.AttachInstances" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" 'False) (C1 ('MetaCons "AttachInstances'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "autoScalingGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newAttachInstances Source #

Create a value of AttachInstances 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:AttachInstances', attachInstances_instanceIds - The IDs of the instances. You can specify up to 20 instances.

AttachInstances, attachInstances_autoScalingGroupName - The name of the Auto Scaling group.

Request Lenses

attachInstances_instanceIds :: Lens' AttachInstances (Maybe [Text]) Source #

The IDs of the instances. You can specify up to 20 instances.

Destructuring the Response

data AttachInstancesResponse Source #

See: newAttachInstancesResponse smart constructor.

Instances

Instances details
Generic AttachInstancesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Associated Types

type Rep AttachInstancesResponse :: Type -> Type #

Read AttachInstancesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Show AttachInstancesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

NFData AttachInstancesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Methods

rnf :: AttachInstancesResponse -> () #

Eq AttachInstancesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

type Rep AttachInstancesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

type Rep AttachInstancesResponse = D1 ('MetaData "AttachInstancesResponse" "Amazonka.AutoScaling.AttachInstances" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" 'False) (C1 ('MetaCons "AttachInstancesResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newAttachInstancesResponse :: AttachInstancesResponse Source #

Create a value of AttachInstancesResponse with all optional fields omitted.

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