@aws-sdk/client-pcs 3.893.0 → 3.895.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.
Files changed (36) hide show
  1. package/dist-cjs/index.js +1576 -10
  2. package/package.json +7 -7
  3. package/dist-cjs/PCS.js +0 -47
  4. package/dist-cjs/PCSClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/CreateClusterCommand.js +0 -26
  7. package/dist-cjs/commands/CreateComputeNodeGroupCommand.js +0 -26
  8. package/dist-cjs/commands/CreateQueueCommand.js +0 -26
  9. package/dist-cjs/commands/DeleteClusterCommand.js +0 -26
  10. package/dist-cjs/commands/DeleteComputeNodeGroupCommand.js +0 -26
  11. package/dist-cjs/commands/DeleteQueueCommand.js +0 -26
  12. package/dist-cjs/commands/GetClusterCommand.js +0 -26
  13. package/dist-cjs/commands/GetComputeNodeGroupCommand.js +0 -26
  14. package/dist-cjs/commands/GetQueueCommand.js +0 -26
  15. package/dist-cjs/commands/ListClustersCommand.js +0 -26
  16. package/dist-cjs/commands/ListComputeNodeGroupsCommand.js +0 -26
  17. package/dist-cjs/commands/ListQueuesCommand.js +0 -26
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
  19. package/dist-cjs/commands/RegisterComputeNodeGroupInstanceCommand.js +0 -27
  20. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  21. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  22. package/dist-cjs/commands/UpdateComputeNodeGroupCommand.js +0 -26
  23. package/dist-cjs/commands/UpdateQueueCommand.js +0 -26
  24. package/dist-cjs/commands/index.js +0 -21
  25. package/dist-cjs/endpoint/EndpointParameters.js +0 -17
  26. package/dist-cjs/extensionConfiguration.js +0 -2
  27. package/dist-cjs/models/PCSServiceException.js +0 -12
  28. package/dist-cjs/models/index.js +0 -4
  29. package/dist-cjs/models/models_0.js +0 -195
  30. package/dist-cjs/pagination/Interfaces.js +0 -2
  31. package/dist-cjs/pagination/ListClustersPaginator.js +0 -7
  32. package/dist-cjs/pagination/ListComputeNodeGroupsPaginator.js +0 -7
  33. package/dist-cjs/pagination/ListQueuesPaginator.js +0 -7
  34. package/dist-cjs/pagination/index.js +0 -7
  35. package/dist-cjs/protocols/Aws_json1_0.js +0 -757
  36. package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,1577 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PCSServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./PCSClient"), exports);
6
- tslib_1.__exportStar(require("./PCS"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var PCSServiceException_1 = require("./models/PCSServiceException");
11
- Object.defineProperty(exports, "PCSServiceException", { enumerable: true, get: function () { return PCSServiceException_1.PCSServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AccountingMode: () => AccountingMode,
26
+ ClusterStatus: () => ClusterStatus,
27
+ ComputeNodeGroupStatus: () => ComputeNodeGroupStatus,
28
+ ConflictException: () => ConflictException,
29
+ CreateClusterCommand: () => CreateClusterCommand,
30
+ CreateComputeNodeGroupCommand: () => CreateComputeNodeGroupCommand,
31
+ CreateQueueCommand: () => CreateQueueCommand,
32
+ DeleteClusterCommand: () => DeleteClusterCommand,
33
+ DeleteComputeNodeGroupCommand: () => DeleteComputeNodeGroupCommand,
34
+ DeleteQueueCommand: () => DeleteQueueCommand,
35
+ EndpointType: () => EndpointType,
36
+ GetClusterCommand: () => GetClusterCommand,
37
+ GetComputeNodeGroupCommand: () => GetComputeNodeGroupCommand,
38
+ GetQueueCommand: () => GetQueueCommand,
39
+ InternalServerException: () => InternalServerException,
40
+ ListClustersCommand: () => ListClustersCommand,
41
+ ListComputeNodeGroupsCommand: () => ListComputeNodeGroupsCommand,
42
+ ListQueuesCommand: () => ListQueuesCommand,
43
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
44
+ NetworkType: () => NetworkType,
45
+ PCS: () => PCS,
46
+ PCSClient: () => PCSClient,
47
+ PCSServiceException: () => PCSServiceException,
48
+ PurchaseOption: () => PurchaseOption,
49
+ QueueStatus: () => QueueStatus,
50
+ RegisterComputeNodeGroupInstanceCommand: () => RegisterComputeNodeGroupInstanceCommand,
51
+ RegisterComputeNodeGroupInstanceResponseFilterSensitiveLog: () => RegisterComputeNodeGroupInstanceResponseFilterSensitiveLog,
52
+ ResourceNotFoundException: () => ResourceNotFoundException,
53
+ SchedulerType: () => SchedulerType,
54
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
55
+ Size: () => Size,
56
+ SpotAllocationStrategy: () => SpotAllocationStrategy,
57
+ TagResourceCommand: () => TagResourceCommand,
58
+ ThrottlingException: () => ThrottlingException,
59
+ UntagResourceCommand: () => UntagResourceCommand,
60
+ UpdateComputeNodeGroupCommand: () => UpdateComputeNodeGroupCommand,
61
+ UpdateQueueCommand: () => UpdateQueueCommand,
62
+ ValidationException: () => ValidationException,
63
+ ValidationExceptionReason: () => ValidationExceptionReason,
64
+ __Client: () => import_smithy_client.Client,
65
+ paginateListClusters: () => paginateListClusters,
66
+ paginateListComputeNodeGroups: () => paginateListComputeNodeGroups,
67
+ paginateListQueues: () => paginateListQueues
68
+ });
69
+ module.exports = __toCommonJS(index_exports);
70
+
71
+ // src/PCSClient.ts
72
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
73
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
74
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
75
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
76
+ var import_config_resolver = require("@smithy/config-resolver");
77
+ var import_core = require("@smithy/core");
78
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
79
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
80
+ var import_middleware_retry = require("@smithy/middleware-retry");
81
+
82
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
83
+
84
+ // src/endpoint/EndpointParameters.ts
85
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
86
+ return Object.assign(options, {
87
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
88
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
89
+ defaultSigningName: "pcs"
90
+ });
91
+ }, "resolveClientEndpointParameters");
92
+ var commonParams = {
93
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
94
+ Endpoint: { type: "builtInParams", name: "endpoint" },
95
+ Region: { type: "builtInParams", name: "region" },
96
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
97
+ };
98
+
99
+ // src/PCSClient.ts
100
+ var import_runtimeConfig = require("././runtimeConfig");
101
+
102
+ // src/runtimeExtensions.ts
103
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
104
+ var import_protocol_http = require("@smithy/protocol-http");
105
+ var import_smithy_client = require("@smithy/smithy-client");
106
+
107
+ // src/auth/httpAuthExtensionConfiguration.ts
108
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
109
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
110
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
111
+ let _credentials = runtimeConfig.credentials;
112
+ return {
113
+ setHttpAuthScheme(httpAuthScheme) {
114
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
115
+ if (index === -1) {
116
+ _httpAuthSchemes.push(httpAuthScheme);
117
+ } else {
118
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
119
+ }
120
+ },
121
+ httpAuthSchemes() {
122
+ return _httpAuthSchemes;
123
+ },
124
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
125
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
126
+ },
127
+ httpAuthSchemeProvider() {
128
+ return _httpAuthSchemeProvider;
129
+ },
130
+ setCredentials(credentials) {
131
+ _credentials = credentials;
132
+ },
133
+ credentials() {
134
+ return _credentials;
135
+ }
136
+ };
137
+ }, "getHttpAuthExtensionConfiguration");
138
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
139
+ return {
140
+ httpAuthSchemes: config.httpAuthSchemes(),
141
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
142
+ credentials: config.credentials()
143
+ };
144
+ }, "resolveHttpAuthRuntimeConfig");
145
+
146
+ // src/runtimeExtensions.ts
147
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
148
+ const extensionConfiguration = Object.assign(
149
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
150
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
151
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
152
+ getHttpAuthExtensionConfiguration(runtimeConfig)
153
+ );
154
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
155
+ return Object.assign(
156
+ runtimeConfig,
157
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
158
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
159
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
160
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
161
+ );
162
+ }, "resolveRuntimeExtensions");
163
+
164
+ // src/PCSClient.ts
165
+ var PCSClient = class extends import_smithy_client.Client {
166
+ static {
167
+ __name(this, "PCSClient");
168
+ }
169
+ /**
170
+ * The resolved configuration of PCSClient class. This is resolved and normalized from the {@link PCSClientConfig | constructor configuration interface}.
171
+ */
172
+ config;
173
+ constructor(...[configuration]) {
174
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
175
+ super(_config_0);
176
+ this.initConfig = _config_0;
177
+ const _config_1 = resolveClientEndpointParameters(_config_0);
178
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
179
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
180
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
181
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
182
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
183
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
184
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
185
+ this.config = _config_8;
186
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
187
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
188
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
189
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
190
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
191
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
192
+ this.middlewareStack.use(
193
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
194
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultPCSHttpAuthSchemeParametersProvider,
195
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
196
+ "aws.auth#sigv4": config.credentials
197
+ }), "identityProviderConfigProvider")
198
+ })
199
+ );
200
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
201
+ }
202
+ /**
203
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
204
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
205
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
206
+ */
207
+ destroy() {
208
+ super.destroy();
209
+ }
210
+ };
211
+
212
+ // src/PCS.ts
213
+
214
+
215
+ // src/commands/CreateClusterCommand.ts
216
+
217
+ var import_middleware_serde = require("@smithy/middleware-serde");
218
+
219
+
220
+ // src/protocols/Aws_json1_0.ts
221
+ var import_core2 = require("@aws-sdk/core");
222
+
223
+
224
+ var import_uuid = require("uuid");
225
+
226
+ // src/models/models_0.ts
227
+
228
+
229
+ // src/models/PCSServiceException.ts
230
+
231
+ var PCSServiceException = class _PCSServiceException extends import_smithy_client.ServiceException {
232
+ static {
233
+ __name(this, "PCSServiceException");
234
+ }
235
+ /**
236
+ * @internal
237
+ */
238
+ constructor(options) {
239
+ super(options);
240
+ Object.setPrototypeOf(this, _PCSServiceException.prototype);
241
+ }
242
+ };
243
+
244
+ // src/models/models_0.ts
245
+ var AccessDeniedException = class _AccessDeniedException extends PCSServiceException {
246
+ static {
247
+ __name(this, "AccessDeniedException");
248
+ }
249
+ name = "AccessDeniedException";
250
+ $fault = "client";
251
+ /**
252
+ * @internal
253
+ */
254
+ constructor(opts) {
255
+ super({
256
+ name: "AccessDeniedException",
257
+ $fault: "client",
258
+ ...opts
259
+ });
260
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
261
+ }
262
+ };
263
+ var AccountingMode = {
264
+ NONE: "NONE",
265
+ STANDARD: "STANDARD"
266
+ };
267
+ var ConflictException = class _ConflictException extends PCSServiceException {
268
+ static {
269
+ __name(this, "ConflictException");
270
+ }
271
+ name = "ConflictException";
272
+ $fault = "client";
273
+ /**
274
+ * <p> The unique identifier of the resource that caused the conflict exception. </p>
275
+ * @public
276
+ */
277
+ resourceId;
278
+ /**
279
+ * <p> The type or category of the resource that caused the conflict exception." </p>
280
+ * @public
281
+ */
282
+ resourceType;
283
+ /**
284
+ * @internal
285
+ */
286
+ constructor(opts) {
287
+ super({
288
+ name: "ConflictException",
289
+ $fault: "client",
290
+ ...opts
291
+ });
292
+ Object.setPrototypeOf(this, _ConflictException.prototype);
293
+ this.resourceId = opts.resourceId;
294
+ this.resourceType = opts.resourceType;
295
+ }
296
+ };
297
+ var PurchaseOption = {
298
+ CAPACITY_BLOCK: "CAPACITY_BLOCK",
299
+ ONDEMAND: "ONDEMAND",
300
+ SPOT: "SPOT"
301
+ };
302
+ var SpotAllocationStrategy = {
303
+ CAPACITY_OPTIMIZED: "capacity-optimized",
304
+ LOWEST_PRICE: "lowest-price",
305
+ PRICE_CAPACITY_OPTIMIZED: "price-capacity-optimized"
306
+ };
307
+ var ComputeNodeGroupStatus = {
308
+ ACTIVE: "ACTIVE",
309
+ CREATE_FAILED: "CREATE_FAILED",
310
+ CREATING: "CREATING",
311
+ DELETED: "DELETED",
312
+ DELETE_FAILED: "DELETE_FAILED",
313
+ DELETING: "DELETING",
314
+ SUSPENDED: "SUSPENDED",
315
+ SUSPENDING: "SUSPENDING",
316
+ UPDATE_FAILED: "UPDATE_FAILED",
317
+ UPDATING: "UPDATING"
318
+ };
319
+ var InternalServerException = class _InternalServerException extends PCSServiceException {
320
+ static {
321
+ __name(this, "InternalServerException");
322
+ }
323
+ name = "InternalServerException";
324
+ $fault = "server";
325
+ $retryable = {};
326
+ /**
327
+ * @internal
328
+ */
329
+ constructor(opts) {
330
+ super({
331
+ name: "InternalServerException",
332
+ $fault: "server",
333
+ ...opts
334
+ });
335
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
336
+ }
337
+ };
338
+ var ResourceNotFoundException = class _ResourceNotFoundException extends PCSServiceException {
339
+ static {
340
+ __name(this, "ResourceNotFoundException");
341
+ }
342
+ name = "ResourceNotFoundException";
343
+ $fault = "client";
344
+ /**
345
+ * <p> The unique identifier of the resource that was not found. </p>
346
+ * @public
347
+ */
348
+ resourceId;
349
+ /**
350
+ * <p> The type or category of the resource that was not found. </p>
351
+ * @public
352
+ */
353
+ resourceType;
354
+ /**
355
+ * @internal
356
+ */
357
+ constructor(opts) {
358
+ super({
359
+ name: "ResourceNotFoundException",
360
+ $fault: "client",
361
+ ...opts
362
+ });
363
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
364
+ this.resourceId = opts.resourceId;
365
+ this.resourceType = opts.resourceType;
366
+ }
367
+ };
368
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends PCSServiceException {
369
+ static {
370
+ __name(this, "ServiceQuotaExceededException");
371
+ }
372
+ name = "ServiceQuotaExceededException";
373
+ $fault = "client";
374
+ /**
375
+ * <p> The service code associated with the quota that was exceeded. </p>
376
+ * @public
377
+ */
378
+ serviceCode;
379
+ /**
380
+ * <p> The unique identifier of the resource that caused the quota to be exceeded. </p>
381
+ * @public
382
+ */
383
+ resourceId;
384
+ /**
385
+ * <p> The type or category of the resource that caused the quota to be exceeded. </p>
386
+ * @public
387
+ */
388
+ resourceType;
389
+ /**
390
+ * <p> The <b>quota code</b> of the service quota that was exceeded. </p>
391
+ * @public
392
+ */
393
+ quotaCode;
394
+ /**
395
+ * @internal
396
+ */
397
+ constructor(opts) {
398
+ super({
399
+ name: "ServiceQuotaExceededException",
400
+ $fault: "client",
401
+ ...opts
402
+ });
403
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
404
+ this.serviceCode = opts.serviceCode;
405
+ this.resourceId = opts.resourceId;
406
+ this.resourceType = opts.resourceType;
407
+ this.quotaCode = opts.quotaCode;
408
+ }
409
+ };
410
+ var ThrottlingException = class _ThrottlingException extends PCSServiceException {
411
+ static {
412
+ __name(this, "ThrottlingException");
413
+ }
414
+ name = "ThrottlingException";
415
+ $fault = "client";
416
+ $retryable = {};
417
+ /**
418
+ * <p> The number of seconds to wait before retrying the request. </p>
419
+ * @public
420
+ */
421
+ retryAfterSeconds;
422
+ /**
423
+ * @internal
424
+ */
425
+ constructor(opts) {
426
+ super({
427
+ name: "ThrottlingException",
428
+ $fault: "client",
429
+ ...opts
430
+ });
431
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
432
+ this.retryAfterSeconds = opts.retryAfterSeconds;
433
+ }
434
+ };
435
+ var ValidationExceptionReason = {
436
+ CANNOT_PARSE: "cannotParse",
437
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
438
+ OTHER: "other",
439
+ UNKNOWN_OPERATION: "unknownOperation"
440
+ };
441
+ var ValidationException = class _ValidationException extends PCSServiceException {
442
+ static {
443
+ __name(this, "ValidationException");
444
+ }
445
+ name = "ValidationException";
446
+ $fault = "client";
447
+ /**
448
+ * <p> The specific reason or cause of the validation error. </p>
449
+ * @public
450
+ */
451
+ reason;
452
+ /**
453
+ * <p> A list of fields or properties that failed validation. </p>
454
+ * @public
455
+ */
456
+ fieldList;
457
+ /**
458
+ * @internal
459
+ */
460
+ constructor(opts) {
461
+ super({
462
+ name: "ValidationException",
463
+ $fault: "client",
464
+ ...opts
465
+ });
466
+ Object.setPrototypeOf(this, _ValidationException.prototype);
467
+ this.reason = opts.reason;
468
+ this.fieldList = opts.fieldList;
469
+ }
470
+ };
471
+ var NetworkType = {
472
+ IPV4: "IPV4",
473
+ IPV6: "IPV6"
474
+ };
475
+ var SchedulerType = {
476
+ SLURM: "SLURM"
477
+ };
478
+ var Size = {
479
+ LARGE: "LARGE",
480
+ MEDIUM: "MEDIUM",
481
+ SMALL: "SMALL"
482
+ };
483
+ var EndpointType = {
484
+ SLURMCTLD: "SLURMCTLD",
485
+ SLURMDBD: "SLURMDBD"
486
+ };
487
+ var ClusterStatus = {
488
+ ACTIVE: "ACTIVE",
489
+ CREATE_FAILED: "CREATE_FAILED",
490
+ CREATING: "CREATING",
491
+ DELETE_FAILED: "DELETE_FAILED",
492
+ DELETING: "DELETING",
493
+ SUSPENDED: "SUSPENDED",
494
+ SUSPENDING: "SUSPENDING",
495
+ UPDATE_FAILED: "UPDATE_FAILED",
496
+ UPDATING: "UPDATING"
497
+ };
498
+ var QueueStatus = {
499
+ ACTIVE: "ACTIVE",
500
+ CREATE_FAILED: "CREATE_FAILED",
501
+ CREATING: "CREATING",
502
+ DELETE_FAILED: "DELETE_FAILED",
503
+ DELETING: "DELETING",
504
+ SUSPENDED: "SUSPENDED",
505
+ SUSPENDING: "SUSPENDING",
506
+ UPDATE_FAILED: "UPDATE_FAILED",
507
+ UPDATING: "UPDATING"
508
+ };
509
+ var RegisterComputeNodeGroupInstanceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
510
+ ...obj,
511
+ ...obj.sharedSecret && { sharedSecret: import_smithy_client.SENSITIVE_STRING }
512
+ }), "RegisterComputeNodeGroupInstanceResponseFilterSensitiveLog");
513
+
514
+ // src/protocols/Aws_json1_0.ts
515
+ var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
516
+ const headers = sharedHeaders("CreateCluster");
517
+ let body;
518
+ body = JSON.stringify(se_CreateClusterRequest(input, context));
519
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
520
+ }, "se_CreateClusterCommand");
521
+ var se_CreateComputeNodeGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
522
+ const headers = sharedHeaders("CreateComputeNodeGroup");
523
+ let body;
524
+ body = JSON.stringify(se_CreateComputeNodeGroupRequest(input, context));
525
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
526
+ }, "se_CreateComputeNodeGroupCommand");
527
+ var se_CreateQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
528
+ const headers = sharedHeaders("CreateQueue");
529
+ let body;
530
+ body = JSON.stringify(se_CreateQueueRequest(input, context));
531
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
532
+ }, "se_CreateQueueCommand");
533
+ var se_DeleteClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
534
+ const headers = sharedHeaders("DeleteCluster");
535
+ let body;
536
+ body = JSON.stringify(se_DeleteClusterRequest(input, context));
537
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
538
+ }, "se_DeleteClusterCommand");
539
+ var se_DeleteComputeNodeGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
540
+ const headers = sharedHeaders("DeleteComputeNodeGroup");
541
+ let body;
542
+ body = JSON.stringify(se_DeleteComputeNodeGroupRequest(input, context));
543
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
544
+ }, "se_DeleteComputeNodeGroupCommand");
545
+ var se_DeleteQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
546
+ const headers = sharedHeaders("DeleteQueue");
547
+ let body;
548
+ body = JSON.stringify(se_DeleteQueueRequest(input, context));
549
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
550
+ }, "se_DeleteQueueCommand");
551
+ var se_GetClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
552
+ const headers = sharedHeaders("GetCluster");
553
+ let body;
554
+ body = JSON.stringify((0, import_smithy_client._json)(input));
555
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
556
+ }, "se_GetClusterCommand");
557
+ var se_GetComputeNodeGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
558
+ const headers = sharedHeaders("GetComputeNodeGroup");
559
+ let body;
560
+ body = JSON.stringify((0, import_smithy_client._json)(input));
561
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
562
+ }, "se_GetComputeNodeGroupCommand");
563
+ var se_GetQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
564
+ const headers = sharedHeaders("GetQueue");
565
+ let body;
566
+ body = JSON.stringify((0, import_smithy_client._json)(input));
567
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
568
+ }, "se_GetQueueCommand");
569
+ var se_ListClustersCommand = /* @__PURE__ */ __name(async (input, context) => {
570
+ const headers = sharedHeaders("ListClusters");
571
+ let body;
572
+ body = JSON.stringify((0, import_smithy_client._json)(input));
573
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
574
+ }, "se_ListClustersCommand");
575
+ var se_ListComputeNodeGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
576
+ const headers = sharedHeaders("ListComputeNodeGroups");
577
+ let body;
578
+ body = JSON.stringify((0, import_smithy_client._json)(input));
579
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
580
+ }, "se_ListComputeNodeGroupsCommand");
581
+ var se_ListQueuesCommand = /* @__PURE__ */ __name(async (input, context) => {
582
+ const headers = sharedHeaders("ListQueues");
583
+ let body;
584
+ body = JSON.stringify((0, import_smithy_client._json)(input));
585
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
586
+ }, "se_ListQueuesCommand");
587
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
588
+ const headers = sharedHeaders("ListTagsForResource");
589
+ let body;
590
+ body = JSON.stringify((0, import_smithy_client._json)(input));
591
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
592
+ }, "se_ListTagsForResourceCommand");
593
+ var se_RegisterComputeNodeGroupInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
594
+ const headers = sharedHeaders("RegisterComputeNodeGroupInstance");
595
+ let body;
596
+ body = JSON.stringify((0, import_smithy_client._json)(input));
597
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
598
+ }, "se_RegisterComputeNodeGroupInstanceCommand");
599
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
600
+ const headers = sharedHeaders("TagResource");
601
+ let body;
602
+ body = JSON.stringify((0, import_smithy_client._json)(input));
603
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
604
+ }, "se_TagResourceCommand");
605
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
606
+ const headers = sharedHeaders("UntagResource");
607
+ let body;
608
+ body = JSON.stringify((0, import_smithy_client._json)(input));
609
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
610
+ }, "se_UntagResourceCommand");
611
+ var se_UpdateComputeNodeGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
612
+ const headers = sharedHeaders("UpdateComputeNodeGroup");
613
+ let body;
614
+ body = JSON.stringify(se_UpdateComputeNodeGroupRequest(input, context));
615
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
616
+ }, "se_UpdateComputeNodeGroupCommand");
617
+ var se_UpdateQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
618
+ const headers = sharedHeaders("UpdateQueue");
619
+ let body;
620
+ body = JSON.stringify(se_UpdateQueueRequest(input, context));
621
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
622
+ }, "se_UpdateQueueCommand");
623
+ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
624
+ if (output.statusCode >= 300) {
625
+ return de_CommandError(output, context);
626
+ }
627
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
628
+ let contents = {};
629
+ contents = de_CreateClusterResponse(data, context);
630
+ const response = {
631
+ $metadata: deserializeMetadata(output),
632
+ ...contents
633
+ };
634
+ return response;
635
+ }, "de_CreateClusterCommand");
636
+ var de_CreateComputeNodeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
637
+ if (output.statusCode >= 300) {
638
+ return de_CommandError(output, context);
639
+ }
640
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
641
+ let contents = {};
642
+ contents = de_CreateComputeNodeGroupResponse(data, context);
643
+ const response = {
644
+ $metadata: deserializeMetadata(output),
645
+ ...contents
646
+ };
647
+ return response;
648
+ }, "de_CreateComputeNodeGroupCommand");
649
+ var de_CreateQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
650
+ if (output.statusCode >= 300) {
651
+ return de_CommandError(output, context);
652
+ }
653
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
654
+ let contents = {};
655
+ contents = de_CreateQueueResponse(data, context);
656
+ const response = {
657
+ $metadata: deserializeMetadata(output),
658
+ ...contents
659
+ };
660
+ return response;
661
+ }, "de_CreateQueueCommand");
662
+ var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
663
+ if (output.statusCode >= 300) {
664
+ return de_CommandError(output, context);
665
+ }
666
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
667
+ let contents = {};
668
+ contents = (0, import_smithy_client._json)(data);
669
+ const response = {
670
+ $metadata: deserializeMetadata(output),
671
+ ...contents
672
+ };
673
+ return response;
674
+ }, "de_DeleteClusterCommand");
675
+ var de_DeleteComputeNodeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
676
+ if (output.statusCode >= 300) {
677
+ return de_CommandError(output, context);
678
+ }
679
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
680
+ let contents = {};
681
+ contents = (0, import_smithy_client._json)(data);
682
+ const response = {
683
+ $metadata: deserializeMetadata(output),
684
+ ...contents
685
+ };
686
+ return response;
687
+ }, "de_DeleteComputeNodeGroupCommand");
688
+ var de_DeleteQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
689
+ if (output.statusCode >= 300) {
690
+ return de_CommandError(output, context);
691
+ }
692
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
693
+ let contents = {};
694
+ contents = (0, import_smithy_client._json)(data);
695
+ const response = {
696
+ $metadata: deserializeMetadata(output),
697
+ ...contents
698
+ };
699
+ return response;
700
+ }, "de_DeleteQueueCommand");
701
+ var de_GetClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
702
+ if (output.statusCode >= 300) {
703
+ return de_CommandError(output, context);
704
+ }
705
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
706
+ let contents = {};
707
+ contents = de_GetClusterResponse(data, context);
708
+ const response = {
709
+ $metadata: deserializeMetadata(output),
710
+ ...contents
711
+ };
712
+ return response;
713
+ }, "de_GetClusterCommand");
714
+ var de_GetComputeNodeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
715
+ if (output.statusCode >= 300) {
716
+ return de_CommandError(output, context);
717
+ }
718
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
719
+ let contents = {};
720
+ contents = de_GetComputeNodeGroupResponse(data, context);
721
+ const response = {
722
+ $metadata: deserializeMetadata(output),
723
+ ...contents
724
+ };
725
+ return response;
726
+ }, "de_GetComputeNodeGroupCommand");
727
+ var de_GetQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
728
+ if (output.statusCode >= 300) {
729
+ return de_CommandError(output, context);
730
+ }
731
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
732
+ let contents = {};
733
+ contents = de_GetQueueResponse(data, context);
734
+ const response = {
735
+ $metadata: deserializeMetadata(output),
736
+ ...contents
737
+ };
738
+ return response;
739
+ }, "de_GetQueueCommand");
740
+ var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
741
+ if (output.statusCode >= 300) {
742
+ return de_CommandError(output, context);
743
+ }
744
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
745
+ let contents = {};
746
+ contents = de_ListClustersResponse(data, context);
747
+ const response = {
748
+ $metadata: deserializeMetadata(output),
749
+ ...contents
750
+ };
751
+ return response;
752
+ }, "de_ListClustersCommand");
753
+ var de_ListComputeNodeGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
754
+ if (output.statusCode >= 300) {
755
+ return de_CommandError(output, context);
756
+ }
757
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
758
+ let contents = {};
759
+ contents = de_ListComputeNodeGroupsResponse(data, context);
760
+ const response = {
761
+ $metadata: deserializeMetadata(output),
762
+ ...contents
763
+ };
764
+ return response;
765
+ }, "de_ListComputeNodeGroupsCommand");
766
+ var de_ListQueuesCommand = /* @__PURE__ */ __name(async (output, context) => {
767
+ if (output.statusCode >= 300) {
768
+ return de_CommandError(output, context);
769
+ }
770
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
771
+ let contents = {};
772
+ contents = de_ListQueuesResponse(data, context);
773
+ const response = {
774
+ $metadata: deserializeMetadata(output),
775
+ ...contents
776
+ };
777
+ return response;
778
+ }, "de_ListQueuesCommand");
779
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
780
+ if (output.statusCode >= 300) {
781
+ return de_CommandError(output, context);
782
+ }
783
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
784
+ let contents = {};
785
+ contents = (0, import_smithy_client._json)(data);
786
+ const response = {
787
+ $metadata: deserializeMetadata(output),
788
+ ...contents
789
+ };
790
+ return response;
791
+ }, "de_ListTagsForResourceCommand");
792
+ var de_RegisterComputeNodeGroupInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
793
+ if (output.statusCode >= 300) {
794
+ return de_CommandError(output, context);
795
+ }
796
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
797
+ let contents = {};
798
+ contents = (0, import_smithy_client._json)(data);
799
+ const response = {
800
+ $metadata: deserializeMetadata(output),
801
+ ...contents
802
+ };
803
+ return response;
804
+ }, "de_RegisterComputeNodeGroupInstanceCommand");
805
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
806
+ if (output.statusCode >= 300) {
807
+ return de_CommandError(output, context);
808
+ }
809
+ await (0, import_smithy_client.collectBody)(output.body, context);
810
+ const response = {
811
+ $metadata: deserializeMetadata(output)
812
+ };
813
+ return response;
814
+ }, "de_TagResourceCommand");
815
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
816
+ if (output.statusCode >= 300) {
817
+ return de_CommandError(output, context);
818
+ }
819
+ await (0, import_smithy_client.collectBody)(output.body, context);
820
+ const response = {
821
+ $metadata: deserializeMetadata(output)
822
+ };
823
+ return response;
824
+ }, "de_UntagResourceCommand");
825
+ var de_UpdateComputeNodeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
826
+ if (output.statusCode >= 300) {
827
+ return de_CommandError(output, context);
828
+ }
829
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
830
+ let contents = {};
831
+ contents = de_UpdateComputeNodeGroupResponse(data, context);
832
+ const response = {
833
+ $metadata: deserializeMetadata(output),
834
+ ...contents
835
+ };
836
+ return response;
837
+ }, "de_UpdateComputeNodeGroupCommand");
838
+ var de_UpdateQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
839
+ if (output.statusCode >= 300) {
840
+ return de_CommandError(output, context);
841
+ }
842
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
843
+ let contents = {};
844
+ contents = de_UpdateQueueResponse(data, context);
845
+ const response = {
846
+ $metadata: deserializeMetadata(output),
847
+ ...contents
848
+ };
849
+ return response;
850
+ }, "de_UpdateQueueCommand");
851
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
852
+ const parsedOutput = {
853
+ ...output,
854
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
855
+ };
856
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
857
+ switch (errorCode) {
858
+ case "AccessDeniedException":
859
+ case "com.amazonaws.pcs#AccessDeniedException":
860
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
861
+ case "ConflictException":
862
+ case "com.amazonaws.pcs#ConflictException":
863
+ throw await de_ConflictExceptionRes(parsedOutput, context);
864
+ case "InternalServerException":
865
+ case "com.amazonaws.pcs#InternalServerException":
866
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
867
+ case "ServiceQuotaExceededException":
868
+ case "com.amazonaws.pcs#ServiceQuotaExceededException":
869
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
870
+ case "ThrottlingException":
871
+ case "com.amazonaws.pcs#ThrottlingException":
872
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
873
+ case "ValidationException":
874
+ case "com.amazonaws.pcs#ValidationException":
875
+ throw await de_ValidationExceptionRes(parsedOutput, context);
876
+ case "ResourceNotFoundException":
877
+ case "com.amazonaws.pcs#ResourceNotFoundException":
878
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
879
+ default:
880
+ const parsedBody = parsedOutput.body;
881
+ return throwDefaultError({
882
+ output,
883
+ parsedBody,
884
+ errorCode
885
+ });
886
+ }
887
+ }, "de_CommandError");
888
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
889
+ const body = parsedOutput.body;
890
+ const deserialized = (0, import_smithy_client._json)(body);
891
+ const exception = new AccessDeniedException({
892
+ $metadata: deserializeMetadata(parsedOutput),
893
+ ...deserialized
894
+ });
895
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
896
+ }, "de_AccessDeniedExceptionRes");
897
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
898
+ const body = parsedOutput.body;
899
+ const deserialized = (0, import_smithy_client._json)(body);
900
+ const exception = new ConflictException({
901
+ $metadata: deserializeMetadata(parsedOutput),
902
+ ...deserialized
903
+ });
904
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
905
+ }, "de_ConflictExceptionRes");
906
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
907
+ const body = parsedOutput.body;
908
+ const deserialized = (0, import_smithy_client._json)(body);
909
+ const exception = new InternalServerException({
910
+ $metadata: deserializeMetadata(parsedOutput),
911
+ ...deserialized
912
+ });
913
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
914
+ }, "de_InternalServerExceptionRes");
915
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
916
+ const body = parsedOutput.body;
917
+ const deserialized = (0, import_smithy_client._json)(body);
918
+ const exception = new ResourceNotFoundException({
919
+ $metadata: deserializeMetadata(parsedOutput),
920
+ ...deserialized
921
+ });
922
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
923
+ }, "de_ResourceNotFoundExceptionRes");
924
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
925
+ const body = parsedOutput.body;
926
+ const deserialized = (0, import_smithy_client._json)(body);
927
+ const exception = new ServiceQuotaExceededException({
928
+ $metadata: deserializeMetadata(parsedOutput),
929
+ ...deserialized
930
+ });
931
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
932
+ }, "de_ServiceQuotaExceededExceptionRes");
933
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
934
+ const body = parsedOutput.body;
935
+ const deserialized = (0, import_smithy_client._json)(body);
936
+ const exception = new ThrottlingException({
937
+ $metadata: deserializeMetadata(parsedOutput),
938
+ ...deserialized
939
+ });
940
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
941
+ }, "de_ThrottlingExceptionRes");
942
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
943
+ const body = parsedOutput.body;
944
+ const deserialized = (0, import_smithy_client._json)(body);
945
+ const exception = new ValidationException({
946
+ $metadata: deserializeMetadata(parsedOutput),
947
+ ...deserialized
948
+ });
949
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
950
+ }, "de_ValidationExceptionRes");
951
+ var se_CreateClusterRequest = /* @__PURE__ */ __name((input, context) => {
952
+ return (0, import_smithy_client.take)(input, {
953
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
954
+ clusterName: [],
955
+ networking: import_smithy_client._json,
956
+ scheduler: import_smithy_client._json,
957
+ size: [],
958
+ slurmConfiguration: import_smithy_client._json,
959
+ tags: import_smithy_client._json
960
+ });
961
+ }, "se_CreateClusterRequest");
962
+ var se_CreateComputeNodeGroupRequest = /* @__PURE__ */ __name((input, context) => {
963
+ return (0, import_smithy_client.take)(input, {
964
+ amiId: [],
965
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
966
+ clusterIdentifier: [],
967
+ computeNodeGroupName: [],
968
+ customLaunchTemplate: import_smithy_client._json,
969
+ iamInstanceProfileArn: [],
970
+ instanceConfigs: import_smithy_client._json,
971
+ purchaseOption: [],
972
+ scalingConfiguration: import_smithy_client._json,
973
+ slurmConfiguration: import_smithy_client._json,
974
+ spotOptions: import_smithy_client._json,
975
+ subnetIds: import_smithy_client._json,
976
+ tags: import_smithy_client._json
977
+ });
978
+ }, "se_CreateComputeNodeGroupRequest");
979
+ var se_CreateQueueRequest = /* @__PURE__ */ __name((input, context) => {
980
+ return (0, import_smithy_client.take)(input, {
981
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
982
+ clusterIdentifier: [],
983
+ computeNodeGroupConfigurations: import_smithy_client._json,
984
+ queueName: [],
985
+ tags: import_smithy_client._json
986
+ });
987
+ }, "se_CreateQueueRequest");
988
+ var se_DeleteClusterRequest = /* @__PURE__ */ __name((input, context) => {
989
+ return (0, import_smithy_client.take)(input, {
990
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
991
+ clusterIdentifier: []
992
+ });
993
+ }, "se_DeleteClusterRequest");
994
+ var se_DeleteComputeNodeGroupRequest = /* @__PURE__ */ __name((input, context) => {
995
+ return (0, import_smithy_client.take)(input, {
996
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
997
+ clusterIdentifier: [],
998
+ computeNodeGroupIdentifier: []
999
+ });
1000
+ }, "se_DeleteComputeNodeGroupRequest");
1001
+ var se_DeleteQueueRequest = /* @__PURE__ */ __name((input, context) => {
1002
+ return (0, import_smithy_client.take)(input, {
1003
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1004
+ clusterIdentifier: [],
1005
+ queueIdentifier: []
1006
+ });
1007
+ }, "se_DeleteQueueRequest");
1008
+ var se_UpdateComputeNodeGroupRequest = /* @__PURE__ */ __name((input, context) => {
1009
+ return (0, import_smithy_client.take)(input, {
1010
+ amiId: [],
1011
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1012
+ clusterIdentifier: [],
1013
+ computeNodeGroupIdentifier: [],
1014
+ customLaunchTemplate: import_smithy_client._json,
1015
+ iamInstanceProfileArn: [],
1016
+ purchaseOption: [],
1017
+ scalingConfiguration: import_smithy_client._json,
1018
+ slurmConfiguration: import_smithy_client._json,
1019
+ spotOptions: import_smithy_client._json,
1020
+ subnetIds: import_smithy_client._json
1021
+ });
1022
+ }, "se_UpdateComputeNodeGroupRequest");
1023
+ var se_UpdateQueueRequest = /* @__PURE__ */ __name((input, context) => {
1024
+ return (0, import_smithy_client.take)(input, {
1025
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1026
+ clusterIdentifier: [],
1027
+ computeNodeGroupConfigurations: import_smithy_client._json,
1028
+ queueIdentifier: []
1029
+ });
1030
+ }, "se_UpdateQueueRequest");
1031
+ var de_Cluster = /* @__PURE__ */ __name((output, context) => {
1032
+ return (0, import_smithy_client.take)(output, {
1033
+ arn: import_smithy_client.expectString,
1034
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1035
+ endpoints: import_smithy_client._json,
1036
+ errorInfo: import_smithy_client._json,
1037
+ id: import_smithy_client.expectString,
1038
+ modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "modifiedAt"),
1039
+ name: import_smithy_client.expectString,
1040
+ networking: import_smithy_client._json,
1041
+ scheduler: import_smithy_client._json,
1042
+ size: import_smithy_client.expectString,
1043
+ slurmConfiguration: import_smithy_client._json,
1044
+ status: import_smithy_client.expectString
1045
+ });
1046
+ }, "de_Cluster");
1047
+ var de_ClusterList = /* @__PURE__ */ __name((output, context) => {
1048
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1049
+ return de_ClusterSummary(entry, context);
1050
+ });
1051
+ return retVal;
1052
+ }, "de_ClusterList");
1053
+ var de_ClusterSummary = /* @__PURE__ */ __name((output, context) => {
1054
+ return (0, import_smithy_client.take)(output, {
1055
+ arn: import_smithy_client.expectString,
1056
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1057
+ id: import_smithy_client.expectString,
1058
+ modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "modifiedAt"),
1059
+ name: import_smithy_client.expectString,
1060
+ status: import_smithy_client.expectString
1061
+ });
1062
+ }, "de_ClusterSummary");
1063
+ var de_ComputeNodeGroup = /* @__PURE__ */ __name((output, context) => {
1064
+ return (0, import_smithy_client.take)(output, {
1065
+ amiId: import_smithy_client.expectString,
1066
+ arn: import_smithy_client.expectString,
1067
+ clusterId: import_smithy_client.expectString,
1068
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1069
+ customLaunchTemplate: import_smithy_client._json,
1070
+ errorInfo: import_smithy_client._json,
1071
+ iamInstanceProfileArn: import_smithy_client.expectString,
1072
+ id: import_smithy_client.expectString,
1073
+ instanceConfigs: import_smithy_client._json,
1074
+ modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "modifiedAt"),
1075
+ name: import_smithy_client.expectString,
1076
+ purchaseOption: import_smithy_client.expectString,
1077
+ scalingConfiguration: import_smithy_client._json,
1078
+ slurmConfiguration: import_smithy_client._json,
1079
+ spotOptions: import_smithy_client._json,
1080
+ status: import_smithy_client.expectString,
1081
+ subnetIds: import_smithy_client._json
1082
+ });
1083
+ }, "de_ComputeNodeGroup");
1084
+ var de_ComputeNodeGroupList = /* @__PURE__ */ __name((output, context) => {
1085
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1086
+ return de_ComputeNodeGroupSummary(entry, context);
1087
+ });
1088
+ return retVal;
1089
+ }, "de_ComputeNodeGroupList");
1090
+ var de_ComputeNodeGroupSummary = /* @__PURE__ */ __name((output, context) => {
1091
+ return (0, import_smithy_client.take)(output, {
1092
+ arn: import_smithy_client.expectString,
1093
+ clusterId: import_smithy_client.expectString,
1094
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1095
+ id: import_smithy_client.expectString,
1096
+ modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "modifiedAt"),
1097
+ name: import_smithy_client.expectString,
1098
+ status: import_smithy_client.expectString
1099
+ });
1100
+ }, "de_ComputeNodeGroupSummary");
1101
+ var de_CreateClusterResponse = /* @__PURE__ */ __name((output, context) => {
1102
+ return (0, import_smithy_client.take)(output, {
1103
+ cluster: /* @__PURE__ */ __name((_) => de_Cluster(_, context), "cluster")
1104
+ });
1105
+ }, "de_CreateClusterResponse");
1106
+ var de_CreateComputeNodeGroupResponse = /* @__PURE__ */ __name((output, context) => {
1107
+ return (0, import_smithy_client.take)(output, {
1108
+ computeNodeGroup: /* @__PURE__ */ __name((_) => de_ComputeNodeGroup(_, context), "computeNodeGroup")
1109
+ });
1110
+ }, "de_CreateComputeNodeGroupResponse");
1111
+ var de_CreateQueueResponse = /* @__PURE__ */ __name((output, context) => {
1112
+ return (0, import_smithy_client.take)(output, {
1113
+ queue: /* @__PURE__ */ __name((_) => de_Queue(_, context), "queue")
1114
+ });
1115
+ }, "de_CreateQueueResponse");
1116
+ var de_GetClusterResponse = /* @__PURE__ */ __name((output, context) => {
1117
+ return (0, import_smithy_client.take)(output, {
1118
+ cluster: /* @__PURE__ */ __name((_) => de_Cluster(_, context), "cluster")
1119
+ });
1120
+ }, "de_GetClusterResponse");
1121
+ var de_GetComputeNodeGroupResponse = /* @__PURE__ */ __name((output, context) => {
1122
+ return (0, import_smithy_client.take)(output, {
1123
+ computeNodeGroup: /* @__PURE__ */ __name((_) => de_ComputeNodeGroup(_, context), "computeNodeGroup")
1124
+ });
1125
+ }, "de_GetComputeNodeGroupResponse");
1126
+ var de_GetQueueResponse = /* @__PURE__ */ __name((output, context) => {
1127
+ return (0, import_smithy_client.take)(output, {
1128
+ queue: /* @__PURE__ */ __name((_) => de_Queue(_, context), "queue")
1129
+ });
1130
+ }, "de_GetQueueResponse");
1131
+ var de_ListClustersResponse = /* @__PURE__ */ __name((output, context) => {
1132
+ return (0, import_smithy_client.take)(output, {
1133
+ clusters: /* @__PURE__ */ __name((_) => de_ClusterList(_, context), "clusters"),
1134
+ nextToken: import_smithy_client.expectString
1135
+ });
1136
+ }, "de_ListClustersResponse");
1137
+ var de_ListComputeNodeGroupsResponse = /* @__PURE__ */ __name((output, context) => {
1138
+ return (0, import_smithy_client.take)(output, {
1139
+ computeNodeGroups: /* @__PURE__ */ __name((_) => de_ComputeNodeGroupList(_, context), "computeNodeGroups"),
1140
+ nextToken: import_smithy_client.expectString
1141
+ });
1142
+ }, "de_ListComputeNodeGroupsResponse");
1143
+ var de_ListQueuesResponse = /* @__PURE__ */ __name((output, context) => {
1144
+ return (0, import_smithy_client.take)(output, {
1145
+ nextToken: import_smithy_client.expectString,
1146
+ queues: /* @__PURE__ */ __name((_) => de_QueueList(_, context), "queues")
1147
+ });
1148
+ }, "de_ListQueuesResponse");
1149
+ var de_Queue = /* @__PURE__ */ __name((output, context) => {
1150
+ return (0, import_smithy_client.take)(output, {
1151
+ arn: import_smithy_client.expectString,
1152
+ clusterId: import_smithy_client.expectString,
1153
+ computeNodeGroupConfigurations: import_smithy_client._json,
1154
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1155
+ errorInfo: import_smithy_client._json,
1156
+ id: import_smithy_client.expectString,
1157
+ modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "modifiedAt"),
1158
+ name: import_smithy_client.expectString,
1159
+ status: import_smithy_client.expectString
1160
+ });
1161
+ }, "de_Queue");
1162
+ var de_QueueList = /* @__PURE__ */ __name((output, context) => {
1163
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1164
+ return de_QueueSummary(entry, context);
1165
+ });
1166
+ return retVal;
1167
+ }, "de_QueueList");
1168
+ var de_QueueSummary = /* @__PURE__ */ __name((output, context) => {
1169
+ return (0, import_smithy_client.take)(output, {
1170
+ arn: import_smithy_client.expectString,
1171
+ clusterId: import_smithy_client.expectString,
1172
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1173
+ id: import_smithy_client.expectString,
1174
+ modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "modifiedAt"),
1175
+ name: import_smithy_client.expectString,
1176
+ status: import_smithy_client.expectString
1177
+ });
1178
+ }, "de_QueueSummary");
1179
+ var de_UpdateComputeNodeGroupResponse = /* @__PURE__ */ __name((output, context) => {
1180
+ return (0, import_smithy_client.take)(output, {
1181
+ computeNodeGroup: /* @__PURE__ */ __name((_) => de_ComputeNodeGroup(_, context), "computeNodeGroup")
1182
+ });
1183
+ }, "de_UpdateComputeNodeGroupResponse");
1184
+ var de_UpdateQueueResponse = /* @__PURE__ */ __name((output, context) => {
1185
+ return (0, import_smithy_client.take)(output, {
1186
+ queue: /* @__PURE__ */ __name((_) => de_Queue(_, context), "queue")
1187
+ });
1188
+ }, "de_UpdateQueueResponse");
1189
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1190
+ httpStatusCode: output.statusCode,
1191
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1192
+ extendedRequestId: output.headers["x-amz-id-2"],
1193
+ cfId: output.headers["x-amz-cf-id"]
1194
+ }), "deserializeMetadata");
1195
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(PCSServiceException);
1196
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1197
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1198
+ const contents = {
1199
+ protocol,
1200
+ hostname,
1201
+ port,
1202
+ method: "POST",
1203
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1204
+ headers
1205
+ };
1206
+ if (resolvedHostname !== void 0) {
1207
+ contents.hostname = resolvedHostname;
1208
+ }
1209
+ if (body !== void 0) {
1210
+ contents.body = body;
1211
+ }
1212
+ return new import_protocol_http.HttpRequest(contents);
1213
+ }, "buildHttpRpcRequest");
1214
+ function sharedHeaders(operation) {
1215
+ return {
1216
+ "content-type": "application/x-amz-json-1.0",
1217
+ "x-amz-target": `AWSParallelComputingService.${operation}`
1218
+ };
1219
+ }
1220
+ __name(sharedHeaders, "sharedHeaders");
1221
+
1222
+ // src/commands/CreateClusterCommand.ts
1223
+ var CreateClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1224
+ return [
1225
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1226
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1227
+ ];
1228
+ }).s("AWSParallelComputingService", "CreateCluster", {}).n("PCSClient", "CreateClusterCommand").f(void 0, void 0).ser(se_CreateClusterCommand).de(de_CreateClusterCommand).build() {
1229
+ static {
1230
+ __name(this, "CreateClusterCommand");
1231
+ }
1232
+ };
1233
+
1234
+ // src/commands/CreateComputeNodeGroupCommand.ts
1235
+
1236
+
1237
+
1238
+ var CreateComputeNodeGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1239
+ return [
1240
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1241
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1242
+ ];
1243
+ }).s("AWSParallelComputingService", "CreateComputeNodeGroup", {}).n("PCSClient", "CreateComputeNodeGroupCommand").f(void 0, void 0).ser(se_CreateComputeNodeGroupCommand).de(de_CreateComputeNodeGroupCommand).build() {
1244
+ static {
1245
+ __name(this, "CreateComputeNodeGroupCommand");
1246
+ }
1247
+ };
1248
+
1249
+ // src/commands/CreateQueueCommand.ts
1250
+
1251
+
1252
+
1253
+ var CreateQueueCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1254
+ return [
1255
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1256
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1257
+ ];
1258
+ }).s("AWSParallelComputingService", "CreateQueue", {}).n("PCSClient", "CreateQueueCommand").f(void 0, void 0).ser(se_CreateQueueCommand).de(de_CreateQueueCommand).build() {
1259
+ static {
1260
+ __name(this, "CreateQueueCommand");
1261
+ }
1262
+ };
1263
+
1264
+ // src/commands/DeleteClusterCommand.ts
1265
+
1266
+
1267
+
1268
+ var DeleteClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1269
+ return [
1270
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1271
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1272
+ ];
1273
+ }).s("AWSParallelComputingService", "DeleteCluster", {}).n("PCSClient", "DeleteClusterCommand").f(void 0, void 0).ser(se_DeleteClusterCommand).de(de_DeleteClusterCommand).build() {
1274
+ static {
1275
+ __name(this, "DeleteClusterCommand");
1276
+ }
1277
+ };
1278
+
1279
+ // src/commands/DeleteComputeNodeGroupCommand.ts
1280
+
1281
+
1282
+
1283
+ var DeleteComputeNodeGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1284
+ return [
1285
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1286
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1287
+ ];
1288
+ }).s("AWSParallelComputingService", "DeleteComputeNodeGroup", {}).n("PCSClient", "DeleteComputeNodeGroupCommand").f(void 0, void 0).ser(se_DeleteComputeNodeGroupCommand).de(de_DeleteComputeNodeGroupCommand).build() {
1289
+ static {
1290
+ __name(this, "DeleteComputeNodeGroupCommand");
1291
+ }
1292
+ };
1293
+
1294
+ // src/commands/DeleteQueueCommand.ts
1295
+
1296
+
1297
+
1298
+ var DeleteQueueCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1299
+ return [
1300
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1301
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1302
+ ];
1303
+ }).s("AWSParallelComputingService", "DeleteQueue", {}).n("PCSClient", "DeleteQueueCommand").f(void 0, void 0).ser(se_DeleteQueueCommand).de(de_DeleteQueueCommand).build() {
1304
+ static {
1305
+ __name(this, "DeleteQueueCommand");
1306
+ }
1307
+ };
1308
+
1309
+ // src/commands/GetClusterCommand.ts
1310
+
1311
+
1312
+
1313
+ var GetClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1314
+ return [
1315
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1316
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1317
+ ];
1318
+ }).s("AWSParallelComputingService", "GetCluster", {}).n("PCSClient", "GetClusterCommand").f(void 0, void 0).ser(se_GetClusterCommand).de(de_GetClusterCommand).build() {
1319
+ static {
1320
+ __name(this, "GetClusterCommand");
1321
+ }
1322
+ };
1323
+
1324
+ // src/commands/GetComputeNodeGroupCommand.ts
1325
+
1326
+
1327
+
1328
+ var GetComputeNodeGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1329
+ return [
1330
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1331
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1332
+ ];
1333
+ }).s("AWSParallelComputingService", "GetComputeNodeGroup", {}).n("PCSClient", "GetComputeNodeGroupCommand").f(void 0, void 0).ser(se_GetComputeNodeGroupCommand).de(de_GetComputeNodeGroupCommand).build() {
1334
+ static {
1335
+ __name(this, "GetComputeNodeGroupCommand");
1336
+ }
1337
+ };
1338
+
1339
+ // src/commands/GetQueueCommand.ts
1340
+
1341
+
1342
+
1343
+ var GetQueueCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1344
+ return [
1345
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1346
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1347
+ ];
1348
+ }).s("AWSParallelComputingService", "GetQueue", {}).n("PCSClient", "GetQueueCommand").f(void 0, void 0).ser(se_GetQueueCommand).de(de_GetQueueCommand).build() {
1349
+ static {
1350
+ __name(this, "GetQueueCommand");
1351
+ }
1352
+ };
1353
+
1354
+ // src/commands/ListClustersCommand.ts
1355
+
1356
+
1357
+
1358
+ var ListClustersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1359
+ return [
1360
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1361
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1362
+ ];
1363
+ }).s("AWSParallelComputingService", "ListClusters", {}).n("PCSClient", "ListClustersCommand").f(void 0, void 0).ser(se_ListClustersCommand).de(de_ListClustersCommand).build() {
1364
+ static {
1365
+ __name(this, "ListClustersCommand");
1366
+ }
1367
+ };
1368
+
1369
+ // src/commands/ListComputeNodeGroupsCommand.ts
1370
+
1371
+
1372
+
1373
+ var ListComputeNodeGroupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1374
+ return [
1375
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1376
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1377
+ ];
1378
+ }).s("AWSParallelComputingService", "ListComputeNodeGroups", {}).n("PCSClient", "ListComputeNodeGroupsCommand").f(void 0, void 0).ser(se_ListComputeNodeGroupsCommand).de(de_ListComputeNodeGroupsCommand).build() {
1379
+ static {
1380
+ __name(this, "ListComputeNodeGroupsCommand");
1381
+ }
1382
+ };
1383
+
1384
+ // src/commands/ListQueuesCommand.ts
1385
+
1386
+
1387
+
1388
+ var ListQueuesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1389
+ return [
1390
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1391
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1392
+ ];
1393
+ }).s("AWSParallelComputingService", "ListQueues", {}).n("PCSClient", "ListQueuesCommand").f(void 0, void 0).ser(se_ListQueuesCommand).de(de_ListQueuesCommand).build() {
1394
+ static {
1395
+ __name(this, "ListQueuesCommand");
1396
+ }
1397
+ };
1398
+
1399
+ // src/commands/ListTagsForResourceCommand.ts
1400
+
1401
+
1402
+
1403
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1404
+ return [
1405
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1406
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1407
+ ];
1408
+ }).s("AWSParallelComputingService", "ListTagsForResource", {}).n("PCSClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1409
+ static {
1410
+ __name(this, "ListTagsForResourceCommand");
1411
+ }
1412
+ };
1413
+
1414
+ // src/commands/RegisterComputeNodeGroupInstanceCommand.ts
1415
+
1416
+
1417
+
1418
+ var RegisterComputeNodeGroupInstanceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1419
+ return [
1420
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1421
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1422
+ ];
1423
+ }).s("AWSParallelComputingService", "RegisterComputeNodeGroupInstance", {}).n("PCSClient", "RegisterComputeNodeGroupInstanceCommand").f(void 0, RegisterComputeNodeGroupInstanceResponseFilterSensitiveLog).ser(se_RegisterComputeNodeGroupInstanceCommand).de(de_RegisterComputeNodeGroupInstanceCommand).build() {
1424
+ static {
1425
+ __name(this, "RegisterComputeNodeGroupInstanceCommand");
1426
+ }
1427
+ };
1428
+
1429
+ // src/commands/TagResourceCommand.ts
1430
+
1431
+
1432
+
1433
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1434
+ return [
1435
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1436
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1437
+ ];
1438
+ }).s("AWSParallelComputingService", "TagResource", {}).n("PCSClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1439
+ static {
1440
+ __name(this, "TagResourceCommand");
1441
+ }
1442
+ };
1443
+
1444
+ // src/commands/UntagResourceCommand.ts
1445
+
1446
+
1447
+
1448
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1449
+ return [
1450
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1451
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1452
+ ];
1453
+ }).s("AWSParallelComputingService", "UntagResource", {}).n("PCSClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1454
+ static {
1455
+ __name(this, "UntagResourceCommand");
1456
+ }
1457
+ };
1458
+
1459
+ // src/commands/UpdateComputeNodeGroupCommand.ts
1460
+
1461
+
1462
+
1463
+ var UpdateComputeNodeGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1464
+ return [
1465
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1466
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1467
+ ];
1468
+ }).s("AWSParallelComputingService", "UpdateComputeNodeGroup", {}).n("PCSClient", "UpdateComputeNodeGroupCommand").f(void 0, void 0).ser(se_UpdateComputeNodeGroupCommand).de(de_UpdateComputeNodeGroupCommand).build() {
1469
+ static {
1470
+ __name(this, "UpdateComputeNodeGroupCommand");
1471
+ }
1472
+ };
1473
+
1474
+ // src/commands/UpdateQueueCommand.ts
1475
+
1476
+
1477
+
1478
+ var UpdateQueueCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1479
+ return [
1480
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1481
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1482
+ ];
1483
+ }).s("AWSParallelComputingService", "UpdateQueue", {}).n("PCSClient", "UpdateQueueCommand").f(void 0, void 0).ser(se_UpdateQueueCommand).de(de_UpdateQueueCommand).build() {
1484
+ static {
1485
+ __name(this, "UpdateQueueCommand");
1486
+ }
1487
+ };
1488
+
1489
+ // src/PCS.ts
1490
+ var commands = {
1491
+ CreateClusterCommand,
1492
+ CreateComputeNodeGroupCommand,
1493
+ CreateQueueCommand,
1494
+ DeleteClusterCommand,
1495
+ DeleteComputeNodeGroupCommand,
1496
+ DeleteQueueCommand,
1497
+ GetClusterCommand,
1498
+ GetComputeNodeGroupCommand,
1499
+ GetQueueCommand,
1500
+ ListClustersCommand,
1501
+ ListComputeNodeGroupsCommand,
1502
+ ListQueuesCommand,
1503
+ ListTagsForResourceCommand,
1504
+ RegisterComputeNodeGroupInstanceCommand,
1505
+ TagResourceCommand,
1506
+ UntagResourceCommand,
1507
+ UpdateComputeNodeGroupCommand,
1508
+ UpdateQueueCommand
1509
+ };
1510
+ var PCS = class extends PCSClient {
1511
+ static {
1512
+ __name(this, "PCS");
1513
+ }
1514
+ };
1515
+ (0, import_smithy_client.createAggregatedClient)(commands, PCS);
1516
+
1517
+ // src/pagination/ListClustersPaginator.ts
1518
+
1519
+ var paginateListClusters = (0, import_core.createPaginator)(PCSClient, ListClustersCommand, "nextToken", "nextToken", "maxResults");
1520
+
1521
+ // src/pagination/ListComputeNodeGroupsPaginator.ts
1522
+
1523
+ var paginateListComputeNodeGroups = (0, import_core.createPaginator)(PCSClient, ListComputeNodeGroupsCommand, "nextToken", "nextToken", "maxResults");
1524
+
1525
+ // src/pagination/ListQueuesPaginator.ts
1526
+
1527
+ var paginateListQueues = (0, import_core.createPaginator)(PCSClient, ListQueuesCommand, "nextToken", "nextToken", "maxResults");
1528
+ // Annotate the CommonJS export names for ESM import in node:
1529
+
1530
+ 0 && (module.exports = {
1531
+ PCSServiceException,
1532
+ __Client,
1533
+ PCSClient,
1534
+ PCS,
1535
+ $Command,
1536
+ CreateClusterCommand,
1537
+ CreateComputeNodeGroupCommand,
1538
+ CreateQueueCommand,
1539
+ DeleteClusterCommand,
1540
+ DeleteComputeNodeGroupCommand,
1541
+ DeleteQueueCommand,
1542
+ GetClusterCommand,
1543
+ GetComputeNodeGroupCommand,
1544
+ GetQueueCommand,
1545
+ ListClustersCommand,
1546
+ ListComputeNodeGroupsCommand,
1547
+ ListQueuesCommand,
1548
+ ListTagsForResourceCommand,
1549
+ RegisterComputeNodeGroupInstanceCommand,
1550
+ TagResourceCommand,
1551
+ UntagResourceCommand,
1552
+ UpdateComputeNodeGroupCommand,
1553
+ UpdateQueueCommand,
1554
+ paginateListClusters,
1555
+ paginateListComputeNodeGroups,
1556
+ paginateListQueues,
1557
+ AccessDeniedException,
1558
+ AccountingMode,
1559
+ ConflictException,
1560
+ PurchaseOption,
1561
+ SpotAllocationStrategy,
1562
+ ComputeNodeGroupStatus,
1563
+ InternalServerException,
1564
+ ResourceNotFoundException,
1565
+ ServiceQuotaExceededException,
1566
+ ThrottlingException,
1567
+ ValidationExceptionReason,
1568
+ ValidationException,
1569
+ NetworkType,
1570
+ SchedulerType,
1571
+ Size,
1572
+ EndpointType,
1573
+ ClusterStatus,
1574
+ QueueStatus,
1575
+ RegisterComputeNodeGroupInstanceResponseFilterSensitiveLog
1576
+ });
1577
+