File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -180,9 +180,22 @@ func patchDynamoDBTable(schema *Schema) error {
180
180
return nil
181
181
}
182
182
183
- func patchAEC2VerifiedAccessTrustProvider (schema * Schema ) error {
183
+ func patchEC2VerifiedAccessTrustProvider (schema * Schema ) error {
184
184
// This one is apparently a placeholder schema
185
185
// Remove the extraneous def that points to itself
186
186
delete (schema .Definitions , "SseSpecification" )
187
187
return nil
188
188
}
189
+
190
+ func patchEC2LaunchTemplate (schema * Schema ) error {
191
+ // The schema is missing a definition for NetworkPerformanceOptions
192
+ // Delete it if the definition is not there (so this works if they add it)
193
+ name := "NetworkPerformanceOptions"
194
+ if _ , ok := schema .Definitions [name ]; ! ok {
195
+ ltd , exists := schema .Definitions ["LaunchTemplateData" ]
196
+ if exists {
197
+ delete (ltd .Properties , name )
198
+ }
199
+ }
200
+ return nil
201
+ }
Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ func (schema *Schema) Patch() error {
98
98
case "AWS::DynamoDB::Table" :
99
99
return patchDynamoDBTable (schema )
100
100
case "AWS::EC2::VerifiedAccessTrustProvider" :
101
- return patchAEC2VerifiedAccessTrustProvider (schema )
101
+ return patchEC2VerifiedAccessTrustProvider (schema )
102
+ case "AWS::EC2::LaunchTemplate" :
103
+ return patchEC2LaunchTemplate (schema )
102
104
}
103
105
return nil
104
106
}
You can’t perform that action at this time.
0 commit comments