Skip to content

Commit ee77420

Browse files
stevengublerSteven Gublerkddejong
authored
Move requireXor to SpotFleetRequestConfigData (#3737)
* Move requireXor to SpotFleetRequestConfigData --------- Co-authored-by: Steven Gubler <[email protected]> Co-authored-by: Kevin DeJong <[email protected]>
1 parent 79689ba commit ee77420

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

scripts/update_schemas_manually.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@
884884
path="/definitions/BlockDeviceMapping/properties/VirtualName",
885885
),
886886
Patch(
887-
path="/",
887+
path="/definitions/SpotFleetRequestConfigData",
888888
values={
889889
"requiredXor": ["LaunchSpecifications", "LaunchTemplateConfigs"]
890890
},

src/cfnlint/data/schemas/patches/extensions/all/aws_ec2_spotfleet/manual.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
{
1717
"op": "add",
18-
"path": "/requiredXor",
18+
"path": "/definitions/SpotFleetRequestConfigData/requiredXor",
1919
"value": [
2020
"LaunchSpecifications",
2121
"LaunchTemplateConfigs"

src/cfnlint/data/schemas/providers/ap_south_2/aws-ec2-spotfleet.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,10 @@
432432
"IamFleetRole",
433433
"TargetCapacity"
434434
],
435+
"requiredXor": [
436+
"LaunchSpecifications",
437+
"LaunchTemplateConfigs"
438+
],
435439
"type": "object"
436440
},
437441
"SpotFleetTagSpecification": {
@@ -536,9 +540,5 @@
536540
"required": [
537541
"SpotFleetRequestConfigData"
538542
],
539-
"requiredXor": [
540-
"LaunchSpecifications",
541-
"LaunchTemplateConfigs"
542-
],
543543
"typeName": "AWS::EC2::SpotFleet"
544544
}

src/cfnlint/data/schemas/providers/ap_southeast_4/aws-ec2-spotfleet.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,10 @@
432432
"IamFleetRole",
433433
"TargetCapacity"
434434
],
435+
"requiredXor": [
436+
"LaunchSpecifications",
437+
"LaunchTemplateConfigs"
438+
],
435439
"type": "object"
436440
},
437441
"SpotFleetTagSpecification": {
@@ -536,9 +540,5 @@
536540
"required": [
537541
"SpotFleetRequestConfigData"
538542
],
539-
"requiredXor": [
540-
"LaunchSpecifications",
541-
"LaunchTemplateConfigs"
542-
],
543543
"typeName": "AWS::EC2::SpotFleet"
544544
}

src/cfnlint/data/schemas/providers/il_central_1/aws-ec2-spotfleet.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,10 @@
432432
"IamFleetRole",
433433
"TargetCapacity"
434434
],
435+
"requiredXor": [
436+
"LaunchSpecifications",
437+
"LaunchTemplateConfigs"
438+
],
435439
"type": "object"
436440
},
437441
"SpotFleetTagSpecification": {
@@ -536,9 +540,5 @@
536540
"required": [
537541
"SpotFleetRequestConfigData"
538542
],
539-
"requiredXor": [
540-
"LaunchSpecifications",
541-
"LaunchTemplateConfigs"
542-
],
543543
"typeName": "AWS::EC2::SpotFleet"
544544
}

src/cfnlint/data/schemas/providers/us_east_1/aws-ec2-spotfleet.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,10 @@
764764
"IamFleetRole",
765765
"TargetCapacity"
766766
],
767+
"requiredXor": [
768+
"LaunchSpecifications",
769+
"LaunchTemplateConfigs"
770+
],
767771
"type": "object"
768772
},
769773
"SpotFleetTagSpecification": {
@@ -946,10 +950,6 @@
946950
"required": [
947951
"SpotFleetRequestConfigData"
948952
],
949-
"requiredXor": [
950-
"LaunchSpecifications",
951-
"LaunchTemplateConfigs"
952-
],
953953
"typeName": "AWS::EC2::SpotFleet",
954954
"writeOnlyProperties": [
955955
"/properties/SpotFleetRequestConfigData/TagSpecifications",

0 commit comments

Comments
 (0)