@aws-sdk/client-dax 3.490.0 → 3.495.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist-cjs/DAX.js +1 -53
  2. package/dist-cjs/DAXClient.js +1 -43
  3. package/dist-cjs/commands/CreateClusterCommand.js +1 -28
  4. package/dist-cjs/commands/CreateParameterGroupCommand.js +1 -28
  5. package/dist-cjs/commands/CreateSubnetGroupCommand.js +1 -28
  6. package/dist-cjs/commands/DecreaseReplicationFactorCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteClusterCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteParameterGroupCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteSubnetGroupCommand.js +1 -28
  10. package/dist-cjs/commands/DescribeClustersCommand.js +1 -28
  11. package/dist-cjs/commands/DescribeDefaultParametersCommand.js +1 -28
  12. package/dist-cjs/commands/DescribeEventsCommand.js +1 -28
  13. package/dist-cjs/commands/DescribeParameterGroupsCommand.js +1 -28
  14. package/dist-cjs/commands/DescribeParametersCommand.js +1 -28
  15. package/dist-cjs/commands/DescribeSubnetGroupsCommand.js +1 -28
  16. package/dist-cjs/commands/IncreaseReplicationFactorCommand.js +1 -28
  17. package/dist-cjs/commands/ListTagsCommand.js +1 -28
  18. package/dist-cjs/commands/RebootNodeCommand.js +1 -28
  19. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  20. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  21. package/dist-cjs/commands/UpdateClusterCommand.js +1 -28
  22. package/dist-cjs/commands/UpdateParameterGroupCommand.js +1 -28
  23. package/dist-cjs/commands/UpdateSubnetGroupCommand.js +1 -28
  24. package/dist-cjs/commands/index.js +1 -24
  25. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  26. package/dist-cjs/extensionConfiguration.js +1 -2
  27. package/dist-cjs/index.js +2645 -10
  28. package/dist-cjs/models/DAXServiceException.js +1 -12
  29. package/dist-cjs/models/index.js +1 -4
  30. package/dist-cjs/models/models_0.js +1 -383
  31. package/dist-cjs/protocols/Aws_json1_1.js +1 -1567
  32. package/dist-cjs/runtimeExtensions.js +1 -22
  33. package/package.json +39 -39
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,2646 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DAXServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./DAXClient"), exports);
6
- tslib_1.__exportStar(require("./DAX"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./models"), exports);
9
- require("@aws-sdk/util-endpoints");
10
- var DAXServiceException_1 = require("./models/DAXServiceException");
11
- Object.defineProperty(exports, "DAXServiceException", { enumerable: true, get: function () { return DAXServiceException_1.DAXServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ ChangeType: () => ChangeType,
25
+ ClusterAlreadyExistsFault: () => ClusterAlreadyExistsFault,
26
+ ClusterEndpointEncryptionType: () => ClusterEndpointEncryptionType,
27
+ ClusterNotFoundFault: () => ClusterNotFoundFault,
28
+ ClusterQuotaForCustomerExceededFault: () => ClusterQuotaForCustomerExceededFault,
29
+ CreateClusterCommand: () => CreateClusterCommand,
30
+ CreateParameterGroupCommand: () => CreateParameterGroupCommand,
31
+ CreateSubnetGroupCommand: () => CreateSubnetGroupCommand,
32
+ DAX: () => DAX,
33
+ DAXClient: () => DAXClient,
34
+ DAXServiceException: () => DAXServiceException,
35
+ DecreaseReplicationFactorCommand: () => DecreaseReplicationFactorCommand,
36
+ DeleteClusterCommand: () => DeleteClusterCommand,
37
+ DeleteParameterGroupCommand: () => DeleteParameterGroupCommand,
38
+ DeleteSubnetGroupCommand: () => DeleteSubnetGroupCommand,
39
+ DescribeClustersCommand: () => DescribeClustersCommand,
40
+ DescribeDefaultParametersCommand: () => DescribeDefaultParametersCommand,
41
+ DescribeEventsCommand: () => DescribeEventsCommand,
42
+ DescribeParameterGroupsCommand: () => DescribeParameterGroupsCommand,
43
+ DescribeParametersCommand: () => DescribeParametersCommand,
44
+ DescribeSubnetGroupsCommand: () => DescribeSubnetGroupsCommand,
45
+ IncreaseReplicationFactorCommand: () => IncreaseReplicationFactorCommand,
46
+ InsufficientClusterCapacityFault: () => InsufficientClusterCapacityFault,
47
+ InvalidARNFault: () => InvalidARNFault,
48
+ InvalidClusterStateFault: () => InvalidClusterStateFault,
49
+ InvalidParameterCombinationException: () => InvalidParameterCombinationException,
50
+ InvalidParameterGroupStateFault: () => InvalidParameterGroupStateFault,
51
+ InvalidParameterValueException: () => InvalidParameterValueException,
52
+ InvalidSubnet: () => InvalidSubnet,
53
+ InvalidVPCNetworkStateFault: () => InvalidVPCNetworkStateFault,
54
+ IsModifiable: () => IsModifiable,
55
+ ListTagsCommand: () => ListTagsCommand,
56
+ NodeNotFoundFault: () => NodeNotFoundFault,
57
+ NodeQuotaForClusterExceededFault: () => NodeQuotaForClusterExceededFault,
58
+ NodeQuotaForCustomerExceededFault: () => NodeQuotaForCustomerExceededFault,
59
+ ParameterGroupAlreadyExistsFault: () => ParameterGroupAlreadyExistsFault,
60
+ ParameterGroupNotFoundFault: () => ParameterGroupNotFoundFault,
61
+ ParameterGroupQuotaExceededFault: () => ParameterGroupQuotaExceededFault,
62
+ ParameterType: () => ParameterType,
63
+ RebootNodeCommand: () => RebootNodeCommand,
64
+ SSEStatus: () => SSEStatus,
65
+ ServiceLinkedRoleNotFoundFault: () => ServiceLinkedRoleNotFoundFault,
66
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
67
+ SourceType: () => SourceType,
68
+ SubnetGroupAlreadyExistsFault: () => SubnetGroupAlreadyExistsFault,
69
+ SubnetGroupInUseFault: () => SubnetGroupInUseFault,
70
+ SubnetGroupNotFoundFault: () => SubnetGroupNotFoundFault,
71
+ SubnetGroupQuotaExceededFault: () => SubnetGroupQuotaExceededFault,
72
+ SubnetInUse: () => SubnetInUse,
73
+ SubnetQuotaExceededFault: () => SubnetQuotaExceededFault,
74
+ TagNotFoundFault: () => TagNotFoundFault,
75
+ TagQuotaPerResourceExceeded: () => TagQuotaPerResourceExceeded,
76
+ TagResourceCommand: () => TagResourceCommand,
77
+ UntagResourceCommand: () => UntagResourceCommand,
78
+ UpdateClusterCommand: () => UpdateClusterCommand,
79
+ UpdateParameterGroupCommand: () => UpdateParameterGroupCommand,
80
+ UpdateSubnetGroupCommand: () => UpdateSubnetGroupCommand,
81
+ __Client: () => import_smithy_client.Client
82
+ });
83
+ module.exports = __toCommonJS(src_exports);
84
+
85
+ // src/DAXClient.ts
86
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
87
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
88
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
89
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
90
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
91
+ var import_config_resolver = require("@smithy/config-resolver");
92
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
93
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
94
+ var import_middleware_retry = require("@smithy/middleware-retry");
95
+
96
+
97
+ // src/endpoint/EndpointParameters.ts
98
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
99
+ return {
100
+ ...options,
101
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
102
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
103
+ defaultSigningName: "dax"
104
+ };
105
+ }, "resolveClientEndpointParameters");
106
+ var commonParams = {
107
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
108
+ Endpoint: { type: "builtInParams", name: "endpoint" },
109
+ Region: { type: "builtInParams", name: "region" },
110
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
111
+ };
112
+
113
+ // src/DAXClient.ts
114
+ var import_runtimeConfig = require("././runtimeConfig");
115
+
116
+ // src/runtimeExtensions.ts
117
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
118
+ var import_protocol_http = require("@smithy/protocol-http");
119
+ var import_smithy_client = require("@smithy/smithy-client");
120
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
121
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
122
+ const extensionConfiguration = {
123
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
124
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
125
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
126
+ };
127
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
128
+ return {
129
+ ...runtimeConfig,
130
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
131
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
132
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
133
+ };
134
+ }, "resolveRuntimeExtensions");
135
+
136
+ // src/DAXClient.ts
137
+ var _DAXClient = class _DAXClient extends import_smithy_client.Client {
138
+ constructor(...[configuration]) {
139
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
140
+ const _config_1 = resolveClientEndpointParameters(_config_0);
141
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
142
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
143
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
144
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
145
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
146
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
147
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
148
+ super(_config_8);
149
+ this.config = _config_8;
150
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
151
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
152
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
153
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
154
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
155
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
156
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
157
+ }
158
+ /**
159
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
160
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
161
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
162
+ */
163
+ destroy() {
164
+ super.destroy();
165
+ }
166
+ };
167
+ __name(_DAXClient, "DAXClient");
168
+ var DAXClient = _DAXClient;
169
+
170
+ // src/DAX.ts
171
+
172
+
173
+ // src/commands/CreateClusterCommand.ts
174
+
175
+ var import_middleware_serde = require("@smithy/middleware-serde");
176
+
177
+ var import_types = require("@smithy/types");
178
+
179
+ // src/protocols/Aws_json1_1.ts
180
+
181
+
182
+
183
+ // src/models/DAXServiceException.ts
184
+
185
+ var _DAXServiceException = class _DAXServiceException extends import_smithy_client.ServiceException {
186
+ /**
187
+ * @internal
188
+ */
189
+ constructor(options) {
190
+ super(options);
191
+ Object.setPrototypeOf(this, _DAXServiceException.prototype);
192
+ }
193
+ };
194
+ __name(_DAXServiceException, "DAXServiceException");
195
+ var DAXServiceException = _DAXServiceException;
196
+
197
+ // src/models/models_0.ts
198
+ var _ClusterAlreadyExistsFault = class _ClusterAlreadyExistsFault extends DAXServiceException {
199
+ /**
200
+ * @internal
201
+ */
202
+ constructor(opts) {
203
+ super({
204
+ name: "ClusterAlreadyExistsFault",
205
+ $fault: "client",
206
+ ...opts
207
+ });
208
+ this.name = "ClusterAlreadyExistsFault";
209
+ this.$fault = "client";
210
+ Object.setPrototypeOf(this, _ClusterAlreadyExistsFault.prototype);
211
+ }
212
+ };
213
+ __name(_ClusterAlreadyExistsFault, "ClusterAlreadyExistsFault");
214
+ var ClusterAlreadyExistsFault = _ClusterAlreadyExistsFault;
215
+ var _ClusterQuotaForCustomerExceededFault = class _ClusterQuotaForCustomerExceededFault extends DAXServiceException {
216
+ /**
217
+ * @internal
218
+ */
219
+ constructor(opts) {
220
+ super({
221
+ name: "ClusterQuotaForCustomerExceededFault",
222
+ $fault: "client",
223
+ ...opts
224
+ });
225
+ this.name = "ClusterQuotaForCustomerExceededFault";
226
+ this.$fault = "client";
227
+ Object.setPrototypeOf(this, _ClusterQuotaForCustomerExceededFault.prototype);
228
+ }
229
+ };
230
+ __name(_ClusterQuotaForCustomerExceededFault, "ClusterQuotaForCustomerExceededFault");
231
+ var ClusterQuotaForCustomerExceededFault = _ClusterQuotaForCustomerExceededFault;
232
+ var ClusterEndpointEncryptionType = {
233
+ NONE: "NONE",
234
+ TLS: "TLS"
235
+ };
236
+ var SSEStatus = {
237
+ DISABLED: "DISABLED",
238
+ DISABLING: "DISABLING",
239
+ ENABLED: "ENABLED",
240
+ ENABLING: "ENABLING"
241
+ };
242
+ var _InsufficientClusterCapacityFault = class _InsufficientClusterCapacityFault extends DAXServiceException {
243
+ /**
244
+ * @internal
245
+ */
246
+ constructor(opts) {
247
+ super({
248
+ name: "InsufficientClusterCapacityFault",
249
+ $fault: "client",
250
+ ...opts
251
+ });
252
+ this.name = "InsufficientClusterCapacityFault";
253
+ this.$fault = "client";
254
+ Object.setPrototypeOf(this, _InsufficientClusterCapacityFault.prototype);
255
+ }
256
+ };
257
+ __name(_InsufficientClusterCapacityFault, "InsufficientClusterCapacityFault");
258
+ var InsufficientClusterCapacityFault = _InsufficientClusterCapacityFault;
259
+ var _InvalidClusterStateFault = class _InvalidClusterStateFault extends DAXServiceException {
260
+ /**
261
+ * @internal
262
+ */
263
+ constructor(opts) {
264
+ super({
265
+ name: "InvalidClusterStateFault",
266
+ $fault: "client",
267
+ ...opts
268
+ });
269
+ this.name = "InvalidClusterStateFault";
270
+ this.$fault = "client";
271
+ Object.setPrototypeOf(this, _InvalidClusterStateFault.prototype);
272
+ }
273
+ };
274
+ __name(_InvalidClusterStateFault, "InvalidClusterStateFault");
275
+ var InvalidClusterStateFault = _InvalidClusterStateFault;
276
+ var _InvalidParameterCombinationException = class _InvalidParameterCombinationException extends DAXServiceException {
277
+ /**
278
+ * @internal
279
+ */
280
+ constructor(opts) {
281
+ super({
282
+ name: "InvalidParameterCombinationException",
283
+ $fault: "client",
284
+ ...opts
285
+ });
286
+ this.name = "InvalidParameterCombinationException";
287
+ this.$fault = "client";
288
+ Object.setPrototypeOf(this, _InvalidParameterCombinationException.prototype);
289
+ }
290
+ };
291
+ __name(_InvalidParameterCombinationException, "InvalidParameterCombinationException");
292
+ var InvalidParameterCombinationException = _InvalidParameterCombinationException;
293
+ var _InvalidParameterGroupStateFault = class _InvalidParameterGroupStateFault extends DAXServiceException {
294
+ /**
295
+ * @internal
296
+ */
297
+ constructor(opts) {
298
+ super({
299
+ name: "InvalidParameterGroupStateFault",
300
+ $fault: "client",
301
+ ...opts
302
+ });
303
+ this.name = "InvalidParameterGroupStateFault";
304
+ this.$fault = "client";
305
+ Object.setPrototypeOf(this, _InvalidParameterGroupStateFault.prototype);
306
+ }
307
+ };
308
+ __name(_InvalidParameterGroupStateFault, "InvalidParameterGroupStateFault");
309
+ var InvalidParameterGroupStateFault = _InvalidParameterGroupStateFault;
310
+ var _InvalidParameterValueException = class _InvalidParameterValueException extends DAXServiceException {
311
+ /**
312
+ * @internal
313
+ */
314
+ constructor(opts) {
315
+ super({
316
+ name: "InvalidParameterValueException",
317
+ $fault: "client",
318
+ ...opts
319
+ });
320
+ this.name = "InvalidParameterValueException";
321
+ this.$fault = "client";
322
+ Object.setPrototypeOf(this, _InvalidParameterValueException.prototype);
323
+ }
324
+ };
325
+ __name(_InvalidParameterValueException, "InvalidParameterValueException");
326
+ var InvalidParameterValueException = _InvalidParameterValueException;
327
+ var _InvalidVPCNetworkStateFault = class _InvalidVPCNetworkStateFault extends DAXServiceException {
328
+ /**
329
+ * @internal
330
+ */
331
+ constructor(opts) {
332
+ super({
333
+ name: "InvalidVPCNetworkStateFault",
334
+ $fault: "client",
335
+ ...opts
336
+ });
337
+ this.name = "InvalidVPCNetworkStateFault";
338
+ this.$fault = "client";
339
+ Object.setPrototypeOf(this, _InvalidVPCNetworkStateFault.prototype);
340
+ }
341
+ };
342
+ __name(_InvalidVPCNetworkStateFault, "InvalidVPCNetworkStateFault");
343
+ var InvalidVPCNetworkStateFault = _InvalidVPCNetworkStateFault;
344
+ var _NodeQuotaForClusterExceededFault = class _NodeQuotaForClusterExceededFault extends DAXServiceException {
345
+ /**
346
+ * @internal
347
+ */
348
+ constructor(opts) {
349
+ super({
350
+ name: "NodeQuotaForClusterExceededFault",
351
+ $fault: "client",
352
+ ...opts
353
+ });
354
+ this.name = "NodeQuotaForClusterExceededFault";
355
+ this.$fault = "client";
356
+ Object.setPrototypeOf(this, _NodeQuotaForClusterExceededFault.prototype);
357
+ }
358
+ };
359
+ __name(_NodeQuotaForClusterExceededFault, "NodeQuotaForClusterExceededFault");
360
+ var NodeQuotaForClusterExceededFault = _NodeQuotaForClusterExceededFault;
361
+ var _NodeQuotaForCustomerExceededFault = class _NodeQuotaForCustomerExceededFault extends DAXServiceException {
362
+ /**
363
+ * @internal
364
+ */
365
+ constructor(opts) {
366
+ super({
367
+ name: "NodeQuotaForCustomerExceededFault",
368
+ $fault: "client",
369
+ ...opts
370
+ });
371
+ this.name = "NodeQuotaForCustomerExceededFault";
372
+ this.$fault = "client";
373
+ Object.setPrototypeOf(this, _NodeQuotaForCustomerExceededFault.prototype);
374
+ }
375
+ };
376
+ __name(_NodeQuotaForCustomerExceededFault, "NodeQuotaForCustomerExceededFault");
377
+ var NodeQuotaForCustomerExceededFault = _NodeQuotaForCustomerExceededFault;
378
+ var _ParameterGroupNotFoundFault = class _ParameterGroupNotFoundFault extends DAXServiceException {
379
+ /**
380
+ * @internal
381
+ */
382
+ constructor(opts) {
383
+ super({
384
+ name: "ParameterGroupNotFoundFault",
385
+ $fault: "client",
386
+ ...opts
387
+ });
388
+ this.name = "ParameterGroupNotFoundFault";
389
+ this.$fault = "client";
390
+ Object.setPrototypeOf(this, _ParameterGroupNotFoundFault.prototype);
391
+ }
392
+ };
393
+ __name(_ParameterGroupNotFoundFault, "ParameterGroupNotFoundFault");
394
+ var ParameterGroupNotFoundFault = _ParameterGroupNotFoundFault;
395
+ var _ServiceLinkedRoleNotFoundFault = class _ServiceLinkedRoleNotFoundFault extends DAXServiceException {
396
+ /**
397
+ * @internal
398
+ */
399
+ constructor(opts) {
400
+ super({
401
+ name: "ServiceLinkedRoleNotFoundFault",
402
+ $fault: "client",
403
+ ...opts
404
+ });
405
+ this.name = "ServiceLinkedRoleNotFoundFault";
406
+ this.$fault = "client";
407
+ Object.setPrototypeOf(this, _ServiceLinkedRoleNotFoundFault.prototype);
408
+ }
409
+ };
410
+ __name(_ServiceLinkedRoleNotFoundFault, "ServiceLinkedRoleNotFoundFault");
411
+ var ServiceLinkedRoleNotFoundFault = _ServiceLinkedRoleNotFoundFault;
412
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends DAXServiceException {
413
+ /**
414
+ * @internal
415
+ */
416
+ constructor(opts) {
417
+ super({
418
+ name: "ServiceQuotaExceededException",
419
+ $fault: "client",
420
+ ...opts
421
+ });
422
+ this.name = "ServiceQuotaExceededException";
423
+ this.$fault = "client";
424
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
425
+ }
426
+ };
427
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
428
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
429
+ var _SubnetGroupNotFoundFault = class _SubnetGroupNotFoundFault extends DAXServiceException {
430
+ /**
431
+ * @internal
432
+ */
433
+ constructor(opts) {
434
+ super({
435
+ name: "SubnetGroupNotFoundFault",
436
+ $fault: "client",
437
+ ...opts
438
+ });
439
+ this.name = "SubnetGroupNotFoundFault";
440
+ this.$fault = "client";
441
+ Object.setPrototypeOf(this, _SubnetGroupNotFoundFault.prototype);
442
+ }
443
+ };
444
+ __name(_SubnetGroupNotFoundFault, "SubnetGroupNotFoundFault");
445
+ var SubnetGroupNotFoundFault = _SubnetGroupNotFoundFault;
446
+ var _TagQuotaPerResourceExceeded = class _TagQuotaPerResourceExceeded extends DAXServiceException {
447
+ /**
448
+ * @internal
449
+ */
450
+ constructor(opts) {
451
+ super({
452
+ name: "TagQuotaPerResourceExceeded",
453
+ $fault: "client",
454
+ ...opts
455
+ });
456
+ this.name = "TagQuotaPerResourceExceeded";
457
+ this.$fault = "client";
458
+ Object.setPrototypeOf(this, _TagQuotaPerResourceExceeded.prototype);
459
+ }
460
+ };
461
+ __name(_TagQuotaPerResourceExceeded, "TagQuotaPerResourceExceeded");
462
+ var TagQuotaPerResourceExceeded = _TagQuotaPerResourceExceeded;
463
+ var _ParameterGroupAlreadyExistsFault = class _ParameterGroupAlreadyExistsFault extends DAXServiceException {
464
+ /**
465
+ * @internal
466
+ */
467
+ constructor(opts) {
468
+ super({
469
+ name: "ParameterGroupAlreadyExistsFault",
470
+ $fault: "client",
471
+ ...opts
472
+ });
473
+ this.name = "ParameterGroupAlreadyExistsFault";
474
+ this.$fault = "client";
475
+ Object.setPrototypeOf(this, _ParameterGroupAlreadyExistsFault.prototype);
476
+ }
477
+ };
478
+ __name(_ParameterGroupAlreadyExistsFault, "ParameterGroupAlreadyExistsFault");
479
+ var ParameterGroupAlreadyExistsFault = _ParameterGroupAlreadyExistsFault;
480
+ var _ParameterGroupQuotaExceededFault = class _ParameterGroupQuotaExceededFault extends DAXServiceException {
481
+ /**
482
+ * @internal
483
+ */
484
+ constructor(opts) {
485
+ super({
486
+ name: "ParameterGroupQuotaExceededFault",
487
+ $fault: "client",
488
+ ...opts
489
+ });
490
+ this.name = "ParameterGroupQuotaExceededFault";
491
+ this.$fault = "client";
492
+ Object.setPrototypeOf(this, _ParameterGroupQuotaExceededFault.prototype);
493
+ }
494
+ };
495
+ __name(_ParameterGroupQuotaExceededFault, "ParameterGroupQuotaExceededFault");
496
+ var ParameterGroupQuotaExceededFault = _ParameterGroupQuotaExceededFault;
497
+ var _InvalidSubnet = class _InvalidSubnet extends DAXServiceException {
498
+ /**
499
+ * @internal
500
+ */
501
+ constructor(opts) {
502
+ super({
503
+ name: "InvalidSubnet",
504
+ $fault: "client",
505
+ ...opts
506
+ });
507
+ this.name = "InvalidSubnet";
508
+ this.$fault = "client";
509
+ Object.setPrototypeOf(this, _InvalidSubnet.prototype);
510
+ }
511
+ };
512
+ __name(_InvalidSubnet, "InvalidSubnet");
513
+ var InvalidSubnet = _InvalidSubnet;
514
+ var _SubnetGroupAlreadyExistsFault = class _SubnetGroupAlreadyExistsFault extends DAXServiceException {
515
+ /**
516
+ * @internal
517
+ */
518
+ constructor(opts) {
519
+ super({
520
+ name: "SubnetGroupAlreadyExistsFault",
521
+ $fault: "client",
522
+ ...opts
523
+ });
524
+ this.name = "SubnetGroupAlreadyExistsFault";
525
+ this.$fault = "client";
526
+ Object.setPrototypeOf(this, _SubnetGroupAlreadyExistsFault.prototype);
527
+ }
528
+ };
529
+ __name(_SubnetGroupAlreadyExistsFault, "SubnetGroupAlreadyExistsFault");
530
+ var SubnetGroupAlreadyExistsFault = _SubnetGroupAlreadyExistsFault;
531
+ var _SubnetGroupQuotaExceededFault = class _SubnetGroupQuotaExceededFault extends DAXServiceException {
532
+ /**
533
+ * @internal
534
+ */
535
+ constructor(opts) {
536
+ super({
537
+ name: "SubnetGroupQuotaExceededFault",
538
+ $fault: "client",
539
+ ...opts
540
+ });
541
+ this.name = "SubnetGroupQuotaExceededFault";
542
+ this.$fault = "client";
543
+ Object.setPrototypeOf(this, _SubnetGroupQuotaExceededFault.prototype);
544
+ }
545
+ };
546
+ __name(_SubnetGroupQuotaExceededFault, "SubnetGroupQuotaExceededFault");
547
+ var SubnetGroupQuotaExceededFault = _SubnetGroupQuotaExceededFault;
548
+ var _SubnetQuotaExceededFault = class _SubnetQuotaExceededFault extends DAXServiceException {
549
+ /**
550
+ * @internal
551
+ */
552
+ constructor(opts) {
553
+ super({
554
+ name: "SubnetQuotaExceededFault",
555
+ $fault: "client",
556
+ ...opts
557
+ });
558
+ this.name = "SubnetQuotaExceededFault";
559
+ this.$fault = "client";
560
+ Object.setPrototypeOf(this, _SubnetQuotaExceededFault.prototype);
561
+ }
562
+ };
563
+ __name(_SubnetQuotaExceededFault, "SubnetQuotaExceededFault");
564
+ var SubnetQuotaExceededFault = _SubnetQuotaExceededFault;
565
+ var _ClusterNotFoundFault = class _ClusterNotFoundFault extends DAXServiceException {
566
+ /**
567
+ * @internal
568
+ */
569
+ constructor(opts) {
570
+ super({
571
+ name: "ClusterNotFoundFault",
572
+ $fault: "client",
573
+ ...opts
574
+ });
575
+ this.name = "ClusterNotFoundFault";
576
+ this.$fault = "client";
577
+ Object.setPrototypeOf(this, _ClusterNotFoundFault.prototype);
578
+ }
579
+ };
580
+ __name(_ClusterNotFoundFault, "ClusterNotFoundFault");
581
+ var ClusterNotFoundFault = _ClusterNotFoundFault;
582
+ var _NodeNotFoundFault = class _NodeNotFoundFault extends DAXServiceException {
583
+ /**
584
+ * @internal
585
+ */
586
+ constructor(opts) {
587
+ super({
588
+ name: "NodeNotFoundFault",
589
+ $fault: "client",
590
+ ...opts
591
+ });
592
+ this.name = "NodeNotFoundFault";
593
+ this.$fault = "client";
594
+ Object.setPrototypeOf(this, _NodeNotFoundFault.prototype);
595
+ }
596
+ };
597
+ __name(_NodeNotFoundFault, "NodeNotFoundFault");
598
+ var NodeNotFoundFault = _NodeNotFoundFault;
599
+ var _SubnetGroupInUseFault = class _SubnetGroupInUseFault extends DAXServiceException {
600
+ /**
601
+ * @internal
602
+ */
603
+ constructor(opts) {
604
+ super({
605
+ name: "SubnetGroupInUseFault",
606
+ $fault: "client",
607
+ ...opts
608
+ });
609
+ this.name = "SubnetGroupInUseFault";
610
+ this.$fault = "client";
611
+ Object.setPrototypeOf(this, _SubnetGroupInUseFault.prototype);
612
+ }
613
+ };
614
+ __name(_SubnetGroupInUseFault, "SubnetGroupInUseFault");
615
+ var SubnetGroupInUseFault = _SubnetGroupInUseFault;
616
+ var ChangeType = {
617
+ IMMEDIATE: "IMMEDIATE",
618
+ REQUIRES_REBOOT: "REQUIRES_REBOOT"
619
+ };
620
+ var IsModifiable = {
621
+ CONDITIONAL: "CONDITIONAL",
622
+ FALSE: "FALSE",
623
+ TRUE: "TRUE"
624
+ };
625
+ var ParameterType = {
626
+ DEFAULT: "DEFAULT",
627
+ NODE_TYPE_SPECIFIC: "NODE_TYPE_SPECIFIC"
628
+ };
629
+ var SourceType = {
630
+ CLUSTER: "CLUSTER",
631
+ PARAMETER_GROUP: "PARAMETER_GROUP",
632
+ SUBNET_GROUP: "SUBNET_GROUP"
633
+ };
634
+ var _InvalidARNFault = class _InvalidARNFault extends DAXServiceException {
635
+ /**
636
+ * @internal
637
+ */
638
+ constructor(opts) {
639
+ super({
640
+ name: "InvalidARNFault",
641
+ $fault: "client",
642
+ ...opts
643
+ });
644
+ this.name = "InvalidARNFault";
645
+ this.$fault = "client";
646
+ Object.setPrototypeOf(this, _InvalidARNFault.prototype);
647
+ }
648
+ };
649
+ __name(_InvalidARNFault, "InvalidARNFault");
650
+ var InvalidARNFault = _InvalidARNFault;
651
+ var _TagNotFoundFault = class _TagNotFoundFault extends DAXServiceException {
652
+ /**
653
+ * @internal
654
+ */
655
+ constructor(opts) {
656
+ super({
657
+ name: "TagNotFoundFault",
658
+ $fault: "client",
659
+ ...opts
660
+ });
661
+ this.name = "TagNotFoundFault";
662
+ this.$fault = "client";
663
+ Object.setPrototypeOf(this, _TagNotFoundFault.prototype);
664
+ }
665
+ };
666
+ __name(_TagNotFoundFault, "TagNotFoundFault");
667
+ var TagNotFoundFault = _TagNotFoundFault;
668
+ var _SubnetInUse = class _SubnetInUse extends DAXServiceException {
669
+ /**
670
+ * @internal
671
+ */
672
+ constructor(opts) {
673
+ super({
674
+ name: "SubnetInUse",
675
+ $fault: "client",
676
+ ...opts
677
+ });
678
+ this.name = "SubnetInUse";
679
+ this.$fault = "client";
680
+ Object.setPrototypeOf(this, _SubnetInUse.prototype);
681
+ }
682
+ };
683
+ __name(_SubnetInUse, "SubnetInUse");
684
+ var SubnetInUse = _SubnetInUse;
685
+
686
+ // src/protocols/Aws_json1_1.ts
687
+ var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
688
+ const headers = sharedHeaders("CreateCluster");
689
+ let body;
690
+ body = JSON.stringify((0, import_smithy_client._json)(input));
691
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
692
+ }, "se_CreateClusterCommand");
693
+ var se_CreateParameterGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
694
+ const headers = sharedHeaders("CreateParameterGroup");
695
+ let body;
696
+ body = JSON.stringify((0, import_smithy_client._json)(input));
697
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
698
+ }, "se_CreateParameterGroupCommand");
699
+ var se_CreateSubnetGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
700
+ const headers = sharedHeaders("CreateSubnetGroup");
701
+ let body;
702
+ body = JSON.stringify((0, import_smithy_client._json)(input));
703
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
704
+ }, "se_CreateSubnetGroupCommand");
705
+ var se_DecreaseReplicationFactorCommand = /* @__PURE__ */ __name(async (input, context) => {
706
+ const headers = sharedHeaders("DecreaseReplicationFactor");
707
+ let body;
708
+ body = JSON.stringify((0, import_smithy_client._json)(input));
709
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
710
+ }, "se_DecreaseReplicationFactorCommand");
711
+ var se_DeleteClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
712
+ const headers = sharedHeaders("DeleteCluster");
713
+ let body;
714
+ body = JSON.stringify((0, import_smithy_client._json)(input));
715
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
716
+ }, "se_DeleteClusterCommand");
717
+ var se_DeleteParameterGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
718
+ const headers = sharedHeaders("DeleteParameterGroup");
719
+ let body;
720
+ body = JSON.stringify((0, import_smithy_client._json)(input));
721
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
722
+ }, "se_DeleteParameterGroupCommand");
723
+ var se_DeleteSubnetGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
724
+ const headers = sharedHeaders("DeleteSubnetGroup");
725
+ let body;
726
+ body = JSON.stringify((0, import_smithy_client._json)(input));
727
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
728
+ }, "se_DeleteSubnetGroupCommand");
729
+ var se_DescribeClustersCommand = /* @__PURE__ */ __name(async (input, context) => {
730
+ const headers = sharedHeaders("DescribeClusters");
731
+ let body;
732
+ body = JSON.stringify((0, import_smithy_client._json)(input));
733
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
734
+ }, "se_DescribeClustersCommand");
735
+ var se_DescribeDefaultParametersCommand = /* @__PURE__ */ __name(async (input, context) => {
736
+ const headers = sharedHeaders("DescribeDefaultParameters");
737
+ let body;
738
+ body = JSON.stringify((0, import_smithy_client._json)(input));
739
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
740
+ }, "se_DescribeDefaultParametersCommand");
741
+ var se_DescribeEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
742
+ const headers = sharedHeaders("DescribeEvents");
743
+ let body;
744
+ body = JSON.stringify(se_DescribeEventsRequest(input, context));
745
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
746
+ }, "se_DescribeEventsCommand");
747
+ var se_DescribeParameterGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
748
+ const headers = sharedHeaders("DescribeParameterGroups");
749
+ let body;
750
+ body = JSON.stringify((0, import_smithy_client._json)(input));
751
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
752
+ }, "se_DescribeParameterGroupsCommand");
753
+ var se_DescribeParametersCommand = /* @__PURE__ */ __name(async (input, context) => {
754
+ const headers = sharedHeaders("DescribeParameters");
755
+ let body;
756
+ body = JSON.stringify((0, import_smithy_client._json)(input));
757
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
758
+ }, "se_DescribeParametersCommand");
759
+ var se_DescribeSubnetGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
760
+ const headers = sharedHeaders("DescribeSubnetGroups");
761
+ let body;
762
+ body = JSON.stringify((0, import_smithy_client._json)(input));
763
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
764
+ }, "se_DescribeSubnetGroupsCommand");
765
+ var se_IncreaseReplicationFactorCommand = /* @__PURE__ */ __name(async (input, context) => {
766
+ const headers = sharedHeaders("IncreaseReplicationFactor");
767
+ let body;
768
+ body = JSON.stringify((0, import_smithy_client._json)(input));
769
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
770
+ }, "se_IncreaseReplicationFactorCommand");
771
+ var se_ListTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
772
+ const headers = sharedHeaders("ListTags");
773
+ let body;
774
+ body = JSON.stringify((0, import_smithy_client._json)(input));
775
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
776
+ }, "se_ListTagsCommand");
777
+ var se_RebootNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
778
+ const headers = sharedHeaders("RebootNode");
779
+ let body;
780
+ body = JSON.stringify((0, import_smithy_client._json)(input));
781
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
782
+ }, "se_RebootNodeCommand");
783
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
784
+ const headers = sharedHeaders("TagResource");
785
+ let body;
786
+ body = JSON.stringify((0, import_smithy_client._json)(input));
787
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
788
+ }, "se_TagResourceCommand");
789
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
790
+ const headers = sharedHeaders("UntagResource");
791
+ let body;
792
+ body = JSON.stringify((0, import_smithy_client._json)(input));
793
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
794
+ }, "se_UntagResourceCommand");
795
+ var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
796
+ const headers = sharedHeaders("UpdateCluster");
797
+ let body;
798
+ body = JSON.stringify((0, import_smithy_client._json)(input));
799
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
800
+ }, "se_UpdateClusterCommand");
801
+ var se_UpdateParameterGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
802
+ const headers = sharedHeaders("UpdateParameterGroup");
803
+ let body;
804
+ body = JSON.stringify((0, import_smithy_client._json)(input));
805
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
806
+ }, "se_UpdateParameterGroupCommand");
807
+ var se_UpdateSubnetGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
808
+ const headers = sharedHeaders("UpdateSubnetGroup");
809
+ let body;
810
+ body = JSON.stringify((0, import_smithy_client._json)(input));
811
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
812
+ }, "se_UpdateSubnetGroupCommand");
813
+ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
814
+ if (output.statusCode >= 300) {
815
+ return de_CreateClusterCommandError(output, context);
816
+ }
817
+ const data = await parseBody(output.body, context);
818
+ let contents = {};
819
+ contents = de_CreateClusterResponse(data, context);
820
+ const response = {
821
+ $metadata: deserializeMetadata(output),
822
+ ...contents
823
+ };
824
+ return response;
825
+ }, "de_CreateClusterCommand");
826
+ var de_CreateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
827
+ const parsedOutput = {
828
+ ...output,
829
+ body: await parseErrorBody(output.body, context)
830
+ };
831
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
832
+ switch (errorCode) {
833
+ case "ClusterAlreadyExistsFault":
834
+ case "com.amazonaws.dax#ClusterAlreadyExistsFault":
835
+ throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
836
+ case "ClusterQuotaForCustomerExceededFault":
837
+ case "com.amazonaws.dax#ClusterQuotaForCustomerExceededFault":
838
+ throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
839
+ case "InsufficientClusterCapacityFault":
840
+ case "com.amazonaws.dax#InsufficientClusterCapacityFault":
841
+ throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
842
+ case "InvalidClusterStateFault":
843
+ case "com.amazonaws.dax#InvalidClusterStateFault":
844
+ throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
845
+ case "InvalidParameterCombinationException":
846
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
847
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
848
+ case "InvalidParameterGroupStateFault":
849
+ case "com.amazonaws.dax#InvalidParameterGroupStateFault":
850
+ throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
851
+ case "InvalidParameterValueException":
852
+ case "com.amazonaws.dax#InvalidParameterValueException":
853
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
854
+ case "InvalidVPCNetworkStateFault":
855
+ case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
856
+ throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
857
+ case "NodeQuotaForClusterExceededFault":
858
+ case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
859
+ throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
860
+ case "NodeQuotaForCustomerExceededFault":
861
+ case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
862
+ throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
863
+ case "ParameterGroupNotFoundFault":
864
+ case "com.amazonaws.dax#ParameterGroupNotFoundFault":
865
+ throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
866
+ case "ServiceLinkedRoleNotFoundFault":
867
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
868
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
869
+ case "ServiceQuotaExceededException":
870
+ case "com.amazonaws.dax#ServiceQuotaExceededException":
871
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
872
+ case "SubnetGroupNotFoundFault":
873
+ case "com.amazonaws.dax#SubnetGroupNotFoundFault":
874
+ throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
875
+ case "TagQuotaPerResourceExceeded":
876
+ case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
877
+ throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
878
+ default:
879
+ const parsedBody = parsedOutput.body;
880
+ return throwDefaultError({
881
+ output,
882
+ parsedBody,
883
+ errorCode
884
+ });
885
+ }
886
+ }, "de_CreateClusterCommandError");
887
+ var de_CreateParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
888
+ if (output.statusCode >= 300) {
889
+ return de_CreateParameterGroupCommandError(output, context);
890
+ }
891
+ const data = await parseBody(output.body, context);
892
+ let contents = {};
893
+ contents = (0, import_smithy_client._json)(data);
894
+ const response = {
895
+ $metadata: deserializeMetadata(output),
896
+ ...contents
897
+ };
898
+ return response;
899
+ }, "de_CreateParameterGroupCommand");
900
+ var de_CreateParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
901
+ const parsedOutput = {
902
+ ...output,
903
+ body: await parseErrorBody(output.body, context)
904
+ };
905
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
906
+ switch (errorCode) {
907
+ case "InvalidParameterCombinationException":
908
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
909
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
910
+ case "InvalidParameterGroupStateFault":
911
+ case "com.amazonaws.dax#InvalidParameterGroupStateFault":
912
+ throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
913
+ case "InvalidParameterValueException":
914
+ case "com.amazonaws.dax#InvalidParameterValueException":
915
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
916
+ case "ParameterGroupAlreadyExistsFault":
917
+ case "com.amazonaws.dax#ParameterGroupAlreadyExistsFault":
918
+ throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
919
+ case "ParameterGroupQuotaExceededFault":
920
+ case "com.amazonaws.dax#ParameterGroupQuotaExceededFault":
921
+ throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
922
+ case "ServiceLinkedRoleNotFoundFault":
923
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
924
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
925
+ default:
926
+ const parsedBody = parsedOutput.body;
927
+ return throwDefaultError({
928
+ output,
929
+ parsedBody,
930
+ errorCode
931
+ });
932
+ }
933
+ }, "de_CreateParameterGroupCommandError");
934
+ var de_CreateSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
935
+ if (output.statusCode >= 300) {
936
+ return de_CreateSubnetGroupCommandError(output, context);
937
+ }
938
+ const data = await parseBody(output.body, context);
939
+ let contents = {};
940
+ contents = (0, import_smithy_client._json)(data);
941
+ const response = {
942
+ $metadata: deserializeMetadata(output),
943
+ ...contents
944
+ };
945
+ return response;
946
+ }, "de_CreateSubnetGroupCommand");
947
+ var de_CreateSubnetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
948
+ const parsedOutput = {
949
+ ...output,
950
+ body: await parseErrorBody(output.body, context)
951
+ };
952
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
953
+ switch (errorCode) {
954
+ case "InvalidSubnet":
955
+ case "com.amazonaws.dax#InvalidSubnet":
956
+ throw await de_InvalidSubnetRes(parsedOutput, context);
957
+ case "ServiceLinkedRoleNotFoundFault":
958
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
959
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
960
+ case "SubnetGroupAlreadyExistsFault":
961
+ case "com.amazonaws.dax#SubnetGroupAlreadyExistsFault":
962
+ throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
963
+ case "SubnetGroupQuotaExceededFault":
964
+ case "com.amazonaws.dax#SubnetGroupQuotaExceededFault":
965
+ throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
966
+ case "SubnetQuotaExceededFault":
967
+ case "com.amazonaws.dax#SubnetQuotaExceededFault":
968
+ throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
969
+ default:
970
+ const parsedBody = parsedOutput.body;
971
+ return throwDefaultError({
972
+ output,
973
+ parsedBody,
974
+ errorCode
975
+ });
976
+ }
977
+ }, "de_CreateSubnetGroupCommandError");
978
+ var de_DecreaseReplicationFactorCommand = /* @__PURE__ */ __name(async (output, context) => {
979
+ if (output.statusCode >= 300) {
980
+ return de_DecreaseReplicationFactorCommandError(output, context);
981
+ }
982
+ const data = await parseBody(output.body, context);
983
+ let contents = {};
984
+ contents = de_DecreaseReplicationFactorResponse(data, context);
985
+ const response = {
986
+ $metadata: deserializeMetadata(output),
987
+ ...contents
988
+ };
989
+ return response;
990
+ }, "de_DecreaseReplicationFactorCommand");
991
+ var de_DecreaseReplicationFactorCommandError = /* @__PURE__ */ __name(async (output, context) => {
992
+ const parsedOutput = {
993
+ ...output,
994
+ body: await parseErrorBody(output.body, context)
995
+ };
996
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
997
+ switch (errorCode) {
998
+ case "ClusterNotFoundFault":
999
+ case "com.amazonaws.dax#ClusterNotFoundFault":
1000
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1001
+ case "InvalidClusterStateFault":
1002
+ case "com.amazonaws.dax#InvalidClusterStateFault":
1003
+ throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
1004
+ case "InvalidParameterCombinationException":
1005
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1006
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1007
+ case "InvalidParameterValueException":
1008
+ case "com.amazonaws.dax#InvalidParameterValueException":
1009
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1010
+ case "NodeNotFoundFault":
1011
+ case "com.amazonaws.dax#NodeNotFoundFault":
1012
+ throw await de_NodeNotFoundFaultRes(parsedOutput, context);
1013
+ case "ServiceLinkedRoleNotFoundFault":
1014
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1015
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1016
+ default:
1017
+ const parsedBody = parsedOutput.body;
1018
+ return throwDefaultError({
1019
+ output,
1020
+ parsedBody,
1021
+ errorCode
1022
+ });
1023
+ }
1024
+ }, "de_DecreaseReplicationFactorCommandError");
1025
+ var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1026
+ if (output.statusCode >= 300) {
1027
+ return de_DeleteClusterCommandError(output, context);
1028
+ }
1029
+ const data = await parseBody(output.body, context);
1030
+ let contents = {};
1031
+ contents = de_DeleteClusterResponse(data, context);
1032
+ const response = {
1033
+ $metadata: deserializeMetadata(output),
1034
+ ...contents
1035
+ };
1036
+ return response;
1037
+ }, "de_DeleteClusterCommand");
1038
+ var de_DeleteClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
1039
+ const parsedOutput = {
1040
+ ...output,
1041
+ body: await parseErrorBody(output.body, context)
1042
+ };
1043
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1044
+ switch (errorCode) {
1045
+ case "ClusterNotFoundFault":
1046
+ case "com.amazonaws.dax#ClusterNotFoundFault":
1047
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1048
+ case "InvalidClusterStateFault":
1049
+ case "com.amazonaws.dax#InvalidClusterStateFault":
1050
+ throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
1051
+ case "InvalidParameterCombinationException":
1052
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1053
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1054
+ case "InvalidParameterValueException":
1055
+ case "com.amazonaws.dax#InvalidParameterValueException":
1056
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1057
+ case "ServiceLinkedRoleNotFoundFault":
1058
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1059
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1060
+ default:
1061
+ const parsedBody = parsedOutput.body;
1062
+ return throwDefaultError({
1063
+ output,
1064
+ parsedBody,
1065
+ errorCode
1066
+ });
1067
+ }
1068
+ }, "de_DeleteClusterCommandError");
1069
+ var de_DeleteParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1070
+ if (output.statusCode >= 300) {
1071
+ return de_DeleteParameterGroupCommandError(output, context);
1072
+ }
1073
+ const data = await parseBody(output.body, context);
1074
+ let contents = {};
1075
+ contents = (0, import_smithy_client._json)(data);
1076
+ const response = {
1077
+ $metadata: deserializeMetadata(output),
1078
+ ...contents
1079
+ };
1080
+ return response;
1081
+ }, "de_DeleteParameterGroupCommand");
1082
+ var de_DeleteParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1083
+ const parsedOutput = {
1084
+ ...output,
1085
+ body: await parseErrorBody(output.body, context)
1086
+ };
1087
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1088
+ switch (errorCode) {
1089
+ case "InvalidParameterCombinationException":
1090
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1091
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1092
+ case "InvalidParameterGroupStateFault":
1093
+ case "com.amazonaws.dax#InvalidParameterGroupStateFault":
1094
+ throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
1095
+ case "InvalidParameterValueException":
1096
+ case "com.amazonaws.dax#InvalidParameterValueException":
1097
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1098
+ case "ParameterGroupNotFoundFault":
1099
+ case "com.amazonaws.dax#ParameterGroupNotFoundFault":
1100
+ throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
1101
+ case "ServiceLinkedRoleNotFoundFault":
1102
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1103
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1104
+ default:
1105
+ const parsedBody = parsedOutput.body;
1106
+ return throwDefaultError({
1107
+ output,
1108
+ parsedBody,
1109
+ errorCode
1110
+ });
1111
+ }
1112
+ }, "de_DeleteParameterGroupCommandError");
1113
+ var de_DeleteSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1114
+ if (output.statusCode >= 300) {
1115
+ return de_DeleteSubnetGroupCommandError(output, context);
1116
+ }
1117
+ const data = await parseBody(output.body, context);
1118
+ let contents = {};
1119
+ contents = (0, import_smithy_client._json)(data);
1120
+ const response = {
1121
+ $metadata: deserializeMetadata(output),
1122
+ ...contents
1123
+ };
1124
+ return response;
1125
+ }, "de_DeleteSubnetGroupCommand");
1126
+ var de_DeleteSubnetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1127
+ const parsedOutput = {
1128
+ ...output,
1129
+ body: await parseErrorBody(output.body, context)
1130
+ };
1131
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1132
+ switch (errorCode) {
1133
+ case "ServiceLinkedRoleNotFoundFault":
1134
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1135
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1136
+ case "SubnetGroupInUseFault":
1137
+ case "com.amazonaws.dax#SubnetGroupInUseFault":
1138
+ throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
1139
+ case "SubnetGroupNotFoundFault":
1140
+ case "com.amazonaws.dax#SubnetGroupNotFoundFault":
1141
+ throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
1142
+ default:
1143
+ const parsedBody = parsedOutput.body;
1144
+ return throwDefaultError({
1145
+ output,
1146
+ parsedBody,
1147
+ errorCode
1148
+ });
1149
+ }
1150
+ }, "de_DeleteSubnetGroupCommandError");
1151
+ var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
1152
+ if (output.statusCode >= 300) {
1153
+ return de_DescribeClustersCommandError(output, context);
1154
+ }
1155
+ const data = await parseBody(output.body, context);
1156
+ let contents = {};
1157
+ contents = de_DescribeClustersResponse(data, context);
1158
+ const response = {
1159
+ $metadata: deserializeMetadata(output),
1160
+ ...contents
1161
+ };
1162
+ return response;
1163
+ }, "de_DescribeClustersCommand");
1164
+ var de_DescribeClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1165
+ const parsedOutput = {
1166
+ ...output,
1167
+ body: await parseErrorBody(output.body, context)
1168
+ };
1169
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1170
+ switch (errorCode) {
1171
+ case "ClusterNotFoundFault":
1172
+ case "com.amazonaws.dax#ClusterNotFoundFault":
1173
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1174
+ case "InvalidParameterCombinationException":
1175
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1176
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1177
+ case "InvalidParameterValueException":
1178
+ case "com.amazonaws.dax#InvalidParameterValueException":
1179
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1180
+ case "ServiceLinkedRoleNotFoundFault":
1181
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1182
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1183
+ default:
1184
+ const parsedBody = parsedOutput.body;
1185
+ return throwDefaultError({
1186
+ output,
1187
+ parsedBody,
1188
+ errorCode
1189
+ });
1190
+ }
1191
+ }, "de_DescribeClustersCommandError");
1192
+ var de_DescribeDefaultParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
1193
+ if (output.statusCode >= 300) {
1194
+ return de_DescribeDefaultParametersCommandError(output, context);
1195
+ }
1196
+ const data = await parseBody(output.body, context);
1197
+ let contents = {};
1198
+ contents = (0, import_smithy_client._json)(data);
1199
+ const response = {
1200
+ $metadata: deserializeMetadata(output),
1201
+ ...contents
1202
+ };
1203
+ return response;
1204
+ }, "de_DescribeDefaultParametersCommand");
1205
+ var de_DescribeDefaultParametersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1206
+ const parsedOutput = {
1207
+ ...output,
1208
+ body: await parseErrorBody(output.body, context)
1209
+ };
1210
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1211
+ switch (errorCode) {
1212
+ case "InvalidParameterCombinationException":
1213
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1214
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1215
+ case "InvalidParameterValueException":
1216
+ case "com.amazonaws.dax#InvalidParameterValueException":
1217
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1218
+ case "ServiceLinkedRoleNotFoundFault":
1219
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1220
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1221
+ default:
1222
+ const parsedBody = parsedOutput.body;
1223
+ return throwDefaultError({
1224
+ output,
1225
+ parsedBody,
1226
+ errorCode
1227
+ });
1228
+ }
1229
+ }, "de_DescribeDefaultParametersCommandError");
1230
+ var de_DescribeEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
1231
+ if (output.statusCode >= 300) {
1232
+ return de_DescribeEventsCommandError(output, context);
1233
+ }
1234
+ const data = await parseBody(output.body, context);
1235
+ let contents = {};
1236
+ contents = de_DescribeEventsResponse(data, context);
1237
+ const response = {
1238
+ $metadata: deserializeMetadata(output),
1239
+ ...contents
1240
+ };
1241
+ return response;
1242
+ }, "de_DescribeEventsCommand");
1243
+ var de_DescribeEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1244
+ const parsedOutput = {
1245
+ ...output,
1246
+ body: await parseErrorBody(output.body, context)
1247
+ };
1248
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1249
+ switch (errorCode) {
1250
+ case "InvalidParameterCombinationException":
1251
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1252
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1253
+ case "InvalidParameterValueException":
1254
+ case "com.amazonaws.dax#InvalidParameterValueException":
1255
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1256
+ case "ServiceLinkedRoleNotFoundFault":
1257
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1258
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1259
+ default:
1260
+ const parsedBody = parsedOutput.body;
1261
+ return throwDefaultError({
1262
+ output,
1263
+ parsedBody,
1264
+ errorCode
1265
+ });
1266
+ }
1267
+ }, "de_DescribeEventsCommandError");
1268
+ var de_DescribeParameterGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1269
+ if (output.statusCode >= 300) {
1270
+ return de_DescribeParameterGroupsCommandError(output, context);
1271
+ }
1272
+ const data = await parseBody(output.body, context);
1273
+ let contents = {};
1274
+ contents = (0, import_smithy_client._json)(data);
1275
+ const response = {
1276
+ $metadata: deserializeMetadata(output),
1277
+ ...contents
1278
+ };
1279
+ return response;
1280
+ }, "de_DescribeParameterGroupsCommand");
1281
+ var de_DescribeParameterGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1282
+ const parsedOutput = {
1283
+ ...output,
1284
+ body: await parseErrorBody(output.body, context)
1285
+ };
1286
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1287
+ switch (errorCode) {
1288
+ case "InvalidParameterCombinationException":
1289
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1290
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1291
+ case "InvalidParameterValueException":
1292
+ case "com.amazonaws.dax#InvalidParameterValueException":
1293
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1294
+ case "ParameterGroupNotFoundFault":
1295
+ case "com.amazonaws.dax#ParameterGroupNotFoundFault":
1296
+ throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
1297
+ case "ServiceLinkedRoleNotFoundFault":
1298
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1299
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1300
+ default:
1301
+ const parsedBody = parsedOutput.body;
1302
+ return throwDefaultError({
1303
+ output,
1304
+ parsedBody,
1305
+ errorCode
1306
+ });
1307
+ }
1308
+ }, "de_DescribeParameterGroupsCommandError");
1309
+ var de_DescribeParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
1310
+ if (output.statusCode >= 300) {
1311
+ return de_DescribeParametersCommandError(output, context);
1312
+ }
1313
+ const data = await parseBody(output.body, context);
1314
+ let contents = {};
1315
+ contents = (0, import_smithy_client._json)(data);
1316
+ const response = {
1317
+ $metadata: deserializeMetadata(output),
1318
+ ...contents
1319
+ };
1320
+ return response;
1321
+ }, "de_DescribeParametersCommand");
1322
+ var de_DescribeParametersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1323
+ const parsedOutput = {
1324
+ ...output,
1325
+ body: await parseErrorBody(output.body, context)
1326
+ };
1327
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1328
+ switch (errorCode) {
1329
+ case "InvalidParameterCombinationException":
1330
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1331
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1332
+ case "InvalidParameterValueException":
1333
+ case "com.amazonaws.dax#InvalidParameterValueException":
1334
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1335
+ case "ParameterGroupNotFoundFault":
1336
+ case "com.amazonaws.dax#ParameterGroupNotFoundFault":
1337
+ throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
1338
+ case "ServiceLinkedRoleNotFoundFault":
1339
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1340
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1341
+ default:
1342
+ const parsedBody = parsedOutput.body;
1343
+ return throwDefaultError({
1344
+ output,
1345
+ parsedBody,
1346
+ errorCode
1347
+ });
1348
+ }
1349
+ }, "de_DescribeParametersCommandError");
1350
+ var de_DescribeSubnetGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1351
+ if (output.statusCode >= 300) {
1352
+ return de_DescribeSubnetGroupsCommandError(output, context);
1353
+ }
1354
+ const data = await parseBody(output.body, context);
1355
+ let contents = {};
1356
+ contents = (0, import_smithy_client._json)(data);
1357
+ const response = {
1358
+ $metadata: deserializeMetadata(output),
1359
+ ...contents
1360
+ };
1361
+ return response;
1362
+ }, "de_DescribeSubnetGroupsCommand");
1363
+ var de_DescribeSubnetGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1364
+ const parsedOutput = {
1365
+ ...output,
1366
+ body: await parseErrorBody(output.body, context)
1367
+ };
1368
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1369
+ switch (errorCode) {
1370
+ case "ServiceLinkedRoleNotFoundFault":
1371
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1372
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1373
+ case "SubnetGroupNotFoundFault":
1374
+ case "com.amazonaws.dax#SubnetGroupNotFoundFault":
1375
+ throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
1376
+ default:
1377
+ const parsedBody = parsedOutput.body;
1378
+ return throwDefaultError({
1379
+ output,
1380
+ parsedBody,
1381
+ errorCode
1382
+ });
1383
+ }
1384
+ }, "de_DescribeSubnetGroupsCommandError");
1385
+ var de_IncreaseReplicationFactorCommand = /* @__PURE__ */ __name(async (output, context) => {
1386
+ if (output.statusCode >= 300) {
1387
+ return de_IncreaseReplicationFactorCommandError(output, context);
1388
+ }
1389
+ const data = await parseBody(output.body, context);
1390
+ let contents = {};
1391
+ contents = de_IncreaseReplicationFactorResponse(data, context);
1392
+ const response = {
1393
+ $metadata: deserializeMetadata(output),
1394
+ ...contents
1395
+ };
1396
+ return response;
1397
+ }, "de_IncreaseReplicationFactorCommand");
1398
+ var de_IncreaseReplicationFactorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1399
+ const parsedOutput = {
1400
+ ...output,
1401
+ body: await parseErrorBody(output.body, context)
1402
+ };
1403
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1404
+ switch (errorCode) {
1405
+ case "ClusterNotFoundFault":
1406
+ case "com.amazonaws.dax#ClusterNotFoundFault":
1407
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1408
+ case "InsufficientClusterCapacityFault":
1409
+ case "com.amazonaws.dax#InsufficientClusterCapacityFault":
1410
+ throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
1411
+ case "InvalidClusterStateFault":
1412
+ case "com.amazonaws.dax#InvalidClusterStateFault":
1413
+ throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
1414
+ case "InvalidParameterCombinationException":
1415
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1416
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1417
+ case "InvalidParameterValueException":
1418
+ case "com.amazonaws.dax#InvalidParameterValueException":
1419
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1420
+ case "InvalidVPCNetworkStateFault":
1421
+ case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
1422
+ throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
1423
+ case "NodeQuotaForClusterExceededFault":
1424
+ case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
1425
+ throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
1426
+ case "NodeQuotaForCustomerExceededFault":
1427
+ case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
1428
+ throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
1429
+ case "ServiceLinkedRoleNotFoundFault":
1430
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1431
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1432
+ default:
1433
+ const parsedBody = parsedOutput.body;
1434
+ return throwDefaultError({
1435
+ output,
1436
+ parsedBody,
1437
+ errorCode
1438
+ });
1439
+ }
1440
+ }, "de_IncreaseReplicationFactorCommandError");
1441
+ var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
1442
+ if (output.statusCode >= 300) {
1443
+ return de_ListTagsCommandError(output, context);
1444
+ }
1445
+ const data = await parseBody(output.body, context);
1446
+ let contents = {};
1447
+ contents = (0, import_smithy_client._json)(data);
1448
+ const response = {
1449
+ $metadata: deserializeMetadata(output),
1450
+ ...contents
1451
+ };
1452
+ return response;
1453
+ }, "de_ListTagsCommand");
1454
+ var de_ListTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1455
+ const parsedOutput = {
1456
+ ...output,
1457
+ body: await parseErrorBody(output.body, context)
1458
+ };
1459
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1460
+ switch (errorCode) {
1461
+ case "ClusterNotFoundFault":
1462
+ case "com.amazonaws.dax#ClusterNotFoundFault":
1463
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1464
+ case "InvalidARNFault":
1465
+ case "com.amazonaws.dax#InvalidARNFault":
1466
+ throw await de_InvalidARNFaultRes(parsedOutput, context);
1467
+ case "InvalidClusterStateFault":
1468
+ case "com.amazonaws.dax#InvalidClusterStateFault":
1469
+ throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
1470
+ case "InvalidParameterCombinationException":
1471
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1472
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1473
+ case "InvalidParameterValueException":
1474
+ case "com.amazonaws.dax#InvalidParameterValueException":
1475
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1476
+ case "ServiceLinkedRoleNotFoundFault":
1477
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1478
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1479
+ default:
1480
+ const parsedBody = parsedOutput.body;
1481
+ return throwDefaultError({
1482
+ output,
1483
+ parsedBody,
1484
+ errorCode
1485
+ });
1486
+ }
1487
+ }, "de_ListTagsCommandError");
1488
+ var de_RebootNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1489
+ if (output.statusCode >= 300) {
1490
+ return de_RebootNodeCommandError(output, context);
1491
+ }
1492
+ const data = await parseBody(output.body, context);
1493
+ let contents = {};
1494
+ contents = de_RebootNodeResponse(data, context);
1495
+ const response = {
1496
+ $metadata: deserializeMetadata(output),
1497
+ ...contents
1498
+ };
1499
+ return response;
1500
+ }, "de_RebootNodeCommand");
1501
+ var de_RebootNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1502
+ const parsedOutput = {
1503
+ ...output,
1504
+ body: await parseErrorBody(output.body, context)
1505
+ };
1506
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1507
+ switch (errorCode) {
1508
+ case "ClusterNotFoundFault":
1509
+ case "com.amazonaws.dax#ClusterNotFoundFault":
1510
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1511
+ case "InvalidClusterStateFault":
1512
+ case "com.amazonaws.dax#InvalidClusterStateFault":
1513
+ throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
1514
+ case "InvalidParameterCombinationException":
1515
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1516
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1517
+ case "InvalidParameterValueException":
1518
+ case "com.amazonaws.dax#InvalidParameterValueException":
1519
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1520
+ case "NodeNotFoundFault":
1521
+ case "com.amazonaws.dax#NodeNotFoundFault":
1522
+ throw await de_NodeNotFoundFaultRes(parsedOutput, context);
1523
+ case "ServiceLinkedRoleNotFoundFault":
1524
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1525
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1526
+ default:
1527
+ const parsedBody = parsedOutput.body;
1528
+ return throwDefaultError({
1529
+ output,
1530
+ parsedBody,
1531
+ errorCode
1532
+ });
1533
+ }
1534
+ }, "de_RebootNodeCommandError");
1535
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1536
+ if (output.statusCode >= 300) {
1537
+ return de_TagResourceCommandError(output, context);
1538
+ }
1539
+ const data = await parseBody(output.body, context);
1540
+ let contents = {};
1541
+ contents = (0, import_smithy_client._json)(data);
1542
+ const response = {
1543
+ $metadata: deserializeMetadata(output),
1544
+ ...contents
1545
+ };
1546
+ return response;
1547
+ }, "de_TagResourceCommand");
1548
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1549
+ const parsedOutput = {
1550
+ ...output,
1551
+ body: await parseErrorBody(output.body, context)
1552
+ };
1553
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1554
+ switch (errorCode) {
1555
+ case "ClusterNotFoundFault":
1556
+ case "com.amazonaws.dax#ClusterNotFoundFault":
1557
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1558
+ case "InvalidARNFault":
1559
+ case "com.amazonaws.dax#InvalidARNFault":
1560
+ throw await de_InvalidARNFaultRes(parsedOutput, context);
1561
+ case "InvalidClusterStateFault":
1562
+ case "com.amazonaws.dax#InvalidClusterStateFault":
1563
+ throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
1564
+ case "InvalidParameterCombinationException":
1565
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1566
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1567
+ case "InvalidParameterValueException":
1568
+ case "com.amazonaws.dax#InvalidParameterValueException":
1569
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1570
+ case "ServiceLinkedRoleNotFoundFault":
1571
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1572
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1573
+ case "TagQuotaPerResourceExceeded":
1574
+ case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
1575
+ throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1576
+ default:
1577
+ const parsedBody = parsedOutput.body;
1578
+ return throwDefaultError({
1579
+ output,
1580
+ parsedBody,
1581
+ errorCode
1582
+ });
1583
+ }
1584
+ }, "de_TagResourceCommandError");
1585
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1586
+ if (output.statusCode >= 300) {
1587
+ return de_UntagResourceCommandError(output, context);
1588
+ }
1589
+ const data = await parseBody(output.body, context);
1590
+ let contents = {};
1591
+ contents = (0, import_smithy_client._json)(data);
1592
+ const response = {
1593
+ $metadata: deserializeMetadata(output),
1594
+ ...contents
1595
+ };
1596
+ return response;
1597
+ }, "de_UntagResourceCommand");
1598
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1599
+ const parsedOutput = {
1600
+ ...output,
1601
+ body: await parseErrorBody(output.body, context)
1602
+ };
1603
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1604
+ switch (errorCode) {
1605
+ case "ClusterNotFoundFault":
1606
+ case "com.amazonaws.dax#ClusterNotFoundFault":
1607
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1608
+ case "InvalidARNFault":
1609
+ case "com.amazonaws.dax#InvalidARNFault":
1610
+ throw await de_InvalidARNFaultRes(parsedOutput, context);
1611
+ case "InvalidClusterStateFault":
1612
+ case "com.amazonaws.dax#InvalidClusterStateFault":
1613
+ throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
1614
+ case "InvalidParameterCombinationException":
1615
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1616
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1617
+ case "InvalidParameterValueException":
1618
+ case "com.amazonaws.dax#InvalidParameterValueException":
1619
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1620
+ case "ServiceLinkedRoleNotFoundFault":
1621
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1622
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1623
+ case "TagNotFoundFault":
1624
+ case "com.amazonaws.dax#TagNotFoundFault":
1625
+ throw await de_TagNotFoundFaultRes(parsedOutput, context);
1626
+ default:
1627
+ const parsedBody = parsedOutput.body;
1628
+ return throwDefaultError({
1629
+ output,
1630
+ parsedBody,
1631
+ errorCode
1632
+ });
1633
+ }
1634
+ }, "de_UntagResourceCommandError");
1635
+ var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1636
+ if (output.statusCode >= 300) {
1637
+ return de_UpdateClusterCommandError(output, context);
1638
+ }
1639
+ const data = await parseBody(output.body, context);
1640
+ let contents = {};
1641
+ contents = de_UpdateClusterResponse(data, context);
1642
+ const response = {
1643
+ $metadata: deserializeMetadata(output),
1644
+ ...contents
1645
+ };
1646
+ return response;
1647
+ }, "de_UpdateClusterCommand");
1648
+ var de_UpdateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
1649
+ const parsedOutput = {
1650
+ ...output,
1651
+ body: await parseErrorBody(output.body, context)
1652
+ };
1653
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1654
+ switch (errorCode) {
1655
+ case "ClusterNotFoundFault":
1656
+ case "com.amazonaws.dax#ClusterNotFoundFault":
1657
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1658
+ case "InvalidClusterStateFault":
1659
+ case "com.amazonaws.dax#InvalidClusterStateFault":
1660
+ throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
1661
+ case "InvalidParameterCombinationException":
1662
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1663
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1664
+ case "InvalidParameterGroupStateFault":
1665
+ case "com.amazonaws.dax#InvalidParameterGroupStateFault":
1666
+ throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
1667
+ case "InvalidParameterValueException":
1668
+ case "com.amazonaws.dax#InvalidParameterValueException":
1669
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1670
+ case "ParameterGroupNotFoundFault":
1671
+ case "com.amazonaws.dax#ParameterGroupNotFoundFault":
1672
+ throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
1673
+ case "ServiceLinkedRoleNotFoundFault":
1674
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1675
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1676
+ default:
1677
+ const parsedBody = parsedOutput.body;
1678
+ return throwDefaultError({
1679
+ output,
1680
+ parsedBody,
1681
+ errorCode
1682
+ });
1683
+ }
1684
+ }, "de_UpdateClusterCommandError");
1685
+ var de_UpdateParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1686
+ if (output.statusCode >= 300) {
1687
+ return de_UpdateParameterGroupCommandError(output, context);
1688
+ }
1689
+ const data = await parseBody(output.body, context);
1690
+ let contents = {};
1691
+ contents = (0, import_smithy_client._json)(data);
1692
+ const response = {
1693
+ $metadata: deserializeMetadata(output),
1694
+ ...contents
1695
+ };
1696
+ return response;
1697
+ }, "de_UpdateParameterGroupCommand");
1698
+ var de_UpdateParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1699
+ const parsedOutput = {
1700
+ ...output,
1701
+ body: await parseErrorBody(output.body, context)
1702
+ };
1703
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1704
+ switch (errorCode) {
1705
+ case "InvalidParameterCombinationException":
1706
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
1707
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1708
+ case "InvalidParameterGroupStateFault":
1709
+ case "com.amazonaws.dax#InvalidParameterGroupStateFault":
1710
+ throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
1711
+ case "InvalidParameterValueException":
1712
+ case "com.amazonaws.dax#InvalidParameterValueException":
1713
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1714
+ case "ParameterGroupNotFoundFault":
1715
+ case "com.amazonaws.dax#ParameterGroupNotFoundFault":
1716
+ throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
1717
+ case "ServiceLinkedRoleNotFoundFault":
1718
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1719
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1720
+ default:
1721
+ const parsedBody = parsedOutput.body;
1722
+ return throwDefaultError({
1723
+ output,
1724
+ parsedBody,
1725
+ errorCode
1726
+ });
1727
+ }
1728
+ }, "de_UpdateParameterGroupCommandError");
1729
+ var de_UpdateSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1730
+ if (output.statusCode >= 300) {
1731
+ return de_UpdateSubnetGroupCommandError(output, context);
1732
+ }
1733
+ const data = await parseBody(output.body, context);
1734
+ let contents = {};
1735
+ contents = (0, import_smithy_client._json)(data);
1736
+ const response = {
1737
+ $metadata: deserializeMetadata(output),
1738
+ ...contents
1739
+ };
1740
+ return response;
1741
+ }, "de_UpdateSubnetGroupCommand");
1742
+ var de_UpdateSubnetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1743
+ const parsedOutput = {
1744
+ ...output,
1745
+ body: await parseErrorBody(output.body, context)
1746
+ };
1747
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1748
+ switch (errorCode) {
1749
+ case "InvalidSubnet":
1750
+ case "com.amazonaws.dax#InvalidSubnet":
1751
+ throw await de_InvalidSubnetRes(parsedOutput, context);
1752
+ case "ServiceLinkedRoleNotFoundFault":
1753
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1754
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1755
+ case "SubnetGroupNotFoundFault":
1756
+ case "com.amazonaws.dax#SubnetGroupNotFoundFault":
1757
+ throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
1758
+ case "SubnetInUse":
1759
+ case "com.amazonaws.dax#SubnetInUse":
1760
+ throw await de_SubnetInUseRes(parsedOutput, context);
1761
+ case "SubnetQuotaExceededFault":
1762
+ case "com.amazonaws.dax#SubnetQuotaExceededFault":
1763
+ throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
1764
+ default:
1765
+ const parsedBody = parsedOutput.body;
1766
+ return throwDefaultError({
1767
+ output,
1768
+ parsedBody,
1769
+ errorCode
1770
+ });
1771
+ }
1772
+ }, "de_UpdateSubnetGroupCommandError");
1773
+ var de_ClusterAlreadyExistsFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1774
+ const body = parsedOutput.body;
1775
+ const deserialized = (0, import_smithy_client._json)(body);
1776
+ const exception = new ClusterAlreadyExistsFault({
1777
+ $metadata: deserializeMetadata(parsedOutput),
1778
+ ...deserialized
1779
+ });
1780
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1781
+ }, "de_ClusterAlreadyExistsFaultRes");
1782
+ var de_ClusterNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1783
+ const body = parsedOutput.body;
1784
+ const deserialized = (0, import_smithy_client._json)(body);
1785
+ const exception = new ClusterNotFoundFault({
1786
+ $metadata: deserializeMetadata(parsedOutput),
1787
+ ...deserialized
1788
+ });
1789
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1790
+ }, "de_ClusterNotFoundFaultRes");
1791
+ var de_ClusterQuotaForCustomerExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1792
+ const body = parsedOutput.body;
1793
+ const deserialized = (0, import_smithy_client._json)(body);
1794
+ const exception = new ClusterQuotaForCustomerExceededFault({
1795
+ $metadata: deserializeMetadata(parsedOutput),
1796
+ ...deserialized
1797
+ });
1798
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1799
+ }, "de_ClusterQuotaForCustomerExceededFaultRes");
1800
+ var de_InsufficientClusterCapacityFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1801
+ const body = parsedOutput.body;
1802
+ const deserialized = (0, import_smithy_client._json)(body);
1803
+ const exception = new InsufficientClusterCapacityFault({
1804
+ $metadata: deserializeMetadata(parsedOutput),
1805
+ ...deserialized
1806
+ });
1807
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1808
+ }, "de_InsufficientClusterCapacityFaultRes");
1809
+ var de_InvalidARNFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1810
+ const body = parsedOutput.body;
1811
+ const deserialized = (0, import_smithy_client._json)(body);
1812
+ const exception = new InvalidARNFault({
1813
+ $metadata: deserializeMetadata(parsedOutput),
1814
+ ...deserialized
1815
+ });
1816
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1817
+ }, "de_InvalidARNFaultRes");
1818
+ var de_InvalidClusterStateFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1819
+ const body = parsedOutput.body;
1820
+ const deserialized = (0, import_smithy_client._json)(body);
1821
+ const exception = new InvalidClusterStateFault({
1822
+ $metadata: deserializeMetadata(parsedOutput),
1823
+ ...deserialized
1824
+ });
1825
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1826
+ }, "de_InvalidClusterStateFaultRes");
1827
+ var de_InvalidParameterCombinationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1828
+ const body = parsedOutput.body;
1829
+ const deserialized = (0, import_smithy_client._json)(body);
1830
+ const exception = new InvalidParameterCombinationException({
1831
+ $metadata: deserializeMetadata(parsedOutput),
1832
+ ...deserialized
1833
+ });
1834
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1835
+ }, "de_InvalidParameterCombinationExceptionRes");
1836
+ var de_InvalidParameterGroupStateFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1837
+ const body = parsedOutput.body;
1838
+ const deserialized = (0, import_smithy_client._json)(body);
1839
+ const exception = new InvalidParameterGroupStateFault({
1840
+ $metadata: deserializeMetadata(parsedOutput),
1841
+ ...deserialized
1842
+ });
1843
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1844
+ }, "de_InvalidParameterGroupStateFaultRes");
1845
+ var de_InvalidParameterValueExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1846
+ const body = parsedOutput.body;
1847
+ const deserialized = (0, import_smithy_client._json)(body);
1848
+ const exception = new InvalidParameterValueException({
1849
+ $metadata: deserializeMetadata(parsedOutput),
1850
+ ...deserialized
1851
+ });
1852
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1853
+ }, "de_InvalidParameterValueExceptionRes");
1854
+ var de_InvalidSubnetRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1855
+ const body = parsedOutput.body;
1856
+ const deserialized = (0, import_smithy_client._json)(body);
1857
+ const exception = new InvalidSubnet({
1858
+ $metadata: deserializeMetadata(parsedOutput),
1859
+ ...deserialized
1860
+ });
1861
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1862
+ }, "de_InvalidSubnetRes");
1863
+ var de_InvalidVPCNetworkStateFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1864
+ const body = parsedOutput.body;
1865
+ const deserialized = (0, import_smithy_client._json)(body);
1866
+ const exception = new InvalidVPCNetworkStateFault({
1867
+ $metadata: deserializeMetadata(parsedOutput),
1868
+ ...deserialized
1869
+ });
1870
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1871
+ }, "de_InvalidVPCNetworkStateFaultRes");
1872
+ var de_NodeNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1873
+ const body = parsedOutput.body;
1874
+ const deserialized = (0, import_smithy_client._json)(body);
1875
+ const exception = new NodeNotFoundFault({
1876
+ $metadata: deserializeMetadata(parsedOutput),
1877
+ ...deserialized
1878
+ });
1879
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1880
+ }, "de_NodeNotFoundFaultRes");
1881
+ var de_NodeQuotaForClusterExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1882
+ const body = parsedOutput.body;
1883
+ const deserialized = (0, import_smithy_client._json)(body);
1884
+ const exception = new NodeQuotaForClusterExceededFault({
1885
+ $metadata: deserializeMetadata(parsedOutput),
1886
+ ...deserialized
1887
+ });
1888
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1889
+ }, "de_NodeQuotaForClusterExceededFaultRes");
1890
+ var de_NodeQuotaForCustomerExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1891
+ const body = parsedOutput.body;
1892
+ const deserialized = (0, import_smithy_client._json)(body);
1893
+ const exception = new NodeQuotaForCustomerExceededFault({
1894
+ $metadata: deserializeMetadata(parsedOutput),
1895
+ ...deserialized
1896
+ });
1897
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1898
+ }, "de_NodeQuotaForCustomerExceededFaultRes");
1899
+ var de_ParameterGroupAlreadyExistsFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1900
+ const body = parsedOutput.body;
1901
+ const deserialized = (0, import_smithy_client._json)(body);
1902
+ const exception = new ParameterGroupAlreadyExistsFault({
1903
+ $metadata: deserializeMetadata(parsedOutput),
1904
+ ...deserialized
1905
+ });
1906
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1907
+ }, "de_ParameterGroupAlreadyExistsFaultRes");
1908
+ var de_ParameterGroupNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1909
+ const body = parsedOutput.body;
1910
+ const deserialized = (0, import_smithy_client._json)(body);
1911
+ const exception = new ParameterGroupNotFoundFault({
1912
+ $metadata: deserializeMetadata(parsedOutput),
1913
+ ...deserialized
1914
+ });
1915
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1916
+ }, "de_ParameterGroupNotFoundFaultRes");
1917
+ var de_ParameterGroupQuotaExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1918
+ const body = parsedOutput.body;
1919
+ const deserialized = (0, import_smithy_client._json)(body);
1920
+ const exception = new ParameterGroupQuotaExceededFault({
1921
+ $metadata: deserializeMetadata(parsedOutput),
1922
+ ...deserialized
1923
+ });
1924
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1925
+ }, "de_ParameterGroupQuotaExceededFaultRes");
1926
+ var de_ServiceLinkedRoleNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1927
+ const body = parsedOutput.body;
1928
+ const deserialized = (0, import_smithy_client._json)(body);
1929
+ const exception = new ServiceLinkedRoleNotFoundFault({
1930
+ $metadata: deserializeMetadata(parsedOutput),
1931
+ ...deserialized
1932
+ });
1933
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1934
+ }, "de_ServiceLinkedRoleNotFoundFaultRes");
1935
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1936
+ const body = parsedOutput.body;
1937
+ const deserialized = (0, import_smithy_client._json)(body);
1938
+ const exception = new ServiceQuotaExceededException({
1939
+ $metadata: deserializeMetadata(parsedOutput),
1940
+ ...deserialized
1941
+ });
1942
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1943
+ }, "de_ServiceQuotaExceededExceptionRes");
1944
+ var de_SubnetGroupAlreadyExistsFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1945
+ const body = parsedOutput.body;
1946
+ const deserialized = (0, import_smithy_client._json)(body);
1947
+ const exception = new SubnetGroupAlreadyExistsFault({
1948
+ $metadata: deserializeMetadata(parsedOutput),
1949
+ ...deserialized
1950
+ });
1951
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1952
+ }, "de_SubnetGroupAlreadyExistsFaultRes");
1953
+ var de_SubnetGroupInUseFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1954
+ const body = parsedOutput.body;
1955
+ const deserialized = (0, import_smithy_client._json)(body);
1956
+ const exception = new SubnetGroupInUseFault({
1957
+ $metadata: deserializeMetadata(parsedOutput),
1958
+ ...deserialized
1959
+ });
1960
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1961
+ }, "de_SubnetGroupInUseFaultRes");
1962
+ var de_SubnetGroupNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1963
+ const body = parsedOutput.body;
1964
+ const deserialized = (0, import_smithy_client._json)(body);
1965
+ const exception = new SubnetGroupNotFoundFault({
1966
+ $metadata: deserializeMetadata(parsedOutput),
1967
+ ...deserialized
1968
+ });
1969
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1970
+ }, "de_SubnetGroupNotFoundFaultRes");
1971
+ var de_SubnetGroupQuotaExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1972
+ const body = parsedOutput.body;
1973
+ const deserialized = (0, import_smithy_client._json)(body);
1974
+ const exception = new SubnetGroupQuotaExceededFault({
1975
+ $metadata: deserializeMetadata(parsedOutput),
1976
+ ...deserialized
1977
+ });
1978
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1979
+ }, "de_SubnetGroupQuotaExceededFaultRes");
1980
+ var de_SubnetInUseRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1981
+ const body = parsedOutput.body;
1982
+ const deserialized = (0, import_smithy_client._json)(body);
1983
+ const exception = new SubnetInUse({
1984
+ $metadata: deserializeMetadata(parsedOutput),
1985
+ ...deserialized
1986
+ });
1987
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1988
+ }, "de_SubnetInUseRes");
1989
+ var de_SubnetQuotaExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1990
+ const body = parsedOutput.body;
1991
+ const deserialized = (0, import_smithy_client._json)(body);
1992
+ const exception = new SubnetQuotaExceededFault({
1993
+ $metadata: deserializeMetadata(parsedOutput),
1994
+ ...deserialized
1995
+ });
1996
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1997
+ }, "de_SubnetQuotaExceededFaultRes");
1998
+ var de_TagNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1999
+ const body = parsedOutput.body;
2000
+ const deserialized = (0, import_smithy_client._json)(body);
2001
+ const exception = new TagNotFoundFault({
2002
+ $metadata: deserializeMetadata(parsedOutput),
2003
+ ...deserialized
2004
+ });
2005
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2006
+ }, "de_TagNotFoundFaultRes");
2007
+ var de_TagQuotaPerResourceExceededRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2008
+ const body = parsedOutput.body;
2009
+ const deserialized = (0, import_smithy_client._json)(body);
2010
+ const exception = new TagQuotaPerResourceExceeded({
2011
+ $metadata: deserializeMetadata(parsedOutput),
2012
+ ...deserialized
2013
+ });
2014
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2015
+ }, "de_TagQuotaPerResourceExceededRes");
2016
+ var se_DescribeEventsRequest = /* @__PURE__ */ __name((input, context) => {
2017
+ return (0, import_smithy_client.take)(input, {
2018
+ Duration: [],
2019
+ EndTime: (_) => Math.round(_.getTime() / 1e3),
2020
+ MaxResults: [],
2021
+ NextToken: [],
2022
+ SourceName: [],
2023
+ SourceType: [],
2024
+ StartTime: (_) => Math.round(_.getTime() / 1e3)
2025
+ });
2026
+ }, "se_DescribeEventsRequest");
2027
+ var de_Cluster = /* @__PURE__ */ __name((output, context) => {
2028
+ return (0, import_smithy_client.take)(output, {
2029
+ ActiveNodes: import_smithy_client.expectInt32,
2030
+ ClusterArn: import_smithy_client.expectString,
2031
+ ClusterDiscoveryEndpoint: import_smithy_client._json,
2032
+ ClusterEndpointEncryptionType: import_smithy_client.expectString,
2033
+ ClusterName: import_smithy_client.expectString,
2034
+ Description: import_smithy_client.expectString,
2035
+ IamRoleArn: import_smithy_client.expectString,
2036
+ NodeIdsToRemove: import_smithy_client._json,
2037
+ NodeType: import_smithy_client.expectString,
2038
+ Nodes: (_) => de_NodeList(_, context),
2039
+ NotificationConfiguration: import_smithy_client._json,
2040
+ ParameterGroup: import_smithy_client._json,
2041
+ PreferredMaintenanceWindow: import_smithy_client.expectString,
2042
+ SSEDescription: import_smithy_client._json,
2043
+ SecurityGroups: import_smithy_client._json,
2044
+ Status: import_smithy_client.expectString,
2045
+ SubnetGroup: import_smithy_client.expectString,
2046
+ TotalNodes: import_smithy_client.expectInt32
2047
+ });
2048
+ }, "de_Cluster");
2049
+ var de_ClusterList = /* @__PURE__ */ __name((output, context) => {
2050
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2051
+ return de_Cluster(entry, context);
2052
+ });
2053
+ return retVal;
2054
+ }, "de_ClusterList");
2055
+ var de_CreateClusterResponse = /* @__PURE__ */ __name((output, context) => {
2056
+ return (0, import_smithy_client.take)(output, {
2057
+ Cluster: (_) => de_Cluster(_, context)
2058
+ });
2059
+ }, "de_CreateClusterResponse");
2060
+ var de_DecreaseReplicationFactorResponse = /* @__PURE__ */ __name((output, context) => {
2061
+ return (0, import_smithy_client.take)(output, {
2062
+ Cluster: (_) => de_Cluster(_, context)
2063
+ });
2064
+ }, "de_DecreaseReplicationFactorResponse");
2065
+ var de_DeleteClusterResponse = /* @__PURE__ */ __name((output, context) => {
2066
+ return (0, import_smithy_client.take)(output, {
2067
+ Cluster: (_) => de_Cluster(_, context)
2068
+ });
2069
+ }, "de_DeleteClusterResponse");
2070
+ var de_DescribeClustersResponse = /* @__PURE__ */ __name((output, context) => {
2071
+ return (0, import_smithy_client.take)(output, {
2072
+ Clusters: (_) => de_ClusterList(_, context),
2073
+ NextToken: import_smithy_client.expectString
2074
+ });
2075
+ }, "de_DescribeClustersResponse");
2076
+ var de_DescribeEventsResponse = /* @__PURE__ */ __name((output, context) => {
2077
+ return (0, import_smithy_client.take)(output, {
2078
+ Events: (_) => de_EventList(_, context),
2079
+ NextToken: import_smithy_client.expectString
2080
+ });
2081
+ }, "de_DescribeEventsResponse");
2082
+ var de_Event = /* @__PURE__ */ __name((output, context) => {
2083
+ return (0, import_smithy_client.take)(output, {
2084
+ Date: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2085
+ Message: import_smithy_client.expectString,
2086
+ SourceName: import_smithy_client.expectString,
2087
+ SourceType: import_smithy_client.expectString
2088
+ });
2089
+ }, "de_Event");
2090
+ var de_EventList = /* @__PURE__ */ __name((output, context) => {
2091
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2092
+ return de_Event(entry, context);
2093
+ });
2094
+ return retVal;
2095
+ }, "de_EventList");
2096
+ var de_IncreaseReplicationFactorResponse = /* @__PURE__ */ __name((output, context) => {
2097
+ return (0, import_smithy_client.take)(output, {
2098
+ Cluster: (_) => de_Cluster(_, context)
2099
+ });
2100
+ }, "de_IncreaseReplicationFactorResponse");
2101
+ var de_Node = /* @__PURE__ */ __name((output, context) => {
2102
+ return (0, import_smithy_client.take)(output, {
2103
+ AvailabilityZone: import_smithy_client.expectString,
2104
+ Endpoint: import_smithy_client._json,
2105
+ NodeCreateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2106
+ NodeId: import_smithy_client.expectString,
2107
+ NodeStatus: import_smithy_client.expectString,
2108
+ ParameterGroupStatus: import_smithy_client.expectString
2109
+ });
2110
+ }, "de_Node");
2111
+ var de_NodeList = /* @__PURE__ */ __name((output, context) => {
2112
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2113
+ return de_Node(entry, context);
2114
+ });
2115
+ return retVal;
2116
+ }, "de_NodeList");
2117
+ var de_RebootNodeResponse = /* @__PURE__ */ __name((output, context) => {
2118
+ return (0, import_smithy_client.take)(output, {
2119
+ Cluster: (_) => de_Cluster(_, context)
2120
+ });
2121
+ }, "de_RebootNodeResponse");
2122
+ var de_UpdateClusterResponse = /* @__PURE__ */ __name((output, context) => {
2123
+ return (0, import_smithy_client.take)(output, {
2124
+ Cluster: (_) => de_Cluster(_, context)
2125
+ });
2126
+ }, "de_UpdateClusterResponse");
2127
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2128
+ httpStatusCode: output.statusCode,
2129
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2130
+ extendedRequestId: output.headers["x-amz-id-2"],
2131
+ cfId: output.headers["x-amz-cf-id"]
2132
+ }), "deserializeMetadata");
2133
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2134
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(DAXServiceException);
2135
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
2136
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2137
+ const contents = {
2138
+ protocol,
2139
+ hostname,
2140
+ port,
2141
+ method: "POST",
2142
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2143
+ headers
2144
+ };
2145
+ if (resolvedHostname !== void 0) {
2146
+ contents.hostname = resolvedHostname;
2147
+ }
2148
+ if (body !== void 0) {
2149
+ contents.body = body;
2150
+ }
2151
+ return new import_protocol_http.HttpRequest(contents);
2152
+ }, "buildHttpRpcRequest");
2153
+ function sharedHeaders(operation) {
2154
+ return {
2155
+ "content-type": "application/x-amz-json-1.1",
2156
+ "x-amz-target": `AmazonDAXV3.${operation}`
2157
+ };
2158
+ }
2159
+ __name(sharedHeaders, "sharedHeaders");
2160
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2161
+ if (encoded.length) {
2162
+ return JSON.parse(encoded);
2163
+ }
2164
+ return {};
2165
+ }), "parseBody");
2166
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2167
+ const value = await parseBody(errorBody, context);
2168
+ value.message = value.message ?? value.Message;
2169
+ return value;
2170
+ }, "parseErrorBody");
2171
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2172
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2173
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2174
+ let cleanValue = rawValue;
2175
+ if (typeof cleanValue === "number") {
2176
+ cleanValue = cleanValue.toString();
2177
+ }
2178
+ if (cleanValue.indexOf(",") >= 0) {
2179
+ cleanValue = cleanValue.split(",")[0];
2180
+ }
2181
+ if (cleanValue.indexOf(":") >= 0) {
2182
+ cleanValue = cleanValue.split(":")[0];
2183
+ }
2184
+ if (cleanValue.indexOf("#") >= 0) {
2185
+ cleanValue = cleanValue.split("#")[1];
2186
+ }
2187
+ return cleanValue;
2188
+ }, "sanitizeErrorCode");
2189
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2190
+ if (headerKey !== void 0) {
2191
+ return sanitizeErrorCode(output.headers[headerKey]);
2192
+ }
2193
+ if (data.code !== void 0) {
2194
+ return sanitizeErrorCode(data.code);
2195
+ }
2196
+ if (data["__type"] !== void 0) {
2197
+ return sanitizeErrorCode(data["__type"]);
2198
+ }
2199
+ }, "loadRestJsonErrorCode");
2200
+
2201
+ // src/commands/CreateClusterCommand.ts
2202
+ var _CreateClusterCommand = class _CreateClusterCommand extends import_smithy_client.Command.classBuilder().ep({
2203
+ ...commonParams
2204
+ }).m(function(Command, cs, config, o) {
2205
+ return [
2206
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2207
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2208
+ ];
2209
+ }).s("AmazonDAXV3", "CreateCluster", {}).n("DAXClient", "CreateClusterCommand").f(void 0, void 0).ser(se_CreateClusterCommand).de(de_CreateClusterCommand).build() {
2210
+ };
2211
+ __name(_CreateClusterCommand, "CreateClusterCommand");
2212
+ var CreateClusterCommand = _CreateClusterCommand;
2213
+
2214
+ // src/commands/CreateParameterGroupCommand.ts
2215
+
2216
+
2217
+
2218
+
2219
+ var _CreateParameterGroupCommand = class _CreateParameterGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2220
+ ...commonParams
2221
+ }).m(function(Command, cs, config, o) {
2222
+ return [
2223
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2224
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2225
+ ];
2226
+ }).s("AmazonDAXV3", "CreateParameterGroup", {}).n("DAXClient", "CreateParameterGroupCommand").f(void 0, void 0).ser(se_CreateParameterGroupCommand).de(de_CreateParameterGroupCommand).build() {
2227
+ };
2228
+ __name(_CreateParameterGroupCommand, "CreateParameterGroupCommand");
2229
+ var CreateParameterGroupCommand = _CreateParameterGroupCommand;
2230
+
2231
+ // src/commands/CreateSubnetGroupCommand.ts
2232
+
2233
+
2234
+
2235
+
2236
+ var _CreateSubnetGroupCommand = class _CreateSubnetGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2237
+ ...commonParams
2238
+ }).m(function(Command, cs, config, o) {
2239
+ return [
2240
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2241
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2242
+ ];
2243
+ }).s("AmazonDAXV3", "CreateSubnetGroup", {}).n("DAXClient", "CreateSubnetGroupCommand").f(void 0, void 0).ser(se_CreateSubnetGroupCommand).de(de_CreateSubnetGroupCommand).build() {
2244
+ };
2245
+ __name(_CreateSubnetGroupCommand, "CreateSubnetGroupCommand");
2246
+ var CreateSubnetGroupCommand = _CreateSubnetGroupCommand;
2247
+
2248
+ // src/commands/DecreaseReplicationFactorCommand.ts
2249
+
2250
+
2251
+
2252
+
2253
+ var _DecreaseReplicationFactorCommand = class _DecreaseReplicationFactorCommand extends import_smithy_client.Command.classBuilder().ep({
2254
+ ...commonParams
2255
+ }).m(function(Command, cs, config, o) {
2256
+ return [
2257
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2258
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2259
+ ];
2260
+ }).s("AmazonDAXV3", "DecreaseReplicationFactor", {}).n("DAXClient", "DecreaseReplicationFactorCommand").f(void 0, void 0).ser(se_DecreaseReplicationFactorCommand).de(de_DecreaseReplicationFactorCommand).build() {
2261
+ };
2262
+ __name(_DecreaseReplicationFactorCommand, "DecreaseReplicationFactorCommand");
2263
+ var DecreaseReplicationFactorCommand = _DecreaseReplicationFactorCommand;
2264
+
2265
+ // src/commands/DeleteClusterCommand.ts
2266
+
2267
+
2268
+
2269
+
2270
+ var _DeleteClusterCommand = class _DeleteClusterCommand extends import_smithy_client.Command.classBuilder().ep({
2271
+ ...commonParams
2272
+ }).m(function(Command, cs, config, o) {
2273
+ return [
2274
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2275
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2276
+ ];
2277
+ }).s("AmazonDAXV3", "DeleteCluster", {}).n("DAXClient", "DeleteClusterCommand").f(void 0, void 0).ser(se_DeleteClusterCommand).de(de_DeleteClusterCommand).build() {
2278
+ };
2279
+ __name(_DeleteClusterCommand, "DeleteClusterCommand");
2280
+ var DeleteClusterCommand = _DeleteClusterCommand;
2281
+
2282
+ // src/commands/DeleteParameterGroupCommand.ts
2283
+
2284
+
2285
+
2286
+
2287
+ var _DeleteParameterGroupCommand = class _DeleteParameterGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2288
+ ...commonParams
2289
+ }).m(function(Command, cs, config, o) {
2290
+ return [
2291
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2292
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2293
+ ];
2294
+ }).s("AmazonDAXV3", "DeleteParameterGroup", {}).n("DAXClient", "DeleteParameterGroupCommand").f(void 0, void 0).ser(se_DeleteParameterGroupCommand).de(de_DeleteParameterGroupCommand).build() {
2295
+ };
2296
+ __name(_DeleteParameterGroupCommand, "DeleteParameterGroupCommand");
2297
+ var DeleteParameterGroupCommand = _DeleteParameterGroupCommand;
2298
+
2299
+ // src/commands/DeleteSubnetGroupCommand.ts
2300
+
2301
+
2302
+
2303
+
2304
+ var _DeleteSubnetGroupCommand = class _DeleteSubnetGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2305
+ ...commonParams
2306
+ }).m(function(Command, cs, config, o) {
2307
+ return [
2308
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2309
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2310
+ ];
2311
+ }).s("AmazonDAXV3", "DeleteSubnetGroup", {}).n("DAXClient", "DeleteSubnetGroupCommand").f(void 0, void 0).ser(se_DeleteSubnetGroupCommand).de(de_DeleteSubnetGroupCommand).build() {
2312
+ };
2313
+ __name(_DeleteSubnetGroupCommand, "DeleteSubnetGroupCommand");
2314
+ var DeleteSubnetGroupCommand = _DeleteSubnetGroupCommand;
2315
+
2316
+ // src/commands/DescribeClustersCommand.ts
2317
+
2318
+
2319
+
2320
+
2321
+ var _DescribeClustersCommand = class _DescribeClustersCommand extends import_smithy_client.Command.classBuilder().ep({
2322
+ ...commonParams
2323
+ }).m(function(Command, cs, config, o) {
2324
+ return [
2325
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2326
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2327
+ ];
2328
+ }).s("AmazonDAXV3", "DescribeClusters", {}).n("DAXClient", "DescribeClustersCommand").f(void 0, void 0).ser(se_DescribeClustersCommand).de(de_DescribeClustersCommand).build() {
2329
+ };
2330
+ __name(_DescribeClustersCommand, "DescribeClustersCommand");
2331
+ var DescribeClustersCommand = _DescribeClustersCommand;
2332
+
2333
+ // src/commands/DescribeDefaultParametersCommand.ts
2334
+
2335
+
2336
+
2337
+
2338
+ var _DescribeDefaultParametersCommand = class _DescribeDefaultParametersCommand extends import_smithy_client.Command.classBuilder().ep({
2339
+ ...commonParams
2340
+ }).m(function(Command, cs, config, o) {
2341
+ return [
2342
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2343
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2344
+ ];
2345
+ }).s("AmazonDAXV3", "DescribeDefaultParameters", {}).n("DAXClient", "DescribeDefaultParametersCommand").f(void 0, void 0).ser(se_DescribeDefaultParametersCommand).de(de_DescribeDefaultParametersCommand).build() {
2346
+ };
2347
+ __name(_DescribeDefaultParametersCommand, "DescribeDefaultParametersCommand");
2348
+ var DescribeDefaultParametersCommand = _DescribeDefaultParametersCommand;
2349
+
2350
+ // src/commands/DescribeEventsCommand.ts
2351
+
2352
+
2353
+
2354
+
2355
+ var _DescribeEventsCommand = class _DescribeEventsCommand extends import_smithy_client.Command.classBuilder().ep({
2356
+ ...commonParams
2357
+ }).m(function(Command, cs, config, o) {
2358
+ return [
2359
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2360
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2361
+ ];
2362
+ }).s("AmazonDAXV3", "DescribeEvents", {}).n("DAXClient", "DescribeEventsCommand").f(void 0, void 0).ser(se_DescribeEventsCommand).de(de_DescribeEventsCommand).build() {
2363
+ };
2364
+ __name(_DescribeEventsCommand, "DescribeEventsCommand");
2365
+ var DescribeEventsCommand = _DescribeEventsCommand;
2366
+
2367
+ // src/commands/DescribeParameterGroupsCommand.ts
2368
+
2369
+
2370
+
2371
+
2372
+ var _DescribeParameterGroupsCommand = class _DescribeParameterGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
2373
+ ...commonParams
2374
+ }).m(function(Command, cs, config, o) {
2375
+ return [
2376
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2377
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2378
+ ];
2379
+ }).s("AmazonDAXV3", "DescribeParameterGroups", {}).n("DAXClient", "DescribeParameterGroupsCommand").f(void 0, void 0).ser(se_DescribeParameterGroupsCommand).de(de_DescribeParameterGroupsCommand).build() {
2380
+ };
2381
+ __name(_DescribeParameterGroupsCommand, "DescribeParameterGroupsCommand");
2382
+ var DescribeParameterGroupsCommand = _DescribeParameterGroupsCommand;
2383
+
2384
+ // src/commands/DescribeParametersCommand.ts
2385
+
2386
+
2387
+
2388
+
2389
+ var _DescribeParametersCommand = class _DescribeParametersCommand extends import_smithy_client.Command.classBuilder().ep({
2390
+ ...commonParams
2391
+ }).m(function(Command, cs, config, o) {
2392
+ return [
2393
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2394
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2395
+ ];
2396
+ }).s("AmazonDAXV3", "DescribeParameters", {}).n("DAXClient", "DescribeParametersCommand").f(void 0, void 0).ser(se_DescribeParametersCommand).de(de_DescribeParametersCommand).build() {
2397
+ };
2398
+ __name(_DescribeParametersCommand, "DescribeParametersCommand");
2399
+ var DescribeParametersCommand = _DescribeParametersCommand;
2400
+
2401
+ // src/commands/DescribeSubnetGroupsCommand.ts
2402
+
2403
+
2404
+
2405
+
2406
+ var _DescribeSubnetGroupsCommand = class _DescribeSubnetGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
2407
+ ...commonParams
2408
+ }).m(function(Command, cs, config, o) {
2409
+ return [
2410
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2411
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2412
+ ];
2413
+ }).s("AmazonDAXV3", "DescribeSubnetGroups", {}).n("DAXClient", "DescribeSubnetGroupsCommand").f(void 0, void 0).ser(se_DescribeSubnetGroupsCommand).de(de_DescribeSubnetGroupsCommand).build() {
2414
+ };
2415
+ __name(_DescribeSubnetGroupsCommand, "DescribeSubnetGroupsCommand");
2416
+ var DescribeSubnetGroupsCommand = _DescribeSubnetGroupsCommand;
2417
+
2418
+ // src/commands/IncreaseReplicationFactorCommand.ts
2419
+
2420
+
2421
+
2422
+
2423
+ var _IncreaseReplicationFactorCommand = class _IncreaseReplicationFactorCommand extends import_smithy_client.Command.classBuilder().ep({
2424
+ ...commonParams
2425
+ }).m(function(Command, cs, config, o) {
2426
+ return [
2427
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2428
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2429
+ ];
2430
+ }).s("AmazonDAXV3", "IncreaseReplicationFactor", {}).n("DAXClient", "IncreaseReplicationFactorCommand").f(void 0, void 0).ser(se_IncreaseReplicationFactorCommand).de(de_IncreaseReplicationFactorCommand).build() {
2431
+ };
2432
+ __name(_IncreaseReplicationFactorCommand, "IncreaseReplicationFactorCommand");
2433
+ var IncreaseReplicationFactorCommand = _IncreaseReplicationFactorCommand;
2434
+
2435
+ // src/commands/ListTagsCommand.ts
2436
+
2437
+
2438
+
2439
+
2440
+ var _ListTagsCommand = class _ListTagsCommand extends import_smithy_client.Command.classBuilder().ep({
2441
+ ...commonParams
2442
+ }).m(function(Command, cs, config, o) {
2443
+ return [
2444
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2445
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2446
+ ];
2447
+ }).s("AmazonDAXV3", "ListTags", {}).n("DAXClient", "ListTagsCommand").f(void 0, void 0).ser(se_ListTagsCommand).de(de_ListTagsCommand).build() {
2448
+ };
2449
+ __name(_ListTagsCommand, "ListTagsCommand");
2450
+ var ListTagsCommand = _ListTagsCommand;
2451
+
2452
+ // src/commands/RebootNodeCommand.ts
2453
+
2454
+
2455
+
2456
+
2457
+ var _RebootNodeCommand = class _RebootNodeCommand extends import_smithy_client.Command.classBuilder().ep({
2458
+ ...commonParams
2459
+ }).m(function(Command, cs, config, o) {
2460
+ return [
2461
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2462
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2463
+ ];
2464
+ }).s("AmazonDAXV3", "RebootNode", {}).n("DAXClient", "RebootNodeCommand").f(void 0, void 0).ser(se_RebootNodeCommand).de(de_RebootNodeCommand).build() {
2465
+ };
2466
+ __name(_RebootNodeCommand, "RebootNodeCommand");
2467
+ var RebootNodeCommand = _RebootNodeCommand;
2468
+
2469
+ // src/commands/TagResourceCommand.ts
2470
+
2471
+
2472
+
2473
+
2474
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2475
+ ...commonParams
2476
+ }).m(function(Command, cs, config, o) {
2477
+ return [
2478
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2479
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2480
+ ];
2481
+ }).s("AmazonDAXV3", "TagResource", {}).n("DAXClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2482
+ };
2483
+ __name(_TagResourceCommand, "TagResourceCommand");
2484
+ var TagResourceCommand = _TagResourceCommand;
2485
+
2486
+ // src/commands/UntagResourceCommand.ts
2487
+
2488
+
2489
+
2490
+
2491
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2492
+ ...commonParams
2493
+ }).m(function(Command, cs, config, o) {
2494
+ return [
2495
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2496
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2497
+ ];
2498
+ }).s("AmazonDAXV3", "UntagResource", {}).n("DAXClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2499
+ };
2500
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2501
+ var UntagResourceCommand = _UntagResourceCommand;
2502
+
2503
+ // src/commands/UpdateClusterCommand.ts
2504
+
2505
+
2506
+
2507
+
2508
+ var _UpdateClusterCommand = class _UpdateClusterCommand extends import_smithy_client.Command.classBuilder().ep({
2509
+ ...commonParams
2510
+ }).m(function(Command, cs, config, o) {
2511
+ return [
2512
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2513
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2514
+ ];
2515
+ }).s("AmazonDAXV3", "UpdateCluster", {}).n("DAXClient", "UpdateClusterCommand").f(void 0, void 0).ser(se_UpdateClusterCommand).de(de_UpdateClusterCommand).build() {
2516
+ };
2517
+ __name(_UpdateClusterCommand, "UpdateClusterCommand");
2518
+ var UpdateClusterCommand = _UpdateClusterCommand;
2519
+
2520
+ // src/commands/UpdateParameterGroupCommand.ts
2521
+
2522
+
2523
+
2524
+
2525
+ var _UpdateParameterGroupCommand = class _UpdateParameterGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2526
+ ...commonParams
2527
+ }).m(function(Command, cs, config, o) {
2528
+ return [
2529
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2530
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2531
+ ];
2532
+ }).s("AmazonDAXV3", "UpdateParameterGroup", {}).n("DAXClient", "UpdateParameterGroupCommand").f(void 0, void 0).ser(se_UpdateParameterGroupCommand).de(de_UpdateParameterGroupCommand).build() {
2533
+ };
2534
+ __name(_UpdateParameterGroupCommand, "UpdateParameterGroupCommand");
2535
+ var UpdateParameterGroupCommand = _UpdateParameterGroupCommand;
2536
+
2537
+ // src/commands/UpdateSubnetGroupCommand.ts
2538
+
2539
+
2540
+
2541
+
2542
+ var _UpdateSubnetGroupCommand = class _UpdateSubnetGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2543
+ ...commonParams
2544
+ }).m(function(Command, cs, config, o) {
2545
+ return [
2546
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2547
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2548
+ ];
2549
+ }).s("AmazonDAXV3", "UpdateSubnetGroup", {}).n("DAXClient", "UpdateSubnetGroupCommand").f(void 0, void 0).ser(se_UpdateSubnetGroupCommand).de(de_UpdateSubnetGroupCommand).build() {
2550
+ };
2551
+ __name(_UpdateSubnetGroupCommand, "UpdateSubnetGroupCommand");
2552
+ var UpdateSubnetGroupCommand = _UpdateSubnetGroupCommand;
2553
+
2554
+ // src/DAX.ts
2555
+ var commands = {
2556
+ CreateClusterCommand,
2557
+ CreateParameterGroupCommand,
2558
+ CreateSubnetGroupCommand,
2559
+ DecreaseReplicationFactorCommand,
2560
+ DeleteClusterCommand,
2561
+ DeleteParameterGroupCommand,
2562
+ DeleteSubnetGroupCommand,
2563
+ DescribeClustersCommand,
2564
+ DescribeDefaultParametersCommand,
2565
+ DescribeEventsCommand,
2566
+ DescribeParameterGroupsCommand,
2567
+ DescribeParametersCommand,
2568
+ DescribeSubnetGroupsCommand,
2569
+ IncreaseReplicationFactorCommand,
2570
+ ListTagsCommand,
2571
+ RebootNodeCommand,
2572
+ TagResourceCommand,
2573
+ UntagResourceCommand,
2574
+ UpdateClusterCommand,
2575
+ UpdateParameterGroupCommand,
2576
+ UpdateSubnetGroupCommand
2577
+ };
2578
+ var _DAX = class _DAX extends DAXClient {
2579
+ };
2580
+ __name(_DAX, "DAX");
2581
+ var DAX = _DAX;
2582
+ (0, import_smithy_client.createAggregatedClient)(commands, DAX);
2583
+
2584
+ // src/index.ts
2585
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2586
+ // Annotate the CommonJS export names for ESM import in node:
2587
+ 0 && (module.exports = {
2588
+ ChangeType,
2589
+ ClusterAlreadyExistsFault,
2590
+ ClusterEndpointEncryptionType,
2591
+ ClusterNotFoundFault,
2592
+ ClusterQuotaForCustomerExceededFault,
2593
+ CreateClusterCommand,
2594
+ CreateParameterGroupCommand,
2595
+ CreateSubnetGroupCommand,
2596
+ DAX,
2597
+ DAXClient,
2598
+ DAXServiceException,
2599
+ DecreaseReplicationFactorCommand,
2600
+ DeleteClusterCommand,
2601
+ DeleteParameterGroupCommand,
2602
+ DeleteSubnetGroupCommand,
2603
+ DescribeClustersCommand,
2604
+ DescribeDefaultParametersCommand,
2605
+ DescribeEventsCommand,
2606
+ DescribeParameterGroupsCommand,
2607
+ DescribeParametersCommand,
2608
+ DescribeSubnetGroupsCommand,
2609
+ IncreaseReplicationFactorCommand,
2610
+ InsufficientClusterCapacityFault,
2611
+ InvalidARNFault,
2612
+ InvalidClusterStateFault,
2613
+ InvalidParameterCombinationException,
2614
+ InvalidParameterGroupStateFault,
2615
+ InvalidParameterValueException,
2616
+ InvalidSubnet,
2617
+ InvalidVPCNetworkStateFault,
2618
+ IsModifiable,
2619
+ ListTagsCommand,
2620
+ NodeNotFoundFault,
2621
+ NodeQuotaForClusterExceededFault,
2622
+ NodeQuotaForCustomerExceededFault,
2623
+ ParameterGroupAlreadyExistsFault,
2624
+ ParameterGroupNotFoundFault,
2625
+ ParameterGroupQuotaExceededFault,
2626
+ ParameterType,
2627
+ RebootNodeCommand,
2628
+ SSEStatus,
2629
+ ServiceLinkedRoleNotFoundFault,
2630
+ ServiceQuotaExceededException,
2631
+ SourceType,
2632
+ SubnetGroupAlreadyExistsFault,
2633
+ SubnetGroupInUseFault,
2634
+ SubnetGroupNotFoundFault,
2635
+ SubnetGroupQuotaExceededFault,
2636
+ SubnetInUse,
2637
+ SubnetQuotaExceededFault,
2638
+ TagNotFoundFault,
2639
+ TagQuotaPerResourceExceeded,
2640
+ TagResourceCommand,
2641
+ UntagResourceCommand,
2642
+ UpdateClusterCommand,
2643
+ UpdateParameterGroupCommand,
2644
+ UpdateSubnetGroupCommand,
2645
+ __Client
2646
+ });