@aws-sdk/client-docdb-elastic 3.523.0 → 3.525.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 (68) hide show
  1. package/README.md +40 -1
  2. package/dist-cjs/index.js +194 -29
  3. package/dist-es/DocDBElastic.js +6 -0
  4. package/dist-es/commands/CopyClusterSnapshotCommand.js +24 -0
  5. package/dist-es/commands/StartClusterCommand.js +24 -0
  6. package/dist-es/commands/StopClusterCommand.js +24 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +28 -14
  9. package/dist-es/protocols/Aws_restJson1.js +90 -3
  10. package/dist-types/DocDBElastic.d.ts +36 -1
  11. package/dist-types/DocDBElasticClient.d.ts +20 -3
  12. package/dist-types/commands/CopyClusterSnapshotCommand.d.ts +101 -0
  13. package/dist-types/commands/CreateClusterCommand.d.ts +14 -1
  14. package/dist-types/commands/CreateClusterSnapshotCommand.d.ts +2 -1
  15. package/dist-types/commands/DeleteClusterCommand.d.ts +11 -1
  16. package/dist-types/commands/DeleteClusterSnapshotCommand.d.ts +2 -1
  17. package/dist-types/commands/GetClusterCommand.d.ts +11 -1
  18. package/dist-types/commands/GetClusterSnapshotCommand.d.ts +2 -1
  19. package/dist-types/commands/ListClusterSnapshotsCommand.d.ts +2 -1
  20. package/dist-types/commands/ListClustersCommand.d.ts +1 -1
  21. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  22. package/dist-types/commands/RestoreClusterFromSnapshotCommand.d.ts +13 -1
  23. package/dist-types/commands/StartClusterCommand.d.ts +101 -0
  24. package/dist-types/commands/StopClusterCommand.d.ts +102 -0
  25. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  26. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  27. package/dist-types/commands/UpdateClusterCommand.d.ts +15 -2
  28. package/dist-types/commands/index.d.ts +3 -0
  29. package/dist-types/index.d.ts +15 -1
  30. package/dist-types/models/models_0.d.ts +478 -232
  31. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  32. package/dist-types/ts3.4/DocDBElastic.d.ts +51 -0
  33. package/dist-types/ts3.4/DocDBElasticClient.d.ts +18 -0
  34. package/dist-types/ts3.4/commands/CopyClusterSnapshotCommand.d.ts +30 -0
  35. package/dist-types/ts3.4/commands/StartClusterCommand.d.ts +26 -0
  36. package/dist-types/ts3.4/commands/StopClusterCommand.d.ts +26 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +98 -42
  39. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  40. package/package.json +17 -17
  41. package/dist-cjs/DocDBElastic.js +0 -1
  42. package/dist-cjs/DocDBElasticClient.js +0 -1
  43. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  44. package/dist-cjs/commands/CreateClusterCommand.js +0 -1
  45. package/dist-cjs/commands/CreateClusterSnapshotCommand.js +0 -1
  46. package/dist-cjs/commands/DeleteClusterCommand.js +0 -1
  47. package/dist-cjs/commands/DeleteClusterSnapshotCommand.js +0 -1
  48. package/dist-cjs/commands/GetClusterCommand.js +0 -1
  49. package/dist-cjs/commands/GetClusterSnapshotCommand.js +0 -1
  50. package/dist-cjs/commands/ListClusterSnapshotsCommand.js +0 -1
  51. package/dist-cjs/commands/ListClustersCommand.js +0 -1
  52. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  53. package/dist-cjs/commands/RestoreClusterFromSnapshotCommand.js +0 -1
  54. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  55. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  56. package/dist-cjs/commands/UpdateClusterCommand.js +0 -1
  57. package/dist-cjs/commands/index.js +0 -1
  58. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  59. package/dist-cjs/extensionConfiguration.js +0 -1
  60. package/dist-cjs/models/DocDBElasticServiceException.js +0 -1
  61. package/dist-cjs/models/index.js +0 -1
  62. package/dist-cjs/models/models_0.js +0 -1
  63. package/dist-cjs/pagination/Interfaces.js +0 -1
  64. package/dist-cjs/pagination/ListClusterSnapshotsPaginator.js +0 -1
  65. package/dist-cjs/pagination/ListClustersPaginator.js +0 -1
  66. package/dist-cjs/pagination/index.js +0 -1
  67. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  68. package/dist-cjs/runtimeExtensions.js +0 -1
package/README.md CHANGED
@@ -6,7 +6,22 @@
6
6
 
7
7
  AWS SDK for JavaScript DocDBElastic Client for Node.js, Browser and React Native.
8
8
 
9
- <p>The new Amazon Elastic DocumentDB service endpoint.</p>
9
+ <fullname>Amazon DocumentDB elastic clusters</fullname>
10
+
11
+ <p>Amazon DocumentDB elastic-clusters support workloads with millions of reads/writes per second and petabytes of storage capacity.
12
+ Amazon DocumentDB elastic clusters also simplify how developers interact with Amazon DocumentDB elastic-clusters by eliminating the need to choose, manage or upgrade instances.</p>
13
+ <p>Amazon DocumentDB elastic-clusters were created to:</p>
14
+ <ul>
15
+ <li>
16
+ <p>provide a solution for customers looking for a database that provides virtually limitless scale with rich query capabilities and MongoDB API compatibility.</p>
17
+ </li>
18
+ <li>
19
+ <p>give customers higher connection limits, and to reduce downtime from patching.</p>
20
+ </li>
21
+ <li>
22
+ <p>continue investing in a cloud-native, elastic, and class leading architecture for JSON workloads.</p>
23
+ </li>
24
+ </ul>
10
25
 
11
26
  ## Installing
12
27
 
@@ -203,6 +218,14 @@ see LICENSE for more information.
203
218
 
204
219
  ## Client Commands (Operations List)
205
220
 
221
+ <details>
222
+ <summary>
223
+ CopyClusterSnapshot
224
+ </summary>
225
+
226
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/docdb-elastic/command/CopyClusterSnapshotCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb-elastic/Interface/CopyClusterSnapshotCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb-elastic/Interface/CopyClusterSnapshotCommandOutput/)
227
+
228
+ </details>
206
229
  <details>
207
230
  <summary>
208
231
  CreateCluster
@@ -282,6 +305,22 @@ RestoreClusterFromSnapshot
282
305
 
283
306
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/docdb-elastic/command/RestoreClusterFromSnapshotCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb-elastic/Interface/RestoreClusterFromSnapshotCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb-elastic/Interface/RestoreClusterFromSnapshotCommandOutput/)
284
307
 
308
+ </details>
309
+ <details>
310
+ <summary>
311
+ StartCluster
312
+ </summary>
313
+
314
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/docdb-elastic/command/StartClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb-elastic/Interface/StartClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb-elastic/Interface/StartClusterCommandOutput/)
315
+
316
+ </details>
317
+ <details>
318
+ <summary>
319
+ StopCluster
320
+ </summary>
321
+
322
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/docdb-elastic/command/StopClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb-elastic/Interface/StopClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-docdb-elastic/Interface/StopClusterCommandOutput/)
323
+
285
324
  </details>
286
325
  <details>
287
326
  <summary>
package/dist-cjs/index.js CHANGED
@@ -24,6 +24,7 @@ __export(src_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
25
  Auth: () => Auth,
26
26
  ConflictException: () => ConflictException,
27
+ CopyClusterSnapshotCommand: () => CopyClusterSnapshotCommand,
27
28
  CreateClusterCommand: () => CreateClusterCommand,
28
29
  CreateClusterInputFilterSensitiveLog: () => CreateClusterInputFilterSensitiveLog,
29
30
  CreateClusterSnapshotCommand: () => CreateClusterSnapshotCommand,
@@ -41,7 +42,10 @@ __export(src_exports, {
41
42
  ResourceNotFoundException: () => ResourceNotFoundException,
42
43
  RestoreClusterFromSnapshotCommand: () => RestoreClusterFromSnapshotCommand,
43
44
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
45
+ SnapshotType: () => SnapshotType,
46
+ StartClusterCommand: () => StartClusterCommand,
44
47
  Status: () => Status,
48
+ StopClusterCommand: () => StopClusterCommand,
45
49
  TagResourceCommand: () => TagResourceCommand,
46
50
  ThrottlingException: () => ThrottlingException,
47
51
  UntagResourceCommand: () => UntagResourceCommand,
@@ -201,15 +205,17 @@ var DocDBElasticClient = _DocDBElasticClient;
201
205
  // src/DocDBElastic.ts
202
206
 
203
207
 
204
- // src/commands/CreateClusterCommand.ts
208
+ // src/commands/CopyClusterSnapshotCommand.ts
205
209
 
206
210
  var import_middleware_serde = require("@smithy/middleware-serde");
207
211
 
208
212
  var import_types = require("@smithy/types");
209
213
 
210
- // src/models/models_0.ts
214
+ // src/protocols/Aws_restJson1.ts
211
215
 
212
216
 
217
+ var import_uuid = require("uuid");
218
+
213
219
  // src/models/DocDBElasticServiceException.ts
214
220
 
215
221
  var _DocDBElasticServiceException = class _DocDBElasticServiceException extends import_smithy_client.ServiceException {
@@ -225,6 +231,7 @@ __name(_DocDBElasticServiceException, "DocDBElasticServiceException");
225
231
  var DocDBElasticServiceException = _DocDBElasticServiceException;
226
232
 
227
233
  // src/models/models_0.ts
234
+
228
235
  var _AccessDeniedException = class _AccessDeniedException extends DocDBElasticServiceException {
229
236
  /**
230
237
  * @internal
@@ -265,14 +272,28 @@ var _ConflictException = class _ConflictException extends DocDBElasticServiceExc
265
272
  };
266
273
  __name(_ConflictException, "ConflictException");
267
274
  var ConflictException = _ConflictException;
275
+ var SnapshotType = {
276
+ AUTOMATED: "AUTOMATED",
277
+ MANUAL: "MANUAL"
278
+ };
268
279
  var Status = {
269
280
  ACTIVE: "ACTIVE",
281
+ COPYING: "COPYING",
270
282
  CREATING: "CREATING",
271
283
  DELETING: "DELETING",
272
284
  INACCESSIBLE_ENCRYPTION_CREDS: "INACCESSIBLE_ENCRYPTION_CREDS",
285
+ INACCESSIBLE_SECRET_ARN: "INACCESSIBLE_SECRET_ARN",
286
+ INACCESSIBLE_VPC_ENDPOINT: "INACCESSIBLE_VPC_ENDPOINT",
287
+ INCOMPATIBLE_NETWORK: "INCOMPATIBLE_NETWORK",
273
288
  INVALID_SECURITY_GROUP_ID: "INVALID_SECURITY_GROUP_ID",
274
289
  INVALID_SUBNET_ID: "INVALID_SUBNET_ID",
275
290
  IP_ADDRESS_LIMIT_EXCEEDED: "IP_ADDRESS_LIMIT_EXCEEDED",
291
+ MERGING: "MERGING",
292
+ MODIFYING: "MODIFYING",
293
+ SPLITTING: "SPLITTING",
294
+ STARTING: "STARTING",
295
+ STOPPED: "STOPPED",
296
+ STOPPING: "STOPPING",
276
297
  UPDATING: "UPDATING",
277
298
  VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED"
278
299
  };
@@ -294,6 +315,25 @@ var _InternalServerException = class _InternalServerException extends DocDBElast
294
315
  };
295
316
  __name(_InternalServerException, "InternalServerException");
296
317
  var InternalServerException = _InternalServerException;
318
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends DocDBElasticServiceException {
319
+ /**
320
+ * @internal
321
+ */
322
+ constructor(opts) {
323
+ super({
324
+ name: "ResourceNotFoundException",
325
+ $fault: "client",
326
+ ...opts
327
+ });
328
+ this.name = "ResourceNotFoundException";
329
+ this.$fault = "client";
330
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
331
+ this.resourceId = opts.resourceId;
332
+ this.resourceType = opts.resourceType;
333
+ }
334
+ };
335
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
336
+ var ResourceNotFoundException = _ResourceNotFoundException;
297
337
  var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends DocDBElasticServiceException {
298
338
  /**
299
339
  * @internal
@@ -355,25 +395,6 @@ var _ValidationException = class _ValidationException extends DocDBElasticServic
355
395
  };
356
396
  __name(_ValidationException, "ValidationException");
357
397
  var ValidationException = _ValidationException;
358
- var _ResourceNotFoundException = class _ResourceNotFoundException extends DocDBElasticServiceException {
359
- /**
360
- * @internal
361
- */
362
- constructor(opts) {
363
- super({
364
- name: "ResourceNotFoundException",
365
- $fault: "client",
366
- ...opts
367
- });
368
- this.name = "ResourceNotFoundException";
369
- this.$fault = "client";
370
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
371
- this.resourceId = opts.resourceId;
372
- this.resourceType = opts.resourceType;
373
- }
374
- };
375
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
376
- var ResourceNotFoundException = _ResourceNotFoundException;
377
398
  var CreateClusterInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
378
399
  ...obj,
379
400
  ...obj.adminUserPassword && { adminUserPassword: import_smithy_client.SENSITIVE_STRING }
@@ -384,9 +405,25 @@ var UpdateClusterInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
384
405
  }), "UpdateClusterInputFilterSensitiveLog");
385
406
 
386
407
  // src/protocols/Aws_restJson1.ts
387
-
388
-
389
- var import_uuid = require("uuid");
408
+ var se_CopyClusterSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
409
+ const b = (0, import_core.requestBuilder)(input, context);
410
+ const headers = {
411
+ "content-type": "application/json"
412
+ };
413
+ b.bp("/cluster-snapshot/{snapshotArn}/copy");
414
+ b.p("snapshotArn", () => input.snapshotArn, "{snapshotArn}", false);
415
+ let body;
416
+ body = JSON.stringify(
417
+ (0, import_smithy_client.take)(input, {
418
+ copyTags: [],
419
+ kmsKeyId: [],
420
+ tags: (_) => (0, import_smithy_client._json)(_),
421
+ targetSnapshotName: []
422
+ })
423
+ );
424
+ b.m("POST").h(headers).b(body);
425
+ return b.build();
426
+ }, "se_CopyClusterSnapshotCommand");
390
427
  var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
391
428
  const b = (0, import_core.requestBuilder)(input, context);
392
429
  const headers = {
@@ -399,12 +436,15 @@ var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
399
436
  adminUserName: [],
400
437
  adminUserPassword: [],
401
438
  authType: [],
439
+ backupRetentionPeriod: [],
402
440
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
403
441
  clusterName: [],
404
442
  kmsKeyId: [],
443
+ preferredBackupWindow: [],
405
444
  preferredMaintenanceWindow: [],
406
445
  shardCapacity: [],
407
446
  shardCount: [],
447
+ shardInstanceCount: [],
408
448
  subnetIds: (_) => (0, import_smithy_client._json)(_),
409
449
  tags: (_) => (0, import_smithy_client._json)(_),
410
450
  vpcSecurityGroupIds: (_) => (0, import_smithy_client._json)(_)
@@ -485,7 +525,8 @@ var se_ListClusterSnapshotsCommand = /* @__PURE__ */ __name(async (input, contex
485
525
  const query = (0, import_smithy_client.map)({
486
526
  [_cA]: [, input[_cA]],
487
527
  [_nT]: [, input[_nT]],
488
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
528
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
529
+ [_sT]: [, input[_sT]]
489
530
  });
490
531
  let body;
491
532
  b.m("GET").h(headers).q(query).b(body);
@@ -512,6 +553,8 @@ var se_RestoreClusterFromSnapshotCommand = /* @__PURE__ */ __name(async (input,
512
553
  (0, import_smithy_client.take)(input, {
513
554
  clusterName: [],
514
555
  kmsKeyId: [],
556
+ shardCapacity: [],
557
+ shardInstanceCount: [],
515
558
  subnetIds: (_) => (0, import_smithy_client._json)(_),
516
559
  tags: (_) => (0, import_smithy_client._json)(_),
517
560
  vpcSecurityGroupIds: (_) => (0, import_smithy_client._json)(_)
@@ -520,6 +563,24 @@ var se_RestoreClusterFromSnapshotCommand = /* @__PURE__ */ __name(async (input,
520
563
  b.m("POST").h(headers).b(body);
521
564
  return b.build();
522
565
  }, "se_RestoreClusterFromSnapshotCommand");
566
+ var se_StartClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
567
+ const b = (0, import_core.requestBuilder)(input, context);
568
+ const headers = {};
569
+ b.bp("/cluster/{clusterArn}/start");
570
+ b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
571
+ let body;
572
+ b.m("POST").h(headers).b(body);
573
+ return b.build();
574
+ }, "se_StartClusterCommand");
575
+ var se_StopClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
576
+ const b = (0, import_core.requestBuilder)(input, context);
577
+ const headers = {};
578
+ b.bp("/cluster/{clusterArn}/stop");
579
+ b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
580
+ let body;
581
+ b.m("POST").h(headers).b(body);
582
+ return b.build();
583
+ }, "se_StopClusterCommand");
523
584
  var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
524
585
  const b = (0, import_core.requestBuilder)(input, context);
525
586
  const headers = {
@@ -563,10 +624,13 @@ var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
563
624
  (0, import_smithy_client.take)(input, {
564
625
  adminUserPassword: [],
565
626
  authType: [],
627
+ backupRetentionPeriod: [],
566
628
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
629
+ preferredBackupWindow: [],
567
630
  preferredMaintenanceWindow: [],
568
631
  shardCapacity: [],
569
632
  shardCount: [],
633
+ shardInstanceCount: [],
570
634
  subnetIds: (_) => (0, import_smithy_client._json)(_),
571
635
  vpcSecurityGroupIds: (_) => (0, import_smithy_client._json)(_)
572
636
  })
@@ -574,6 +638,20 @@ var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
574
638
  b.m("PUT").h(headers).b(body);
575
639
  return b.build();
576
640
  }, "se_UpdateClusterCommand");
641
+ var de_CopyClusterSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
642
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
643
+ return de_CommandError(output, context);
644
+ }
645
+ const contents = (0, import_smithy_client.map)({
646
+ $metadata: deserializeMetadata(output)
647
+ });
648
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
649
+ const doc = (0, import_smithy_client.take)(data, {
650
+ snapshot: import_smithy_client._json
651
+ });
652
+ Object.assign(contents, doc);
653
+ return contents;
654
+ }, "de_CopyClusterSnapshotCommand");
577
655
  var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
578
656
  if (output.statusCode !== 200 && output.statusCode >= 300) {
579
657
  return de_CommandError(output, context);
@@ -716,6 +794,34 @@ var de_RestoreClusterFromSnapshotCommand = /* @__PURE__ */ __name(async (output,
716
794
  Object.assign(contents, doc);
717
795
  return contents;
718
796
  }, "de_RestoreClusterFromSnapshotCommand");
797
+ var de_StartClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
798
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
799
+ return de_CommandError(output, context);
800
+ }
801
+ const contents = (0, import_smithy_client.map)({
802
+ $metadata: deserializeMetadata(output)
803
+ });
804
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
805
+ const doc = (0, import_smithy_client.take)(data, {
806
+ cluster: import_smithy_client._json
807
+ });
808
+ Object.assign(contents, doc);
809
+ return contents;
810
+ }, "de_StartClusterCommand");
811
+ var de_StopClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
812
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
813
+ return de_CommandError(output, context);
814
+ }
815
+ const contents = (0, import_smithy_client.map)({
816
+ $metadata: deserializeMetadata(output)
817
+ });
818
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
819
+ const doc = (0, import_smithy_client.take)(data, {
820
+ cluster: import_smithy_client._json
821
+ });
822
+ Object.assign(contents, doc);
823
+ return contents;
824
+ }, "de_StopClusterCommand");
719
825
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
720
826
  if (output.statusCode !== 200 && output.statusCode >= 300) {
721
827
  return de_CommandError(output, context);
@@ -766,6 +872,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
766
872
  case "InternalServerException":
767
873
  case "com.amazonaws.docdbelastic#InternalServerException":
768
874
  throw await de_InternalServerExceptionRes(parsedOutput, context);
875
+ case "ResourceNotFoundException":
876
+ case "com.amazonaws.docdbelastic#ResourceNotFoundException":
877
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
769
878
  case "ServiceQuotaExceededException":
770
879
  case "com.amazonaws.docdbelastic#ServiceQuotaExceededException":
771
880
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
@@ -775,9 +884,6 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
775
884
  case "ValidationException":
776
885
  case "com.amazonaws.docdbelastic#ValidationException":
777
886
  throw await de_ValidationExceptionRes(parsedOutput, context);
778
- case "ResourceNotFoundException":
779
- case "com.amazonaws.docdbelastic#ResourceNotFoundException":
780
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
781
887
  default:
782
888
  const parsedBody = parsedOutput.body;
783
889
  return throwDefaultError({
@@ -899,6 +1005,7 @@ var _mR = "maxResults";
899
1005
  var _nT = "nextToken";
900
1006
  var _rAS = "retryAfterSeconds";
901
1007
  var _ra = "retry-after";
1008
+ var _sT = "snapshotType";
902
1009
  var _tK = "tagKeys";
903
1010
  var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
904
1011
  if (encoded.length) {
@@ -941,7 +1048,24 @@ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
941
1048
  }
942
1049
  }, "loadRestJsonErrorCode");
943
1050
 
1051
+ // src/commands/CopyClusterSnapshotCommand.ts
1052
+ var _CopyClusterSnapshotCommand = class _CopyClusterSnapshotCommand extends import_smithy_client.Command.classBuilder().ep({
1053
+ ...commonParams
1054
+ }).m(function(Command, cs, config, o) {
1055
+ return [
1056
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1057
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1058
+ ];
1059
+ }).s("ChimeraDbLionfishServiceLambda", "CopyClusterSnapshot", {}).n("DocDBElasticClient", "CopyClusterSnapshotCommand").f(void 0, void 0).ser(se_CopyClusterSnapshotCommand).de(de_CopyClusterSnapshotCommand).build() {
1060
+ };
1061
+ __name(_CopyClusterSnapshotCommand, "CopyClusterSnapshotCommand");
1062
+ var CopyClusterSnapshotCommand = _CopyClusterSnapshotCommand;
1063
+
944
1064
  // src/commands/CreateClusterCommand.ts
1065
+
1066
+
1067
+
1068
+
945
1069
  var _CreateClusterCommand = class _CreateClusterCommand extends import_smithy_client.Command.classBuilder().ep({
946
1070
  ...commonParams
947
1071
  }).m(function(Command, cs, config, o) {
@@ -1107,6 +1231,40 @@ var _RestoreClusterFromSnapshotCommand = class _RestoreClusterFromSnapshotComman
1107
1231
  __name(_RestoreClusterFromSnapshotCommand, "RestoreClusterFromSnapshotCommand");
1108
1232
  var RestoreClusterFromSnapshotCommand = _RestoreClusterFromSnapshotCommand;
1109
1233
 
1234
+ // src/commands/StartClusterCommand.ts
1235
+
1236
+
1237
+
1238
+
1239
+ var _StartClusterCommand = class _StartClusterCommand extends import_smithy_client.Command.classBuilder().ep({
1240
+ ...commonParams
1241
+ }).m(function(Command, cs, config, o) {
1242
+ return [
1243
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1244
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1245
+ ];
1246
+ }).s("ChimeraDbLionfishServiceLambda", "StartCluster", {}).n("DocDBElasticClient", "StartClusterCommand").f(void 0, void 0).ser(se_StartClusterCommand).de(de_StartClusterCommand).build() {
1247
+ };
1248
+ __name(_StartClusterCommand, "StartClusterCommand");
1249
+ var StartClusterCommand = _StartClusterCommand;
1250
+
1251
+ // src/commands/StopClusterCommand.ts
1252
+
1253
+
1254
+
1255
+
1256
+ var _StopClusterCommand = class _StopClusterCommand extends import_smithy_client.Command.classBuilder().ep({
1257
+ ...commonParams
1258
+ }).m(function(Command, cs, config, o) {
1259
+ return [
1260
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1261
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1262
+ ];
1263
+ }).s("ChimeraDbLionfishServiceLambda", "StopCluster", {}).n("DocDBElasticClient", "StopClusterCommand").f(void 0, void 0).ser(se_StopClusterCommand).de(de_StopClusterCommand).build() {
1264
+ };
1265
+ __name(_StopClusterCommand, "StopClusterCommand");
1266
+ var StopClusterCommand = _StopClusterCommand;
1267
+
1110
1268
  // src/commands/TagResourceCommand.ts
1111
1269
 
1112
1270
 
@@ -1160,6 +1318,7 @@ var UpdateClusterCommand = _UpdateClusterCommand;
1160
1318
 
1161
1319
  // src/DocDBElastic.ts
1162
1320
  var commands = {
1321
+ CopyClusterSnapshotCommand,
1163
1322
  CreateClusterCommand,
1164
1323
  CreateClusterSnapshotCommand,
1165
1324
  DeleteClusterCommand,
@@ -1170,6 +1329,8 @@ var commands = {
1170
1329
  ListClusterSnapshotsCommand,
1171
1330
  ListTagsForResourceCommand,
1172
1331
  RestoreClusterFromSnapshotCommand,
1332
+ StartClusterCommand,
1333
+ StopClusterCommand,
1173
1334
  TagResourceCommand,
1174
1335
  UntagResourceCommand,
1175
1336
  UpdateClusterCommand
@@ -1198,6 +1359,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1198
1359
  DocDBElasticClient,
1199
1360
  DocDBElastic,
1200
1361
  $Command,
1362
+ CopyClusterSnapshotCommand,
1201
1363
  CreateClusterCommand,
1202
1364
  CreateClusterSnapshotCommand,
1203
1365
  DeleteClusterCommand,
@@ -1208,6 +1370,8 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1208
1370
  ListClustersCommand,
1209
1371
  ListTagsForResourceCommand,
1210
1372
  RestoreClusterFromSnapshotCommand,
1373
+ StartClusterCommand,
1374
+ StopClusterCommand,
1211
1375
  TagResourceCommand,
1212
1376
  UntagResourceCommand,
1213
1377
  UpdateClusterCommand,
@@ -1216,13 +1380,14 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1216
1380
  AccessDeniedException,
1217
1381
  Auth,
1218
1382
  ConflictException,
1383
+ SnapshotType,
1219
1384
  Status,
1220
1385
  InternalServerException,
1386
+ ResourceNotFoundException,
1221
1387
  ServiceQuotaExceededException,
1222
1388
  ThrottlingException,
1223
1389
  ValidationExceptionReason,
1224
1390
  ValidationException,
1225
- ResourceNotFoundException,
1226
1391
  CreateClusterInputFilterSensitiveLog,
1227
1392
  UpdateClusterInputFilterSensitiveLog
1228
1393
  });
@@ -1,4 +1,5 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { CopyClusterSnapshotCommand, } from "./commands/CopyClusterSnapshotCommand";
2
3
  import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
3
4
  import { CreateClusterSnapshotCommand, } from "./commands/CreateClusterSnapshotCommand";
4
5
  import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand";
@@ -9,11 +10,14 @@ import { ListClustersCommand, } from "./commands/ListClustersCommand";
9
10
  import { ListClusterSnapshotsCommand, } from "./commands/ListClusterSnapshotsCommand";
10
11
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
11
12
  import { RestoreClusterFromSnapshotCommand, } from "./commands/RestoreClusterFromSnapshotCommand";
13
+ import { StartClusterCommand, } from "./commands/StartClusterCommand";
14
+ import { StopClusterCommand } from "./commands/StopClusterCommand";
12
15
  import { TagResourceCommand } from "./commands/TagResourceCommand";
13
16
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
14
17
  import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
15
18
  import { DocDBElasticClient } from "./DocDBElasticClient";
16
19
  const commands = {
20
+ CopyClusterSnapshotCommand,
17
21
  CreateClusterCommand,
18
22
  CreateClusterSnapshotCommand,
19
23
  DeleteClusterCommand,
@@ -24,6 +28,8 @@ const commands = {
24
28
  ListClusterSnapshotsCommand,
25
29
  ListTagsForResourceCommand,
26
30
  RestoreClusterFromSnapshotCommand,
31
+ StartClusterCommand,
32
+ StopClusterCommand,
27
33
  TagResourceCommand,
28
34
  UntagResourceCommand,
29
35
  UpdateClusterCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CopyClusterSnapshotCommand, se_CopyClusterSnapshotCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CopyClusterSnapshotCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("ChimeraDbLionfishServiceLambda", "CopyClusterSnapshot", {})
19
+ .n("DocDBElasticClient", "CopyClusterSnapshotCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CopyClusterSnapshotCommand)
22
+ .de(de_CopyClusterSnapshotCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_StartClusterCommand, se_StartClusterCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class StartClusterCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("ChimeraDbLionfishServiceLambda", "StartCluster", {})
19
+ .n("DocDBElasticClient", "StartClusterCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartClusterCommand)
22
+ .de(de_StartClusterCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_StopClusterCommand, se_StopClusterCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class StopClusterCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("ChimeraDbLionfishServiceLambda", "StopCluster", {})
19
+ .n("DocDBElasticClient", "StopClusterCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StopClusterCommand)
22
+ .de(de_StopClusterCommand)
23
+ .build() {
24
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./CopyClusterSnapshotCommand";
1
2
  export * from "./CreateClusterCommand";
2
3
  export * from "./CreateClusterSnapshotCommand";
3
4
  export * from "./DeleteClusterCommand";
@@ -8,6 +9,8 @@ export * from "./ListClusterSnapshotsCommand";
8
9
  export * from "./ListClustersCommand";
9
10
  export * from "./ListTagsForResourceCommand";
10
11
  export * from "./RestoreClusterFromSnapshotCommand";
12
+ export * from "./StartClusterCommand";
13
+ export * from "./StopClusterCommand";
11
14
  export * from "./TagResourceCommand";
12
15
  export * from "./UntagResourceCommand";
13
16
  export * from "./UpdateClusterCommand";
@@ -30,14 +30,28 @@ export class ConflictException extends __BaseException {
30
30
  this.resourceType = opts.resourceType;
31
31
  }
32
32
  }
33
+ export const SnapshotType = {
34
+ AUTOMATED: "AUTOMATED",
35
+ MANUAL: "MANUAL",
36
+ };
33
37
  export const Status = {
34
38
  ACTIVE: "ACTIVE",
39
+ COPYING: "COPYING",
35
40
  CREATING: "CREATING",
36
41
  DELETING: "DELETING",
37
42
  INACCESSIBLE_ENCRYPTION_CREDS: "INACCESSIBLE_ENCRYPTION_CREDS",
43
+ INACCESSIBLE_SECRET_ARN: "INACCESSIBLE_SECRET_ARN",
44
+ INACCESSIBLE_VPC_ENDPOINT: "INACCESSIBLE_VPC_ENDPOINT",
45
+ INCOMPATIBLE_NETWORK: "INCOMPATIBLE_NETWORK",
38
46
  INVALID_SECURITY_GROUP_ID: "INVALID_SECURITY_GROUP_ID",
39
47
  INVALID_SUBNET_ID: "INVALID_SUBNET_ID",
40
48
  IP_ADDRESS_LIMIT_EXCEEDED: "IP_ADDRESS_LIMIT_EXCEEDED",
49
+ MERGING: "MERGING",
50
+ MODIFYING: "MODIFYING",
51
+ SPLITTING: "SPLITTING",
52
+ STARTING: "STARTING",
53
+ STOPPED: "STOPPED",
54
+ STOPPING: "STOPPING",
41
55
  UPDATING: "UPDATING",
42
56
  VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED",
43
57
  };
@@ -54,6 +68,20 @@ export class InternalServerException extends __BaseException {
54
68
  Object.setPrototypeOf(this, InternalServerException.prototype);
55
69
  }
56
70
  }
71
+ export class ResourceNotFoundException extends __BaseException {
72
+ constructor(opts) {
73
+ super({
74
+ name: "ResourceNotFoundException",
75
+ $fault: "client",
76
+ ...opts,
77
+ });
78
+ this.name = "ResourceNotFoundException";
79
+ this.$fault = "client";
80
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
81
+ this.resourceId = opts.resourceId;
82
+ this.resourceType = opts.resourceType;
83
+ }
84
+ }
57
85
  export class ServiceQuotaExceededException extends __BaseException {
58
86
  constructor(opts) {
59
87
  super({
@@ -100,20 +128,6 @@ export class ValidationException extends __BaseException {
100
128
  this.fieldList = opts.fieldList;
101
129
  }
102
130
  }
103
- export class ResourceNotFoundException extends __BaseException {
104
- constructor(opts) {
105
- super({
106
- name: "ResourceNotFoundException",
107
- $fault: "client",
108
- ...opts,
109
- });
110
- this.name = "ResourceNotFoundException";
111
- this.$fault = "client";
112
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
113
- this.resourceId = opts.resourceId;
114
- this.resourceType = opts.resourceType;
115
- }
116
- }
117
131
  export const CreateClusterInputFilterSensitiveLog = (obj) => ({
118
132
  ...obj,
119
133
  ...(obj.adminUserPassword && { adminUserPassword: SENSITIVE_STRING }),