Struct aws_sdk_cloudformation::model::PropertyDifference
source · #[non_exhaustive]pub struct PropertyDifference { /* private fields */ }Expand description
Information about a resource property whose actual value differs from its expected value, as defined in the stack template and any values specified as template parameters. These will be present only for resources whose StackResourceDriftStatus is MODIFIED. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.
Implementations§
source§impl PropertyDifference
impl PropertyDifference
sourcepub fn property_path(&self) -> Option<&str>
pub fn property_path(&self) -> Option<&str>
The fully-qualified path to the resource property.
sourcepub fn expected_value(&self) -> Option<&str>
pub fn expected_value(&self) -> Option<&str>
The expected property value of the resource property, as defined in the stack template and any values specified as template parameters.
sourcepub fn actual_value(&self) -> Option<&str>
pub fn actual_value(&self) -> Option<&str>
The actual property value of the resource property.
sourcepub fn difference_type(&self) -> Option<&DifferenceType>
pub fn difference_type(&self) -> Option<&DifferenceType>
The type of property difference.
-
ADD: A value has been added to a resource property that's an array or list data type. -
REMOVE: The property has been removed from the current resource configuration. -
NOT_EQUAL: The current property value differs from its expected value (as defined in the stack template and any values specified as template parameters).
source§impl PropertyDifference
impl PropertyDifference
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PropertyDifference.
Examples found in repository?
9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983
pub fn deser_structure_crate_model_property_difference(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PropertyDifference, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PropertyDifference::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("PropertyPath") /* PropertyPath com.amazonaws.cloudformation#PropertyDifference$PropertyPath */ => {
let var_464 =
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_property_path(var_464);
}
,
s if s.matches("ExpectedValue") /* ExpectedValue com.amazonaws.cloudformation#PropertyDifference$ExpectedValue */ => {
let var_465 =
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_expected_value(var_465);
}
,
s if s.matches("ActualValue") /* ActualValue com.amazonaws.cloudformation#PropertyDifference$ActualValue */ => {
let var_466 =
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_actual_value(var_466);
}
,
s if s.matches("DifferenceType") /* DifferenceType com.amazonaws.cloudformation#PropertyDifference$DifferenceType */ => {
let var_467 =
Some(
Result::<crate::model::DifferenceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DifferenceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_difference_type(var_467);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for PropertyDifference
impl Clone for PropertyDifference
source§fn clone(&self) -> PropertyDifference
fn clone(&self) -> PropertyDifference
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more