1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeCapacityReservationFleets`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`capacity_reservation_fleet_ids(impl Into<String>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::capacity_reservation_fleet_ids) / [`set_capacity_reservation_fleet_ids(Option<Vec::<String>>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::set_capacity_reservation_fleet_ids):<br>required: **false**<br><p>The IDs of the Capacity Reservation Fleets to describe.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to use to retrieve the next page of results.</p><br>
    ///   - [`max_results(i32)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::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>
    ///   - [`filters(Filter)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::set_filters):<br>required: **false**<br><p>One or more filters.</p> <ul>  <li>   <p><code>state</code> - The state of the Fleet (<code>submitted</code> | <code>modifying</code> | <code>active</code> | <code>partially_fulfilled</code> | <code>expiring</code> | <code>expired</code> | <code>cancelling</code> | <code>cancelled</code> | <code>failed</code>).</p></li>  <li>   <p><code>instance-match-criteria</code> - The instance matching criteria for the Fleet. Only <code>open</code> is supported.</p></li>  <li>   <p><code>tenancy</code> - The tenancy of the Fleet (<code>default</code> | <code>dedicated</code>).</p></li>  <li>   <p><code>allocation-strategy</code> - The allocation strategy used by the Fleet. Only <code>prioritized</code> is supported.</p></li> </ul><br>
    ///   - [`dry_run(bool)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::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>
    /// - On success, responds with [`DescribeCapacityReservationFleetsOutput`](crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsOutput) with field(s):
    ///   - [`capacity_reservation_fleets(Option<Vec::<CapacityReservationFleet>>)`](crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsOutput::capacity_reservation_fleets): <p>Information about the Capacity Reservation Fleets.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsOutput::next_token): <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
    /// - On failure, responds with [`SdkError<DescribeCapacityReservationFleetsError>`](crate::operation::describe_capacity_reservation_fleets::DescribeCapacityReservationFleetsError)
    pub fn describe_capacity_reservation_fleets(
        &self,
    ) -> crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder {
        crate::operation::describe_capacity_reservation_fleets::builders::DescribeCapacityReservationFleetsFluentBuilder::new(self.handle.clone())
    }
}