aws_sdk_autoscaling/client/
describe_traffic_sources.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DescribeTrafficSources`](crate::operation::describe_traffic_sources::builders::DescribeTrafficSourcesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_traffic_sources::builders::DescribeTrafficSourcesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`auto_scaling_group_name(impl Into<String>)`](crate::operation::describe_traffic_sources::builders::DescribeTrafficSourcesFluentBuilder::auto_scaling_group_name) / [`set_auto_scaling_group_name(Option<String>)`](crate::operation::describe_traffic_sources::builders::DescribeTrafficSourcesFluentBuilder::set_auto_scaling_group_name):<br>required: **true**<br><p>The name of the Auto Scaling group.</p><br>
8    ///   - [`traffic_source_type(impl Into<String>)`](crate::operation::describe_traffic_sources::builders::DescribeTrafficSourcesFluentBuilder::traffic_source_type) / [`set_traffic_source_type(Option<String>)`](crate::operation::describe_traffic_sources::builders::DescribeTrafficSourcesFluentBuilder::set_traffic_source_type):<br>required: **false**<br><p>The traffic source type that you want to describe.</p> <p>The following lists the valid values:</p> <ul>  <li>   <p><code>elb</code> if the traffic source is a Classic Load Balancer.</p></li>  <li>   <p><code>elbv2</code> if the traffic source is a Application Load Balancer, Gateway Load Balancer, or Network Load Balancer.</p></li>  <li>   <p><code>vpc-lattice</code> if the traffic source is VPC Lattice.</p></li> </ul><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::describe_traffic_sources::builders::DescribeTrafficSourcesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_traffic_sources::builders::DescribeTrafficSourcesFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of items to return. (You received this token from a previous call.)</p><br>
10    ///   - [`max_records(i32)`](crate::operation::describe_traffic_sources::builders::DescribeTrafficSourcesFluentBuilder::max_records) / [`set_max_records(Option<i32>)`](crate::operation::describe_traffic_sources::builders::DescribeTrafficSourcesFluentBuilder::set_max_records):<br>required: **false**<br><p>The maximum number of items to return with this call. The maximum value is <code>50</code>.</p><br>
11    /// - On success, responds with [`DescribeTrafficSourcesOutput`](crate::operation::describe_traffic_sources::DescribeTrafficSourcesOutput) with field(s):
12    ///   - [`traffic_sources(Option<Vec::<TrafficSourceState>>)`](crate::operation::describe_traffic_sources::DescribeTrafficSourcesOutput::traffic_sources): <p>Information about the traffic sources.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::describe_traffic_sources::DescribeTrafficSourcesOutput::next_token): <p>This string indicates that the response contains more items than can be returned in a single response. To receive additional items, specify this string for the <code>NextToken</code> value when requesting the next set of items. This value is null when there are no more items to return.</p>
14    /// - On failure, responds with [`SdkError<DescribeTrafficSourcesError>`](crate::operation::describe_traffic_sources::DescribeTrafficSourcesError)
15    pub fn describe_traffic_sources(&self) -> crate::operation::describe_traffic_sources::builders::DescribeTrafficSourcesFluentBuilder {
16        crate::operation::describe_traffic_sources::builders::DescribeTrafficSourcesFluentBuilder::new(self.handle.clone())
17    }
18}