cdk-lambda-subminute 2.0.484 → 2.0.486

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.
Files changed (40) hide show
  1. package/.jsii +3 -3
  2. package/lib/cdk-lambda-subminute.js +3 -3
  3. package/node_modules/aws-sdk/README.md +1 -1
  4. package/node_modules/aws-sdk/apis/appconfig-2019-10-09.min.json +77 -16
  5. package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.min.json +7 -1
  6. package/node_modules/aws-sdk/apis/devicefarm-2015-06-23.examples.json +0 -2
  7. package/node_modules/aws-sdk/apis/ec2-2016-11-15.min.json +6 -5
  8. package/node_modules/aws-sdk/apis/internetmonitor-2021-06-03.min.json +6 -1
  9. package/node_modules/aws-sdk/apis/metadata.json +3 -0
  10. package/node_modules/aws-sdk/apis/pcs-2023-02-10.examples.json +5 -0
  11. package/node_modules/aws-sdk/apis/pcs-2023-02-10.min.json +903 -0
  12. package/node_modules/aws-sdk/apis/pcs-2023-02-10.paginators.json +22 -0
  13. package/node_modules/aws-sdk/apis/pcs-2023-02-10.waiters2.json +5 -0
  14. package/node_modules/aws-sdk/apis/personalize-2018-05-22.min.json +61 -5
  15. package/node_modules/aws-sdk/apis/quicksight-2018-04-01.min.json +349 -340
  16. package/node_modules/aws-sdk/apis/states-2016-11-23.min.json +8 -1
  17. package/node_modules/aws-sdk/clients/all.d.ts +1 -0
  18. package/node_modules/aws-sdk/clients/all.js +2 -1
  19. package/node_modules/aws-sdk/clients/appconfig.d.ts +58 -14
  20. package/node_modules/aws-sdk/clients/bedrockagentruntime.d.ts +1 -1
  21. package/node_modules/aws-sdk/clients/bedrockruntime.d.ts +4 -4
  22. package/node_modules/aws-sdk/clients/datazone.d.ts +2 -2
  23. package/node_modules/aws-sdk/clients/devicefarm.d.ts +12 -12
  24. package/node_modules/aws-sdk/clients/ec2.d.ts +8 -4
  25. package/node_modules/aws-sdk/clients/internetmonitor.d.ts +2 -2
  26. package/node_modules/aws-sdk/clients/pcs.d.ts +1009 -0
  27. package/node_modules/aws-sdk/clients/pcs.js +19 -0
  28. package/node_modules/aws-sdk/clients/personalize.d.ts +66 -5
  29. package/node_modules/aws-sdk/clients/quicksight.d.ts +2 -1
  30. package/node_modules/aws-sdk/clients/stepfunctions.d.ts +15 -1
  31. package/node_modules/aws-sdk/clients/wafv2.d.ts +2 -2
  32. package/node_modules/aws-sdk/clients/workspaces.d.ts +5 -5
  33. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +2 -2
  34. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +55 -11
  35. package/node_modules/aws-sdk/dist/aws-sdk.js +73 -13
  36. package/node_modules/aws-sdk/dist/aws-sdk.min.js +49 -49
  37. package/node_modules/aws-sdk/lib/config_service_placeholders.d.ts +2 -0
  38. package/node_modules/aws-sdk/lib/core.js +1 -1
  39. package/node_modules/aws-sdk/package.json +1 -1
  40. package/package.json +2 -2
@@ -0,0 +1,1009 @@
1
+ import {Request} from '../lib/request';
2
+ import {Response} from '../lib/response';
3
+ import {AWSError} from '../lib/error';
4
+ import {Service} from '../lib/service';
5
+ import {ServiceConfigurationOptions} from '../lib/service';
6
+ import {ConfigBase as Config} from '../lib/config-base';
7
+ interface Blob {}
8
+ declare class PCS extends Service {
9
+ /**
10
+ * Constructs a service object. This object has one method for each API operation.
11
+ */
12
+ constructor(options?: PCS.Types.ClientConfiguration)
13
+ config: Config & PCS.Types.ClientConfiguration;
14
+ /**
15
+ * Creates a cluster in your account. Amazon Web Services PCS creates the cluster controller in a service-owned account. The cluster controller communicates with the cluster resources in your account. The subnets and security groups for the cluster must already exist before you use this API action. It takes time for Amazon Web Services PCS to create the cluster. The cluster is in a Creating state until it is ready to use. There can only be 1 cluster in a Creating state per Amazon Web Services Region per Amazon Web Services account. CreateCluster fails with a ServiceQuotaExceededException if there is already a cluster in a Creating state.
16
+ */
17
+ createCluster(params: PCS.Types.CreateClusterRequest, callback?: (err: AWSError, data: PCS.Types.CreateClusterResponse) => void): Request<PCS.Types.CreateClusterResponse, AWSError>;
18
+ /**
19
+ * Creates a cluster in your account. Amazon Web Services PCS creates the cluster controller in a service-owned account. The cluster controller communicates with the cluster resources in your account. The subnets and security groups for the cluster must already exist before you use this API action. It takes time for Amazon Web Services PCS to create the cluster. The cluster is in a Creating state until it is ready to use. There can only be 1 cluster in a Creating state per Amazon Web Services Region per Amazon Web Services account. CreateCluster fails with a ServiceQuotaExceededException if there is already a cluster in a Creating state.
20
+ */
21
+ createCluster(callback?: (err: AWSError, data: PCS.Types.CreateClusterResponse) => void): Request<PCS.Types.CreateClusterResponse, AWSError>;
22
+ /**
23
+ * Creates a managed set of compute nodes. You associate a compute node group with a cluster through 1 or more Amazon Web Services PCS queues or as part of the login fleet. A compute node group includes the definition of the compute properties and lifecycle management. Amazon Web Services PCS uses the information you provide to this API action to launch compute nodes in your account. You can only specify subnets in the same Amazon VPC as your cluster. You receive billing charges for the compute nodes that Amazon Web Services PCS launches in your account. You must already have a launch template before you call this API. For more information, see Launch an instance from a launch template in the Amazon Elastic Compute Cloud User Guide for Linux Instances.
24
+ */
25
+ createComputeNodeGroup(params: PCS.Types.CreateComputeNodeGroupRequest, callback?: (err: AWSError, data: PCS.Types.CreateComputeNodeGroupResponse) => void): Request<PCS.Types.CreateComputeNodeGroupResponse, AWSError>;
26
+ /**
27
+ * Creates a managed set of compute nodes. You associate a compute node group with a cluster through 1 or more Amazon Web Services PCS queues or as part of the login fleet. A compute node group includes the definition of the compute properties and lifecycle management. Amazon Web Services PCS uses the information you provide to this API action to launch compute nodes in your account. You can only specify subnets in the same Amazon VPC as your cluster. You receive billing charges for the compute nodes that Amazon Web Services PCS launches in your account. You must already have a launch template before you call this API. For more information, see Launch an instance from a launch template in the Amazon Elastic Compute Cloud User Guide for Linux Instances.
28
+ */
29
+ createComputeNodeGroup(callback?: (err: AWSError, data: PCS.Types.CreateComputeNodeGroupResponse) => void): Request<PCS.Types.CreateComputeNodeGroupResponse, AWSError>;
30
+ /**
31
+ * Creates a job queue. You must associate 1 or more compute node groups with the queue. You can associate 1 compute node group with multiple queues.
32
+ */
33
+ createQueue(params: PCS.Types.CreateQueueRequest, callback?: (err: AWSError, data: PCS.Types.CreateQueueResponse) => void): Request<PCS.Types.CreateQueueResponse, AWSError>;
34
+ /**
35
+ * Creates a job queue. You must associate 1 or more compute node groups with the queue. You can associate 1 compute node group with multiple queues.
36
+ */
37
+ createQueue(callback?: (err: AWSError, data: PCS.Types.CreateQueueResponse) => void): Request<PCS.Types.CreateQueueResponse, AWSError>;
38
+ /**
39
+ * Deletes a cluster and all its linked resources. You must delete all queues and compute node groups associated with the cluster before you can delete the cluster.
40
+ */
41
+ deleteCluster(params: PCS.Types.DeleteClusterRequest, callback?: (err: AWSError, data: PCS.Types.DeleteClusterResponse) => void): Request<PCS.Types.DeleteClusterResponse, AWSError>;
42
+ /**
43
+ * Deletes a cluster and all its linked resources. You must delete all queues and compute node groups associated with the cluster before you can delete the cluster.
44
+ */
45
+ deleteCluster(callback?: (err: AWSError, data: PCS.Types.DeleteClusterResponse) => void): Request<PCS.Types.DeleteClusterResponse, AWSError>;
46
+ /**
47
+ * Deletes a compute node group. You must delete all queues associated with the compute node group first.
48
+ */
49
+ deleteComputeNodeGroup(params: PCS.Types.DeleteComputeNodeGroupRequest, callback?: (err: AWSError, data: PCS.Types.DeleteComputeNodeGroupResponse) => void): Request<PCS.Types.DeleteComputeNodeGroupResponse, AWSError>;
50
+ /**
51
+ * Deletes a compute node group. You must delete all queues associated with the compute node group first.
52
+ */
53
+ deleteComputeNodeGroup(callback?: (err: AWSError, data: PCS.Types.DeleteComputeNodeGroupResponse) => void): Request<PCS.Types.DeleteComputeNodeGroupResponse, AWSError>;
54
+ /**
55
+ * Deletes a job queue. If the compute node group associated with this queue isn't associated with any other queues, Amazon Web Services PCS terminates all the compute nodes for this queue.
56
+ */
57
+ deleteQueue(params: PCS.Types.DeleteQueueRequest, callback?: (err: AWSError, data: PCS.Types.DeleteQueueResponse) => void): Request<PCS.Types.DeleteQueueResponse, AWSError>;
58
+ /**
59
+ * Deletes a job queue. If the compute node group associated with this queue isn't associated with any other queues, Amazon Web Services PCS terminates all the compute nodes for this queue.
60
+ */
61
+ deleteQueue(callback?: (err: AWSError, data: PCS.Types.DeleteQueueResponse) => void): Request<PCS.Types.DeleteQueueResponse, AWSError>;
62
+ /**
63
+ * Returns detailed information about a running cluster in your account. This API action provides networking information, endpoint information for communication with the scheduler, and provisioning status.
64
+ */
65
+ getCluster(params: PCS.Types.GetClusterRequest, callback?: (err: AWSError, data: PCS.Types.GetClusterResponse) => void): Request<PCS.Types.GetClusterResponse, AWSError>;
66
+ /**
67
+ * Returns detailed information about a running cluster in your account. This API action provides networking information, endpoint information for communication with the scheduler, and provisioning status.
68
+ */
69
+ getCluster(callback?: (err: AWSError, data: PCS.Types.GetClusterResponse) => void): Request<PCS.Types.GetClusterResponse, AWSError>;
70
+ /**
71
+ * Returns detailed information about a compute node group. This API action provides networking information, EC2 instance type, compute node group status, and scheduler (such as Slurm) configuration.
72
+ */
73
+ getComputeNodeGroup(params: PCS.Types.GetComputeNodeGroupRequest, callback?: (err: AWSError, data: PCS.Types.GetComputeNodeGroupResponse) => void): Request<PCS.Types.GetComputeNodeGroupResponse, AWSError>;
74
+ /**
75
+ * Returns detailed information about a compute node group. This API action provides networking information, EC2 instance type, compute node group status, and scheduler (such as Slurm) configuration.
76
+ */
77
+ getComputeNodeGroup(callback?: (err: AWSError, data: PCS.Types.GetComputeNodeGroupResponse) => void): Request<PCS.Types.GetComputeNodeGroupResponse, AWSError>;
78
+ /**
79
+ * Returns detailed information about a queue. The information includes the compute node groups that the queue uses to schedule jobs.
80
+ */
81
+ getQueue(params: PCS.Types.GetQueueRequest, callback?: (err: AWSError, data: PCS.Types.GetQueueResponse) => void): Request<PCS.Types.GetQueueResponse, AWSError>;
82
+ /**
83
+ * Returns detailed information about a queue. The information includes the compute node groups that the queue uses to schedule jobs.
84
+ */
85
+ getQueue(callback?: (err: AWSError, data: PCS.Types.GetQueueResponse) => void): Request<PCS.Types.GetQueueResponse, AWSError>;
86
+ /**
87
+ * Returns a list of running clusters in your account.
88
+ */
89
+ listClusters(params: PCS.Types.ListClustersRequest, callback?: (err: AWSError, data: PCS.Types.ListClustersResponse) => void): Request<PCS.Types.ListClustersResponse, AWSError>;
90
+ /**
91
+ * Returns a list of running clusters in your account.
92
+ */
93
+ listClusters(callback?: (err: AWSError, data: PCS.Types.ListClustersResponse) => void): Request<PCS.Types.ListClustersResponse, AWSError>;
94
+ /**
95
+ * Returns a list of all compute node groups associated with a cluster.
96
+ */
97
+ listComputeNodeGroups(params: PCS.Types.ListComputeNodeGroupsRequest, callback?: (err: AWSError, data: PCS.Types.ListComputeNodeGroupsResponse) => void): Request<PCS.Types.ListComputeNodeGroupsResponse, AWSError>;
98
+ /**
99
+ * Returns a list of all compute node groups associated with a cluster.
100
+ */
101
+ listComputeNodeGroups(callback?: (err: AWSError, data: PCS.Types.ListComputeNodeGroupsResponse) => void): Request<PCS.Types.ListComputeNodeGroupsResponse, AWSError>;
102
+ /**
103
+ * Returns a list of all queues associated with a cluster.
104
+ */
105
+ listQueues(params: PCS.Types.ListQueuesRequest, callback?: (err: AWSError, data: PCS.Types.ListQueuesResponse) => void): Request<PCS.Types.ListQueuesResponse, AWSError>;
106
+ /**
107
+ * Returns a list of all queues associated with a cluster.
108
+ */
109
+ listQueues(callback?: (err: AWSError, data: PCS.Types.ListQueuesResponse) => void): Request<PCS.Types.ListQueuesResponse, AWSError>;
110
+ /**
111
+ * Returns a list of all tags on an Amazon Web Services PCS resource.
112
+ */
113
+ listTagsForResource(params: PCS.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: PCS.Types.ListTagsForResourceResponse) => void): Request<PCS.Types.ListTagsForResourceResponse, AWSError>;
114
+ /**
115
+ * Returns a list of all tags on an Amazon Web Services PCS resource.
116
+ */
117
+ listTagsForResource(callback?: (err: AWSError, data: PCS.Types.ListTagsForResourceResponse) => void): Request<PCS.Types.ListTagsForResourceResponse, AWSError>;
118
+ /**
119
+ * This API action isn't intended for you to use. Amazon Web Services PCS uses this API action to register the compute nodes it launches in your account.
120
+ */
121
+ registerComputeNodeGroupInstance(params: PCS.Types.RegisterComputeNodeGroupInstanceRequest, callback?: (err: AWSError, data: PCS.Types.RegisterComputeNodeGroupInstanceResponse) => void): Request<PCS.Types.RegisterComputeNodeGroupInstanceResponse, AWSError>;
122
+ /**
123
+ * This API action isn't intended for you to use. Amazon Web Services PCS uses this API action to register the compute nodes it launches in your account.
124
+ */
125
+ registerComputeNodeGroupInstance(callback?: (err: AWSError, data: PCS.Types.RegisterComputeNodeGroupInstanceResponse) => void): Request<PCS.Types.RegisterComputeNodeGroupInstanceResponse, AWSError>;
126
+ /**
127
+ * Adds or edits tags on an Amazon Web Services PCS resource. Each tag consists of a tag key and a tag value. The tag key and tag value are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.
128
+ */
129
+ tagResource(params: PCS.Types.TagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
130
+ /**
131
+ * Adds or edits tags on an Amazon Web Services PCS resource. Each tag consists of a tag key and a tag value. The tag key and tag value are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.
132
+ */
133
+ tagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
134
+ /**
135
+ * Deletes tags from an Amazon Web Services PCS resource. To delete a tag, specify the tag key and the Amazon Resource Name (ARN) of the Amazon Web Services PCS resource.
136
+ */
137
+ untagResource(params: PCS.Types.UntagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
138
+ /**
139
+ * Deletes tags from an Amazon Web Services PCS resource. To delete a tag, specify the tag key and the Amazon Resource Name (ARN) of the Amazon Web Services PCS resource.
140
+ */
141
+ untagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
142
+ /**
143
+ * Updates a compute node group. You can update many of the fields related to your compute node group including the configurations for networking, compute nodes, and settings specific to your scheduler (such as Slurm).
144
+ */
145
+ updateComputeNodeGroup(params: PCS.Types.UpdateComputeNodeGroupRequest, callback?: (err: AWSError, data: PCS.Types.UpdateComputeNodeGroupResponse) => void): Request<PCS.Types.UpdateComputeNodeGroupResponse, AWSError>;
146
+ /**
147
+ * Updates a compute node group. You can update many of the fields related to your compute node group including the configurations for networking, compute nodes, and settings specific to your scheduler (such as Slurm).
148
+ */
149
+ updateComputeNodeGroup(callback?: (err: AWSError, data: PCS.Types.UpdateComputeNodeGroupResponse) => void): Request<PCS.Types.UpdateComputeNodeGroupResponse, AWSError>;
150
+ /**
151
+ * Updates the compute node group configuration of a queue. Use this API to change the compute node groups that the queue can send jobs to.
152
+ */
153
+ updateQueue(params: PCS.Types.UpdateQueueRequest, callback?: (err: AWSError, data: PCS.Types.UpdateQueueResponse) => void): Request<PCS.Types.UpdateQueueResponse, AWSError>;
154
+ /**
155
+ * Updates the compute node group configuration of a queue. Use this API to change the compute node groups that the queue can send jobs to.
156
+ */
157
+ updateQueue(callback?: (err: AWSError, data: PCS.Types.UpdateQueueResponse) => void): Request<PCS.Types.UpdateQueueResponse, AWSError>;
158
+ }
159
+ declare namespace PCS {
160
+ export type AmiId = string;
161
+ export type Arn = string;
162
+ export type BootstrapId = string;
163
+ export interface Cluster {
164
+ /**
165
+ * The name that identifies the cluster.
166
+ */
167
+ name: String;
168
+ /**
169
+ * The generated unique ID of the cluster.
170
+ */
171
+ id: String;
172
+ /**
173
+ * The unique Amazon Resource Name (ARN) of the cluster.
174
+ */
175
+ arn: String;
176
+ /**
177
+ * The provisioning status of the cluster. The provisioning status doesn't indicate the overall health of the cluster.
178
+ */
179
+ status: ClusterStatus;
180
+ /**
181
+ * The date and time the resource was created.
182
+ */
183
+ createdAt: SyntheticTimestamp_date_time;
184
+ /**
185
+ * The date and time the resource was modified.
186
+ */
187
+ modifiedAt: SyntheticTimestamp_date_time;
188
+ scheduler: Scheduler;
189
+ /**
190
+ * The size of the cluster. SMALL: 32 compute nodes and 256 jobs MEDIUM: 512 compute nodes and 8192 jobs LARGE: 2048 compute nodes and 16,384 jobs
191
+ */
192
+ size: Size;
193
+ /**
194
+ * Additional options related to the Slurm scheduler.
195
+ */
196
+ slurmConfiguration?: ClusterSlurmConfiguration;
197
+ networking: Networking;
198
+ /**
199
+ * The list of endpoints available for interaction with the scheduler.
200
+ */
201
+ endpoints?: Endpoints;
202
+ /**
203
+ * The list of errors that occurred during cluster provisioning.
204
+ */
205
+ errorInfo?: ErrorInfoList;
206
+ }
207
+ export type ClusterIdentifier = string;
208
+ export type ClusterList = ClusterSummary[];
209
+ export type ClusterName = string;
210
+ export interface ClusterSlurmConfiguration {
211
+ /**
212
+ * The time before an idle node is scaled down.
213
+ */
214
+ scaleDownIdleTimeInSeconds?: ClusterSlurmConfigurationScaleDownIdleTimeInSecondsInteger;
215
+ /**
216
+ * Additional Slurm-specific configuration that directly maps to Slurm settings.
217
+ */
218
+ slurmCustomSettings?: SlurmCustomSettings;
219
+ /**
220
+ * The shared Slurm key for authentication, also known as the cluster secret.
221
+ */
222
+ authKey?: SlurmAuthKey;
223
+ }
224
+ export interface ClusterSlurmConfigurationRequest {
225
+ /**
226
+ * The time before an idle node is scaled down.
227
+ */
228
+ scaleDownIdleTimeInSeconds?: ClusterSlurmConfigurationRequestScaleDownIdleTimeInSecondsInteger;
229
+ /**
230
+ * Additional Slurm-specific configuration that directly maps to Slurm settings.
231
+ */
232
+ slurmCustomSettings?: SlurmCustomSettings;
233
+ }
234
+ export type ClusterSlurmConfigurationRequestScaleDownIdleTimeInSecondsInteger = number;
235
+ export type ClusterSlurmConfigurationScaleDownIdleTimeInSecondsInteger = number;
236
+ export type ClusterStatus = "CREATING"|"ACTIVE"|"UPDATING"|"DELETING"|"CREATE_FAILED"|"DELETE_FAILED"|"UPDATE_FAILED"|string;
237
+ export interface ClusterSummary {
238
+ /**
239
+ * The name that identifies the cluster.
240
+ */
241
+ name: String;
242
+ /**
243
+ * The generated unique ID of the cluster.
244
+ */
245
+ id: String;
246
+ /**
247
+ * The unique Amazon Resource Name (ARN) of the cluster.
248
+ */
249
+ arn: String;
250
+ /**
251
+ * The date and time the resource was created.
252
+ */
253
+ createdAt: SyntheticTimestamp_date_time;
254
+ /**
255
+ * The date and time the resource was modified.
256
+ */
257
+ modifiedAt: SyntheticTimestamp_date_time;
258
+ /**
259
+ * The provisioning status of the cluster. The provisioning status doesn't indicate the overall health of the cluster.
260
+ */
261
+ status: ClusterStatus;
262
+ }
263
+ export interface ComputeNodeGroup {
264
+ /**
265
+ * The name that identifies the compute node group.
266
+ */
267
+ name: ComputeNodeGroupName;
268
+ /**
269
+ * The generated unique ID of the compute node group.
270
+ */
271
+ id: String;
272
+ /**
273
+ * The unique Amazon Resource Name (ARN) of the compute node group.
274
+ */
275
+ arn: String;
276
+ /**
277
+ * The ID of the cluster of the compute node group.
278
+ */
279
+ clusterId: String;
280
+ /**
281
+ * The date and time the resource was created.
282
+ */
283
+ createdAt: SyntheticTimestamp_date_time;
284
+ /**
285
+ * The date and time the resource was modified.
286
+ */
287
+ modifiedAt: SyntheticTimestamp_date_time;
288
+ /**
289
+ * The provisioning status of the compute node group. The provisioning status doesn't indicate the overall health of the compute node group.
290
+ */
291
+ status: ComputeNodeGroupStatus;
292
+ /**
293
+ * The ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to launch instances. If not provided, Amazon Web Services PCS uses the AMI ID specified in the custom launch template.
294
+ */
295
+ amiId?: AmiId;
296
+ /**
297
+ * The list of subnet IDs where instances are provisioned by the compute node group. The subnets must be in the same VPC as the cluster.
298
+ */
299
+ subnetIds: SubnetIdList;
300
+ /**
301
+ * Specifies how EC2 instances are purchased on your behalf. Amazon Web Services PCS supports On-Demand and Spot instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.
302
+ */
303
+ purchaseOption?: PurchaseOption;
304
+ customLaunchTemplate: CustomLaunchTemplate;
305
+ /**
306
+ * The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have pcs:RegisterComputeNodeGroupInstance permissions attached to provision instances correctly.
307
+ */
308
+ iamInstanceProfileArn: InstanceProfileArn;
309
+ scalingConfiguration: ScalingConfiguration;
310
+ /**
311
+ * A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.
312
+ */
313
+ instanceConfigs: InstanceList;
314
+ spotOptions?: SpotOptions;
315
+ slurmConfiguration?: ComputeNodeGroupSlurmConfiguration;
316
+ /**
317
+ * The list of errors that occurred during compute node group provisioning.
318
+ */
319
+ errorInfo?: ErrorInfoList;
320
+ }
321
+ export interface ComputeNodeGroupConfiguration {
322
+ /**
323
+ * The compute node group ID for the compute node group configuration.
324
+ */
325
+ computeNodeGroupId?: String;
326
+ }
327
+ export type ComputeNodeGroupConfigurationList = ComputeNodeGroupConfiguration[];
328
+ export type ComputeNodeGroupIdentifier = string;
329
+ export type ComputeNodeGroupList = ComputeNodeGroupSummary[];
330
+ export type ComputeNodeGroupName = string;
331
+ export interface ComputeNodeGroupSlurmConfiguration {
332
+ /**
333
+ * Additional Slurm-specific configuration that directly maps to Slurm settings.
334
+ */
335
+ slurmCustomSettings?: SlurmCustomSettings;
336
+ }
337
+ export interface ComputeNodeGroupSlurmConfigurationRequest {
338
+ /**
339
+ * Additional Slurm-specific configuration that directly maps to Slurm settings.
340
+ */
341
+ slurmCustomSettings?: SlurmCustomSettings;
342
+ }
343
+ export type ComputeNodeGroupStatus = "CREATING"|"ACTIVE"|"UPDATING"|"DELETING"|"CREATE_FAILED"|"DELETE_FAILED"|"UPDATE_FAILED"|"DELETED"|string;
344
+ export interface ComputeNodeGroupSummary {
345
+ /**
346
+ * The name that identifies the compute node group.
347
+ */
348
+ name: ComputeNodeGroupName;
349
+ /**
350
+ * The generated unique ID of the compute node group.
351
+ */
352
+ id: String;
353
+ /**
354
+ * The unique Amazon Resource Name (ARN) of the compute node group.
355
+ */
356
+ arn: String;
357
+ /**
358
+ * The ID of the cluster of the compute node group.
359
+ */
360
+ clusterId: String;
361
+ /**
362
+ * The date and time the resource was created.
363
+ */
364
+ createdAt: SyntheticTimestamp_date_time;
365
+ /**
366
+ * The date and time the resource was modified.
367
+ */
368
+ modifiedAt: SyntheticTimestamp_date_time;
369
+ /**
370
+ * The provisioning status of the compute node group. The provisioning status doesn't indicate the overall health of the compute node group.
371
+ */
372
+ status: ComputeNodeGroupStatus;
373
+ }
374
+ export interface CreateClusterRequest {
375
+ /**
376
+ * A name to identify the cluster. Example: MyCluster
377
+ */
378
+ clusterName: ClusterName;
379
+ /**
380
+ * The cluster management and job scheduling software associated with the cluster.
381
+ */
382
+ scheduler: SchedulerRequest;
383
+ /**
384
+ * A value that determines the maximum number of compute nodes in the cluster and the maximum number of jobs (active and queued). SMALL: 32 compute nodes and 256 jobs MEDIUM: 512 compute nodes and 8192 jobs LARGE: 2048 compute nodes and 16,384 jobs
385
+ */
386
+ size: Size;
387
+ /**
388
+ * The networking configuration used to set up the cluster's control plane.
389
+ */
390
+ networking: NetworkingRequest;
391
+ /**
392
+ * Additional options related to the Slurm scheduler.
393
+ */
394
+ slurmConfiguration?: ClusterSlurmConfigurationRequest;
395
+ /**
396
+ * 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.
397
+ */
398
+ clientToken?: SBClientToken;
399
+ /**
400
+ * 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
401
+ */
402
+ tags?: RequestTagMap;
403
+ }
404
+ export interface CreateClusterResponse {
405
+ /**
406
+ * The cluster resource.
407
+ */
408
+ cluster?: Cluster;
409
+ }
410
+ export interface CreateComputeNodeGroupRequest {
411
+ /**
412
+ * The name or ID of the cluster to create a compute node group in.
413
+ */
414
+ clusterIdentifier: ClusterIdentifier;
415
+ /**
416
+ * A name to identify the cluster. Example: MyCluster
417
+ */
418
+ computeNodeGroupName: ComputeNodeGroupName;
419
+ /**
420
+ * The ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to launch compute nodes (Amazon EC2 instances). If you don't provide this value, Amazon Web Services PCS uses the AMI ID specified in the custom launch template.
421
+ */
422
+ amiId?: AmiId;
423
+ /**
424
+ * The list of subnet IDs where the compute node group launches instances. Subnets must be in the same VPC as the cluster.
425
+ */
426
+ subnetIds: StringList;
427
+ /**
428
+ * Specifies how EC2 instances are purchased on your behalf. Amazon Web Services PCS supports On-Demand and Spot instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.
429
+ */
430
+ purchaseOption?: PurchaseOption;
431
+ customLaunchTemplate: CustomLaunchTemplate;
432
+ /**
433
+ * The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have pcs:RegisterComputeNodeGroupInstance permissions attached in order to provision instances correctly. The resource identifier of the ARN must start with AWSPCS. For example, arn:aws:iam:123456789012:instance-profile/AWSPCSMyComputeNodeInstanceProfile.
434
+ */
435
+ iamInstanceProfileArn: InstanceProfileArn;
436
+ /**
437
+ * Specifies the boundaries of the compute node group auto scaling.
438
+ */
439
+ scalingConfiguration: ScalingConfigurationRequest;
440
+ /**
441
+ * A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.
442
+ */
443
+ instanceConfigs: InstanceList;
444
+ spotOptions?: SpotOptions;
445
+ /**
446
+ * Additional options related to the Slurm scheduler.
447
+ */
448
+ slurmConfiguration?: ComputeNodeGroupSlurmConfigurationRequest;
449
+ /**
450
+ * 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.
451
+ */
452
+ clientToken?: SBClientToken;
453
+ /**
454
+ * 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
455
+ */
456
+ tags?: RequestTagMap;
457
+ }
458
+ export interface CreateComputeNodeGroupResponse {
459
+ computeNodeGroup?: ComputeNodeGroup;
460
+ }
461
+ export interface CreateQueueRequest {
462
+ /**
463
+ * The name or ID of the cluster for which to create a queue.
464
+ */
465
+ clusterIdentifier: ClusterIdentifier;
466
+ /**
467
+ * A name to identify the queue.
468
+ */
469
+ queueName: QueueName;
470
+ /**
471
+ * The list of compute node group configurations to associate with the queue. Queues assign jobs to associated compute node groups.
472
+ */
473
+ computeNodeGroupConfigurations?: ComputeNodeGroupConfigurationList;
474
+ /**
475
+ * 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.
476
+ */
477
+ clientToken?: SBClientToken;
478
+ /**
479
+ * 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
480
+ */
481
+ tags?: RequestTagMap;
482
+ }
483
+ export interface CreateQueueResponse {
484
+ queue?: Queue;
485
+ }
486
+ export interface CustomLaunchTemplate {
487
+ /**
488
+ * The ID of the EC2 launch template to use to provision instances. Example: lt-xxxx
489
+ */
490
+ id: String;
491
+ /**
492
+ * The version of the EC2 launch template to use to provision instances.
493
+ */
494
+ version: String;
495
+ }
496
+ export interface DeleteClusterRequest {
497
+ /**
498
+ * The name or ID of the cluster to delete.
499
+ */
500
+ clusterIdentifier: ClusterIdentifier;
501
+ /**
502
+ * 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.
503
+ */
504
+ clientToken?: SBClientToken;
505
+ }
506
+ export interface DeleteClusterResponse {
507
+ }
508
+ export interface DeleteComputeNodeGroupRequest {
509
+ /**
510
+ * The name or ID of the cluster of the compute node group.
511
+ */
512
+ clusterIdentifier: ClusterIdentifier;
513
+ /**
514
+ * The name or ID of the compute node group to delete.
515
+ */
516
+ computeNodeGroupIdentifier: ComputeNodeGroupIdentifier;
517
+ /**
518
+ * 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.
519
+ */
520
+ clientToken?: SBClientToken;
521
+ }
522
+ export interface DeleteComputeNodeGroupResponse {
523
+ }
524
+ export interface DeleteQueueRequest {
525
+ /**
526
+ * The name or ID of the cluster of the queue.
527
+ */
528
+ clusterIdentifier: ClusterIdentifier;
529
+ /**
530
+ * The name or ID of the queue to delete.
531
+ */
532
+ queueIdentifier: QueueIdentifier;
533
+ /**
534
+ * 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.
535
+ */
536
+ clientToken?: SBClientToken;
537
+ }
538
+ export interface DeleteQueueResponse {
539
+ }
540
+ export interface Endpoint {
541
+ /**
542
+ * Indicates the type of endpoint running at the specific IP address.
543
+ */
544
+ type: EndpointType;
545
+ /**
546
+ * The endpoint's private IP address. Example: 2.2.2.2
547
+ */
548
+ privateIpAddress: String;
549
+ /**
550
+ * The endpoint's public IP address. Example: 1.1.1.1
551
+ */
552
+ publicIpAddress?: String;
553
+ /**
554
+ * The endpoint's connection port number. Example: 1234
555
+ */
556
+ port: String;
557
+ }
558
+ export type EndpointType = "SLURMCTLD"|"SLURMDBD"|string;
559
+ export type Endpoints = Endpoint[];
560
+ export interface ErrorInfo {
561
+ /**
562
+ * The short-form error code.
563
+ */
564
+ code?: String;
565
+ /**
566
+ * The detailed error information.
567
+ */
568
+ message?: String;
569
+ }
570
+ export type ErrorInfoList = ErrorInfo[];
571
+ export interface GetClusterRequest {
572
+ /**
573
+ * The name or ID of the cluster of the queue.
574
+ */
575
+ clusterIdentifier: ClusterIdentifier;
576
+ }
577
+ export interface GetClusterResponse {
578
+ /**
579
+ * The cluster resource.
580
+ */
581
+ cluster?: Cluster;
582
+ }
583
+ export interface GetComputeNodeGroupRequest {
584
+ /**
585
+ * The name or ID of the cluster.
586
+ */
587
+ clusterIdentifier: ClusterIdentifier;
588
+ /**
589
+ * The name or ID of the compute node group.
590
+ */
591
+ computeNodeGroupIdentifier: ComputeNodeGroupIdentifier;
592
+ }
593
+ export interface GetComputeNodeGroupResponse {
594
+ computeNodeGroup?: ComputeNodeGroup;
595
+ }
596
+ export interface GetQueueRequest {
597
+ /**
598
+ * The name or ID of the cluster of the queue.
599
+ */
600
+ clusterIdentifier: ClusterIdentifier;
601
+ /**
602
+ * The name or ID of the queue.
603
+ */
604
+ queueIdentifier: QueueIdentifier;
605
+ }
606
+ export interface GetQueueResponse {
607
+ queue?: Queue;
608
+ }
609
+ export interface InstanceConfig {
610
+ /**
611
+ * The EC2 instance type that Amazon Web Services PCS can provision in the compute node group. Example: t2.xlarge
612
+ */
613
+ instanceType?: String;
614
+ }
615
+ export type InstanceList = InstanceConfig[];
616
+ export type InstanceProfileArn = string;
617
+ export interface ListClustersRequest {
618
+ /**
619
+ * The value of nextToken is a unique pagination token for each page of results returned. If nextToken is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token returns an HTTP 400 InvalidToken error.
620
+ */
621
+ nextToken?: String;
622
+ /**
623
+ * The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 10 results, and the maximum allowed page size is 100 results. A value of 0 uses the default.
624
+ */
625
+ maxResults?: MaxResults;
626
+ }
627
+ export interface ListClustersResponse {
628
+ /**
629
+ * The list of clusters.
630
+ */
631
+ clusters: ClusterList;
632
+ /**
633
+ * The value of nextToken is a unique pagination token for each page of results returned. If nextToken is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token returns an HTTP 400 InvalidToken error.
634
+ */
635
+ nextToken?: String;
636
+ }
637
+ export interface ListComputeNodeGroupsRequest {
638
+ /**
639
+ * The name or ID of the cluster to list compute node groups for.
640
+ */
641
+ clusterIdentifier: ClusterIdentifier;
642
+ /**
643
+ * The value of nextToken is a unique pagination token for each page of results returned. If nextToken is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token returns an HTTP 400 InvalidToken error.
644
+ */
645
+ nextToken?: String;
646
+ /**
647
+ * The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 10 results, and the maximum allowed page size is 100 results. A value of 0 uses the default.
648
+ */
649
+ maxResults?: MaxResults;
650
+ }
651
+ export interface ListComputeNodeGroupsResponse {
652
+ /**
653
+ * The list of compute node groups for the cluster.
654
+ */
655
+ computeNodeGroups: ComputeNodeGroupList;
656
+ /**
657
+ * The value of nextToken is a unique pagination token for each page of results returned. If nextToken is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token returns an HTTP 400 InvalidToken error.
658
+ */
659
+ nextToken?: String;
660
+ }
661
+ export interface ListQueuesRequest {
662
+ /**
663
+ * The name or ID of the cluster to list queues for.
664
+ */
665
+ clusterIdentifier: ClusterIdentifier;
666
+ /**
667
+ * The value of nextToken is a unique pagination token for each page of results returned. If nextToken is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token returns an HTTP 400 InvalidToken error.
668
+ */
669
+ nextToken?: String;
670
+ /**
671
+ * The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 10 results, and the maximum allowed page size is 100 results. A value of 0 uses the default.
672
+ */
673
+ maxResults?: MaxResults;
674
+ }
675
+ export interface ListQueuesResponse {
676
+ /**
677
+ * The list of queues associated with the cluster.
678
+ */
679
+ queues: QueueList;
680
+ /**
681
+ * The value of nextToken is a unique pagination token for each page of results returned. If nextToken is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token returns an HTTP 400 InvalidToken error.
682
+ */
683
+ nextToken?: String;
684
+ }
685
+ export interface ListTagsForResourceRequest {
686
+ /**
687
+ * The Amazon Resource Name (ARN) of the resource for which to list tags.
688
+ */
689
+ resourceArn: Arn;
690
+ }
691
+ export interface ListTagsForResourceResponse {
692
+ /**
693
+ * 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
694
+ */
695
+ tags?: ResponseTagMap;
696
+ }
697
+ export type MaxResults = number;
698
+ export interface Networking {
699
+ /**
700
+ * The ID of the subnet where Amazon Web Services PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and Amazon Web Services PCS resources. The subnet must have an available IP address, cannot reside in AWS Outposts, AWS Wavelength, or an AWS Local Zone. Example: subnet-abcd1234
701
+ */
702
+ subnetIds?: SubnetIdList;
703
+ /**
704
+ * The list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets. The following rules are required: Inbound rule 1 Protocol: All Ports: All Source: Self Outbound rule 1 Protocol: All Ports: All Destination: 0.0.0.0/0 (IPv4) Outbound rule 2 Protocol: All Ports: All Destination: Self
705
+ */
706
+ securityGroupIds?: SecurityGroupIdList;
707
+ }
708
+ export interface NetworkingRequest {
709
+ /**
710
+ * The list of subnet IDs where Amazon Web Services PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and Amazon Web Services PCS resources. Subnet IDs have the form subnet-0123456789abcdef0. Subnets can't be in Outposts, Wavelength or an Amazon Web Services Local Zone. Amazon Web Services PCS currently supports only 1 subnet in this list.
711
+ */
712
+ subnetIds?: SubnetIdList;
713
+ /**
714
+ * A list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets.
715
+ */
716
+ securityGroupIds?: SecurityGroupIdList;
717
+ }
718
+ export type PurchaseOption = "ONDEMAND"|"SPOT"|string;
719
+ export interface Queue {
720
+ /**
721
+ * The name that identifies the queue.
722
+ */
723
+ name: QueueName;
724
+ /**
725
+ * The generated unique ID of the queue.
726
+ */
727
+ id: String;
728
+ /**
729
+ * The unique Amazon Resource Name (ARN) of the queue.
730
+ */
731
+ arn: String;
732
+ /**
733
+ * The ID of the cluster of the queue.
734
+ */
735
+ clusterId: String;
736
+ /**
737
+ * The date and time the resource was created.
738
+ */
739
+ createdAt: SyntheticTimestamp_date_time;
740
+ /**
741
+ * The date and time the resource was modified.
742
+ */
743
+ modifiedAt: SyntheticTimestamp_date_time;
744
+ /**
745
+ * The provisioning status of the queue. The provisioning status doesn't indicate the overall health of the queue.
746
+ */
747
+ status: QueueStatus;
748
+ /**
749
+ * The list of compute node group configurations associated with the queue. Queues assign jobs to associated compute node groups.
750
+ */
751
+ computeNodeGroupConfigurations: ComputeNodeGroupConfigurationList;
752
+ /**
753
+ * The list of errors that occurred during queue provisioning.
754
+ */
755
+ errorInfo?: ErrorInfoList;
756
+ }
757
+ export type QueueIdentifier = string;
758
+ export type QueueList = QueueSummary[];
759
+ export type QueueName = string;
760
+ export type QueueStatus = "CREATING"|"ACTIVE"|"UPDATING"|"DELETING"|"CREATE_FAILED"|"DELETE_FAILED"|"UPDATE_FAILED"|string;
761
+ export interface QueueSummary {
762
+ /**
763
+ * The name that identifies the queue.
764
+ */
765
+ name: QueueName;
766
+ /**
767
+ * The generated unique ID of the queue.
768
+ */
769
+ id: String;
770
+ /**
771
+ * The unique Amazon Resource Name (ARN) of the queue.
772
+ */
773
+ arn: String;
774
+ /**
775
+ * The ID of the cluster of the queue.
776
+ */
777
+ clusterId: String;
778
+ /**
779
+ * The date and time the resource was created.
780
+ */
781
+ createdAt: SyntheticTimestamp_date_time;
782
+ /**
783
+ * The date and time the resource was modified.
784
+ */
785
+ modifiedAt: SyntheticTimestamp_date_time;
786
+ /**
787
+ * The provisioning status of the queue. The provisioning status doesn't indicate the overall health of the queue.
788
+ */
789
+ status: QueueStatus;
790
+ }
791
+ export interface RegisterComputeNodeGroupInstanceRequest {
792
+ /**
793
+ * The name or ID of the cluster to register the compute node group instance in.
794
+ */
795
+ clusterIdentifier: ClusterIdentifier;
796
+ /**
797
+ * The client-generated token to allow for retries.
798
+ */
799
+ bootstrapId: BootstrapId;
800
+ }
801
+ export interface RegisterComputeNodeGroupInstanceResponse {
802
+ /**
803
+ * The scheduler node ID for this instance.
804
+ */
805
+ nodeID: String;
806
+ /**
807
+ * For the Slurm scheduler, this is the shared Munge key the scheduler uses to authenticate compute node group instances.
808
+ */
809
+ sharedSecret: SharedSecret;
810
+ /**
811
+ * The list of endpoints available for interaction with the scheduler.
812
+ */
813
+ endpoints: Endpoints;
814
+ }
815
+ export type RequestTagMap = {[key: string]: TagValue};
816
+ export type ResponseTagMap = {[key: string]: TagValue};
817
+ export type SBClientToken = string;
818
+ export interface ScalingConfiguration {
819
+ /**
820
+ * The lower bound of the number of instances allowed in the compute fleet.
821
+ */
822
+ minInstanceCount: ScalingConfigurationMinInstanceCountInteger;
823
+ /**
824
+ * The upper bound of the number of instances allowed in the compute fleet.
825
+ */
826
+ maxInstanceCount: ScalingConfigurationMaxInstanceCountInteger;
827
+ }
828
+ export type ScalingConfigurationMaxInstanceCountInteger = number;
829
+ export type ScalingConfigurationMinInstanceCountInteger = number;
830
+ export interface ScalingConfigurationRequest {
831
+ /**
832
+ * The lower bound of the number of instances allowed in the compute fleet.
833
+ */
834
+ minInstanceCount: ScalingConfigurationRequestMinInstanceCountInteger;
835
+ /**
836
+ * The upper bound of the number of instances allowed in the compute fleet.
837
+ */
838
+ maxInstanceCount: ScalingConfigurationRequestMaxInstanceCountInteger;
839
+ }
840
+ export type ScalingConfigurationRequestMaxInstanceCountInteger = number;
841
+ export type ScalingConfigurationRequestMinInstanceCountInteger = number;
842
+ export interface Scheduler {
843
+ /**
844
+ * The software Amazon Web Services PCS uses to manage cluster scaling and job scheduling.
845
+ */
846
+ type: SchedulerType;
847
+ /**
848
+ * The version of the specified scheduling software that Amazon Web Services PCS uses to manage cluster scaling and job scheduling.
849
+ */
850
+ version: String;
851
+ }
852
+ export interface SchedulerRequest {
853
+ /**
854
+ * The software Amazon Web Services PCS uses to manage cluster scaling and job scheduling.
855
+ */
856
+ type: SchedulerType;
857
+ /**
858
+ * The version of the specified scheduling software that Amazon Web Services PCS uses to manage cluster scaling and job scheduling.
859
+ */
860
+ version: String;
861
+ }
862
+ export type SchedulerType = "SLURM"|string;
863
+ export type SecurityGroupId = string;
864
+ export type SecurityGroupIdList = SecurityGroupId[];
865
+ export type SharedSecret = string;
866
+ export type Size = "SMALL"|"MEDIUM"|"LARGE"|string;
867
+ export interface SlurmAuthKey {
868
+ /**
869
+ * The Amazon Resource Name (ARN) of the the shared Slurm key.
870
+ */
871
+ secretArn: String;
872
+ /**
873
+ * The version of the shared Slurm key.
874
+ */
875
+ secretVersion: String;
876
+ }
877
+ export interface SlurmCustomSetting {
878
+ /**
879
+ * Amazon Web Services PCS supports configuration of the following Slurm parameters: Prolog , Epilog , and SelectTypeParameters .
880
+ */
881
+ parameterName: String;
882
+ /**
883
+ * The values for the configured Slurm settings.
884
+ */
885
+ parameterValue: String;
886
+ }
887
+ export type SlurmCustomSettings = SlurmCustomSetting[];
888
+ export type SpotAllocationStrategy = "lowest-price"|"capacity-optimized"|"price-capacity-optimized"|string;
889
+ export interface SpotOptions {
890
+ /**
891
+ * The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances. Amazon Web Services PCS supports lowest price, capacity optimized, and price capacity optimized. For more information, see Use allocation strategies to determine how EC2 Fleet or Spot Fleet fulfills Spot and On-Demand capacity in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to price capacity optimized.
892
+ */
893
+ allocationStrategy?: SpotAllocationStrategy;
894
+ }
895
+ export type String = string;
896
+ export type StringList = String[];
897
+ export type SubnetId = string;
898
+ export type SubnetIdList = SubnetId[];
899
+ export type SyntheticTimestamp_date_time = Date;
900
+ export type TagKey = string;
901
+ export type TagKeys = TagKey[];
902
+ export interface TagResourceRequest {
903
+ /**
904
+ * The Amazon Resource Name (ARN) of the resource.
905
+ */
906
+ resourceArn: Arn;
907
+ /**
908
+ * 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
909
+ */
910
+ tags: RequestTagMap;
911
+ }
912
+ export type TagValue = string;
913
+ export interface UntagResourceRequest {
914
+ /**
915
+ * The Amazon Resource Name (ARN) of the resource.
916
+ */
917
+ resourceArn: Arn;
918
+ /**
919
+ * 1 or more tag keys to remove from the resource. Specify only tag keys and not tag values.
920
+ */
921
+ tagKeys: TagKeys;
922
+ }
923
+ export interface UpdateComputeNodeGroupRequest {
924
+ /**
925
+ * The name or ID of the cluster of the compute node group.
926
+ */
927
+ clusterIdentifier: ClusterIdentifier;
928
+ /**
929
+ * The name or ID of the compute node group.
930
+ */
931
+ computeNodeGroupIdentifier: ComputeNodeGroupIdentifier;
932
+ /**
933
+ * The ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to launch instances. If not provided, Amazon Web Services PCS uses the AMI ID specified in the custom launch template.
934
+ */
935
+ amiId?: AmiId;
936
+ /**
937
+ * The list of subnet IDs where the compute node group provisions instances. The subnets must be in the same VPC as the cluster.
938
+ */
939
+ subnetIds?: StringList;
940
+ customLaunchTemplate?: CustomLaunchTemplate;
941
+ /**
942
+ * Specifies how EC2 instances are purchased on your behalf. Amazon Web Services PCS supports On-Demand and Spot instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.
943
+ */
944
+ purchaseOption?: PurchaseOption;
945
+ spotOptions?: SpotOptions;
946
+ /**
947
+ * Specifies the boundaries of the compute node group auto scaling.
948
+ */
949
+ scalingConfiguration?: ScalingConfigurationRequest;
950
+ /**
951
+ * The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have pcs:RegisterComputeNodeGroupInstance permissions attached to provision instances correctly.
952
+ */
953
+ iamInstanceProfileArn?: InstanceProfileArn;
954
+ /**
955
+ * Additional options related to the Slurm scheduler.
956
+ */
957
+ slurmConfiguration?: UpdateComputeNodeGroupSlurmConfigurationRequest;
958
+ /**
959
+ * 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.
960
+ */
961
+ clientToken?: SBClientToken;
962
+ }
963
+ export interface UpdateComputeNodeGroupResponse {
964
+ computeNodeGroup?: ComputeNodeGroup;
965
+ }
966
+ export interface UpdateComputeNodeGroupSlurmConfigurationRequest {
967
+ /**
968
+ * Additional Slurm-specific configuration that directly maps to Slurm settings.
969
+ */
970
+ slurmCustomSettings?: SlurmCustomSettings;
971
+ }
972
+ export interface UpdateQueueRequest {
973
+ /**
974
+ * The name or ID of the cluster of the queue.
975
+ */
976
+ clusterIdentifier: ClusterIdentifier;
977
+ /**
978
+ * The name or ID of the queue.
979
+ */
980
+ queueIdentifier: QueueIdentifier;
981
+ /**
982
+ * The list of compute node group configurations to associate with the queue. Queues assign jobs to associated compute node groups.
983
+ */
984
+ computeNodeGroupConfigurations?: ComputeNodeGroupConfigurationList;
985
+ /**
986
+ * 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.
987
+ */
988
+ clientToken?: SBClientToken;
989
+ }
990
+ export interface UpdateQueueResponse {
991
+ queue?: Queue;
992
+ }
993
+ /**
994
+ * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
995
+ */
996
+ export type apiVersion = "2023-02-10"|"latest"|string;
997
+ export interface ClientApiVersions {
998
+ /**
999
+ * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1000
+ */
1001
+ apiVersion?: apiVersion;
1002
+ }
1003
+ export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1004
+ /**
1005
+ * Contains interfaces for use with the PCS client.
1006
+ */
1007
+ export import Types = PCS;
1008
+ }
1009
+ export = PCS;