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.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 the load balancer from the Auto Scaling group, call the DetachLoadBalancers API.

For more information, see Elastic Load Balancing and Amazon EC2 Auto Scaling 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
Eq AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Read AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Show AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Generic AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Associated Types

type Rep AttachLoadBalancers :: Type -> Type #

NFData AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Methods

rnf :: AttachLoadBalancers -> () #

Hashable AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

AWSRequest AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Associated Types

type AWSResponse AttachLoadBalancers #

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

type Rep AttachLoadBalancers Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

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

Defined in Amazonka.AutoScaling.AttachLoadBalancers

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:

$sel:autoScalingGroupName:AttachLoadBalancers', attachLoadBalancers_autoScalingGroupName - The name of the Auto Scaling group.

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

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Read AttachLoadBalancersResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Show AttachLoadBalancersResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Generic AttachLoadBalancersResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancers

Associated Types

type Rep AttachLoadBalancersResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" '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