1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CancelCapacityReservationFleets`](crate::operation::cancel_capacity_reservation_fleets::builders::CancelCapacityReservationFleetsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`dry_run(bool)`](crate::operation::cancel_capacity_reservation_fleets::builders::CancelCapacityReservationFleetsFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::cancel_capacity_reservation_fleets::builders::CancelCapacityReservationFleetsFluentBuilder::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>
    ///   - [`capacity_reservation_fleet_ids(impl Into<String>)`](crate::operation::cancel_capacity_reservation_fleets::builders::CancelCapacityReservationFleetsFluentBuilder::capacity_reservation_fleet_ids) / [`set_capacity_reservation_fleet_ids(Option<Vec::<String>>)`](crate::operation::cancel_capacity_reservation_fleets::builders::CancelCapacityReservationFleetsFluentBuilder::set_capacity_reservation_fleet_ids):<br>required: **true**<br><p>The IDs of the Capacity Reservation Fleets to cancel.</p><br>
    /// - On success, responds with [`CancelCapacityReservationFleetsOutput`](crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsOutput) with field(s):
    ///   - [`successful_fleet_cancellations(Option<Vec::<CapacityReservationFleetCancellationState>>)`](crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsOutput::successful_fleet_cancellations): <p>Information about the Capacity Reservation Fleets that were successfully cancelled.</p>
    ///   - [`failed_fleet_cancellations(Option<Vec::<FailedCapacityReservationFleetCancellationResult>>)`](crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsOutput::failed_fleet_cancellations): <p>Information about the Capacity Reservation Fleets that could not be cancelled.</p>
    /// - On failure, responds with [`SdkError<CancelCapacityReservationFleetsError>`](crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError)
    pub fn cancel_capacity_reservation_fleets(
        &self,
    ) -> crate::operation::cancel_capacity_reservation_fleets::builders::CancelCapacityReservationFleetsFluentBuilder {
        crate::operation::cancel_capacity_reservation_fleets::builders::CancelCapacityReservationFleetsFluentBuilder::new(self.handle.clone())
    }
}