Struct aws_sdk_cloudformation::model::AutoDeployment
source · #[non_exhaustive]pub struct AutoDeployment { /* private fields */ }Expand description
[Service-managed permissions] Describes whether StackSets automatically deploys to Organizations accounts that are added to a target organization or organizational unit (OU).
Implementations§
source§impl AutoDeployment
impl AutoDeployment
sourcepub fn enabled(&self) -> Option<bool>
pub fn 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) -> Option<bool>
pub fn 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.
source§impl AutoDeployment
impl AutoDeployment
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AutoDeployment.
Examples found in repository?
7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775
pub fn deser_structure_crate_model_auto_deployment(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AutoDeployment, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AutoDeployment::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Enabled") /* Enabled com.amazonaws.cloudformation#AutoDeployment$Enabled */ => {
let var_331 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#AutoDeploymentNullable`)"))
}
?
)
;
builder = builder.set_enabled(var_331);
}
,
s if s.matches("RetainStacksOnAccountRemoval") /* RetainStacksOnAccountRemoval com.amazonaws.cloudformation#AutoDeployment$RetainStacksOnAccountRemoval */ => {
let var_332 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#RetainStacksOnAccountRemovalNullable`)"))
}
?
)
;
builder = builder.set_retain_stacks_on_account_removal(var_332);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for AutoDeployment
impl Clone for AutoDeployment
source§fn clone(&self) -> AutoDeployment
fn clone(&self) -> AutoDeployment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more