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