@aws-sdk/client-docdb-elastic 3.523.0 → 3.529.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -1
- package/dist-cjs/index.js +208 -83
- package/dist-es/DocDBElastic.js +6 -0
- package/dist-es/commands/CopyClusterSnapshotCommand.js +24 -0
- package/dist-es/commands/StartClusterCommand.js +24 -0
- package/dist-es/commands/StopClusterCommand.js +24 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +28 -14
- package/dist-es/protocols/Aws_restJson1.js +91 -43
- package/dist-types/DocDBElastic.d.ts +36 -1
- package/dist-types/DocDBElasticClient.d.ts +20 -3
- package/dist-types/commands/CopyClusterSnapshotCommand.d.ts +101 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +14 -1
- package/dist-types/commands/CreateClusterSnapshotCommand.d.ts +2 -1
- package/dist-types/commands/DeleteClusterCommand.d.ts +11 -1
- package/dist-types/commands/DeleteClusterSnapshotCommand.d.ts +2 -1
- package/dist-types/commands/GetClusterCommand.d.ts +11 -1
- package/dist-types/commands/GetClusterSnapshotCommand.d.ts +2 -1
- package/dist-types/commands/ListClusterSnapshotsCommand.d.ts +2 -1
- package/dist-types/commands/ListClustersCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/RestoreClusterFromSnapshotCommand.d.ts +13 -1
- package/dist-types/commands/StartClusterCommand.d.ts +101 -0
- package/dist-types/commands/StopClusterCommand.d.ts +102 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateClusterCommand.d.ts +15 -2
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +15 -1
- package/dist-types/models/models_0.d.ts +478 -232
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/DocDBElastic.d.ts +51 -0
- package/dist-types/ts3.4/DocDBElasticClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/CopyClusterSnapshotCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/StartClusterCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/StopClusterCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +98 -42
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +17 -17
- package/dist-cjs/DocDBElastic.js +0 -1
- package/dist-cjs/DocDBElasticClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/CreateClusterCommand.js +0 -1
- package/dist-cjs/commands/CreateClusterSnapshotCommand.js +0 -1
- package/dist-cjs/commands/DeleteClusterCommand.js +0 -1
- package/dist-cjs/commands/DeleteClusterSnapshotCommand.js +0 -1
- package/dist-cjs/commands/GetClusterCommand.js +0 -1
- package/dist-cjs/commands/GetClusterSnapshotCommand.js +0 -1
- package/dist-cjs/commands/ListClusterSnapshotsCommand.js +0 -1
- package/dist-cjs/commands/ListClustersCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/RestoreClusterFromSnapshotCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateClusterCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/DocDBElasticServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListClusterSnapshotsPaginator.js +0 -1
- package/dist-cjs/pagination/ListClustersPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- 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
|
-
<
|
|
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,18 @@ var DocDBElasticClient = _DocDBElasticClient;
|
|
|
201
205
|
// src/DocDBElastic.ts
|
|
202
206
|
|
|
203
207
|
|
|
204
|
-
// src/commands/
|
|
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/
|
|
214
|
+
// src/protocols/Aws_restJson1.ts
|
|
215
|
+
var import_core2 = require("@aws-sdk/core");
|
|
211
216
|
|
|
212
217
|
|
|
218
|
+
var import_uuid = require("uuid");
|
|
219
|
+
|
|
213
220
|
// src/models/DocDBElasticServiceException.ts
|
|
214
221
|
|
|
215
222
|
var _DocDBElasticServiceException = class _DocDBElasticServiceException extends import_smithy_client.ServiceException {
|
|
@@ -225,6 +232,7 @@ __name(_DocDBElasticServiceException, "DocDBElasticServiceException");
|
|
|
225
232
|
var DocDBElasticServiceException = _DocDBElasticServiceException;
|
|
226
233
|
|
|
227
234
|
// src/models/models_0.ts
|
|
235
|
+
|
|
228
236
|
var _AccessDeniedException = class _AccessDeniedException extends DocDBElasticServiceException {
|
|
229
237
|
/**
|
|
230
238
|
* @internal
|
|
@@ -265,14 +273,28 @@ var _ConflictException = class _ConflictException extends DocDBElasticServiceExc
|
|
|
265
273
|
};
|
|
266
274
|
__name(_ConflictException, "ConflictException");
|
|
267
275
|
var ConflictException = _ConflictException;
|
|
276
|
+
var SnapshotType = {
|
|
277
|
+
AUTOMATED: "AUTOMATED",
|
|
278
|
+
MANUAL: "MANUAL"
|
|
279
|
+
};
|
|
268
280
|
var Status = {
|
|
269
281
|
ACTIVE: "ACTIVE",
|
|
282
|
+
COPYING: "COPYING",
|
|
270
283
|
CREATING: "CREATING",
|
|
271
284
|
DELETING: "DELETING",
|
|
272
285
|
INACCESSIBLE_ENCRYPTION_CREDS: "INACCESSIBLE_ENCRYPTION_CREDS",
|
|
286
|
+
INACCESSIBLE_SECRET_ARN: "INACCESSIBLE_SECRET_ARN",
|
|
287
|
+
INACCESSIBLE_VPC_ENDPOINT: "INACCESSIBLE_VPC_ENDPOINT",
|
|
288
|
+
INCOMPATIBLE_NETWORK: "INCOMPATIBLE_NETWORK",
|
|
273
289
|
INVALID_SECURITY_GROUP_ID: "INVALID_SECURITY_GROUP_ID",
|
|
274
290
|
INVALID_SUBNET_ID: "INVALID_SUBNET_ID",
|
|
275
291
|
IP_ADDRESS_LIMIT_EXCEEDED: "IP_ADDRESS_LIMIT_EXCEEDED",
|
|
292
|
+
MERGING: "MERGING",
|
|
293
|
+
MODIFYING: "MODIFYING",
|
|
294
|
+
SPLITTING: "SPLITTING",
|
|
295
|
+
STARTING: "STARTING",
|
|
296
|
+
STOPPED: "STOPPED",
|
|
297
|
+
STOPPING: "STOPPING",
|
|
276
298
|
UPDATING: "UPDATING",
|
|
277
299
|
VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED"
|
|
278
300
|
};
|
|
@@ -294,6 +316,25 @@ var _InternalServerException = class _InternalServerException extends DocDBElast
|
|
|
294
316
|
};
|
|
295
317
|
__name(_InternalServerException, "InternalServerException");
|
|
296
318
|
var InternalServerException = _InternalServerException;
|
|
319
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends DocDBElasticServiceException {
|
|
320
|
+
/**
|
|
321
|
+
* @internal
|
|
322
|
+
*/
|
|
323
|
+
constructor(opts) {
|
|
324
|
+
super({
|
|
325
|
+
name: "ResourceNotFoundException",
|
|
326
|
+
$fault: "client",
|
|
327
|
+
...opts
|
|
328
|
+
});
|
|
329
|
+
this.name = "ResourceNotFoundException";
|
|
330
|
+
this.$fault = "client";
|
|
331
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
332
|
+
this.resourceId = opts.resourceId;
|
|
333
|
+
this.resourceType = opts.resourceType;
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
337
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
297
338
|
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends DocDBElasticServiceException {
|
|
298
339
|
/**
|
|
299
340
|
* @internal
|
|
@@ -355,25 +396,6 @@ var _ValidationException = class _ValidationException extends DocDBElasticServic
|
|
|
355
396
|
};
|
|
356
397
|
__name(_ValidationException, "ValidationException");
|
|
357
398
|
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
399
|
var CreateClusterInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
378
400
|
...obj,
|
|
379
401
|
...obj.adminUserPassword && { adminUserPassword: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -384,9 +406,25 @@ var UpdateClusterInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
384
406
|
}), "UpdateClusterInputFilterSensitiveLog");
|
|
385
407
|
|
|
386
408
|
// src/protocols/Aws_restJson1.ts
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
409
|
+
var se_CopyClusterSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
410
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
411
|
+
const headers = {
|
|
412
|
+
"content-type": "application/json"
|
|
413
|
+
};
|
|
414
|
+
b.bp("/cluster-snapshot/{snapshotArn}/copy");
|
|
415
|
+
b.p("snapshotArn", () => input.snapshotArn, "{snapshotArn}", false);
|
|
416
|
+
let body;
|
|
417
|
+
body = JSON.stringify(
|
|
418
|
+
(0, import_smithy_client.take)(input, {
|
|
419
|
+
copyTags: [],
|
|
420
|
+
kmsKeyId: [],
|
|
421
|
+
tags: (_) => (0, import_smithy_client._json)(_),
|
|
422
|
+
targetSnapshotName: []
|
|
423
|
+
})
|
|
424
|
+
);
|
|
425
|
+
b.m("POST").h(headers).b(body);
|
|
426
|
+
return b.build();
|
|
427
|
+
}, "se_CopyClusterSnapshotCommand");
|
|
390
428
|
var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
391
429
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
392
430
|
const headers = {
|
|
@@ -399,12 +437,15 @@ var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
399
437
|
adminUserName: [],
|
|
400
438
|
adminUserPassword: [],
|
|
401
439
|
authType: [],
|
|
440
|
+
backupRetentionPeriod: [],
|
|
402
441
|
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
403
442
|
clusterName: [],
|
|
404
443
|
kmsKeyId: [],
|
|
444
|
+
preferredBackupWindow: [],
|
|
405
445
|
preferredMaintenanceWindow: [],
|
|
406
446
|
shardCapacity: [],
|
|
407
447
|
shardCount: [],
|
|
448
|
+
shardInstanceCount: [],
|
|
408
449
|
subnetIds: (_) => (0, import_smithy_client._json)(_),
|
|
409
450
|
tags: (_) => (0, import_smithy_client._json)(_),
|
|
410
451
|
vpcSecurityGroupIds: (_) => (0, import_smithy_client._json)(_)
|
|
@@ -485,7 +526,8 @@ var se_ListClusterSnapshotsCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
485
526
|
const query = (0, import_smithy_client.map)({
|
|
486
527
|
[_cA]: [, input[_cA]],
|
|
487
528
|
[_nT]: [, input[_nT]],
|
|
488
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
529
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
530
|
+
[_sT]: [, input[_sT]]
|
|
489
531
|
});
|
|
490
532
|
let body;
|
|
491
533
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -512,6 +554,8 @@ var se_RestoreClusterFromSnapshotCommand = /* @__PURE__ */ __name(async (input,
|
|
|
512
554
|
(0, import_smithy_client.take)(input, {
|
|
513
555
|
clusterName: [],
|
|
514
556
|
kmsKeyId: [],
|
|
557
|
+
shardCapacity: [],
|
|
558
|
+
shardInstanceCount: [],
|
|
515
559
|
subnetIds: (_) => (0, import_smithy_client._json)(_),
|
|
516
560
|
tags: (_) => (0, import_smithy_client._json)(_),
|
|
517
561
|
vpcSecurityGroupIds: (_) => (0, import_smithy_client._json)(_)
|
|
@@ -520,6 +564,24 @@ var se_RestoreClusterFromSnapshotCommand = /* @__PURE__ */ __name(async (input,
|
|
|
520
564
|
b.m("POST").h(headers).b(body);
|
|
521
565
|
return b.build();
|
|
522
566
|
}, "se_RestoreClusterFromSnapshotCommand");
|
|
567
|
+
var se_StartClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
568
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
569
|
+
const headers = {};
|
|
570
|
+
b.bp("/cluster/{clusterArn}/start");
|
|
571
|
+
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
572
|
+
let body;
|
|
573
|
+
b.m("POST").h(headers).b(body);
|
|
574
|
+
return b.build();
|
|
575
|
+
}, "se_StartClusterCommand");
|
|
576
|
+
var se_StopClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
577
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
578
|
+
const headers = {};
|
|
579
|
+
b.bp("/cluster/{clusterArn}/stop");
|
|
580
|
+
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
581
|
+
let body;
|
|
582
|
+
b.m("POST").h(headers).b(body);
|
|
583
|
+
return b.build();
|
|
584
|
+
}, "se_StopClusterCommand");
|
|
523
585
|
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
524
586
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
525
587
|
const headers = {
|
|
@@ -563,10 +625,13 @@ var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
563
625
|
(0, import_smithy_client.take)(input, {
|
|
564
626
|
adminUserPassword: [],
|
|
565
627
|
authType: [],
|
|
628
|
+
backupRetentionPeriod: [],
|
|
566
629
|
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
630
|
+
preferredBackupWindow: [],
|
|
567
631
|
preferredMaintenanceWindow: [],
|
|
568
632
|
shardCapacity: [],
|
|
569
633
|
shardCount: [],
|
|
634
|
+
shardInstanceCount: [],
|
|
570
635
|
subnetIds: (_) => (0, import_smithy_client._json)(_),
|
|
571
636
|
vpcSecurityGroupIds: (_) => (0, import_smithy_client._json)(_)
|
|
572
637
|
})
|
|
@@ -574,6 +639,20 @@ var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
574
639
|
b.m("PUT").h(headers).b(body);
|
|
575
640
|
return b.build();
|
|
576
641
|
}, "se_UpdateClusterCommand");
|
|
642
|
+
var de_CopyClusterSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
643
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
|
+
return de_CommandError(output, context);
|
|
645
|
+
}
|
|
646
|
+
const contents = (0, import_smithy_client.map)({
|
|
647
|
+
$metadata: deserializeMetadata(output)
|
|
648
|
+
});
|
|
649
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
650
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
651
|
+
snapshot: import_smithy_client._json
|
|
652
|
+
});
|
|
653
|
+
Object.assign(contents, doc);
|
|
654
|
+
return contents;
|
|
655
|
+
}, "de_CopyClusterSnapshotCommand");
|
|
577
656
|
var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
578
657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
579
658
|
return de_CommandError(output, context);
|
|
@@ -581,7 +660,7 @@ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
581
660
|
const contents = (0, import_smithy_client.map)({
|
|
582
661
|
$metadata: deserializeMetadata(output)
|
|
583
662
|
});
|
|
584
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
663
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
585
664
|
const doc = (0, import_smithy_client.take)(data, {
|
|
586
665
|
cluster: import_smithy_client._json
|
|
587
666
|
});
|
|
@@ -595,7 +674,7 @@ var de_CreateClusterSnapshotCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
595
674
|
const contents = (0, import_smithy_client.map)({
|
|
596
675
|
$metadata: deserializeMetadata(output)
|
|
597
676
|
});
|
|
598
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
677
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
599
678
|
const doc = (0, import_smithy_client.take)(data, {
|
|
600
679
|
snapshot: import_smithy_client._json
|
|
601
680
|
});
|
|
@@ -609,7 +688,7 @@ var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
609
688
|
const contents = (0, import_smithy_client.map)({
|
|
610
689
|
$metadata: deserializeMetadata(output)
|
|
611
690
|
});
|
|
612
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
691
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
613
692
|
const doc = (0, import_smithy_client.take)(data, {
|
|
614
693
|
cluster: import_smithy_client._json
|
|
615
694
|
});
|
|
@@ -623,7 +702,7 @@ var de_DeleteClusterSnapshotCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
623
702
|
const contents = (0, import_smithy_client.map)({
|
|
624
703
|
$metadata: deserializeMetadata(output)
|
|
625
704
|
});
|
|
626
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
705
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
627
706
|
const doc = (0, import_smithy_client.take)(data, {
|
|
628
707
|
snapshot: import_smithy_client._json
|
|
629
708
|
});
|
|
@@ -637,7 +716,7 @@ var de_GetClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
637
716
|
const contents = (0, import_smithy_client.map)({
|
|
638
717
|
$metadata: deserializeMetadata(output)
|
|
639
718
|
});
|
|
640
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
719
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
641
720
|
const doc = (0, import_smithy_client.take)(data, {
|
|
642
721
|
cluster: import_smithy_client._json
|
|
643
722
|
});
|
|
@@ -651,7 +730,7 @@ var de_GetClusterSnapshotCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
651
730
|
const contents = (0, import_smithy_client.map)({
|
|
652
731
|
$metadata: deserializeMetadata(output)
|
|
653
732
|
});
|
|
654
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
733
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
655
734
|
const doc = (0, import_smithy_client.take)(data, {
|
|
656
735
|
snapshot: import_smithy_client._json
|
|
657
736
|
});
|
|
@@ -665,7 +744,7 @@ var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
665
744
|
const contents = (0, import_smithy_client.map)({
|
|
666
745
|
$metadata: deserializeMetadata(output)
|
|
667
746
|
});
|
|
668
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
747
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
669
748
|
const doc = (0, import_smithy_client.take)(data, {
|
|
670
749
|
clusters: import_smithy_client._json,
|
|
671
750
|
nextToken: import_smithy_client.expectString
|
|
@@ -680,7 +759,7 @@ var de_ListClusterSnapshotsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
680
759
|
const contents = (0, import_smithy_client.map)({
|
|
681
760
|
$metadata: deserializeMetadata(output)
|
|
682
761
|
});
|
|
683
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
762
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
684
763
|
const doc = (0, import_smithy_client.take)(data, {
|
|
685
764
|
nextToken: import_smithy_client.expectString,
|
|
686
765
|
snapshots: import_smithy_client._json
|
|
@@ -695,7 +774,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
695
774
|
const contents = (0, import_smithy_client.map)({
|
|
696
775
|
$metadata: deserializeMetadata(output)
|
|
697
776
|
});
|
|
698
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
777
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
699
778
|
const doc = (0, import_smithy_client.take)(data, {
|
|
700
779
|
tags: import_smithy_client._json
|
|
701
780
|
});
|
|
@@ -709,13 +788,41 @@ var de_RestoreClusterFromSnapshotCommand = /* @__PURE__ */ __name(async (output,
|
|
|
709
788
|
const contents = (0, import_smithy_client.map)({
|
|
710
789
|
$metadata: deserializeMetadata(output)
|
|
711
790
|
});
|
|
712
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
791
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
713
792
|
const doc = (0, import_smithy_client.take)(data, {
|
|
714
793
|
cluster: import_smithy_client._json
|
|
715
794
|
});
|
|
716
795
|
Object.assign(contents, doc);
|
|
717
796
|
return contents;
|
|
718
797
|
}, "de_RestoreClusterFromSnapshotCommand");
|
|
798
|
+
var de_StartClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
799
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
800
|
+
return de_CommandError(output, context);
|
|
801
|
+
}
|
|
802
|
+
const contents = (0, import_smithy_client.map)({
|
|
803
|
+
$metadata: deserializeMetadata(output)
|
|
804
|
+
});
|
|
805
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
806
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
807
|
+
cluster: import_smithy_client._json
|
|
808
|
+
});
|
|
809
|
+
Object.assign(contents, doc);
|
|
810
|
+
return contents;
|
|
811
|
+
}, "de_StartClusterCommand");
|
|
812
|
+
var de_StopClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
813
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
814
|
+
return de_CommandError(output, context);
|
|
815
|
+
}
|
|
816
|
+
const contents = (0, import_smithy_client.map)({
|
|
817
|
+
$metadata: deserializeMetadata(output)
|
|
818
|
+
});
|
|
819
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
820
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
821
|
+
cluster: import_smithy_client._json
|
|
822
|
+
});
|
|
823
|
+
Object.assign(contents, doc);
|
|
824
|
+
return contents;
|
|
825
|
+
}, "de_StopClusterCommand");
|
|
719
826
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
720
827
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
721
828
|
return de_CommandError(output, context);
|
|
@@ -743,7 +850,7 @@ var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
743
850
|
const contents = (0, import_smithy_client.map)({
|
|
744
851
|
$metadata: deserializeMetadata(output)
|
|
745
852
|
});
|
|
746
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
853
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
747
854
|
const doc = (0, import_smithy_client.take)(data, {
|
|
748
855
|
cluster: import_smithy_client._json
|
|
749
856
|
});
|
|
@@ -753,9 +860,9 @@ var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
753
860
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
754
861
|
const parsedOutput = {
|
|
755
862
|
...output,
|
|
756
|
-
body: await
|
|
863
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
757
864
|
};
|
|
758
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
865
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
759
866
|
switch (errorCode) {
|
|
760
867
|
case "AccessDeniedException":
|
|
761
868
|
case "com.amazonaws.docdbelastic#AccessDeniedException":
|
|
@@ -766,6 +873,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
766
873
|
case "InternalServerException":
|
|
767
874
|
case "com.amazonaws.docdbelastic#InternalServerException":
|
|
768
875
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
876
|
+
case "ResourceNotFoundException":
|
|
877
|
+
case "com.amazonaws.docdbelastic#ResourceNotFoundException":
|
|
878
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
769
879
|
case "ServiceQuotaExceededException":
|
|
770
880
|
case "com.amazonaws.docdbelastic#ServiceQuotaExceededException":
|
|
771
881
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -775,9 +885,6 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
775
885
|
case "ValidationException":
|
|
776
886
|
case "com.amazonaws.docdbelastic#ValidationException":
|
|
777
887
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ResourceNotFoundException":
|
|
779
|
-
case "com.amazonaws.docdbelastic#ResourceNotFoundException":
|
|
780
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
781
888
|
default:
|
|
782
889
|
const parsedBody = parsedOutput.body;
|
|
783
890
|
return throwDefaultError({
|
|
@@ -893,55 +1000,32 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
893
1000
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
894
1001
|
cfId: output.headers["x-amz-cf-id"]
|
|
895
1002
|
}), "deserializeMetadata");
|
|
896
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
897
1003
|
var _cA = "clusterArn";
|
|
898
1004
|
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
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
917
|
-
let cleanValue = rawValue;
|
|
918
|
-
if (typeof cleanValue === "number") {
|
|
919
|
-
cleanValue = cleanValue.toString();
|
|
920
|
-
}
|
|
921
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
922
|
-
cleanValue = cleanValue.split(",")[0];
|
|
923
|
-
}
|
|
924
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
925
|
-
cleanValue = cleanValue.split(":")[0];
|
|
926
|
-
}
|
|
927
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
928
|
-
cleanValue = cleanValue.split("#")[1];
|
|
929
|
-
}
|
|
930
|
-
return cleanValue;
|
|
931
|
-
}, "sanitizeErrorCode");
|
|
932
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
933
|
-
if (headerKey !== void 0) {
|
|
934
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
935
|
-
}
|
|
936
|
-
if (data.code !== void 0) {
|
|
937
|
-
return sanitizeErrorCode(data.code);
|
|
938
|
-
}
|
|
939
|
-
if (data["__type"] !== void 0) {
|
|
940
|
-
return sanitizeErrorCode(data["__type"]);
|
|
941
|
-
}
|
|
942
|
-
}, "loadRestJsonErrorCode");
|
|
1010
|
+
|
|
1011
|
+
// src/commands/CopyClusterSnapshotCommand.ts
|
|
1012
|
+
var _CopyClusterSnapshotCommand = class _CopyClusterSnapshotCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1013
|
+
...commonParams
|
|
1014
|
+
}).m(function(Command, cs, config, o) {
|
|
1015
|
+
return [
|
|
1016
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1017
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1018
|
+
];
|
|
1019
|
+
}).s("ChimeraDbLionfishServiceLambda", "CopyClusterSnapshot", {}).n("DocDBElasticClient", "CopyClusterSnapshotCommand").f(void 0, void 0).ser(se_CopyClusterSnapshotCommand).de(de_CopyClusterSnapshotCommand).build() {
|
|
1020
|
+
};
|
|
1021
|
+
__name(_CopyClusterSnapshotCommand, "CopyClusterSnapshotCommand");
|
|
1022
|
+
var CopyClusterSnapshotCommand = _CopyClusterSnapshotCommand;
|
|
943
1023
|
|
|
944
1024
|
// src/commands/CreateClusterCommand.ts
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
945
1029
|
var _CreateClusterCommand = class _CreateClusterCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
946
1030
|
...commonParams
|
|
947
1031
|
}).m(function(Command, cs, config, o) {
|
|
@@ -1107,6 +1191,40 @@ var _RestoreClusterFromSnapshotCommand = class _RestoreClusterFromSnapshotComman
|
|
|
1107
1191
|
__name(_RestoreClusterFromSnapshotCommand, "RestoreClusterFromSnapshotCommand");
|
|
1108
1192
|
var RestoreClusterFromSnapshotCommand = _RestoreClusterFromSnapshotCommand;
|
|
1109
1193
|
|
|
1194
|
+
// src/commands/StartClusterCommand.ts
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
var _StartClusterCommand = class _StartClusterCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1200
|
+
...commonParams
|
|
1201
|
+
}).m(function(Command, cs, config, o) {
|
|
1202
|
+
return [
|
|
1203
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1204
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1205
|
+
];
|
|
1206
|
+
}).s("ChimeraDbLionfishServiceLambda", "StartCluster", {}).n("DocDBElasticClient", "StartClusterCommand").f(void 0, void 0).ser(se_StartClusterCommand).de(de_StartClusterCommand).build() {
|
|
1207
|
+
};
|
|
1208
|
+
__name(_StartClusterCommand, "StartClusterCommand");
|
|
1209
|
+
var StartClusterCommand = _StartClusterCommand;
|
|
1210
|
+
|
|
1211
|
+
// src/commands/StopClusterCommand.ts
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
var _StopClusterCommand = class _StopClusterCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1217
|
+
...commonParams
|
|
1218
|
+
}).m(function(Command, cs, config, o) {
|
|
1219
|
+
return [
|
|
1220
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1221
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1222
|
+
];
|
|
1223
|
+
}).s("ChimeraDbLionfishServiceLambda", "StopCluster", {}).n("DocDBElasticClient", "StopClusterCommand").f(void 0, void 0).ser(se_StopClusterCommand).de(de_StopClusterCommand).build() {
|
|
1224
|
+
};
|
|
1225
|
+
__name(_StopClusterCommand, "StopClusterCommand");
|
|
1226
|
+
var StopClusterCommand = _StopClusterCommand;
|
|
1227
|
+
|
|
1110
1228
|
// src/commands/TagResourceCommand.ts
|
|
1111
1229
|
|
|
1112
1230
|
|
|
@@ -1160,6 +1278,7 @@ var UpdateClusterCommand = _UpdateClusterCommand;
|
|
|
1160
1278
|
|
|
1161
1279
|
// src/DocDBElastic.ts
|
|
1162
1280
|
var commands = {
|
|
1281
|
+
CopyClusterSnapshotCommand,
|
|
1163
1282
|
CreateClusterCommand,
|
|
1164
1283
|
CreateClusterSnapshotCommand,
|
|
1165
1284
|
DeleteClusterCommand,
|
|
@@ -1170,6 +1289,8 @@ var commands = {
|
|
|
1170
1289
|
ListClusterSnapshotsCommand,
|
|
1171
1290
|
ListTagsForResourceCommand,
|
|
1172
1291
|
RestoreClusterFromSnapshotCommand,
|
|
1292
|
+
StartClusterCommand,
|
|
1293
|
+
StopClusterCommand,
|
|
1173
1294
|
TagResourceCommand,
|
|
1174
1295
|
UntagResourceCommand,
|
|
1175
1296
|
UpdateClusterCommand
|
|
@@ -1198,6 +1319,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
1198
1319
|
DocDBElasticClient,
|
|
1199
1320
|
DocDBElastic,
|
|
1200
1321
|
$Command,
|
|
1322
|
+
CopyClusterSnapshotCommand,
|
|
1201
1323
|
CreateClusterCommand,
|
|
1202
1324
|
CreateClusterSnapshotCommand,
|
|
1203
1325
|
DeleteClusterCommand,
|
|
@@ -1208,6 +1330,8 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
1208
1330
|
ListClustersCommand,
|
|
1209
1331
|
ListTagsForResourceCommand,
|
|
1210
1332
|
RestoreClusterFromSnapshotCommand,
|
|
1333
|
+
StartClusterCommand,
|
|
1334
|
+
StopClusterCommand,
|
|
1211
1335
|
TagResourceCommand,
|
|
1212
1336
|
UntagResourceCommand,
|
|
1213
1337
|
UpdateClusterCommand,
|
|
@@ -1216,13 +1340,14 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
1216
1340
|
AccessDeniedException,
|
|
1217
1341
|
Auth,
|
|
1218
1342
|
ConflictException,
|
|
1343
|
+
SnapshotType,
|
|
1219
1344
|
Status,
|
|
1220
1345
|
InternalServerException,
|
|
1346
|
+
ResourceNotFoundException,
|
|
1221
1347
|
ServiceQuotaExceededException,
|
|
1222
1348
|
ThrottlingException,
|
|
1223
1349
|
ValidationExceptionReason,
|
|
1224
1350
|
ValidationException,
|
|
1225
|
-
ResourceNotFoundException,
|
|
1226
1351
|
CreateClusterInputFilterSensitiveLog,
|
|
1227
1352
|
UpdateClusterInputFilterSensitiveLog
|
|
1228
1353
|
});
|
package/dist-es/DocDBElastic.js
CHANGED
|
@@ -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,
|