#[non_exhaustive]pub struct StackResourceSummary { /* private fields */ }Expand description
Contains high-level information about the specified stack resource.
Implementations§
source§impl StackResourceSummary
impl StackResourceSummary
sourcepub fn logical_resource_id(&self) -> Option<&str>
pub fn logical_resource_id(&self) -> Option<&str>
The logical name of the resource specified in the template.
sourcepub fn physical_resource_id(&self) -> Option<&str>
pub fn physical_resource_id(&self) -> Option<&str>
The name or unique identifier that corresponds to a physical instance ID of the resource.
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
Type of resource. (For more information, go to Amazon Web Services Resource Types Reference in the CloudFormation User Guide.)
sourcepub fn last_updated_timestamp(&self) -> Option<&DateTime>
pub fn last_updated_timestamp(&self) -> Option<&DateTime>
Time the status was updated.
sourcepub fn resource_status(&self) -> Option<&ResourceStatus>
pub fn resource_status(&self) -> Option<&ResourceStatus>
Current status of the resource.
sourcepub fn resource_status_reason(&self) -> Option<&str>
pub fn resource_status_reason(&self) -> Option<&str>
Success/failure message associated with the resource.
sourcepub fn drift_information(&self) -> Option<&StackResourceDriftInformationSummary>
pub fn drift_information(&self) -> Option<&StackResourceDriftInformationSummary>
Information about whether the resource's actual configuration differs, or has drifted, from its 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.
sourcepub fn module_info(&self) -> Option<&ModuleInfo>
pub fn module_info(&self) -> Option<&ModuleInfo>
Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
source§impl StackResourceSummary
impl StackResourceSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StackResourceSummary.
Examples found in repository?
8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704
pub fn deser_structure_crate_model_stack_resource_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StackResourceSummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StackResourceSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("LogicalResourceId") /* LogicalResourceId com.amazonaws.cloudformation#StackResourceSummary$LogicalResourceId */ => {
let var_382 =
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_logical_resource_id(var_382);
}
,
s if s.matches("PhysicalResourceId") /* PhysicalResourceId com.amazonaws.cloudformation#StackResourceSummary$PhysicalResourceId */ => {
let var_383 =
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_physical_resource_id(var_383);
}
,
s if s.matches("ResourceType") /* ResourceType com.amazonaws.cloudformation#StackResourceSummary$ResourceType */ => {
let var_384 =
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_resource_type(var_384);
}
,
s if s.matches("LastUpdatedTimestamp") /* LastUpdatedTimestamp com.amazonaws.cloudformation#StackResourceSummary$LastUpdatedTimestamp */ => {
let var_385 =
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_updated_timestamp(var_385);
}
,
s if s.matches("ResourceStatus") /* ResourceStatus com.amazonaws.cloudformation#StackResourceSummary$ResourceStatus */ => {
let var_386 =
Some(
Result::<crate::model::ResourceStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ResourceStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_resource_status(var_386);
}
,
s if s.matches("ResourceStatusReason") /* ResourceStatusReason com.amazonaws.cloudformation#StackResourceSummary$ResourceStatusReason */ => {
let var_387 =
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_resource_status_reason(var_387);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#StackResourceSummary$DriftInformation */ => {
let var_388 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_resource_drift_information_summary(&mut tag)
?
)
;
builder = builder.set_drift_information(var_388);
}
,
s if s.matches("ModuleInfo") /* ModuleInfo com.amazonaws.cloudformation#StackResourceSummary$ModuleInfo */ => {
let var_389 =
Some(
crate::xml_deser::deser_structure_crate_model_module_info(&mut tag)
?
)
;
builder = builder.set_module_info(var_389);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for StackResourceSummary
impl Clone for StackResourceSummary
source§fn clone(&self) -> StackResourceSummary
fn clone(&self) -> StackResourceSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more