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 |
__Reserved for use with Amazon VPC Lattice, which is in preview and subject to change. Do not use this API for production workloads. This API is also subject to change.__
Detaches one or more traffic sources from the specified Auto Scaling group.
Synopsis
- data DetachTrafficSources = DetachTrafficSources' {}
- newDetachTrafficSources :: Text -> DetachTrafficSources
- detachTrafficSources_autoScalingGroupName :: Lens' DetachTrafficSources Text
- detachTrafficSources_trafficSources :: Lens' DetachTrafficSources [TrafficSourceIdentifier]
- data DetachTrafficSourcesResponse = DetachTrafficSourcesResponse' {
- httpStatus :: Int
- newDetachTrafficSourcesResponse :: Int -> DetachTrafficSourcesResponse
- detachTrafficSourcesResponse_httpStatus :: Lens' DetachTrafficSourcesResponse Int
Creating a Request
data DetachTrafficSources Source #
See: newDetachTrafficSources
smart constructor.
DetachTrafficSources' | |
|
Instances
newDetachTrafficSources Source #
Create a value of DetachTrafficSources
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:
DetachTrafficSources
, detachTrafficSources_autoScalingGroupName
- The name of the Auto Scaling group.
DetachTrafficSources
, detachTrafficSources_trafficSources
- The unique identifiers of one or more traffic sources you are detaching.
You can specify up to 10 traffic sources.
Currently, you must specify an Amazon Resource Name (ARN) for an
existing VPC Lattice target 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 DescribeTrafficSources API call. The
instances continue to run.
Request Lenses
detachTrafficSources_autoScalingGroupName :: Lens' DetachTrafficSources Text Source #
The name of the Auto Scaling group.
detachTrafficSources_trafficSources :: Lens' DetachTrafficSources [TrafficSourceIdentifier] Source #
The unique identifiers of one or more traffic sources you are detaching. You can specify up to 10 traffic sources.
Currently, you must specify an Amazon Resource Name (ARN) for an
existing VPC Lattice target 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 DescribeTrafficSources API call. The
instances continue to run.
Destructuring the Response
data DetachTrafficSourcesResponse Source #
See: newDetachTrafficSourcesResponse
smart constructor.
DetachTrafficSourcesResponse' | |
|
Instances
newDetachTrafficSourcesResponse Source #
Create a value of DetachTrafficSourcesResponse
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:DetachTrafficSourcesResponse'
, detachTrafficSourcesResponse_httpStatus
- The response's http status code.
Response Lenses
detachTrafficSourcesResponse_httpStatus :: Lens' DetachTrafficSourcesResponse Int Source #
The response's http status code.