pub enum DeletionPolicy {
Delete,
Snapshot,
Retain,
RetainExceptOnCreate,
}Expand description
Determines what happens with an existing resource when it is deleted
Variants§
Delete
Delete deletes the resource (default)
Snapshot
Snapshot deletes it after creating a snapshot (if snapshots are possible)
Retain
Retain keeps the resource
RetainExceptOnCreate
RetainExceptOnCreate keeps the resource, except when it was just created during this stack operation
Trait Implementations§
Source§impl From<DeletionPolicy> for String
impl From<DeletionPolicy> for String
Source§fn from(value: DeletionPolicy) -> String
fn from(value: DeletionPolicy) -> String
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeletionPolicy
impl RefUnwindSafe for DeletionPolicy
impl Send for DeletionPolicy
impl Sync for DeletionPolicy
impl Unpin for DeletionPolicy
impl UnsafeUnpin for DeletionPolicy
impl UnwindSafe for DeletionPolicy
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
Mutably borrows from an owned value. Read more