#[non_exhaustive]pub struct ResourceTargetDefinition { /* private fields */ }Expand description
The field that CloudFormation will change, such as the name of a resource's property, and whether the resource will be recreated.
Implementations§
source§impl ResourceTargetDefinition
impl ResourceTargetDefinition
sourcepub fn attribute(&self) -> Option<&ResourceAttribute>
pub fn attribute(&self) -> Option<&ResourceAttribute>
Indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata, Properties, or Tags.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
If the Attribute value is Properties, the name of the property. For all other attributes, the value is null.
sourcepub fn requires_recreation(&self) -> Option<&RequiresRecreation>
pub fn requires_recreation(&self) -> Option<&RequiresRecreation>
If the Attribute value is Properties, indicates whether a change to this property causes the resource to be recreated. The value can be Never, Always, or Conditionally. To determine the conditions for a Conditionally recreation, see the update behavior for that property in the CloudFormation User Guide.
source§impl ResourceTargetDefinition
impl ResourceTargetDefinition
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ResourceTargetDefinition.
Examples found in repository?
10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478
pub fn deser_structure_crate_model_resource_target_definition(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ResourceTargetDefinition, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ResourceTargetDefinition::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Attribute") /* Attribute com.amazonaws.cloudformation#ResourceTargetDefinition$Attribute */ => {
let var_486 =
Some(
Result::<crate::model::ResourceAttribute, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ResourceAttribute::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_attribute(var_486);
}
,
s if s.matches("Name") /* Name com.amazonaws.cloudformation#ResourceTargetDefinition$Name */ => {
let var_487 =
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_name(var_487);
}
,
s if s.matches("RequiresRecreation") /* RequiresRecreation com.amazonaws.cloudformation#ResourceTargetDefinition$RequiresRecreation */ => {
let var_488 =
Some(
Result::<crate::model::RequiresRecreation, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::RequiresRecreation::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_requires_recreation(var_488);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for ResourceTargetDefinition
impl Clone for ResourceTargetDefinition
source§fn clone(&self) -> ResourceTargetDefinition
fn clone(&self) -> ResourceTargetDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more