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 |
Detaches one or more target groups from the specified Auto Scaling group.
When you detach a target group, it enters the Removing
state while
deregistering the instances in the group. When all instances are
deregistered, then you can no longer describe the target group using the
DescribeLoadBalancerTargetGroups API call. The instances remain running.
You can use this operation to detach target groups that were attached by using AttachLoadBalancerTargetGroups, but not for target groups that were attached by using AttachTrafficSources.
Synopsis
- data DetachLoadBalancerTargetGroups = DetachLoadBalancerTargetGroups' {}
- newDetachLoadBalancerTargetGroups :: Text -> DetachLoadBalancerTargetGroups
- detachLoadBalancerTargetGroups_autoScalingGroupName :: Lens' DetachLoadBalancerTargetGroups Text
- detachLoadBalancerTargetGroups_targetGroupARNs :: Lens' DetachLoadBalancerTargetGroups [Text]
- data DetachLoadBalancerTargetGroupsResponse = DetachLoadBalancerTargetGroupsResponse' {
- httpStatus :: Int
- newDetachLoadBalancerTargetGroupsResponse :: Int -> DetachLoadBalancerTargetGroupsResponse
- detachLoadBalancerTargetGroupsResponse_httpStatus :: Lens' DetachLoadBalancerTargetGroupsResponse Int
Creating a Request
data DetachLoadBalancerTargetGroups Source #
See: newDetachLoadBalancerTargetGroups
smart constructor.
DetachLoadBalancerTargetGroups' | |
|
Instances
newDetachLoadBalancerTargetGroups Source #
Create a value of DetachLoadBalancerTargetGroups
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:
DetachLoadBalancerTargetGroups
, detachLoadBalancerTargetGroups_autoScalingGroupName
- The name of the Auto Scaling group.
DetachLoadBalancerTargetGroups
, detachLoadBalancerTargetGroups_targetGroupARNs
- The Amazon Resource Names (ARN) of the target groups. You can specify up
to 10 target groups.
Request Lenses
detachLoadBalancerTargetGroups_autoScalingGroupName :: Lens' DetachLoadBalancerTargetGroups Text Source #
The name of the Auto Scaling group.
detachLoadBalancerTargetGroups_targetGroupARNs :: Lens' DetachLoadBalancerTargetGroups [Text] Source #
The Amazon Resource Names (ARN) of the target groups. You can specify up to 10 target groups.
Destructuring the Response
data DetachLoadBalancerTargetGroupsResponse Source #
See: newDetachLoadBalancerTargetGroupsResponse
smart constructor.
DetachLoadBalancerTargetGroupsResponse' | |
|
Instances
Generic DetachLoadBalancerTargetGroupsResponse Source # | |
Defined in Amazonka.AutoScaling.DetachLoadBalancerTargetGroups type Rep DetachLoadBalancerTargetGroupsResponse :: Type -> Type # | |
Read DetachLoadBalancerTargetGroupsResponse Source # | |
Show DetachLoadBalancerTargetGroupsResponse Source # | |
NFData DetachLoadBalancerTargetGroupsResponse Source # | |
Eq DetachLoadBalancerTargetGroupsResponse Source # | |
type Rep DetachLoadBalancerTargetGroupsResponse Source # | |
Defined in Amazonka.AutoScaling.DetachLoadBalancerTargetGroups type Rep DetachLoadBalancerTargetGroupsResponse = D1 ('MetaData "DetachLoadBalancerTargetGroupsResponse" "Amazonka.AutoScaling.DetachLoadBalancerTargetGroups" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" 'False) (C1 ('MetaCons "DetachLoadBalancerTargetGroupsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDetachLoadBalancerTargetGroupsResponse Source #
Create a value of DetachLoadBalancerTargetGroupsResponse
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:DetachLoadBalancerTargetGroupsResponse'
, detachLoadBalancerTargetGroupsResponse_httpStatus
- The response's http status code.
Response Lenses
detachLoadBalancerTargetGroupsResponse_httpStatus :: Lens' DetachLoadBalancerTargetGroupsResponse Int Source #
The response's http status code.