#[non_exhaustive]pub struct TemplateConfigurationBuilder { /* private fields */ }
Expand description
A builder for TemplateConfiguration
.
Implementations§
source§impl TemplateConfigurationBuilder
impl TemplateConfigurationBuilder
sourcepub fn deletion_policy(self, input: GeneratedTemplateDeletionPolicy) -> Self
pub fn deletion_policy(self, input: GeneratedTemplateDeletionPolicy) -> Self
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 set_deletion_policy(
self,
input: Option<GeneratedTemplateDeletionPolicy>
) -> Self
pub fn set_deletion_policy( self, input: Option<GeneratedTemplateDeletionPolicy> ) -> Self
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 get_deletion_policy(&self) -> &Option<GeneratedTemplateDeletionPolicy>
pub fn get_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,
input: GeneratedTemplateUpdateReplacePolicy
) -> Self
pub fn update_replace_policy( self, input: GeneratedTemplateUpdateReplacePolicy ) -> Self
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.
sourcepub fn set_update_replace_policy(
self,
input: Option<GeneratedTemplateUpdateReplacePolicy>
) -> Self
pub fn set_update_replace_policy( self, input: Option<GeneratedTemplateUpdateReplacePolicy> ) -> Self
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.
sourcepub fn get_update_replace_policy(
&self
) -> &Option<GeneratedTemplateUpdateReplacePolicy>
pub fn get_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.
sourcepub fn build(self) -> TemplateConfiguration
pub fn build(self) -> TemplateConfiguration
Consumes the builder and constructs a TemplateConfiguration
.
Trait Implementations§
source§impl Clone for TemplateConfigurationBuilder
impl Clone for TemplateConfigurationBuilder
source§fn clone(&self) -> TemplateConfigurationBuilder
fn clone(&self) -> TemplateConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TemplateConfigurationBuilder
impl Debug for TemplateConfigurationBuilder
source§impl Default for TemplateConfigurationBuilder
impl Default for TemplateConfigurationBuilder
source§fn default() -> TemplateConfigurationBuilder
fn default() -> TemplateConfigurationBuilder
source§impl PartialEq for TemplateConfigurationBuilder
impl PartialEq for TemplateConfigurationBuilder
source§fn eq(&self, other: &TemplateConfigurationBuilder) -> bool
fn eq(&self, other: &TemplateConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.