Skip to content

Commit

Permalink
feat(client-ec2): EC2 Fleet customers who use attribute based instanc…
Browse files Browse the repository at this point in the history
…e-type selection can now intuitively define their Spot instances price protection limit as a percentage of the lowest priced On-Demand instance type.
  • Loading branch information
awstools committed Jan 29, 2024
1 parent 0019ff5 commit 5465534
Show file tree
Hide file tree
Showing 15 changed files with 143 additions and 29 deletions.
3 changes: 3 additions & 0 deletions clients/client-ec2/src/commands/CreateFleetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* "STRING_VALUE",
* ],
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* },
* ImageId: "STRING_VALUE",
* },
Expand Down Expand Up @@ -281,6 +282,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* // AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // },
* // ImageId: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -375,6 +377,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* // AllowedInstanceTypes: [
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // },
* // ImageId: "STRING_VALUE",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ export interface CreateLaunchTemplateCommandOutput extends CreateLaunchTemplateR
* AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* "STRING_VALUE",
* ],
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* },
* PrivateDnsNameOptions: { // LaunchTemplatePrivateDnsNameOptionsRequest
* HostnameType: "ip-name" || "resource-name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
* AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* "STRING_VALUE",
* ],
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* },
* PrivateDnsNameOptions: { // LaunchTemplatePrivateDnsNameOptionsRequest
* HostnameType: "ip-name" || "resource-name",
Expand Down Expand Up @@ -555,6 +556,7 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
* // AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // },
* // PrivateDnsNameOptions: { // LaunchTemplatePrivateDnsNameOptions
* // HostnameType: "ip-name" || "resource-name",
Expand Down
3 changes: 3 additions & 0 deletions clients/client-ec2/src/commands/DescribeFleetsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
* // AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // },
* // ImageId: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -285,6 +286,7 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
* // AllowedInstanceTypes: [
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // },
* // ImageId: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -379,6 +381,7 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
* // AllowedInstanceTypes: [
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // },
* // ImageId: "STRING_VALUE",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ export interface DescribeLaunchTemplateVersionsCommandOutput
* // AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // },
* // PrivateDnsNameOptions: { // LaunchTemplatePrivateDnsNameOptions
* // HostnameType: "ip-name" || "resource-name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ export interface DescribeSpotFleetRequestsCommandOutput extends DescribeSpotFlee
* // AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // },
* // },
* // ],
Expand Down Expand Up @@ -338,6 +339,7 @@ export interface DescribeSpotFleetRequestsCommandOutput extends DescribeSpotFlee
* // AllowedInstanceTypes: [
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // },
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export interface GetInstanceTypesFromInstanceRequirementsCommandOutput
* AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* "STRING_VALUE",
* ],
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* },
* MaxResults: Number("int"),
* NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ export interface GetLaunchTemplateDataCommandOutput extends GetLaunchTemplateDat
* // AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* // "STRING_VALUE",
* // ],
* // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* // },
* // PrivateDnsNameOptions: { // LaunchTemplatePrivateDnsNameOptions
* // HostnameType: "ip-name" || "resource-name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export interface GetSpotPlacementScoresCommandOutput extends GetSpotPlacementSco
* AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* "STRING_VALUE",
* ],
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* },
* },
* DryRun: true || false,
Expand Down
1 change: 1 addition & 0 deletions clients/client-ec2/src/commands/ModifyFleetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export interface ModifyFleetCommandOutput extends ModifyFleetResult, __MetadataB
* AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* "STRING_VALUE",
* ],
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* },
* ImageId: "STRING_VALUE",
* },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export interface ModifySpotFleetRequestCommandOutput extends ModifySpotFleetRequ
* AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* "STRING_VALUE",
* ],
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* },
* },
* ],
Expand Down
2 changes: 2 additions & 0 deletions clients/client-ec2/src/commands/RequestSpotFleetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ export interface RequestSpotFleetCommandOutput extends RequestSpotFleetResponse,
* AllowedInstanceTypes: [ // AllowedInstanceTypeSet
* "STRING_VALUE",
* ],
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* },
* },
* ],
Expand Down Expand Up @@ -348,6 +349,7 @@ export interface RequestSpotFleetCommandOutput extends RequestSpotFleetResponse,
* AllowedInstanceTypes: [
* "STRING_VALUE",
* ],
* MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
* },
* },
* ],
Expand Down

0 comments on commit 5465534

Please sign in to comment.