#[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 ==
.