@aws-sdk/client-dsql 3.927.0 → 3.929.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 (50) hide show
  1. package/README.md +1 -6
  2. package/dist-cjs/index.js +497 -596
  3. package/dist-cjs/runtimeConfig.shared.js +2 -0
  4. package/dist-es/DSQLClient.js +2 -0
  5. package/dist-es/commands/CreateClusterCommand.js +3 -9
  6. package/dist-es/commands/DeleteClusterCommand.js +3 -9
  7. package/dist-es/commands/DeleteClusterPolicyCommand.js +3 -9
  8. package/dist-es/commands/GetClusterCommand.js +3 -9
  9. package/dist-es/commands/GetClusterPolicyCommand.js +3 -9
  10. package/dist-es/commands/GetVpcEndpointServiceNameCommand.js +3 -9
  11. package/dist-es/commands/ListClustersCommand.js +3 -9
  12. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  13. package/dist-es/commands/PutClusterPolicyCommand.js +3 -9
  14. package/dist-es/commands/TagResourceCommand.js +3 -9
  15. package/dist-es/commands/UntagResourceCommand.js +3 -9
  16. package/dist-es/commands/UpdateClusterCommand.js +3 -9
  17. package/dist-es/runtimeConfig.shared.js +2 -0
  18. package/dist-es/schemas/schemas_0.js +463 -0
  19. package/dist-types/DSQL.d.ts +1 -6
  20. package/dist-types/DSQLClient.d.ts +11 -7
  21. package/dist-types/commands/CreateClusterCommand.d.ts +3 -67
  22. package/dist-types/commands/DeleteClusterCommand.d.ts +1 -2
  23. package/dist-types/commands/DeleteClusterPolicyCommand.d.ts +1 -2
  24. package/dist-types/commands/GetClusterCommand.d.ts +2 -2
  25. package/dist-types/commands/GetClusterPolicyCommand.d.ts +1 -2
  26. package/dist-types/commands/GetVpcEndpointServiceNameCommand.d.ts +1 -2
  27. package/dist-types/commands/ListClustersCommand.d.ts +1 -2
  28. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -2
  29. package/dist-types/commands/PutClusterPolicyCommand.d.ts +1 -2
  30. package/dist-types/commands/TagResourceCommand.d.ts +1 -2
  31. package/dist-types/commands/UntagResourceCommand.d.ts +1 -2
  32. package/dist-types/commands/UpdateClusterCommand.d.ts +2 -91
  33. package/dist-types/index.d.ts +1 -6
  34. package/dist-types/models/models_0.d.ts +22 -38
  35. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  36. package/dist-types/runtimeConfig.d.ts +1 -0
  37. package/dist-types/runtimeConfig.native.d.ts +1 -0
  38. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  39. package/dist-types/schemas/schemas_0.d.ts +53 -0
  40. package/dist-types/ts3.4/DSQLClient.d.ts +4 -0
  41. package/dist-types/ts3.4/models/models_0.d.ts +2 -0
  42. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  43. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  44. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  45. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  46. package/dist-types/ts3.4/schemas/schemas_0.d.ts +58 -0
  47. package/package.json +5 -6
  48. package/dist-es/protocols/Aws_restJson1.js +0 -502
  49. package/dist-types/protocols/Aws_restJson1.d.ts +0 -110
  50. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -149
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,9 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
- var uuid = require('@smithy/uuid');
20
18
  var utilWaiter = require('@smithy/util-waiter');
21
19
 
22
20
  const resolveClientEndpointParameters = (options) => {
@@ -91,6 +89,7 @@ class DSQLClient extends smithyClient.Client {
91
89
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
90
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
91
  this.config = _config_8;
92
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
93
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
94
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
95
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +109,14 @@ class DSQLClient extends smithyClient.Client {
110
109
  }
111
110
  }
112
111
 
113
- class DSQLServiceException extends smithyClient.ServiceException {
112
+ let DSQLServiceException$1 = class DSQLServiceException extends smithyClient.ServiceException {
114
113
  constructor(options) {
115
114
  super(options);
116
115
  Object.setPrototypeOf(this, DSQLServiceException.prototype);
117
116
  }
118
- }
117
+ };
119
118
 
120
- class AccessDeniedException extends DSQLServiceException {
119
+ let AccessDeniedException$1 = class AccessDeniedException extends DSQLServiceException$1 {
121
120
  name = "AccessDeniedException";
122
121
  $fault = "client";
123
122
  constructor(opts) {
@@ -128,7 +127,7 @@ class AccessDeniedException extends DSQLServiceException {
128
127
  });
129
128
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
129
  }
131
- }
130
+ };
132
131
  const ClusterStatus = {
133
132
  ACTIVE: "ACTIVE",
134
133
  CREATING: "CREATING",
@@ -141,7 +140,7 @@ const ClusterStatus = {
141
140
  PENDING_SETUP: "PENDING_SETUP",
142
141
  UPDATING: "UPDATING",
143
142
  };
144
- class ConflictException extends DSQLServiceException {
143
+ let ConflictException$1 = class ConflictException extends DSQLServiceException$1 {
145
144
  name = "ConflictException";
146
145
  $fault = "client";
147
146
  resourceId;
@@ -156,7 +155,7 @@ class ConflictException extends DSQLServiceException {
156
155
  this.resourceId = opts.resourceId;
157
156
  this.resourceType = opts.resourceType;
158
157
  }
159
- }
158
+ };
160
159
  const EncryptionStatus = {
161
160
  ENABLED: "ENABLED",
162
161
  ENABLING: "ENABLING",
@@ -167,7 +166,7 @@ const EncryptionType = {
167
166
  AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
168
167
  CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",
169
168
  };
170
- class InternalServerException extends DSQLServiceException {
169
+ let InternalServerException$1 = class InternalServerException extends DSQLServiceException$1 {
171
170
  name = "InternalServerException";
172
171
  $fault = "server";
173
172
  $retryable = {};
@@ -181,8 +180,8 @@ class InternalServerException extends DSQLServiceException {
181
180
  Object.setPrototypeOf(this, InternalServerException.prototype);
182
181
  this.retryAfterSeconds = opts.retryAfterSeconds;
183
182
  }
184
- }
185
- class ServiceQuotaExceededException extends DSQLServiceException {
183
+ };
184
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends DSQLServiceException$1 {
186
185
  name = "ServiceQuotaExceededException";
187
186
  $fault = "client";
188
187
  resourceId;
@@ -201,8 +200,8 @@ class ServiceQuotaExceededException extends DSQLServiceException {
201
200
  this.serviceCode = opts.serviceCode;
202
201
  this.quotaCode = opts.quotaCode;
203
202
  }
204
- }
205
- class ThrottlingException extends DSQLServiceException {
203
+ };
204
+ let ThrottlingException$1 = class ThrottlingException extends DSQLServiceException$1 {
206
205
  name = "ThrottlingException";
207
206
  $fault = "client";
208
207
  $retryable = {
@@ -222,7 +221,7 @@ class ThrottlingException extends DSQLServiceException {
222
221
  this.quotaCode = opts.quotaCode;
223
222
  this.retryAfterSeconds = opts.retryAfterSeconds;
224
223
  }
225
- }
224
+ };
226
225
  const ValidationExceptionReason = {
227
226
  CANNOT_PARSE: "cannotParse",
228
227
  DELETION_PROTECTION_ENABLED: "deletionProtectionEnabled",
@@ -230,7 +229,7 @@ const ValidationExceptionReason = {
230
229
  OTHER: "other",
231
230
  UNKNOWN_OPERATION: "unknownOperation",
232
231
  };
233
- class ValidationException extends DSQLServiceException {
232
+ let ValidationException$1 = class ValidationException extends DSQLServiceException$1 {
234
233
  name = "ValidationException";
235
234
  $fault = "client";
236
235
  reason;
@@ -245,8 +244,8 @@ class ValidationException extends DSQLServiceException {
245
244
  this.reason = opts.reason;
246
245
  this.fieldList = opts.fieldList;
247
246
  }
248
- }
249
- class ResourceNotFoundException extends DSQLServiceException {
247
+ };
248
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends DSQLServiceException$1 {
250
249
  name = "ResourceNotFoundException";
251
250
  $fault = "client";
252
251
  resourceId;
@@ -261,518 +260,475 @@ class ResourceNotFoundException extends DSQLServiceException {
261
260
  this.resourceId = opts.resourceId;
262
261
  this.resourceType = opts.resourceType;
263
262
  }
264
- }
265
-
266
- const se_CreateClusterCommand = async (input, context) => {
267
- const b = core.requestBuilder(input, context);
268
- const headers = {
269
- "content-type": "application/json",
270
- };
271
- b.bp("/cluster");
272
- let body;
273
- body = JSON.stringify(smithyClient.take(input, {
274
- bypassPolicyLockoutSafetyCheck: [],
275
- clientToken: [true, (_) => _ ?? uuid.v4()],
276
- deletionProtectionEnabled: [],
277
- kmsEncryptionKey: [],
278
- multiRegionProperties: (_) => smithyClient._json(_),
279
- policy: [],
280
- tags: (_) => smithyClient._json(_),
281
- }));
282
- b.m("POST").h(headers).b(body);
283
- return b.build();
284
- };
285
- const se_DeleteClusterCommand = async (input, context) => {
286
- const b = core.requestBuilder(input, context);
287
- const headers = {};
288
- b.bp("/cluster/{identifier}");
289
- b.p("identifier", () => input.identifier, "{identifier}", false);
290
- const query = smithyClient.map({
291
- [_ct]: [, input[_cT] ?? uuid.v4()],
292
- });
293
- let body;
294
- b.m("DELETE").h(headers).q(query).b(body);
295
- return b.build();
296
- };
297
- const se_DeleteClusterPolicyCommand = async (input, context) => {
298
- const b = core.requestBuilder(input, context);
299
- const headers = {};
300
- b.bp("/cluster/{identifier}/policy");
301
- b.p("identifier", () => input.identifier, "{identifier}", false);
302
- const query = smithyClient.map({
303
- [_epv]: [, input[_ePV]],
304
- [_ct]: [, input[_cT] ?? uuid.v4()],
305
- });
306
- let body;
307
- b.m("DELETE").h(headers).q(query).b(body);
308
- return b.build();
309
- };
310
- const se_GetClusterCommand = async (input, context) => {
311
- const b = core.requestBuilder(input, context);
312
- const headers = {};
313
- b.bp("/cluster/{identifier}");
314
- b.p("identifier", () => input.identifier, "{identifier}", false);
315
- let body;
316
- b.m("GET").h(headers).b(body);
317
- return b.build();
318
- };
319
- const se_GetClusterPolicyCommand = async (input, context) => {
320
- const b = core.requestBuilder(input, context);
321
- const headers = {};
322
- b.bp("/cluster/{identifier}/policy");
323
- b.p("identifier", () => input.identifier, "{identifier}", false);
324
- let body;
325
- b.m("GET").h(headers).b(body);
326
- return b.build();
327
- };
328
- const se_GetVpcEndpointServiceNameCommand = async (input, context) => {
329
- const b = core.requestBuilder(input, context);
330
- const headers = {};
331
- b.bp("/clusters/{identifier}/vpc-endpoint-service-name");
332
- b.p("identifier", () => input.identifier, "{identifier}", false);
333
- let body;
334
- b.m("GET").h(headers).b(body);
335
- return b.build();
336
- };
337
- const se_ListClustersCommand = async (input, context) => {
338
- const b = core.requestBuilder(input, context);
339
- const headers = {};
340
- b.bp("/cluster");
341
- const query = smithyClient.map({
342
- [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
343
- [_nt]: [, input[_nT]],
344
- });
345
- let body;
346
- b.m("GET").h(headers).q(query).b(body);
347
- return b.build();
348
- };
349
- const se_ListTagsForResourceCommand = async (input, context) => {
350
- const b = core.requestBuilder(input, context);
351
- const headers = {};
352
- b.bp("/tags/{resourceArn}");
353
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
354
- let body;
355
- b.m("GET").h(headers).b(body);
356
- return b.build();
357
- };
358
- const se_PutClusterPolicyCommand = async (input, context) => {
359
- const b = core.requestBuilder(input, context);
360
- const headers = {
361
- "content-type": "application/json",
362
- };
363
- b.bp("/cluster/{identifier}/policy");
364
- b.p("identifier", () => input.identifier, "{identifier}", false);
365
- let body;
366
- body = JSON.stringify(smithyClient.take(input, {
367
- bypassPolicyLockoutSafetyCheck: [],
368
- clientToken: [true, (_) => _ ?? uuid.v4()],
369
- expectedPolicyVersion: [],
370
- policy: [],
371
- }));
372
- b.m("POST").h(headers).b(body);
373
- return b.build();
374
- };
375
- const se_TagResourceCommand = async (input, context) => {
376
- const b = core.requestBuilder(input, context);
377
- const headers = {
378
- "content-type": "application/json",
379
- };
380
- b.bp("/tags/{resourceArn}");
381
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
382
- let body;
383
- body = JSON.stringify(smithyClient.take(input, {
384
- tags: (_) => smithyClient._json(_),
385
- }));
386
- b.m("POST").h(headers).b(body);
387
- return b.build();
388
- };
389
- const se_UntagResourceCommand = async (input, context) => {
390
- const b = core.requestBuilder(input, context);
391
- const headers = {};
392
- b.bp("/tags/{resourceArn}");
393
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
394
- const query = smithyClient.map({
395
- [_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
396
- });
397
- let body;
398
- b.m("DELETE").h(headers).q(query).b(body);
399
- return b.build();
400
- };
401
- const se_UpdateClusterCommand = async (input, context) => {
402
- const b = core.requestBuilder(input, context);
403
- const headers = {
404
- "content-type": "application/json",
405
- };
406
- b.bp("/cluster/{identifier}");
407
- b.p("identifier", () => input.identifier, "{identifier}", false);
408
- let body;
409
- body = JSON.stringify(smithyClient.take(input, {
410
- clientToken: [true, (_) => _ ?? uuid.v4()],
411
- deletionProtectionEnabled: [],
412
- kmsEncryptionKey: [],
413
- multiRegionProperties: (_) => smithyClient._json(_),
414
- }));
415
- b.m("POST").h(headers).b(body);
416
- return b.build();
417
- };
418
- const de_CreateClusterCommand = async (output, context) => {
419
- if (output.statusCode !== 200 && output.statusCode >= 300) {
420
- return de_CommandError(output, context);
421
- }
422
- const contents = smithyClient.map({
423
- $metadata: deserializeMetadata(output),
424
- });
425
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
426
- const doc = smithyClient.take(data, {
427
- arn: smithyClient.expectString,
428
- creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
429
- deletionProtectionEnabled: smithyClient.expectBoolean,
430
- encryptionDetails: smithyClient._json,
431
- identifier: smithyClient.expectString,
432
- multiRegionProperties: smithyClient._json,
433
- status: smithyClient.expectString,
434
- });
435
- Object.assign(contents, doc);
436
- return contents;
437
- };
438
- const de_DeleteClusterCommand = async (output, context) => {
439
- if (output.statusCode !== 200 && output.statusCode >= 300) {
440
- return de_CommandError(output, context);
441
- }
442
- const contents = smithyClient.map({
443
- $metadata: deserializeMetadata(output),
444
- });
445
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
446
- const doc = smithyClient.take(data, {
447
- arn: smithyClient.expectString,
448
- creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
449
- identifier: smithyClient.expectString,
450
- status: smithyClient.expectString,
451
- });
452
- Object.assign(contents, doc);
453
- return contents;
454
- };
455
- const de_DeleteClusterPolicyCommand = async (output, context) => {
456
- if (output.statusCode !== 200 && output.statusCode >= 300) {
457
- return de_CommandError(output, context);
458
- }
459
- const contents = smithyClient.map({
460
- $metadata: deserializeMetadata(output),
461
- });
462
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
463
- const doc = smithyClient.take(data, {
464
- policyVersion: smithyClient.expectString,
465
- });
466
- Object.assign(contents, doc);
467
- return contents;
468
- };
469
- const de_GetClusterCommand = async (output, context) => {
470
- if (output.statusCode !== 200 && output.statusCode >= 300) {
471
- return de_CommandError(output, context);
472
- }
473
- const contents = smithyClient.map({
474
- $metadata: deserializeMetadata(output),
475
- });
476
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
477
- const doc = smithyClient.take(data, {
478
- arn: smithyClient.expectString,
479
- creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
480
- deletionProtectionEnabled: smithyClient.expectBoolean,
481
- encryptionDetails: smithyClient._json,
482
- identifier: smithyClient.expectString,
483
- multiRegionProperties: smithyClient._json,
484
- status: smithyClient.expectString,
485
- tags: smithyClient._json,
486
- });
487
- Object.assign(contents, doc);
488
- return contents;
489
- };
490
- const de_GetClusterPolicyCommand = async (output, context) => {
491
- if (output.statusCode !== 200 && output.statusCode >= 300) {
492
- return de_CommandError(output, context);
493
- }
494
- const contents = smithyClient.map({
495
- $metadata: deserializeMetadata(output),
496
- });
497
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
498
- const doc = smithyClient.take(data, {
499
- policy: smithyClient.expectString,
500
- policyVersion: smithyClient.expectString,
501
- });
502
- Object.assign(contents, doc);
503
- return contents;
504
263
  };
505
- const de_GetVpcEndpointServiceNameCommand = async (output, context) => {
506
- if (output.statusCode !== 200 && output.statusCode >= 300) {
507
- return de_CommandError(output, context);
508
- }
509
- const contents = smithyClient.map({
510
- $metadata: deserializeMetadata(output),
511
- });
512
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
513
- const doc = smithyClient.take(data, {
514
- serviceName: smithyClient.expectString,
515
- });
516
- Object.assign(contents, doc);
517
- return contents;
518
- };
519
- const de_ListClustersCommand = async (output, context) => {
520
- if (output.statusCode !== 200 && output.statusCode >= 300) {
521
- return de_CommandError(output, context);
522
- }
523
- const contents = smithyClient.map({
524
- $metadata: deserializeMetadata(output),
525
- });
526
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
527
- const doc = smithyClient.take(data, {
528
- clusters: smithyClient._json,
529
- nextToken: smithyClient.expectString,
530
- });
531
- Object.assign(contents, doc);
532
- return contents;
533
- };
534
- const de_ListTagsForResourceCommand = async (output, context) => {
535
- if (output.statusCode !== 200 && output.statusCode >= 300) {
536
- return de_CommandError(output, context);
537
- }
538
- const contents = smithyClient.map({
539
- $metadata: deserializeMetadata(output),
540
- });
541
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
542
- const doc = smithyClient.take(data, {
543
- tags: smithyClient._json,
544
- });
545
- Object.assign(contents, doc);
546
- return contents;
547
- };
548
- const de_PutClusterPolicyCommand = async (output, context) => {
549
- if (output.statusCode !== 200 && output.statusCode >= 300) {
550
- return de_CommandError(output, context);
551
- }
552
- const contents = smithyClient.map({
553
- $metadata: deserializeMetadata(output),
554
- });
555
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
556
- const doc = smithyClient.take(data, {
557
- policyVersion: smithyClient.expectString,
558
- });
559
- Object.assign(contents, doc);
560
- return contents;
561
- };
562
- const de_TagResourceCommand = async (output, context) => {
563
- if (output.statusCode !== 200 && output.statusCode >= 300) {
564
- return de_CommandError(output, context);
565
- }
566
- const contents = smithyClient.map({
567
- $metadata: deserializeMetadata(output),
568
- });
569
- await smithyClient.collectBody(output.body, context);
570
- return contents;
571
- };
572
- const de_UntagResourceCommand = async (output, context) => {
573
- if (output.statusCode !== 200 && output.statusCode >= 300) {
574
- return de_CommandError(output, context);
575
- }
576
- const contents = smithyClient.map({
577
- $metadata: deserializeMetadata(output),
578
- });
579
- await smithyClient.collectBody(output.body, context);
580
- return contents;
581
- };
582
- const de_UpdateClusterCommand = async (output, context) => {
583
- if (output.statusCode !== 200 && output.statusCode >= 300) {
584
- return de_CommandError(output, context);
585
- }
586
- const contents = smithyClient.map({
587
- $metadata: deserializeMetadata(output),
588
- });
589
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
590
- const doc = smithyClient.take(data, {
591
- arn: smithyClient.expectString,
592
- creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
593
- identifier: smithyClient.expectString,
594
- status: smithyClient.expectString,
595
- });
596
- Object.assign(contents, doc);
597
- return contents;
598
- };
599
- const de_CommandError = async (output, context) => {
600
- const parsedOutput = {
601
- ...output,
602
- body: await core$1.parseJsonErrorBody(output.body, context),
603
- };
604
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
605
- switch (errorCode) {
606
- case "AccessDeniedException":
607
- case "com.amazonaws.dsql#AccessDeniedException":
608
- throw await de_AccessDeniedExceptionRes(parsedOutput);
609
- case "ConflictException":
610
- case "com.amazonaws.dsql#ConflictException":
611
- throw await de_ConflictExceptionRes(parsedOutput);
612
- case "InternalServerException":
613
- case "com.amazonaws.dsql#InternalServerException":
614
- throw await de_InternalServerExceptionRes(parsedOutput);
615
- case "ServiceQuotaExceededException":
616
- case "com.amazonaws.dsql#ServiceQuotaExceededException":
617
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
618
- case "ThrottlingException":
619
- case "com.amazonaws.dsql#ThrottlingException":
620
- throw await de_ThrottlingExceptionRes(parsedOutput);
621
- case "ValidationException":
622
- case "com.amazonaws.dsql#ValidationException":
623
- throw await de_ValidationExceptionRes(parsedOutput);
624
- case "ResourceNotFoundException":
625
- case "com.amazonaws.dsql#ResourceNotFoundException":
626
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
627
- default:
628
- const parsedBody = parsedOutput.body;
629
- return throwDefaultError({
630
- output,
631
- parsedBody,
632
- errorCode,
633
- });
634
- }
635
- };
636
- const throwDefaultError = smithyClient.withBaseException(DSQLServiceException);
637
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
638
- const contents = smithyClient.map({});
639
- const data = parsedOutput.body;
640
- const doc = smithyClient.take(data, {
641
- message: smithyClient.expectString,
642
- });
643
- Object.assign(contents, doc);
644
- const exception = new AccessDeniedException({
645
- $metadata: deserializeMetadata(parsedOutput),
646
- ...contents,
647
- });
648
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
649
- };
650
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
651
- const contents = smithyClient.map({});
652
- const data = parsedOutput.body;
653
- const doc = smithyClient.take(data, {
654
- message: smithyClient.expectString,
655
- resourceId: smithyClient.expectString,
656
- resourceType: smithyClient.expectString,
657
- });
658
- Object.assign(contents, doc);
659
- const exception = new ConflictException({
660
- $metadata: deserializeMetadata(parsedOutput),
661
- ...contents,
662
- });
663
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
664
- };
665
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
666
- const contents = smithyClient.map({
667
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
668
- });
669
- const data = parsedOutput.body;
670
- const doc = smithyClient.take(data, {
671
- message: smithyClient.expectString,
672
- });
673
- Object.assign(contents, doc);
674
- const exception = new InternalServerException({
675
- $metadata: deserializeMetadata(parsedOutput),
676
- ...contents,
677
- });
678
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
679
- };
680
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
681
- const contents = smithyClient.map({});
682
- const data = parsedOutput.body;
683
- const doc = smithyClient.take(data, {
684
- message: smithyClient.expectString,
685
- resourceId: smithyClient.expectString,
686
- resourceType: smithyClient.expectString,
687
- });
688
- Object.assign(contents, doc);
689
- const exception = new ResourceNotFoundException({
690
- $metadata: deserializeMetadata(parsedOutput),
691
- ...contents,
692
- });
693
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
694
- };
695
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
696
- const contents = smithyClient.map({});
697
- const data = parsedOutput.body;
698
- const doc = smithyClient.take(data, {
699
- message: smithyClient.expectString,
700
- quotaCode: smithyClient.expectString,
701
- resourceId: smithyClient.expectString,
702
- resourceType: smithyClient.expectString,
703
- serviceCode: smithyClient.expectString,
704
- });
705
- Object.assign(contents, doc);
706
- const exception = new ServiceQuotaExceededException({
707
- $metadata: deserializeMetadata(parsedOutput),
708
- ...contents,
709
- });
710
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
711
- };
712
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
713
- const contents = smithyClient.map({
714
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
715
- });
716
- const data = parsedOutput.body;
717
- const doc = smithyClient.take(data, {
718
- message: smithyClient.expectString,
719
- quotaCode: smithyClient.expectString,
720
- serviceCode: smithyClient.expectString,
721
- });
722
- Object.assign(contents, doc);
723
- const exception = new ThrottlingException({
724
- $metadata: deserializeMetadata(parsedOutput),
725
- ...contents,
726
- });
727
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
728
- };
729
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
730
- const contents = smithyClient.map({});
731
- const data = parsedOutput.body;
732
- const doc = smithyClient.take(data, {
733
- fieldList: smithyClient._json,
734
- message: smithyClient.expectString,
735
- reason: smithyClient.expectString,
736
- });
737
- Object.assign(contents, doc);
738
- const exception = new ValidationException({
739
- $metadata: deserializeMetadata(parsedOutput),
740
- ...contents,
741
- });
742
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
743
- };
744
- const deserializeMetadata = (output) => ({
745
- httpStatusCode: output.statusCode,
746
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
747
- extendedRequestId: output.headers["x-amz-id-2"],
748
- cfId: output.headers["x-amz-cf-id"],
749
- });
264
+
265
+ const _ADE = "AccessDeniedException";
266
+ const _CC = "CreateCluster";
267
+ const _CCI = "CreateClusterInput";
268
+ const _CCO = "CreateClusterOutput";
269
+ const _CE = "ConflictException";
270
+ const _CL = "ClusterList";
271
+ const _CS = "ClusterSummary";
272
+ const _DC = "DeleteCluster";
273
+ const _DCI = "DeleteClusterInput";
274
+ const _DCO = "DeleteClusterOutput";
275
+ const _DCP = "DeleteClusterPolicy";
276
+ const _DCPI = "DeleteClusterPolicyInput";
277
+ const _DCPO = "DeleteClusterPolicyOutput";
278
+ const _ED = "EncryptionDetails";
279
+ const _GC = "GetCluster";
280
+ const _GCI = "GetClusterInput";
281
+ const _GCO = "GetClusterOutput";
282
+ const _GCP = "GetClusterPolicy";
283
+ const _GCPI = "GetClusterPolicyInput";
284
+ const _GCPO = "GetClusterPolicyOutput";
285
+ const _GVESN = "GetVpcEndpointServiceName";
286
+ const _GVESNI = "GetVpcEndpointServiceNameInput";
287
+ const _GVESNO = "GetVpcEndpointServiceNameOutput";
288
+ const _ISE = "InternalServerException";
289
+ const _LC = "ListClusters";
290
+ const _LCI = "ListClustersInput";
291
+ const _LCO = "ListClustersOutput";
292
+ const _LTFR = "ListTagsForResource";
293
+ const _LTFRI = "ListTagsForResourceInput";
294
+ const _LTFRO = "ListTagsForResourceOutput";
295
+ const _MRP = "MultiRegionProperties";
296
+ const _PCP = "PutClusterPolicy";
297
+ const _PCPI = "PutClusterPolicyInput";
298
+ const _PCPO = "PutClusterPolicyOutput";
299
+ const _RA = "Retry-After";
300
+ const _RNFE = "ResourceNotFoundException";
301
+ const _SQEE = "ServiceQuotaExceededException";
302
+ const _TE = "ThrottlingException";
303
+ const _TR = "TagResource";
304
+ const _TRI = "TagResourceInput";
305
+ const _UC = "UpdateCluster";
306
+ const _UCI = "UpdateClusterInput";
307
+ const _UCO = "UpdateClusterOutput";
308
+ const _UR = "UntagResource";
309
+ const _URI = "UntagResourceInput";
310
+ const _VE = "ValidationException";
311
+ const _VEF = "ValidationExceptionField";
312
+ const _VEFL = "ValidationExceptionFieldList";
313
+ const _a = "arn";
314
+ const _bPLSC = "bypassPolicyLockoutSafetyCheck";
315
+ const _c = "client";
750
316
  const _cT = "clientToken";
317
+ const _cTr = "creationTime";
318
+ const _cl = "clusters";
751
319
  const _ct = "client-token";
320
+ const _dPE = "deletionProtectionEnabled";
321
+ const _e = "error";
322
+ const _eD = "encryptionDetails";
752
323
  const _ePV = "expectedPolicyVersion";
324
+ const _eS = "encryptionStatus";
325
+ const _eT = "encryptionType";
326
+ const _en = "endpoint";
753
327
  const _epv = "expected-policy-version";
328
+ const _fL = "fieldList";
329
+ const _h = "http";
330
+ const _hE = "httpError";
331
+ const _hH = "httpHeader";
332
+ const _hQ = "httpQuery";
333
+ const _i = "identifier";
334
+ const _iT = "idempotencyToken";
335
+ const _kEK = "kmsEncryptionKey";
336
+ const _kKA = "kmsKeyArn";
337
+ const _m = "message";
754
338
  const _mR = "maxResults";
339
+ const _mRP = "multiRegionProperties";
755
340
  const _mr = "max-results";
341
+ const _n = "name";
756
342
  const _nT = "nextToken";
757
343
  const _nt = "next-token";
344
+ const _p = "policy";
345
+ const _pV = "policyVersion";
346
+ const _qC = "quotaCode";
347
+ const _r = "reason";
348
+ const _rA = "resourceArn";
758
349
  const _rAS = "retryAfterSeconds";
759
- const _ra = "retry-after";
350
+ const _rI = "resourceId";
351
+ const _rT = "resourceType";
352
+ const _s = "status";
353
+ const _sC = "serviceCode";
354
+ const _sN = "serviceName";
355
+ const _se = "server";
356
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.dsql";
357
+ const _t = "tags";
760
358
  const _tK = "tagKeys";
359
+ const _wR = "witnessRegion";
360
+ const n0 = "com.amazonaws.dsql";
361
+ var AccessDeniedException = [
362
+ -3,
363
+ n0,
364
+ _ADE,
365
+ {
366
+ [_e]: _c,
367
+ [_hE]: 403,
368
+ },
369
+ [_m],
370
+ [0],
371
+ ];
372
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
373
+ var ClusterSummary = [3, n0, _CS, 0, [_i, _a], [0, 0]];
374
+ var ConflictException = [
375
+ -3,
376
+ n0,
377
+ _CE,
378
+ {
379
+ [_e]: _c,
380
+ [_hE]: 409,
381
+ },
382
+ [_m, _rI, _rT],
383
+ [0, 0, 0],
384
+ ];
385
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
386
+ var CreateClusterInput = [
387
+ 3,
388
+ n0,
389
+ _CCI,
390
+ 0,
391
+ [_dPE, _kEK, _t, _cT, _mRP, _p, _bPLSC],
392
+ [2, 0, 128 | 0, [0, 4], () => MultiRegionProperties, 0, 2],
393
+ ];
394
+ var CreateClusterOutput = [
395
+ 3,
396
+ n0,
397
+ _CCO,
398
+ 0,
399
+ [_i, _a, _s, _cTr, _mRP, _eD, _dPE, _en],
400
+ [0, 0, 0, 4, () => MultiRegionProperties, () => EncryptionDetails, 2, 0],
401
+ ];
402
+ var DeleteClusterInput = [
403
+ 3,
404
+ n0,
405
+ _DCI,
406
+ 0,
407
+ [_i, _cT],
408
+ [
409
+ [0, 1],
410
+ [
411
+ 0,
412
+ {
413
+ [_iT]: 1,
414
+ [_hQ]: _ct,
415
+ },
416
+ ],
417
+ ],
418
+ ];
419
+ var DeleteClusterOutput = [3, n0, _DCO, 0, [_i, _a, _s, _cTr], [0, 0, 0, 4]];
420
+ var DeleteClusterPolicyInput = [
421
+ 3,
422
+ n0,
423
+ _DCPI,
424
+ 0,
425
+ [_i, _ePV, _cT],
426
+ [
427
+ [0, 1],
428
+ [
429
+ 0,
430
+ {
431
+ [_hQ]: _epv,
432
+ },
433
+ ],
434
+ [
435
+ 0,
436
+ {
437
+ [_iT]: 1,
438
+ [_hQ]: _ct,
439
+ },
440
+ ],
441
+ ],
442
+ ];
443
+ var DeleteClusterPolicyOutput = [3, n0, _DCPO, 0, [_pV], [0]];
444
+ var EncryptionDetails = [3, n0, _ED, 0, [_eT, _kKA, _eS], [0, 0, 0]];
445
+ var GetClusterInput = [3, n0, _GCI, 0, [_i], [[0, 1]]];
446
+ var GetClusterOutput = [
447
+ 3,
448
+ n0,
449
+ _GCO,
450
+ 0,
451
+ [_i, _a, _s, _cTr, _dPE, _mRP, _t, _eD, _en],
452
+ [0, 0, 0, 4, 2, () => MultiRegionProperties, 128 | 0, () => EncryptionDetails, 0],
453
+ ];
454
+ var GetClusterPolicyInput = [3, n0, _GCPI, 0, [_i], [[0, 1]]];
455
+ var GetClusterPolicyOutput = [3, n0, _GCPO, 0, [_p, _pV], [0, 0]];
456
+ var GetVpcEndpointServiceNameInput = [3, n0, _GVESNI, 0, [_i], [[0, 1]]];
457
+ var GetVpcEndpointServiceNameOutput = [3, n0, _GVESNO, 0, [_sN], [0]];
458
+ var InternalServerException = [
459
+ -3,
460
+ n0,
461
+ _ISE,
462
+ {
463
+ [_e]: _se,
464
+ [_hE]: 500,
465
+ },
466
+ [_m, _rAS],
467
+ [
468
+ 0,
469
+ [
470
+ 1,
471
+ {
472
+ [_hH]: _RA,
473
+ },
474
+ ],
475
+ ],
476
+ ];
477
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
478
+ var ListClustersInput = [
479
+ 3,
480
+ n0,
481
+ _LCI,
482
+ 0,
483
+ [_mR, _nT],
484
+ [
485
+ [
486
+ 1,
487
+ {
488
+ [_hQ]: _mr,
489
+ },
490
+ ],
491
+ [
492
+ 0,
493
+ {
494
+ [_hQ]: _nt,
495
+ },
496
+ ],
497
+ ],
498
+ ];
499
+ var ListClustersOutput = [3, n0, _LCO, 0, [_nT, _cl], [0, () => ClusterList]];
500
+ var ListTagsForResourceInput = [3, n0, _LTFRI, 0, [_rA], [[0, 1]]];
501
+ var ListTagsForResourceOutput = [3, n0, _LTFRO, 0, [_t], [128 | 0]];
502
+ var MultiRegionProperties = [3, n0, _MRP, 0, [_wR, _cl], [0, 64 | 0]];
503
+ var PutClusterPolicyInput = [
504
+ 3,
505
+ n0,
506
+ _PCPI,
507
+ 0,
508
+ [_i, _p, _bPLSC, _ePV, _cT],
509
+ [[0, 1], 0, 2, 0, [0, 4]],
510
+ ];
511
+ var PutClusterPolicyOutput = [3, n0, _PCPO, 0, [_pV], [0]];
512
+ var ResourceNotFoundException = [
513
+ -3,
514
+ n0,
515
+ _RNFE,
516
+ {
517
+ [_e]: _c,
518
+ [_hE]: 404,
519
+ },
520
+ [_m, _rI, _rT],
521
+ [0, 0, 0],
522
+ ];
523
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
524
+ var ServiceQuotaExceededException = [
525
+ -3,
526
+ n0,
527
+ _SQEE,
528
+ {
529
+ [_e]: _c,
530
+ [_hE]: 402,
531
+ },
532
+ [_m, _rI, _rT, _sC, _qC],
533
+ [0, 0, 0, 0, 0],
534
+ ];
535
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
536
+ var TagResourceInput = [3, n0, _TRI, 0, [_rA, _t], [[0, 1], 128 | 0]];
537
+ var ThrottlingException = [
538
+ -3,
539
+ n0,
540
+ _TE,
541
+ {
542
+ [_e]: _c,
543
+ [_hE]: 429,
544
+ },
545
+ [_m, _sC, _qC, _rAS],
546
+ [
547
+ 0,
548
+ 0,
549
+ 0,
550
+ [
551
+ 1,
552
+ {
553
+ [_hH]: _RA,
554
+ },
555
+ ],
556
+ ],
557
+ ];
558
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
559
+ var UntagResourceInput = [
560
+ 3,
561
+ n0,
562
+ _URI,
563
+ 0,
564
+ [_rA, _tK],
565
+ [
566
+ [0, 1],
567
+ [
568
+ 64 | 0,
569
+ {
570
+ [_hQ]: _tK,
571
+ },
572
+ ],
573
+ ],
574
+ ];
575
+ var UpdateClusterInput = [
576
+ 3,
577
+ n0,
578
+ _UCI,
579
+ 0,
580
+ [_i, _dPE, _kEK, _cT, _mRP],
581
+ [[0, 1], 2, 0, [0, 4], () => MultiRegionProperties],
582
+ ];
583
+ var UpdateClusterOutput = [3, n0, _UCO, 0, [_i, _a, _s, _cTr], [0, 0, 0, 4]];
584
+ var ValidationException = [
585
+ -3,
586
+ n0,
587
+ _VE,
588
+ {
589
+ [_e]: _c,
590
+ [_hE]: 400,
591
+ },
592
+ [_m, _r, _fL],
593
+ [0, 0, () => ValidationExceptionFieldList],
594
+ ];
595
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
596
+ var ValidationExceptionField = [3, n0, _VEF, 0, [_n, _m], [0, 0]];
597
+ var __Unit = "unit";
598
+ var DSQLServiceException = [-3, _sm, "DSQLServiceException", 0, [], []];
599
+ schema.TypeRegistry.for(_sm).registerError(DSQLServiceException, DSQLServiceException$1);
600
+ var ClusterList = [1, n0, _CL, 0, () => ClusterSummary];
601
+ var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
602
+ var CreateCluster = [
603
+ 9,
604
+ n0,
605
+ _CC,
606
+ {
607
+ [_h]: ["POST", "/cluster", 200],
608
+ },
609
+ () => CreateClusterInput,
610
+ () => CreateClusterOutput,
611
+ ];
612
+ var DeleteCluster = [
613
+ 9,
614
+ n0,
615
+ _DC,
616
+ {
617
+ [_h]: ["DELETE", "/cluster/{identifier}", 200],
618
+ },
619
+ () => DeleteClusterInput,
620
+ () => DeleteClusterOutput,
621
+ ];
622
+ var DeleteClusterPolicy = [
623
+ 9,
624
+ n0,
625
+ _DCP,
626
+ {
627
+ [_h]: ["DELETE", "/cluster/{identifier}/policy", 200],
628
+ },
629
+ () => DeleteClusterPolicyInput,
630
+ () => DeleteClusterPolicyOutput,
631
+ ];
632
+ var GetCluster = [
633
+ 9,
634
+ n0,
635
+ _GC,
636
+ {
637
+ [_h]: ["GET", "/cluster/{identifier}", 200],
638
+ },
639
+ () => GetClusterInput,
640
+ () => GetClusterOutput,
641
+ ];
642
+ var GetClusterPolicy = [
643
+ 9,
644
+ n0,
645
+ _GCP,
646
+ {
647
+ [_h]: ["GET", "/cluster/{identifier}/policy", 200],
648
+ },
649
+ () => GetClusterPolicyInput,
650
+ () => GetClusterPolicyOutput,
651
+ ];
652
+ var GetVpcEndpointServiceName = [
653
+ 9,
654
+ n0,
655
+ _GVESN,
656
+ {
657
+ [_h]: ["GET", "/clusters/{identifier}/vpc-endpoint-service-name", 200],
658
+ },
659
+ () => GetVpcEndpointServiceNameInput,
660
+ () => GetVpcEndpointServiceNameOutput,
661
+ ];
662
+ var ListClusters = [
663
+ 9,
664
+ n0,
665
+ _LC,
666
+ {
667
+ [_h]: ["GET", "/cluster", 200],
668
+ },
669
+ () => ListClustersInput,
670
+ () => ListClustersOutput,
671
+ ];
672
+ var ListTagsForResource = [
673
+ 9,
674
+ n0,
675
+ _LTFR,
676
+ {
677
+ [_h]: ["GET", "/tags/{resourceArn}", 200],
678
+ },
679
+ () => ListTagsForResourceInput,
680
+ () => ListTagsForResourceOutput,
681
+ ];
682
+ var PutClusterPolicy = [
683
+ 9,
684
+ n0,
685
+ _PCP,
686
+ {
687
+ [_h]: ["POST", "/cluster/{identifier}/policy", 200],
688
+ },
689
+ () => PutClusterPolicyInput,
690
+ () => PutClusterPolicyOutput,
691
+ ];
692
+ var TagResource = [
693
+ 9,
694
+ n0,
695
+ _TR,
696
+ {
697
+ [_h]: ["POST", "/tags/{resourceArn}", 200],
698
+ },
699
+ () => TagResourceInput,
700
+ () => __Unit,
701
+ ];
702
+ var UntagResource = [
703
+ 9,
704
+ n0,
705
+ _UR,
706
+ {
707
+ [_h]: ["DELETE", "/tags/{resourceArn}", 200],
708
+ },
709
+ () => UntagResourceInput,
710
+ () => __Unit,
711
+ ];
712
+ var UpdateCluster = [
713
+ 9,
714
+ n0,
715
+ _UC,
716
+ {
717
+ [_h]: ["POST", "/cluster/{identifier}", 200],
718
+ },
719
+ () => UpdateClusterInput,
720
+ () => UpdateClusterOutput,
721
+ ];
761
722
 
762
723
  class CreateClusterCommand extends smithyClient.Command
763
724
  .classBuilder()
764
725
  .ep(commonParams)
765
726
  .m(function (Command, cs, config, o) {
766
- return [
767
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
768
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
769
- ];
727
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
770
728
  })
771
729
  .s("DSQL", "CreateCluster", {})
772
730
  .n("DSQLClient", "CreateClusterCommand")
773
- .f(void 0, void 0)
774
- .ser(se_CreateClusterCommand)
775
- .de(de_CreateClusterCommand)
731
+ .sc(CreateCluster)
776
732
  .build() {
777
733
  }
778
734
 
@@ -780,16 +736,11 @@ class DeleteClusterCommand extends smithyClient.Command
780
736
  .classBuilder()
781
737
  .ep(commonParams)
782
738
  .m(function (Command, cs, config, o) {
783
- return [
784
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
785
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
786
- ];
739
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
787
740
  })
788
741
  .s("DSQL", "DeleteCluster", {})
789
742
  .n("DSQLClient", "DeleteClusterCommand")
790
- .f(void 0, void 0)
791
- .ser(se_DeleteClusterCommand)
792
- .de(de_DeleteClusterCommand)
743
+ .sc(DeleteCluster)
793
744
  .build() {
794
745
  }
795
746
 
@@ -797,16 +748,11 @@ class DeleteClusterPolicyCommand extends smithyClient.Command
797
748
  .classBuilder()
798
749
  .ep(commonParams)
799
750
  .m(function (Command, cs, config, o) {
800
- return [
801
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
802
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
803
- ];
751
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
804
752
  })
805
753
  .s("DSQL", "DeleteClusterPolicy", {})
806
754
  .n("DSQLClient", "DeleteClusterPolicyCommand")
807
- .f(void 0, void 0)
808
- .ser(se_DeleteClusterPolicyCommand)
809
- .de(de_DeleteClusterPolicyCommand)
755
+ .sc(DeleteClusterPolicy)
810
756
  .build() {
811
757
  }
812
758
 
@@ -814,16 +760,11 @@ class GetClusterCommand extends smithyClient.Command
814
760
  .classBuilder()
815
761
  .ep(commonParams)
816
762
  .m(function (Command, cs, config, o) {
817
- return [
818
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
819
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
820
- ];
763
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
821
764
  })
822
765
  .s("DSQL", "GetCluster", {})
823
766
  .n("DSQLClient", "GetClusterCommand")
824
- .f(void 0, void 0)
825
- .ser(se_GetClusterCommand)
826
- .de(de_GetClusterCommand)
767
+ .sc(GetCluster)
827
768
  .build() {
828
769
  }
829
770
 
@@ -831,16 +772,11 @@ class GetClusterPolicyCommand extends smithyClient.Command
831
772
  .classBuilder()
832
773
  .ep(commonParams)
833
774
  .m(function (Command, cs, config, o) {
834
- return [
835
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
836
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
837
- ];
775
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
838
776
  })
839
777
  .s("DSQL", "GetClusterPolicy", {})
840
778
  .n("DSQLClient", "GetClusterPolicyCommand")
841
- .f(void 0, void 0)
842
- .ser(se_GetClusterPolicyCommand)
843
- .de(de_GetClusterPolicyCommand)
779
+ .sc(GetClusterPolicy)
844
780
  .build() {
845
781
  }
846
782
 
@@ -848,16 +784,11 @@ class GetVpcEndpointServiceNameCommand extends smithyClient.Command
848
784
  .classBuilder()
849
785
  .ep(commonParams)
850
786
  .m(function (Command, cs, config, o) {
851
- return [
852
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
853
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
854
- ];
787
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
855
788
  })
856
789
  .s("DSQL", "GetVpcEndpointServiceName", {})
857
790
  .n("DSQLClient", "GetVpcEndpointServiceNameCommand")
858
- .f(void 0, void 0)
859
- .ser(se_GetVpcEndpointServiceNameCommand)
860
- .de(de_GetVpcEndpointServiceNameCommand)
791
+ .sc(GetVpcEndpointServiceName)
861
792
  .build() {
862
793
  }
863
794
 
@@ -865,16 +796,11 @@ class ListClustersCommand extends smithyClient.Command
865
796
  .classBuilder()
866
797
  .ep(commonParams)
867
798
  .m(function (Command, cs, config, o) {
868
- return [
869
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
870
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
871
- ];
799
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
872
800
  })
873
801
  .s("DSQL", "ListClusters", {})
874
802
  .n("DSQLClient", "ListClustersCommand")
875
- .f(void 0, void 0)
876
- .ser(se_ListClustersCommand)
877
- .de(de_ListClustersCommand)
803
+ .sc(ListClusters)
878
804
  .build() {
879
805
  }
880
806
 
@@ -882,16 +808,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
882
808
  .classBuilder()
883
809
  .ep(commonParams)
884
810
  .m(function (Command, cs, config, o) {
885
- return [
886
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
887
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
888
- ];
811
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
889
812
  })
890
813
  .s("DSQL", "ListTagsForResource", {})
891
814
  .n("DSQLClient", "ListTagsForResourceCommand")
892
- .f(void 0, void 0)
893
- .ser(se_ListTagsForResourceCommand)
894
- .de(de_ListTagsForResourceCommand)
815
+ .sc(ListTagsForResource)
895
816
  .build() {
896
817
  }
897
818
 
@@ -899,16 +820,11 @@ class PutClusterPolicyCommand extends smithyClient.Command
899
820
  .classBuilder()
900
821
  .ep(commonParams)
901
822
  .m(function (Command, cs, config, o) {
902
- return [
903
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
904
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
905
- ];
823
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
906
824
  })
907
825
  .s("DSQL", "PutClusterPolicy", {})
908
826
  .n("DSQLClient", "PutClusterPolicyCommand")
909
- .f(void 0, void 0)
910
- .ser(se_PutClusterPolicyCommand)
911
- .de(de_PutClusterPolicyCommand)
827
+ .sc(PutClusterPolicy)
912
828
  .build() {
913
829
  }
914
830
 
@@ -916,16 +832,11 @@ class TagResourceCommand extends smithyClient.Command
916
832
  .classBuilder()
917
833
  .ep(commonParams)
918
834
  .m(function (Command, cs, config, o) {
919
- return [
920
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
921
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
922
- ];
835
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
923
836
  })
924
837
  .s("DSQL", "TagResource", {})
925
838
  .n("DSQLClient", "TagResourceCommand")
926
- .f(void 0, void 0)
927
- .ser(se_TagResourceCommand)
928
- .de(de_TagResourceCommand)
839
+ .sc(TagResource)
929
840
  .build() {
930
841
  }
931
842
 
@@ -933,16 +844,11 @@ class UntagResourceCommand extends smithyClient.Command
933
844
  .classBuilder()
934
845
  .ep(commonParams)
935
846
  .m(function (Command, cs, config, o) {
936
- return [
937
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
938
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
939
- ];
847
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
940
848
  })
941
849
  .s("DSQL", "UntagResource", {})
942
850
  .n("DSQLClient", "UntagResourceCommand")
943
- .f(void 0, void 0)
944
- .ser(se_UntagResourceCommand)
945
- .de(de_UntagResourceCommand)
851
+ .sc(UntagResource)
946
852
  .build() {
947
853
  }
948
854
 
@@ -950,16 +856,11 @@ class UpdateClusterCommand extends smithyClient.Command
950
856
  .classBuilder()
951
857
  .ep(commonParams)
952
858
  .m(function (Command, cs, config, o) {
953
- return [
954
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
955
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
956
- ];
859
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
957
860
  })
958
861
  .s("DSQL", "UpdateCluster", {})
959
862
  .n("DSQLClient", "UpdateClusterCommand")
960
- .f(void 0, void 0)
961
- .ser(se_UpdateClusterCommand)
962
- .de(de_UpdateClusterCommand)
863
+ .sc(UpdateCluster)
963
864
  .build() {
964
865
  }
965
866
 
@@ -1045,13 +946,13 @@ Object.defineProperty(exports, "__Client", {
1045
946
  enumerable: true,
1046
947
  get: function () { return smithyClient.Client; }
1047
948
  });
1048
- exports.AccessDeniedException = AccessDeniedException;
949
+ exports.AccessDeniedException = AccessDeniedException$1;
1049
950
  exports.ClusterStatus = ClusterStatus;
1050
- exports.ConflictException = ConflictException;
951
+ exports.ConflictException = ConflictException$1;
1051
952
  exports.CreateClusterCommand = CreateClusterCommand;
1052
953
  exports.DSQL = DSQL;
1053
954
  exports.DSQLClient = DSQLClient;
1054
- exports.DSQLServiceException = DSQLServiceException;
955
+ exports.DSQLServiceException = DSQLServiceException$1;
1055
956
  exports.DeleteClusterCommand = DeleteClusterCommand;
1056
957
  exports.DeleteClusterPolicyCommand = DeleteClusterPolicyCommand;
1057
958
  exports.EncryptionStatus = EncryptionStatus;
@@ -1059,17 +960,17 @@ exports.EncryptionType = EncryptionType;
1059
960
  exports.GetClusterCommand = GetClusterCommand;
1060
961
  exports.GetClusterPolicyCommand = GetClusterPolicyCommand;
1061
962
  exports.GetVpcEndpointServiceNameCommand = GetVpcEndpointServiceNameCommand;
1062
- exports.InternalServerException = InternalServerException;
963
+ exports.InternalServerException = InternalServerException$1;
1063
964
  exports.ListClustersCommand = ListClustersCommand;
1064
965
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1065
966
  exports.PutClusterPolicyCommand = PutClusterPolicyCommand;
1066
- exports.ResourceNotFoundException = ResourceNotFoundException;
1067
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
967
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
968
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1068
969
  exports.TagResourceCommand = TagResourceCommand;
1069
- exports.ThrottlingException = ThrottlingException;
970
+ exports.ThrottlingException = ThrottlingException$1;
1070
971
  exports.UntagResourceCommand = UntagResourceCommand;
1071
972
  exports.UpdateClusterCommand = UpdateClusterCommand;
1072
- exports.ValidationException = ValidationException;
973
+ exports.ValidationException = ValidationException$1;
1073
974
  exports.ValidationExceptionReason = ValidationExceptionReason;
1074
975
  exports.paginateListClusters = paginateListClusters;
1075
976
  exports.waitForClusterActive = waitForClusterActive;