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.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
Eq AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Read AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Show AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Generic AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Associated Types

type Rep AttachInstances :: Type -> Type #

NFData AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Methods

rnf :: AttachInstances -> () #

Hashable AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

AWSRequest AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Associated Types

type AWSResponse AttachInstances #

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

type Rep AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

type Rep AttachInstances = D1 ('MetaData "AttachInstances" "Amazonka.AutoScaling.AttachInstances" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" '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)))
type AWSResponse AttachInstances Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

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.

$sel:autoScalingGroupName: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
Eq AttachInstancesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Read AttachInstancesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Show AttachInstancesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Generic AttachInstancesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Associated Types

type Rep AttachInstancesResponse :: Type -> Type #

NFData AttachInstancesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

Methods

rnf :: AttachInstancesResponse -> () #

type Rep AttachInstancesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachInstances

type Rep AttachInstancesResponse = D1 ('MetaData "AttachInstancesResponse" "Amazonka.AutoScaling.AttachInstances" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" '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.