Skip to content

Commit ce0b49c

Browse files
committed
Spec 242.0.0: backward compatibility for EMR::Cluster Configuration
1 parent 276c40d commit ce0b49c

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
patches = [
2+
{
3+
"op": "replace",
4+
"path": "/PropertyTypes/AWS::AmplifyUIBuilder::Component.ComponentConditionProperty/Properties/Else/Type",
5+
"value": "object",
6+
},
7+
{
8+
"op": "replace",
9+
"path": "/PropertyTypes/AWS::AmplifyUIBuilder::Component.ComponentConditionProperty/Properties/Then/Type",
10+
"value": "object",
11+
},
12+
]

scripts/patches/emr.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,20 @@
8383
"Type": "List",
8484
},
8585
},
86+
# Spec 242.0.0 introduced EMRConfiguration to replace Configuration but left both in.
87+
# Revert back to Configuration for backwards compatibility
88+
{
89+
"op": "remove",
90+
"path": "/PropertyTypes/AWS::EMR::Cluster.EMRConfiguration",
91+
},
92+
{
93+
"op": "replace",
94+
"path": "/PropertyTypes/AWS::EMR::Cluster.InstanceGroupConfig/Properties/Configurations/ItemType",
95+
"value": "Configuration",
96+
},
97+
{
98+
"op": "replace",
99+
"path": "/ResourceTypes/AWS::EMR::Cluster/Properties/Configurations/ItemType",
100+
"value": "Configuration",
101+
},
86102
]

0 commit comments

Comments
 (0)