AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the DescribeTrafficSources operation. Gets information about the traffic sources for the specified Auto Scaling group.

You can optionally provide a traffic source type. If you provide a traffic source type, then the results only include that traffic source type.

If you do not provide a traffic source type, then the results include all the traffic sources for the specified Auto Scaling group.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.AutoScaling.AmazonAutoScalingRequest
      Amazon.AutoScaling.Model.DescribeTrafficSourcesRequest

Namespace: Amazon.AutoScaling.Model
Assembly: AWSSDK.AutoScaling.dll
Version: 3.x.y.z

Syntax

C#
public class DescribeTrafficSourcesRequest : AmazonAutoScalingRequest
         IAmazonWebServiceRequest

The DescribeTrafficSourcesRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AutoScalingGroupName System.String

Gets and sets the property AutoScalingGroupName.

The name of the Auto Scaling group.

Public Property MaxRecords System.Int32

Gets and sets the property MaxRecords.

The maximum number of items to return with this call. The maximum value is 50.

Public Property NextToken System.String

Gets and sets the property NextToken.

The token for the next set of items to return. (You received this token from a previous call.)

Public Property TrafficSourceType System.String

Gets and sets the property TrafficSourceType.

The traffic source type that you want to describe.

The following lists the valid values:

  • elb if the traffic source is a Classic Load Balancer.

  • elbv2 if the traffic source is a Application Load Balancer, Gateway Load Balancer, or Network Load Balancer.

  • vpc-lattice if the traffic source is VPC Lattice.

Examples

This example describes the target groups attached to the specified Auto Scaling group.

To describe the target groups for an Auto Scaling group


var client = new AmazonAutoScalingClient();
var response = client.DescribeTrafficSources(new DescribeTrafficSourcesRequest 
{
    AutoScalingGroupName = "my-auto-scaling-group"
});

string nextToken = response.NextToken;
List<TrafficSourceState> trafficSources = response.TrafficSources;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5