@aws-sdk/client-pcs 3.1092.0 → 3.1093.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1091.0";
72
+ var version = "3.1092.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -315,6 +315,11 @@ const _LTFR = "ListTagsForResource";
315
315
  const _LTFRR = "ListTagsForResourceRequest";
316
316
  const _LTFRRi = "ListTagsForResourceResponse";
317
317
  const _N = "Networking";
318
+ const _NLA = "NodeLifecycleActions";
319
+ const _NLAR = "NodeLifecycleActionsRequest";
320
+ const _NLS = "NodeLifecycleScript";
321
+ const _NLSL = "NodeLifecycleScriptList";
322
+ const _NLSo = "NodeLifecycleStages";
318
323
  const _NR = "NetworkingRequest";
319
324
  const _Q = "Queue";
320
325
  const _QL = "QueueList";
@@ -340,6 +345,7 @@ const _SR = "SchedulerRequest";
340
345
  const _SRR = "SlurmRestRequest";
341
346
  const _SRl = "SlurmRest";
342
347
  const _SS = "SharedSecret";
348
+ const _SSc = "ScriptSource";
343
349
  const _TE = "ThrottlingException";
344
350
  const _TR = "TagResource";
345
351
  const _TRR = "TagResourceRequest";
@@ -353,6 +359,7 @@ const _UCNGSCR = "UpdateComputeNodeGroupSlurmConfigurationRequest";
353
359
  const _UCR = "UpdateClusterRequest";
354
360
  const _UCRp = "UpdateClusterResponse";
355
361
  const _UCSCR = "UpdateClusterSlurmConfigurationRequest";
362
+ const _UNLAR = "UpdateNodeLifecycleActionsRequest";
356
363
  const _UQ = "UpdateQueue";
357
364
  const _UQR = "UpdateQueueRequest";
358
365
  const _UQRp = "UpdateQueueResponse";
@@ -370,6 +377,7 @@ const _aI = "amiId";
370
377
  const _aK = "authKey";
371
378
  const _aS = "allocationStrategy";
372
379
  const _ac = "accounting";
380
+ const _ar = "arguments";
373
381
  const _bI = "bootstrapId";
374
382
  const _c = "client";
375
383
  const _cA = "createdAt";
@@ -385,12 +393,14 @@ const _cNGIo = "computeNodeGroupIdentifier";
385
393
  const _cNGN = "computeNodeGroupName";
386
394
  const _cNGo = "computeNodeGroups";
387
395
  const _cT = "clientToken";
396
+ const _ch = "checksum";
388
397
  const _cl = "cluster";
389
398
  const _clu = "clusters";
390
399
  const _co = "code";
391
400
  const _dPTID = "defaultPurgeTimeInDays";
392
401
  const _e = "error";
393
402
  const _eI = "errorInfo";
403
+ const _eP = "executionPolicy";
394
404
  const _en = "endpoints";
395
405
  const _fL = "fieldList";
396
406
  const _hE = "httpError";
@@ -410,10 +420,14 @@ const _mICa = "maxInstanceCount";
410
420
  const _mR = "maxResults";
411
421
  const _mo = "mode";
412
422
  const _n = "name";
423
+ const _nB = "nodeBootstrapped";
413
424
  const _nID = "nodeID";
425
+ const _nLA = "nodeLifecycleActions";
426
+ const _nR = "nodeReady";
414
427
  const _nT = "nextToken";
415
428
  const _nTe = "networkType";
416
429
  const _ne = "networking";
430
+ const _oE = "onError";
417
431
  const _p = "port";
418
432
  const _pIA = "privateIpAddress";
419
433
  const _pIAu = "publicIpAddress";
@@ -433,6 +447,7 @@ const _rT = "resourceType";
433
447
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pcs";
434
448
  const _sA = "secretArn";
435
449
  const _sC = "serviceCode";
450
+ const _sCP = "scriptCachingPolicy";
436
451
  const _sCS = "slurmCustomSettings";
437
452
  const _sCSl = "slurmdbdCustomSettings";
438
453
  const _sCc = "scalingConfiguration";
@@ -440,14 +455,18 @@ const _sCl = "slurmConfiguration";
440
455
  const _sDITIS = "scaleDownIdleTimeInSeconds";
441
456
  const _sGI = "securityGroupIds";
442
457
  const _sI = "subnetIds";
458
+ const _sL = "scriptLocation";
443
459
  const _sO = "spotOptions";
444
460
  const _sR = "slurmRest";
445
- const _sS = "sharedSecret";
461
+ const _sS = "scriptSource";
462
+ const _sSh = "sharedSecret";
446
463
  const _sV = "secretVersion";
464
+ const _sVI = "s3VersionId";
447
465
  const _sc = "scheduler";
448
466
  const _se = "server";
449
467
  const _si = "size";
450
468
  const _st = "status";
469
+ const _sta = "stages";
451
470
  const _t = "tags";
452
471
  const _tK = "tagKeys";
453
472
  const _ty = "type";
@@ -541,8 +560,8 @@ var ClusterSummary$ = [3, n0, _CS,
541
560
  ];
542
561
  var ComputeNodeGroup$ = [3, n0, _CNG,
543
562
  0,
544
- [_n, _i, _a, _cI, _cA, _mA, _st, _sI, _cLT, _iIPA, _sCc, _iC, _aI, _pO, _sO, _sCl, _eI],
545
- [0, 0, 0, 0, 5, 5, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => ScalingConfiguration$, () => InstanceList, 0, 0, () => SpotOptions$, () => ComputeNodeGroupSlurmConfiguration$, () => ErrorInfoList], 12
563
+ [_n, _i, _a, _cI, _cA, _mA, _st, _sI, _cLT, _iIPA, _sCc, _iC, _aI, _pO, _sO, _sCl, _nLA, _eI],
564
+ [0, 0, 0, 0, 5, 5, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => ScalingConfiguration$, () => InstanceList, 0, 0, () => SpotOptions$, () => ComputeNodeGroupSlurmConfiguration$, () => NodeLifecycleActions$, () => ErrorInfoList], 12
546
565
  ];
547
566
  var ComputeNodeGroupConfiguration$ = [3, n0, _CNGC,
548
567
  0,
@@ -576,8 +595,8 @@ var CreateClusterResponse$ = [3, n0, _CCRr,
576
595
  ];
577
596
  var CreateComputeNodeGroupRequest$ = [3, n0, _CCNGR,
578
597
  0,
579
- [_cIl, _cNGN, _sI, _cLT, _iIPA, _sCc, _iC, _aI, _pO, _sO, _sCl, _cT, _t],
580
- [0, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => ScalingConfigurationRequest$, () => InstanceList, 0, 0, () => SpotOptions$, () => ComputeNodeGroupSlurmConfigurationRequest$, [0, 4], 128 | 0], 7
598
+ [_cIl, _cNGN, _sI, _cLT, _iIPA, _sCc, _iC, _aI, _pO, _sO, _sCl, _nLA, _cT, _t],
599
+ [0, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => ScalingConfigurationRequest$, () => InstanceList, 0, 0, () => SpotOptions$, () => ComputeNodeGroupSlurmConfigurationRequest$, () => NodeLifecycleActionsRequest$, [0, 4], 128 | 0], 7
581
600
  ];
582
601
  var CreateComputeNodeGroupResponse$ = [3, n0, _CCNGRr,
583
602
  0,
@@ -734,6 +753,26 @@ var NetworkingRequest$ = [3, n0, _NR,
734
753
  [_sI, _sGI, _nTe],
735
754
  [64 | 0, 64 | 0, 0]
736
755
  ];
756
+ var NodeLifecycleActions$ = [3, n0, _NLA,
757
+ 0,
758
+ [_sta, _sCP],
759
+ [() => NodeLifecycleStages$, 0], 1
760
+ ];
761
+ var NodeLifecycleActionsRequest$ = [3, n0, _NLAR,
762
+ 0,
763
+ [_sta, _sCP],
764
+ [() => NodeLifecycleStages$, 0], 1
765
+ ];
766
+ var NodeLifecycleScript$ = [3, n0, _NLS,
767
+ 0,
768
+ [_n, _sS, _ar, _oE, _eP],
769
+ [0, () => ScriptSource$, 64 | 0, 0, 0], 2
770
+ ];
771
+ var NodeLifecycleStages$ = [3, n0, _NLSo,
772
+ 0,
773
+ [_nB, _nR],
774
+ [() => NodeLifecycleScriptList, () => NodeLifecycleScriptList]
775
+ ];
737
776
  var Queue$ = [3, n0, _Q,
738
777
  0,
739
778
  [_n, _i, _a, _cI, _cA, _mA, _st, _cNGC, _sCl, _eI],
@@ -761,8 +800,8 @@ var RegisterComputeNodeGroupInstanceRequest$ = [3, n0, _RCNGIR,
761
800
  ];
762
801
  var RegisterComputeNodeGroupInstanceResponse$ = [3, n0, _RCNGIRe,
763
802
  0,
764
- [_nID, _sS, _en],
765
- [0, [() => SharedSecret, 0], () => Endpoints], 3
803
+ [_nID, _sSh, _en, _cN, _cNGI, _cNGN, _nLA],
804
+ [0, [() => SharedSecret, 0], () => Endpoints, 0, 0, 0, () => NodeLifecycleActions$], 3
766
805
  ];
767
806
  var ScalingConfiguration$ = [3, n0, _SC,
768
807
  0,
@@ -784,6 +823,11 @@ var SchedulerRequest$ = [3, n0, _SR,
784
823
  [_ty, _v],
785
824
  [0, 0], 2
786
825
  ];
826
+ var ScriptSource$ = [3, n0, _SSc,
827
+ 0,
828
+ [_sL, _sVI, _ch],
829
+ [0, 0, 0], 1
830
+ ];
787
831
  var SlurmAuthKey$ = [3, n0, _SAK,
788
832
  0,
789
833
  [_sA, _sV],
@@ -856,8 +900,8 @@ var UpdateClusterSlurmConfigurationRequest$ = [3, n0, _UCSCR,
856
900
  ];
857
901
  var UpdateComputeNodeGroupRequest$ = [3, n0, _UCNGR,
858
902
  0,
859
- [_cIl, _cNGIo, _aI, _sI, _cLT, _pO, _sO, _sCc, _iIPA, _sCl, _cT],
860
- [0, 0, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => SpotOptions$, () => ScalingConfigurationRequest$, 0, () => UpdateComputeNodeGroupSlurmConfigurationRequest$, [0, 4]], 2
903
+ [_cIl, _cNGIo, _aI, _sI, _cLT, _pO, _sO, _sCc, _iIPA, _sCl, _nLA, _cT],
904
+ [0, 0, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => SpotOptions$, () => ScalingConfigurationRequest$, 0, () => UpdateComputeNodeGroupSlurmConfigurationRequest$, () => UpdateNodeLifecycleActionsRequest$, [0, 4]], 2
861
905
  ];
862
906
  var UpdateComputeNodeGroupResponse$ = [3, n0, _UCNGRp,
863
907
  0,
@@ -869,6 +913,11 @@ var UpdateComputeNodeGroupSlurmConfigurationRequest$ = [3, n0, _UCNGSCR,
869
913
  [_sDITIS, _sCS],
870
914
  [1, () => SlurmCustomSettings]
871
915
  ];
916
+ var UpdateNodeLifecycleActionsRequest$ = [3, n0, _UNLAR,
917
+ 0,
918
+ [_sta, _sCP],
919
+ [() => NodeLifecycleStages$, 0], 1
920
+ ];
872
921
  var UpdateQueueRequest$ = [3, n0, _UQR,
873
922
  0,
874
923
  [_cIl, _qI, _cNGC, _sCl, _cT],
@@ -920,6 +969,9 @@ var ErrorInfoList = [1, n0, _EIL,
920
969
  var InstanceList = [1, n0, _IL,
921
970
  0, () => InstanceConfig$
922
971
  ];
972
+ var NodeLifecycleScriptList = [1, n0, _NLSL,
973
+ 0, () => NodeLifecycleScript$
974
+ ];
923
975
  var QueueList = [1, n0, _QL,
924
976
  0, () => QueueSummary$
925
977
  ];
@@ -1237,6 +1289,19 @@ const AccountingMode = {
1237
1289
  NONE: "NONE",
1238
1290
  STANDARD: "STANDARD",
1239
1291
  };
1292
+ const ScriptCachingPolicy = {
1293
+ CACHE_ONCE: "CACHE_ONCE",
1294
+ REFRESH_ON_REBOOT: "REFRESH_ON_REBOOT",
1295
+ };
1296
+ const ExecutionPolicy = {
1297
+ EVERY_BOOT: "EVERY_BOOT",
1298
+ FIRST_BOOT_ONLY: "FIRST_BOOT_ONLY",
1299
+ };
1300
+ const OnError = {
1301
+ CONTINUE: "CONTINUE",
1302
+ STOP_SEQUENCE: "STOP_SEQUENCE",
1303
+ TERMINATE: "TERMINATE",
1304
+ };
1240
1305
  const PurchaseOption = {
1241
1306
  CAPACITY_BLOCK: "CAPACITY_BLOCK",
1242
1307
  INTERRUPTIBLE_CAPACITY_RESERVATION: "INTERRUPTIBLE_CAPACITY_RESERVATION",
@@ -1360,6 +1425,7 @@ exports.DeleteQueueResponse$ = DeleteQueueResponse$;
1360
1425
  exports.Endpoint$ = Endpoint$;
1361
1426
  exports.EndpointType = EndpointType;
1362
1427
  exports.ErrorInfo$ = ErrorInfo$;
1428
+ exports.ExecutionPolicy = ExecutionPolicy;
1363
1429
  exports.GetCluster$ = GetCluster$;
1364
1430
  exports.GetClusterCommand = GetClusterCommand;
1365
1431
  exports.GetClusterRequest$ = GetClusterRequest$;
@@ -1396,6 +1462,11 @@ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1396
1462
  exports.NetworkType = NetworkType;
1397
1463
  exports.Networking$ = Networking$;
1398
1464
  exports.NetworkingRequest$ = NetworkingRequest$;
1465
+ exports.NodeLifecycleActions$ = NodeLifecycleActions$;
1466
+ exports.NodeLifecycleActionsRequest$ = NodeLifecycleActionsRequest$;
1467
+ exports.NodeLifecycleScript$ = NodeLifecycleScript$;
1468
+ exports.NodeLifecycleStages$ = NodeLifecycleStages$;
1469
+ exports.OnError = OnError;
1399
1470
  exports.PCS = PCS;
1400
1471
  exports.PCSClient = PCSClient;
1401
1472
  exports.PCSServiceException = PCSServiceException;
@@ -1417,6 +1488,8 @@ exports.ScalingConfigurationRequest$ = ScalingConfigurationRequest$;
1417
1488
  exports.Scheduler$ = Scheduler$;
1418
1489
  exports.SchedulerRequest$ = SchedulerRequest$;
1419
1490
  exports.SchedulerType = SchedulerType;
1491
+ exports.ScriptCachingPolicy = ScriptCachingPolicy;
1492
+ exports.ScriptSource$ = ScriptSource$;
1420
1493
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1421
1494
  exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1422
1495
  exports.Size = Size;
@@ -1449,6 +1522,7 @@ exports.UpdateComputeNodeGroupCommand = UpdateComputeNodeGroupCommand;
1449
1522
  exports.UpdateComputeNodeGroupRequest$ = UpdateComputeNodeGroupRequest$;
1450
1523
  exports.UpdateComputeNodeGroupResponse$ = UpdateComputeNodeGroupResponse$;
1451
1524
  exports.UpdateComputeNodeGroupSlurmConfigurationRequest$ = UpdateComputeNodeGroupSlurmConfigurationRequest$;
1525
+ exports.UpdateNodeLifecycleActionsRequest$ = UpdateNodeLifecycleActionsRequest$;
1452
1526
  exports.UpdateQueue$ = UpdateQueue$;
1453
1527
  exports.UpdateQueueCommand = UpdateQueueCommand;
1454
1528
  exports.UpdateQueueRequest$ = UpdateQueueRequest$;
@@ -2,6 +2,19 @@ export const AccountingMode = {
2
2
  NONE: "NONE",
3
3
  STANDARD: "STANDARD",
4
4
  };
5
+ export const ScriptCachingPolicy = {
6
+ CACHE_ONCE: "CACHE_ONCE",
7
+ REFRESH_ON_REBOOT: "REFRESH_ON_REBOOT",
8
+ };
9
+ export const ExecutionPolicy = {
10
+ EVERY_BOOT: "EVERY_BOOT",
11
+ FIRST_BOOT_ONLY: "FIRST_BOOT_ONLY",
12
+ };
13
+ export const OnError = {
14
+ CONTINUE: "CONTINUE",
15
+ STOP_SEQUENCE: "STOP_SEQUENCE",
16
+ TERMINATE: "TERMINATE",
17
+ };
5
18
  export const PurchaseOption = {
6
19
  CAPACITY_BLOCK: "CAPACITY_BLOCK",
7
20
  INTERRUPTIBLE_CAPACITY_RESERVATION: "INTERRUPTIBLE_CAPACITY_RESERVATION",
@@ -66,6 +66,11 @@ const _LTFR = "ListTagsForResource";
66
66
  const _LTFRR = "ListTagsForResourceRequest";
67
67
  const _LTFRRi = "ListTagsForResourceResponse";
68
68
  const _N = "Networking";
69
+ const _NLA = "NodeLifecycleActions";
70
+ const _NLAR = "NodeLifecycleActionsRequest";
71
+ const _NLS = "NodeLifecycleScript";
72
+ const _NLSL = "NodeLifecycleScriptList";
73
+ const _NLSo = "NodeLifecycleStages";
69
74
  const _NR = "NetworkingRequest";
70
75
  const _Q = "Queue";
71
76
  const _QL = "QueueList";
@@ -91,6 +96,7 @@ const _SR = "SchedulerRequest";
91
96
  const _SRR = "SlurmRestRequest";
92
97
  const _SRl = "SlurmRest";
93
98
  const _SS = "SharedSecret";
99
+ const _SSc = "ScriptSource";
94
100
  const _TE = "ThrottlingException";
95
101
  const _TR = "TagResource";
96
102
  const _TRR = "TagResourceRequest";
@@ -104,6 +110,7 @@ const _UCNGSCR = "UpdateComputeNodeGroupSlurmConfigurationRequest";
104
110
  const _UCR = "UpdateClusterRequest";
105
111
  const _UCRp = "UpdateClusterResponse";
106
112
  const _UCSCR = "UpdateClusterSlurmConfigurationRequest";
113
+ const _UNLAR = "UpdateNodeLifecycleActionsRequest";
107
114
  const _UQ = "UpdateQueue";
108
115
  const _UQR = "UpdateQueueRequest";
109
116
  const _UQRp = "UpdateQueueResponse";
@@ -121,6 +128,7 @@ const _aI = "amiId";
121
128
  const _aK = "authKey";
122
129
  const _aS = "allocationStrategy";
123
130
  const _ac = "accounting";
131
+ const _ar = "arguments";
124
132
  const _bI = "bootstrapId";
125
133
  const _c = "client";
126
134
  const _cA = "createdAt";
@@ -136,12 +144,14 @@ const _cNGIo = "computeNodeGroupIdentifier";
136
144
  const _cNGN = "computeNodeGroupName";
137
145
  const _cNGo = "computeNodeGroups";
138
146
  const _cT = "clientToken";
147
+ const _ch = "checksum";
139
148
  const _cl = "cluster";
140
149
  const _clu = "clusters";
141
150
  const _co = "code";
142
151
  const _dPTID = "defaultPurgeTimeInDays";
143
152
  const _e = "error";
144
153
  const _eI = "errorInfo";
154
+ const _eP = "executionPolicy";
145
155
  const _en = "endpoints";
146
156
  const _fL = "fieldList";
147
157
  const _hE = "httpError";
@@ -161,10 +171,14 @@ const _mICa = "maxInstanceCount";
161
171
  const _mR = "maxResults";
162
172
  const _mo = "mode";
163
173
  const _n = "name";
174
+ const _nB = "nodeBootstrapped";
164
175
  const _nID = "nodeID";
176
+ const _nLA = "nodeLifecycleActions";
177
+ const _nR = "nodeReady";
165
178
  const _nT = "nextToken";
166
179
  const _nTe = "networkType";
167
180
  const _ne = "networking";
181
+ const _oE = "onError";
168
182
  const _p = "port";
169
183
  const _pIA = "privateIpAddress";
170
184
  const _pIAu = "publicIpAddress";
@@ -184,6 +198,7 @@ const _rT = "resourceType";
184
198
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pcs";
185
199
  const _sA = "secretArn";
186
200
  const _sC = "serviceCode";
201
+ const _sCP = "scriptCachingPolicy";
187
202
  const _sCS = "slurmCustomSettings";
188
203
  const _sCSl = "slurmdbdCustomSettings";
189
204
  const _sCc = "scalingConfiguration";
@@ -191,14 +206,18 @@ const _sCl = "slurmConfiguration";
191
206
  const _sDITIS = "scaleDownIdleTimeInSeconds";
192
207
  const _sGI = "securityGroupIds";
193
208
  const _sI = "subnetIds";
209
+ const _sL = "scriptLocation";
194
210
  const _sO = "spotOptions";
195
211
  const _sR = "slurmRest";
196
- const _sS = "sharedSecret";
212
+ const _sS = "scriptSource";
213
+ const _sSh = "sharedSecret";
197
214
  const _sV = "secretVersion";
215
+ const _sVI = "s3VersionId";
198
216
  const _sc = "scheduler";
199
217
  const _se = "server";
200
218
  const _si = "size";
201
219
  const _st = "status";
220
+ const _sta = "stages";
202
221
  const _t = "tags";
203
222
  const _tK = "tagKeys";
204
223
  const _ty = "type";
@@ -295,8 +314,8 @@ export var ClusterSummary$ = [3, n0, _CS,
295
314
  ];
296
315
  export var ComputeNodeGroup$ = [3, n0, _CNG,
297
316
  0,
298
- [_n, _i, _a, _cI, _cA, _mA, _st, _sI, _cLT, _iIPA, _sCc, _iC, _aI, _pO, _sO, _sCl, _eI],
299
- [0, 0, 0, 0, 5, 5, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => ScalingConfiguration$, () => InstanceList, 0, 0, () => SpotOptions$, () => ComputeNodeGroupSlurmConfiguration$, () => ErrorInfoList], 12
317
+ [_n, _i, _a, _cI, _cA, _mA, _st, _sI, _cLT, _iIPA, _sCc, _iC, _aI, _pO, _sO, _sCl, _nLA, _eI],
318
+ [0, 0, 0, 0, 5, 5, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => ScalingConfiguration$, () => InstanceList, 0, 0, () => SpotOptions$, () => ComputeNodeGroupSlurmConfiguration$, () => NodeLifecycleActions$, () => ErrorInfoList], 12
300
319
  ];
301
320
  export var ComputeNodeGroupConfiguration$ = [3, n0, _CNGC,
302
321
  0,
@@ -330,8 +349,8 @@ export var CreateClusterResponse$ = [3, n0, _CCRr,
330
349
  ];
331
350
  export var CreateComputeNodeGroupRequest$ = [3, n0, _CCNGR,
332
351
  0,
333
- [_cIl, _cNGN, _sI, _cLT, _iIPA, _sCc, _iC, _aI, _pO, _sO, _sCl, _cT, _t],
334
- [0, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => ScalingConfigurationRequest$, () => InstanceList, 0, 0, () => SpotOptions$, () => ComputeNodeGroupSlurmConfigurationRequest$, [0, 4], 128 | 0], 7
352
+ [_cIl, _cNGN, _sI, _cLT, _iIPA, _sCc, _iC, _aI, _pO, _sO, _sCl, _nLA, _cT, _t],
353
+ [0, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => ScalingConfigurationRequest$, () => InstanceList, 0, 0, () => SpotOptions$, () => ComputeNodeGroupSlurmConfigurationRequest$, () => NodeLifecycleActionsRequest$, [0, 4], 128 | 0], 7
335
354
  ];
336
355
  export var CreateComputeNodeGroupResponse$ = [3, n0, _CCNGRr,
337
356
  0,
@@ -488,6 +507,26 @@ export var NetworkingRequest$ = [3, n0, _NR,
488
507
  [_sI, _sGI, _nTe],
489
508
  [64 | 0, 64 | 0, 0]
490
509
  ];
510
+ export var NodeLifecycleActions$ = [3, n0, _NLA,
511
+ 0,
512
+ [_sta, _sCP],
513
+ [() => NodeLifecycleStages$, 0], 1
514
+ ];
515
+ export var NodeLifecycleActionsRequest$ = [3, n0, _NLAR,
516
+ 0,
517
+ [_sta, _sCP],
518
+ [() => NodeLifecycleStages$, 0], 1
519
+ ];
520
+ export var NodeLifecycleScript$ = [3, n0, _NLS,
521
+ 0,
522
+ [_n, _sS, _ar, _oE, _eP],
523
+ [0, () => ScriptSource$, 64 | 0, 0, 0], 2
524
+ ];
525
+ export var NodeLifecycleStages$ = [3, n0, _NLSo,
526
+ 0,
527
+ [_nB, _nR],
528
+ [() => NodeLifecycleScriptList, () => NodeLifecycleScriptList]
529
+ ];
491
530
  export var Queue$ = [3, n0, _Q,
492
531
  0,
493
532
  [_n, _i, _a, _cI, _cA, _mA, _st, _cNGC, _sCl, _eI],
@@ -515,8 +554,8 @@ export var RegisterComputeNodeGroupInstanceRequest$ = [3, n0, _RCNGIR,
515
554
  ];
516
555
  export var RegisterComputeNodeGroupInstanceResponse$ = [3, n0, _RCNGIRe,
517
556
  0,
518
- [_nID, _sS, _en],
519
- [0, [() => SharedSecret, 0], () => Endpoints], 3
557
+ [_nID, _sSh, _en, _cN, _cNGI, _cNGN, _nLA],
558
+ [0, [() => SharedSecret, 0], () => Endpoints, 0, 0, 0, () => NodeLifecycleActions$], 3
520
559
  ];
521
560
  export var ScalingConfiguration$ = [3, n0, _SC,
522
561
  0,
@@ -538,6 +577,11 @@ export var SchedulerRequest$ = [3, n0, _SR,
538
577
  [_ty, _v],
539
578
  [0, 0], 2
540
579
  ];
580
+ export var ScriptSource$ = [3, n0, _SSc,
581
+ 0,
582
+ [_sL, _sVI, _ch],
583
+ [0, 0, 0], 1
584
+ ];
541
585
  export var SlurmAuthKey$ = [3, n0, _SAK,
542
586
  0,
543
587
  [_sA, _sV],
@@ -610,8 +654,8 @@ export var UpdateClusterSlurmConfigurationRequest$ = [3, n0, _UCSCR,
610
654
  ];
611
655
  export var UpdateComputeNodeGroupRequest$ = [3, n0, _UCNGR,
612
656
  0,
613
- [_cIl, _cNGIo, _aI, _sI, _cLT, _pO, _sO, _sCc, _iIPA, _sCl, _cT],
614
- [0, 0, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => SpotOptions$, () => ScalingConfigurationRequest$, 0, () => UpdateComputeNodeGroupSlurmConfigurationRequest$, [0, 4]], 2
657
+ [_cIl, _cNGIo, _aI, _sI, _cLT, _pO, _sO, _sCc, _iIPA, _sCl, _nLA, _cT],
658
+ [0, 0, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => SpotOptions$, () => ScalingConfigurationRequest$, 0, () => UpdateComputeNodeGroupSlurmConfigurationRequest$, () => UpdateNodeLifecycleActionsRequest$, [0, 4]], 2
615
659
  ];
616
660
  export var UpdateComputeNodeGroupResponse$ = [3, n0, _UCNGRp,
617
661
  0,
@@ -623,6 +667,11 @@ export var UpdateComputeNodeGroupSlurmConfigurationRequest$ = [3, n0, _UCNGSCR,
623
667
  [_sDITIS, _sCS],
624
668
  [1, () => SlurmCustomSettings]
625
669
  ];
670
+ export var UpdateNodeLifecycleActionsRequest$ = [3, n0, _UNLAR,
671
+ 0,
672
+ [_sta, _sCP],
673
+ [() => NodeLifecycleStages$, 0], 1
674
+ ];
626
675
  export var UpdateQueueRequest$ = [3, n0, _UQR,
627
676
  0,
628
677
  [_cIl, _qI, _cNGC, _sCl, _cT],
@@ -674,6 +723,10 @@ var ErrorInfoList = [1, n0, _EIL,
674
723
  var InstanceList = [1, n0, _IL,
675
724
  0, () => InstanceConfig$
676
725
  ];
726
+ var NodeLifecycleScriptArguments = 64 | 0;
727
+ var NodeLifecycleScriptList = [1, n0, _NLSL,
728
+ 0, () => NodeLifecycleScript$
729
+ ];
677
730
  var QueueList = [1, n0, _QL,
678
731
  0, () => QueueSummary$
679
732
  ];
@@ -67,6 +67,41 @@ declare const CreateComputeNodeGroupCommand_base: {
67
67
  * },
68
68
  * ],
69
69
  * },
70
+ * nodeLifecycleActions: { // NodeLifecycleActionsRequest
71
+ * stages: { // NodeLifecycleStages
72
+ * nodeBootstrapped: [ // NodeLifecycleScriptList
73
+ * { // NodeLifecycleScript
74
+ * name: "STRING_VALUE", // required
75
+ * scriptSource: { // ScriptSource
76
+ * scriptLocation: "STRING_VALUE", // required
77
+ * s3VersionId: "STRING_VALUE",
78
+ * checksum: "STRING_VALUE",
79
+ * },
80
+ * arguments: [ // NodeLifecycleScriptArguments
81
+ * "STRING_VALUE",
82
+ * ],
83
+ * onError: "TERMINATE" || "STOP_SEQUENCE" || "CONTINUE",
84
+ * executionPolicy: "FIRST_BOOT_ONLY" || "EVERY_BOOT",
85
+ * },
86
+ * ],
87
+ * nodeReady: [
88
+ * {
89
+ * name: "STRING_VALUE", // required
90
+ * scriptSource: {
91
+ * scriptLocation: "STRING_VALUE", // required
92
+ * s3VersionId: "STRING_VALUE",
93
+ * checksum: "STRING_VALUE",
94
+ * },
95
+ * arguments: [
96
+ * "STRING_VALUE",
97
+ * ],
98
+ * onError: "TERMINATE" || "STOP_SEQUENCE" || "CONTINUE",
99
+ * executionPolicy: "FIRST_BOOT_ONLY" || "EVERY_BOOT",
100
+ * },
101
+ * ],
102
+ * },
103
+ * scriptCachingPolicy: "CACHE_ONCE" || "REFRESH_ON_REBOOT",
104
+ * },
70
105
  * clientToken: "STRING_VALUE",
71
106
  * tags: { // RequestTagMap
72
107
  * "<keys>": "STRING_VALUE",
@@ -114,6 +149,41 @@ declare const CreateComputeNodeGroupCommand_base: {
114
149
  * // },
115
150
  * // ],
116
151
  * // },
152
+ * // nodeLifecycleActions: { // NodeLifecycleActions
153
+ * // stages: { // NodeLifecycleStages
154
+ * // nodeBootstrapped: [ // NodeLifecycleScriptList
155
+ * // { // NodeLifecycleScript
156
+ * // name: "STRING_VALUE", // required
157
+ * // scriptSource: { // ScriptSource
158
+ * // scriptLocation: "STRING_VALUE", // required
159
+ * // s3VersionId: "STRING_VALUE",
160
+ * // checksum: "STRING_VALUE",
161
+ * // },
162
+ * // arguments: [ // NodeLifecycleScriptArguments
163
+ * // "STRING_VALUE",
164
+ * // ],
165
+ * // onError: "TERMINATE" || "STOP_SEQUENCE" || "CONTINUE",
166
+ * // executionPolicy: "FIRST_BOOT_ONLY" || "EVERY_BOOT",
167
+ * // },
168
+ * // ],
169
+ * // nodeReady: [
170
+ * // {
171
+ * // name: "STRING_VALUE", // required
172
+ * // scriptSource: {
173
+ * // scriptLocation: "STRING_VALUE", // required
174
+ * // s3VersionId: "STRING_VALUE",
175
+ * // checksum: "STRING_VALUE",
176
+ * // },
177
+ * // arguments: [
178
+ * // "STRING_VALUE",
179
+ * // ],
180
+ * // onError: "TERMINATE" || "STOP_SEQUENCE" || "CONTINUE",
181
+ * // executionPolicy: "FIRST_BOOT_ONLY" || "EVERY_BOOT",
182
+ * // },
183
+ * // ],
184
+ * // },
185
+ * // scriptCachingPolicy: "CACHE_ONCE" || "REFRESH_ON_REBOOT",
186
+ * // },
117
187
  * // errorInfo: [ // ErrorInfoList
118
188
  * // { // ErrorInfo
119
189
  * // code: "STRING_VALUE",
@@ -79,6 +79,41 @@ declare const GetComputeNodeGroupCommand_base: {
79
79
  * // },
80
80
  * // ],
81
81
  * // },
82
+ * // nodeLifecycleActions: { // NodeLifecycleActions
83
+ * // stages: { // NodeLifecycleStages
84
+ * // nodeBootstrapped: [ // NodeLifecycleScriptList
85
+ * // { // NodeLifecycleScript
86
+ * // name: "STRING_VALUE", // required
87
+ * // scriptSource: { // ScriptSource
88
+ * // scriptLocation: "STRING_VALUE", // required
89
+ * // s3VersionId: "STRING_VALUE",
90
+ * // checksum: "STRING_VALUE",
91
+ * // },
92
+ * // arguments: [ // NodeLifecycleScriptArguments
93
+ * // "STRING_VALUE",
94
+ * // ],
95
+ * // onError: "TERMINATE" || "STOP_SEQUENCE" || "CONTINUE",
96
+ * // executionPolicy: "FIRST_BOOT_ONLY" || "EVERY_BOOT",
97
+ * // },
98
+ * // ],
99
+ * // nodeReady: [
100
+ * // {
101
+ * // name: "STRING_VALUE", // required
102
+ * // scriptSource: {
103
+ * // scriptLocation: "STRING_VALUE", // required
104
+ * // s3VersionId: "STRING_VALUE",
105
+ * // checksum: "STRING_VALUE",
106
+ * // },
107
+ * // arguments: [
108
+ * // "STRING_VALUE",
109
+ * // ],
110
+ * // onError: "TERMINATE" || "STOP_SEQUENCE" || "CONTINUE",
111
+ * // executionPolicy: "FIRST_BOOT_ONLY" || "EVERY_BOOT",
112
+ * // },
113
+ * // ],
114
+ * // },
115
+ * // scriptCachingPolicy: "CACHE_ONCE" || "REFRESH_ON_REBOOT",
116
+ * // },
82
117
  * // errorInfo: [ // ErrorInfoList
83
118
  * // { // ErrorInfo
84
119
  * // code: "STRING_VALUE",
@@ -51,6 +51,44 @@ declare const RegisterComputeNodeGroupInstanceCommand_base: {
51
51
  * // port: "STRING_VALUE", // required
52
52
  * // },
53
53
  * // ],
54
+ * // clusterName: "STRING_VALUE",
55
+ * // computeNodeGroupId: "STRING_VALUE",
56
+ * // computeNodeGroupName: "STRING_VALUE",
57
+ * // nodeLifecycleActions: { // NodeLifecycleActions
58
+ * // stages: { // NodeLifecycleStages
59
+ * // nodeBootstrapped: [ // NodeLifecycleScriptList
60
+ * // { // NodeLifecycleScript
61
+ * // name: "STRING_VALUE", // required
62
+ * // scriptSource: { // ScriptSource
63
+ * // scriptLocation: "STRING_VALUE", // required
64
+ * // s3VersionId: "STRING_VALUE",
65
+ * // checksum: "STRING_VALUE",
66
+ * // },
67
+ * // arguments: [ // NodeLifecycleScriptArguments
68
+ * // "STRING_VALUE",
69
+ * // ],
70
+ * // onError: "TERMINATE" || "STOP_SEQUENCE" || "CONTINUE",
71
+ * // executionPolicy: "FIRST_BOOT_ONLY" || "EVERY_BOOT",
72
+ * // },
73
+ * // ],
74
+ * // nodeReady: [
75
+ * // {
76
+ * // name: "STRING_VALUE", // required
77
+ * // scriptSource: {
78
+ * // scriptLocation: "STRING_VALUE", // required
79
+ * // s3VersionId: "STRING_VALUE",
80
+ * // checksum: "STRING_VALUE",
81
+ * // },
82
+ * // arguments: [
83
+ * // "STRING_VALUE",
84
+ * // ],
85
+ * // onError: "TERMINATE" || "STOP_SEQUENCE" || "CONTINUE",
86
+ * // executionPolicy: "FIRST_BOOT_ONLY" || "EVERY_BOOT",
87
+ * // },
88
+ * // ],
89
+ * // },
90
+ * // scriptCachingPolicy: "CACHE_ONCE" || "REFRESH_ON_REBOOT",
91
+ * // },
54
92
  * // };
55
93
  *
56
94
  * ```
@@ -24,7 +24,7 @@ declare const UpdateClusterCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * <p>Updates a cluster configuration. You can upgrade the Slurm version, modify scheduler settings, and update accounting configuration for an existing cluster. For more information about upgrading the Slurm version, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/working-with_clusters_upgrade.html">Upgrading the Slurm version on a cluster</a> in the <i>PCS User Guide</i>. </p> <note> <p>You can only update clusters that are in <code>ACTIVE</code>, <code>UPDATE_FAILED</code>, or <code>SUSPENDED</code> state. All associated resources (queues and compute node groups) must be in <code>ACTIVE</code> state before you can update the cluster.</p> </note>
27
+ * <p>Updates a cluster configuration. You can update the scheduler version, modify scheduler settings, and update accounting configuration for an existing cluster. For more information about updating the scheduler version, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/working-with_clusters_version_update.html">Updating the scheduler version on a cluster</a> in the <i>PCS User Guide</i>. </p> <note> <p>You can only update clusters that are in <code>ACTIVE</code>, <code>UPDATE_FAILED</code>, or <code>SUSPENDED</code> state. All associated resources (queues and compute node groups) must be in <code>ACTIVE</code> state before you can update the cluster.</p> </note>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -62,6 +62,41 @@ declare const UpdateComputeNodeGroupCommand_base: {
62
62
  * },
63
63
  * ],
64
64
  * },
65
+ * nodeLifecycleActions: { // UpdateNodeLifecycleActionsRequest
66
+ * stages: { // NodeLifecycleStages
67
+ * nodeBootstrapped: [ // NodeLifecycleScriptList
68
+ * { // NodeLifecycleScript
69
+ * name: "STRING_VALUE", // required
70
+ * scriptSource: { // ScriptSource
71
+ * scriptLocation: "STRING_VALUE", // required
72
+ * s3VersionId: "STRING_VALUE",
73
+ * checksum: "STRING_VALUE",
74
+ * },
75
+ * arguments: [ // NodeLifecycleScriptArguments
76
+ * "STRING_VALUE",
77
+ * ],
78
+ * onError: "TERMINATE" || "STOP_SEQUENCE" || "CONTINUE",
79
+ * executionPolicy: "FIRST_BOOT_ONLY" || "EVERY_BOOT",
80
+ * },
81
+ * ],
82
+ * nodeReady: [
83
+ * {
84
+ * name: "STRING_VALUE", // required
85
+ * scriptSource: {
86
+ * scriptLocation: "STRING_VALUE", // required
87
+ * s3VersionId: "STRING_VALUE",
88
+ * checksum: "STRING_VALUE",
89
+ * },
90
+ * arguments: [
91
+ * "STRING_VALUE",
92
+ * ],
93
+ * onError: "TERMINATE" || "STOP_SEQUENCE" || "CONTINUE",
94
+ * executionPolicy: "FIRST_BOOT_ONLY" || "EVERY_BOOT",
95
+ * },
96
+ * ],
97
+ * },
98
+ * scriptCachingPolicy: "CACHE_ONCE" || "REFRESH_ON_REBOOT",
99
+ * },
65
100
  * clientToken: "STRING_VALUE",
66
101
  * };
67
102
  * const command = new UpdateComputeNodeGroupCommand(input);
@@ -106,6 +141,41 @@ declare const UpdateComputeNodeGroupCommand_base: {
106
141
  * // },
107
142
  * // ],
108
143
  * // },
144
+ * // nodeLifecycleActions: { // NodeLifecycleActions
145
+ * // stages: { // NodeLifecycleStages
146
+ * // nodeBootstrapped: [ // NodeLifecycleScriptList
147
+ * // { // NodeLifecycleScript
148
+ * // name: "STRING_VALUE", // required
149
+ * // scriptSource: { // ScriptSource
150
+ * // scriptLocation: "STRING_VALUE", // required
151
+ * // s3VersionId: "STRING_VALUE",
152
+ * // checksum: "STRING_VALUE",
153
+ * // },
154
+ * // arguments: [ // NodeLifecycleScriptArguments
155
+ * // "STRING_VALUE",
156
+ * // ],
157
+ * // onError: "TERMINATE" || "STOP_SEQUENCE" || "CONTINUE",
158
+ * // executionPolicy: "FIRST_BOOT_ONLY" || "EVERY_BOOT",
159
+ * // },
160
+ * // ],
161
+ * // nodeReady: [
162
+ * // {
163
+ * // name: "STRING_VALUE", // required
164
+ * // scriptSource: {
165
+ * // scriptLocation: "STRING_VALUE", // required
166
+ * // s3VersionId: "STRING_VALUE",
167
+ * // checksum: "STRING_VALUE",
168
+ * // },
169
+ * // arguments: [
170
+ * // "STRING_VALUE",
171
+ * // ],
172
+ * // onError: "TERMINATE" || "STOP_SEQUENCE" || "CONTINUE",
173
+ * // executionPolicy: "FIRST_BOOT_ONLY" || "EVERY_BOOT",
174
+ * // },
175
+ * // ],
176
+ * // },
177
+ * // scriptCachingPolicy: "CACHE_ONCE" || "REFRESH_ON_REBOOT",
178
+ * // },
109
179
  * // errorInfo: [ // ErrorInfoList
110
180
  * // { // ErrorInfo
111
181
  * // code: "STRING_VALUE",
@@ -10,6 +10,43 @@ export declare const AccountingMode: {
10
10
  * @public
11
11
  */
12
12
  export type AccountingMode = (typeof AccountingMode)[keyof typeof AccountingMode];
13
+ /**
14
+ * @public
15
+ * @enum
16
+ */
17
+ export declare const ScriptCachingPolicy: {
18
+ readonly CACHE_ONCE: "CACHE_ONCE";
19
+ readonly REFRESH_ON_REBOOT: "REFRESH_ON_REBOOT";
20
+ };
21
+ /**
22
+ * @public
23
+ */
24
+ export type ScriptCachingPolicy = (typeof ScriptCachingPolicy)[keyof typeof ScriptCachingPolicy];
25
+ /**
26
+ * @public
27
+ * @enum
28
+ */
29
+ export declare const ExecutionPolicy: {
30
+ readonly EVERY_BOOT: "EVERY_BOOT";
31
+ readonly FIRST_BOOT_ONLY: "FIRST_BOOT_ONLY";
32
+ };
33
+ /**
34
+ * @public
35
+ */
36
+ export type ExecutionPolicy = (typeof ExecutionPolicy)[keyof typeof ExecutionPolicy];
37
+ /**
38
+ * @public
39
+ * @enum
40
+ */
41
+ export declare const OnError: {
42
+ readonly CONTINUE: "CONTINUE";
43
+ readonly STOP_SEQUENCE: "STOP_SEQUENCE";
44
+ readonly TERMINATE: "TERMINATE";
45
+ };
46
+ /**
47
+ * @public
48
+ */
49
+ export type OnError = (typeof OnError)[keyof typeof OnError];
13
50
  /**
14
51
  * @public
15
52
  * @enum
@@ -1,4 +1,4 @@
1
- import type { AccountingMode, ClusterStatus, ComputeNodeGroupStatus, EndpointType, NetworkType, PurchaseOption, QueueStatus, SchedulerType, Size, SlurmRestMode, SpotAllocationStrategy } from "./enums";
1
+ import type { AccountingMode, ClusterStatus, ComputeNodeGroupStatus, EndpointType, ExecutionPolicy, NetworkType, OnError, PurchaseOption, QueueStatus, SchedulerType, ScriptCachingPolicy, Size, SlurmRestMode, SpotAllocationStrategy } from "./enums";
2
2
  /**
3
3
  * <p>The accounting configuration includes configurable settings for Slurm accounting. It's a property of the <b>ClusterSlurmConfiguration</b> object.</p>
4
4
  * @public
@@ -58,6 +58,90 @@ export interface InstanceConfig {
58
58
  */
59
59
  instanceType?: string | undefined;
60
60
  }
61
+ /**
62
+ * <p>The source location and integrity information for a node lifecycle script.</p>
63
+ * @public
64
+ */
65
+ export interface ScriptSource {
66
+ /**
67
+ * <p>The location of the script. Specify either an Amazon S3 URI in the format <code>s3://bucket-name/key</code> or an HTTPS URL.</p>
68
+ * @public
69
+ */
70
+ scriptLocation: string | undefined;
71
+ /**
72
+ * <p>The Amazon S3 version ID of the script. Use this value to pin the script to a specific version in a versioned Amazon S3 bucket. This value is only valid when <code>scriptLocation</code> is an Amazon S3 URI.</p>
73
+ * @public
74
+ */
75
+ s3VersionId?: string | undefined;
76
+ /**
77
+ * <p>The SHA-256 checksum of the script content, as a 64-character hexadecimal string. This value is optional. When specified, PCS uses this value to verify the integrity of the downloaded script.</p>
78
+ * @public
79
+ */
80
+ checksum?: string | undefined;
81
+ }
82
+ /**
83
+ * <p>A script to run during a compute node lifecycle stage.</p>
84
+ * @public
85
+ */
86
+ export interface NodeLifecycleScript {
87
+ /**
88
+ * <p>A unique name for the script. The name can be up to 64 characters long. Valid characters are letters, numbers, spaces, underscores (<code>_</code>), and hyphens (<code>-</code>). The first character must be a letter or a number.</p>
89
+ * @public
90
+ */
91
+ name: string | undefined;
92
+ /**
93
+ * <p>The source location and integrity information for the script.</p>
94
+ * @public
95
+ */
96
+ scriptSource: ScriptSource | undefined;
97
+ /**
98
+ * <p>The command-line arguments to pass to the script. You can specify up to 20 arguments, and each argument can be up to 256 characters long.</p>
99
+ * @public
100
+ */
101
+ arguments?: string[] | undefined;
102
+ /**
103
+ * <p>The behavior when the script fails. The default value is <code>TERMINATE</code>. Valid values:</p> <ul> <li> <p> <code>TERMINATE</code> – Terminates the compute node.</p> </li> <li> <p> <code>STOP_SEQUENCE</code> – Stops running subsequent scripts in the sequence but doesn't terminate the compute node.</p> </li> <li> <p> <code>CONTINUE</code> – Ignores the error and continues running the next script.</p> </li> </ul>
104
+ * @public
105
+ */
106
+ onError?: OnError | undefined;
107
+ /**
108
+ * <p>The policy that determines when the script runs. The default value is <code>FIRST_BOOT_ONLY</code>. Valid values:</p> <ul> <li> <p> <code>FIRST_BOOT_ONLY</code> – Runs the script only the first time the compute node boots.</p> </li> <li> <p> <code>EVERY_BOOT</code> – Runs the script every time the compute node boots, including reboots.</p> </li> </ul>
109
+ * @public
110
+ */
111
+ executionPolicy?: ExecutionPolicy | undefined;
112
+ }
113
+ /**
114
+ * <p>The stages of a compute node's lifecycle where you can configure scripts to run.</p>
115
+ * @public
116
+ */
117
+ export interface NodeLifecycleStages {
118
+ /**
119
+ * <p>The scripts to run after PCS finishes setting up the compute node and before the Slurm daemon (<code>slurmd</code>) starts. Use this stage for tasks that must complete before the node accepts jobs, such as mounting shared storage, configuring networking, or installing software packages.</p>
120
+ * @public
121
+ */
122
+ nodeBootstrapped?: NodeLifecycleScript[] | undefined;
123
+ /**
124
+ * <p>The scripts to run after the Slurm daemon (<code>slurmd</code>) starts and the compute node registers with the Slurm controller. Use this stage for tasks that require Slurm to be running, such as running Slurm commands.</p>
125
+ * @public
126
+ */
127
+ nodeReady?: NodeLifecycleScript[] | undefined;
128
+ }
129
+ /**
130
+ * <p>The lifecycle actions to configure on a compute node group when you create it. Lifecycle actions define scripts that PCS runs on compute nodes at specific stages of their lifecycle.</p>
131
+ * @public
132
+ */
133
+ export interface NodeLifecycleActionsRequest {
134
+ /**
135
+ * <p>The lifecycle stages where you configure scripts to run.</p>
136
+ * @public
137
+ */
138
+ stages: NodeLifecycleStages | undefined;
139
+ /**
140
+ * <p>The caching policy for node lifecycle scripts. The default value is <code>CACHE_ONCE</code>. Valid values:</p> <ul> <li> <p> <code>CACHE_ONCE</code> – Downloads each script once and reuses it on subsequent boots.</p> </li> <li> <p> <code>REFRESH_ON_REBOOT</code> – Downloads each script on every boot.</p> </li> </ul>
141
+ * @public
142
+ */
143
+ scriptCachingPolicy?: ScriptCachingPolicy | undefined;
144
+ }
61
145
  /**
62
146
  * <p>Specifies the boundaries of the compute node group auto scaling.</p>
63
147
  * @public
@@ -176,6 +260,11 @@ export interface CreateComputeNodeGroupRequest {
176
260
  * @public
177
261
  */
178
262
  slurmConfiguration?: ComputeNodeGroupSlurmConfigurationRequest | undefined;
263
+ /**
264
+ * <p>The lifecycle actions to run on compute nodes in the compute node group. Use lifecycle actions to run custom scripts at defined stages of a compute node's lifecycle, such as when a compute node finishes bootstrapping or becomes ready to accept jobs.</p>
265
+ * @public
266
+ */
267
+ nodeLifecycleActions?: NodeLifecycleActionsRequest | undefined;
179
268
  /**
180
269
  * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.</p>
181
270
  * @public
@@ -203,6 +292,22 @@ export interface ErrorInfo {
203
292
  */
204
293
  message?: string | undefined;
205
294
  }
295
+ /**
296
+ * <p>The lifecycle actions configured on a compute node group. Lifecycle actions define scripts that PCS runs on compute nodes at specific stages of their lifecycle.</p>
297
+ * @public
298
+ */
299
+ export interface NodeLifecycleActions {
300
+ /**
301
+ * <p>The lifecycle stages where you configure scripts to run.</p>
302
+ * @public
303
+ */
304
+ stages: NodeLifecycleStages | undefined;
305
+ /**
306
+ * <p>The caching policy for node lifecycle scripts. The default value is <code>CACHE_ONCE</code>. Valid values:</p> <ul> <li> <p> <code>CACHE_ONCE</code> – Downloads each script once and reuses it on subsequent boots.</p> </li> <li> <p> <code>REFRESH_ON_REBOOT</code> – Downloads each script on every boot.</p> </li> </ul>
307
+ * @public
308
+ */
309
+ scriptCachingPolicy?: ScriptCachingPolicy | undefined;
310
+ }
206
311
  /**
207
312
  * <p>Specifies the boundaries of the compute node group auto scaling.</p>
208
313
  * @public
@@ -320,6 +425,11 @@ export interface ComputeNodeGroup {
320
425
  * @public
321
426
  */
322
427
  slurmConfiguration?: ComputeNodeGroupSlurmConfiguration | undefined;
428
+ /**
429
+ * <p>The lifecycle actions to run on compute nodes in the compute node group. Use lifecycle actions to run custom scripts at defined stages of a compute node's lifecycle, such as when a compute node finishes bootstrapping or becomes ready to accept jobs.</p>
430
+ * @public
431
+ */
432
+ nodeLifecycleActions?: NodeLifecycleActions | undefined;
323
433
  /**
324
434
  * <p>The list of errors that occurred during compute node group provisioning.</p>
325
435
  * @public
@@ -478,6 +588,22 @@ export interface ListComputeNodeGroupsResponse {
478
588
  */
479
589
  nextToken?: string | undefined;
480
590
  }
591
+ /**
592
+ * <p>The lifecycle actions to configure on a compute node group when you update it. Lifecycle actions define scripts that PCS runs on compute nodes at specific stages of their lifecycle.</p>
593
+ * @public
594
+ */
595
+ export interface UpdateNodeLifecycleActionsRequest {
596
+ /**
597
+ * <p>The lifecycle stages where you configure scripts to run.</p>
598
+ * @public
599
+ */
600
+ stages: NodeLifecycleStages | undefined;
601
+ /**
602
+ * <p>The caching policy for node lifecycle scripts. The default value is <code>CACHE_ONCE</code>. Valid values:</p> <ul> <li> <p> <code>CACHE_ONCE</code> – Downloads each script once and reuses it on subsequent boots.</p> </li> <li> <p> <code>REFRESH_ON_REBOOT</code> – Downloads each script on every boot.</p> </li> </ul>
603
+ * @public
604
+ */
605
+ scriptCachingPolicy?: ScriptCachingPolicy | undefined;
606
+ }
481
607
  /**
482
608
  * <p>Additional options related to the Slurm scheduler.</p>
483
609
  * @public
@@ -548,6 +674,11 @@ export interface UpdateComputeNodeGroupRequest {
548
674
  * @public
549
675
  */
550
676
  slurmConfiguration?: UpdateComputeNodeGroupSlurmConfigurationRequest | undefined;
677
+ /**
678
+ * <p>The lifecycle actions to run on compute nodes in the compute node group. Use lifecycle actions to run custom scripts at defined stages of a compute node's lifecycle, such as when a compute node finishes bootstrapping or becomes ready to accept jobs.</p>
679
+ * @public
680
+ */
681
+ nodeLifecycleActions?: UpdateNodeLifecycleActionsRequest | undefined;
551
682
  /**
552
683
  * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.</p>
553
684
  * @public
@@ -783,7 +914,7 @@ export interface Scheduler {
783
914
  */
784
915
  type: SchedulerType | undefined;
785
916
  /**
786
- * <p>The version of the specified scheduling software that PCS uses to manage cluster scaling and job scheduling. You can upgrade this version using the <code>UpdateCluster</code> API action. For more information, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/working-with_clusters_upgrade.html">Upgrading the Slurm version on a cluster</a> and <a href="https://docs.aws.amazon.com/pcs/latest/userguide/slurm-versions.html">Slurm versions in PCS</a> in the <i>PCS User Guide</i>.</p> <p>Valid Values: <code>23.11 | 24.05 | 24.11 | 25.05 | 25.11</code> </p>
917
+ * <p>The version of the specified scheduling software that PCS uses to manage cluster scaling and job scheduling. You can update this version using the <code>UpdateCluster</code> API action. For more information, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/working-with_clusters_version_update.html">Updating the scheduler version on a cluster</a> and <a href="https://docs.aws.amazon.com/pcs/latest/userguide/slurm-versions.html">Slurm versions in PCS</a> in the <i>PCS User Guide</i>.</p> <p>Valid Values: <code>23.11 | 24.05 | 24.11 | 25.05 | 25.11</code> </p>
787
918
  * @public
788
919
  */
789
920
  version: string | undefined;
@@ -1415,14 +1546,34 @@ export interface RegisterComputeNodeGroupInstanceResponse {
1415
1546
  * @public
1416
1547
  */
1417
1548
  endpoints: Endpoint[] | undefined;
1549
+ /**
1550
+ * <p>The name of the cluster that the compute node registered into.</p>
1551
+ * @public
1552
+ */
1553
+ clusterName?: string | undefined;
1554
+ /**
1555
+ * <p>The ID of the compute node group that the compute node registered into.</p>
1556
+ * @public
1557
+ */
1558
+ computeNodeGroupId?: string | undefined;
1559
+ /**
1560
+ * <p>The name of the compute node group that the compute node registered into.</p>
1561
+ * @public
1562
+ */
1563
+ computeNodeGroupName?: string | undefined;
1564
+ /**
1565
+ * <p>The node lifecycle actions configured for the node group, including scripts to run when a compute node finishes bootstrapping or becomes ready to accept jobs.</p>
1566
+ * @public
1567
+ */
1568
+ nodeLifecycleActions?: NodeLifecycleActions | undefined;
1418
1569
  }
1419
1570
  /**
1420
- * <p>The scheduler configuration for updating a cluster. Use this to specify the Slurm version to upgrade to.</p>
1571
+ * <p>The scheduler configuration for updating a cluster. Use this to specify the scheduler version to update to.</p>
1421
1572
  * @public
1422
1573
  */
1423
1574
  export interface UpdateSchedulerRequest {
1424
1575
  /**
1425
- * <p>The Slurm version to upgrade the cluster to. You can only upgrade to a newer version. For more information about supported versions and upgrade paths, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/working-with_clusters_upgrade.html">Upgrading the Slurm version on a cluster</a> in the <i>PCS User Guide</i>.</p> <p>Valid Values: <code>24.05 | 24.11 | 25.05 | 25.11</code> </p>
1576
+ * <p>The scheduler version to update the cluster to. You can only update to a newer version. For more information about supported versions and update paths, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/working-with_clusters_version_update.html">Updating the scheduler version on a cluster</a> in the <i>PCS User Guide</i>.</p> <p>Valid Values: <code>24.05 | 24.11 | 25.05 | 25.11</code> </p>
1426
1577
  * @public
1427
1578
  */
1428
1579
  version: string | undefined;
@@ -1510,7 +1661,7 @@ export interface UpdateClusterRequest {
1510
1661
  */
1511
1662
  slurmConfiguration?: UpdateClusterSlurmConfigurationRequest | undefined;
1512
1663
  /**
1513
- * <p>The scheduler configuration to update for the cluster. Use this to upgrade the Slurm version. For more information, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/working-with_clusters_upgrade.html">Upgrading the Slurm version on a cluster</a> in the <i>PCS User Guide</i>.</p>
1664
+ * <p>The scheduler configuration to update for the cluster. Use this to update the scheduler version. For more information, see <a href="https://docs.aws.amazon.com/pcs/latest/userguide/working-with_clusters_version_update.html">Updating the scheduler version on a cluster</a> in the <i>PCS User Guide</i>.</p>
1514
1665
  * @public
1515
1666
  */
1516
1667
  scheduler?: UpdateSchedulerRequest | undefined;
@@ -60,6 +60,10 @@ export declare var ListTagsForResourceRequest$: StaticStructureSchema;
60
60
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
61
61
  export declare var Networking$: StaticStructureSchema;
62
62
  export declare var NetworkingRequest$: StaticStructureSchema;
63
+ export declare var NodeLifecycleActions$: StaticStructureSchema;
64
+ export declare var NodeLifecycleActionsRequest$: StaticStructureSchema;
65
+ export declare var NodeLifecycleScript$: StaticStructureSchema;
66
+ export declare var NodeLifecycleStages$: StaticStructureSchema;
63
67
  export declare var Queue$: StaticStructureSchema;
64
68
  export declare var QueueSlurmConfiguration$: StaticStructureSchema;
65
69
  export declare var QueueSlurmConfigurationRequest$: StaticStructureSchema;
@@ -70,6 +74,7 @@ export declare var ScalingConfiguration$: StaticStructureSchema;
70
74
  export declare var ScalingConfigurationRequest$: StaticStructureSchema;
71
75
  export declare var Scheduler$: StaticStructureSchema;
72
76
  export declare var SchedulerRequest$: StaticStructureSchema;
77
+ export declare var ScriptSource$: StaticStructureSchema;
73
78
  export declare var SlurmAuthKey$: StaticStructureSchema;
74
79
  export declare var SlurmCustomSetting$: StaticStructureSchema;
75
80
  export declare var SlurmdbdCustomSetting$: StaticStructureSchema;
@@ -87,6 +92,7 @@ export declare var UpdateClusterSlurmConfigurationRequest$: StaticStructureSchem
87
92
  export declare var UpdateComputeNodeGroupRequest$: StaticStructureSchema;
88
93
  export declare var UpdateComputeNodeGroupResponse$: StaticStructureSchema;
89
94
  export declare var UpdateComputeNodeGroupSlurmConfigurationRequest$: StaticStructureSchema;
95
+ export declare var UpdateNodeLifecycleActionsRequest$: StaticStructureSchema;
90
96
  export declare var UpdateQueueRequest$: StaticStructureSchema;
91
97
  export declare var UpdateQueueResponse$: StaticStructureSchema;
92
98
  export declare var UpdateQueueSlurmConfigurationRequest$: StaticStructureSchema;
@@ -3,6 +3,22 @@ export declare const AccountingMode: {
3
3
  readonly STANDARD: "STANDARD";
4
4
  };
5
5
  export type AccountingMode = (typeof AccountingMode)[keyof typeof AccountingMode];
6
+ export declare const ScriptCachingPolicy: {
7
+ readonly CACHE_ONCE: "CACHE_ONCE";
8
+ readonly REFRESH_ON_REBOOT: "REFRESH_ON_REBOOT";
9
+ };
10
+ export type ScriptCachingPolicy = (typeof ScriptCachingPolicy)[keyof typeof ScriptCachingPolicy];
11
+ export declare const ExecutionPolicy: {
12
+ readonly EVERY_BOOT: "EVERY_BOOT";
13
+ readonly FIRST_BOOT_ONLY: "FIRST_BOOT_ONLY";
14
+ };
15
+ export type ExecutionPolicy = (typeof ExecutionPolicy)[keyof typeof ExecutionPolicy];
16
+ export declare const OnError: {
17
+ readonly CONTINUE: "CONTINUE";
18
+ readonly STOP_SEQUENCE: "STOP_SEQUENCE";
19
+ readonly TERMINATE: "TERMINATE";
20
+ };
21
+ export type OnError = (typeof OnError)[keyof typeof OnError];
6
22
  export declare const PurchaseOption: {
7
23
  readonly CAPACITY_BLOCK: "CAPACITY_BLOCK";
8
24
  readonly INTERRUPTIBLE_CAPACITY_RESERVATION: "INTERRUPTIBLE_CAPACITY_RESERVATION";
@@ -3,10 +3,13 @@ import {
3
3
  ClusterStatus,
4
4
  ComputeNodeGroupStatus,
5
5
  EndpointType,
6
+ ExecutionPolicy,
6
7
  NetworkType,
8
+ OnError,
7
9
  PurchaseOption,
8
10
  QueueStatus,
9
11
  SchedulerType,
12
+ ScriptCachingPolicy,
10
13
  Size,
11
14
  SlurmRestMode,
12
15
  SpotAllocationStrategy,
@@ -26,6 +29,26 @@ export interface CustomLaunchTemplate {
26
29
  export interface InstanceConfig {
27
30
  instanceType?: string | undefined;
28
31
  }
32
+ export interface ScriptSource {
33
+ scriptLocation: string | undefined;
34
+ s3VersionId?: string | undefined;
35
+ checksum?: string | undefined;
36
+ }
37
+ export interface NodeLifecycleScript {
38
+ name: string | undefined;
39
+ scriptSource: ScriptSource | undefined;
40
+ arguments?: string[] | undefined;
41
+ onError?: OnError | undefined;
42
+ executionPolicy?: ExecutionPolicy | undefined;
43
+ }
44
+ export interface NodeLifecycleStages {
45
+ nodeBootstrapped?: NodeLifecycleScript[] | undefined;
46
+ nodeReady?: NodeLifecycleScript[] | undefined;
47
+ }
48
+ export interface NodeLifecycleActionsRequest {
49
+ stages: NodeLifecycleStages | undefined;
50
+ scriptCachingPolicy?: ScriptCachingPolicy | undefined;
51
+ }
29
52
  export interface ScalingConfigurationRequest {
30
53
  minInstanceCount: number | undefined;
31
54
  maxInstanceCount: number | undefined;
@@ -53,6 +76,7 @@ export interface CreateComputeNodeGroupRequest {
53
76
  instanceConfigs: InstanceConfig[] | undefined;
54
77
  spotOptions?: SpotOptions | undefined;
55
78
  slurmConfiguration?: ComputeNodeGroupSlurmConfigurationRequest | undefined;
79
+ nodeLifecycleActions?: NodeLifecycleActionsRequest | undefined;
56
80
  clientToken?: string | undefined;
57
81
  tags?: Record<string, string> | undefined;
58
82
  }
@@ -60,6 +84,10 @@ export interface ErrorInfo {
60
84
  code?: string | undefined;
61
85
  message?: string | undefined;
62
86
  }
87
+ export interface NodeLifecycleActions {
88
+ stages: NodeLifecycleStages | undefined;
89
+ scriptCachingPolicy?: ScriptCachingPolicy | undefined;
90
+ }
63
91
  export interface ScalingConfiguration {
64
92
  minInstanceCount: number | undefined;
65
93
  maxInstanceCount: number | undefined;
@@ -85,6 +113,7 @@ export interface ComputeNodeGroup {
85
113
  instanceConfigs: InstanceConfig[] | undefined;
86
114
  spotOptions?: SpotOptions | undefined;
87
115
  slurmConfiguration?: ComputeNodeGroupSlurmConfiguration | undefined;
116
+ nodeLifecycleActions?: NodeLifecycleActions | undefined;
88
117
  errorInfo?: ErrorInfo[] | undefined;
89
118
  }
90
119
  export interface CreateComputeNodeGroupResponse {
@@ -125,6 +154,10 @@ export interface ListComputeNodeGroupsResponse {
125
154
  computeNodeGroups: ComputeNodeGroupSummary[] | undefined;
126
155
  nextToken?: string | undefined;
127
156
  }
157
+ export interface UpdateNodeLifecycleActionsRequest {
158
+ stages: NodeLifecycleStages | undefined;
159
+ scriptCachingPolicy?: ScriptCachingPolicy | undefined;
160
+ }
128
161
  export interface UpdateComputeNodeGroupSlurmConfigurationRequest {
129
162
  scaleDownIdleTimeInSeconds?: number | undefined;
130
163
  slurmCustomSettings?: SlurmCustomSetting[] | undefined;
@@ -140,6 +173,7 @@ export interface UpdateComputeNodeGroupRequest {
140
173
  scalingConfiguration?: ScalingConfigurationRequest | undefined;
141
174
  iamInstanceProfileArn?: string | undefined;
142
175
  slurmConfiguration?: UpdateComputeNodeGroupSlurmConfigurationRequest | undefined;
176
+ nodeLifecycleActions?: UpdateNodeLifecycleActionsRequest | undefined;
143
177
  clientToken?: string | undefined;
144
178
  }
145
179
  export interface UpdateComputeNodeGroupResponse {
@@ -350,6 +384,10 @@ export interface RegisterComputeNodeGroupInstanceResponse {
350
384
  nodeID: string | undefined;
351
385
  sharedSecret: string | undefined;
352
386
  endpoints: Endpoint[] | undefined;
387
+ clusterName?: string | undefined;
388
+ computeNodeGroupId?: string | undefined;
389
+ computeNodeGroupName?: string | undefined;
390
+ nodeLifecycleActions?: NodeLifecycleActions | undefined;
353
391
  }
354
392
  export interface UpdateSchedulerRequest {
355
393
  version: string | undefined;
@@ -55,6 +55,10 @@ export declare var ListTagsForResourceRequest$: StaticStructureSchema;
55
55
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
56
56
  export declare var Networking$: StaticStructureSchema;
57
57
  export declare var NetworkingRequest$: StaticStructureSchema;
58
+ export declare var NodeLifecycleActions$: StaticStructureSchema;
59
+ export declare var NodeLifecycleActionsRequest$: StaticStructureSchema;
60
+ export declare var NodeLifecycleScript$: StaticStructureSchema;
61
+ export declare var NodeLifecycleStages$: StaticStructureSchema;
58
62
  export declare var Queue$: StaticStructureSchema;
59
63
  export declare var QueueSlurmConfiguration$: StaticStructureSchema;
60
64
  export declare var QueueSlurmConfigurationRequest$: StaticStructureSchema;
@@ -65,6 +69,7 @@ export declare var ScalingConfiguration$: StaticStructureSchema;
65
69
  export declare var ScalingConfigurationRequest$: StaticStructureSchema;
66
70
  export declare var Scheduler$: StaticStructureSchema;
67
71
  export declare var SchedulerRequest$: StaticStructureSchema;
72
+ export declare var ScriptSource$: StaticStructureSchema;
68
73
  export declare var SlurmAuthKey$: StaticStructureSchema;
69
74
  export declare var SlurmCustomSetting$: StaticStructureSchema;
70
75
  export declare var SlurmdbdCustomSetting$: StaticStructureSchema;
@@ -82,6 +87,7 @@ export declare var UpdateClusterSlurmConfigurationRequest$: StaticStructureSchem
82
87
  export declare var UpdateComputeNodeGroupRequest$: StaticStructureSchema;
83
88
  export declare var UpdateComputeNodeGroupResponse$: StaticStructureSchema;
84
89
  export declare var UpdateComputeNodeGroupSlurmConfigurationRequest$: StaticStructureSchema;
90
+ export declare var UpdateNodeLifecycleActionsRequest$: StaticStructureSchema;
85
91
  export declare var UpdateQueueRequest$: StaticStructureSchema;
86
92
  export declare var UpdateQueueResponse$: StaticStructureSchema;
87
93
  export declare var UpdateQueueSlurmConfigurationRequest$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pcs",
3
- "version": "3.1092.0",
3
+ "version": "3.1093.0",
4
4
  "description": "AWS SDK for JavaScript Pcs Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-pcs",
6
6
  "license": "Apache-2.0",