@aws-sdk/client-dax 3.899.0 → 3.906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist-cjs/index.js +1759 -2020
  2. package/package.json +37 -37
package/dist-cjs/index.js CHANGED
@@ -1,2099 +1,1838 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
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 index_exports = {};
23
- __export(index_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
- NetworkType: () => NetworkType,
57
- NodeNotFoundFault: () => NodeNotFoundFault,
58
- NodeQuotaForClusterExceededFault: () => NodeQuotaForClusterExceededFault,
59
- NodeQuotaForCustomerExceededFault: () => NodeQuotaForCustomerExceededFault,
60
- ParameterGroupAlreadyExistsFault: () => ParameterGroupAlreadyExistsFault,
61
- ParameterGroupNotFoundFault: () => ParameterGroupNotFoundFault,
62
- ParameterGroupQuotaExceededFault: () => ParameterGroupQuotaExceededFault,
63
- ParameterType: () => ParameterType,
64
- RebootNodeCommand: () => RebootNodeCommand,
65
- SSEStatus: () => SSEStatus,
66
- ServiceLinkedRoleNotFoundFault: () => ServiceLinkedRoleNotFoundFault,
67
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
68
- SourceType: () => SourceType,
69
- SubnetGroupAlreadyExistsFault: () => SubnetGroupAlreadyExistsFault,
70
- SubnetGroupInUseFault: () => SubnetGroupInUseFault,
71
- SubnetGroupNotFoundFault: () => SubnetGroupNotFoundFault,
72
- SubnetGroupQuotaExceededFault: () => SubnetGroupQuotaExceededFault,
73
- SubnetInUse: () => SubnetInUse,
74
- SubnetNotAllowedFault: () => SubnetNotAllowedFault,
75
- SubnetQuotaExceededFault: () => SubnetQuotaExceededFault,
76
- TagNotFoundFault: () => TagNotFoundFault,
77
- TagQuotaPerResourceExceeded: () => TagQuotaPerResourceExceeded,
78
- TagResourceCommand: () => TagResourceCommand,
79
- UntagResourceCommand: () => UntagResourceCommand,
80
- UpdateClusterCommand: () => UpdateClusterCommand,
81
- UpdateParameterGroupCommand: () => UpdateParameterGroupCommand,
82
- UpdateSubnetGroupCommand: () => UpdateSubnetGroupCommand,
83
- __Client: () => import_smithy_client.Client
84
- });
85
- module.exports = __toCommonJS(index_exports);
86
-
87
- // src/DAXClient.ts
88
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
89
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
90
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
91
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
92
- var import_config_resolver = require("@smithy/config-resolver");
93
- var import_core = require("@smithy/core");
94
- var import_middleware_content_length = require("@smithy/middleware-content-length");
95
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
96
- var import_middleware_retry = require("@smithy/middleware-retry");
97
-
98
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
99
-
100
- // src/endpoint/EndpointParameters.ts
101
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
102
- return Object.assign(options, {
103
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
104
- useFipsEndpoint: options.useFipsEndpoint ?? false,
105
- defaultSigningName: "dax"
106
- });
107
- }, "resolveClientEndpointParameters");
108
- var commonParams = {
109
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
110
- Endpoint: { type: "builtInParams", name: "endpoint" },
111
- Region: { type: "builtInParams", name: "region" },
112
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "dax",
25
+ });
26
+ };
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
113
32
  };
114
33
 
115
- // src/DAXClient.ts
116
- var import_runtimeConfig = require("././runtimeConfig");
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
117
72
 
118
- // src/runtimeExtensions.ts
119
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
120
- var import_protocol_http = require("@smithy/protocol-http");
121
- var import_smithy_client = require("@smithy/smithy-client");
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
122
78
 
123
- // src/auth/httpAuthExtensionConfiguration.ts
124
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
125
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
126
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
127
- let _credentials = runtimeConfig.credentials;
128
- return {
129
- setHttpAuthScheme(httpAuthScheme) {
130
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
131
- if (index === -1) {
132
- _httpAuthSchemes.push(httpAuthScheme);
133
- } else {
134
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
135
- }
136
- },
137
- httpAuthSchemes() {
138
- return _httpAuthSchemes;
139
- },
140
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
141
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
142
- },
143
- httpAuthSchemeProvider() {
144
- return _httpAuthSchemeProvider;
145
- },
146
- setCredentials(credentials) {
147
- _credentials = credentials;
148
- },
149
- credentials() {
150
- return _credentials;
79
+ class DAXClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultDAXHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
151
107
  }
152
- };
153
- }, "getHttpAuthExtensionConfiguration");
154
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
155
- return {
156
- httpAuthSchemes: config.httpAuthSchemes(),
157
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
158
- credentials: config.credentials()
159
- };
160
- }, "resolveHttpAuthRuntimeConfig");
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
161
112
 
162
- // src/runtimeExtensions.ts
163
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
164
- const extensionConfiguration = Object.assign(
165
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
166
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
167
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
168
- getHttpAuthExtensionConfiguration(runtimeConfig)
169
- );
170
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
171
- return Object.assign(
172
- runtimeConfig,
173
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
174
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
175
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
176
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
177
- );
178
- }, "resolveRuntimeExtensions");
113
+ class DAXServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, DAXServiceException.prototype);
117
+ }
118
+ }
179
119
 
180
- // src/DAXClient.ts
181
- var DAXClient = class extends import_smithy_client.Client {
182
- static {
183
- __name(this, "DAXClient");
184
- }
185
- /**
186
- * The resolved configuration of DAXClient class. This is resolved and normalized from the {@link DAXClientConfig | constructor configuration interface}.
187
- */
188
- config;
189
- constructor(...[configuration]) {
190
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
191
- super(_config_0);
192
- this.initConfig = _config_0;
193
- const _config_1 = resolveClientEndpointParameters(_config_0);
194
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
195
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
196
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
197
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
198
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
199
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
200
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
201
- this.config = _config_8;
202
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
203
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
204
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
205
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
206
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
207
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
208
- this.middlewareStack.use(
209
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
210
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultDAXHttpAuthSchemeParametersProvider,
211
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
212
- "aws.auth#sigv4": config.credentials
213
- }), "identityProviderConfigProvider")
214
- })
215
- );
216
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
217
- }
218
- /**
219
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
220
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
221
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
222
- */
223
- destroy() {
224
- super.destroy();
225
- }
120
+ class ClusterAlreadyExistsFault extends DAXServiceException {
121
+ name = "ClusterAlreadyExistsFault";
122
+ $fault = "client";
123
+ constructor(opts) {
124
+ super({
125
+ name: "ClusterAlreadyExistsFault",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, ClusterAlreadyExistsFault.prototype);
130
+ }
131
+ }
132
+ class ClusterQuotaForCustomerExceededFault extends DAXServiceException {
133
+ name = "ClusterQuotaForCustomerExceededFault";
134
+ $fault = "client";
135
+ constructor(opts) {
136
+ super({
137
+ name: "ClusterQuotaForCustomerExceededFault",
138
+ $fault: "client",
139
+ ...opts,
140
+ });
141
+ Object.setPrototypeOf(this, ClusterQuotaForCustomerExceededFault.prototype);
142
+ }
143
+ }
144
+ const ClusterEndpointEncryptionType = {
145
+ NONE: "NONE",
146
+ TLS: "TLS",
226
147
  };
227
-
228
- // src/DAX.ts
229
-
230
-
231
- // src/commands/CreateClusterCommand.ts
232
-
233
- var import_middleware_serde = require("@smithy/middleware-serde");
234
-
235
-
236
- // src/protocols/Aws_json1_1.ts
237
- var import_core2 = require("@aws-sdk/core");
238
-
239
-
240
-
241
- // src/models/DAXServiceException.ts
242
-
243
- var DAXServiceException = class _DAXServiceException extends import_smithy_client.ServiceException {
244
- static {
245
- __name(this, "DAXServiceException");
246
- }
247
- /**
248
- * @internal
249
- */
250
- constructor(options) {
251
- super(options);
252
- Object.setPrototypeOf(this, _DAXServiceException.prototype);
253
- }
148
+ const NetworkType = {
149
+ DUAL_STACK: "dual_stack",
150
+ IPV4: "ipv4",
151
+ IPV6: "ipv6",
254
152
  };
153
+ const SSEStatus = {
154
+ DISABLED: "DISABLED",
155
+ DISABLING: "DISABLING",
156
+ ENABLED: "ENABLED",
157
+ ENABLING: "ENABLING",
158
+ };
159
+ class InsufficientClusterCapacityFault extends DAXServiceException {
160
+ name = "InsufficientClusterCapacityFault";
161
+ $fault = "client";
162
+ constructor(opts) {
163
+ super({
164
+ name: "InsufficientClusterCapacityFault",
165
+ $fault: "client",
166
+ ...opts,
167
+ });
168
+ Object.setPrototypeOf(this, InsufficientClusterCapacityFault.prototype);
169
+ }
170
+ }
171
+ class InvalidClusterStateFault extends DAXServiceException {
172
+ name = "InvalidClusterStateFault";
173
+ $fault = "client";
174
+ constructor(opts) {
175
+ super({
176
+ name: "InvalidClusterStateFault",
177
+ $fault: "client",
178
+ ...opts,
179
+ });
180
+ Object.setPrototypeOf(this, InvalidClusterStateFault.prototype);
181
+ }
182
+ }
183
+ class InvalidParameterCombinationException extends DAXServiceException {
184
+ name = "InvalidParameterCombinationException";
185
+ $fault = "client";
186
+ constructor(opts) {
187
+ super({
188
+ name: "InvalidParameterCombinationException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, InvalidParameterCombinationException.prototype);
193
+ }
194
+ }
195
+ class InvalidParameterGroupStateFault extends DAXServiceException {
196
+ name = "InvalidParameterGroupStateFault";
197
+ $fault = "client";
198
+ constructor(opts) {
199
+ super({
200
+ name: "InvalidParameterGroupStateFault",
201
+ $fault: "client",
202
+ ...opts,
203
+ });
204
+ Object.setPrototypeOf(this, InvalidParameterGroupStateFault.prototype);
205
+ }
206
+ }
207
+ class InvalidParameterValueException extends DAXServiceException {
208
+ name = "InvalidParameterValueException";
209
+ $fault = "client";
210
+ constructor(opts) {
211
+ super({
212
+ name: "InvalidParameterValueException",
213
+ $fault: "client",
214
+ ...opts,
215
+ });
216
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
217
+ }
218
+ }
219
+ class InvalidVPCNetworkStateFault extends DAXServiceException {
220
+ name = "InvalidVPCNetworkStateFault";
221
+ $fault = "client";
222
+ constructor(opts) {
223
+ super({
224
+ name: "InvalidVPCNetworkStateFault",
225
+ $fault: "client",
226
+ ...opts,
227
+ });
228
+ Object.setPrototypeOf(this, InvalidVPCNetworkStateFault.prototype);
229
+ }
230
+ }
231
+ class NodeQuotaForClusterExceededFault extends DAXServiceException {
232
+ name = "NodeQuotaForClusterExceededFault";
233
+ $fault = "client";
234
+ constructor(opts) {
235
+ super({
236
+ name: "NodeQuotaForClusterExceededFault",
237
+ $fault: "client",
238
+ ...opts,
239
+ });
240
+ Object.setPrototypeOf(this, NodeQuotaForClusterExceededFault.prototype);
241
+ }
242
+ }
243
+ class NodeQuotaForCustomerExceededFault extends DAXServiceException {
244
+ name = "NodeQuotaForCustomerExceededFault";
245
+ $fault = "client";
246
+ constructor(opts) {
247
+ super({
248
+ name: "NodeQuotaForCustomerExceededFault",
249
+ $fault: "client",
250
+ ...opts,
251
+ });
252
+ Object.setPrototypeOf(this, NodeQuotaForCustomerExceededFault.prototype);
253
+ }
254
+ }
255
+ class ParameterGroupNotFoundFault extends DAXServiceException {
256
+ name = "ParameterGroupNotFoundFault";
257
+ $fault = "client";
258
+ constructor(opts) {
259
+ super({
260
+ name: "ParameterGroupNotFoundFault",
261
+ $fault: "client",
262
+ ...opts,
263
+ });
264
+ Object.setPrototypeOf(this, ParameterGroupNotFoundFault.prototype);
265
+ }
266
+ }
267
+ class ServiceLinkedRoleNotFoundFault extends DAXServiceException {
268
+ name = "ServiceLinkedRoleNotFoundFault";
269
+ $fault = "client";
270
+ constructor(opts) {
271
+ super({
272
+ name: "ServiceLinkedRoleNotFoundFault",
273
+ $fault: "client",
274
+ ...opts,
275
+ });
276
+ Object.setPrototypeOf(this, ServiceLinkedRoleNotFoundFault.prototype);
277
+ }
278
+ }
279
+ class ServiceQuotaExceededException extends DAXServiceException {
280
+ name = "ServiceQuotaExceededException";
281
+ $fault = "client";
282
+ constructor(opts) {
283
+ super({
284
+ name: "ServiceQuotaExceededException",
285
+ $fault: "client",
286
+ ...opts,
287
+ });
288
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
289
+ }
290
+ }
291
+ class SubnetGroupNotFoundFault extends DAXServiceException {
292
+ name = "SubnetGroupNotFoundFault";
293
+ $fault = "client";
294
+ constructor(opts) {
295
+ super({
296
+ name: "SubnetGroupNotFoundFault",
297
+ $fault: "client",
298
+ ...opts,
299
+ });
300
+ Object.setPrototypeOf(this, SubnetGroupNotFoundFault.prototype);
301
+ }
302
+ }
303
+ class TagQuotaPerResourceExceeded extends DAXServiceException {
304
+ name = "TagQuotaPerResourceExceeded";
305
+ $fault = "client";
306
+ constructor(opts) {
307
+ super({
308
+ name: "TagQuotaPerResourceExceeded",
309
+ $fault: "client",
310
+ ...opts,
311
+ });
312
+ Object.setPrototypeOf(this, TagQuotaPerResourceExceeded.prototype);
313
+ }
314
+ }
315
+ class ParameterGroupAlreadyExistsFault extends DAXServiceException {
316
+ name = "ParameterGroupAlreadyExistsFault";
317
+ $fault = "client";
318
+ constructor(opts) {
319
+ super({
320
+ name: "ParameterGroupAlreadyExistsFault",
321
+ $fault: "client",
322
+ ...opts,
323
+ });
324
+ Object.setPrototypeOf(this, ParameterGroupAlreadyExistsFault.prototype);
325
+ }
326
+ }
327
+ class ParameterGroupQuotaExceededFault extends DAXServiceException {
328
+ name = "ParameterGroupQuotaExceededFault";
329
+ $fault = "client";
330
+ constructor(opts) {
331
+ super({
332
+ name: "ParameterGroupQuotaExceededFault",
333
+ $fault: "client",
334
+ ...opts,
335
+ });
336
+ Object.setPrototypeOf(this, ParameterGroupQuotaExceededFault.prototype);
337
+ }
338
+ }
339
+ class InvalidSubnet extends DAXServiceException {
340
+ name = "InvalidSubnet";
341
+ $fault = "client";
342
+ constructor(opts) {
343
+ super({
344
+ name: "InvalidSubnet",
345
+ $fault: "client",
346
+ ...opts,
347
+ });
348
+ Object.setPrototypeOf(this, InvalidSubnet.prototype);
349
+ }
350
+ }
351
+ class SubnetGroupAlreadyExistsFault extends DAXServiceException {
352
+ name = "SubnetGroupAlreadyExistsFault";
353
+ $fault = "client";
354
+ constructor(opts) {
355
+ super({
356
+ name: "SubnetGroupAlreadyExistsFault",
357
+ $fault: "client",
358
+ ...opts,
359
+ });
360
+ Object.setPrototypeOf(this, SubnetGroupAlreadyExistsFault.prototype);
361
+ }
362
+ }
363
+ class SubnetGroupQuotaExceededFault extends DAXServiceException {
364
+ name = "SubnetGroupQuotaExceededFault";
365
+ $fault = "client";
366
+ constructor(opts) {
367
+ super({
368
+ name: "SubnetGroupQuotaExceededFault",
369
+ $fault: "client",
370
+ ...opts,
371
+ });
372
+ Object.setPrototypeOf(this, SubnetGroupQuotaExceededFault.prototype);
373
+ }
374
+ }
375
+ class SubnetNotAllowedFault extends DAXServiceException {
376
+ name = "SubnetNotAllowedFault";
377
+ $fault = "client";
378
+ constructor(opts) {
379
+ super({
380
+ name: "SubnetNotAllowedFault",
381
+ $fault: "client",
382
+ ...opts,
383
+ });
384
+ Object.setPrototypeOf(this, SubnetNotAllowedFault.prototype);
385
+ }
386
+ }
387
+ class SubnetQuotaExceededFault extends DAXServiceException {
388
+ name = "SubnetQuotaExceededFault";
389
+ $fault = "client";
390
+ constructor(opts) {
391
+ super({
392
+ name: "SubnetQuotaExceededFault",
393
+ $fault: "client",
394
+ ...opts,
395
+ });
396
+ Object.setPrototypeOf(this, SubnetQuotaExceededFault.prototype);
397
+ }
398
+ }
399
+ class ClusterNotFoundFault extends DAXServiceException {
400
+ name = "ClusterNotFoundFault";
401
+ $fault = "client";
402
+ constructor(opts) {
403
+ super({
404
+ name: "ClusterNotFoundFault",
405
+ $fault: "client",
406
+ ...opts,
407
+ });
408
+ Object.setPrototypeOf(this, ClusterNotFoundFault.prototype);
409
+ }
410
+ }
411
+ class NodeNotFoundFault extends DAXServiceException {
412
+ name = "NodeNotFoundFault";
413
+ $fault = "client";
414
+ constructor(opts) {
415
+ super({
416
+ name: "NodeNotFoundFault",
417
+ $fault: "client",
418
+ ...opts,
419
+ });
420
+ Object.setPrototypeOf(this, NodeNotFoundFault.prototype);
421
+ }
422
+ }
423
+ class SubnetGroupInUseFault extends DAXServiceException {
424
+ name = "SubnetGroupInUseFault";
425
+ $fault = "client";
426
+ constructor(opts) {
427
+ super({
428
+ name: "SubnetGroupInUseFault",
429
+ $fault: "client",
430
+ ...opts,
431
+ });
432
+ Object.setPrototypeOf(this, SubnetGroupInUseFault.prototype);
433
+ }
434
+ }
435
+ const ChangeType = {
436
+ IMMEDIATE: "IMMEDIATE",
437
+ REQUIRES_REBOOT: "REQUIRES_REBOOT",
438
+ };
439
+ const IsModifiable = {
440
+ CONDITIONAL: "CONDITIONAL",
441
+ FALSE: "FALSE",
442
+ TRUE: "TRUE",
443
+ };
444
+ const ParameterType = {
445
+ DEFAULT: "DEFAULT",
446
+ NODE_TYPE_SPECIFIC: "NODE_TYPE_SPECIFIC",
447
+ };
448
+ const SourceType = {
449
+ CLUSTER: "CLUSTER",
450
+ PARAMETER_GROUP: "PARAMETER_GROUP",
451
+ SUBNET_GROUP: "SUBNET_GROUP",
452
+ };
453
+ class InvalidARNFault extends DAXServiceException {
454
+ name = "InvalidARNFault";
455
+ $fault = "client";
456
+ constructor(opts) {
457
+ super({
458
+ name: "InvalidARNFault",
459
+ $fault: "client",
460
+ ...opts,
461
+ });
462
+ Object.setPrototypeOf(this, InvalidARNFault.prototype);
463
+ }
464
+ }
465
+ class TagNotFoundFault extends DAXServiceException {
466
+ name = "TagNotFoundFault";
467
+ $fault = "client";
468
+ constructor(opts) {
469
+ super({
470
+ name: "TagNotFoundFault",
471
+ $fault: "client",
472
+ ...opts,
473
+ });
474
+ Object.setPrototypeOf(this, TagNotFoundFault.prototype);
475
+ }
476
+ }
477
+ class SubnetInUse extends DAXServiceException {
478
+ name = "SubnetInUse";
479
+ $fault = "client";
480
+ constructor(opts) {
481
+ super({
482
+ name: "SubnetInUse",
483
+ $fault: "client",
484
+ ...opts,
485
+ });
486
+ Object.setPrototypeOf(this, SubnetInUse.prototype);
487
+ }
488
+ }
255
489
 
256
- // src/models/models_0.ts
257
- var ClusterAlreadyExistsFault = class _ClusterAlreadyExistsFault extends DAXServiceException {
258
- static {
259
- __name(this, "ClusterAlreadyExistsFault");
260
- }
261
- name = "ClusterAlreadyExistsFault";
262
- $fault = "client";
263
- /**
264
- * @internal
265
- */
266
- constructor(opts) {
267
- super({
268
- name: "ClusterAlreadyExistsFault",
269
- $fault: "client",
270
- ...opts
490
+ const se_CreateClusterCommand = async (input, context) => {
491
+ const headers = sharedHeaders("CreateCluster");
492
+ let body;
493
+ body = JSON.stringify(smithyClient._json(input));
494
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
495
+ };
496
+ const se_CreateParameterGroupCommand = async (input, context) => {
497
+ const headers = sharedHeaders("CreateParameterGroup");
498
+ let body;
499
+ body = JSON.stringify(smithyClient._json(input));
500
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
501
+ };
502
+ const se_CreateSubnetGroupCommand = async (input, context) => {
503
+ const headers = sharedHeaders("CreateSubnetGroup");
504
+ let body;
505
+ body = JSON.stringify(smithyClient._json(input));
506
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
507
+ };
508
+ const se_DecreaseReplicationFactorCommand = async (input, context) => {
509
+ const headers = sharedHeaders("DecreaseReplicationFactor");
510
+ let body;
511
+ body = JSON.stringify(smithyClient._json(input));
512
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
513
+ };
514
+ const se_DeleteClusterCommand = async (input, context) => {
515
+ const headers = sharedHeaders("DeleteCluster");
516
+ let body;
517
+ body = JSON.stringify(smithyClient._json(input));
518
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
519
+ };
520
+ const se_DeleteParameterGroupCommand = async (input, context) => {
521
+ const headers = sharedHeaders("DeleteParameterGroup");
522
+ let body;
523
+ body = JSON.stringify(smithyClient._json(input));
524
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
525
+ };
526
+ const se_DeleteSubnetGroupCommand = async (input, context) => {
527
+ const headers = sharedHeaders("DeleteSubnetGroup");
528
+ let body;
529
+ body = JSON.stringify(smithyClient._json(input));
530
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
531
+ };
532
+ const se_DescribeClustersCommand = async (input, context) => {
533
+ const headers = sharedHeaders("DescribeClusters");
534
+ let body;
535
+ body = JSON.stringify(smithyClient._json(input));
536
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
537
+ };
538
+ const se_DescribeDefaultParametersCommand = async (input, context) => {
539
+ const headers = sharedHeaders("DescribeDefaultParameters");
540
+ let body;
541
+ body = JSON.stringify(smithyClient._json(input));
542
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
543
+ };
544
+ const se_DescribeEventsCommand = async (input, context) => {
545
+ const headers = sharedHeaders("DescribeEvents");
546
+ let body;
547
+ body = JSON.stringify(se_DescribeEventsRequest(input));
548
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
549
+ };
550
+ const se_DescribeParameterGroupsCommand = async (input, context) => {
551
+ const headers = sharedHeaders("DescribeParameterGroups");
552
+ let body;
553
+ body = JSON.stringify(smithyClient._json(input));
554
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
555
+ };
556
+ const se_DescribeParametersCommand = async (input, context) => {
557
+ const headers = sharedHeaders("DescribeParameters");
558
+ let body;
559
+ body = JSON.stringify(smithyClient._json(input));
560
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
561
+ };
562
+ const se_DescribeSubnetGroupsCommand = async (input, context) => {
563
+ const headers = sharedHeaders("DescribeSubnetGroups");
564
+ let body;
565
+ body = JSON.stringify(smithyClient._json(input));
566
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
567
+ };
568
+ const se_IncreaseReplicationFactorCommand = async (input, context) => {
569
+ const headers = sharedHeaders("IncreaseReplicationFactor");
570
+ let body;
571
+ body = JSON.stringify(smithyClient._json(input));
572
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
573
+ };
574
+ const se_ListTagsCommand = async (input, context) => {
575
+ const headers = sharedHeaders("ListTags");
576
+ let body;
577
+ body = JSON.stringify(smithyClient._json(input));
578
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
579
+ };
580
+ const se_RebootNodeCommand = async (input, context) => {
581
+ const headers = sharedHeaders("RebootNode");
582
+ let body;
583
+ body = JSON.stringify(smithyClient._json(input));
584
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
585
+ };
586
+ const se_TagResourceCommand = async (input, context) => {
587
+ const headers = sharedHeaders("TagResource");
588
+ let body;
589
+ body = JSON.stringify(smithyClient._json(input));
590
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
591
+ };
592
+ const se_UntagResourceCommand = async (input, context) => {
593
+ const headers = sharedHeaders("UntagResource");
594
+ let body;
595
+ body = JSON.stringify(smithyClient._json(input));
596
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
597
+ };
598
+ const se_UpdateClusterCommand = async (input, context) => {
599
+ const headers = sharedHeaders("UpdateCluster");
600
+ let body;
601
+ body = JSON.stringify(smithyClient._json(input));
602
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
603
+ };
604
+ const se_UpdateParameterGroupCommand = async (input, context) => {
605
+ const headers = sharedHeaders("UpdateParameterGroup");
606
+ let body;
607
+ body = JSON.stringify(smithyClient._json(input));
608
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
609
+ };
610
+ const se_UpdateSubnetGroupCommand = async (input, context) => {
611
+ const headers = sharedHeaders("UpdateSubnetGroup");
612
+ let body;
613
+ body = JSON.stringify(smithyClient._json(input));
614
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
615
+ };
616
+ const de_CreateClusterCommand = async (output, context) => {
617
+ if (output.statusCode >= 300) {
618
+ return de_CommandError(output, context);
619
+ }
620
+ const data = await core$1.parseJsonBody(output.body, context);
621
+ let contents = {};
622
+ contents = de_CreateClusterResponse(data);
623
+ const response = {
624
+ $metadata: deserializeMetadata(output),
625
+ ...contents,
626
+ };
627
+ return response;
628
+ };
629
+ const de_CreateParameterGroupCommand = async (output, context) => {
630
+ if (output.statusCode >= 300) {
631
+ return de_CommandError(output, context);
632
+ }
633
+ const data = await core$1.parseJsonBody(output.body, context);
634
+ let contents = {};
635
+ contents = smithyClient._json(data);
636
+ const response = {
637
+ $metadata: deserializeMetadata(output),
638
+ ...contents,
639
+ };
640
+ return response;
641
+ };
642
+ const de_CreateSubnetGroupCommand = async (output, context) => {
643
+ if (output.statusCode >= 300) {
644
+ return de_CommandError(output, context);
645
+ }
646
+ const data = await core$1.parseJsonBody(output.body, context);
647
+ let contents = {};
648
+ contents = smithyClient._json(data);
649
+ const response = {
650
+ $metadata: deserializeMetadata(output),
651
+ ...contents,
652
+ };
653
+ return response;
654
+ };
655
+ const de_DecreaseReplicationFactorCommand = async (output, context) => {
656
+ if (output.statusCode >= 300) {
657
+ return de_CommandError(output, context);
658
+ }
659
+ const data = await core$1.parseJsonBody(output.body, context);
660
+ let contents = {};
661
+ contents = de_DecreaseReplicationFactorResponse(data);
662
+ const response = {
663
+ $metadata: deserializeMetadata(output),
664
+ ...contents,
665
+ };
666
+ return response;
667
+ };
668
+ const de_DeleteClusterCommand = async (output, context) => {
669
+ if (output.statusCode >= 300) {
670
+ return de_CommandError(output, context);
671
+ }
672
+ const data = await core$1.parseJsonBody(output.body, context);
673
+ let contents = {};
674
+ contents = de_DeleteClusterResponse(data);
675
+ const response = {
676
+ $metadata: deserializeMetadata(output),
677
+ ...contents,
678
+ };
679
+ return response;
680
+ };
681
+ const de_DeleteParameterGroupCommand = async (output, context) => {
682
+ if (output.statusCode >= 300) {
683
+ return de_CommandError(output, context);
684
+ }
685
+ const data = await core$1.parseJsonBody(output.body, context);
686
+ let contents = {};
687
+ contents = smithyClient._json(data);
688
+ const response = {
689
+ $metadata: deserializeMetadata(output),
690
+ ...contents,
691
+ };
692
+ return response;
693
+ };
694
+ const de_DeleteSubnetGroupCommand = async (output, context) => {
695
+ if (output.statusCode >= 300) {
696
+ return de_CommandError(output, context);
697
+ }
698
+ const data = await core$1.parseJsonBody(output.body, context);
699
+ let contents = {};
700
+ contents = smithyClient._json(data);
701
+ const response = {
702
+ $metadata: deserializeMetadata(output),
703
+ ...contents,
704
+ };
705
+ return response;
706
+ };
707
+ const de_DescribeClustersCommand = async (output, context) => {
708
+ if (output.statusCode >= 300) {
709
+ return de_CommandError(output, context);
710
+ }
711
+ const data = await core$1.parseJsonBody(output.body, context);
712
+ let contents = {};
713
+ contents = de_DescribeClustersResponse(data);
714
+ const response = {
715
+ $metadata: deserializeMetadata(output),
716
+ ...contents,
717
+ };
718
+ return response;
719
+ };
720
+ const de_DescribeDefaultParametersCommand = async (output, context) => {
721
+ if (output.statusCode >= 300) {
722
+ return de_CommandError(output, context);
723
+ }
724
+ const data = await core$1.parseJsonBody(output.body, context);
725
+ let contents = {};
726
+ contents = smithyClient._json(data);
727
+ const response = {
728
+ $metadata: deserializeMetadata(output),
729
+ ...contents,
730
+ };
731
+ return response;
732
+ };
733
+ const de_DescribeEventsCommand = async (output, context) => {
734
+ if (output.statusCode >= 300) {
735
+ return de_CommandError(output, context);
736
+ }
737
+ const data = await core$1.parseJsonBody(output.body, context);
738
+ let contents = {};
739
+ contents = de_DescribeEventsResponse(data);
740
+ const response = {
741
+ $metadata: deserializeMetadata(output),
742
+ ...contents,
743
+ };
744
+ return response;
745
+ };
746
+ const de_DescribeParameterGroupsCommand = async (output, context) => {
747
+ if (output.statusCode >= 300) {
748
+ return de_CommandError(output, context);
749
+ }
750
+ const data = await core$1.parseJsonBody(output.body, context);
751
+ let contents = {};
752
+ contents = smithyClient._json(data);
753
+ const response = {
754
+ $metadata: deserializeMetadata(output),
755
+ ...contents,
756
+ };
757
+ return response;
758
+ };
759
+ const de_DescribeParametersCommand = async (output, context) => {
760
+ if (output.statusCode >= 300) {
761
+ return de_CommandError(output, context);
762
+ }
763
+ const data = await core$1.parseJsonBody(output.body, context);
764
+ let contents = {};
765
+ contents = smithyClient._json(data);
766
+ const response = {
767
+ $metadata: deserializeMetadata(output),
768
+ ...contents,
769
+ };
770
+ return response;
771
+ };
772
+ const de_DescribeSubnetGroupsCommand = async (output, context) => {
773
+ if (output.statusCode >= 300) {
774
+ return de_CommandError(output, context);
775
+ }
776
+ const data = await core$1.parseJsonBody(output.body, context);
777
+ let contents = {};
778
+ contents = smithyClient._json(data);
779
+ const response = {
780
+ $metadata: deserializeMetadata(output),
781
+ ...contents,
782
+ };
783
+ return response;
784
+ };
785
+ const de_IncreaseReplicationFactorCommand = async (output, context) => {
786
+ if (output.statusCode >= 300) {
787
+ return de_CommandError(output, context);
788
+ }
789
+ const data = await core$1.parseJsonBody(output.body, context);
790
+ let contents = {};
791
+ contents = de_IncreaseReplicationFactorResponse(data);
792
+ const response = {
793
+ $metadata: deserializeMetadata(output),
794
+ ...contents,
795
+ };
796
+ return response;
797
+ };
798
+ const de_ListTagsCommand = async (output, context) => {
799
+ if (output.statusCode >= 300) {
800
+ return de_CommandError(output, context);
801
+ }
802
+ const data = await core$1.parseJsonBody(output.body, context);
803
+ let contents = {};
804
+ contents = smithyClient._json(data);
805
+ const response = {
806
+ $metadata: deserializeMetadata(output),
807
+ ...contents,
808
+ };
809
+ return response;
810
+ };
811
+ const de_RebootNodeCommand = async (output, context) => {
812
+ if (output.statusCode >= 300) {
813
+ return de_CommandError(output, context);
814
+ }
815
+ const data = await core$1.parseJsonBody(output.body, context);
816
+ let contents = {};
817
+ contents = de_RebootNodeResponse(data);
818
+ const response = {
819
+ $metadata: deserializeMetadata(output),
820
+ ...contents,
821
+ };
822
+ return response;
823
+ };
824
+ const de_TagResourceCommand = async (output, context) => {
825
+ if (output.statusCode >= 300) {
826
+ return de_CommandError(output, context);
827
+ }
828
+ const data = await core$1.parseJsonBody(output.body, context);
829
+ let contents = {};
830
+ contents = smithyClient._json(data);
831
+ const response = {
832
+ $metadata: deserializeMetadata(output),
833
+ ...contents,
834
+ };
835
+ return response;
836
+ };
837
+ const de_UntagResourceCommand = async (output, context) => {
838
+ if (output.statusCode >= 300) {
839
+ return de_CommandError(output, context);
840
+ }
841
+ const data = await core$1.parseJsonBody(output.body, context);
842
+ let contents = {};
843
+ contents = smithyClient._json(data);
844
+ const response = {
845
+ $metadata: deserializeMetadata(output),
846
+ ...contents,
847
+ };
848
+ return response;
849
+ };
850
+ const de_UpdateClusterCommand = async (output, context) => {
851
+ if (output.statusCode >= 300) {
852
+ return de_CommandError(output, context);
853
+ }
854
+ const data = await core$1.parseJsonBody(output.body, context);
855
+ let contents = {};
856
+ contents = de_UpdateClusterResponse(data);
857
+ const response = {
858
+ $metadata: deserializeMetadata(output),
859
+ ...contents,
860
+ };
861
+ return response;
862
+ };
863
+ const de_UpdateParameterGroupCommand = async (output, context) => {
864
+ if (output.statusCode >= 300) {
865
+ return de_CommandError(output, context);
866
+ }
867
+ const data = await core$1.parseJsonBody(output.body, context);
868
+ let contents = {};
869
+ contents = smithyClient._json(data);
870
+ const response = {
871
+ $metadata: deserializeMetadata(output),
872
+ ...contents,
873
+ };
874
+ return response;
875
+ };
876
+ const de_UpdateSubnetGroupCommand = async (output, context) => {
877
+ if (output.statusCode >= 300) {
878
+ return de_CommandError(output, context);
879
+ }
880
+ const data = await core$1.parseJsonBody(output.body, context);
881
+ let contents = {};
882
+ contents = smithyClient._json(data);
883
+ const response = {
884
+ $metadata: deserializeMetadata(output),
885
+ ...contents,
886
+ };
887
+ return response;
888
+ };
889
+ const de_CommandError = async (output, context) => {
890
+ const parsedOutput = {
891
+ ...output,
892
+ body: await core$1.parseJsonErrorBody(output.body, context),
893
+ };
894
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
895
+ switch (errorCode) {
896
+ case "ClusterAlreadyExistsFault":
897
+ case "com.amazonaws.dax#ClusterAlreadyExistsFault":
898
+ throw await de_ClusterAlreadyExistsFaultRes(parsedOutput);
899
+ case "ClusterQuotaForCustomerExceededFault":
900
+ case "com.amazonaws.dax#ClusterQuotaForCustomerExceededFault":
901
+ throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput);
902
+ case "InsufficientClusterCapacityFault":
903
+ case "com.amazonaws.dax#InsufficientClusterCapacityFault":
904
+ throw await de_InsufficientClusterCapacityFaultRes(parsedOutput);
905
+ case "InvalidClusterStateFault":
906
+ case "com.amazonaws.dax#InvalidClusterStateFault":
907
+ throw await de_InvalidClusterStateFaultRes(parsedOutput);
908
+ case "InvalidParameterCombinationException":
909
+ case "com.amazonaws.dax#InvalidParameterCombinationException":
910
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput);
911
+ case "InvalidParameterGroupStateFault":
912
+ case "com.amazonaws.dax#InvalidParameterGroupStateFault":
913
+ throw await de_InvalidParameterGroupStateFaultRes(parsedOutput);
914
+ case "InvalidParameterValueException":
915
+ case "com.amazonaws.dax#InvalidParameterValueException":
916
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput);
917
+ case "InvalidVPCNetworkStateFault":
918
+ case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
919
+ throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput);
920
+ case "NodeQuotaForClusterExceededFault":
921
+ case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
922
+ throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput);
923
+ case "NodeQuotaForCustomerExceededFault":
924
+ case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
925
+ throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput);
926
+ case "ParameterGroupNotFoundFault":
927
+ case "com.amazonaws.dax#ParameterGroupNotFoundFault":
928
+ throw await de_ParameterGroupNotFoundFaultRes(parsedOutput);
929
+ case "ServiceLinkedRoleNotFoundFault":
930
+ case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
931
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput);
932
+ case "ServiceQuotaExceededException":
933
+ case "com.amazonaws.dax#ServiceQuotaExceededException":
934
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
935
+ case "SubnetGroupNotFoundFault":
936
+ case "com.amazonaws.dax#SubnetGroupNotFoundFault":
937
+ throw await de_SubnetGroupNotFoundFaultRes(parsedOutput);
938
+ case "TagQuotaPerResourceExceeded":
939
+ case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
940
+ throw await de_TagQuotaPerResourceExceededRes(parsedOutput);
941
+ case "ParameterGroupAlreadyExistsFault":
942
+ case "com.amazonaws.dax#ParameterGroupAlreadyExistsFault":
943
+ throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput);
944
+ case "ParameterGroupQuotaExceededFault":
945
+ case "com.amazonaws.dax#ParameterGroupQuotaExceededFault":
946
+ throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput);
947
+ case "InvalidSubnet":
948
+ case "com.amazonaws.dax#InvalidSubnet":
949
+ throw await de_InvalidSubnetRes(parsedOutput);
950
+ case "SubnetGroupAlreadyExistsFault":
951
+ case "com.amazonaws.dax#SubnetGroupAlreadyExistsFault":
952
+ throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput);
953
+ case "SubnetGroupQuotaExceededFault":
954
+ case "com.amazonaws.dax#SubnetGroupQuotaExceededFault":
955
+ throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput);
956
+ case "SubnetNotAllowedFault":
957
+ case "com.amazonaws.dax#SubnetNotAllowedFault":
958
+ throw await de_SubnetNotAllowedFaultRes(parsedOutput);
959
+ case "SubnetQuotaExceededFault":
960
+ case "com.amazonaws.dax#SubnetQuotaExceededFault":
961
+ throw await de_SubnetQuotaExceededFaultRes(parsedOutput);
962
+ case "ClusterNotFoundFault":
963
+ case "com.amazonaws.dax#ClusterNotFoundFault":
964
+ throw await de_ClusterNotFoundFaultRes(parsedOutput);
965
+ case "NodeNotFoundFault":
966
+ case "com.amazonaws.dax#NodeNotFoundFault":
967
+ throw await de_NodeNotFoundFaultRes(parsedOutput);
968
+ case "SubnetGroupInUseFault":
969
+ case "com.amazonaws.dax#SubnetGroupInUseFault":
970
+ throw await de_SubnetGroupInUseFaultRes(parsedOutput);
971
+ case "InvalidARNFault":
972
+ case "com.amazonaws.dax#InvalidARNFault":
973
+ throw await de_InvalidARNFaultRes(parsedOutput);
974
+ case "TagNotFoundFault":
975
+ case "com.amazonaws.dax#TagNotFoundFault":
976
+ throw await de_TagNotFoundFaultRes(parsedOutput);
977
+ case "SubnetInUse":
978
+ case "com.amazonaws.dax#SubnetInUse":
979
+ throw await de_SubnetInUseRes(parsedOutput);
980
+ default:
981
+ const parsedBody = parsedOutput.body;
982
+ return throwDefaultError({
983
+ output,
984
+ parsedBody,
985
+ errorCode,
986
+ });
987
+ }
988
+ };
989
+ const de_ClusterAlreadyExistsFaultRes = async (parsedOutput, context) => {
990
+ const body = parsedOutput.body;
991
+ const deserialized = smithyClient._json(body);
992
+ const exception = new ClusterAlreadyExistsFault({
993
+ $metadata: deserializeMetadata(parsedOutput),
994
+ ...deserialized,
271
995
  });
272
- Object.setPrototypeOf(this, _ClusterAlreadyExistsFault.prototype);
273
- }
274
- };
275
- var ClusterQuotaForCustomerExceededFault = class _ClusterQuotaForCustomerExceededFault extends DAXServiceException {
276
- static {
277
- __name(this, "ClusterQuotaForCustomerExceededFault");
278
- }
279
- name = "ClusterQuotaForCustomerExceededFault";
280
- $fault = "client";
281
- /**
282
- * @internal
283
- */
284
- constructor(opts) {
285
- super({
286
- name: "ClusterQuotaForCustomerExceededFault",
287
- $fault: "client",
288
- ...opts
996
+ return smithyClient.decorateServiceException(exception, body);
997
+ };
998
+ const de_ClusterNotFoundFaultRes = async (parsedOutput, context) => {
999
+ const body = parsedOutput.body;
1000
+ const deserialized = smithyClient._json(body);
1001
+ const exception = new ClusterNotFoundFault({
1002
+ $metadata: deserializeMetadata(parsedOutput),
1003
+ ...deserialized,
289
1004
  });
290
- Object.setPrototypeOf(this, _ClusterQuotaForCustomerExceededFault.prototype);
291
- }
292
- };
293
- var ClusterEndpointEncryptionType = {
294
- NONE: "NONE",
295
- TLS: "TLS"
296
- };
297
- var NetworkType = {
298
- DUAL_STACK: "dual_stack",
299
- IPV4: "ipv4",
300
- IPV6: "ipv6"
301
- };
302
- var SSEStatus = {
303
- DISABLED: "DISABLED",
304
- DISABLING: "DISABLING",
305
- ENABLED: "ENABLED",
306
- ENABLING: "ENABLING"
307
- };
308
- var InsufficientClusterCapacityFault = class _InsufficientClusterCapacityFault extends DAXServiceException {
309
- static {
310
- __name(this, "InsufficientClusterCapacityFault");
311
- }
312
- name = "InsufficientClusterCapacityFault";
313
- $fault = "client";
314
- /**
315
- * @internal
316
- */
317
- constructor(opts) {
318
- super({
319
- name: "InsufficientClusterCapacityFault",
320
- $fault: "client",
321
- ...opts
1005
+ return smithyClient.decorateServiceException(exception, body);
1006
+ };
1007
+ const de_ClusterQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
1008
+ const body = parsedOutput.body;
1009
+ const deserialized = smithyClient._json(body);
1010
+ const exception = new ClusterQuotaForCustomerExceededFault({
1011
+ $metadata: deserializeMetadata(parsedOutput),
1012
+ ...deserialized,
322
1013
  });
323
- Object.setPrototypeOf(this, _InsufficientClusterCapacityFault.prototype);
324
- }
325
- };
326
- var InvalidClusterStateFault = class _InvalidClusterStateFault extends DAXServiceException {
327
- static {
328
- __name(this, "InvalidClusterStateFault");
329
- }
330
- name = "InvalidClusterStateFault";
331
- $fault = "client";
332
- /**
333
- * @internal
334
- */
335
- constructor(opts) {
336
- super({
337
- name: "InvalidClusterStateFault",
338
- $fault: "client",
339
- ...opts
1014
+ return smithyClient.decorateServiceException(exception, body);
1015
+ };
1016
+ const de_InsufficientClusterCapacityFaultRes = async (parsedOutput, context) => {
1017
+ const body = parsedOutput.body;
1018
+ const deserialized = smithyClient._json(body);
1019
+ const exception = new InsufficientClusterCapacityFault({
1020
+ $metadata: deserializeMetadata(parsedOutput),
1021
+ ...deserialized,
340
1022
  });
341
- Object.setPrototypeOf(this, _InvalidClusterStateFault.prototype);
342
- }
343
- };
344
- var InvalidParameterCombinationException = class _InvalidParameterCombinationException extends DAXServiceException {
345
- static {
346
- __name(this, "InvalidParameterCombinationException");
347
- }
348
- name = "InvalidParameterCombinationException";
349
- $fault = "client";
350
- /**
351
- * @internal
352
- */
353
- constructor(opts) {
354
- super({
355
- name: "InvalidParameterCombinationException",
356
- $fault: "client",
357
- ...opts
1023
+ return smithyClient.decorateServiceException(exception, body);
1024
+ };
1025
+ const de_InvalidARNFaultRes = async (parsedOutput, context) => {
1026
+ const body = parsedOutput.body;
1027
+ const deserialized = smithyClient._json(body);
1028
+ const exception = new InvalidARNFault({
1029
+ $metadata: deserializeMetadata(parsedOutput),
1030
+ ...deserialized,
358
1031
  });
359
- Object.setPrototypeOf(this, _InvalidParameterCombinationException.prototype);
360
- }
361
- };
362
- var InvalidParameterGroupStateFault = class _InvalidParameterGroupStateFault extends DAXServiceException {
363
- static {
364
- __name(this, "InvalidParameterGroupStateFault");
365
- }
366
- name = "InvalidParameterGroupStateFault";
367
- $fault = "client";
368
- /**
369
- * @internal
370
- */
371
- constructor(opts) {
372
- super({
373
- name: "InvalidParameterGroupStateFault",
374
- $fault: "client",
375
- ...opts
1032
+ return smithyClient.decorateServiceException(exception, body);
1033
+ };
1034
+ const de_InvalidClusterStateFaultRes = async (parsedOutput, context) => {
1035
+ const body = parsedOutput.body;
1036
+ const deserialized = smithyClient._json(body);
1037
+ const exception = new InvalidClusterStateFault({
1038
+ $metadata: deserializeMetadata(parsedOutput),
1039
+ ...deserialized,
376
1040
  });
377
- Object.setPrototypeOf(this, _InvalidParameterGroupStateFault.prototype);
378
- }
379
- };
380
- var InvalidParameterValueException = class _InvalidParameterValueException extends DAXServiceException {
381
- static {
382
- __name(this, "InvalidParameterValueException");
383
- }
384
- name = "InvalidParameterValueException";
385
- $fault = "client";
386
- /**
387
- * @internal
388
- */
389
- constructor(opts) {
390
- super({
391
- name: "InvalidParameterValueException",
392
- $fault: "client",
393
- ...opts
1041
+ return smithyClient.decorateServiceException(exception, body);
1042
+ };
1043
+ const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
1044
+ const body = parsedOutput.body;
1045
+ const deserialized = smithyClient._json(body);
1046
+ const exception = new InvalidParameterCombinationException({
1047
+ $metadata: deserializeMetadata(parsedOutput),
1048
+ ...deserialized,
394
1049
  });
395
- Object.setPrototypeOf(this, _InvalidParameterValueException.prototype);
396
- }
397
- };
398
- var InvalidVPCNetworkStateFault = class _InvalidVPCNetworkStateFault extends DAXServiceException {
399
- static {
400
- __name(this, "InvalidVPCNetworkStateFault");
401
- }
402
- name = "InvalidVPCNetworkStateFault";
403
- $fault = "client";
404
- /**
405
- * @internal
406
- */
407
- constructor(opts) {
408
- super({
409
- name: "InvalidVPCNetworkStateFault",
410
- $fault: "client",
411
- ...opts
1050
+ return smithyClient.decorateServiceException(exception, body);
1051
+ };
1052
+ const de_InvalidParameterGroupStateFaultRes = async (parsedOutput, context) => {
1053
+ const body = parsedOutput.body;
1054
+ const deserialized = smithyClient._json(body);
1055
+ const exception = new InvalidParameterGroupStateFault({
1056
+ $metadata: deserializeMetadata(parsedOutput),
1057
+ ...deserialized,
412
1058
  });
413
- Object.setPrototypeOf(this, _InvalidVPCNetworkStateFault.prototype);
414
- }
415
- };
416
- var NodeQuotaForClusterExceededFault = class _NodeQuotaForClusterExceededFault extends DAXServiceException {
417
- static {
418
- __name(this, "NodeQuotaForClusterExceededFault");
419
- }
420
- name = "NodeQuotaForClusterExceededFault";
421
- $fault = "client";
422
- /**
423
- * @internal
424
- */
425
- constructor(opts) {
426
- super({
427
- name: "NodeQuotaForClusterExceededFault",
428
- $fault: "client",
429
- ...opts
1059
+ return smithyClient.decorateServiceException(exception, body);
1060
+ };
1061
+ const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
1062
+ const body = parsedOutput.body;
1063
+ const deserialized = smithyClient._json(body);
1064
+ const exception = new InvalidParameterValueException({
1065
+ $metadata: deserializeMetadata(parsedOutput),
1066
+ ...deserialized,
430
1067
  });
431
- Object.setPrototypeOf(this, _NodeQuotaForClusterExceededFault.prototype);
432
- }
433
- };
434
- var NodeQuotaForCustomerExceededFault = class _NodeQuotaForCustomerExceededFault extends DAXServiceException {
435
- static {
436
- __name(this, "NodeQuotaForCustomerExceededFault");
437
- }
438
- name = "NodeQuotaForCustomerExceededFault";
439
- $fault = "client";
440
- /**
441
- * @internal
442
- */
443
- constructor(opts) {
444
- super({
445
- name: "NodeQuotaForCustomerExceededFault",
446
- $fault: "client",
447
- ...opts
1068
+ return smithyClient.decorateServiceException(exception, body);
1069
+ };
1070
+ const de_InvalidSubnetRes = async (parsedOutput, context) => {
1071
+ const body = parsedOutput.body;
1072
+ const deserialized = smithyClient._json(body);
1073
+ const exception = new InvalidSubnet({
1074
+ $metadata: deserializeMetadata(parsedOutput),
1075
+ ...deserialized,
448
1076
  });
449
- Object.setPrototypeOf(this, _NodeQuotaForCustomerExceededFault.prototype);
450
- }
451
- };
452
- var ParameterGroupNotFoundFault = class _ParameterGroupNotFoundFault extends DAXServiceException {
453
- static {
454
- __name(this, "ParameterGroupNotFoundFault");
455
- }
456
- name = "ParameterGroupNotFoundFault";
457
- $fault = "client";
458
- /**
459
- * @internal
460
- */
461
- constructor(opts) {
462
- super({
463
- name: "ParameterGroupNotFoundFault",
464
- $fault: "client",
465
- ...opts
1077
+ return smithyClient.decorateServiceException(exception, body);
1078
+ };
1079
+ const de_InvalidVPCNetworkStateFaultRes = async (parsedOutput, context) => {
1080
+ const body = parsedOutput.body;
1081
+ const deserialized = smithyClient._json(body);
1082
+ const exception = new InvalidVPCNetworkStateFault({
1083
+ $metadata: deserializeMetadata(parsedOutput),
1084
+ ...deserialized,
466
1085
  });
467
- Object.setPrototypeOf(this, _ParameterGroupNotFoundFault.prototype);
468
- }
469
- };
470
- var ServiceLinkedRoleNotFoundFault = class _ServiceLinkedRoleNotFoundFault extends DAXServiceException {
471
- static {
472
- __name(this, "ServiceLinkedRoleNotFoundFault");
473
- }
474
- name = "ServiceLinkedRoleNotFoundFault";
475
- $fault = "client";
476
- /**
477
- * @internal
478
- */
479
- constructor(opts) {
480
- super({
481
- name: "ServiceLinkedRoleNotFoundFault",
482
- $fault: "client",
483
- ...opts
1086
+ return smithyClient.decorateServiceException(exception, body);
1087
+ };
1088
+ const de_NodeNotFoundFaultRes = async (parsedOutput, context) => {
1089
+ const body = parsedOutput.body;
1090
+ const deserialized = smithyClient._json(body);
1091
+ const exception = new NodeNotFoundFault({
1092
+ $metadata: deserializeMetadata(parsedOutput),
1093
+ ...deserialized,
484
1094
  });
485
- Object.setPrototypeOf(this, _ServiceLinkedRoleNotFoundFault.prototype);
486
- }
487
- };
488
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends DAXServiceException {
489
- static {
490
- __name(this, "ServiceQuotaExceededException");
491
- }
492
- name = "ServiceQuotaExceededException";
493
- $fault = "client";
494
- /**
495
- * @internal
496
- */
497
- constructor(opts) {
498
- super({
499
- name: "ServiceQuotaExceededException",
500
- $fault: "client",
501
- ...opts
1095
+ return smithyClient.decorateServiceException(exception, body);
1096
+ };
1097
+ const de_NodeQuotaForClusterExceededFaultRes = async (parsedOutput, context) => {
1098
+ const body = parsedOutput.body;
1099
+ const deserialized = smithyClient._json(body);
1100
+ const exception = new NodeQuotaForClusterExceededFault({
1101
+ $metadata: deserializeMetadata(parsedOutput),
1102
+ ...deserialized,
502
1103
  });
503
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
504
- }
505
- };
506
- var SubnetGroupNotFoundFault = class _SubnetGroupNotFoundFault extends DAXServiceException {
507
- static {
508
- __name(this, "SubnetGroupNotFoundFault");
509
- }
510
- name = "SubnetGroupNotFoundFault";
511
- $fault = "client";
512
- /**
513
- * @internal
514
- */
515
- constructor(opts) {
516
- super({
517
- name: "SubnetGroupNotFoundFault",
518
- $fault: "client",
519
- ...opts
1104
+ return smithyClient.decorateServiceException(exception, body);
1105
+ };
1106
+ const de_NodeQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
1107
+ const body = parsedOutput.body;
1108
+ const deserialized = smithyClient._json(body);
1109
+ const exception = new NodeQuotaForCustomerExceededFault({
1110
+ $metadata: deserializeMetadata(parsedOutput),
1111
+ ...deserialized,
520
1112
  });
521
- Object.setPrototypeOf(this, _SubnetGroupNotFoundFault.prototype);
522
- }
523
- };
524
- var TagQuotaPerResourceExceeded = class _TagQuotaPerResourceExceeded extends DAXServiceException {
525
- static {
526
- __name(this, "TagQuotaPerResourceExceeded");
527
- }
528
- name = "TagQuotaPerResourceExceeded";
529
- $fault = "client";
530
- /**
531
- * @internal
532
- */
533
- constructor(opts) {
534
- super({
535
- name: "TagQuotaPerResourceExceeded",
536
- $fault: "client",
537
- ...opts
1113
+ return smithyClient.decorateServiceException(exception, body);
1114
+ };
1115
+ const de_ParameterGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
1116
+ const body = parsedOutput.body;
1117
+ const deserialized = smithyClient._json(body);
1118
+ const exception = new ParameterGroupAlreadyExistsFault({
1119
+ $metadata: deserializeMetadata(parsedOutput),
1120
+ ...deserialized,
538
1121
  });
539
- Object.setPrototypeOf(this, _TagQuotaPerResourceExceeded.prototype);
540
- }
541
- };
542
- var ParameterGroupAlreadyExistsFault = class _ParameterGroupAlreadyExistsFault extends DAXServiceException {
543
- static {
544
- __name(this, "ParameterGroupAlreadyExistsFault");
545
- }
546
- name = "ParameterGroupAlreadyExistsFault";
547
- $fault = "client";
548
- /**
549
- * @internal
550
- */
551
- constructor(opts) {
552
- super({
553
- name: "ParameterGroupAlreadyExistsFault",
554
- $fault: "client",
555
- ...opts
1122
+ return smithyClient.decorateServiceException(exception, body);
1123
+ };
1124
+ const de_ParameterGroupNotFoundFaultRes = async (parsedOutput, context) => {
1125
+ const body = parsedOutput.body;
1126
+ const deserialized = smithyClient._json(body);
1127
+ const exception = new ParameterGroupNotFoundFault({
1128
+ $metadata: deserializeMetadata(parsedOutput),
1129
+ ...deserialized,
556
1130
  });
557
- Object.setPrototypeOf(this, _ParameterGroupAlreadyExistsFault.prototype);
558
- }
559
- };
560
- var ParameterGroupQuotaExceededFault = class _ParameterGroupQuotaExceededFault extends DAXServiceException {
561
- static {
562
- __name(this, "ParameterGroupQuotaExceededFault");
563
- }
564
- name = "ParameterGroupQuotaExceededFault";
565
- $fault = "client";
566
- /**
567
- * @internal
568
- */
569
- constructor(opts) {
570
- super({
571
- name: "ParameterGroupQuotaExceededFault",
572
- $fault: "client",
573
- ...opts
1131
+ return smithyClient.decorateServiceException(exception, body);
1132
+ };
1133
+ const de_ParameterGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
1134
+ const body = parsedOutput.body;
1135
+ const deserialized = smithyClient._json(body);
1136
+ const exception = new ParameterGroupQuotaExceededFault({
1137
+ $metadata: deserializeMetadata(parsedOutput),
1138
+ ...deserialized,
574
1139
  });
575
- Object.setPrototypeOf(this, _ParameterGroupQuotaExceededFault.prototype);
576
- }
577
- };
578
- var InvalidSubnet = class _InvalidSubnet extends DAXServiceException {
579
- static {
580
- __name(this, "InvalidSubnet");
581
- }
582
- name = "InvalidSubnet";
583
- $fault = "client";
584
- /**
585
- * @internal
586
- */
587
- constructor(opts) {
588
- super({
589
- name: "InvalidSubnet",
590
- $fault: "client",
591
- ...opts
1140
+ return smithyClient.decorateServiceException(exception, body);
1141
+ };
1142
+ const de_ServiceLinkedRoleNotFoundFaultRes = async (parsedOutput, context) => {
1143
+ const body = parsedOutput.body;
1144
+ const deserialized = smithyClient._json(body);
1145
+ const exception = new ServiceLinkedRoleNotFoundFault({
1146
+ $metadata: deserializeMetadata(parsedOutput),
1147
+ ...deserialized,
592
1148
  });
593
- Object.setPrototypeOf(this, _InvalidSubnet.prototype);
594
- }
595
- };
596
- var SubnetGroupAlreadyExistsFault = class _SubnetGroupAlreadyExistsFault extends DAXServiceException {
597
- static {
598
- __name(this, "SubnetGroupAlreadyExistsFault");
599
- }
600
- name = "SubnetGroupAlreadyExistsFault";
601
- $fault = "client";
602
- /**
603
- * @internal
604
- */
605
- constructor(opts) {
606
- super({
607
- name: "SubnetGroupAlreadyExistsFault",
608
- $fault: "client",
609
- ...opts
1149
+ return smithyClient.decorateServiceException(exception, body);
1150
+ };
1151
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1152
+ const body = parsedOutput.body;
1153
+ const deserialized = smithyClient._json(body);
1154
+ const exception = new ServiceQuotaExceededException({
1155
+ $metadata: deserializeMetadata(parsedOutput),
1156
+ ...deserialized,
610
1157
  });
611
- Object.setPrototypeOf(this, _SubnetGroupAlreadyExistsFault.prototype);
612
- }
613
- };
614
- var SubnetGroupQuotaExceededFault = class _SubnetGroupQuotaExceededFault extends DAXServiceException {
615
- static {
616
- __name(this, "SubnetGroupQuotaExceededFault");
617
- }
618
- name = "SubnetGroupQuotaExceededFault";
619
- $fault = "client";
620
- /**
621
- * @internal
622
- */
623
- constructor(opts) {
624
- super({
625
- name: "SubnetGroupQuotaExceededFault",
626
- $fault: "client",
627
- ...opts
1158
+ return smithyClient.decorateServiceException(exception, body);
1159
+ };
1160
+ const de_SubnetGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
1161
+ const body = parsedOutput.body;
1162
+ const deserialized = smithyClient._json(body);
1163
+ const exception = new SubnetGroupAlreadyExistsFault({
1164
+ $metadata: deserializeMetadata(parsedOutput),
1165
+ ...deserialized,
628
1166
  });
629
- Object.setPrototypeOf(this, _SubnetGroupQuotaExceededFault.prototype);
630
- }
631
- };
632
- var SubnetNotAllowedFault = class _SubnetNotAllowedFault extends DAXServiceException {
633
- static {
634
- __name(this, "SubnetNotAllowedFault");
635
- }
636
- name = "SubnetNotAllowedFault";
637
- $fault = "client";
638
- /**
639
- * @internal
640
- */
641
- constructor(opts) {
642
- super({
643
- name: "SubnetNotAllowedFault",
644
- $fault: "client",
645
- ...opts
1167
+ return smithyClient.decorateServiceException(exception, body);
1168
+ };
1169
+ const de_SubnetGroupInUseFaultRes = async (parsedOutput, context) => {
1170
+ const body = parsedOutput.body;
1171
+ const deserialized = smithyClient._json(body);
1172
+ const exception = new SubnetGroupInUseFault({
1173
+ $metadata: deserializeMetadata(parsedOutput),
1174
+ ...deserialized,
646
1175
  });
647
- Object.setPrototypeOf(this, _SubnetNotAllowedFault.prototype);
648
- }
649
- };
650
- var SubnetQuotaExceededFault = class _SubnetQuotaExceededFault extends DAXServiceException {
651
- static {
652
- __name(this, "SubnetQuotaExceededFault");
653
- }
654
- name = "SubnetQuotaExceededFault";
655
- $fault = "client";
656
- /**
657
- * @internal
658
- */
659
- constructor(opts) {
660
- super({
661
- name: "SubnetQuotaExceededFault",
662
- $fault: "client",
663
- ...opts
1176
+ return smithyClient.decorateServiceException(exception, body);
1177
+ };
1178
+ const de_SubnetGroupNotFoundFaultRes = async (parsedOutput, context) => {
1179
+ const body = parsedOutput.body;
1180
+ const deserialized = smithyClient._json(body);
1181
+ const exception = new SubnetGroupNotFoundFault({
1182
+ $metadata: deserializeMetadata(parsedOutput),
1183
+ ...deserialized,
664
1184
  });
665
- Object.setPrototypeOf(this, _SubnetQuotaExceededFault.prototype);
666
- }
667
- };
668
- var ClusterNotFoundFault = class _ClusterNotFoundFault extends DAXServiceException {
669
- static {
670
- __name(this, "ClusterNotFoundFault");
671
- }
672
- name = "ClusterNotFoundFault";
673
- $fault = "client";
674
- /**
675
- * @internal
676
- */
677
- constructor(opts) {
678
- super({
679
- name: "ClusterNotFoundFault",
680
- $fault: "client",
681
- ...opts
1185
+ return smithyClient.decorateServiceException(exception, body);
1186
+ };
1187
+ const de_SubnetGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
1188
+ const body = parsedOutput.body;
1189
+ const deserialized = smithyClient._json(body);
1190
+ const exception = new SubnetGroupQuotaExceededFault({
1191
+ $metadata: deserializeMetadata(parsedOutput),
1192
+ ...deserialized,
682
1193
  });
683
- Object.setPrototypeOf(this, _ClusterNotFoundFault.prototype);
684
- }
685
- };
686
- var NodeNotFoundFault = class _NodeNotFoundFault extends DAXServiceException {
687
- static {
688
- __name(this, "NodeNotFoundFault");
689
- }
690
- name = "NodeNotFoundFault";
691
- $fault = "client";
692
- /**
693
- * @internal
694
- */
695
- constructor(opts) {
696
- super({
697
- name: "NodeNotFoundFault",
698
- $fault: "client",
699
- ...opts
1194
+ return smithyClient.decorateServiceException(exception, body);
1195
+ };
1196
+ const de_SubnetInUseRes = async (parsedOutput, context) => {
1197
+ const body = parsedOutput.body;
1198
+ const deserialized = smithyClient._json(body);
1199
+ const exception = new SubnetInUse({
1200
+ $metadata: deserializeMetadata(parsedOutput),
1201
+ ...deserialized,
700
1202
  });
701
- Object.setPrototypeOf(this, _NodeNotFoundFault.prototype);
702
- }
703
- };
704
- var SubnetGroupInUseFault = class _SubnetGroupInUseFault extends DAXServiceException {
705
- static {
706
- __name(this, "SubnetGroupInUseFault");
707
- }
708
- name = "SubnetGroupInUseFault";
709
- $fault = "client";
710
- /**
711
- * @internal
712
- */
713
- constructor(opts) {
714
- super({
715
- name: "SubnetGroupInUseFault",
716
- $fault: "client",
717
- ...opts
1203
+ return smithyClient.decorateServiceException(exception, body);
1204
+ };
1205
+ const de_SubnetNotAllowedFaultRes = async (parsedOutput, context) => {
1206
+ const body = parsedOutput.body;
1207
+ const deserialized = smithyClient._json(body);
1208
+ const exception = new SubnetNotAllowedFault({
1209
+ $metadata: deserializeMetadata(parsedOutput),
1210
+ ...deserialized,
718
1211
  });
719
- Object.setPrototypeOf(this, _SubnetGroupInUseFault.prototype);
720
- }
721
- };
722
- var ChangeType = {
723
- IMMEDIATE: "IMMEDIATE",
724
- REQUIRES_REBOOT: "REQUIRES_REBOOT"
725
- };
726
- var IsModifiable = {
727
- CONDITIONAL: "CONDITIONAL",
728
- FALSE: "FALSE",
729
- TRUE: "TRUE"
730
- };
731
- var ParameterType = {
732
- DEFAULT: "DEFAULT",
733
- NODE_TYPE_SPECIFIC: "NODE_TYPE_SPECIFIC"
734
- };
735
- var SourceType = {
736
- CLUSTER: "CLUSTER",
737
- PARAMETER_GROUP: "PARAMETER_GROUP",
738
- SUBNET_GROUP: "SUBNET_GROUP"
739
- };
740
- var InvalidARNFault = class _InvalidARNFault extends DAXServiceException {
741
- static {
742
- __name(this, "InvalidARNFault");
743
- }
744
- name = "InvalidARNFault";
745
- $fault = "client";
746
- /**
747
- * @internal
748
- */
749
- constructor(opts) {
750
- super({
751
- name: "InvalidARNFault",
752
- $fault: "client",
753
- ...opts
1212
+ return smithyClient.decorateServiceException(exception, body);
1213
+ };
1214
+ const de_SubnetQuotaExceededFaultRes = async (parsedOutput, context) => {
1215
+ const body = parsedOutput.body;
1216
+ const deserialized = smithyClient._json(body);
1217
+ const exception = new SubnetQuotaExceededFault({
1218
+ $metadata: deserializeMetadata(parsedOutput),
1219
+ ...deserialized,
754
1220
  });
755
- Object.setPrototypeOf(this, _InvalidARNFault.prototype);
756
- }
757
- };
758
- var TagNotFoundFault = class _TagNotFoundFault extends DAXServiceException {
759
- static {
760
- __name(this, "TagNotFoundFault");
761
- }
762
- name = "TagNotFoundFault";
763
- $fault = "client";
764
- /**
765
- * @internal
766
- */
767
- constructor(opts) {
768
- super({
769
- name: "TagNotFoundFault",
770
- $fault: "client",
771
- ...opts
1221
+ return smithyClient.decorateServiceException(exception, body);
1222
+ };
1223
+ const de_TagNotFoundFaultRes = async (parsedOutput, context) => {
1224
+ const body = parsedOutput.body;
1225
+ const deserialized = smithyClient._json(body);
1226
+ const exception = new TagNotFoundFault({
1227
+ $metadata: deserializeMetadata(parsedOutput),
1228
+ ...deserialized,
772
1229
  });
773
- Object.setPrototypeOf(this, _TagNotFoundFault.prototype);
774
- }
775
- };
776
- var SubnetInUse = class _SubnetInUse extends DAXServiceException {
777
- static {
778
- __name(this, "SubnetInUse");
779
- }
780
- name = "SubnetInUse";
781
- $fault = "client";
782
- /**
783
- * @internal
784
- */
785
- constructor(opts) {
786
- super({
787
- name: "SubnetInUse",
788
- $fault: "client",
789
- ...opts
1230
+ return smithyClient.decorateServiceException(exception, body);
1231
+ };
1232
+ const de_TagQuotaPerResourceExceededRes = async (parsedOutput, context) => {
1233
+ const body = parsedOutput.body;
1234
+ const deserialized = smithyClient._json(body);
1235
+ const exception = new TagQuotaPerResourceExceeded({
1236
+ $metadata: deserializeMetadata(parsedOutput),
1237
+ ...deserialized,
790
1238
  });
791
- Object.setPrototypeOf(this, _SubnetInUse.prototype);
792
- }
1239
+ return smithyClient.decorateServiceException(exception, body);
793
1240
  };
794
-
795
- // src/protocols/Aws_json1_1.ts
796
- var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
797
- const headers = sharedHeaders("CreateCluster");
798
- let body;
799
- body = JSON.stringify((0, import_smithy_client._json)(input));
800
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
801
- }, "se_CreateClusterCommand");
802
- var se_CreateParameterGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
803
- const headers = sharedHeaders("CreateParameterGroup");
804
- let body;
805
- body = JSON.stringify((0, import_smithy_client._json)(input));
806
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
807
- }, "se_CreateParameterGroupCommand");
808
- var se_CreateSubnetGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
809
- const headers = sharedHeaders("CreateSubnetGroup");
810
- let body;
811
- body = JSON.stringify((0, import_smithy_client._json)(input));
812
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
813
- }, "se_CreateSubnetGroupCommand");
814
- var se_DecreaseReplicationFactorCommand = /* @__PURE__ */ __name(async (input, context) => {
815
- const headers = sharedHeaders("DecreaseReplicationFactor");
816
- let body;
817
- body = JSON.stringify((0, import_smithy_client._json)(input));
818
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
819
- }, "se_DecreaseReplicationFactorCommand");
820
- var se_DeleteClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
821
- const headers = sharedHeaders("DeleteCluster");
822
- let body;
823
- body = JSON.stringify((0, import_smithy_client._json)(input));
824
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
825
- }, "se_DeleteClusterCommand");
826
- var se_DeleteParameterGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
827
- const headers = sharedHeaders("DeleteParameterGroup");
828
- let body;
829
- body = JSON.stringify((0, import_smithy_client._json)(input));
830
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
831
- }, "se_DeleteParameterGroupCommand");
832
- var se_DeleteSubnetGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
833
- const headers = sharedHeaders("DeleteSubnetGroup");
834
- let body;
835
- body = JSON.stringify((0, import_smithy_client._json)(input));
836
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
837
- }, "se_DeleteSubnetGroupCommand");
838
- var se_DescribeClustersCommand = /* @__PURE__ */ __name(async (input, context) => {
839
- const headers = sharedHeaders("DescribeClusters");
840
- let body;
841
- body = JSON.stringify((0, import_smithy_client._json)(input));
842
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
843
- }, "se_DescribeClustersCommand");
844
- var se_DescribeDefaultParametersCommand = /* @__PURE__ */ __name(async (input, context) => {
845
- const headers = sharedHeaders("DescribeDefaultParameters");
846
- let body;
847
- body = JSON.stringify((0, import_smithy_client._json)(input));
848
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
849
- }, "se_DescribeDefaultParametersCommand");
850
- var se_DescribeEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
851
- const headers = sharedHeaders("DescribeEvents");
852
- let body;
853
- body = JSON.stringify(se_DescribeEventsRequest(input, context));
854
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
855
- }, "se_DescribeEventsCommand");
856
- var se_DescribeParameterGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
857
- const headers = sharedHeaders("DescribeParameterGroups");
858
- let body;
859
- body = JSON.stringify((0, import_smithy_client._json)(input));
860
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
861
- }, "se_DescribeParameterGroupsCommand");
862
- var se_DescribeParametersCommand = /* @__PURE__ */ __name(async (input, context) => {
863
- const headers = sharedHeaders("DescribeParameters");
864
- let body;
865
- body = JSON.stringify((0, import_smithy_client._json)(input));
866
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
867
- }, "se_DescribeParametersCommand");
868
- var se_DescribeSubnetGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
869
- const headers = sharedHeaders("DescribeSubnetGroups");
870
- let body;
871
- body = JSON.stringify((0, import_smithy_client._json)(input));
872
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
873
- }, "se_DescribeSubnetGroupsCommand");
874
- var se_IncreaseReplicationFactorCommand = /* @__PURE__ */ __name(async (input, context) => {
875
- const headers = sharedHeaders("IncreaseReplicationFactor");
876
- let body;
877
- body = JSON.stringify((0, import_smithy_client._json)(input));
878
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
879
- }, "se_IncreaseReplicationFactorCommand");
880
- var se_ListTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
881
- const headers = sharedHeaders("ListTags");
882
- let body;
883
- body = JSON.stringify((0, import_smithy_client._json)(input));
884
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
885
- }, "se_ListTagsCommand");
886
- var se_RebootNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
887
- const headers = sharedHeaders("RebootNode");
888
- let body;
889
- body = JSON.stringify((0, import_smithy_client._json)(input));
890
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
891
- }, "se_RebootNodeCommand");
892
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
893
- const headers = sharedHeaders("TagResource");
894
- let body;
895
- body = JSON.stringify((0, import_smithy_client._json)(input));
896
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
897
- }, "se_TagResourceCommand");
898
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
899
- const headers = sharedHeaders("UntagResource");
900
- let body;
901
- body = JSON.stringify((0, import_smithy_client._json)(input));
902
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
903
- }, "se_UntagResourceCommand");
904
- var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
905
- const headers = sharedHeaders("UpdateCluster");
906
- let body;
907
- body = JSON.stringify((0, import_smithy_client._json)(input));
908
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
909
- }, "se_UpdateClusterCommand");
910
- var se_UpdateParameterGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
911
- const headers = sharedHeaders("UpdateParameterGroup");
912
- let body;
913
- body = JSON.stringify((0, import_smithy_client._json)(input));
914
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
915
- }, "se_UpdateParameterGroupCommand");
916
- var se_UpdateSubnetGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
917
- const headers = sharedHeaders("UpdateSubnetGroup");
918
- let body;
919
- body = JSON.stringify((0, import_smithy_client._json)(input));
920
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
921
- }, "se_UpdateSubnetGroupCommand");
922
- var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
923
- if (output.statusCode >= 300) {
924
- return de_CommandError(output, context);
925
- }
926
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
927
- let contents = {};
928
- contents = de_CreateClusterResponse(data, context);
929
- const response = {
930
- $metadata: deserializeMetadata(output),
931
- ...contents
932
- };
933
- return response;
934
- }, "de_CreateClusterCommand");
935
- var de_CreateParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
936
- if (output.statusCode >= 300) {
937
- return de_CommandError(output, context);
938
- }
939
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
940
- let contents = {};
941
- contents = (0, import_smithy_client._json)(data);
942
- const response = {
943
- $metadata: deserializeMetadata(output),
944
- ...contents
945
- };
946
- return response;
947
- }, "de_CreateParameterGroupCommand");
948
- var de_CreateSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
949
- if (output.statusCode >= 300) {
950
- return de_CommandError(output, context);
951
- }
952
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
953
- let contents = {};
954
- contents = (0, import_smithy_client._json)(data);
955
- const response = {
956
- $metadata: deserializeMetadata(output),
957
- ...contents
958
- };
959
- return response;
960
- }, "de_CreateSubnetGroupCommand");
961
- var de_DecreaseReplicationFactorCommand = /* @__PURE__ */ __name(async (output, context) => {
962
- if (output.statusCode >= 300) {
963
- return de_CommandError(output, context);
964
- }
965
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
966
- let contents = {};
967
- contents = de_DecreaseReplicationFactorResponse(data, context);
968
- const response = {
969
- $metadata: deserializeMetadata(output),
970
- ...contents
971
- };
972
- return response;
973
- }, "de_DecreaseReplicationFactorCommand");
974
- var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
975
- if (output.statusCode >= 300) {
976
- return de_CommandError(output, context);
977
- }
978
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
979
- let contents = {};
980
- contents = de_DeleteClusterResponse(data, context);
981
- const response = {
982
- $metadata: deserializeMetadata(output),
983
- ...contents
984
- };
985
- return response;
986
- }, "de_DeleteClusterCommand");
987
- var de_DeleteParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
988
- if (output.statusCode >= 300) {
989
- return de_CommandError(output, context);
990
- }
991
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
992
- let contents = {};
993
- contents = (0, import_smithy_client._json)(data);
994
- const response = {
995
- $metadata: deserializeMetadata(output),
996
- ...contents
997
- };
998
- return response;
999
- }, "de_DeleteParameterGroupCommand");
1000
- var de_DeleteSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1001
- if (output.statusCode >= 300) {
1002
- return de_CommandError(output, context);
1003
- }
1004
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1005
- let contents = {};
1006
- contents = (0, import_smithy_client._json)(data);
1007
- const response = {
1008
- $metadata: deserializeMetadata(output),
1009
- ...contents
1010
- };
1011
- return response;
1012
- }, "de_DeleteSubnetGroupCommand");
1013
- var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
1014
- if (output.statusCode >= 300) {
1015
- return de_CommandError(output, context);
1016
- }
1017
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1018
- let contents = {};
1019
- contents = de_DescribeClustersResponse(data, context);
1020
- const response = {
1021
- $metadata: deserializeMetadata(output),
1022
- ...contents
1023
- };
1024
- return response;
1025
- }, "de_DescribeClustersCommand");
1026
- var de_DescribeDefaultParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
1027
- if (output.statusCode >= 300) {
1028
- return de_CommandError(output, context);
1029
- }
1030
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1031
- let contents = {};
1032
- contents = (0, import_smithy_client._json)(data);
1033
- const response = {
1034
- $metadata: deserializeMetadata(output),
1035
- ...contents
1036
- };
1037
- return response;
1038
- }, "de_DescribeDefaultParametersCommand");
1039
- var de_DescribeEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
1040
- if (output.statusCode >= 300) {
1041
- return de_CommandError(output, context);
1042
- }
1043
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1044
- let contents = {};
1045
- contents = de_DescribeEventsResponse(data, context);
1046
- const response = {
1047
- $metadata: deserializeMetadata(output),
1048
- ...contents
1049
- };
1050
- return response;
1051
- }, "de_DescribeEventsCommand");
1052
- var de_DescribeParameterGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1053
- if (output.statusCode >= 300) {
1054
- return de_CommandError(output, context);
1055
- }
1056
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1057
- let contents = {};
1058
- contents = (0, import_smithy_client._json)(data);
1059
- const response = {
1060
- $metadata: deserializeMetadata(output),
1061
- ...contents
1062
- };
1063
- return response;
1064
- }, "de_DescribeParameterGroupsCommand");
1065
- var de_DescribeParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
1066
- if (output.statusCode >= 300) {
1067
- return de_CommandError(output, context);
1068
- }
1069
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1070
- let contents = {};
1071
- contents = (0, import_smithy_client._json)(data);
1072
- const response = {
1073
- $metadata: deserializeMetadata(output),
1074
- ...contents
1075
- };
1076
- return response;
1077
- }, "de_DescribeParametersCommand");
1078
- var de_DescribeSubnetGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1079
- if (output.statusCode >= 300) {
1080
- return de_CommandError(output, context);
1081
- }
1082
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1083
- let contents = {};
1084
- contents = (0, import_smithy_client._json)(data);
1085
- const response = {
1086
- $metadata: deserializeMetadata(output),
1087
- ...contents
1088
- };
1089
- return response;
1090
- }, "de_DescribeSubnetGroupsCommand");
1091
- var de_IncreaseReplicationFactorCommand = /* @__PURE__ */ __name(async (output, context) => {
1092
- if (output.statusCode >= 300) {
1093
- return de_CommandError(output, context);
1094
- }
1095
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1096
- let contents = {};
1097
- contents = de_IncreaseReplicationFactorResponse(data, context);
1098
- const response = {
1099
- $metadata: deserializeMetadata(output),
1100
- ...contents
1101
- };
1102
- return response;
1103
- }, "de_IncreaseReplicationFactorCommand");
1104
- var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
1105
- if (output.statusCode >= 300) {
1106
- return de_CommandError(output, context);
1107
- }
1108
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1109
- let contents = {};
1110
- contents = (0, import_smithy_client._json)(data);
1111
- const response = {
1112
- $metadata: deserializeMetadata(output),
1113
- ...contents
1114
- };
1115
- return response;
1116
- }, "de_ListTagsCommand");
1117
- var de_RebootNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1118
- if (output.statusCode >= 300) {
1119
- return de_CommandError(output, context);
1120
- }
1121
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1122
- let contents = {};
1123
- contents = de_RebootNodeResponse(data, context);
1124
- const response = {
1125
- $metadata: deserializeMetadata(output),
1126
- ...contents
1127
- };
1128
- return response;
1129
- }, "de_RebootNodeCommand");
1130
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1131
- if (output.statusCode >= 300) {
1132
- return de_CommandError(output, context);
1133
- }
1134
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1135
- let contents = {};
1136
- contents = (0, import_smithy_client._json)(data);
1137
- const response = {
1138
- $metadata: deserializeMetadata(output),
1139
- ...contents
1140
- };
1141
- return response;
1142
- }, "de_TagResourceCommand");
1143
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1144
- if (output.statusCode >= 300) {
1145
- return de_CommandError(output, context);
1146
- }
1147
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1148
- let contents = {};
1149
- contents = (0, import_smithy_client._json)(data);
1150
- const response = {
1151
- $metadata: deserializeMetadata(output),
1152
- ...contents
1153
- };
1154
- return response;
1155
- }, "de_UntagResourceCommand");
1156
- var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1157
- if (output.statusCode >= 300) {
1158
- return de_CommandError(output, context);
1159
- }
1160
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1161
- let contents = {};
1162
- contents = de_UpdateClusterResponse(data, context);
1163
- const response = {
1164
- $metadata: deserializeMetadata(output),
1165
- ...contents
1166
- };
1167
- return response;
1168
- }, "de_UpdateClusterCommand");
1169
- var de_UpdateParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1170
- if (output.statusCode >= 300) {
1171
- return de_CommandError(output, context);
1172
- }
1173
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1174
- let contents = {};
1175
- contents = (0, import_smithy_client._json)(data);
1176
- const response = {
1177
- $metadata: deserializeMetadata(output),
1178
- ...contents
1179
- };
1180
- return response;
1181
- }, "de_UpdateParameterGroupCommand");
1182
- var de_UpdateSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1183
- if (output.statusCode >= 300) {
1184
- return de_CommandError(output, context);
1185
- }
1186
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1187
- let contents = {};
1188
- contents = (0, import_smithy_client._json)(data);
1189
- const response = {
1190
- $metadata: deserializeMetadata(output),
1191
- ...contents
1192
- };
1193
- return response;
1194
- }, "de_UpdateSubnetGroupCommand");
1195
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1196
- const parsedOutput = {
1197
- ...output,
1198
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1199
- };
1200
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1201
- switch (errorCode) {
1202
- case "ClusterAlreadyExistsFault":
1203
- case "com.amazonaws.dax#ClusterAlreadyExistsFault":
1204
- throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
1205
- case "ClusterQuotaForCustomerExceededFault":
1206
- case "com.amazonaws.dax#ClusterQuotaForCustomerExceededFault":
1207
- throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
1208
- case "InsufficientClusterCapacityFault":
1209
- case "com.amazonaws.dax#InsufficientClusterCapacityFault":
1210
- throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
1211
- case "InvalidClusterStateFault":
1212
- case "com.amazonaws.dax#InvalidClusterStateFault":
1213
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
1214
- case "InvalidParameterCombinationException":
1215
- case "com.amazonaws.dax#InvalidParameterCombinationException":
1216
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1217
- case "InvalidParameterGroupStateFault":
1218
- case "com.amazonaws.dax#InvalidParameterGroupStateFault":
1219
- throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
1220
- case "InvalidParameterValueException":
1221
- case "com.amazonaws.dax#InvalidParameterValueException":
1222
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1223
- case "InvalidVPCNetworkStateFault":
1224
- case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
1225
- throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
1226
- case "NodeQuotaForClusterExceededFault":
1227
- case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
1228
- throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
1229
- case "NodeQuotaForCustomerExceededFault":
1230
- case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
1231
- throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
1232
- case "ParameterGroupNotFoundFault":
1233
- case "com.amazonaws.dax#ParameterGroupNotFoundFault":
1234
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
1235
- case "ServiceLinkedRoleNotFoundFault":
1236
- case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
1237
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1238
- case "ServiceQuotaExceededException":
1239
- case "com.amazonaws.dax#ServiceQuotaExceededException":
1240
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1241
- case "SubnetGroupNotFoundFault":
1242
- case "com.amazonaws.dax#SubnetGroupNotFoundFault":
1243
- throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
1244
- case "TagQuotaPerResourceExceeded":
1245
- case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
1246
- throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1247
- case "ParameterGroupAlreadyExistsFault":
1248
- case "com.amazonaws.dax#ParameterGroupAlreadyExistsFault":
1249
- throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
1250
- case "ParameterGroupQuotaExceededFault":
1251
- case "com.amazonaws.dax#ParameterGroupQuotaExceededFault":
1252
- throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
1253
- case "InvalidSubnet":
1254
- case "com.amazonaws.dax#InvalidSubnet":
1255
- throw await de_InvalidSubnetRes(parsedOutput, context);
1256
- case "SubnetGroupAlreadyExistsFault":
1257
- case "com.amazonaws.dax#SubnetGroupAlreadyExistsFault":
1258
- throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
1259
- case "SubnetGroupQuotaExceededFault":
1260
- case "com.amazonaws.dax#SubnetGroupQuotaExceededFault":
1261
- throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
1262
- case "SubnetNotAllowedFault":
1263
- case "com.amazonaws.dax#SubnetNotAllowedFault":
1264
- throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
1265
- case "SubnetQuotaExceededFault":
1266
- case "com.amazonaws.dax#SubnetQuotaExceededFault":
1267
- throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
1268
- case "ClusterNotFoundFault":
1269
- case "com.amazonaws.dax#ClusterNotFoundFault":
1270
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1271
- case "NodeNotFoundFault":
1272
- case "com.amazonaws.dax#NodeNotFoundFault":
1273
- throw await de_NodeNotFoundFaultRes(parsedOutput, context);
1274
- case "SubnetGroupInUseFault":
1275
- case "com.amazonaws.dax#SubnetGroupInUseFault":
1276
- throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
1277
- case "InvalidARNFault":
1278
- case "com.amazonaws.dax#InvalidARNFault":
1279
- throw await de_InvalidARNFaultRes(parsedOutput, context);
1280
- case "TagNotFoundFault":
1281
- case "com.amazonaws.dax#TagNotFoundFault":
1282
- throw await de_TagNotFoundFaultRes(parsedOutput, context);
1283
- case "SubnetInUse":
1284
- case "com.amazonaws.dax#SubnetInUse":
1285
- throw await de_SubnetInUseRes(parsedOutput, context);
1286
- default:
1287
- const parsedBody = parsedOutput.body;
1288
- return throwDefaultError({
1289
- output,
1290
- parsedBody,
1291
- errorCode
1292
- });
1293
- }
1294
- }, "de_CommandError");
1295
- var de_ClusterAlreadyExistsFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1296
- const body = parsedOutput.body;
1297
- const deserialized = (0, import_smithy_client._json)(body);
1298
- const exception = new ClusterAlreadyExistsFault({
1299
- $metadata: deserializeMetadata(parsedOutput),
1300
- ...deserialized
1301
- });
1302
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1303
- }, "de_ClusterAlreadyExistsFaultRes");
1304
- var de_ClusterNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1305
- const body = parsedOutput.body;
1306
- const deserialized = (0, import_smithy_client._json)(body);
1307
- const exception = new ClusterNotFoundFault({
1308
- $metadata: deserializeMetadata(parsedOutput),
1309
- ...deserialized
1310
- });
1311
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1312
- }, "de_ClusterNotFoundFaultRes");
1313
- var de_ClusterQuotaForCustomerExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1314
- const body = parsedOutput.body;
1315
- const deserialized = (0, import_smithy_client._json)(body);
1316
- const exception = new ClusterQuotaForCustomerExceededFault({
1317
- $metadata: deserializeMetadata(parsedOutput),
1318
- ...deserialized
1319
- });
1320
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1321
- }, "de_ClusterQuotaForCustomerExceededFaultRes");
1322
- var de_InsufficientClusterCapacityFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1323
- const body = parsedOutput.body;
1324
- const deserialized = (0, import_smithy_client._json)(body);
1325
- const exception = new InsufficientClusterCapacityFault({
1326
- $metadata: deserializeMetadata(parsedOutput),
1327
- ...deserialized
1328
- });
1329
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1330
- }, "de_InsufficientClusterCapacityFaultRes");
1331
- var de_InvalidARNFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1332
- const body = parsedOutput.body;
1333
- const deserialized = (0, import_smithy_client._json)(body);
1334
- const exception = new InvalidARNFault({
1335
- $metadata: deserializeMetadata(parsedOutput),
1336
- ...deserialized
1337
- });
1338
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1339
- }, "de_InvalidARNFaultRes");
1340
- var de_InvalidClusterStateFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1341
- const body = parsedOutput.body;
1342
- const deserialized = (0, import_smithy_client._json)(body);
1343
- const exception = new InvalidClusterStateFault({
1344
- $metadata: deserializeMetadata(parsedOutput),
1345
- ...deserialized
1346
- });
1347
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1348
- }, "de_InvalidClusterStateFaultRes");
1349
- var de_InvalidParameterCombinationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1350
- const body = parsedOutput.body;
1351
- const deserialized = (0, import_smithy_client._json)(body);
1352
- const exception = new InvalidParameterCombinationException({
1353
- $metadata: deserializeMetadata(parsedOutput),
1354
- ...deserialized
1355
- });
1356
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1357
- }, "de_InvalidParameterCombinationExceptionRes");
1358
- var de_InvalidParameterGroupStateFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1359
- const body = parsedOutput.body;
1360
- const deserialized = (0, import_smithy_client._json)(body);
1361
- const exception = new InvalidParameterGroupStateFault({
1362
- $metadata: deserializeMetadata(parsedOutput),
1363
- ...deserialized
1364
- });
1365
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1366
- }, "de_InvalidParameterGroupStateFaultRes");
1367
- var de_InvalidParameterValueExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1368
- const body = parsedOutput.body;
1369
- const deserialized = (0, import_smithy_client._json)(body);
1370
- const exception = new InvalidParameterValueException({
1371
- $metadata: deserializeMetadata(parsedOutput),
1372
- ...deserialized
1373
- });
1374
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1375
- }, "de_InvalidParameterValueExceptionRes");
1376
- var de_InvalidSubnetRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1377
- const body = parsedOutput.body;
1378
- const deserialized = (0, import_smithy_client._json)(body);
1379
- const exception = new InvalidSubnet({
1380
- $metadata: deserializeMetadata(parsedOutput),
1381
- ...deserialized
1382
- });
1383
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1384
- }, "de_InvalidSubnetRes");
1385
- var de_InvalidVPCNetworkStateFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1386
- const body = parsedOutput.body;
1387
- const deserialized = (0, import_smithy_client._json)(body);
1388
- const exception = new InvalidVPCNetworkStateFault({
1389
- $metadata: deserializeMetadata(parsedOutput),
1390
- ...deserialized
1391
- });
1392
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1393
- }, "de_InvalidVPCNetworkStateFaultRes");
1394
- var de_NodeNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1395
- const body = parsedOutput.body;
1396
- const deserialized = (0, import_smithy_client._json)(body);
1397
- const exception = new NodeNotFoundFault({
1398
- $metadata: deserializeMetadata(parsedOutput),
1399
- ...deserialized
1400
- });
1401
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1402
- }, "de_NodeNotFoundFaultRes");
1403
- var de_NodeQuotaForClusterExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1404
- const body = parsedOutput.body;
1405
- const deserialized = (0, import_smithy_client._json)(body);
1406
- const exception = new NodeQuotaForClusterExceededFault({
1407
- $metadata: deserializeMetadata(parsedOutput),
1408
- ...deserialized
1409
- });
1410
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1411
- }, "de_NodeQuotaForClusterExceededFaultRes");
1412
- var de_NodeQuotaForCustomerExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1413
- const body = parsedOutput.body;
1414
- const deserialized = (0, import_smithy_client._json)(body);
1415
- const exception = new NodeQuotaForCustomerExceededFault({
1416
- $metadata: deserializeMetadata(parsedOutput),
1417
- ...deserialized
1418
- });
1419
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1420
- }, "de_NodeQuotaForCustomerExceededFaultRes");
1421
- var de_ParameterGroupAlreadyExistsFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1422
- const body = parsedOutput.body;
1423
- const deserialized = (0, import_smithy_client._json)(body);
1424
- const exception = new ParameterGroupAlreadyExistsFault({
1425
- $metadata: deserializeMetadata(parsedOutput),
1426
- ...deserialized
1427
- });
1428
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1429
- }, "de_ParameterGroupAlreadyExistsFaultRes");
1430
- var de_ParameterGroupNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1431
- const body = parsedOutput.body;
1432
- const deserialized = (0, import_smithy_client._json)(body);
1433
- const exception = new ParameterGroupNotFoundFault({
1434
- $metadata: deserializeMetadata(parsedOutput),
1435
- ...deserialized
1436
- });
1437
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1438
- }, "de_ParameterGroupNotFoundFaultRes");
1439
- var de_ParameterGroupQuotaExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1440
- const body = parsedOutput.body;
1441
- const deserialized = (0, import_smithy_client._json)(body);
1442
- const exception = new ParameterGroupQuotaExceededFault({
1443
- $metadata: deserializeMetadata(parsedOutput),
1444
- ...deserialized
1445
- });
1446
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1447
- }, "de_ParameterGroupQuotaExceededFaultRes");
1448
- var de_ServiceLinkedRoleNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1449
- const body = parsedOutput.body;
1450
- const deserialized = (0, import_smithy_client._json)(body);
1451
- const exception = new ServiceLinkedRoleNotFoundFault({
1452
- $metadata: deserializeMetadata(parsedOutput),
1453
- ...deserialized
1454
- });
1455
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1456
- }, "de_ServiceLinkedRoleNotFoundFaultRes");
1457
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1458
- const body = parsedOutput.body;
1459
- const deserialized = (0, import_smithy_client._json)(body);
1460
- const exception = new ServiceQuotaExceededException({
1461
- $metadata: deserializeMetadata(parsedOutput),
1462
- ...deserialized
1463
- });
1464
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1465
- }, "de_ServiceQuotaExceededExceptionRes");
1466
- var de_SubnetGroupAlreadyExistsFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1467
- const body = parsedOutput.body;
1468
- const deserialized = (0, import_smithy_client._json)(body);
1469
- const exception = new SubnetGroupAlreadyExistsFault({
1470
- $metadata: deserializeMetadata(parsedOutput),
1471
- ...deserialized
1472
- });
1473
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1474
- }, "de_SubnetGroupAlreadyExistsFaultRes");
1475
- var de_SubnetGroupInUseFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1476
- const body = parsedOutput.body;
1477
- const deserialized = (0, import_smithy_client._json)(body);
1478
- const exception = new SubnetGroupInUseFault({
1479
- $metadata: deserializeMetadata(parsedOutput),
1480
- ...deserialized
1481
- });
1482
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1483
- }, "de_SubnetGroupInUseFaultRes");
1484
- var de_SubnetGroupNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1485
- const body = parsedOutput.body;
1486
- const deserialized = (0, import_smithy_client._json)(body);
1487
- const exception = new SubnetGroupNotFoundFault({
1488
- $metadata: deserializeMetadata(parsedOutput),
1489
- ...deserialized
1490
- });
1491
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1492
- }, "de_SubnetGroupNotFoundFaultRes");
1493
- var de_SubnetGroupQuotaExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1494
- const body = parsedOutput.body;
1495
- const deserialized = (0, import_smithy_client._json)(body);
1496
- const exception = new SubnetGroupQuotaExceededFault({
1497
- $metadata: deserializeMetadata(parsedOutput),
1498
- ...deserialized
1499
- });
1500
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1501
- }, "de_SubnetGroupQuotaExceededFaultRes");
1502
- var de_SubnetInUseRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1503
- const body = parsedOutput.body;
1504
- const deserialized = (0, import_smithy_client._json)(body);
1505
- const exception = new SubnetInUse({
1506
- $metadata: deserializeMetadata(parsedOutput),
1507
- ...deserialized
1508
- });
1509
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1510
- }, "de_SubnetInUseRes");
1511
- var de_SubnetNotAllowedFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1512
- const body = parsedOutput.body;
1513
- const deserialized = (0, import_smithy_client._json)(body);
1514
- const exception = new SubnetNotAllowedFault({
1515
- $metadata: deserializeMetadata(parsedOutput),
1516
- ...deserialized
1517
- });
1518
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1519
- }, "de_SubnetNotAllowedFaultRes");
1520
- var de_SubnetQuotaExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1521
- const body = parsedOutput.body;
1522
- const deserialized = (0, import_smithy_client._json)(body);
1523
- const exception = new SubnetQuotaExceededFault({
1524
- $metadata: deserializeMetadata(parsedOutput),
1525
- ...deserialized
1526
- });
1527
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1528
- }, "de_SubnetQuotaExceededFaultRes");
1529
- var de_TagNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1530
- const body = parsedOutput.body;
1531
- const deserialized = (0, import_smithy_client._json)(body);
1532
- const exception = new TagNotFoundFault({
1533
- $metadata: deserializeMetadata(parsedOutput),
1534
- ...deserialized
1535
- });
1536
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1537
- }, "de_TagNotFoundFaultRes");
1538
- var de_TagQuotaPerResourceExceededRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1539
- const body = parsedOutput.body;
1540
- const deserialized = (0, import_smithy_client._json)(body);
1541
- const exception = new TagQuotaPerResourceExceeded({
1542
- $metadata: deserializeMetadata(parsedOutput),
1543
- ...deserialized
1544
- });
1545
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1546
- }, "de_TagQuotaPerResourceExceededRes");
1547
- var se_DescribeEventsRequest = /* @__PURE__ */ __name((input, context) => {
1548
- return (0, import_smithy_client.take)(input, {
1549
- Duration: [],
1550
- EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
1551
- MaxResults: [],
1552
- NextToken: [],
1553
- SourceName: [],
1554
- SourceType: [],
1555
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime")
1556
- });
1557
- }, "se_DescribeEventsRequest");
1558
- var de_Cluster = /* @__PURE__ */ __name((output, context) => {
1559
- return (0, import_smithy_client.take)(output, {
1560
- ActiveNodes: import_smithy_client.expectInt32,
1561
- ClusterArn: import_smithy_client.expectString,
1562
- ClusterDiscoveryEndpoint: import_smithy_client._json,
1563
- ClusterEndpointEncryptionType: import_smithy_client.expectString,
1564
- ClusterName: import_smithy_client.expectString,
1565
- Description: import_smithy_client.expectString,
1566
- IamRoleArn: import_smithy_client.expectString,
1567
- NetworkType: import_smithy_client.expectString,
1568
- NodeIdsToRemove: import_smithy_client._json,
1569
- NodeType: import_smithy_client.expectString,
1570
- Nodes: /* @__PURE__ */ __name((_) => de_NodeList(_, context), "Nodes"),
1571
- NotificationConfiguration: import_smithy_client._json,
1572
- ParameterGroup: import_smithy_client._json,
1573
- PreferredMaintenanceWindow: import_smithy_client.expectString,
1574
- SSEDescription: import_smithy_client._json,
1575
- SecurityGroups: import_smithy_client._json,
1576
- Status: import_smithy_client.expectString,
1577
- SubnetGroup: import_smithy_client.expectString,
1578
- TotalNodes: import_smithy_client.expectInt32
1579
- });
1580
- }, "de_Cluster");
1581
- var de_ClusterList = /* @__PURE__ */ __name((output, context) => {
1582
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1583
- return de_Cluster(entry, context);
1584
- });
1585
- return retVal;
1586
- }, "de_ClusterList");
1587
- var de_CreateClusterResponse = /* @__PURE__ */ __name((output, context) => {
1588
- return (0, import_smithy_client.take)(output, {
1589
- Cluster: /* @__PURE__ */ __name((_) => de_Cluster(_, context), "Cluster")
1590
- });
1591
- }, "de_CreateClusterResponse");
1592
- var de_DecreaseReplicationFactorResponse = /* @__PURE__ */ __name((output, context) => {
1593
- return (0, import_smithy_client.take)(output, {
1594
- Cluster: /* @__PURE__ */ __name((_) => de_Cluster(_, context), "Cluster")
1595
- });
1596
- }, "de_DecreaseReplicationFactorResponse");
1597
- var de_DeleteClusterResponse = /* @__PURE__ */ __name((output, context) => {
1598
- return (0, import_smithy_client.take)(output, {
1599
- Cluster: /* @__PURE__ */ __name((_) => de_Cluster(_, context), "Cluster")
1600
- });
1601
- }, "de_DeleteClusterResponse");
1602
- var de_DescribeClustersResponse = /* @__PURE__ */ __name((output, context) => {
1603
- return (0, import_smithy_client.take)(output, {
1604
- Clusters: /* @__PURE__ */ __name((_) => de_ClusterList(_, context), "Clusters"),
1605
- NextToken: import_smithy_client.expectString
1606
- });
1607
- }, "de_DescribeClustersResponse");
1608
- var de_DescribeEventsResponse = /* @__PURE__ */ __name((output, context) => {
1609
- return (0, import_smithy_client.take)(output, {
1610
- Events: /* @__PURE__ */ __name((_) => de_EventList(_, context), "Events"),
1611
- NextToken: import_smithy_client.expectString
1612
- });
1613
- }, "de_DescribeEventsResponse");
1614
- var de_Event = /* @__PURE__ */ __name((output, context) => {
1615
- return (0, import_smithy_client.take)(output, {
1616
- Date: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Date"),
1617
- Message: import_smithy_client.expectString,
1618
- SourceName: import_smithy_client.expectString,
1619
- SourceType: import_smithy_client.expectString
1620
- });
1621
- }, "de_Event");
1622
- var de_EventList = /* @__PURE__ */ __name((output, context) => {
1623
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1624
- return de_Event(entry, context);
1625
- });
1626
- return retVal;
1627
- }, "de_EventList");
1628
- var de_IncreaseReplicationFactorResponse = /* @__PURE__ */ __name((output, context) => {
1629
- return (0, import_smithy_client.take)(output, {
1630
- Cluster: /* @__PURE__ */ __name((_) => de_Cluster(_, context), "Cluster")
1631
- });
1632
- }, "de_IncreaseReplicationFactorResponse");
1633
- var de_Node = /* @__PURE__ */ __name((output, context) => {
1634
- return (0, import_smithy_client.take)(output, {
1635
- AvailabilityZone: import_smithy_client.expectString,
1636
- Endpoint: import_smithy_client._json,
1637
- NodeCreateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "NodeCreateTime"),
1638
- NodeId: import_smithy_client.expectString,
1639
- NodeStatus: import_smithy_client.expectString,
1640
- ParameterGroupStatus: import_smithy_client.expectString
1641
- });
1642
- }, "de_Node");
1643
- var de_NodeList = /* @__PURE__ */ __name((output, context) => {
1644
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1645
- return de_Node(entry, context);
1646
- });
1647
- return retVal;
1648
- }, "de_NodeList");
1649
- var de_RebootNodeResponse = /* @__PURE__ */ __name((output, context) => {
1650
- return (0, import_smithy_client.take)(output, {
1651
- Cluster: /* @__PURE__ */ __name((_) => de_Cluster(_, context), "Cluster")
1652
- });
1653
- }, "de_RebootNodeResponse");
1654
- var de_UpdateClusterResponse = /* @__PURE__ */ __name((output, context) => {
1655
- return (0, import_smithy_client.take)(output, {
1656
- Cluster: /* @__PURE__ */ __name((_) => de_Cluster(_, context), "Cluster")
1657
- });
1658
- }, "de_UpdateClusterResponse");
1659
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1660
- httpStatusCode: output.statusCode,
1661
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1662
- extendedRequestId: output.headers["x-amz-id-2"],
1663
- cfId: output.headers["x-amz-cf-id"]
1664
- }), "deserializeMetadata");
1665
- var throwDefaultError = (0, import_smithy_client.withBaseException)(DAXServiceException);
1666
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1667
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1668
- const contents = {
1669
- protocol,
1670
- hostname,
1671
- port,
1672
- method: "POST",
1673
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1674
- headers
1675
- };
1676
- if (resolvedHostname !== void 0) {
1677
- contents.hostname = resolvedHostname;
1678
- }
1679
- if (body !== void 0) {
1680
- contents.body = body;
1681
- }
1682
- return new import_protocol_http.HttpRequest(contents);
1683
- }, "buildHttpRpcRequest");
1684
- function sharedHeaders(operation) {
1685
- return {
1686
- "content-type": "application/x-amz-json-1.1",
1687
- "x-amz-target": `AmazonDAXV3.${operation}`
1688
- };
1689
- }
1690
- __name(sharedHeaders, "sharedHeaders");
1691
-
1692
- // src/commands/CreateClusterCommand.ts
1693
- var CreateClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1694
- return [
1695
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1696
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1697
- ];
1698
- }).s("AmazonDAXV3", "CreateCluster", {}).n("DAXClient", "CreateClusterCommand").f(void 0, void 0).ser(se_CreateClusterCommand).de(de_CreateClusterCommand).build() {
1699
- static {
1700
- __name(this, "CreateClusterCommand");
1701
- }
1241
+ const se_DescribeEventsRequest = (input, context) => {
1242
+ return smithyClient.take(input, {
1243
+ Duration: [],
1244
+ EndTime: (_) => _.getTime() / 1_000,
1245
+ MaxResults: [],
1246
+ NextToken: [],
1247
+ SourceName: [],
1248
+ SourceType: [],
1249
+ StartTime: (_) => _.getTime() / 1_000,
1250
+ });
1702
1251
  };
1703
-
1704
- // src/commands/CreateParameterGroupCommand.ts
1705
-
1706
-
1707
-
1708
- var CreateParameterGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1709
- return [
1710
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1711
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1712
- ];
1713
- }).s("AmazonDAXV3", "CreateParameterGroup", {}).n("DAXClient", "CreateParameterGroupCommand").f(void 0, void 0).ser(se_CreateParameterGroupCommand).de(de_CreateParameterGroupCommand).build() {
1714
- static {
1715
- __name(this, "CreateParameterGroupCommand");
1716
- }
1252
+ const de_Cluster = (output, context) => {
1253
+ return smithyClient.take(output, {
1254
+ ActiveNodes: smithyClient.expectInt32,
1255
+ ClusterArn: smithyClient.expectString,
1256
+ ClusterDiscoveryEndpoint: smithyClient._json,
1257
+ ClusterEndpointEncryptionType: smithyClient.expectString,
1258
+ ClusterName: smithyClient.expectString,
1259
+ Description: smithyClient.expectString,
1260
+ IamRoleArn: smithyClient.expectString,
1261
+ NetworkType: smithyClient.expectString,
1262
+ NodeIdsToRemove: smithyClient._json,
1263
+ NodeType: smithyClient.expectString,
1264
+ Nodes: (_) => de_NodeList(_),
1265
+ NotificationConfiguration: smithyClient._json,
1266
+ ParameterGroup: smithyClient._json,
1267
+ PreferredMaintenanceWindow: smithyClient.expectString,
1268
+ SSEDescription: smithyClient._json,
1269
+ SecurityGroups: smithyClient._json,
1270
+ Status: smithyClient.expectString,
1271
+ SubnetGroup: smithyClient.expectString,
1272
+ TotalNodes: smithyClient.expectInt32,
1273
+ });
1717
1274
  };
1718
-
1719
- // src/commands/CreateSubnetGroupCommand.ts
1720
-
1721
-
1722
-
1723
- var CreateSubnetGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1724
- return [
1725
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1726
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1727
- ];
1728
- }).s("AmazonDAXV3", "CreateSubnetGroup", {}).n("DAXClient", "CreateSubnetGroupCommand").f(void 0, void 0).ser(se_CreateSubnetGroupCommand).de(de_CreateSubnetGroupCommand).build() {
1729
- static {
1730
- __name(this, "CreateSubnetGroupCommand");
1731
- }
1275
+ const de_ClusterList = (output, context) => {
1276
+ const retVal = (output || [])
1277
+ .filter((e) => e != null)
1278
+ .map((entry) => {
1279
+ return de_Cluster(entry);
1280
+ });
1281
+ return retVal;
1732
1282
  };
1733
-
1734
- // src/commands/DecreaseReplicationFactorCommand.ts
1735
-
1736
-
1737
-
1738
- var DecreaseReplicationFactorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1739
- return [
1740
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1741
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1742
- ];
1743
- }).s("AmazonDAXV3", "DecreaseReplicationFactor", {}).n("DAXClient", "DecreaseReplicationFactorCommand").f(void 0, void 0).ser(se_DecreaseReplicationFactorCommand).de(de_DecreaseReplicationFactorCommand).build() {
1744
- static {
1745
- __name(this, "DecreaseReplicationFactorCommand");
1746
- }
1283
+ const de_CreateClusterResponse = (output, context) => {
1284
+ return smithyClient.take(output, {
1285
+ Cluster: (_) => de_Cluster(_),
1286
+ });
1747
1287
  };
1748
-
1749
- // src/commands/DeleteClusterCommand.ts
1750
-
1751
-
1752
-
1753
- var DeleteClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1754
- return [
1755
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1756
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1757
- ];
1758
- }).s("AmazonDAXV3", "DeleteCluster", {}).n("DAXClient", "DeleteClusterCommand").f(void 0, void 0).ser(se_DeleteClusterCommand).de(de_DeleteClusterCommand).build() {
1759
- static {
1760
- __name(this, "DeleteClusterCommand");
1761
- }
1288
+ const de_DecreaseReplicationFactorResponse = (output, context) => {
1289
+ return smithyClient.take(output, {
1290
+ Cluster: (_) => de_Cluster(_),
1291
+ });
1762
1292
  };
1763
-
1764
- // src/commands/DeleteParameterGroupCommand.ts
1765
-
1766
-
1767
-
1768
- var DeleteParameterGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1769
- return [
1770
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1771
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1772
- ];
1773
- }).s("AmazonDAXV3", "DeleteParameterGroup", {}).n("DAXClient", "DeleteParameterGroupCommand").f(void 0, void 0).ser(se_DeleteParameterGroupCommand).de(de_DeleteParameterGroupCommand).build() {
1774
- static {
1775
- __name(this, "DeleteParameterGroupCommand");
1776
- }
1293
+ const de_DeleteClusterResponse = (output, context) => {
1294
+ return smithyClient.take(output, {
1295
+ Cluster: (_) => de_Cluster(_),
1296
+ });
1777
1297
  };
1778
-
1779
- // src/commands/DeleteSubnetGroupCommand.ts
1780
-
1781
-
1782
-
1783
- var DeleteSubnetGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1784
- return [
1785
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1786
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1787
- ];
1788
- }).s("AmazonDAXV3", "DeleteSubnetGroup", {}).n("DAXClient", "DeleteSubnetGroupCommand").f(void 0, void 0).ser(se_DeleteSubnetGroupCommand).de(de_DeleteSubnetGroupCommand).build() {
1789
- static {
1790
- __name(this, "DeleteSubnetGroupCommand");
1791
- }
1298
+ const de_DescribeClustersResponse = (output, context) => {
1299
+ return smithyClient.take(output, {
1300
+ Clusters: (_) => de_ClusterList(_),
1301
+ NextToken: smithyClient.expectString,
1302
+ });
1792
1303
  };
1793
-
1794
- // src/commands/DescribeClustersCommand.ts
1795
-
1796
-
1797
-
1798
- var DescribeClustersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1799
- return [
1800
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1801
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1802
- ];
1803
- }).s("AmazonDAXV3", "DescribeClusters", {}).n("DAXClient", "DescribeClustersCommand").f(void 0, void 0).ser(se_DescribeClustersCommand).de(de_DescribeClustersCommand).build() {
1804
- static {
1805
- __name(this, "DescribeClustersCommand");
1806
- }
1304
+ const de_DescribeEventsResponse = (output, context) => {
1305
+ return smithyClient.take(output, {
1306
+ Events: (_) => de_EventList(_),
1307
+ NextToken: smithyClient.expectString,
1308
+ });
1807
1309
  };
1808
-
1809
- // src/commands/DescribeDefaultParametersCommand.ts
1810
-
1811
-
1812
-
1813
- var DescribeDefaultParametersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1814
- return [
1815
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1816
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1817
- ];
1818
- }).s("AmazonDAXV3", "DescribeDefaultParameters", {}).n("DAXClient", "DescribeDefaultParametersCommand").f(void 0, void 0).ser(se_DescribeDefaultParametersCommand).de(de_DescribeDefaultParametersCommand).build() {
1819
- static {
1820
- __name(this, "DescribeDefaultParametersCommand");
1821
- }
1310
+ const de_Event = (output, context) => {
1311
+ return smithyClient.take(output, {
1312
+ Date: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1313
+ Message: smithyClient.expectString,
1314
+ SourceName: smithyClient.expectString,
1315
+ SourceType: smithyClient.expectString,
1316
+ });
1822
1317
  };
1823
-
1824
- // src/commands/DescribeEventsCommand.ts
1825
-
1826
-
1827
-
1828
- var DescribeEventsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1829
- return [
1830
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1831
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1832
- ];
1833
- }).s("AmazonDAXV3", "DescribeEvents", {}).n("DAXClient", "DescribeEventsCommand").f(void 0, void 0).ser(se_DescribeEventsCommand).de(de_DescribeEventsCommand).build() {
1834
- static {
1835
- __name(this, "DescribeEventsCommand");
1836
- }
1318
+ const de_EventList = (output, context) => {
1319
+ const retVal = (output || [])
1320
+ .filter((e) => e != null)
1321
+ .map((entry) => {
1322
+ return de_Event(entry);
1323
+ });
1324
+ return retVal;
1837
1325
  };
1838
-
1839
- // src/commands/DescribeParameterGroupsCommand.ts
1840
-
1841
-
1842
-
1843
- var DescribeParameterGroupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1844
- return [
1845
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1846
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1847
- ];
1848
- }).s("AmazonDAXV3", "DescribeParameterGroups", {}).n("DAXClient", "DescribeParameterGroupsCommand").f(void 0, void 0).ser(se_DescribeParameterGroupsCommand).de(de_DescribeParameterGroupsCommand).build() {
1849
- static {
1850
- __name(this, "DescribeParameterGroupsCommand");
1851
- }
1326
+ const de_IncreaseReplicationFactorResponse = (output, context) => {
1327
+ return smithyClient.take(output, {
1328
+ Cluster: (_) => de_Cluster(_),
1329
+ });
1852
1330
  };
1853
-
1854
- // src/commands/DescribeParametersCommand.ts
1855
-
1856
-
1857
-
1858
- var DescribeParametersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1859
- return [
1860
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1861
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1862
- ];
1863
- }).s("AmazonDAXV3", "DescribeParameters", {}).n("DAXClient", "DescribeParametersCommand").f(void 0, void 0).ser(se_DescribeParametersCommand).de(de_DescribeParametersCommand).build() {
1864
- static {
1865
- __name(this, "DescribeParametersCommand");
1866
- }
1331
+ const de_Node = (output, context) => {
1332
+ return smithyClient.take(output, {
1333
+ AvailabilityZone: smithyClient.expectString,
1334
+ Endpoint: smithyClient._json,
1335
+ NodeCreateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1336
+ NodeId: smithyClient.expectString,
1337
+ NodeStatus: smithyClient.expectString,
1338
+ ParameterGroupStatus: smithyClient.expectString,
1339
+ });
1867
1340
  };
1868
-
1869
- // src/commands/DescribeSubnetGroupsCommand.ts
1870
-
1871
-
1872
-
1873
- var DescribeSubnetGroupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1874
- return [
1875
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1876
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1877
- ];
1878
- }).s("AmazonDAXV3", "DescribeSubnetGroups", {}).n("DAXClient", "DescribeSubnetGroupsCommand").f(void 0, void 0).ser(se_DescribeSubnetGroupsCommand).de(de_DescribeSubnetGroupsCommand).build() {
1879
- static {
1880
- __name(this, "DescribeSubnetGroupsCommand");
1881
- }
1341
+ const de_NodeList = (output, context) => {
1342
+ const retVal = (output || [])
1343
+ .filter((e) => e != null)
1344
+ .map((entry) => {
1345
+ return de_Node(entry);
1346
+ });
1347
+ return retVal;
1882
1348
  };
1883
-
1884
- // src/commands/IncreaseReplicationFactorCommand.ts
1885
-
1886
-
1887
-
1888
- var IncreaseReplicationFactorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1889
- return [
1890
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1891
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1892
- ];
1893
- }).s("AmazonDAXV3", "IncreaseReplicationFactor", {}).n("DAXClient", "IncreaseReplicationFactorCommand").f(void 0, void 0).ser(se_IncreaseReplicationFactorCommand).de(de_IncreaseReplicationFactorCommand).build() {
1894
- static {
1895
- __name(this, "IncreaseReplicationFactorCommand");
1896
- }
1349
+ const de_RebootNodeResponse = (output, context) => {
1350
+ return smithyClient.take(output, {
1351
+ Cluster: (_) => de_Cluster(_),
1352
+ });
1897
1353
  };
1898
-
1899
- // src/commands/ListTagsCommand.ts
1900
-
1901
-
1902
-
1903
- var ListTagsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1904
- return [
1905
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1906
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1907
- ];
1908
- }).s("AmazonDAXV3", "ListTags", {}).n("DAXClient", "ListTagsCommand").f(void 0, void 0).ser(se_ListTagsCommand).de(de_ListTagsCommand).build() {
1909
- static {
1910
- __name(this, "ListTagsCommand");
1911
- }
1354
+ const de_UpdateClusterResponse = (output, context) => {
1355
+ return smithyClient.take(output, {
1356
+ Cluster: (_) => de_Cluster(_),
1357
+ });
1912
1358
  };
1359
+ const deserializeMetadata = (output) => ({
1360
+ httpStatusCode: output.statusCode,
1361
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1362
+ extendedRequestId: output.headers["x-amz-id-2"],
1363
+ cfId: output.headers["x-amz-cf-id"],
1364
+ });
1365
+ const throwDefaultError = smithyClient.withBaseException(DAXServiceException);
1366
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1367
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1368
+ const contents = {
1369
+ protocol,
1370
+ hostname,
1371
+ port,
1372
+ method: "POST",
1373
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1374
+ headers,
1375
+ };
1376
+ if (body !== undefined) {
1377
+ contents.body = body;
1378
+ }
1379
+ return new protocolHttp.HttpRequest(contents);
1380
+ };
1381
+ function sharedHeaders(operation) {
1382
+ return {
1383
+ "content-type": "application/x-amz-json-1.1",
1384
+ "x-amz-target": `AmazonDAXV3.${operation}`,
1385
+ };
1386
+ }
1913
1387
 
1914
- // src/commands/RebootNodeCommand.ts
1915
-
1916
-
1388
+ class CreateClusterCommand extends smithyClient.Command
1389
+ .classBuilder()
1390
+ .ep(commonParams)
1391
+ .m(function (Command, cs, config, o) {
1392
+ return [
1393
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1394
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1395
+ ];
1396
+ })
1397
+ .s("AmazonDAXV3", "CreateCluster", {})
1398
+ .n("DAXClient", "CreateClusterCommand")
1399
+ .f(void 0, void 0)
1400
+ .ser(se_CreateClusterCommand)
1401
+ .de(de_CreateClusterCommand)
1402
+ .build() {
1403
+ }
1917
1404
 
1918
- var RebootNodeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1919
- return [
1920
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1921
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1922
- ];
1923
- }).s("AmazonDAXV3", "RebootNode", {}).n("DAXClient", "RebootNodeCommand").f(void 0, void 0).ser(se_RebootNodeCommand).de(de_RebootNodeCommand).build() {
1924
- static {
1925
- __name(this, "RebootNodeCommand");
1926
- }
1927
- };
1405
+ class CreateParameterGroupCommand extends smithyClient.Command
1406
+ .classBuilder()
1407
+ .ep(commonParams)
1408
+ .m(function (Command, cs, config, o) {
1409
+ return [
1410
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1411
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1412
+ ];
1413
+ })
1414
+ .s("AmazonDAXV3", "CreateParameterGroup", {})
1415
+ .n("DAXClient", "CreateParameterGroupCommand")
1416
+ .f(void 0, void 0)
1417
+ .ser(se_CreateParameterGroupCommand)
1418
+ .de(de_CreateParameterGroupCommand)
1419
+ .build() {
1420
+ }
1928
1421
 
1929
- // src/commands/TagResourceCommand.ts
1422
+ class CreateSubnetGroupCommand extends smithyClient.Command
1423
+ .classBuilder()
1424
+ .ep(commonParams)
1425
+ .m(function (Command, cs, config, o) {
1426
+ return [
1427
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1428
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1429
+ ];
1430
+ })
1431
+ .s("AmazonDAXV3", "CreateSubnetGroup", {})
1432
+ .n("DAXClient", "CreateSubnetGroupCommand")
1433
+ .f(void 0, void 0)
1434
+ .ser(se_CreateSubnetGroupCommand)
1435
+ .de(de_CreateSubnetGroupCommand)
1436
+ .build() {
1437
+ }
1930
1438
 
1439
+ class DecreaseReplicationFactorCommand extends smithyClient.Command
1440
+ .classBuilder()
1441
+ .ep(commonParams)
1442
+ .m(function (Command, cs, config, o) {
1443
+ return [
1444
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1445
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1446
+ ];
1447
+ })
1448
+ .s("AmazonDAXV3", "DecreaseReplicationFactor", {})
1449
+ .n("DAXClient", "DecreaseReplicationFactorCommand")
1450
+ .f(void 0, void 0)
1451
+ .ser(se_DecreaseReplicationFactorCommand)
1452
+ .de(de_DecreaseReplicationFactorCommand)
1453
+ .build() {
1454
+ }
1931
1455
 
1456
+ class DeleteClusterCommand extends smithyClient.Command
1457
+ .classBuilder()
1458
+ .ep(commonParams)
1459
+ .m(function (Command, cs, config, o) {
1460
+ return [
1461
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1462
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1463
+ ];
1464
+ })
1465
+ .s("AmazonDAXV3", "DeleteCluster", {})
1466
+ .n("DAXClient", "DeleteClusterCommand")
1467
+ .f(void 0, void 0)
1468
+ .ser(se_DeleteClusterCommand)
1469
+ .de(de_DeleteClusterCommand)
1470
+ .build() {
1471
+ }
1932
1472
 
1933
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1934
- return [
1935
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1936
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1937
- ];
1938
- }).s("AmazonDAXV3", "TagResource", {}).n("DAXClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1939
- static {
1940
- __name(this, "TagResourceCommand");
1941
- }
1942
- };
1473
+ class DeleteParameterGroupCommand extends smithyClient.Command
1474
+ .classBuilder()
1475
+ .ep(commonParams)
1476
+ .m(function (Command, cs, config, o) {
1477
+ return [
1478
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1479
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1480
+ ];
1481
+ })
1482
+ .s("AmazonDAXV3", "DeleteParameterGroup", {})
1483
+ .n("DAXClient", "DeleteParameterGroupCommand")
1484
+ .f(void 0, void 0)
1485
+ .ser(se_DeleteParameterGroupCommand)
1486
+ .de(de_DeleteParameterGroupCommand)
1487
+ .build() {
1488
+ }
1943
1489
 
1944
- // src/commands/UntagResourceCommand.ts
1490
+ class DeleteSubnetGroupCommand extends smithyClient.Command
1491
+ .classBuilder()
1492
+ .ep(commonParams)
1493
+ .m(function (Command, cs, config, o) {
1494
+ return [
1495
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1496
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1497
+ ];
1498
+ })
1499
+ .s("AmazonDAXV3", "DeleteSubnetGroup", {})
1500
+ .n("DAXClient", "DeleteSubnetGroupCommand")
1501
+ .f(void 0, void 0)
1502
+ .ser(se_DeleteSubnetGroupCommand)
1503
+ .de(de_DeleteSubnetGroupCommand)
1504
+ .build() {
1505
+ }
1945
1506
 
1507
+ class DescribeClustersCommand extends smithyClient.Command
1508
+ .classBuilder()
1509
+ .ep(commonParams)
1510
+ .m(function (Command, cs, config, o) {
1511
+ return [
1512
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1513
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1514
+ ];
1515
+ })
1516
+ .s("AmazonDAXV3", "DescribeClusters", {})
1517
+ .n("DAXClient", "DescribeClustersCommand")
1518
+ .f(void 0, void 0)
1519
+ .ser(se_DescribeClustersCommand)
1520
+ .de(de_DescribeClustersCommand)
1521
+ .build() {
1522
+ }
1946
1523
 
1524
+ class DescribeDefaultParametersCommand extends smithyClient.Command
1525
+ .classBuilder()
1526
+ .ep(commonParams)
1527
+ .m(function (Command, cs, config, o) {
1528
+ return [
1529
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1530
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1531
+ ];
1532
+ })
1533
+ .s("AmazonDAXV3", "DescribeDefaultParameters", {})
1534
+ .n("DAXClient", "DescribeDefaultParametersCommand")
1535
+ .f(void 0, void 0)
1536
+ .ser(se_DescribeDefaultParametersCommand)
1537
+ .de(de_DescribeDefaultParametersCommand)
1538
+ .build() {
1539
+ }
1947
1540
 
1948
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1949
- return [
1950
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1951
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1952
- ];
1953
- }).s("AmazonDAXV3", "UntagResource", {}).n("DAXClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1954
- static {
1955
- __name(this, "UntagResourceCommand");
1956
- }
1957
- };
1541
+ class DescribeEventsCommand extends smithyClient.Command
1542
+ .classBuilder()
1543
+ .ep(commonParams)
1544
+ .m(function (Command, cs, config, o) {
1545
+ return [
1546
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1547
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1548
+ ];
1549
+ })
1550
+ .s("AmazonDAXV3", "DescribeEvents", {})
1551
+ .n("DAXClient", "DescribeEventsCommand")
1552
+ .f(void 0, void 0)
1553
+ .ser(se_DescribeEventsCommand)
1554
+ .de(de_DescribeEventsCommand)
1555
+ .build() {
1556
+ }
1958
1557
 
1959
- // src/commands/UpdateClusterCommand.ts
1558
+ class DescribeParameterGroupsCommand extends smithyClient.Command
1559
+ .classBuilder()
1560
+ .ep(commonParams)
1561
+ .m(function (Command, cs, config, o) {
1562
+ return [
1563
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1564
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1565
+ ];
1566
+ })
1567
+ .s("AmazonDAXV3", "DescribeParameterGroups", {})
1568
+ .n("DAXClient", "DescribeParameterGroupsCommand")
1569
+ .f(void 0, void 0)
1570
+ .ser(se_DescribeParameterGroupsCommand)
1571
+ .de(de_DescribeParameterGroupsCommand)
1572
+ .build() {
1573
+ }
1960
1574
 
1575
+ class DescribeParametersCommand extends smithyClient.Command
1576
+ .classBuilder()
1577
+ .ep(commonParams)
1578
+ .m(function (Command, cs, config, o) {
1579
+ return [
1580
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1581
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1582
+ ];
1583
+ })
1584
+ .s("AmazonDAXV3", "DescribeParameters", {})
1585
+ .n("DAXClient", "DescribeParametersCommand")
1586
+ .f(void 0, void 0)
1587
+ .ser(se_DescribeParametersCommand)
1588
+ .de(de_DescribeParametersCommand)
1589
+ .build() {
1590
+ }
1961
1591
 
1592
+ class DescribeSubnetGroupsCommand extends smithyClient.Command
1593
+ .classBuilder()
1594
+ .ep(commonParams)
1595
+ .m(function (Command, cs, config, o) {
1596
+ return [
1597
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1598
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1599
+ ];
1600
+ })
1601
+ .s("AmazonDAXV3", "DescribeSubnetGroups", {})
1602
+ .n("DAXClient", "DescribeSubnetGroupsCommand")
1603
+ .f(void 0, void 0)
1604
+ .ser(se_DescribeSubnetGroupsCommand)
1605
+ .de(de_DescribeSubnetGroupsCommand)
1606
+ .build() {
1607
+ }
1962
1608
 
1963
- var UpdateClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1964
- return [
1965
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1966
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1967
- ];
1968
- }).s("AmazonDAXV3", "UpdateCluster", {}).n("DAXClient", "UpdateClusterCommand").f(void 0, void 0).ser(se_UpdateClusterCommand).de(de_UpdateClusterCommand).build() {
1969
- static {
1970
- __name(this, "UpdateClusterCommand");
1971
- }
1972
- };
1609
+ class IncreaseReplicationFactorCommand extends smithyClient.Command
1610
+ .classBuilder()
1611
+ .ep(commonParams)
1612
+ .m(function (Command, cs, config, o) {
1613
+ return [
1614
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1615
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1616
+ ];
1617
+ })
1618
+ .s("AmazonDAXV3", "IncreaseReplicationFactor", {})
1619
+ .n("DAXClient", "IncreaseReplicationFactorCommand")
1620
+ .f(void 0, void 0)
1621
+ .ser(se_IncreaseReplicationFactorCommand)
1622
+ .de(de_IncreaseReplicationFactorCommand)
1623
+ .build() {
1624
+ }
1973
1625
 
1974
- // src/commands/UpdateParameterGroupCommand.ts
1626
+ class ListTagsCommand extends smithyClient.Command
1627
+ .classBuilder()
1628
+ .ep(commonParams)
1629
+ .m(function (Command, cs, config, o) {
1630
+ return [
1631
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1632
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1633
+ ];
1634
+ })
1635
+ .s("AmazonDAXV3", "ListTags", {})
1636
+ .n("DAXClient", "ListTagsCommand")
1637
+ .f(void 0, void 0)
1638
+ .ser(se_ListTagsCommand)
1639
+ .de(de_ListTagsCommand)
1640
+ .build() {
1641
+ }
1975
1642
 
1643
+ class RebootNodeCommand extends smithyClient.Command
1644
+ .classBuilder()
1645
+ .ep(commonParams)
1646
+ .m(function (Command, cs, config, o) {
1647
+ return [
1648
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1649
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1650
+ ];
1651
+ })
1652
+ .s("AmazonDAXV3", "RebootNode", {})
1653
+ .n("DAXClient", "RebootNodeCommand")
1654
+ .f(void 0, void 0)
1655
+ .ser(se_RebootNodeCommand)
1656
+ .de(de_RebootNodeCommand)
1657
+ .build() {
1658
+ }
1976
1659
 
1660
+ class TagResourceCommand extends smithyClient.Command
1661
+ .classBuilder()
1662
+ .ep(commonParams)
1663
+ .m(function (Command, cs, config, o) {
1664
+ return [
1665
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1666
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1667
+ ];
1668
+ })
1669
+ .s("AmazonDAXV3", "TagResource", {})
1670
+ .n("DAXClient", "TagResourceCommand")
1671
+ .f(void 0, void 0)
1672
+ .ser(se_TagResourceCommand)
1673
+ .de(de_TagResourceCommand)
1674
+ .build() {
1675
+ }
1977
1676
 
1978
- var UpdateParameterGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1979
- return [
1980
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1981
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1982
- ];
1983
- }).s("AmazonDAXV3", "UpdateParameterGroup", {}).n("DAXClient", "UpdateParameterGroupCommand").f(void 0, void 0).ser(se_UpdateParameterGroupCommand).de(de_UpdateParameterGroupCommand).build() {
1984
- static {
1985
- __name(this, "UpdateParameterGroupCommand");
1986
- }
1987
- };
1677
+ class UntagResourceCommand extends smithyClient.Command
1678
+ .classBuilder()
1679
+ .ep(commonParams)
1680
+ .m(function (Command, cs, config, o) {
1681
+ return [
1682
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1683
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1684
+ ];
1685
+ })
1686
+ .s("AmazonDAXV3", "UntagResource", {})
1687
+ .n("DAXClient", "UntagResourceCommand")
1688
+ .f(void 0, void 0)
1689
+ .ser(se_UntagResourceCommand)
1690
+ .de(de_UntagResourceCommand)
1691
+ .build() {
1692
+ }
1988
1693
 
1989
- // src/commands/UpdateSubnetGroupCommand.ts
1694
+ class UpdateClusterCommand extends smithyClient.Command
1695
+ .classBuilder()
1696
+ .ep(commonParams)
1697
+ .m(function (Command, cs, config, o) {
1698
+ return [
1699
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1700
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1701
+ ];
1702
+ })
1703
+ .s("AmazonDAXV3", "UpdateCluster", {})
1704
+ .n("DAXClient", "UpdateClusterCommand")
1705
+ .f(void 0, void 0)
1706
+ .ser(se_UpdateClusterCommand)
1707
+ .de(de_UpdateClusterCommand)
1708
+ .build() {
1709
+ }
1990
1710
 
1711
+ class UpdateParameterGroupCommand extends smithyClient.Command
1712
+ .classBuilder()
1713
+ .ep(commonParams)
1714
+ .m(function (Command, cs, config, o) {
1715
+ return [
1716
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1717
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1718
+ ];
1719
+ })
1720
+ .s("AmazonDAXV3", "UpdateParameterGroup", {})
1721
+ .n("DAXClient", "UpdateParameterGroupCommand")
1722
+ .f(void 0, void 0)
1723
+ .ser(se_UpdateParameterGroupCommand)
1724
+ .de(de_UpdateParameterGroupCommand)
1725
+ .build() {
1726
+ }
1991
1727
 
1728
+ class UpdateSubnetGroupCommand extends smithyClient.Command
1729
+ .classBuilder()
1730
+ .ep(commonParams)
1731
+ .m(function (Command, cs, config, o) {
1732
+ return [
1733
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1734
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1735
+ ];
1736
+ })
1737
+ .s("AmazonDAXV3", "UpdateSubnetGroup", {})
1738
+ .n("DAXClient", "UpdateSubnetGroupCommand")
1739
+ .f(void 0, void 0)
1740
+ .ser(se_UpdateSubnetGroupCommand)
1741
+ .de(de_UpdateSubnetGroupCommand)
1742
+ .build() {
1743
+ }
1992
1744
 
1993
- var UpdateSubnetGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1994
- return [
1995
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1996
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1997
- ];
1998
- }).s("AmazonDAXV3", "UpdateSubnetGroup", {}).n("DAXClient", "UpdateSubnetGroupCommand").f(void 0, void 0).ser(se_UpdateSubnetGroupCommand).de(de_UpdateSubnetGroupCommand).build() {
1999
- static {
2000
- __name(this, "UpdateSubnetGroupCommand");
2001
- }
1745
+ const commands = {
1746
+ CreateClusterCommand,
1747
+ CreateParameterGroupCommand,
1748
+ CreateSubnetGroupCommand,
1749
+ DecreaseReplicationFactorCommand,
1750
+ DeleteClusterCommand,
1751
+ DeleteParameterGroupCommand,
1752
+ DeleteSubnetGroupCommand,
1753
+ DescribeClustersCommand,
1754
+ DescribeDefaultParametersCommand,
1755
+ DescribeEventsCommand,
1756
+ DescribeParameterGroupsCommand,
1757
+ DescribeParametersCommand,
1758
+ DescribeSubnetGroupsCommand,
1759
+ IncreaseReplicationFactorCommand,
1760
+ ListTagsCommand,
1761
+ RebootNodeCommand,
1762
+ TagResourceCommand,
1763
+ UntagResourceCommand,
1764
+ UpdateClusterCommand,
1765
+ UpdateParameterGroupCommand,
1766
+ UpdateSubnetGroupCommand,
2002
1767
  };
1768
+ class DAX extends DAXClient {
1769
+ }
1770
+ smithyClient.createAggregatedClient(commands, DAX);
2003
1771
 
2004
- // src/DAX.ts
2005
- var commands = {
2006
- CreateClusterCommand,
2007
- CreateParameterGroupCommand,
2008
- CreateSubnetGroupCommand,
2009
- DecreaseReplicationFactorCommand,
2010
- DeleteClusterCommand,
2011
- DeleteParameterGroupCommand,
2012
- DeleteSubnetGroupCommand,
2013
- DescribeClustersCommand,
2014
- DescribeDefaultParametersCommand,
2015
- DescribeEventsCommand,
2016
- DescribeParameterGroupsCommand,
2017
- DescribeParametersCommand,
2018
- DescribeSubnetGroupsCommand,
2019
- IncreaseReplicationFactorCommand,
2020
- ListTagsCommand,
2021
- RebootNodeCommand,
2022
- TagResourceCommand,
2023
- UntagResourceCommand,
2024
- UpdateClusterCommand,
2025
- UpdateParameterGroupCommand,
2026
- UpdateSubnetGroupCommand
2027
- };
2028
- var DAX = class extends DAXClient {
2029
- static {
2030
- __name(this, "DAX");
2031
- }
2032
- };
2033
- (0, import_smithy_client.createAggregatedClient)(commands, DAX);
2034
- // Annotate the CommonJS export names for ESM import in node:
2035
-
2036
- 0 && (module.exports = {
2037
- DAXServiceException,
2038
- __Client,
2039
- DAXClient,
2040
- DAX,
2041
- $Command,
2042
- CreateClusterCommand,
2043
- CreateParameterGroupCommand,
2044
- CreateSubnetGroupCommand,
2045
- DecreaseReplicationFactorCommand,
2046
- DeleteClusterCommand,
2047
- DeleteParameterGroupCommand,
2048
- DeleteSubnetGroupCommand,
2049
- DescribeClustersCommand,
2050
- DescribeDefaultParametersCommand,
2051
- DescribeEventsCommand,
2052
- DescribeParameterGroupsCommand,
2053
- DescribeParametersCommand,
2054
- DescribeSubnetGroupsCommand,
2055
- IncreaseReplicationFactorCommand,
2056
- ListTagsCommand,
2057
- RebootNodeCommand,
2058
- TagResourceCommand,
2059
- UntagResourceCommand,
2060
- UpdateClusterCommand,
2061
- UpdateParameterGroupCommand,
2062
- UpdateSubnetGroupCommand,
2063
- ClusterAlreadyExistsFault,
2064
- ClusterQuotaForCustomerExceededFault,
2065
- ClusterEndpointEncryptionType,
2066
- NetworkType,
2067
- SSEStatus,
2068
- InsufficientClusterCapacityFault,
2069
- InvalidClusterStateFault,
2070
- InvalidParameterCombinationException,
2071
- InvalidParameterGroupStateFault,
2072
- InvalidParameterValueException,
2073
- InvalidVPCNetworkStateFault,
2074
- NodeQuotaForClusterExceededFault,
2075
- NodeQuotaForCustomerExceededFault,
2076
- ParameterGroupNotFoundFault,
2077
- ServiceLinkedRoleNotFoundFault,
2078
- ServiceQuotaExceededException,
2079
- SubnetGroupNotFoundFault,
2080
- TagQuotaPerResourceExceeded,
2081
- ParameterGroupAlreadyExistsFault,
2082
- ParameterGroupQuotaExceededFault,
2083
- InvalidSubnet,
2084
- SubnetGroupAlreadyExistsFault,
2085
- SubnetGroupQuotaExceededFault,
2086
- SubnetNotAllowedFault,
2087
- SubnetQuotaExceededFault,
2088
- ClusterNotFoundFault,
2089
- NodeNotFoundFault,
2090
- SubnetGroupInUseFault,
2091
- ChangeType,
2092
- IsModifiable,
2093
- ParameterType,
2094
- SourceType,
2095
- InvalidARNFault,
2096
- TagNotFoundFault,
2097
- SubnetInUse
1772
+ Object.defineProperty(exports, "$Command", {
1773
+ enumerable: true,
1774
+ get: function () { return smithyClient.Command; }
2098
1775
  });
2099
-
1776
+ Object.defineProperty(exports, "__Client", {
1777
+ enumerable: true,
1778
+ get: function () { return smithyClient.Client; }
1779
+ });
1780
+ exports.ChangeType = ChangeType;
1781
+ exports.ClusterAlreadyExistsFault = ClusterAlreadyExistsFault;
1782
+ exports.ClusterEndpointEncryptionType = ClusterEndpointEncryptionType;
1783
+ exports.ClusterNotFoundFault = ClusterNotFoundFault;
1784
+ exports.ClusterQuotaForCustomerExceededFault = ClusterQuotaForCustomerExceededFault;
1785
+ exports.CreateClusterCommand = CreateClusterCommand;
1786
+ exports.CreateParameterGroupCommand = CreateParameterGroupCommand;
1787
+ exports.CreateSubnetGroupCommand = CreateSubnetGroupCommand;
1788
+ exports.DAX = DAX;
1789
+ exports.DAXClient = DAXClient;
1790
+ exports.DAXServiceException = DAXServiceException;
1791
+ exports.DecreaseReplicationFactorCommand = DecreaseReplicationFactorCommand;
1792
+ exports.DeleteClusterCommand = DeleteClusterCommand;
1793
+ exports.DeleteParameterGroupCommand = DeleteParameterGroupCommand;
1794
+ exports.DeleteSubnetGroupCommand = DeleteSubnetGroupCommand;
1795
+ exports.DescribeClustersCommand = DescribeClustersCommand;
1796
+ exports.DescribeDefaultParametersCommand = DescribeDefaultParametersCommand;
1797
+ exports.DescribeEventsCommand = DescribeEventsCommand;
1798
+ exports.DescribeParameterGroupsCommand = DescribeParameterGroupsCommand;
1799
+ exports.DescribeParametersCommand = DescribeParametersCommand;
1800
+ exports.DescribeSubnetGroupsCommand = DescribeSubnetGroupsCommand;
1801
+ exports.IncreaseReplicationFactorCommand = IncreaseReplicationFactorCommand;
1802
+ exports.InsufficientClusterCapacityFault = InsufficientClusterCapacityFault;
1803
+ exports.InvalidARNFault = InvalidARNFault;
1804
+ exports.InvalidClusterStateFault = InvalidClusterStateFault;
1805
+ exports.InvalidParameterCombinationException = InvalidParameterCombinationException;
1806
+ exports.InvalidParameterGroupStateFault = InvalidParameterGroupStateFault;
1807
+ exports.InvalidParameterValueException = InvalidParameterValueException;
1808
+ exports.InvalidSubnet = InvalidSubnet;
1809
+ exports.InvalidVPCNetworkStateFault = InvalidVPCNetworkStateFault;
1810
+ exports.IsModifiable = IsModifiable;
1811
+ exports.ListTagsCommand = ListTagsCommand;
1812
+ exports.NetworkType = NetworkType;
1813
+ exports.NodeNotFoundFault = NodeNotFoundFault;
1814
+ exports.NodeQuotaForClusterExceededFault = NodeQuotaForClusterExceededFault;
1815
+ exports.NodeQuotaForCustomerExceededFault = NodeQuotaForCustomerExceededFault;
1816
+ exports.ParameterGroupAlreadyExistsFault = ParameterGroupAlreadyExistsFault;
1817
+ exports.ParameterGroupNotFoundFault = ParameterGroupNotFoundFault;
1818
+ exports.ParameterGroupQuotaExceededFault = ParameterGroupQuotaExceededFault;
1819
+ exports.ParameterType = ParameterType;
1820
+ exports.RebootNodeCommand = RebootNodeCommand;
1821
+ exports.SSEStatus = SSEStatus;
1822
+ exports.ServiceLinkedRoleNotFoundFault = ServiceLinkedRoleNotFoundFault;
1823
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1824
+ exports.SourceType = SourceType;
1825
+ exports.SubnetGroupAlreadyExistsFault = SubnetGroupAlreadyExistsFault;
1826
+ exports.SubnetGroupInUseFault = SubnetGroupInUseFault;
1827
+ exports.SubnetGroupNotFoundFault = SubnetGroupNotFoundFault;
1828
+ exports.SubnetGroupQuotaExceededFault = SubnetGroupQuotaExceededFault;
1829
+ exports.SubnetInUse = SubnetInUse;
1830
+ exports.SubnetNotAllowedFault = SubnetNotAllowedFault;
1831
+ exports.SubnetQuotaExceededFault = SubnetQuotaExceededFault;
1832
+ exports.TagNotFoundFault = TagNotFoundFault;
1833
+ exports.TagQuotaPerResourceExceeded = TagQuotaPerResourceExceeded;
1834
+ exports.TagResourceCommand = TagResourceCommand;
1835
+ exports.UntagResourceCommand = UntagResourceCommand;
1836
+ exports.UpdateClusterCommand = UpdateClusterCommand;
1837
+ exports.UpdateParameterGroupCommand = UpdateParameterGroupCommand;
1838
+ exports.UpdateSubnetGroupCommand = UpdateSubnetGroupCommand;