#[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 ==
.impl StructuralPartialEq for TemplateConfigurationBuilder
Auto Trait Implementations§
impl Freeze for TemplateConfigurationBuilder
impl RefUnwindSafe for TemplateConfigurationBuilder
impl Send for TemplateConfigurationBuilder
impl Sync for TemplateConfigurationBuilder
impl Unpin for TemplateConfigurationBuilder
impl UnwindSafe for TemplateConfigurationBuilder
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