Skip to content

Commit

Permalink
Better patch for required properties on AutoScalingGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Aug 16, 2024
1 parent ec8d1ac commit 2ade140
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 67 deletions.
28 changes: 6 additions & 22 deletions scripts/update_schemas_manually.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,28 +79,12 @@
),
Patch(
values={
"dependentExcluded": {
"InstanceId": [
"LaunchConfigurationName",
"LaunchTemplate",
"MixedInstancesPolicy",
],
"LaunchConfigurationName": [
"InstanceId",
"LaunchTemplate",
"MixedInstancesPolicy",
],
"LaunchTemplate": [
"InstanceId",
"LaunchConfigurationName",
"MixedInstancesPolicy",
],
"MixedInstancesPolicy": [
"InstanceId",
"LaunchConfigurationName",
"LaunchTemplate",
],
},
"requiredXor": [
"InstanceId",
"LaunchConfigurationName",
"LaunchTemplate",
"MixedInstancesPolicy",
]
},
path="/",
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,12 @@
},
{
"op": "add",
"path": "/dependentExcluded",
"value": {
"InstanceId": [
"LaunchConfigurationName",
"LaunchTemplate",
"MixedInstancesPolicy"
],
"LaunchConfigurationName": [
"InstanceId",
"LaunchTemplate",
"MixedInstancesPolicy"
],
"LaunchTemplate": [
"InstanceId",
"LaunchConfigurationName",
"MixedInstancesPolicy"
],
"MixedInstancesPolicy": [
"InstanceId",
"LaunchConfigurationName",
"LaunchTemplate"
]
}
"path": "/requiredXor",
"value": [
"InstanceId",
"LaunchConfigurationName",
"LaunchTemplate",
"MixedInstancesPolicy"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -459,28 +459,6 @@
"type": "object"
}
},
"dependentExcluded": {
"InstanceId": [
"LaunchConfigurationName",
"LaunchTemplate",
"MixedInstancesPolicy"
],
"LaunchConfigurationName": [
"InstanceId",
"LaunchTemplate",
"MixedInstancesPolicy"
],
"LaunchTemplate": [
"InstanceId",
"LaunchConfigurationName",
"MixedInstancesPolicy"
],
"MixedInstancesPolicy": [
"InstanceId",
"LaunchConfigurationName",
"LaunchTemplate"
]
},
"deprecatedProperties": [
"/properties/NotificationConfiguration"
],
Expand Down Expand Up @@ -715,6 +693,12 @@
"MinSize",
"MaxSize"
],
"requiredXor": [
"InstanceId",
"LaunchConfigurationName",
"LaunchTemplate",
"MixedInstancesPolicy"
],
"tagging": {
"cloudFormationSystemTags": true,
"tagOnCreate": true,
Expand Down

0 comments on commit 2ade140

Please sign in to comment.