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

Description

To attach an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer, use the AttachLoadBalancerTargetGroups API operation instead.

Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon EC2 Auto Scaling registers the running instances with these Classic Load Balancers.

To describe the load balancers for an Auto Scaling group, call the DescribeLoadBalancers API. To detach a load balancer from the Auto Scaling group, call the DetachLoadBalancers API.

This operation is additive and does not detach existing Classic Load Balancers or target groups from the Auto Scaling group.

For more information, see Use Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

Synopsis

Creating a Request

data AttachLoadBalancers Source #

See: newAttachLoadBalancers smart constructor.

Constructors

AttachLoadBalancers' 

Fields

Instances

Instances details
ToHeaders AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

ToPath AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

ToQuery AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

AWSRequest AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Associated Types

type AWSResponse AttachLoadBalancers #

Generic AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Associated Types

type Rep AttachLoadBalancers :: Type -> Type #

Read AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Show AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

NFData AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Methods

rnf :: AttachLoadBalancers -> () #

Eq AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Hashable AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

type AWSResponse AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

type Rep AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

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

newAttachLoadBalancers Source #

Create a value of AttachLoadBalancers 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:

AttachLoadBalancers, attachLoadBalancers_autoScalingGroupName - The name of the Auto Scaling group.

AttachLoadBalancers, attachLoadBalancers_loadBalancerNames - The names of the load balancers. You can specify up to 10 load balancers.

Request Lenses

attachLoadBalancers_loadBalancerNames :: Lens' AttachLoadBalancers [Text] Source #

The names of the load balancers. You can specify up to 10 load balancers.

Destructuring the Response

data AttachLoadBalancersResponse Source #

See: newAttachLoadBalancersResponse smart constructor.

Constructors

AttachLoadBalancersResponse' 

Fields

Instances

Instances details
Generic AttachLoadBalancersResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Associated Types

type Rep AttachLoadBalancersResponse :: Type -> Type #

Read AttachLoadBalancersResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Show AttachLoadBalancersResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

NFData AttachLoadBalancersResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Eq AttachLoadBalancersResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

type Rep AttachLoadBalancersResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

type Rep AttachLoadBalancersResponse = D1 ('MetaData "AttachLoadBalancersResponse" "Amazonka.AutoScaling.AttachLoadBalancers" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" 'False) (C1 ('MetaCons "AttachLoadBalancersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAttachLoadBalancersResponse Source #

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

Response Lenses