#[non_exhaustive]pub struct TemplateConfiguration {
pub deletion_policy: Option<GeneratedTemplateDeletionPolicy>,
pub update_replace_policy: Option<GeneratedTemplateUpdateReplacePolicy>,
}
Expand description
The configuration details of a generated template.
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.deletion_policy: Option<GeneratedTemplateDeletionPolicy>
The DeletionPolicy
assigned to resources in the generated template. Supported values are:
-
DELETE
- delete all resources when the stack is deleted. -
RETAIN
- retain all resources when the stack is deleted.
For more information, see DeletionPolicy attribute in the CloudFormation User Guide.
update_replace_policy: Option<GeneratedTemplateUpdateReplacePolicy>
The UpdateReplacePolicy
assigned to resources in the generated template. Supported values are:
-
DELETE
- delete all resources when the resource is replaced during an update operation. -
RETAIN
- retain all resources when the resource is replaced during an update operation.
For more information, see UpdateReplacePolicy attribute in the CloudFormation User Guide.
Implementations§
source§impl TemplateConfiguration
impl TemplateConfiguration
sourcepub fn deletion_policy(&self) -> Option<&GeneratedTemplateDeletionPolicy>
pub fn deletion_policy(&self) -> Option<&GeneratedTemplateDeletionPolicy>
The DeletionPolicy
assigned to resources in the generated template. Supported values are:
-
DELETE
- delete all resources when the stack is deleted. -
RETAIN
- retain all resources when the stack is deleted.
For more information, see DeletionPolicy attribute in the CloudFormation User Guide.
sourcepub fn update_replace_policy(
&self
) -> Option<&GeneratedTemplateUpdateReplacePolicy>
pub fn update_replace_policy( &self ) -> Option<&GeneratedTemplateUpdateReplacePolicy>
The UpdateReplacePolicy
assigned to resources in the generated template. Supported values are:
-
DELETE
- delete all resources when the resource is replaced during an update operation. -
RETAIN
- retain all resources when the resource is replaced during an update operation.
For more information, see UpdateReplacePolicy attribute in the CloudFormation User Guide.
source§impl TemplateConfiguration
impl TemplateConfiguration
sourcepub fn builder() -> TemplateConfigurationBuilder
pub fn builder() -> TemplateConfigurationBuilder
Creates a new builder-style object to manufacture TemplateConfiguration
.
Trait Implementations§
source§impl Clone for TemplateConfiguration
impl Clone for TemplateConfiguration
source§fn clone(&self) -> TemplateConfiguration
fn clone(&self) -> TemplateConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TemplateConfiguration
impl Debug for TemplateConfiguration
source§impl PartialEq for TemplateConfiguration
impl PartialEq for TemplateConfiguration
source§fn eq(&self, other: &TemplateConfiguration) -> bool
fn eq(&self, other: &TemplateConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TemplateConfiguration
Auto Trait Implementations§
impl Freeze for TemplateConfiguration
impl RefUnwindSafe for TemplateConfiguration
impl Send for TemplateConfiguration
impl Sync for TemplateConfiguration
impl Unpin for TemplateConfiguration
impl UnwindSafe for TemplateConfiguration
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