1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeScalingPolicies`](crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`fleet_id(impl Into<String>)`](crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder::fleet_id) / [`set_fleet_id(Option<String>)`](crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder::set_fleet_id):<br>required: **true**<br><p>A unique identifier for the fleet for which to retrieve scaling policies. You can use either the fleet ID or ARN value.</p><br>
    ///   - [`status_filter(ScalingStatusType)`](crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder::status_filter) / [`set_status_filter(Option<ScalingStatusType>)`](crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder::set_status_filter):<br>required: **false**<br><p>Scaling policy status to filter results on. A scaling policy is only in force when in an <code>ACTIVE</code> status.</p> <ul>  <li>   <p><b>ACTIVE</b> -- The scaling policy is currently in force.</p></li>  <li>   <p><b>UPDATEREQUESTED</b> -- A request to update the scaling policy has been received.</p></li>  <li>   <p><b>UPDATING</b> -- A change is being made to the scaling policy.</p></li>  <li>   <p><b>DELETEREQUESTED</b> -- A request to delete the scaling policy has been received.</p></li>  <li>   <p><b>DELETING</b> -- The scaling policy is being deleted.</p></li>  <li>   <p><b>DELETED</b> -- The scaling policy has been deleted.</p></li>  <li>   <p><b>ERROR</b> -- An error occurred in creating the policy. It should be removed and recreated.</p></li> </ul><br>
    ///   - [`limit(i32)`](crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder::set_limit):<br>required: **false**<br><p>The maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as a set of sequential pages.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder::set_next_token):<br>required: **false**<br><p>A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.</p><br>
    ///   - [`location(impl Into<String>)`](crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder::location) / [`set_location(Option<String>)`](crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder::set_location):<br>required: **false**<br><p>The fleet location. If you don't specify this value, the response contains the scaling policies of every location in the fleet.</p><br>
    /// - On success, responds with [`DescribeScalingPoliciesOutput`](crate::operation::describe_scaling_policies::DescribeScalingPoliciesOutput) with field(s):
    ///   - [`scaling_policies(Option<Vec::<ScalingPolicy>>)`](crate::operation::describe_scaling_policies::DescribeScalingPoliciesOutput::scaling_policies): <p>A collection of objects containing the scaling policies matching the request.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::describe_scaling_policies::DescribeScalingPoliciesOutput::next_token): <p>A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.</p>
    /// - On failure, responds with [`SdkError<DescribeScalingPoliciesError>`](crate::operation::describe_scaling_policies::DescribeScalingPoliciesError)
    pub fn describe_scaling_policies(&self) -> crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder {
        crate::operation::describe_scaling_policies::builders::DescribeScalingPoliciesFluentBuilder::new(self.handle.clone())
    }
}