Skip to content

Commit 172256c

Browse files
author
awstools
committed
feat(client-pcs): Introduces SUSPENDING and SUSPENDED states for clusters, compute node groups, and queues.
1 parent bffbdd3 commit 172256c

13 files changed

+65
-23
lines changed

clients/client-pcs/src/commands/CreateClusterCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
7575
* // name: "STRING_VALUE", // required
7676
* // id: "STRING_VALUE", // required
7777
* // arn: "STRING_VALUE", // required
78-
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED", // required
78+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "SUSPENDING" || "SUSPENDED", // required
7979
* // createdAt: new Date("TIMESTAMP"), // required
8080
* // modifiedAt: new Date("TIMESTAMP"), // required
8181
* // scheduler: { // Scheduler

clients/client-pcs/src/commands/CreateComputeNodeGroupCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export interface CreateComputeNodeGroupCommandOutput extends CreateComputeNodeGr
8383
* // clusterId: "STRING_VALUE", // required
8484
* // createdAt: new Date("TIMESTAMP"), // required
8585
* // modifiedAt: new Date("TIMESTAMP"), // required
86-
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "DELETED", // required
86+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "DELETED" || "SUSPENDING" || "SUSPENDED", // required
8787
* // amiId: "STRING_VALUE",
8888
* // subnetIds: [ // SubnetIdList // required
8989
* // "STRING_VALUE",

clients/client-pcs/src/commands/CreateQueueCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export interface CreateQueueCommandOutput extends CreateQueueResponse, __Metadat
5858
* // clusterId: "STRING_VALUE", // required
5959
* // createdAt: new Date("TIMESTAMP"), // required
6060
* // modifiedAt: new Date("TIMESTAMP"), // required
61-
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED", // required
61+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "SUSPENDING" || "SUSPENDED", // required
6262
* // computeNodeGroupConfigurations: [ // ComputeNodeGroupConfigurationList // required
6363
* // { // ComputeNodeGroupConfiguration
6464
* // computeNodeGroupId: "STRING_VALUE",

clients/client-pcs/src/commands/GetClusterCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface GetClusterCommandOutput extends GetClusterResponse, __MetadataB
4545
* // name: "STRING_VALUE", // required
4646
* // id: "STRING_VALUE", // required
4747
* // arn: "STRING_VALUE", // required
48-
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED", // required
48+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "SUSPENDING" || "SUSPENDED", // required
4949
* // createdAt: new Date("TIMESTAMP"), // required
5050
* // modifiedAt: new Date("TIMESTAMP"), // required
5151
* // scheduler: { // Scheduler

clients/client-pcs/src/commands/GetComputeNodeGroupCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface GetComputeNodeGroupCommandOutput extends GetComputeNodeGroupRes
4949
* // clusterId: "STRING_VALUE", // required
5050
* // createdAt: new Date("TIMESTAMP"), // required
5151
* // modifiedAt: new Date("TIMESTAMP"), // required
52-
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "DELETED", // required
52+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "DELETED" || "SUSPENDING" || "SUSPENDED", // required
5353
* // amiId: "STRING_VALUE",
5454
* // subnetIds: [ // SubnetIdList // required
5555
* // "STRING_VALUE",

clients/client-pcs/src/commands/GetQueueCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface GetQueueCommandOutput extends GetQueueResponse, __MetadataBeare
4949
* // clusterId: "STRING_VALUE", // required
5050
* // createdAt: new Date("TIMESTAMP"), // required
5151
* // modifiedAt: new Date("TIMESTAMP"), // required
52-
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED", // required
52+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "SUSPENDING" || "SUSPENDED", // required
5353
* // computeNodeGroupConfigurations: [ // ComputeNodeGroupConfigurationList // required
5454
* // { // ComputeNodeGroupConfiguration
5555
* // computeNodeGroupId: "STRING_VALUE",

clients/client-pcs/src/commands/ListClustersCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface ListClustersCommandOutput extends ListClustersResponse, __Metad
4949
* // arn: "STRING_VALUE", // required
5050
* // createdAt: new Date("TIMESTAMP"), // required
5151
* // modifiedAt: new Date("TIMESTAMP"), // required
52-
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED", // required
52+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "SUSPENDING" || "SUSPENDED", // required
5353
* // },
5454
* // ],
5555
* // nextToken: "STRING_VALUE",

clients/client-pcs/src/commands/ListComputeNodeGroupsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface ListComputeNodeGroupsCommandOutput extends ListComputeNodeGroup
5151
* // clusterId: "STRING_VALUE", // required
5252
* // createdAt: new Date("TIMESTAMP"), // required
5353
* // modifiedAt: new Date("TIMESTAMP"), // required
54-
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "DELETED", // required
54+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "DELETED" || "SUSPENDING" || "SUSPENDED", // required
5555
* // },
5656
* // ],
5757
* // nextToken: "STRING_VALUE",

clients/client-pcs/src/commands/ListQueuesCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface ListQueuesCommandOutput extends ListQueuesResponse, __MetadataB
5151
* // clusterId: "STRING_VALUE", // required
5252
* // createdAt: new Date("TIMESTAMP"), // required
5353
* // modifiedAt: new Date("TIMESTAMP"), // required
54-
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED", // required
54+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "SUSPENDING" || "SUSPENDED", // required
5555
* // },
5656
* // ],
5757
* // nextToken: "STRING_VALUE",

clients/client-pcs/src/commands/UpdateComputeNodeGroupCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export interface UpdateComputeNodeGroupCommandOutput extends UpdateComputeNodeGr
7575
* // clusterId: "STRING_VALUE", // required
7676
* // createdAt: new Date("TIMESTAMP"), // required
7777
* // modifiedAt: new Date("TIMESTAMP"), // required
78-
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "DELETED", // required
78+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "DELETED" || "SUSPENDING" || "SUSPENDED", // required
7979
* // amiId: "STRING_VALUE",
8080
* // subnetIds: [ // SubnetIdList // required
8181
* // "STRING_VALUE",

clients/client-pcs/src/commands/UpdateQueueCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface UpdateQueueCommandOutput extends UpdateQueueResponse, __Metadat
5555
* // clusterId: "STRING_VALUE", // required
5656
* // createdAt: new Date("TIMESTAMP"), // required
5757
* // modifiedAt: new Date("TIMESTAMP"), // required
58-
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED", // required
58+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "DELETE_FAILED" || "UPDATE_FAILED" || "SUSPENDING" || "SUSPENDED", // required
5959
* // computeNodeGroupConfigurations: [ // ComputeNodeGroupConfigurationList // required
6060
* // { // ComputeNodeGroupConfiguration
6161
* // computeNodeGroupId: "STRING_VALUE",

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ export const ComputeNodeGroupStatus = {
368368
DELETED: "DELETED",
369369
DELETE_FAILED: "DELETE_FAILED",
370370
DELETING: "DELETING",
371+
SUSPENDED: "SUSPENDED",
372+
SUSPENDING: "SUSPENDING",
371373
UPDATE_FAILED: "UPDATE_FAILED",
372374
UPDATING: "UPDATING",
373375
} as const;
@@ -419,7 +421,7 @@ export interface ComputeNodeGroup {
419421
modifiedAt: Date | undefined;
420422

421423
/**
422-
* <p>The provisioning status of the compute node group.</p> <note> <p>The provisioning status doesn't indicate the overall health of the compute node group.</p> </note>
424+
* <p>The provisioning status of the compute node group.</p> <note> <p>The provisioning status doesn't indicate the overall health of the compute node group.</p> </note> <important> <p>The resource enters the <code>SUSPENDING</code> and <code>SUSPENDED</code> states when the scheduler is beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster controller is down and all compute instances are terminated. The resources still count toward your service quotas. You can delete a resource if its status is <code>SUSPENDED</code>. For more information, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/slurm-versions_faq.html">Frequently asked questions about Slurm versions in PCS</a> in the <i>PCS User Guide</i>.</p> </important>
423425
* @public
424426
*/
425427
status: ComputeNodeGroupStatus | undefined;
@@ -816,7 +818,7 @@ export interface ComputeNodeGroupSummary {
816818
modifiedAt: Date | undefined;
817819

818820
/**
819-
* <p>The provisioning status of the compute node group.</p> <note> <p>The provisioning status doesn't indicate the overall health of the compute node group.</p> </note>
821+
* <p>The provisioning status of the compute node group.</p> <note> <p>The provisioning status doesn't indicate the overall health of the compute node group.</p> </note> <important> <p>The resource enters the <code>SUSPENDING</code> and <code>SUSPENDED</code> states when the scheduler is beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster controller is down and all compute instances are terminated. The resources still count toward your service quotas. You can delete a resource if its status is <code>SUSPENDED</code>. For more information, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/slurm-versions_faq.html">Frequently asked questions about Slurm versions in PCS</a> in the <i>PCS User Guide</i>.</p> </important>
820822
* @public
821823
*/
822824
status: ComputeNodeGroupStatus | undefined;
@@ -1206,6 +1208,8 @@ export const ClusterStatus = {
12061208
CREATING: "CREATING",
12071209
DELETE_FAILED: "DELETE_FAILED",
12081210
DELETING: "DELETING",
1211+
SUSPENDED: "SUSPENDED",
1212+
SUSPENDING: "SUSPENDING",
12091213
UPDATE_FAILED: "UPDATE_FAILED",
12101214
UPDATING: "UPDATING",
12111215
} as const;
@@ -1239,7 +1243,7 @@ export interface Cluster {
12391243
arn: string | undefined;
12401244

12411245
/**
1242-
* <p>The provisioning status of the cluster.</p> <note> <p>The provisioning status doesn't indicate the overall health of the cluster.</p> </note>
1246+
* <p>The provisioning status of the cluster.</p> <note> <p>The provisioning status doesn't indicate the overall health of the cluster.</p> </note> <important> <p>The resource enters the <code>SUSPENDING</code> and <code>SUSPENDED</code> states when the scheduler is beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster controller is down and all compute instances are terminated. The resources still count toward your service quotas. You can delete a resource if its status is <code>SUSPENDED</code>. For more information, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/slurm-versions_faq.html">Frequently asked questions about Slurm versions in PCS</a> in the <i>PCS User Guide</i>.</p> </important>
12431247
* @public
12441248
*/
12451249
status: ClusterStatus | undefined;
@@ -1401,7 +1405,7 @@ export interface ClusterSummary {
14011405
modifiedAt: Date | undefined;
14021406

14031407
/**
1404-
* <p>The provisioning status of the cluster.</p> <note> <p>The provisioning status doesn't indicate the overall health of the cluster.</p> </note>
1408+
* <p>The provisioning status of the cluster.</p> <note> <p>The provisioning status doesn't indicate the overall health of the cluster.</p> </note> <important> <p>The resource enters the <code>SUSPENDING</code> and <code>SUSPENDED</code> states when the scheduler is beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster controller is down and all compute instances are terminated. The resources still count toward your service quotas. You can delete a resource if its status is <code>SUSPENDED</code>. For more information, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/slurm-versions_faq.html">Frequently asked questions about Slurm versions in PCS</a> in the <i>PCS User Guide</i>.</p> </important>
14051409
* @public
14061410
*/
14071411
status: ClusterStatus | undefined;
@@ -1481,6 +1485,8 @@ export const QueueStatus = {
14811485
CREATING: "CREATING",
14821486
DELETE_FAILED: "DELETE_FAILED",
14831487
DELETING: "DELETING",
1488+
SUSPENDED: "SUSPENDED",
1489+
SUSPENDING: "SUSPENDING",
14841490
UPDATE_FAILED: "UPDATE_FAILED",
14851491
UPDATING: "UPDATING",
14861492
} as const;
@@ -1532,7 +1538,7 @@ export interface Queue {
15321538
modifiedAt: Date | undefined;
15331539

15341540
/**
1535-
* <p>The provisioning status of the queue.</p> <note> <p>The provisioning status doesn't indicate the overall health of the queue.</p> </note>
1541+
* <p>The provisioning status of the queue.</p> <note> <p>The provisioning status doesn't indicate the overall health of the queue.</p> </note> <important> <p>The resource enters the <code>SUSPENDING</code> and <code>SUSPENDED</code> states when the scheduler is beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster controller is down and all compute instances are terminated. The resources still count toward your service quotas. You can delete a resource if its status is <code>SUSPENDED</code>. For more information, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/slurm-versions_faq.html">Frequently asked questions about Slurm versions in PCS</a> in the <i>PCS User Guide</i>.</p> </important>
15361542
* @public
15371543
*/
15381544
status: QueueStatus | undefined;
@@ -1682,7 +1688,7 @@ export interface QueueSummary {
16821688
modifiedAt: Date | undefined;
16831689

16841690
/**
1685-
* <p>The provisioning status of the queue.</p> <note> <p> The provisioning status doesn't indicate the overall health of the queue.</p> </note>
1691+
* <p>The provisioning status of the queue.</p> <note> <p> The provisioning status doesn't indicate the overall health of the queue.</p> </note> <important> <p>The resource enters the <code>SUSPENDING</code> and <code>SUSPENDED</code> states when the scheduler is beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster controller is down and all compute instances are terminated. The resources still count toward your service quotas. You can delete a resource if its status is <code>SUSPENDED</code>. For more information, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/slurm-versions_faq.html">Frequently asked questions about Slurm versions in PCS</a> in the <i>PCS User Guide</i>.</p> </important>
16861692
* @public
16871693
*/
16881694
status: QueueStatus | undefined;

0 commit comments

Comments
 (0)