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