Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data AttachLoadBalancerTargetGroups = AttachLoadBalancerTargetGroups' {}
- newAttachLoadBalancerTargetGroups :: Text -> AttachLoadBalancerTargetGroups
- attachLoadBalancerTargetGroups_autoScalingGroupName :: Lens' AttachLoadBalancerTargetGroups Text
- attachLoadBalancerTargetGroups_targetGroupARNs :: Lens' AttachLoadBalancerTargetGroups [Text]
- data AttachLoadBalancerTargetGroupsResponse = AttachLoadBalancerTargetGroupsResponse' {
- httpStatus :: Int
- newAttachLoadBalancerTargetGroupsResponse :: Int -> AttachLoadBalancerTargetGroupsResponse
- attachLoadBalancerTargetGroupsResponse_httpStatus :: Lens' AttachLoadBalancerTargetGroupsResponse Int
Creating a Request
data AttachLoadBalancerTargetGroups Source #
See: newAttachLoadBalancerTargetGroups
smart constructor.
AttachLoadBalancerTargetGroups' | |
|
Instances
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_autoScalingGroupName :: Lens' AttachLoadBalancerTargetGroups Text Source #
The name of the Auto Scaling group.
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 #
See: newAttachLoadBalancerTargetGroupsResponse
smart constructor.
AttachLoadBalancerTargetGroupsResponse' | |
|
Instances
Generic AttachLoadBalancerTargetGroupsResponse Source # | |
Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups type Rep AttachLoadBalancerTargetGroupsResponse :: Type -> Type # | |
Read AttachLoadBalancerTargetGroupsResponse Source # | |
Show AttachLoadBalancerTargetGroupsResponse Source # | |
NFData AttachLoadBalancerTargetGroupsResponse Source # | |
Eq AttachLoadBalancerTargetGroupsResponse Source # | |
type Rep AttachLoadBalancerTargetGroupsResponse Source # | |
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
attachLoadBalancerTargetGroupsResponse_httpStatus :: Lens' AttachLoadBalancerTargetGroupsResponse Int Source #
The response's http status code.