#[non_exhaustive]pub struct StackInstanceSummary { /* private fields */ }Expand description
The structure that contains summary information about a stack instance.
Implementations§
source§impl StackInstanceSummary
impl StackInstanceSummary
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 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 status_reason(&self) -> Option<&str>
pub fn status_reason(&self) -> Option<&str>
The explanation for the specific status code assigned to this stack instance.
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 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 StackInstanceSummary
impl StackInstanceSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StackInstanceSummary.
Examples found in repository?
8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591
pub fn deser_structure_crate_model_stack_instance_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StackInstanceSummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StackInstanceSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackSetId") /* StackSetId com.amazonaws.cloudformation#StackInstanceSummary$StackSetId */ => {
let var_372 =
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_372);
}
,
s if s.matches("Region") /* Region com.amazonaws.cloudformation#StackInstanceSummary$Region */ => {
let var_373 =
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_373);
}
,
s if s.matches("Account") /* Account com.amazonaws.cloudformation#StackInstanceSummary$Account */ => {
let var_374 =
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_374);
}
,
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#StackInstanceSummary$StackId */ => {
let var_375 =
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_375);
}
,
s if s.matches("Status") /* Status com.amazonaws.cloudformation#StackInstanceSummary$Status */ => {
let var_376 =
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_376);
}
,
s if s.matches("StatusReason") /* StatusReason com.amazonaws.cloudformation#StackInstanceSummary$StatusReason */ => {
let var_377 =
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_377);
}
,
s if s.matches("StackInstanceStatus") /* StackInstanceStatus com.amazonaws.cloudformation#StackInstanceSummary$StackInstanceStatus */ => {
let var_378 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_instance_comprehensive_status(&mut tag)
?
)
;
builder = builder.set_stack_instance_status(var_378);
}
,
s if s.matches("OrganizationalUnitId") /* OrganizationalUnitId com.amazonaws.cloudformation#StackInstanceSummary$OrganizationalUnitId */ => {
let var_379 =
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_379);
}
,
s if s.matches("DriftStatus") /* DriftStatus com.amazonaws.cloudformation#StackInstanceSummary$DriftStatus */ => {
let var_380 =
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_380);
}
,
s if s.matches("LastDriftCheckTimestamp") /* LastDriftCheckTimestamp com.amazonaws.cloudformation#StackInstanceSummary$LastDriftCheckTimestamp */ => {
let var_381 =
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_381);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for StackInstanceSummary
impl Clone for StackInstanceSummary
source§fn clone(&self) -> StackInstanceSummary
fn clone(&self) -> StackInstanceSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more