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 [`DescribeFleets`](crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`dry_run(bool)`](crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
    ///   - [`max_results(i32)`](crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p><br>
    ///   - [`fleet_ids(impl Into<String>)`](crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder::fleet_ids) / [`set_fleet_ids(Option<Vec::<String>>)`](crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder::set_fleet_ids):<br>required: **false**<br><p>The IDs of the EC2 Fleets.</p><note>  <p>If a fleet is of type <code>instant</code>, you must specify the fleet ID, otherwise it does not appear in the response.</p> </note><br>
    ///   - [`filters(Filter)`](crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder::set_filters):<br>required: **false**<br><p>The filters.</p> <ul>  <li>   <p><code>activity-status</code> - The progress of the EC2 Fleet ( <code>error</code> | <code>pending-fulfillment</code> | <code>pending-termination</code> | <code>fulfilled</code>).</p></li>  <li>   <p><code>excess-capacity-termination-policy</code> - Indicates whether to terminate running instances if the target capacity is decreased below the current EC2 Fleet size (<code>true</code> | <code>false</code>).</p></li>  <li>   <p><code>fleet-state</code> - The state of the EC2 Fleet (<code>submitted</code> | <code>active</code> | <code>deleted</code> | <code>failed</code> | <code>deleted-running</code> | <code>deleted-terminating</code> | <code>modifying</code>).</p></li>  <li>   <p><code>replace-unhealthy-instances</code> - Indicates whether EC2 Fleet should replace unhealthy instances (<code>true</code> | <code>false</code>).</p></li>  <li>   <p><code>type</code> - The type of request (<code>instant</code> | <code>request</code> | <code>maintain</code>).</p></li> </ul><br>
    /// - On success, responds with [`DescribeFleetsOutput`](crate::operation::describe_fleets::DescribeFleetsOutput) with field(s):
    ///   - [`next_token(Option<String>)`](crate::operation::describe_fleets::DescribeFleetsOutput::next_token): <p>The token to include in another request to get the next page of items. This value is <code>null</code> when there are no more items to return.</p>
    ///   - [`fleets(Option<Vec::<FleetData>>)`](crate::operation::describe_fleets::DescribeFleetsOutput::fleets): <p>Information about the EC2 Fleets.</p>
    /// - On failure, responds with [`SdkError<DescribeFleetsError>`](crate::operation::describe_fleets::DescribeFleetsError)
    pub fn describe_fleets(&self) -> crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder {
        crate::operation::describe_fleets::builders::DescribeFleetsFluentBuilder::new(self.handle.clone())
    }
}