Struct aws_sdk_cloudformation::model::StackSummary
source · #[non_exhaustive]pub struct StackSummary { /* private fields */ }Expand description
The StackSummary Data Type
Implementations§
source§impl StackSummary
impl StackSummary
sourcepub fn stack_name(&self) -> Option<&str>
pub fn stack_name(&self) -> Option<&str>
The name associated with the stack.
sourcepub fn template_description(&self) -> Option<&str>
pub fn template_description(&self) -> Option<&str>
The template description of the template used to create the stack.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The time the stack was created.
sourcepub fn last_updated_time(&self) -> Option<&DateTime>
pub fn last_updated_time(&self) -> Option<&DateTime>
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
sourcepub fn deletion_time(&self) -> Option<&DateTime>
pub fn deletion_time(&self) -> Option<&DateTime>
The time the stack was deleted.
sourcepub fn stack_status(&self) -> Option<&StackStatus>
pub fn stack_status(&self) -> Option<&StackStatus>
The current status of the stack.
sourcepub fn stack_status_reason(&self) -> Option<&str>
pub fn stack_status_reason(&self) -> Option<&str>
Success/Failure message associated with the stack status.
sourcepub fn parent_id(&self) -> Option<&str>
pub fn parent_id(&self) -> Option<&str>
For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack.
For more information, see Working with Nested Stacks in the CloudFormation User Guide.
sourcepub fn root_id(&self) -> Option<&str>
pub fn root_id(&self) -> Option<&str>
For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to which the nested stack ultimately belongs.
For more information, see Working with Nested Stacks in the CloudFormation User Guide.
sourcepub fn drift_information(&self) -> Option<&StackDriftInformationSummary>
pub fn drift_information(&self) -> Option<&StackDriftInformationSummary>
Summarizes information about whether a stack's actual configuration differs, or has drifted, from it's expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.
source§impl StackSummary
impl StackSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StackSummary.
Examples found in repository?
8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861
pub fn deser_structure_crate_model_stack_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StackSummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StackSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#StackSummary$StackId */ => {
let var_390 =
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_390);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#StackSummary$StackName */ => {
let var_391 =
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_name(var_391);
}
,
s if s.matches("TemplateDescription") /* TemplateDescription com.amazonaws.cloudformation#StackSummary$TemplateDescription */ => {
let var_392 =
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_template_description(var_392);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#StackSummary$CreationTime */ => {
let var_393 =
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#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_393);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#StackSummary$LastUpdatedTime */ => {
let var_394 =
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#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_394);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#StackSummary$DeletionTime */ => {
let var_395 =
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#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_395);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#StackSummary$StackStatus */ => {
let var_396 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_396);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#StackSummary$StackStatusReason */ => {
let var_397 =
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_status_reason(var_397);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#StackSummary$ParentId */ => {
let var_398 =
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_parent_id(var_398);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#StackSummary$RootId */ => {
let var_399 =
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_root_id(var_399);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#StackSummary$DriftInformation */ => {
let var_400 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information_summary(&mut tag)
?
)
;
builder = builder.set_drift_information(var_400);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for StackSummary
impl Clone for StackSummary
source§fn clone(&self) -> StackSummary
fn clone(&self) -> StackSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more