#[non_exhaustive]pub struct AutoDeploymentBuilder { /* private fields */ }
Expand description
A builder for AutoDeployment
.
Implementations§
source§impl AutoDeploymentBuilder
impl AutoDeploymentBuilder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
If set to true
, StackSets automatically deploys additional stack instances to Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
If set to true
, StackSets automatically deploys additional stack instances to Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
If set to true
, StackSets automatically deploys additional stack instances to Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
sourcepub fn retain_stacks_on_account_removal(self, input: bool) -> Self
pub fn retain_stacks_on_account_removal(self, input: bool) -> Self
If set to true
, stack resources are retained when an account is removed from a target organization or OU. If set to false
, stack resources are deleted. Specify only if Enabled
is set to True
.
sourcepub fn set_retain_stacks_on_account_removal(self, input: Option<bool>) -> Self
pub fn set_retain_stacks_on_account_removal(self, input: Option<bool>) -> Self
If set to true
, stack resources are retained when an account is removed from a target organization or OU. If set to false
, stack resources are deleted. Specify only if Enabled
is set to True
.
sourcepub fn get_retain_stacks_on_account_removal(&self) -> &Option<bool>
pub fn get_retain_stacks_on_account_removal(&self) -> &Option<bool>
If set to true
, stack resources are retained when an account is removed from a target organization or OU. If set to false
, stack resources are deleted. Specify only if Enabled
is set to True
.
sourcepub fn build(self) -> AutoDeployment
pub fn build(self) -> AutoDeployment
Consumes the builder and constructs a AutoDeployment
.
Trait Implementations§
source§impl Clone for AutoDeploymentBuilder
impl Clone for AutoDeploymentBuilder
source§fn clone(&self) -> AutoDeploymentBuilder
fn clone(&self) -> AutoDeploymentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoDeploymentBuilder
impl Debug for AutoDeploymentBuilder
source§impl Default for AutoDeploymentBuilder
impl Default for AutoDeploymentBuilder
source§fn default() -> AutoDeploymentBuilder
fn default() -> AutoDeploymentBuilder
source§impl PartialEq for AutoDeploymentBuilder
impl PartialEq for AutoDeploymentBuilder
source§fn eq(&self, other: &AutoDeploymentBuilder) -> bool
fn eq(&self, other: &AutoDeploymentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.