@aws-sdk/client-pcs 3.1075.0 → 3.1077.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
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultPCSHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateCluster$, CreateComputeNodeGroup$, CreateQueue$, DeleteCluster$, DeleteComputeNodeGroup$, DeleteQueue$, GetCluster$, GetComputeNodeGroup$, GetQueue$, ListClusters$, ListComputeNodeGroups$, ListQueues$, ListTagsForResource$, RegisterComputeNodeGroupInstance$, TagResource$, UntagResource$, UpdateCluster$, UpdateComputeNodeGroup$, UpdateQueue$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { PCSServiceException } = require("./models/PCSServiceException");
18
- exports.PCSServiceException = PCSServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultPCSHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "pcs",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultPCSHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,993 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://pcs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://pcs-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://pcs.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://pcs.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class PCSServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, PCSServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class AccessDeniedException extends PCSServiceException {
141
+ name = "AccessDeniedException";
142
+ $fault = "client";
143
+ constructor(opts) {
144
+ super({
145
+ name: "AccessDeniedException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
150
+ }
151
+ }
152
+ class ConflictException extends PCSServiceException {
153
+ name = "ConflictException";
154
+ $fault = "client";
155
+ resourceId;
156
+ resourceType;
157
+ constructor(opts) {
158
+ super({
159
+ name: "ConflictException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, ConflictException.prototype);
164
+ this.resourceId = opts.resourceId;
165
+ this.resourceType = opts.resourceType;
166
+ }
167
+ }
168
+ class InternalServerException extends PCSServiceException {
169
+ name = "InternalServerException";
170
+ $fault = "server";
171
+ $retryable = {};
172
+ constructor(opts) {
173
+ super({
174
+ name: "InternalServerException",
175
+ $fault: "server",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, InternalServerException.prototype);
179
+ }
180
+ }
181
+ class ResourceNotFoundException extends PCSServiceException {
182
+ name = "ResourceNotFoundException";
183
+ $fault = "client";
184
+ resourceId;
185
+ resourceType;
186
+ constructor(opts) {
187
+ super({
188
+ name: "ResourceNotFoundException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
193
+ this.resourceId = opts.resourceId;
194
+ this.resourceType = opts.resourceType;
195
+ }
196
+ }
197
+ class ServiceQuotaExceededException extends PCSServiceException {
198
+ name = "ServiceQuotaExceededException";
199
+ $fault = "client";
200
+ serviceCode;
201
+ resourceId;
202
+ resourceType;
203
+ quotaCode;
204
+ constructor(opts) {
205
+ super({
206
+ name: "ServiceQuotaExceededException",
207
+ $fault: "client",
208
+ ...opts,
209
+ });
210
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
211
+ this.serviceCode = opts.serviceCode;
212
+ this.resourceId = opts.resourceId;
213
+ this.resourceType = opts.resourceType;
214
+ this.quotaCode = opts.quotaCode;
215
+ }
216
+ }
217
+ class ThrottlingException extends PCSServiceException {
218
+ name = "ThrottlingException";
219
+ $fault = "client";
220
+ $retryable = {};
221
+ retryAfterSeconds;
222
+ constructor(opts) {
223
+ super({
224
+ name: "ThrottlingException",
225
+ $fault: "client",
226
+ ...opts,
227
+ });
228
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
229
+ this.retryAfterSeconds = opts.retryAfterSeconds;
230
+ }
231
+ }
232
+ class ValidationException extends PCSServiceException {
233
+ name = "ValidationException";
234
+ $fault = "client";
235
+ reason;
236
+ fieldList;
237
+ constructor(opts) {
238
+ super({
239
+ name: "ValidationException",
240
+ $fault: "client",
241
+ ...opts,
242
+ });
243
+ Object.setPrototypeOf(this, ValidationException.prototype);
244
+ this.reason = opts.reason;
245
+ this.fieldList = opts.fieldList;
246
+ }
247
+ }
248
+
249
+ const _A = "Accounting";
250
+ const _ADE = "AccessDeniedException";
251
+ const _AR = "AccountingRequest";
252
+ const _C = "Cluster";
253
+ const _CC = "CreateCluster";
254
+ const _CCNG = "CreateComputeNodeGroup";
255
+ const _CCNGR = "CreateComputeNodeGroupRequest";
256
+ const _CCNGRr = "CreateComputeNodeGroupResponse";
257
+ const _CCR = "CreateClusterRequest";
258
+ const _CCRr = "CreateClusterResponse";
259
+ const _CCS = "CgroupCustomSetting";
260
+ const _CCSg = "CgroupCustomSettings";
261
+ const _CE = "ConflictException";
262
+ const _CL = "ClusterList";
263
+ const _CLT = "CustomLaunchTemplate";
264
+ const _CNG = "ComputeNodeGroup";
265
+ const _CNGC = "ComputeNodeGroupConfiguration";
266
+ const _CNGCL = "ComputeNodeGroupConfigurationList";
267
+ const _CNGL = "ComputeNodeGroupList";
268
+ const _CNGS = "ComputeNodeGroupSummary";
269
+ const _CNGSC = "ComputeNodeGroupSlurmConfiguration";
270
+ const _CNGSCR = "ComputeNodeGroupSlurmConfigurationRequest";
271
+ const _CQ = "CreateQueue";
272
+ const _CQR = "CreateQueueRequest";
273
+ const _CQRr = "CreateQueueResponse";
274
+ const _CS = "ClusterSummary";
275
+ const _CSC = "ClusterSlurmConfiguration";
276
+ const _CSCR = "ClusterSlurmConfigurationRequest";
277
+ const _DC = "DeleteCluster";
278
+ const _DCNG = "DeleteComputeNodeGroup";
279
+ const _DCNGR = "DeleteComputeNodeGroupRequest";
280
+ const _DCNGRe = "DeleteComputeNodeGroupResponse";
281
+ const _DCR = "DeleteClusterRequest";
282
+ const _DCRe = "DeleteClusterResponse";
283
+ const _DQ = "DeleteQueue";
284
+ const _DQR = "DeleteQueueRequest";
285
+ const _DQRe = "DeleteQueueResponse";
286
+ const _E = "Endpoint";
287
+ const _EI = "ErrorInfo";
288
+ const _EIL = "ErrorInfoList";
289
+ const _En = "Endpoints";
290
+ const _GC = "GetCluster";
291
+ const _GCNG = "GetComputeNodeGroup";
292
+ const _GCNGR = "GetComputeNodeGroupRequest";
293
+ const _GCNGRe = "GetComputeNodeGroupResponse";
294
+ const _GCR = "GetClusterRequest";
295
+ const _GCRe = "GetClusterResponse";
296
+ const _GQ = "GetQueue";
297
+ const _GQR = "GetQueueRequest";
298
+ const _GQRe = "GetQueueResponse";
299
+ const _IC = "InstanceConfig";
300
+ const _IL = "InstanceList";
301
+ const _ISE = "InternalServerException";
302
+ const _JA = "JwtAuth";
303
+ const _JK = "JwtKey";
304
+ const _LC = "ListClusters";
305
+ const _LCNG = "ListComputeNodeGroups";
306
+ const _LCNGR = "ListComputeNodeGroupsRequest";
307
+ const _LCNGRi = "ListComputeNodeGroupsResponse";
308
+ const _LCR = "ListClustersRequest";
309
+ const _LCRi = "ListClustersResponse";
310
+ const _LQ = "ListQueues";
311
+ const _LQR = "ListQueuesRequest";
312
+ const _LQRi = "ListQueuesResponse";
313
+ const _LTFR = "ListTagsForResource";
314
+ const _LTFRR = "ListTagsForResourceRequest";
315
+ const _LTFRRi = "ListTagsForResourceResponse";
316
+ const _N = "Networking";
317
+ const _NR = "NetworkingRequest";
318
+ const _Q = "Queue";
319
+ const _QL = "QueueList";
320
+ const _QS = "QueueSummary";
321
+ const _QSC = "QueueSlurmConfiguration";
322
+ const _QSCR = "QueueSlurmConfigurationRequest";
323
+ const _RA = "Retry-After";
324
+ const _RCNGI = "RegisterComputeNodeGroupInstance";
325
+ const _RCNGIR = "RegisterComputeNodeGroupInstanceRequest";
326
+ const _RCNGIRe = "RegisterComputeNodeGroupInstanceResponse";
327
+ const _RNFE = "ResourceNotFoundException";
328
+ const _S = "Scheduler";
329
+ const _SAK = "SlurmAuthKey";
330
+ const _SC = "ScalingConfiguration";
331
+ const _SCR = "ScalingConfigurationRequest";
332
+ const _SCS = "SlurmCustomSetting";
333
+ const _SCSl = "SlurmdbdCustomSetting";
334
+ const _SCSlu = "SlurmCustomSettings";
335
+ const _SCSlur = "SlurmdbdCustomSettings";
336
+ const _SO = "SpotOptions";
337
+ const _SQEE = "ServiceQuotaExceededException";
338
+ const _SR = "SchedulerRequest";
339
+ const _SRR = "SlurmRestRequest";
340
+ const _SRl = "SlurmRest";
341
+ const _SS = "SharedSecret";
342
+ const _TE = "ThrottlingException";
343
+ const _TR = "TagResource";
344
+ const _TRR = "TagResourceRequest";
345
+ const _TRRa = "TagResourceResponse";
346
+ const _UAR = "UpdateAccountingRequest";
347
+ const _UC = "UpdateCluster";
348
+ const _UCNG = "UpdateComputeNodeGroup";
349
+ const _UCNGR = "UpdateComputeNodeGroupRequest";
350
+ const _UCNGRp = "UpdateComputeNodeGroupResponse";
351
+ const _UCNGSCR = "UpdateComputeNodeGroupSlurmConfigurationRequest";
352
+ const _UCR = "UpdateClusterRequest";
353
+ const _UCRp = "UpdateClusterResponse";
354
+ const _UCSCR = "UpdateClusterSlurmConfigurationRequest";
355
+ const _UQ = "UpdateQueue";
356
+ const _UQR = "UpdateQueueRequest";
357
+ const _UQRp = "UpdateQueueResponse";
358
+ const _UQSCR = "UpdateQueueSlurmConfigurationRequest";
359
+ const _UR = "UntagResource";
360
+ const _URR = "UntagResourceRequest";
361
+ const _URRn = "UntagResourceResponse";
362
+ const _USR = "UpdateSchedulerRequest";
363
+ const _USRR = "UpdateSlurmRestRequest";
364
+ const _VE = "ValidationException";
365
+ const _VEF = "ValidationExceptionField";
366
+ const _VEFL = "ValidationExceptionFieldList";
367
+ const _a = "arn";
368
+ const _aI = "amiId";
369
+ const _aK = "authKey";
370
+ const _aS = "allocationStrategy";
371
+ const _ac = "accounting";
372
+ const _bI = "bootstrapId";
373
+ const _c = "client";
374
+ const _cA = "createdAt";
375
+ const _cCS = "cgroupCustomSettings";
376
+ const _cI = "clusterId";
377
+ const _cIl = "clusterIdentifier";
378
+ const _cLT = "customLaunchTemplate";
379
+ const _cN = "clusterName";
380
+ const _cNG = "computeNodeGroup";
381
+ const _cNGC = "computeNodeGroupConfigurations";
382
+ const _cNGI = "computeNodeGroupId";
383
+ const _cNGIo = "computeNodeGroupIdentifier";
384
+ const _cNGN = "computeNodeGroupName";
385
+ const _cNGo = "computeNodeGroups";
386
+ const _cT = "clientToken";
387
+ const _cl = "cluster";
388
+ const _clu = "clusters";
389
+ const _co = "code";
390
+ const _dPTID = "defaultPurgeTimeInDays";
391
+ const _e = "error";
392
+ const _eI = "errorInfo";
393
+ const _en = "endpoints";
394
+ const _fL = "fieldList";
395
+ const _hE = "httpError";
396
+ const _hH = "httpHeader";
397
+ const _hQ = "httpQuery";
398
+ const _i = "id";
399
+ const _iA = "ipv6Address";
400
+ const _iC = "instanceConfigs";
401
+ const _iIPA = "iamInstanceProfileArn";
402
+ const _iT = "instanceType";
403
+ const _jA = "jwtAuth";
404
+ const _jK = "jwtKey";
405
+ const _m = "message";
406
+ const _mA = "modifiedAt";
407
+ const _mIC = "minInstanceCount";
408
+ const _mICa = "maxInstanceCount";
409
+ const _mR = "maxResults";
410
+ const _mo = "mode";
411
+ const _n = "name";
412
+ const _nID = "nodeID";
413
+ const _nT = "nextToken";
414
+ const _nTe = "networkType";
415
+ const _ne = "networking";
416
+ const _p = "port";
417
+ const _pIA = "privateIpAddress";
418
+ const _pIAu = "publicIpAddress";
419
+ const _pN = "parameterName";
420
+ const _pO = "purchaseOption";
421
+ const _pV = "parameterValue";
422
+ const _q = "queue";
423
+ const _qC = "quotaCode";
424
+ const _qI = "queueIdentifier";
425
+ const _qN = "queueName";
426
+ const _qu = "queues";
427
+ const _r = "reason";
428
+ const _rA = "resourceArn";
429
+ const _rAS = "retryAfterSeconds";
430
+ const _rI = "resourceId";
431
+ const _rT = "resourceType";
432
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pcs";
433
+ const _sA = "secretArn";
434
+ const _sC = "serviceCode";
435
+ const _sCS = "slurmCustomSettings";
436
+ const _sCSl = "slurmdbdCustomSettings";
437
+ const _sCc = "scalingConfiguration";
438
+ const _sCl = "slurmConfiguration";
439
+ const _sDITIS = "scaleDownIdleTimeInSeconds";
440
+ const _sGI = "securityGroupIds";
441
+ const _sI = "subnetIds";
442
+ const _sO = "spotOptions";
443
+ const _sR = "slurmRest";
444
+ const _sS = "sharedSecret";
445
+ const _sV = "secretVersion";
446
+ const _sc = "scheduler";
447
+ const _se = "server";
448
+ const _si = "size";
449
+ const _st = "status";
450
+ const _t = "tags";
451
+ const _tK = "tagKeys";
452
+ const _ty = "type";
453
+ const _v = "version";
454
+ const n0 = "com.amazonaws.pcs";
455
+ const _s_registry = TypeRegistry.for(_s);
456
+ var PCSServiceException$ = [-3, _s, "PCSServiceException", 0, [], []];
457
+ _s_registry.registerError(PCSServiceException$, PCSServiceException);
458
+ const n0_registry = TypeRegistry.for(n0);
459
+ var AccessDeniedException$ = [-3, n0, _ADE,
460
+ { [_e]: _c, [_hE]: 403 },
461
+ [_m],
462
+ [0], 1
463
+ ];
464
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
465
+ var ConflictException$ = [-3, n0, _CE,
466
+ { [_e]: _c, [_hE]: 409 },
467
+ [_m, _rI, _rT],
468
+ [0, 0, 0], 3
469
+ ];
470
+ n0_registry.registerError(ConflictException$, ConflictException);
471
+ var InternalServerException$ = [-3, n0, _ISE,
472
+ { [_e]: _se, [_hE]: 500 },
473
+ [_m],
474
+ [0], 1
475
+ ];
476
+ n0_registry.registerError(InternalServerException$, InternalServerException);
477
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
478
+ { [_e]: _c, [_hE]: 404 },
479
+ [_m, _rI, _rT],
480
+ [0, 0, 0], 3
481
+ ];
482
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
483
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
484
+ { [_e]: _c, [_hE]: 402 },
485
+ [_m, _sC, _rI, _rT, _qC],
486
+ [0, 0, 0, 0, 0], 2
487
+ ];
488
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
489
+ var ThrottlingException$ = [-3, n0, _TE,
490
+ { [_e]: _c, [_hE]: 429 },
491
+ [_m, _rAS],
492
+ [0, [1, { [_hH]: _RA }]], 1
493
+ ];
494
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
495
+ var ValidationException$ = [-3, n0, _VE,
496
+ { [_e]: _c, [_hE]: 400 },
497
+ [_m, _r, _fL],
498
+ [0, 0, () => ValidationExceptionFieldList], 2
499
+ ];
500
+ n0_registry.registerError(ValidationException$, ValidationException);
501
+ const errorTypeRegistries = [
502
+ _s_registry,
503
+ n0_registry,
504
+ ];
505
+ var SharedSecret = [0, n0, _SS, 8, 0];
506
+ var Accounting$ = [3, n0, _A,
507
+ 0,
508
+ [_mo, _dPTID],
509
+ [0, 1], 1
510
+ ];
511
+ var AccountingRequest$ = [3, n0, _AR,
512
+ 0,
513
+ [_mo, _dPTID],
514
+ [0, 1], 1
515
+ ];
516
+ var CgroupCustomSetting$ = [3, n0, _CCS,
517
+ 0,
518
+ [_pN, _pV],
519
+ [0, 0], 2
520
+ ];
521
+ var Cluster$ = [3, n0, _C,
522
+ 0,
523
+ [_n, _i, _a, _st, _cA, _mA, _sc, _si, _ne, _sCl, _en, _eI],
524
+ [0, 0, 0, 0, 5, 5, () => Scheduler$, 0, () => Networking$, () => ClusterSlurmConfiguration$, () => Endpoints, () => ErrorInfoList], 9
525
+ ];
526
+ var ClusterSlurmConfiguration$ = [3, n0, _CSC,
527
+ 0,
528
+ [_sDITIS, _sCS, _sCSl, _cCS, _aK, _jA, _ac, _sR],
529
+ [1, () => SlurmCustomSettings, () => SlurmdbdCustomSettings, () => CgroupCustomSettings, () => SlurmAuthKey$, () => JwtAuth$, () => Accounting$, () => SlurmRest$]
530
+ ];
531
+ var ClusterSlurmConfigurationRequest$ = [3, n0, _CSCR,
532
+ 0,
533
+ [_sDITIS, _sCS, _sCSl, _cCS, _ac, _sR],
534
+ [1, () => SlurmCustomSettings, () => SlurmdbdCustomSettings, () => CgroupCustomSettings, () => AccountingRequest$, () => SlurmRestRequest$]
535
+ ];
536
+ var ClusterSummary$ = [3, n0, _CS,
537
+ 0,
538
+ [_n, _i, _a, _cA, _mA, _st],
539
+ [0, 0, 0, 5, 5, 0], 6
540
+ ];
541
+ var ComputeNodeGroup$ = [3, n0, _CNG,
542
+ 0,
543
+ [_n, _i, _a, _cI, _cA, _mA, _st, _sI, _cLT, _iIPA, _sCc, _iC, _aI, _pO, _sO, _sCl, _eI],
544
+ [0, 0, 0, 0, 5, 5, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => ScalingConfiguration$, () => InstanceList, 0, 0, () => SpotOptions$, () => ComputeNodeGroupSlurmConfiguration$, () => ErrorInfoList], 12
545
+ ];
546
+ var ComputeNodeGroupConfiguration$ = [3, n0, _CNGC,
547
+ 0,
548
+ [_cNGI],
549
+ [0]
550
+ ];
551
+ var ComputeNodeGroupSlurmConfiguration$ = [3, n0, _CNGSC,
552
+ 0,
553
+ [_sDITIS, _sCS],
554
+ [1, () => SlurmCustomSettings]
555
+ ];
556
+ var ComputeNodeGroupSlurmConfigurationRequest$ = [3, n0, _CNGSCR,
557
+ 0,
558
+ [_sDITIS, _sCS],
559
+ [1, () => SlurmCustomSettings]
560
+ ];
561
+ var ComputeNodeGroupSummary$ = [3, n0, _CNGS,
562
+ 0,
563
+ [_n, _i, _a, _cI, _cA, _mA, _st],
564
+ [0, 0, 0, 0, 5, 5, 0], 7
565
+ ];
566
+ var CreateClusterRequest$ = [3, n0, _CCR,
567
+ 0,
568
+ [_cN, _sc, _si, _ne, _sCl, _cT, _t],
569
+ [0, () => SchedulerRequest$, 0, () => NetworkingRequest$, () => ClusterSlurmConfigurationRequest$, [0, 4], 128 | 0], 4
570
+ ];
571
+ var CreateClusterResponse$ = [3, n0, _CCRr,
572
+ 0,
573
+ [_cl],
574
+ [() => Cluster$]
575
+ ];
576
+ var CreateComputeNodeGroupRequest$ = [3, n0, _CCNGR,
577
+ 0,
578
+ [_cIl, _cNGN, _sI, _cLT, _iIPA, _sCc, _iC, _aI, _pO, _sO, _sCl, _cT, _t],
579
+ [0, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => ScalingConfigurationRequest$, () => InstanceList, 0, 0, () => SpotOptions$, () => ComputeNodeGroupSlurmConfigurationRequest$, [0, 4], 128 | 0], 7
580
+ ];
581
+ var CreateComputeNodeGroupResponse$ = [3, n0, _CCNGRr,
582
+ 0,
583
+ [_cNG],
584
+ [() => ComputeNodeGroup$]
585
+ ];
586
+ var CreateQueueRequest$ = [3, n0, _CQR,
587
+ 0,
588
+ [_cIl, _qN, _cNGC, _sCl, _cT, _t],
589
+ [0, 0, () => ComputeNodeGroupConfigurationList, () => QueueSlurmConfigurationRequest$, [0, 4], 128 | 0], 2
590
+ ];
591
+ var CreateQueueResponse$ = [3, n0, _CQRr,
592
+ 0,
593
+ [_q],
594
+ [() => Queue$]
595
+ ];
596
+ var CustomLaunchTemplate$ = [3, n0, _CLT,
597
+ 0,
598
+ [_i, _v],
599
+ [0, 0], 2
600
+ ];
601
+ var DeleteClusterRequest$ = [3, n0, _DCR,
602
+ 0,
603
+ [_cIl, _cT],
604
+ [0, [0, 4]], 1
605
+ ];
606
+ var DeleteClusterResponse$ = [3, n0, _DCRe,
607
+ 0,
608
+ [],
609
+ []
610
+ ];
611
+ var DeleteComputeNodeGroupRequest$ = [3, n0, _DCNGR,
612
+ 0,
613
+ [_cIl, _cNGIo, _cT],
614
+ [0, 0, [0, 4]], 2
615
+ ];
616
+ var DeleteComputeNodeGroupResponse$ = [3, n0, _DCNGRe,
617
+ 0,
618
+ [],
619
+ []
620
+ ];
621
+ var DeleteQueueRequest$ = [3, n0, _DQR,
622
+ 0,
623
+ [_cIl, _qI, _cT],
624
+ [0, 0, [0, 4]], 2
625
+ ];
626
+ var DeleteQueueResponse$ = [3, n0, _DQRe,
627
+ 0,
628
+ [],
629
+ []
630
+ ];
631
+ var Endpoint$ = [3, n0, _E,
632
+ 0,
633
+ [_ty, _pIA, _p, _pIAu, _iA],
634
+ [0, 0, 0, 0, 0], 3
635
+ ];
636
+ var ErrorInfo$ = [3, n0, _EI,
637
+ 0,
638
+ [_co, _m],
639
+ [0, 0]
640
+ ];
641
+ var GetClusterRequest$ = [3, n0, _GCR,
642
+ 0,
643
+ [_cIl],
644
+ [0], 1
645
+ ];
646
+ var GetClusterResponse$ = [3, n0, _GCRe,
647
+ 0,
648
+ [_cl],
649
+ [() => Cluster$]
650
+ ];
651
+ var GetComputeNodeGroupRequest$ = [3, n0, _GCNGR,
652
+ 0,
653
+ [_cIl, _cNGIo],
654
+ [0, 0], 2
655
+ ];
656
+ var GetComputeNodeGroupResponse$ = [3, n0, _GCNGRe,
657
+ 0,
658
+ [_cNG],
659
+ [() => ComputeNodeGroup$]
660
+ ];
661
+ var GetQueueRequest$ = [3, n0, _GQR,
662
+ 0,
663
+ [_cIl, _qI],
664
+ [0, 0], 2
665
+ ];
666
+ var GetQueueResponse$ = [3, n0, _GQRe,
667
+ 0,
668
+ [_q],
669
+ [() => Queue$]
670
+ ];
671
+ var InstanceConfig$ = [3, n0, _IC,
672
+ 0,
673
+ [_iT],
674
+ [0]
675
+ ];
676
+ var JwtAuth$ = [3, n0, _JA,
677
+ 0,
678
+ [_jK],
679
+ [() => JwtKey$]
680
+ ];
681
+ var JwtKey$ = [3, n0, _JK,
682
+ 0,
683
+ [_sA, _sV],
684
+ [0, 0], 2
685
+ ];
686
+ var ListClustersRequest$ = [3, n0, _LCR,
687
+ 0,
688
+ [_nT, _mR],
689
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
690
+ ];
691
+ var ListClustersResponse$ = [3, n0, _LCRi,
692
+ 0,
693
+ [_clu, _nT],
694
+ [() => ClusterList, 0], 1
695
+ ];
696
+ var ListComputeNodeGroupsRequest$ = [3, n0, _LCNGR,
697
+ 0,
698
+ [_cIl, _nT, _mR],
699
+ [0, 0, 1], 1
700
+ ];
701
+ var ListComputeNodeGroupsResponse$ = [3, n0, _LCNGRi,
702
+ 0,
703
+ [_cNGo, _nT],
704
+ [() => ComputeNodeGroupList, 0], 1
705
+ ];
706
+ var ListQueuesRequest$ = [3, n0, _LQR,
707
+ 0,
708
+ [_cIl, _nT, _mR],
709
+ [0, 0, 1], 1
710
+ ];
711
+ var ListQueuesResponse$ = [3, n0, _LQRi,
712
+ 0,
713
+ [_qu, _nT],
714
+ [() => QueueList, 0], 1
715
+ ];
716
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
717
+ 0,
718
+ [_rA],
719
+ [0], 1
720
+ ];
721
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
722
+ 0,
723
+ [_t],
724
+ [128 | 0]
725
+ ];
726
+ var Networking$ = [3, n0, _N,
727
+ 0,
728
+ [_sI, _sGI, _nTe],
729
+ [64 | 0, 64 | 0, 0]
730
+ ];
731
+ var NetworkingRequest$ = [3, n0, _NR,
732
+ 0,
733
+ [_sI, _sGI, _nTe],
734
+ [64 | 0, 64 | 0, 0]
735
+ ];
736
+ var Queue$ = [3, n0, _Q,
737
+ 0,
738
+ [_n, _i, _a, _cI, _cA, _mA, _st, _cNGC, _sCl, _eI],
739
+ [0, 0, 0, 0, 5, 5, 0, () => ComputeNodeGroupConfigurationList, () => QueueSlurmConfiguration$, () => ErrorInfoList], 8
740
+ ];
741
+ var QueueSlurmConfiguration$ = [3, n0, _QSC,
742
+ 0,
743
+ [_sCS],
744
+ [() => SlurmCustomSettings]
745
+ ];
746
+ var QueueSlurmConfigurationRequest$ = [3, n0, _QSCR,
747
+ 0,
748
+ [_sCS],
749
+ [() => SlurmCustomSettings]
750
+ ];
751
+ var QueueSummary$ = [3, n0, _QS,
752
+ 0,
753
+ [_n, _i, _a, _cI, _cA, _mA, _st],
754
+ [0, 0, 0, 0, 5, 5, 0], 7
755
+ ];
756
+ var RegisterComputeNodeGroupInstanceRequest$ = [3, n0, _RCNGIR,
757
+ 0,
758
+ [_cIl, _bI],
759
+ [0, 0], 2
760
+ ];
761
+ var RegisterComputeNodeGroupInstanceResponse$ = [3, n0, _RCNGIRe,
762
+ 0,
763
+ [_nID, _sS, _en],
764
+ [0, [() => SharedSecret, 0], () => Endpoints], 3
765
+ ];
766
+ var ScalingConfiguration$ = [3, n0, _SC,
767
+ 0,
768
+ [_mIC, _mICa],
769
+ [1, 1], 2
770
+ ];
771
+ var ScalingConfigurationRequest$ = [3, n0, _SCR,
772
+ 0,
773
+ [_mIC, _mICa],
774
+ [1, 1], 2
775
+ ];
776
+ var Scheduler$ = [3, n0, _S,
777
+ 0,
778
+ [_ty, _v],
779
+ [0, 0], 2
780
+ ];
781
+ var SchedulerRequest$ = [3, n0, _SR,
782
+ 0,
783
+ [_ty, _v],
784
+ [0, 0], 2
785
+ ];
786
+ var SlurmAuthKey$ = [3, n0, _SAK,
787
+ 0,
788
+ [_sA, _sV],
789
+ [0, 0], 2
790
+ ];
791
+ var SlurmCustomSetting$ = [3, n0, _SCS,
792
+ 0,
793
+ [_pN, _pV],
794
+ [0, 0], 2
795
+ ];
796
+ var SlurmdbdCustomSetting$ = [3, n0, _SCSl,
797
+ 0,
798
+ [_pN, _pV],
799
+ [0, 0], 2
800
+ ];
801
+ var SlurmRest$ = [3, n0, _SRl,
802
+ 0,
803
+ [_mo],
804
+ [0], 1
805
+ ];
806
+ var SlurmRestRequest$ = [3, n0, _SRR,
807
+ 0,
808
+ [_mo],
809
+ [0], 1
810
+ ];
811
+ var SpotOptions$ = [3, n0, _SO,
812
+ 0,
813
+ [_aS],
814
+ [0]
815
+ ];
816
+ var TagResourceRequest$ = [3, n0, _TRR,
817
+ 0,
818
+ [_rA, _t],
819
+ [0, 128 | 0], 2
820
+ ];
821
+ var TagResourceResponse$ = [3, n0, _TRRa,
822
+ 0,
823
+ [],
824
+ []
825
+ ];
826
+ var UntagResourceRequest$ = [3, n0, _URR,
827
+ 0,
828
+ [_rA, _tK],
829
+ [[0, 1], 64 | 0], 2
830
+ ];
831
+ var UntagResourceResponse$ = [3, n0, _URRn,
832
+ 0,
833
+ [],
834
+ []
835
+ ];
836
+ var UpdateAccountingRequest$ = [3, n0, _UAR,
837
+ 0,
838
+ [_dPTID, _mo],
839
+ [1, 0]
840
+ ];
841
+ var UpdateClusterRequest$ = [3, n0, _UCR,
842
+ 0,
843
+ [_cIl, _cT, _sCl, _sc],
844
+ [0, [0, 4], () => UpdateClusterSlurmConfigurationRequest$, () => UpdateSchedulerRequest$], 1
845
+ ];
846
+ var UpdateClusterResponse$ = [3, n0, _UCRp,
847
+ 0,
848
+ [_cl],
849
+ [() => Cluster$]
850
+ ];
851
+ var UpdateClusterSlurmConfigurationRequest$ = [3, n0, _UCSCR,
852
+ 0,
853
+ [_sDITIS, _sCS, _sCSl, _cCS, _ac, _sR],
854
+ [1, () => SlurmCustomSettings, () => SlurmdbdCustomSettings, () => CgroupCustomSettings, () => UpdateAccountingRequest$, () => UpdateSlurmRestRequest$]
855
+ ];
856
+ var UpdateComputeNodeGroupRequest$ = [3, n0, _UCNGR,
857
+ 0,
858
+ [_cIl, _cNGIo, _aI, _sI, _cLT, _pO, _sO, _sCc, _iIPA, _sCl, _cT],
859
+ [0, 0, 0, 64 | 0, () => CustomLaunchTemplate$, 0, () => SpotOptions$, () => ScalingConfigurationRequest$, 0, () => UpdateComputeNodeGroupSlurmConfigurationRequest$, [0, 4]], 2
860
+ ];
861
+ var UpdateComputeNodeGroupResponse$ = [3, n0, _UCNGRp,
862
+ 0,
863
+ [_cNG],
864
+ [() => ComputeNodeGroup$]
865
+ ];
866
+ var UpdateComputeNodeGroupSlurmConfigurationRequest$ = [3, n0, _UCNGSCR,
867
+ 0,
868
+ [_sDITIS, _sCS],
869
+ [1, () => SlurmCustomSettings]
870
+ ];
871
+ var UpdateQueueRequest$ = [3, n0, _UQR,
872
+ 0,
873
+ [_cIl, _qI, _cNGC, _sCl, _cT],
874
+ [0, 0, () => ComputeNodeGroupConfigurationList, () => UpdateQueueSlurmConfigurationRequest$, [0, 4]], 2
875
+ ];
876
+ var UpdateQueueResponse$ = [3, n0, _UQRp,
877
+ 0,
878
+ [_q],
879
+ [() => Queue$]
880
+ ];
881
+ var UpdateQueueSlurmConfigurationRequest$ = [3, n0, _UQSCR,
882
+ 0,
883
+ [_sCS],
884
+ [() => SlurmCustomSettings]
885
+ ];
886
+ var UpdateSchedulerRequest$ = [3, n0, _USR,
887
+ 0,
888
+ [_v],
889
+ [0], 1
890
+ ];
891
+ var UpdateSlurmRestRequest$ = [3, n0, _USRR,
892
+ 0,
893
+ [_mo],
894
+ [0]
895
+ ];
896
+ var ValidationExceptionField$ = [3, n0, _VEF,
897
+ 0,
898
+ [_n, _m],
899
+ [0, 0], 2
900
+ ];
901
+ var CgroupCustomSettings = [1, n0, _CCSg,
902
+ 0, () => CgroupCustomSetting$
903
+ ];
904
+ var ClusterList = [1, n0, _CL,
905
+ 0, () => ClusterSummary$
906
+ ];
907
+ var ComputeNodeGroupConfigurationList = [1, n0, _CNGCL,
908
+ 0, () => ComputeNodeGroupConfiguration$
909
+ ];
910
+ var ComputeNodeGroupList = [1, n0, _CNGL,
911
+ 0, () => ComputeNodeGroupSummary$
912
+ ];
913
+ var Endpoints = [1, n0, _En,
914
+ 0, () => Endpoint$
915
+ ];
916
+ var ErrorInfoList = [1, n0, _EIL,
917
+ 0, () => ErrorInfo$
918
+ ];
919
+ var InstanceList = [1, n0, _IL,
920
+ 0, () => InstanceConfig$
921
+ ];
922
+ var QueueList = [1, n0, _QL,
923
+ 0, () => QueueSummary$
924
+ ];
925
+ var SlurmCustomSettings = [1, n0, _SCSlu,
926
+ 0, () => SlurmCustomSetting$
927
+ ];
928
+ var SlurmdbdCustomSettings = [1, n0, _SCSlur,
929
+ 0, () => SlurmdbdCustomSetting$
930
+ ];
931
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
932
+ 0, () => ValidationExceptionField$
933
+ ];
934
+ var CreateCluster$ = [9, n0, _CC,
935
+ 2, () => CreateClusterRequest$, () => CreateClusterResponse$
936
+ ];
937
+ var CreateComputeNodeGroup$ = [9, n0, _CCNG,
938
+ 2, () => CreateComputeNodeGroupRequest$, () => CreateComputeNodeGroupResponse$
939
+ ];
940
+ var CreateQueue$ = [9, n0, _CQ,
941
+ 2, () => CreateQueueRequest$, () => CreateQueueResponse$
942
+ ];
943
+ var DeleteCluster$ = [9, n0, _DC,
944
+ 2, () => DeleteClusterRequest$, () => DeleteClusterResponse$
945
+ ];
946
+ var DeleteComputeNodeGroup$ = [9, n0, _DCNG,
947
+ 2, () => DeleteComputeNodeGroupRequest$, () => DeleteComputeNodeGroupResponse$
948
+ ];
949
+ var DeleteQueue$ = [9, n0, _DQ,
950
+ 2, () => DeleteQueueRequest$, () => DeleteQueueResponse$
951
+ ];
952
+ var GetCluster$ = [9, n0, _GC,
953
+ 0, () => GetClusterRequest$, () => GetClusterResponse$
954
+ ];
955
+ var GetComputeNodeGroup$ = [9, n0, _GCNG,
956
+ 0, () => GetComputeNodeGroupRequest$, () => GetComputeNodeGroupResponse$
957
+ ];
958
+ var GetQueue$ = [9, n0, _GQ,
959
+ 0, () => GetQueueRequest$, () => GetQueueResponse$
960
+ ];
961
+ var ListClusters$ = [9, n0, _LC,
962
+ 0, () => ListClustersRequest$, () => ListClustersResponse$
963
+ ];
964
+ var ListComputeNodeGroups$ = [9, n0, _LCNG,
965
+ 0, () => ListComputeNodeGroupsRequest$, () => ListComputeNodeGroupsResponse$
966
+ ];
967
+ var ListQueues$ = [9, n0, _LQ,
968
+ 0, () => ListQueuesRequest$, () => ListQueuesResponse$
969
+ ];
970
+ var ListTagsForResource$ = [9, n0, _LTFR,
971
+ 0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
972
+ ];
973
+ var RegisterComputeNodeGroupInstance$ = [9, n0, _RCNGI,
974
+ 0, () => RegisterComputeNodeGroupInstanceRequest$, () => RegisterComputeNodeGroupInstanceResponse$
975
+ ];
976
+ var TagResource$ = [9, n0, _TR,
977
+ 2, () => TagResourceRequest$, () => TagResourceResponse$
978
+ ];
979
+ var UntagResource$ = [9, n0, _UR,
980
+ 2, () => UntagResourceRequest$, () => UntagResourceResponse$
981
+ ];
982
+ var UpdateCluster$ = [9, n0, _UC,
983
+ 2, () => UpdateClusterRequest$, () => UpdateClusterResponse$
984
+ ];
985
+ var UpdateComputeNodeGroup$ = [9, n0, _UCNG,
986
+ 2, () => UpdateComputeNodeGroupRequest$, () => UpdateComputeNodeGroupResponse$
987
+ ];
988
+ var UpdateQueue$ = [9, n0, _UQ,
989
+ 2, () => UpdateQueueRequest$, () => UpdateQueueResponse$
990
+ ];
991
+
992
+ const getRuntimeConfig$1 = (config) => {
993
+ return {
994
+ apiVersion: "2023-02-10",
995
+ base64Decoder: config?.base64Decoder ?? fromBase64,
996
+ base64Encoder: config?.base64Encoder ?? toBase64,
997
+ disableHostPrefix: config?.disableHostPrefix ?? false,
998
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
999
+ extensions: config?.extensions ?? [],
1000
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPCSHttpAuthSchemeProvider,
1001
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
1002
+ {
1003
+ schemeId: "aws.auth#sigv4",
1004
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
1005
+ signer: new AwsSdkSigV4Signer(),
1006
+ },
1007
+ ],
1008
+ logger: config?.logger ?? new NoOpLogger(),
1009
+ protocol: config?.protocol ?? AwsJson1_0Protocol,
1010
+ protocolSettings: config?.protocolSettings ?? {
1011
+ defaultNamespace: "com.amazonaws.pcs",
1012
+ errorTypeRegistries,
1013
+ version: "2023-02-10",
1014
+ serviceTarget: "AWSParallelComputingService",
1015
+ },
1016
+ serviceId: config?.serviceId ?? "PCS",
1017
+ sha256: config?.sha256 ?? Sha256,
1018
+ urlParser: config?.urlParser ?? parseUrl,
1019
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1020
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
1021
+ };
1022
+ };
1023
+
1024
+ const getRuntimeConfig = (config) => {
1025
+ emitWarningIfUnsupportedVersion(process.version);
1026
+ const defaultsMode = resolveDefaultsModeConfig(config);
1027
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
1028
+ const clientSharedValues = getRuntimeConfig$1(config);
1029
+ emitWarningIfUnsupportedVersion$1(process.version);
1030
+ const loaderConfig = {
1031
+ profile: config?.profile,
1032
+ logger: clientSharedValues.logger,
1033
+ };
1034
+ return {
1035
+ ...clientSharedValues,
1036
+ ...config,
1037
+ runtime: "node",
1038
+ defaultsMode,
1039
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1040
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1041
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1042
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1043
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1044
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1045
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
1046
+ retryMode: config?.retryMode ??
1047
+ loadConfig({
1048
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1049
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1050
+ }, config),
1051
+ streamCollector: config?.streamCollector ?? streamCollector,
1052
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1053
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1054
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1055
+ };
1056
+ };
1057
+
34
1058
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
1059
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
1060
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -455,39 +1479,154 @@ const QueueStatus = {
455
1479
  UPDATING: "UPDATING",
456
1480
  };
457
1481
 
1482
+ exports.AccessDeniedException = AccessDeniedException;
1483
+ exports.AccessDeniedException$ = AccessDeniedException$;
1484
+ exports.Accounting$ = Accounting$;
458
1485
  exports.AccountingMode = AccountingMode;
1486
+ exports.AccountingRequest$ = AccountingRequest$;
1487
+ exports.CgroupCustomSetting$ = CgroupCustomSetting$;
1488
+ exports.Cluster$ = Cluster$;
1489
+ exports.ClusterSlurmConfiguration$ = ClusterSlurmConfiguration$;
1490
+ exports.ClusterSlurmConfigurationRequest$ = ClusterSlurmConfigurationRequest$;
459
1491
  exports.ClusterStatus = ClusterStatus;
1492
+ exports.ClusterSummary$ = ClusterSummary$;
1493
+ exports.ComputeNodeGroup$ = ComputeNodeGroup$;
1494
+ exports.ComputeNodeGroupConfiguration$ = ComputeNodeGroupConfiguration$;
1495
+ exports.ComputeNodeGroupSlurmConfiguration$ = ComputeNodeGroupSlurmConfiguration$;
1496
+ exports.ComputeNodeGroupSlurmConfigurationRequest$ = ComputeNodeGroupSlurmConfigurationRequest$;
460
1497
  exports.ComputeNodeGroupStatus = ComputeNodeGroupStatus;
1498
+ exports.ComputeNodeGroupSummary$ = ComputeNodeGroupSummary$;
1499
+ exports.ConflictException = ConflictException;
1500
+ exports.ConflictException$ = ConflictException$;
1501
+ exports.CreateCluster$ = CreateCluster$;
461
1502
  exports.CreateClusterCommand = CreateClusterCommand;
1503
+ exports.CreateClusterRequest$ = CreateClusterRequest$;
1504
+ exports.CreateClusterResponse$ = CreateClusterResponse$;
1505
+ exports.CreateComputeNodeGroup$ = CreateComputeNodeGroup$;
462
1506
  exports.CreateComputeNodeGroupCommand = CreateComputeNodeGroupCommand;
1507
+ exports.CreateComputeNodeGroupRequest$ = CreateComputeNodeGroupRequest$;
1508
+ exports.CreateComputeNodeGroupResponse$ = CreateComputeNodeGroupResponse$;
1509
+ exports.CreateQueue$ = CreateQueue$;
463
1510
  exports.CreateQueueCommand = CreateQueueCommand;
1511
+ exports.CreateQueueRequest$ = CreateQueueRequest$;
1512
+ exports.CreateQueueResponse$ = CreateQueueResponse$;
1513
+ exports.CustomLaunchTemplate$ = CustomLaunchTemplate$;
1514
+ exports.DeleteCluster$ = DeleteCluster$;
464
1515
  exports.DeleteClusterCommand = DeleteClusterCommand;
1516
+ exports.DeleteClusterRequest$ = DeleteClusterRequest$;
1517
+ exports.DeleteClusterResponse$ = DeleteClusterResponse$;
1518
+ exports.DeleteComputeNodeGroup$ = DeleteComputeNodeGroup$;
465
1519
  exports.DeleteComputeNodeGroupCommand = DeleteComputeNodeGroupCommand;
1520
+ exports.DeleteComputeNodeGroupRequest$ = DeleteComputeNodeGroupRequest$;
1521
+ exports.DeleteComputeNodeGroupResponse$ = DeleteComputeNodeGroupResponse$;
1522
+ exports.DeleteQueue$ = DeleteQueue$;
466
1523
  exports.DeleteQueueCommand = DeleteQueueCommand;
1524
+ exports.DeleteQueueRequest$ = DeleteQueueRequest$;
1525
+ exports.DeleteQueueResponse$ = DeleteQueueResponse$;
1526
+ exports.Endpoint$ = Endpoint$;
467
1527
  exports.EndpointType = EndpointType;
1528
+ exports.ErrorInfo$ = ErrorInfo$;
1529
+ exports.GetCluster$ = GetCluster$;
468
1530
  exports.GetClusterCommand = GetClusterCommand;
1531
+ exports.GetClusterRequest$ = GetClusterRequest$;
1532
+ exports.GetClusterResponse$ = GetClusterResponse$;
1533
+ exports.GetComputeNodeGroup$ = GetComputeNodeGroup$;
469
1534
  exports.GetComputeNodeGroupCommand = GetComputeNodeGroupCommand;
1535
+ exports.GetComputeNodeGroupRequest$ = GetComputeNodeGroupRequest$;
1536
+ exports.GetComputeNodeGroupResponse$ = GetComputeNodeGroupResponse$;
1537
+ exports.GetQueue$ = GetQueue$;
470
1538
  exports.GetQueueCommand = GetQueueCommand;
1539
+ exports.GetQueueRequest$ = GetQueueRequest$;
1540
+ exports.GetQueueResponse$ = GetQueueResponse$;
1541
+ exports.InstanceConfig$ = InstanceConfig$;
1542
+ exports.InternalServerException = InternalServerException;
1543
+ exports.InternalServerException$ = InternalServerException$;
1544
+ exports.JwtAuth$ = JwtAuth$;
1545
+ exports.JwtKey$ = JwtKey$;
1546
+ exports.ListClusters$ = ListClusters$;
471
1547
  exports.ListClustersCommand = ListClustersCommand;
1548
+ exports.ListClustersRequest$ = ListClustersRequest$;
1549
+ exports.ListClustersResponse$ = ListClustersResponse$;
1550
+ exports.ListComputeNodeGroups$ = ListComputeNodeGroups$;
472
1551
  exports.ListComputeNodeGroupsCommand = ListComputeNodeGroupsCommand;
1552
+ exports.ListComputeNodeGroupsRequest$ = ListComputeNodeGroupsRequest$;
1553
+ exports.ListComputeNodeGroupsResponse$ = ListComputeNodeGroupsResponse$;
1554
+ exports.ListQueues$ = ListQueues$;
473
1555
  exports.ListQueuesCommand = ListQueuesCommand;
1556
+ exports.ListQueuesRequest$ = ListQueuesRequest$;
1557
+ exports.ListQueuesResponse$ = ListQueuesResponse$;
1558
+ exports.ListTagsForResource$ = ListTagsForResource$;
474
1559
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1560
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1561
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
475
1562
  exports.NetworkType = NetworkType;
1563
+ exports.Networking$ = Networking$;
1564
+ exports.NetworkingRequest$ = NetworkingRequest$;
476
1565
  exports.PCS = PCS;
477
1566
  exports.PCSClient = PCSClient;
1567
+ exports.PCSServiceException = PCSServiceException;
1568
+ exports.PCSServiceException$ = PCSServiceException$;
478
1569
  exports.PurchaseOption = PurchaseOption;
1570
+ exports.Queue$ = Queue$;
1571
+ exports.QueueSlurmConfiguration$ = QueueSlurmConfiguration$;
1572
+ exports.QueueSlurmConfigurationRequest$ = QueueSlurmConfigurationRequest$;
479
1573
  exports.QueueStatus = QueueStatus;
1574
+ exports.QueueSummary$ = QueueSummary$;
1575
+ exports.RegisterComputeNodeGroupInstance$ = RegisterComputeNodeGroupInstance$;
480
1576
  exports.RegisterComputeNodeGroupInstanceCommand = RegisterComputeNodeGroupInstanceCommand;
1577
+ exports.RegisterComputeNodeGroupInstanceRequest$ = RegisterComputeNodeGroupInstanceRequest$;
1578
+ exports.RegisterComputeNodeGroupInstanceResponse$ = RegisterComputeNodeGroupInstanceResponse$;
1579
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1580
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1581
+ exports.ScalingConfiguration$ = ScalingConfiguration$;
1582
+ exports.ScalingConfigurationRequest$ = ScalingConfigurationRequest$;
1583
+ exports.Scheduler$ = Scheduler$;
1584
+ exports.SchedulerRequest$ = SchedulerRequest$;
481
1585
  exports.SchedulerType = SchedulerType;
1586
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1587
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
482
1588
  exports.Size = Size;
1589
+ exports.SlurmAuthKey$ = SlurmAuthKey$;
1590
+ exports.SlurmCustomSetting$ = SlurmCustomSetting$;
1591
+ exports.SlurmRest$ = SlurmRest$;
483
1592
  exports.SlurmRestMode = SlurmRestMode;
1593
+ exports.SlurmRestRequest$ = SlurmRestRequest$;
1594
+ exports.SlurmdbdCustomSetting$ = SlurmdbdCustomSetting$;
484
1595
  exports.SpotAllocationStrategy = SpotAllocationStrategy;
1596
+ exports.SpotOptions$ = SpotOptions$;
1597
+ exports.TagResource$ = TagResource$;
485
1598
  exports.TagResourceCommand = TagResourceCommand;
1599
+ exports.TagResourceRequest$ = TagResourceRequest$;
1600
+ exports.TagResourceResponse$ = TagResourceResponse$;
1601
+ exports.ThrottlingException = ThrottlingException;
1602
+ exports.ThrottlingException$ = ThrottlingException$;
1603
+ exports.UntagResource$ = UntagResource$;
486
1604
  exports.UntagResourceCommand = UntagResourceCommand;
1605
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1606
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1607
+ exports.UpdateAccountingRequest$ = UpdateAccountingRequest$;
1608
+ exports.UpdateCluster$ = UpdateCluster$;
487
1609
  exports.UpdateClusterCommand = UpdateClusterCommand;
1610
+ exports.UpdateClusterRequest$ = UpdateClusterRequest$;
1611
+ exports.UpdateClusterResponse$ = UpdateClusterResponse$;
1612
+ exports.UpdateClusterSlurmConfigurationRequest$ = UpdateClusterSlurmConfigurationRequest$;
1613
+ exports.UpdateComputeNodeGroup$ = UpdateComputeNodeGroup$;
488
1614
  exports.UpdateComputeNodeGroupCommand = UpdateComputeNodeGroupCommand;
1615
+ exports.UpdateComputeNodeGroupRequest$ = UpdateComputeNodeGroupRequest$;
1616
+ exports.UpdateComputeNodeGroupResponse$ = UpdateComputeNodeGroupResponse$;
1617
+ exports.UpdateComputeNodeGroupSlurmConfigurationRequest$ = UpdateComputeNodeGroupSlurmConfigurationRequest$;
1618
+ exports.UpdateQueue$ = UpdateQueue$;
489
1619
  exports.UpdateQueueCommand = UpdateQueueCommand;
1620
+ exports.UpdateQueueRequest$ = UpdateQueueRequest$;
1621
+ exports.UpdateQueueResponse$ = UpdateQueueResponse$;
1622
+ exports.UpdateQueueSlurmConfigurationRequest$ = UpdateQueueSlurmConfigurationRequest$;
1623
+ exports.UpdateSchedulerRequest$ = UpdateSchedulerRequest$;
1624
+ exports.UpdateSlurmRestRequest$ = UpdateSlurmRestRequest$;
1625
+ exports.ValidationException = ValidationException;
1626
+ exports.ValidationException$ = ValidationException$;
1627
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
490
1628
  exports.ValidationExceptionReason = ValidationExceptionReason;
1629
+ exports.errorTypeRegistries = errorTypeRegistries;
491
1630
  exports.paginateListClusters = paginateListClusters;
492
1631
  exports.paginateListComputeNodeGroups = paginateListComputeNodeGroups;
493
1632
  exports.paginateListQueues = paginateListQueues;