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.
Namespace: Amazon.AutoScaling.Model
Assembly: AWSSDK.AutoScaling.dll
Version: 3.x.y.z
public class DescribeTrafficSourcesRequest : AmazonAutoScalingRequest IAmazonWebServiceRequest
The DescribeTrafficSourcesRequest type exposes the following members
Name | Description | |
---|---|---|
DescribeTrafficSourcesRequest() |
Name | Type | Description | |
---|---|---|---|
AutoScalingGroupName | System.String |
Gets and sets the property AutoScalingGroupName. The name of the Auto Scaling group. |
|
MaxRecords | System.Int32 |
Gets and sets the property MaxRecords.
The maximum number of items to return with this call. The maximum value is |
|
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.) |
|
TrafficSourceType | System.String |
Gets and sets the property TrafficSourceType. The traffic source type that you want to describe. The following lists the valid values:
|
This example describes the target groups attached to the specified 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;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5