aws_sdk_ec2/client/delete_fleets.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 [`DeleteFleets`](crate::operation::delete_fleets::builders::DeleteFleetsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::delete_fleets::builders::DeleteFleetsFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_fleets::builders::DeleteFleetsFluentBuilder::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>
7 /// - [`fleet_ids(impl Into<String>)`](crate::operation::delete_fleets::builders::DeleteFleetsFluentBuilder::fleet_ids) / [`set_fleet_ids(Option<Vec::<String>>)`](crate::operation::delete_fleets::builders::DeleteFleetsFluentBuilder::set_fleet_ids):<br>required: **true**<br><p>The IDs of the EC2 Fleets.</p> <p>Constraints: In a single request, you can specify up to 25 <code>instant</code> fleet IDs and up to 100 <code>maintain</code> or <code>request</code> fleet IDs.</p><br>
8 /// - [`terminate_instances(bool)`](crate::operation::delete_fleets::builders::DeleteFleetsFluentBuilder::terminate_instances) / [`set_terminate_instances(Option<bool>)`](crate::operation::delete_fleets::builders::DeleteFleetsFluentBuilder::set_terminate_instances):<br>required: **true**<br><p>Indicates whether to terminate the associated instances when the EC2 Fleet is deleted. The default is to terminate the instances.</p> <p>To let the instances continue to run after the EC2 Fleet is deleted, specify <code>no-terminate-instances</code>. Supported only for fleets of type <code>maintain</code> and <code>request</code>.</p> <p>For <code>instant</code> fleets, you cannot specify <code>NoTerminateInstances</code>. A deleted <code>instant</code> fleet with running instances is not supported.</p><br>
9 /// - On success, responds with [`DeleteFleetsOutput`](crate::operation::delete_fleets::DeleteFleetsOutput) with field(s):
10 /// - [`successful_fleet_deletions(Option<Vec::<DeleteFleetSuccessItem>>)`](crate::operation::delete_fleets::DeleteFleetsOutput::successful_fleet_deletions): <p>Information about the EC2 Fleets that are successfully deleted.</p>
11 /// - [`unsuccessful_fleet_deletions(Option<Vec::<DeleteFleetErrorItem>>)`](crate::operation::delete_fleets::DeleteFleetsOutput::unsuccessful_fleet_deletions): <p>Information about the EC2 Fleets that are not successfully deleted.</p>
12 /// - On failure, responds with [`SdkError<DeleteFleetsError>`](crate::operation::delete_fleets::DeleteFleetsError)
13 pub fn delete_fleets(&self) -> crate::operation::delete_fleets::builders::DeleteFleetsFluentBuilder {
14 crate::operation::delete_fleets::builders::DeleteFleetsFluentBuilder::new(self.handle.clone())
15 }
16}