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

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 AttachLoadBalancerTargetGroups Source #

See: newAttachLoadBalancerTargetGroups smart constructor.

Constructors

AttachLoadBalancerTargetGroups' 

Fields

Instances

Instances details
Eq AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

Read AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

Show 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 #

NFData AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

Hashable AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

AWSRequest AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

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

type Rep AttachLoadBalancerTargetGroups Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

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

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

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:

$sel:autoScalingGroupName:AttachLoadBalancerTargetGroups', attachLoadBalancerTargetGroups_autoScalingGroupName - The name of the Auto Scaling group.

$sel:targetGroupARNs:AttachLoadBalancerTargetGroups', attachLoadBalancerTargetGroups_targetGroupARNs - The Amazon Resource Names (ARN) 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 (ARN) 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
Eq 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

Generic AttachLoadBalancerTargetGroupsResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups

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