@aws-sdk/client-dsql 3.928.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 (33) hide show
  1. package/dist-cjs/index.js +497 -598
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/DSQLClient.js +2 -0
  4. package/dist-es/commands/CreateClusterCommand.js +3 -9
  5. package/dist-es/commands/DeleteClusterCommand.js +3 -9
  6. package/dist-es/commands/DeleteClusterPolicyCommand.js +3 -9
  7. package/dist-es/commands/GetClusterCommand.js +3 -9
  8. package/dist-es/commands/GetClusterPolicyCommand.js +3 -9
  9. package/dist-es/commands/GetVpcEndpointServiceNameCommand.js +3 -9
  10. package/dist-es/commands/ListClustersCommand.js +3 -9
  11. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  12. package/dist-es/commands/PutClusterPolicyCommand.js +3 -9
  13. package/dist-es/commands/TagResourceCommand.js +3 -9
  14. package/dist-es/commands/UntagResourceCommand.js +3 -9
  15. package/dist-es/commands/UpdateClusterCommand.js +3 -9
  16. package/dist-es/runtimeConfig.shared.js +2 -0
  17. package/dist-es/schemas/schemas_0.js +463 -0
  18. package/dist-types/DSQLClient.d.ts +10 -1
  19. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  20. package/dist-types/runtimeConfig.d.ts +1 -0
  21. package/dist-types/runtimeConfig.native.d.ts +1 -0
  22. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  23. package/dist-types/schemas/schemas_0.d.ts +53 -0
  24. package/dist-types/ts3.4/DSQLClient.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  26. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  27. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  28. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  29. package/dist-types/ts3.4/schemas/schemas_0.d.ts +58 -0
  30. package/package.json +2 -3
  31. package/dist-es/protocols/Aws_restJson1.js +0 -504
  32. package/dist-types/protocols/Aws_restJson1.d.ts +0 -110
  33. 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,520 +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
- endpoint: smithyClient.expectString,
432
- identifier: smithyClient.expectString,
433
- multiRegionProperties: smithyClient._json,
434
- status: smithyClient.expectString,
435
- });
436
- Object.assign(contents, doc);
437
- return contents;
438
- };
439
- const de_DeleteClusterCommand = async (output, context) => {
440
- if (output.statusCode !== 200 && output.statusCode >= 300) {
441
- return de_CommandError(output, context);
442
- }
443
- const contents = smithyClient.map({
444
- $metadata: deserializeMetadata(output),
445
- });
446
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
447
- const doc = smithyClient.take(data, {
448
- arn: smithyClient.expectString,
449
- creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
450
- identifier: smithyClient.expectString,
451
- status: smithyClient.expectString,
452
- });
453
- Object.assign(contents, doc);
454
- return contents;
455
- };
456
- const de_DeleteClusterPolicyCommand = async (output, context) => {
457
- if (output.statusCode !== 200 && output.statusCode >= 300) {
458
- return de_CommandError(output, context);
459
- }
460
- const contents = smithyClient.map({
461
- $metadata: deserializeMetadata(output),
462
- });
463
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
464
- const doc = smithyClient.take(data, {
465
- policyVersion: smithyClient.expectString,
466
- });
467
- Object.assign(contents, doc);
468
- return contents;
469
- };
470
- const de_GetClusterCommand = async (output, context) => {
471
- if (output.statusCode !== 200 && output.statusCode >= 300) {
472
- return de_CommandError(output, context);
473
- }
474
- const contents = smithyClient.map({
475
- $metadata: deserializeMetadata(output),
476
- });
477
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
478
- const doc = smithyClient.take(data, {
479
- arn: smithyClient.expectString,
480
- creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
481
- deletionProtectionEnabled: smithyClient.expectBoolean,
482
- encryptionDetails: smithyClient._json,
483
- endpoint: smithyClient.expectString,
484
- identifier: smithyClient.expectString,
485
- multiRegionProperties: smithyClient._json,
486
- status: smithyClient.expectString,
487
- tags: smithyClient._json,
488
- });
489
- Object.assign(contents, doc);
490
- return contents;
491
- };
492
- const de_GetClusterPolicyCommand = async (output, context) => {
493
- if (output.statusCode !== 200 && output.statusCode >= 300) {
494
- return de_CommandError(output, context);
495
- }
496
- const contents = smithyClient.map({
497
- $metadata: deserializeMetadata(output),
498
- });
499
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
500
- const doc = smithyClient.take(data, {
501
- policy: smithyClient.expectString,
502
- policyVersion: smithyClient.expectString,
503
- });
504
- Object.assign(contents, doc);
505
- return contents;
506
263
  };
507
- const de_GetVpcEndpointServiceNameCommand = async (output, context) => {
508
- if (output.statusCode !== 200 && output.statusCode >= 300) {
509
- return de_CommandError(output, context);
510
- }
511
- const contents = smithyClient.map({
512
- $metadata: deserializeMetadata(output),
513
- });
514
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
515
- const doc = smithyClient.take(data, {
516
- serviceName: smithyClient.expectString,
517
- });
518
- Object.assign(contents, doc);
519
- return contents;
520
- };
521
- const de_ListClustersCommand = async (output, context) => {
522
- if (output.statusCode !== 200 && output.statusCode >= 300) {
523
- return de_CommandError(output, context);
524
- }
525
- const contents = smithyClient.map({
526
- $metadata: deserializeMetadata(output),
527
- });
528
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
529
- const doc = smithyClient.take(data, {
530
- clusters: smithyClient._json,
531
- nextToken: smithyClient.expectString,
532
- });
533
- Object.assign(contents, doc);
534
- return contents;
535
- };
536
- const de_ListTagsForResourceCommand = async (output, context) => {
537
- if (output.statusCode !== 200 && output.statusCode >= 300) {
538
- return de_CommandError(output, context);
539
- }
540
- const contents = smithyClient.map({
541
- $metadata: deserializeMetadata(output),
542
- });
543
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
544
- const doc = smithyClient.take(data, {
545
- tags: smithyClient._json,
546
- });
547
- Object.assign(contents, doc);
548
- return contents;
549
- };
550
- const de_PutClusterPolicyCommand = async (output, context) => {
551
- if (output.statusCode !== 200 && output.statusCode >= 300) {
552
- return de_CommandError(output, context);
553
- }
554
- const contents = smithyClient.map({
555
- $metadata: deserializeMetadata(output),
556
- });
557
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
558
- const doc = smithyClient.take(data, {
559
- policyVersion: smithyClient.expectString,
560
- });
561
- Object.assign(contents, doc);
562
- return contents;
563
- };
564
- const de_TagResourceCommand = async (output, context) => {
565
- if (output.statusCode !== 200 && output.statusCode >= 300) {
566
- return de_CommandError(output, context);
567
- }
568
- const contents = smithyClient.map({
569
- $metadata: deserializeMetadata(output),
570
- });
571
- await smithyClient.collectBody(output.body, context);
572
- return contents;
573
- };
574
- const de_UntagResourceCommand = async (output, context) => {
575
- if (output.statusCode !== 200 && output.statusCode >= 300) {
576
- return de_CommandError(output, context);
577
- }
578
- const contents = smithyClient.map({
579
- $metadata: deserializeMetadata(output),
580
- });
581
- await smithyClient.collectBody(output.body, context);
582
- return contents;
583
- };
584
- const de_UpdateClusterCommand = async (output, context) => {
585
- if (output.statusCode !== 200 && output.statusCode >= 300) {
586
- return de_CommandError(output, context);
587
- }
588
- const contents = smithyClient.map({
589
- $metadata: deserializeMetadata(output),
590
- });
591
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
592
- const doc = smithyClient.take(data, {
593
- arn: smithyClient.expectString,
594
- creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
595
- identifier: smithyClient.expectString,
596
- status: smithyClient.expectString,
597
- });
598
- Object.assign(contents, doc);
599
- return contents;
600
- };
601
- const de_CommandError = async (output, context) => {
602
- const parsedOutput = {
603
- ...output,
604
- body: await core$1.parseJsonErrorBody(output.body, context),
605
- };
606
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
607
- switch (errorCode) {
608
- case "AccessDeniedException":
609
- case "com.amazonaws.dsql#AccessDeniedException":
610
- throw await de_AccessDeniedExceptionRes(parsedOutput);
611
- case "ConflictException":
612
- case "com.amazonaws.dsql#ConflictException":
613
- throw await de_ConflictExceptionRes(parsedOutput);
614
- case "InternalServerException":
615
- case "com.amazonaws.dsql#InternalServerException":
616
- throw await de_InternalServerExceptionRes(parsedOutput);
617
- case "ServiceQuotaExceededException":
618
- case "com.amazonaws.dsql#ServiceQuotaExceededException":
619
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
620
- case "ThrottlingException":
621
- case "com.amazonaws.dsql#ThrottlingException":
622
- throw await de_ThrottlingExceptionRes(parsedOutput);
623
- case "ValidationException":
624
- case "com.amazonaws.dsql#ValidationException":
625
- throw await de_ValidationExceptionRes(parsedOutput);
626
- case "ResourceNotFoundException":
627
- case "com.amazonaws.dsql#ResourceNotFoundException":
628
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
629
- default:
630
- const parsedBody = parsedOutput.body;
631
- return throwDefaultError({
632
- output,
633
- parsedBody,
634
- errorCode,
635
- });
636
- }
637
- };
638
- const throwDefaultError = smithyClient.withBaseException(DSQLServiceException);
639
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
640
- const contents = smithyClient.map({});
641
- const data = parsedOutput.body;
642
- const doc = smithyClient.take(data, {
643
- message: smithyClient.expectString,
644
- });
645
- Object.assign(contents, doc);
646
- const exception = new AccessDeniedException({
647
- $metadata: deserializeMetadata(parsedOutput),
648
- ...contents,
649
- });
650
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
651
- };
652
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
653
- const contents = smithyClient.map({});
654
- const data = parsedOutput.body;
655
- const doc = smithyClient.take(data, {
656
- message: smithyClient.expectString,
657
- resourceId: smithyClient.expectString,
658
- resourceType: smithyClient.expectString,
659
- });
660
- Object.assign(contents, doc);
661
- const exception = new ConflictException({
662
- $metadata: deserializeMetadata(parsedOutput),
663
- ...contents,
664
- });
665
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
666
- };
667
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
668
- const contents = smithyClient.map({
669
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
670
- });
671
- const data = parsedOutput.body;
672
- const doc = smithyClient.take(data, {
673
- message: smithyClient.expectString,
674
- });
675
- Object.assign(contents, doc);
676
- const exception = new InternalServerException({
677
- $metadata: deserializeMetadata(parsedOutput),
678
- ...contents,
679
- });
680
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
681
- };
682
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
683
- const contents = smithyClient.map({});
684
- const data = parsedOutput.body;
685
- const doc = smithyClient.take(data, {
686
- message: smithyClient.expectString,
687
- resourceId: smithyClient.expectString,
688
- resourceType: smithyClient.expectString,
689
- });
690
- Object.assign(contents, doc);
691
- const exception = new ResourceNotFoundException({
692
- $metadata: deserializeMetadata(parsedOutput),
693
- ...contents,
694
- });
695
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
696
- };
697
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
698
- const contents = smithyClient.map({});
699
- const data = parsedOutput.body;
700
- const doc = smithyClient.take(data, {
701
- message: smithyClient.expectString,
702
- quotaCode: smithyClient.expectString,
703
- resourceId: smithyClient.expectString,
704
- resourceType: smithyClient.expectString,
705
- serviceCode: smithyClient.expectString,
706
- });
707
- Object.assign(contents, doc);
708
- const exception = new ServiceQuotaExceededException({
709
- $metadata: deserializeMetadata(parsedOutput),
710
- ...contents,
711
- });
712
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
713
- };
714
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
715
- const contents = smithyClient.map({
716
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
717
- });
718
- const data = parsedOutput.body;
719
- const doc = smithyClient.take(data, {
720
- message: smithyClient.expectString,
721
- quotaCode: smithyClient.expectString,
722
- serviceCode: smithyClient.expectString,
723
- });
724
- Object.assign(contents, doc);
725
- const exception = new ThrottlingException({
726
- $metadata: deserializeMetadata(parsedOutput),
727
- ...contents,
728
- });
729
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
730
- };
731
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
732
- const contents = smithyClient.map({});
733
- const data = parsedOutput.body;
734
- const doc = smithyClient.take(data, {
735
- fieldList: smithyClient._json,
736
- message: smithyClient.expectString,
737
- reason: smithyClient.expectString,
738
- });
739
- Object.assign(contents, doc);
740
- const exception = new ValidationException({
741
- $metadata: deserializeMetadata(parsedOutput),
742
- ...contents,
743
- });
744
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
745
- };
746
- const deserializeMetadata = (output) => ({
747
- httpStatusCode: output.statusCode,
748
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
749
- extendedRequestId: output.headers["x-amz-id-2"],
750
- cfId: output.headers["x-amz-cf-id"],
751
- });
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";
752
316
  const _cT = "clientToken";
317
+ const _cTr = "creationTime";
318
+ const _cl = "clusters";
753
319
  const _ct = "client-token";
320
+ const _dPE = "deletionProtectionEnabled";
321
+ const _e = "error";
322
+ const _eD = "encryptionDetails";
754
323
  const _ePV = "expectedPolicyVersion";
324
+ const _eS = "encryptionStatus";
325
+ const _eT = "encryptionType";
326
+ const _en = "endpoint";
755
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";
756
338
  const _mR = "maxResults";
339
+ const _mRP = "multiRegionProperties";
757
340
  const _mr = "max-results";
341
+ const _n = "name";
758
342
  const _nT = "nextToken";
759
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";
760
349
  const _rAS = "retryAfterSeconds";
761
- 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";
762
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
+ ];
763
722
 
764
723
  class CreateClusterCommand extends smithyClient.Command
765
724
  .classBuilder()
766
725
  .ep(commonParams)
767
726
  .m(function (Command, cs, config, o) {
768
- return [
769
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
770
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
771
- ];
727
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
772
728
  })
773
729
  .s("DSQL", "CreateCluster", {})
774
730
  .n("DSQLClient", "CreateClusterCommand")
775
- .f(void 0, void 0)
776
- .ser(se_CreateClusterCommand)
777
- .de(de_CreateClusterCommand)
731
+ .sc(CreateCluster)
778
732
  .build() {
779
733
  }
780
734
 
@@ -782,16 +736,11 @@ class DeleteClusterCommand extends smithyClient.Command
782
736
  .classBuilder()
783
737
  .ep(commonParams)
784
738
  .m(function (Command, cs, config, o) {
785
- return [
786
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
787
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
788
- ];
739
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
789
740
  })
790
741
  .s("DSQL", "DeleteCluster", {})
791
742
  .n("DSQLClient", "DeleteClusterCommand")
792
- .f(void 0, void 0)
793
- .ser(se_DeleteClusterCommand)
794
- .de(de_DeleteClusterCommand)
743
+ .sc(DeleteCluster)
795
744
  .build() {
796
745
  }
797
746
 
@@ -799,16 +748,11 @@ class DeleteClusterPolicyCommand extends smithyClient.Command
799
748
  .classBuilder()
800
749
  .ep(commonParams)
801
750
  .m(function (Command, cs, config, o) {
802
- return [
803
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
804
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
805
- ];
751
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
806
752
  })
807
753
  .s("DSQL", "DeleteClusterPolicy", {})
808
754
  .n("DSQLClient", "DeleteClusterPolicyCommand")
809
- .f(void 0, void 0)
810
- .ser(se_DeleteClusterPolicyCommand)
811
- .de(de_DeleteClusterPolicyCommand)
755
+ .sc(DeleteClusterPolicy)
812
756
  .build() {
813
757
  }
814
758
 
@@ -816,16 +760,11 @@ class GetClusterCommand extends smithyClient.Command
816
760
  .classBuilder()
817
761
  .ep(commonParams)
818
762
  .m(function (Command, cs, config, o) {
819
- return [
820
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
821
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
822
- ];
763
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
823
764
  })
824
765
  .s("DSQL", "GetCluster", {})
825
766
  .n("DSQLClient", "GetClusterCommand")
826
- .f(void 0, void 0)
827
- .ser(se_GetClusterCommand)
828
- .de(de_GetClusterCommand)
767
+ .sc(GetCluster)
829
768
  .build() {
830
769
  }
831
770
 
@@ -833,16 +772,11 @@ class GetClusterPolicyCommand extends smithyClient.Command
833
772
  .classBuilder()
834
773
  .ep(commonParams)
835
774
  .m(function (Command, cs, config, o) {
836
- return [
837
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
838
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
839
- ];
775
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
840
776
  })
841
777
  .s("DSQL", "GetClusterPolicy", {})
842
778
  .n("DSQLClient", "GetClusterPolicyCommand")
843
- .f(void 0, void 0)
844
- .ser(se_GetClusterPolicyCommand)
845
- .de(de_GetClusterPolicyCommand)
779
+ .sc(GetClusterPolicy)
846
780
  .build() {
847
781
  }
848
782
 
@@ -850,16 +784,11 @@ class GetVpcEndpointServiceNameCommand extends smithyClient.Command
850
784
  .classBuilder()
851
785
  .ep(commonParams)
852
786
  .m(function (Command, cs, config, o) {
853
- return [
854
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
855
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
856
- ];
787
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
857
788
  })
858
789
  .s("DSQL", "GetVpcEndpointServiceName", {})
859
790
  .n("DSQLClient", "GetVpcEndpointServiceNameCommand")
860
- .f(void 0, void 0)
861
- .ser(se_GetVpcEndpointServiceNameCommand)
862
- .de(de_GetVpcEndpointServiceNameCommand)
791
+ .sc(GetVpcEndpointServiceName)
863
792
  .build() {
864
793
  }
865
794
 
@@ -867,16 +796,11 @@ class ListClustersCommand extends smithyClient.Command
867
796
  .classBuilder()
868
797
  .ep(commonParams)
869
798
  .m(function (Command, cs, config, o) {
870
- return [
871
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
872
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
873
- ];
799
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
874
800
  })
875
801
  .s("DSQL", "ListClusters", {})
876
802
  .n("DSQLClient", "ListClustersCommand")
877
- .f(void 0, void 0)
878
- .ser(se_ListClustersCommand)
879
- .de(de_ListClustersCommand)
803
+ .sc(ListClusters)
880
804
  .build() {
881
805
  }
882
806
 
@@ -884,16 +808,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
884
808
  .classBuilder()
885
809
  .ep(commonParams)
886
810
  .m(function (Command, cs, config, o) {
887
- return [
888
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
889
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
890
- ];
811
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
891
812
  })
892
813
  .s("DSQL", "ListTagsForResource", {})
893
814
  .n("DSQLClient", "ListTagsForResourceCommand")
894
- .f(void 0, void 0)
895
- .ser(se_ListTagsForResourceCommand)
896
- .de(de_ListTagsForResourceCommand)
815
+ .sc(ListTagsForResource)
897
816
  .build() {
898
817
  }
899
818
 
@@ -901,16 +820,11 @@ class PutClusterPolicyCommand extends smithyClient.Command
901
820
  .classBuilder()
902
821
  .ep(commonParams)
903
822
  .m(function (Command, cs, config, o) {
904
- return [
905
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
906
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
907
- ];
823
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
908
824
  })
909
825
  .s("DSQL", "PutClusterPolicy", {})
910
826
  .n("DSQLClient", "PutClusterPolicyCommand")
911
- .f(void 0, void 0)
912
- .ser(se_PutClusterPolicyCommand)
913
- .de(de_PutClusterPolicyCommand)
827
+ .sc(PutClusterPolicy)
914
828
  .build() {
915
829
  }
916
830
 
@@ -918,16 +832,11 @@ class TagResourceCommand extends smithyClient.Command
918
832
  .classBuilder()
919
833
  .ep(commonParams)
920
834
  .m(function (Command, cs, config, o) {
921
- return [
922
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
923
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
924
- ];
835
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
925
836
  })
926
837
  .s("DSQL", "TagResource", {})
927
838
  .n("DSQLClient", "TagResourceCommand")
928
- .f(void 0, void 0)
929
- .ser(se_TagResourceCommand)
930
- .de(de_TagResourceCommand)
839
+ .sc(TagResource)
931
840
  .build() {
932
841
  }
933
842
 
@@ -935,16 +844,11 @@ class UntagResourceCommand extends smithyClient.Command
935
844
  .classBuilder()
936
845
  .ep(commonParams)
937
846
  .m(function (Command, cs, config, o) {
938
- return [
939
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
940
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
941
- ];
847
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
942
848
  })
943
849
  .s("DSQL", "UntagResource", {})
944
850
  .n("DSQLClient", "UntagResourceCommand")
945
- .f(void 0, void 0)
946
- .ser(se_UntagResourceCommand)
947
- .de(de_UntagResourceCommand)
851
+ .sc(UntagResource)
948
852
  .build() {
949
853
  }
950
854
 
@@ -952,16 +856,11 @@ class UpdateClusterCommand extends smithyClient.Command
952
856
  .classBuilder()
953
857
  .ep(commonParams)
954
858
  .m(function (Command, cs, config, o) {
955
- return [
956
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
957
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
958
- ];
859
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
959
860
  })
960
861
  .s("DSQL", "UpdateCluster", {})
961
862
  .n("DSQLClient", "UpdateClusterCommand")
962
- .f(void 0, void 0)
963
- .ser(se_UpdateClusterCommand)
964
- .de(de_UpdateClusterCommand)
863
+ .sc(UpdateCluster)
965
864
  .build() {
966
865
  }
967
866
 
@@ -1047,13 +946,13 @@ Object.defineProperty(exports, "__Client", {
1047
946
  enumerable: true,
1048
947
  get: function () { return smithyClient.Client; }
1049
948
  });
1050
- exports.AccessDeniedException = AccessDeniedException;
949
+ exports.AccessDeniedException = AccessDeniedException$1;
1051
950
  exports.ClusterStatus = ClusterStatus;
1052
- exports.ConflictException = ConflictException;
951
+ exports.ConflictException = ConflictException$1;
1053
952
  exports.CreateClusterCommand = CreateClusterCommand;
1054
953
  exports.DSQL = DSQL;
1055
954
  exports.DSQLClient = DSQLClient;
1056
- exports.DSQLServiceException = DSQLServiceException;
955
+ exports.DSQLServiceException = DSQLServiceException$1;
1057
956
  exports.DeleteClusterCommand = DeleteClusterCommand;
1058
957
  exports.DeleteClusterPolicyCommand = DeleteClusterPolicyCommand;
1059
958
  exports.EncryptionStatus = EncryptionStatus;
@@ -1061,17 +960,17 @@ exports.EncryptionType = EncryptionType;
1061
960
  exports.GetClusterCommand = GetClusterCommand;
1062
961
  exports.GetClusterPolicyCommand = GetClusterPolicyCommand;
1063
962
  exports.GetVpcEndpointServiceNameCommand = GetVpcEndpointServiceNameCommand;
1064
- exports.InternalServerException = InternalServerException;
963
+ exports.InternalServerException = InternalServerException$1;
1065
964
  exports.ListClustersCommand = ListClustersCommand;
1066
965
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1067
966
  exports.PutClusterPolicyCommand = PutClusterPolicyCommand;
1068
- exports.ResourceNotFoundException = ResourceNotFoundException;
1069
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
967
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
968
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1070
969
  exports.TagResourceCommand = TagResourceCommand;
1071
- exports.ThrottlingException = ThrottlingException;
970
+ exports.ThrottlingException = ThrottlingException$1;
1072
971
  exports.UntagResourceCommand = UntagResourceCommand;
1073
972
  exports.UpdateClusterCommand = UpdateClusterCommand;
1074
- exports.ValidationException = ValidationException;
973
+ exports.ValidationException = ValidationException$1;
1075
974
  exports.ValidationExceptionReason = ValidationExceptionReason;
1076
975
  exports.paginateListClusters = paginateListClusters;
1077
976
  exports.waitForClusterActive = waitForClusterActive;