Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- 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:
$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_autoScalingGroupName :: Lens' AttachLoadBalancerTargetGroups Text Source #
The name of the Auto Scaling group.
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 #
See: newAttachLoadBalancerTargetGroupsResponse
smart constructor.
AttachLoadBalancerTargetGroupsResponse' | |
|
Instances
Eq AttachLoadBalancerTargetGroupsResponse Source # | |
Read AttachLoadBalancerTargetGroupsResponse Source # | |
Show AttachLoadBalancerTargetGroupsResponse Source # | |
Generic AttachLoadBalancerTargetGroupsResponse Source # | |
Defined in Amazonka.AutoScaling.AttachLoadBalancerTargetGroups type Rep AttachLoadBalancerTargetGroupsResponse :: Type -> Type # | |
NFData AttachLoadBalancerTargetGroupsResponse Source # | |
type Rep AttachLoadBalancerTargetGroupsResponse Source # | |
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
attachLoadBalancerTargetGroupsResponse_httpStatus :: Lens' AttachLoadBalancerTargetGroupsResponse Int Source #
The response's http status code.