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

Description

Attaches one or more target groups to the specified Auto Scaling group.

This operation is used with the following load balancer types:

  • Application Load Balancer - Operates at the application layer (layer 7) and supports HTTP and HTTPS.
  • Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, TLS, and UDP.
  • Gateway Load Balancer - Operates at the network layer (layer 3).

To describe the target groups for an Auto Scaling group, call the DescribeLoadBalancerTargetGroups API. To detach the target group from the Auto Scaling group, call the DetachLoadBalancerTargetGroups API.

This operation is additive and does not detach existing target groups or Classic Load Balancers 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 AttachLoadBalancerTargetGroups Source #

See: newAttachLoadBalancerTargetGroups smart constructor.

Constructors

AttachLoadBalancerTargetGroups' 

Fields

Instances

Instances details
ToHeaders AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

ToPath AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

ToQuery AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

AWSRequest AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

Generic AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

Associated Types

type Rep AttachLoadBalancerTargetGroups :: Type -> Type #

Read AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

Show AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

NFData AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

Eq AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

Hashable AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

type AWSResponse AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

type Rep AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

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

newAttachLoadBalancerTargetGroups Source #

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

AttachLoadBalancerTargetGroups, attachLoadBalancerTargetGroups_autoScalingGroupName - The name of the Auto Scaling group.

AttachLoadBalancerTargetGroups, attachLoadBalancerTargetGroups_targetGroupARNs - The Amazon Resource Names (ARNs) of the target groups. You can specify up to 10 target groups. To get the ARN of a target group, use the Elastic Load Balancing DescribeTargetGroups API operation.

Request Lenses

attachLoadBalancerTargetGroups_targetGroupARNs :: Lens' AttachLoadBalancerTargetGroups [Text] Source #

The Amazon Resource Names (ARNs) of the target groups. You can specify up to 10 target groups. To get the ARN of a target group, use the Elastic Load Balancing DescribeTargetGroups API operation.

Destructuring the Response

data AttachLoadBalancerTargetGroupsResponse Source #

Constructors

AttachLoadBalancerTargetGroupsResponse' 

Fields

Instances

Instances details
Generic AttachLoadBalancerTargetGroupsResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

Read AttachLoadBalancerTargetGroupsResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

Show AttachLoadBalancerTargetGroupsResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

NFData AttachLoadBalancerTargetGroupsResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

Eq AttachLoadBalancerTargetGroupsResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

type Rep AttachLoadBalancerTargetGroupsResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

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

newAttachLoadBalancerTargetGroupsResponse Source #

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

Response Lenses