pub struct Builder { /* private fields */ }Expand description
A builder for StackDriftInformation.
Implementations§
source§impl Builder
impl Builder
sourcepub fn stack_drift_status(self, input: StackDriftStatus) -> Self
pub fn stack_drift_status(self, input: StackDriftStatus) -> Self
Status of the stack's actual configuration compared to its expected template configuration.
-
DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted. -
NOT_CHECKED: CloudFormation hasn't checked if the stack differs from its expected template configuration. -
IN_SYNC: The stack's actual configuration matches its expected template configuration. -
UNKNOWN: This value is reserved for future use.
sourcepub fn set_stack_drift_status(self, input: Option<StackDriftStatus>) -> Self
pub fn set_stack_drift_status(self, input: Option<StackDriftStatus>) -> Self
Status of the stack's actual configuration compared to its expected template configuration.
-
DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted. -
NOT_CHECKED: CloudFormation hasn't checked if the stack differs from its expected template configuration. -
IN_SYNC: The stack's actual configuration matches its expected template configuration. -
UNKNOWN: This value is reserved for future use.
Examples found in repository?
9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807
pub fn deser_structure_crate_model_stack_drift_information(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StackDriftInformation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StackDriftInformation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackDriftStatus") /* StackDriftStatus com.amazonaws.cloudformation#StackDriftInformation$StackDriftStatus */ => {
let var_460 =
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_stack_drift_status(var_460);
}
,
s if s.matches("LastCheckTimestamp") /* LastCheckTimestamp com.amazonaws.cloudformation#StackDriftInformation$LastCheckTimestamp */ => {
let var_461 =
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_check_timestamp(var_461);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn last_check_timestamp(self, input: DateTime) -> Self
pub fn last_check_timestamp(self, input: DateTime) -> Self
Most recent time when a drift detection operation was initiated on the stack, or any of its individual resources that support drift detection.
sourcepub fn set_last_check_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_last_check_timestamp(self, input: Option<DateTime>) -> Self
Most recent time when a drift detection operation was initiated on the stack, or any of its individual resources that support drift detection.
Examples found in repository?
9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807
pub fn deser_structure_crate_model_stack_drift_information(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StackDriftInformation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StackDriftInformation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackDriftStatus") /* StackDriftStatus com.amazonaws.cloudformation#StackDriftInformation$StackDriftStatus */ => {
let var_460 =
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_stack_drift_status(var_460);
}
,
s if s.matches("LastCheckTimestamp") /* LastCheckTimestamp com.amazonaws.cloudformation#StackDriftInformation$LastCheckTimestamp */ => {
let var_461 =
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_check_timestamp(var_461);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn build(self) -> StackDriftInformation
pub fn build(self) -> StackDriftInformation
Consumes the builder and constructs a StackDriftInformation.
Examples found in repository?
9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807
pub fn deser_structure_crate_model_stack_drift_information(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StackDriftInformation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StackDriftInformation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackDriftStatus") /* StackDriftStatus com.amazonaws.cloudformation#StackDriftInformation$StackDriftStatus */ => {
let var_460 =
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_stack_drift_status(var_460);
}
,
s if s.matches("LastCheckTimestamp") /* LastCheckTimestamp com.amazonaws.cloudformation#StackDriftInformation$LastCheckTimestamp */ => {
let var_461 =
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_check_timestamp(var_461);
}
,
_ => {}
}
}
Ok(builder.build())
}