#[non_exhaustive]pub struct TaskManagedEbsVolumeTerminationPolicy {
pub delete_on_termination: bool,
}
Expand description
The termination policy for the Amazon EBS volume when the task exits. For more information, see Amazon ECS volume termination policy.
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.delete_on_termination: bool
Indicates whether the volume should be deleted on when the task stops. If a value of true
is specified,
Amazon ECS deletes the Amazon EBS volume on your behalf when the task goes into the STOPPED
state. If no value is specified, the
default value is true
is used. When set to false
, Amazon ECS leaves the volume in your
account.
Implementations§
source§impl TaskManagedEbsVolumeTerminationPolicy
impl TaskManagedEbsVolumeTerminationPolicy
sourcepub fn delete_on_termination(&self) -> bool
pub fn delete_on_termination(&self) -> bool
Indicates whether the volume should be deleted on when the task stops. If a value of true
is specified,
Amazon ECS deletes the Amazon EBS volume on your behalf when the task goes into the STOPPED
state. If no value is specified, the
default value is true
is used. When set to false
, Amazon ECS leaves the volume in your
account.
source§impl TaskManagedEbsVolumeTerminationPolicy
impl TaskManagedEbsVolumeTerminationPolicy
sourcepub fn builder() -> TaskManagedEbsVolumeTerminationPolicyBuilder
pub fn builder() -> TaskManagedEbsVolumeTerminationPolicyBuilder
Creates a new builder-style object to manufacture TaskManagedEbsVolumeTerminationPolicy
.
Trait Implementations§
source§impl Clone for TaskManagedEbsVolumeTerminationPolicy
impl Clone for TaskManagedEbsVolumeTerminationPolicy
source§fn clone(&self) -> TaskManagedEbsVolumeTerminationPolicy
fn clone(&self) -> TaskManagedEbsVolumeTerminationPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for TaskManagedEbsVolumeTerminationPolicy
impl PartialEq for TaskManagedEbsVolumeTerminationPolicy
source§fn eq(&self, other: &TaskManagedEbsVolumeTerminationPolicy) -> bool
fn eq(&self, other: &TaskManagedEbsVolumeTerminationPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TaskManagedEbsVolumeTerminationPolicy
Auto Trait Implementations§
impl Freeze for TaskManagedEbsVolumeTerminationPolicy
impl RefUnwindSafe for TaskManagedEbsVolumeTerminationPolicy
impl Send for TaskManagedEbsVolumeTerminationPolicy
impl Sync for TaskManagedEbsVolumeTerminationPolicy
impl Unpin for TaskManagedEbsVolumeTerminationPolicy
impl UnwindSafe for TaskManagedEbsVolumeTerminationPolicy
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