Skip to content

Commit 3293ed2

Browse files
author
awstools
committed
feat(client-eks): Updates EKS managed node groups to support EC2 Capacity Blocks for ML
1 parent 67d4def commit 3293ed2

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

clients/client-eks/src/commands/CreateNodegroupCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export interface CreateNodegroupCommandOutput extends CreateNodegroupResponse, _
9393
* maxUnavailable: Number("int"),
9494
* maxUnavailablePercentage: Number("int"),
9595
* },
96-
* capacityType: "ON_DEMAND" || "SPOT",
96+
* capacityType: "ON_DEMAND" || "SPOT" || "CAPACITY_BLOCK",
9797
* version: "STRING_VALUE",
9898
* releaseVersion: "STRING_VALUE",
9999
* };
@@ -109,7 +109,7 @@ export interface CreateNodegroupCommandOutput extends CreateNodegroupResponse, _
109109
* // createdAt: new Date("TIMESTAMP"),
110110
* // modifiedAt: new Date("TIMESTAMP"),
111111
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "DEGRADED",
112-
* // capacityType: "ON_DEMAND" || "SPOT",
112+
* // capacityType: "ON_DEMAND" || "SPOT" || "CAPACITY_BLOCK",
113113
* // scalingConfig: { // NodegroupScalingConfig
114114
* // minSize: Number("int"),
115115
* // maxSize: Number("int"),

clients/client-eks/src/commands/DeleteNodegroupCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface DeleteNodegroupCommandOutput extends DeleteNodegroupResponse, _
5151
* // createdAt: new Date("TIMESTAMP"),
5252
* // modifiedAt: new Date("TIMESTAMP"),
5353
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "DEGRADED",
54-
* // capacityType: "ON_DEMAND" || "SPOT",
54+
* // capacityType: "ON_DEMAND" || "SPOT" || "CAPACITY_BLOCK",
5555
* // scalingConfig: { // NodegroupScalingConfig
5656
* // minSize: Number("int"),
5757
* // maxSize: Number("int"),

clients/client-eks/src/commands/DescribeNodegroupCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface DescribeNodegroupCommandOutput extends DescribeNodegroupRespons
5151
* // createdAt: new Date("TIMESTAMP"),
5252
* // modifiedAt: new Date("TIMESTAMP"),
5353
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "DEGRADED",
54-
* // capacityType: "ON_DEMAND" || "SPOT",
54+
* // capacityType: "ON_DEMAND" || "SPOT" || "CAPACITY_BLOCK",
5555
* // scalingConfig: { // NodegroupScalingConfig
5656
* // minSize: Number("int"),
5757
* // maxSize: Number("int"),

clients/client-eks/src/models/models_0.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3033,6 +3033,7 @@ export interface CreateFargateProfileResponse {
30333033
* @enum
30343034
*/
30353035
export const CapacityTypes = {
3036+
CAPACITY_BLOCK: "CAPACITY_BLOCK",
30363037
ON_DEMAND: "ON_DEMAND",
30373038
SPOT: "SPOT",
30383039
} as const;

codegen/sdk-codegen/aws-models/eks.json

+6
Original file line numberDiff line numberDiff line change
@@ -2312,6 +2312,12 @@
23122312
"traits": {
23132313
"smithy.api#enumValue": "SPOT"
23142314
}
2315+
},
2316+
"CAPACITY_BLOCK": {
2317+
"target": "smithy.api#Unit",
2318+
"traits": {
2319+
"smithy.api#enumValue": "CAPACITY_BLOCK"
2320+
}
23152321
}
23162322
}
23172323
},

0 commit comments

Comments
 (0)