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.__
Attaches one or more traffic sources to the specified Auto Scaling group.
To describe the traffic sources for an Auto Scaling group, call the DescribeTrafficSources API. To detach a traffic source from the Auto Scaling group, call the DetachTrafficSources API.
This operation is additive and does not detach existing traffic sources from the Auto Scaling group.
Synopsis
- data AttachTrafficSources = AttachTrafficSources' {}
- newAttachTrafficSources :: Text -> AttachTrafficSources
- attachTrafficSources_autoScalingGroupName :: Lens' AttachTrafficSources Text
- attachTrafficSources_trafficSources :: Lens' AttachTrafficSources [TrafficSourceIdentifier]
- data AttachTrafficSourcesResponse = AttachTrafficSourcesResponse' {
- httpStatus :: Int
- newAttachTrafficSourcesResponse :: Int -> AttachTrafficSourcesResponse
- attachTrafficSourcesResponse_httpStatus :: Lens' AttachTrafficSourcesResponse Int
Creating a Request
data AttachTrafficSources Source #
See: newAttachTrafficSources
smart constructor.
AttachTrafficSources' | |
|
Instances
newAttachTrafficSources Source #
Create a value of AttachTrafficSources
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:
AttachTrafficSources
, attachTrafficSources_autoScalingGroupName
- The name of the Auto Scaling group.
AttachTrafficSources
, attachTrafficSources_trafficSources
- The unique identifiers of one or more traffic sources. You can specify
up to 10 traffic sources.
Currently, you must specify an Amazon Resource Name (ARN) for an existing VPC Lattice target group. Amazon EC2 Auto Scaling registers the running instances with the attached target groups. The target groups receive incoming traffic and route requests to one or more registered targets.
Request Lenses
attachTrafficSources_autoScalingGroupName :: Lens' AttachTrafficSources Text Source #
The name of the Auto Scaling group.
attachTrafficSources_trafficSources :: Lens' AttachTrafficSources [TrafficSourceIdentifier] Source #
The unique identifiers of one or more traffic sources. You can specify up to 10 traffic sources.
Currently, you must specify an Amazon Resource Name (ARN) for an existing VPC Lattice target group. Amazon EC2 Auto Scaling registers the running instances with the attached target groups. The target groups receive incoming traffic and route requests to one or more registered targets.
Destructuring the Response
data AttachTrafficSourcesResponse Source #
See: newAttachTrafficSourcesResponse
smart constructor.
AttachTrafficSourcesResponse' | |
|
Instances
newAttachTrafficSourcesResponse Source #
Create a value of AttachTrafficSourcesResponse
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:AttachTrafficSourcesResponse'
, attachTrafficSourcesResponse_httpStatus
- The response's http status code.
Response Lenses
attachTrafficSourcesResponse_httpStatus :: Lens' AttachTrafficSourcesResponse Int Source #
The response's http status code.