attach_traffic_sources

AutoScaling.Client.attach_traffic_sources(**kwargs)
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.

See also: AWS API Documentation

Request Syntax

response = client.attach_traffic_sources(
    AutoScalingGroupName='string',
    TrafficSources=[
        {
            'Identifier': 'string'
        },
    ]
)
Parameters
  • AutoScalingGroupName (string) --

    [REQUIRED]

    The name of the Auto Scaling group.

  • TrafficSources (list) --

    [REQUIRED]

    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.

    • (dict) --

      Describes the identifier of a traffic source.

      Currently, you must specify an Amazon Resource Name (ARN) for an existing VPC Lattice target group.

      • Identifier (string) --

        The unique identifier of the traffic source.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • AutoScaling.Client.exceptions.ResourceContentionFault
  • AutoScaling.Client.exceptions.ServiceLinkedRoleFailure