Skip to content

Commit

Permalink
Move requireXor to SpotFleetRequestConfigData (#3737)
Browse files Browse the repository at this point in the history
* Move requireXor to SpotFleetRequestConfigData

---------

Co-authored-by: Steven Gubler <[email protected]>
Co-authored-by: Kevin DeJong <[email protected]>
  • Loading branch information
3 people authored Oct 8, 2024
1 parent 79689ba commit ee77420
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion scripts/update_schemas_manually.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@
path="/definitions/BlockDeviceMapping/properties/VirtualName",
),
Patch(
path="/",
path="/definitions/SpotFleetRequestConfigData",
values={
"requiredXor": ["LaunchSpecifications", "LaunchTemplateConfigs"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"op": "add",
"path": "/requiredXor",
"path": "/definitions/SpotFleetRequestConfigData/requiredXor",
"value": [
"LaunchSpecifications",
"LaunchTemplateConfigs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@
"IamFleetRole",
"TargetCapacity"
],
"requiredXor": [
"LaunchSpecifications",
"LaunchTemplateConfigs"
],
"type": "object"
},
"SpotFleetTagSpecification": {
Expand Down Expand Up @@ -536,9 +540,5 @@
"required": [
"SpotFleetRequestConfigData"
],
"requiredXor": [
"LaunchSpecifications",
"LaunchTemplateConfigs"
],
"typeName": "AWS::EC2::SpotFleet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@
"IamFleetRole",
"TargetCapacity"
],
"requiredXor": [
"LaunchSpecifications",
"LaunchTemplateConfigs"
],
"type": "object"
},
"SpotFleetTagSpecification": {
Expand Down Expand Up @@ -536,9 +540,5 @@
"required": [
"SpotFleetRequestConfigData"
],
"requiredXor": [
"LaunchSpecifications",
"LaunchTemplateConfigs"
],
"typeName": "AWS::EC2::SpotFleet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@
"IamFleetRole",
"TargetCapacity"
],
"requiredXor": [
"LaunchSpecifications",
"LaunchTemplateConfigs"
],
"type": "object"
},
"SpotFleetTagSpecification": {
Expand Down Expand Up @@ -536,9 +540,5 @@
"required": [
"SpotFleetRequestConfigData"
],
"requiredXor": [
"LaunchSpecifications",
"LaunchTemplateConfigs"
],
"typeName": "AWS::EC2::SpotFleet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,10 @@
"IamFleetRole",
"TargetCapacity"
],
"requiredXor": [
"LaunchSpecifications",
"LaunchTemplateConfigs"
],
"type": "object"
},
"SpotFleetTagSpecification": {
Expand Down Expand Up @@ -946,10 +950,6 @@
"required": [
"SpotFleetRequestConfigData"
],
"requiredXor": [
"LaunchSpecifications",
"LaunchTemplateConfigs"
],
"typeName": "AWS::EC2::SpotFleet",
"writeOnlyProperties": [
"/properties/SpotFleetRequestConfigData/TagSpecifications",
Expand Down

0 comments on commit ee77420

Please sign in to comment.