Struct aws_sdk_cloudformation::model::StackInstance
source · #[non_exhaustive]pub struct StackInstance { /* private fields */ }Expand description
An CloudFormation stack, in a specific account and Region, that's part of a stack set operation. A stack instance is a reference to an attempted or actual stack in a given account within a given Region. A stack instance can exist without a stack—for example, if the stack couldn't be created for some reason. A stack instance is associated with only one stack set. Each stack instance contains the ID of its associated stack set, in addition to the ID of the actual stack and the stack status.
Implementations§
source§impl StackInstance
impl StackInstance
sourcepub fn stack_set_id(&self) -> Option<&str>
pub fn stack_set_id(&self) -> Option<&str>
The name or unique ID of the stack set that the stack instance is associated with.
sourcepub fn region(&self) -> Option<&str>
pub fn region(&self) -> Option<&str>
The name of the Amazon Web Services Region that the stack instance is associated with.
sourcepub fn account(&self) -> Option<&str>
pub fn account(&self) -> Option<&str>
[Self-managed permissions] The name of the Amazon Web Services account that the stack instance is associated with.
sourcepub fn parameter_overrides(&self) -> Option<&[Parameter]>
pub fn parameter_overrides(&self) -> Option<&[Parameter]>
A list of parameters from the stack set template whose values have been overridden in this stack instance.
sourcepub fn status(&self) -> Option<&StackInstanceStatus>
pub fn status(&self) -> Option<&StackInstanceStatus>
The status of the stack instance, in terms of its synchronization with its associated stack set.
-
INOPERABLE: ADeleteStackInstancesoperation has failed and left the stack in an unstable state. Stacks in this state are excluded from furtherUpdateStackSetoperations. You might need to perform aDeleteStackInstancesoperation, withRetainStacksset totrue, to delete the stack instance, and then delete the stack manually. -
OUTDATED: The stack isn't currently up to date with the stack set because:-
The associated stack failed during a
CreateStackSetorUpdateStackSetoperation. -
The stack was part of a
CreateStackSetorUpdateStackSetoperation that failed or was stopped before the stack was created or updated.
-
-
CURRENT: The stack is currently up to date with the stack set.
sourcepub fn stack_instance_status(&self) -> Option<&StackInstanceComprehensiveStatus>
pub fn stack_instance_status(&self) -> Option<&StackInstanceComprehensiveStatus>
The detailed status of the stack instance.
sourcepub fn status_reason(&self) -> Option<&str>
pub fn status_reason(&self) -> Option<&str>
The explanation for the specific status code that's assigned to this stack instance.
sourcepub fn organizational_unit_id(&self) -> Option<&str>
pub fn organizational_unit_id(&self) -> Option<&str>
[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.
sourcepub fn drift_status(&self) -> Option<&StackDriftStatus>
pub fn drift_status(&self) -> Option<&StackDriftStatus>
Status of the stack instance's actual configuration compared to the expected template and parameter configuration of the stack set to which it belongs.
-
DRIFTED: The stack differs from the expected template and parameter configuration of the stack set to which it belongs. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted. -
NOT_CHECKED: CloudFormation hasn't checked if the stack instance differs from its expected stack set configuration. -
IN_SYNC: The stack instance's actual configuration matches its expected stack set configuration. -
UNKNOWN: This value is reserved for future use.
sourcepub fn last_drift_check_timestamp(&self) -> Option<&DateTime>
pub fn last_drift_check_timestamp(&self) -> Option<&DateTime>
Most recent time when CloudFormation performed a drift detection operation on the stack instance. This value will be NULL for any stack instance on which drift detection hasn't yet been performed.
source§impl StackInstance
impl StackInstance
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StackInstance.
Examples found in repository?
4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096
pub fn deser_structure_crate_model_stack_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StackInstance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StackInstance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackSetId") /* StackSetId com.amazonaws.cloudformation#StackInstance$StackSetId */ => {
let var_172 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_set_id(var_172);
}
,
s if s.matches("Region") /* Region com.amazonaws.cloudformation#StackInstance$Region */ => {
let var_173 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_region(var_173);
}
,
s if s.matches("Account") /* Account com.amazonaws.cloudformation#StackInstance$Account */ => {
let var_174 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_account(var_174);
}
,
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#StackInstance$StackId */ => {
let var_175 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_175);
}
,
s if s.matches("ParameterOverrides") /* ParameterOverrides com.amazonaws.cloudformation#StackInstance$ParameterOverrides */ => {
let var_176 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameter_overrides(var_176);
}
,
s if s.matches("Status") /* Status com.amazonaws.cloudformation#StackInstance$Status */ => {
let var_177 =
Some(
Result::<crate::model::StackInstanceStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackInstanceStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_177);
}
,
s if s.matches("StackInstanceStatus") /* StackInstanceStatus com.amazonaws.cloudformation#StackInstance$StackInstanceStatus */ => {
let var_178 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_instance_comprehensive_status(&mut tag)
?
)
;
builder = builder.set_stack_instance_status(var_178);
}
,
s if s.matches("StatusReason") /* StatusReason com.amazonaws.cloudformation#StackInstance$StatusReason */ => {
let var_179 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_status_reason(var_179);
}
,
s if s.matches("OrganizationalUnitId") /* OrganizationalUnitId com.amazonaws.cloudformation#StackInstance$OrganizationalUnitId */ => {
let var_180 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_organizational_unit_id(var_180);
}
,
s if s.matches("DriftStatus") /* DriftStatus com.amazonaws.cloudformation#StackInstance$DriftStatus */ => {
let var_181 =
Some(
Result::<crate::model::StackDriftStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackDriftStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_drift_status(var_181);
}
,
s if s.matches("LastDriftCheckTimestamp") /* LastDriftCheckTimestamp com.amazonaws.cloudformation#StackInstance$LastDriftCheckTimestamp */ => {
let var_182 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#Timestamp`)"))
?
)
;
builder = builder.set_last_drift_check_timestamp(var_182);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for StackInstance
impl Clone for StackInstance
source§fn clone(&self) -> StackInstance
fn clone(&self) -> StackInstance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more