Struct aws_sdk_ec2::operation::delete_fleets::DeleteFleetsInput
source · #[non_exhaustive]pub struct DeleteFleetsInput {
pub dry_run: Option<bool>,
pub fleet_ids: Option<Vec<String>>,
pub terminate_instances: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.dry_run: Option<bool>
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 DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
fleet_ids: Option<Vec<String>>
The IDs of the EC2 Fleets.
Constraints: In a single request, you can specify up to 25 instant
fleet IDs and up to 100 maintain
or request
fleet IDs.
terminate_instances: Option<bool>
Indicates whether to terminate the associated instances when the EC2 Fleet is deleted. The default is to terminate the instances.
To let the instances continue to run after the EC2 Fleet is deleted, specify no-terminate-instances
. Supported only for fleets of type maintain
and request
.
For instant
fleets, you cannot specify NoTerminateInstances
. A deleted instant
fleet with running instances is not supported.
Implementations§
source§impl DeleteFleetsInput
impl DeleteFleetsInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
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 DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn fleet_ids(&self) -> &[String]
pub fn fleet_ids(&self) -> &[String]
The IDs of the EC2 Fleets.
Constraints: In a single request, you can specify up to 25 instant
fleet IDs and up to 100 maintain
or request
fleet IDs.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .fleet_ids.is_none()
.
sourcepub fn terminate_instances(&self) -> Option<bool>
pub fn terminate_instances(&self) -> Option<bool>
Indicates whether to terminate the associated instances when the EC2 Fleet is deleted. The default is to terminate the instances.
To let the instances continue to run after the EC2 Fleet is deleted, specify no-terminate-instances
. Supported only for fleets of type maintain
and request
.
For instant
fleets, you cannot specify NoTerminateInstances
. A deleted instant
fleet with running instances is not supported.
source§impl DeleteFleetsInput
impl DeleteFleetsInput
sourcepub fn builder() -> DeleteFleetsInputBuilder
pub fn builder() -> DeleteFleetsInputBuilder
Creates a new builder-style object to manufacture DeleteFleetsInput
.
Trait Implementations§
source§impl Clone for DeleteFleetsInput
impl Clone for DeleteFleetsInput
source§fn clone(&self) -> DeleteFleetsInput
fn clone(&self) -> DeleteFleetsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeleteFleetsInput
impl Debug for DeleteFleetsInput
source§impl PartialEq for DeleteFleetsInput
impl PartialEq for DeleteFleetsInput
source§fn eq(&self, other: &DeleteFleetsInput) -> bool
fn eq(&self, other: &DeleteFleetsInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeleteFleetsInput
Auto Trait Implementations§
impl Freeze for DeleteFleetsInput
impl RefUnwindSafe for DeleteFleetsInput
impl Send for DeleteFleetsInput
impl Sync for DeleteFleetsInput
impl Unpin for DeleteFleetsInput
impl UnwindSafe for DeleteFleetsInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more