diff --git a/src/change_set.rs b/src/change_set.rs index 4989531..d8019cf 100644 --- a/src/change_set.rs +++ b/src/change_set.rs @@ -609,7 +609,7 @@ pub enum ResourceTargetDefinition { /// A change to the resource's properties. Properties { /// The name of the property. - name: String, + name: Option, /// Indicates whether a change to this property causes the resource to be recreated. requires_recreation: RequiresRecreation, @@ -641,9 +641,7 @@ impl ResourceTargetDefinition { .expect("ResourceTargetDefinition without attribute"); match attribute { aws_sdk_cloudformation::types::ResourceAttribute::Properties => Self::Properties { - name: target - .name - .expect("ResourceTargetDefinition with attribute \"Properties\" without name"), + name: target.name, requires_recreation: target .requires_recreation .expect(concat!( diff --git a/tests/it/change_set_detail.rs b/tests/it/change_set_detail.rs index afb1da9..fe76748 100644 --- a/tests/it/change_set_detail.rs +++ b/tests/it/change_set_detail.rs @@ -90,7 +90,7 @@ async fn secrets_manager_secret_tags_only() -> Result<(), Box