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