@aws-sdk/client-memorydb 3.310.0 → 3.315.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.
@@ -7,382 +7,268 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const MemoryDBServiceException_1 = require("../models/MemoryDBServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_BatchUpdateClusterCommand = async (input, context) => {
10
- const headers = {
11
- "content-type": "application/x-amz-json-1.1",
12
- "x-amz-target": "AmazonMemoryDB.BatchUpdateCluster",
13
- };
10
+ const headers = sharedHeaders("BatchUpdateCluster");
14
11
  let body;
15
- body = JSON.stringify(se_BatchUpdateClusterRequest(input, context));
12
+ body = JSON.stringify((0, smithy_client_1._json)(input));
16
13
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
14
  };
18
15
  exports.se_BatchUpdateClusterCommand = se_BatchUpdateClusterCommand;
19
16
  const se_CopySnapshotCommand = async (input, context) => {
20
- const headers = {
21
- "content-type": "application/x-amz-json-1.1",
22
- "x-amz-target": "AmazonMemoryDB.CopySnapshot",
23
- };
17
+ const headers = sharedHeaders("CopySnapshot");
24
18
  let body;
25
- body = JSON.stringify(se_CopySnapshotRequest(input, context));
19
+ body = JSON.stringify((0, smithy_client_1._json)(input));
26
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
21
  };
28
22
  exports.se_CopySnapshotCommand = se_CopySnapshotCommand;
29
23
  const se_CreateACLCommand = async (input, context) => {
30
- const headers = {
31
- "content-type": "application/x-amz-json-1.1",
32
- "x-amz-target": "AmazonMemoryDB.CreateACL",
33
- };
24
+ const headers = sharedHeaders("CreateACL");
34
25
  let body;
35
- body = JSON.stringify(se_CreateACLRequest(input, context));
26
+ body = JSON.stringify((0, smithy_client_1._json)(input));
36
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
37
28
  };
38
29
  exports.se_CreateACLCommand = se_CreateACLCommand;
39
30
  const se_CreateClusterCommand = async (input, context) => {
40
- const headers = {
41
- "content-type": "application/x-amz-json-1.1",
42
- "x-amz-target": "AmazonMemoryDB.CreateCluster",
43
- };
31
+ const headers = sharedHeaders("CreateCluster");
44
32
  let body;
45
- body = JSON.stringify(se_CreateClusterRequest(input, context));
33
+ body = JSON.stringify((0, smithy_client_1._json)(input));
46
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
35
  };
48
36
  exports.se_CreateClusterCommand = se_CreateClusterCommand;
49
37
  const se_CreateParameterGroupCommand = async (input, context) => {
50
- const headers = {
51
- "content-type": "application/x-amz-json-1.1",
52
- "x-amz-target": "AmazonMemoryDB.CreateParameterGroup",
53
- };
38
+ const headers = sharedHeaders("CreateParameterGroup");
54
39
  let body;
55
- body = JSON.stringify(se_CreateParameterGroupRequest(input, context));
40
+ body = JSON.stringify((0, smithy_client_1._json)(input));
56
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
42
  };
58
43
  exports.se_CreateParameterGroupCommand = se_CreateParameterGroupCommand;
59
44
  const se_CreateSnapshotCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "AmazonMemoryDB.CreateSnapshot",
63
- };
45
+ const headers = sharedHeaders("CreateSnapshot");
64
46
  let body;
65
- body = JSON.stringify(se_CreateSnapshotRequest(input, context));
47
+ body = JSON.stringify((0, smithy_client_1._json)(input));
66
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
49
  };
68
50
  exports.se_CreateSnapshotCommand = se_CreateSnapshotCommand;
69
51
  const se_CreateSubnetGroupCommand = async (input, context) => {
70
- const headers = {
71
- "content-type": "application/x-amz-json-1.1",
72
- "x-amz-target": "AmazonMemoryDB.CreateSubnetGroup",
73
- };
52
+ const headers = sharedHeaders("CreateSubnetGroup");
74
53
  let body;
75
- body = JSON.stringify(se_CreateSubnetGroupRequest(input, context));
54
+ body = JSON.stringify((0, smithy_client_1._json)(input));
76
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
56
  };
78
57
  exports.se_CreateSubnetGroupCommand = se_CreateSubnetGroupCommand;
79
58
  const se_CreateUserCommand = async (input, context) => {
80
- const headers = {
81
- "content-type": "application/x-amz-json-1.1",
82
- "x-amz-target": "AmazonMemoryDB.CreateUser",
83
- };
59
+ const headers = sharedHeaders("CreateUser");
84
60
  let body;
85
- body = JSON.stringify(se_CreateUserRequest(input, context));
61
+ body = JSON.stringify((0, smithy_client_1._json)(input));
86
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
87
63
  };
88
64
  exports.se_CreateUserCommand = se_CreateUserCommand;
89
65
  const se_DeleteACLCommand = async (input, context) => {
90
- const headers = {
91
- "content-type": "application/x-amz-json-1.1",
92
- "x-amz-target": "AmazonMemoryDB.DeleteACL",
93
- };
66
+ const headers = sharedHeaders("DeleteACL");
94
67
  let body;
95
- body = JSON.stringify(se_DeleteACLRequest(input, context));
68
+ body = JSON.stringify((0, smithy_client_1._json)(input));
96
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
70
  };
98
71
  exports.se_DeleteACLCommand = se_DeleteACLCommand;
99
72
  const se_DeleteClusterCommand = async (input, context) => {
100
- const headers = {
101
- "content-type": "application/x-amz-json-1.1",
102
- "x-amz-target": "AmazonMemoryDB.DeleteCluster",
103
- };
73
+ const headers = sharedHeaders("DeleteCluster");
104
74
  let body;
105
- body = JSON.stringify(se_DeleteClusterRequest(input, context));
75
+ body = JSON.stringify((0, smithy_client_1._json)(input));
106
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
77
  };
108
78
  exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
109
79
  const se_DeleteParameterGroupCommand = async (input, context) => {
110
- const headers = {
111
- "content-type": "application/x-amz-json-1.1",
112
- "x-amz-target": "AmazonMemoryDB.DeleteParameterGroup",
113
- };
80
+ const headers = sharedHeaders("DeleteParameterGroup");
114
81
  let body;
115
- body = JSON.stringify(se_DeleteParameterGroupRequest(input, context));
82
+ body = JSON.stringify((0, smithy_client_1._json)(input));
116
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
117
84
  };
118
85
  exports.se_DeleteParameterGroupCommand = se_DeleteParameterGroupCommand;
119
86
  const se_DeleteSnapshotCommand = async (input, context) => {
120
- const headers = {
121
- "content-type": "application/x-amz-json-1.1",
122
- "x-amz-target": "AmazonMemoryDB.DeleteSnapshot",
123
- };
87
+ const headers = sharedHeaders("DeleteSnapshot");
124
88
  let body;
125
- body = JSON.stringify(se_DeleteSnapshotRequest(input, context));
89
+ body = JSON.stringify((0, smithy_client_1._json)(input));
126
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
91
  };
128
92
  exports.se_DeleteSnapshotCommand = se_DeleteSnapshotCommand;
129
93
  const se_DeleteSubnetGroupCommand = async (input, context) => {
130
- const headers = {
131
- "content-type": "application/x-amz-json-1.1",
132
- "x-amz-target": "AmazonMemoryDB.DeleteSubnetGroup",
133
- };
94
+ const headers = sharedHeaders("DeleteSubnetGroup");
134
95
  let body;
135
- body = JSON.stringify(se_DeleteSubnetGroupRequest(input, context));
96
+ body = JSON.stringify((0, smithy_client_1._json)(input));
136
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
98
  };
138
99
  exports.se_DeleteSubnetGroupCommand = se_DeleteSubnetGroupCommand;
139
100
  const se_DeleteUserCommand = async (input, context) => {
140
- const headers = {
141
- "content-type": "application/x-amz-json-1.1",
142
- "x-amz-target": "AmazonMemoryDB.DeleteUser",
143
- };
101
+ const headers = sharedHeaders("DeleteUser");
144
102
  let body;
145
- body = JSON.stringify(se_DeleteUserRequest(input, context));
103
+ body = JSON.stringify((0, smithy_client_1._json)(input));
146
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
105
  };
148
106
  exports.se_DeleteUserCommand = se_DeleteUserCommand;
149
107
  const se_DescribeACLsCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "AmazonMemoryDB.DescribeACLs",
153
- };
108
+ const headers = sharedHeaders("DescribeACLs");
154
109
  let body;
155
- body = JSON.stringify(se_DescribeACLsRequest(input, context));
110
+ body = JSON.stringify((0, smithy_client_1._json)(input));
156
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
112
  };
158
113
  exports.se_DescribeACLsCommand = se_DescribeACLsCommand;
159
114
  const se_DescribeClustersCommand = async (input, context) => {
160
- const headers = {
161
- "content-type": "application/x-amz-json-1.1",
162
- "x-amz-target": "AmazonMemoryDB.DescribeClusters",
163
- };
115
+ const headers = sharedHeaders("DescribeClusters");
164
116
  let body;
165
- body = JSON.stringify(se_DescribeClustersRequest(input, context));
117
+ body = JSON.stringify((0, smithy_client_1._json)(input));
166
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
119
  };
168
120
  exports.se_DescribeClustersCommand = se_DescribeClustersCommand;
169
121
  const se_DescribeEngineVersionsCommand = async (input, context) => {
170
- const headers = {
171
- "content-type": "application/x-amz-json-1.1",
172
- "x-amz-target": "AmazonMemoryDB.DescribeEngineVersions",
173
- };
122
+ const headers = sharedHeaders("DescribeEngineVersions");
174
123
  let body;
175
- body = JSON.stringify(se_DescribeEngineVersionsRequest(input, context));
124
+ body = JSON.stringify((0, smithy_client_1._json)(input));
176
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
177
126
  };
178
127
  exports.se_DescribeEngineVersionsCommand = se_DescribeEngineVersionsCommand;
179
128
  const se_DescribeEventsCommand = async (input, context) => {
180
- const headers = {
181
- "content-type": "application/x-amz-json-1.1",
182
- "x-amz-target": "AmazonMemoryDB.DescribeEvents",
183
- };
129
+ const headers = sharedHeaders("DescribeEvents");
184
130
  let body;
185
131
  body = JSON.stringify(se_DescribeEventsRequest(input, context));
186
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
187
133
  };
188
134
  exports.se_DescribeEventsCommand = se_DescribeEventsCommand;
189
135
  const se_DescribeParameterGroupsCommand = async (input, context) => {
190
- const headers = {
191
- "content-type": "application/x-amz-json-1.1",
192
- "x-amz-target": "AmazonMemoryDB.DescribeParameterGroups",
193
- };
136
+ const headers = sharedHeaders("DescribeParameterGroups");
194
137
  let body;
195
- body = JSON.stringify(se_DescribeParameterGroupsRequest(input, context));
138
+ body = JSON.stringify((0, smithy_client_1._json)(input));
196
139
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
140
  };
198
141
  exports.se_DescribeParameterGroupsCommand = se_DescribeParameterGroupsCommand;
199
142
  const se_DescribeParametersCommand = async (input, context) => {
200
- const headers = {
201
- "content-type": "application/x-amz-json-1.1",
202
- "x-amz-target": "AmazonMemoryDB.DescribeParameters",
203
- };
143
+ const headers = sharedHeaders("DescribeParameters");
204
144
  let body;
205
- body = JSON.stringify(se_DescribeParametersRequest(input, context));
145
+ body = JSON.stringify((0, smithy_client_1._json)(input));
206
146
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
207
147
  };
208
148
  exports.se_DescribeParametersCommand = se_DescribeParametersCommand;
209
149
  const se_DescribeReservedNodesCommand = async (input, context) => {
210
- const headers = {
211
- "content-type": "application/x-amz-json-1.1",
212
- "x-amz-target": "AmazonMemoryDB.DescribeReservedNodes",
213
- };
150
+ const headers = sharedHeaders("DescribeReservedNodes");
214
151
  let body;
215
- body = JSON.stringify(se_DescribeReservedNodesRequest(input, context));
152
+ body = JSON.stringify((0, smithy_client_1._json)(input));
216
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
154
  };
218
155
  exports.se_DescribeReservedNodesCommand = se_DescribeReservedNodesCommand;
219
156
  const se_DescribeReservedNodesOfferingsCommand = async (input, context) => {
220
- const headers = {
221
- "content-type": "application/x-amz-json-1.1",
222
- "x-amz-target": "AmazonMemoryDB.DescribeReservedNodesOfferings",
223
- };
157
+ const headers = sharedHeaders("DescribeReservedNodesOfferings");
224
158
  let body;
225
- body = JSON.stringify(se_DescribeReservedNodesOfferingsRequest(input, context));
159
+ body = JSON.stringify((0, smithy_client_1._json)(input));
226
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
161
  };
228
162
  exports.se_DescribeReservedNodesOfferingsCommand = se_DescribeReservedNodesOfferingsCommand;
229
163
  const se_DescribeServiceUpdatesCommand = async (input, context) => {
230
- const headers = {
231
- "content-type": "application/x-amz-json-1.1",
232
- "x-amz-target": "AmazonMemoryDB.DescribeServiceUpdates",
233
- };
164
+ const headers = sharedHeaders("DescribeServiceUpdates");
234
165
  let body;
235
- body = JSON.stringify(se_DescribeServiceUpdatesRequest(input, context));
166
+ body = JSON.stringify((0, smithy_client_1._json)(input));
236
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
237
168
  };
238
169
  exports.se_DescribeServiceUpdatesCommand = se_DescribeServiceUpdatesCommand;
239
170
  const se_DescribeSnapshotsCommand = async (input, context) => {
240
- const headers = {
241
- "content-type": "application/x-amz-json-1.1",
242
- "x-amz-target": "AmazonMemoryDB.DescribeSnapshots",
243
- };
171
+ const headers = sharedHeaders("DescribeSnapshots");
244
172
  let body;
245
- body = JSON.stringify(se_DescribeSnapshotsRequest(input, context));
173
+ body = JSON.stringify((0, smithy_client_1._json)(input));
246
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
175
  };
248
176
  exports.se_DescribeSnapshotsCommand = se_DescribeSnapshotsCommand;
249
177
  const se_DescribeSubnetGroupsCommand = async (input, context) => {
250
- const headers = {
251
- "content-type": "application/x-amz-json-1.1",
252
- "x-amz-target": "AmazonMemoryDB.DescribeSubnetGroups",
253
- };
178
+ const headers = sharedHeaders("DescribeSubnetGroups");
254
179
  let body;
255
- body = JSON.stringify(se_DescribeSubnetGroupsRequest(input, context));
180
+ body = JSON.stringify((0, smithy_client_1._json)(input));
256
181
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
182
  };
258
183
  exports.se_DescribeSubnetGroupsCommand = se_DescribeSubnetGroupsCommand;
259
184
  const se_DescribeUsersCommand = async (input, context) => {
260
- const headers = {
261
- "content-type": "application/x-amz-json-1.1",
262
- "x-amz-target": "AmazonMemoryDB.DescribeUsers",
263
- };
185
+ const headers = sharedHeaders("DescribeUsers");
264
186
  let body;
265
- body = JSON.stringify(se_DescribeUsersRequest(input, context));
187
+ body = JSON.stringify((0, smithy_client_1._json)(input));
266
188
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
189
  };
268
190
  exports.se_DescribeUsersCommand = se_DescribeUsersCommand;
269
191
  const se_FailoverShardCommand = async (input, context) => {
270
- const headers = {
271
- "content-type": "application/x-amz-json-1.1",
272
- "x-amz-target": "AmazonMemoryDB.FailoverShard",
273
- };
192
+ const headers = sharedHeaders("FailoverShard");
274
193
  let body;
275
- body = JSON.stringify(se_FailoverShardRequest(input, context));
194
+ body = JSON.stringify((0, smithy_client_1._json)(input));
276
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
277
196
  };
278
197
  exports.se_FailoverShardCommand = se_FailoverShardCommand;
279
198
  const se_ListAllowedNodeTypeUpdatesCommand = async (input, context) => {
280
- const headers = {
281
- "content-type": "application/x-amz-json-1.1",
282
- "x-amz-target": "AmazonMemoryDB.ListAllowedNodeTypeUpdates",
283
- };
199
+ const headers = sharedHeaders("ListAllowedNodeTypeUpdates");
284
200
  let body;
285
- body = JSON.stringify(se_ListAllowedNodeTypeUpdatesRequest(input, context));
201
+ body = JSON.stringify((0, smithy_client_1._json)(input));
286
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
203
  };
288
204
  exports.se_ListAllowedNodeTypeUpdatesCommand = se_ListAllowedNodeTypeUpdatesCommand;
289
205
  const se_ListTagsCommand = async (input, context) => {
290
- const headers = {
291
- "content-type": "application/x-amz-json-1.1",
292
- "x-amz-target": "AmazonMemoryDB.ListTags",
293
- };
206
+ const headers = sharedHeaders("ListTags");
294
207
  let body;
295
- body = JSON.stringify(se_ListTagsRequest(input, context));
208
+ body = JSON.stringify((0, smithy_client_1._json)(input));
296
209
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
297
210
  };
298
211
  exports.se_ListTagsCommand = se_ListTagsCommand;
299
212
  const se_PurchaseReservedNodesOfferingCommand = async (input, context) => {
300
- const headers = {
301
- "content-type": "application/x-amz-json-1.1",
302
- "x-amz-target": "AmazonMemoryDB.PurchaseReservedNodesOffering",
303
- };
213
+ const headers = sharedHeaders("PurchaseReservedNodesOffering");
304
214
  let body;
305
- body = JSON.stringify(se_PurchaseReservedNodesOfferingRequest(input, context));
215
+ body = JSON.stringify((0, smithy_client_1._json)(input));
306
216
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
307
217
  };
308
218
  exports.se_PurchaseReservedNodesOfferingCommand = se_PurchaseReservedNodesOfferingCommand;
309
219
  const se_ResetParameterGroupCommand = async (input, context) => {
310
- const headers = {
311
- "content-type": "application/x-amz-json-1.1",
312
- "x-amz-target": "AmazonMemoryDB.ResetParameterGroup",
313
- };
220
+ const headers = sharedHeaders("ResetParameterGroup");
314
221
  let body;
315
- body = JSON.stringify(se_ResetParameterGroupRequest(input, context));
222
+ body = JSON.stringify((0, smithy_client_1._json)(input));
316
223
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
224
  };
318
225
  exports.se_ResetParameterGroupCommand = se_ResetParameterGroupCommand;
319
226
  const se_TagResourceCommand = async (input, context) => {
320
- const headers = {
321
- "content-type": "application/x-amz-json-1.1",
322
- "x-amz-target": "AmazonMemoryDB.TagResource",
323
- };
227
+ const headers = sharedHeaders("TagResource");
324
228
  let body;
325
- body = JSON.stringify(se_TagResourceRequest(input, context));
229
+ body = JSON.stringify((0, smithy_client_1._json)(input));
326
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
327
231
  };
328
232
  exports.se_TagResourceCommand = se_TagResourceCommand;
329
233
  const se_UntagResourceCommand = async (input, context) => {
330
- const headers = {
331
- "content-type": "application/x-amz-json-1.1",
332
- "x-amz-target": "AmazonMemoryDB.UntagResource",
333
- };
234
+ const headers = sharedHeaders("UntagResource");
334
235
  let body;
335
- body = JSON.stringify(se_UntagResourceRequest(input, context));
236
+ body = JSON.stringify((0, smithy_client_1._json)(input));
336
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
238
  };
338
239
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
339
240
  const se_UpdateACLCommand = async (input, context) => {
340
- const headers = {
341
- "content-type": "application/x-amz-json-1.1",
342
- "x-amz-target": "AmazonMemoryDB.UpdateACL",
343
- };
241
+ const headers = sharedHeaders("UpdateACL");
344
242
  let body;
345
- body = JSON.stringify(se_UpdateACLRequest(input, context));
243
+ body = JSON.stringify((0, smithy_client_1._json)(input));
346
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
245
  };
348
246
  exports.se_UpdateACLCommand = se_UpdateACLCommand;
349
247
  const se_UpdateClusterCommand = async (input, context) => {
350
- const headers = {
351
- "content-type": "application/x-amz-json-1.1",
352
- "x-amz-target": "AmazonMemoryDB.UpdateCluster",
353
- };
248
+ const headers = sharedHeaders("UpdateCluster");
354
249
  let body;
355
- body = JSON.stringify(se_UpdateClusterRequest(input, context));
250
+ body = JSON.stringify((0, smithy_client_1._json)(input));
356
251
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
357
252
  };
358
253
  exports.se_UpdateClusterCommand = se_UpdateClusterCommand;
359
254
  const se_UpdateParameterGroupCommand = async (input, context) => {
360
- const headers = {
361
- "content-type": "application/x-amz-json-1.1",
362
- "x-amz-target": "AmazonMemoryDB.UpdateParameterGroup",
363
- };
255
+ const headers = sharedHeaders("UpdateParameterGroup");
364
256
  let body;
365
- body = JSON.stringify(se_UpdateParameterGroupRequest(input, context));
257
+ body = JSON.stringify((0, smithy_client_1._json)(input));
366
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
367
259
  };
368
260
  exports.se_UpdateParameterGroupCommand = se_UpdateParameterGroupCommand;
369
261
  const se_UpdateSubnetGroupCommand = async (input, context) => {
370
- const headers = {
371
- "content-type": "application/x-amz-json-1.1",
372
- "x-amz-target": "AmazonMemoryDB.UpdateSubnetGroup",
373
- };
262
+ const headers = sharedHeaders("UpdateSubnetGroup");
374
263
  let body;
375
- body = JSON.stringify(se_UpdateSubnetGroupRequest(input, context));
264
+ body = JSON.stringify((0, smithy_client_1._json)(input));
376
265
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
266
  };
378
267
  exports.se_UpdateSubnetGroupCommand = se_UpdateSubnetGroupCommand;
379
268
  const se_UpdateUserCommand = async (input, context) => {
380
- const headers = {
381
- "content-type": "application/x-amz-json-1.1",
382
- "x-amz-target": "AmazonMemoryDB.UpdateUser",
383
- };
269
+ const headers = sharedHeaders("UpdateUser");
384
270
  let body;
385
- body = JSON.stringify(se_UpdateUserRequest(input, context));
271
+ body = JSON.stringify((0, smithy_client_1._json)(input));
386
272
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
387
273
  };
388
274
  exports.se_UpdateUserCommand = se_UpdateUserCommand;
@@ -397,7 +283,7 @@ const de_BatchUpdateClusterCommand = async (output, context) => {
397
283
  $metadata: deserializeMetadata(output),
398
284
  ...contents,
399
285
  };
400
- return Promise.resolve(response);
286
+ return response;
401
287
  };
402
288
  exports.de_BatchUpdateClusterCommand = de_BatchUpdateClusterCommand;
403
289
  const de_BatchUpdateClusterCommandError = async (output, context) => {
@@ -415,10 +301,9 @@ const de_BatchUpdateClusterCommandError = async (output, context) => {
415
301
  throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
416
302
  default:
417
303
  const parsedBody = parsedOutput.body;
418
- (0, smithy_client_1.throwDefaultError)({
304
+ return throwDefaultError({
419
305
  output,
420
306
  parsedBody,
421
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
422
307
  errorCode,
423
308
  });
424
309
  }
@@ -434,7 +319,7 @@ const de_CopySnapshotCommand = async (output, context) => {
434
319
  $metadata: deserializeMetadata(output),
435
320
  ...contents,
436
321
  };
437
- return Promise.resolve(response);
322
+ return response;
438
323
  };
439
324
  exports.de_CopySnapshotCommand = de_CopySnapshotCommand;
440
325
  const de_CopySnapshotCommandError = async (output, context) => {
@@ -470,10 +355,9 @@ const de_CopySnapshotCommandError = async (output, context) => {
470
355
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
471
356
  default:
472
357
  const parsedBody = parsedOutput.body;
473
- (0, smithy_client_1.throwDefaultError)({
358
+ return throwDefaultError({
474
359
  output,
475
360
  parsedBody,
476
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
477
361
  errorCode,
478
362
  });
479
363
  }
@@ -484,12 +368,12 @@ const de_CreateACLCommand = async (output, context) => {
484
368
  }
485
369
  const data = await parseBody(output.body, context);
486
370
  let contents = {};
487
- contents = de_CreateACLResponse(data, context);
371
+ contents = (0, smithy_client_1._json)(data);
488
372
  const response = {
489
373
  $metadata: deserializeMetadata(output),
490
374
  ...contents,
491
375
  };
492
- return Promise.resolve(response);
376
+ return response;
493
377
  };
494
378
  exports.de_CreateACLCommand = de_CreateACLCommand;
495
379
  const de_CreateACLCommandError = async (output, context) => {
@@ -522,10 +406,9 @@ const de_CreateACLCommandError = async (output, context) => {
522
406
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
523
407
  default:
524
408
  const parsedBody = parsedOutput.body;
525
- (0, smithy_client_1.throwDefaultError)({
409
+ return throwDefaultError({
526
410
  output,
527
411
  parsedBody,
528
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
529
412
  errorCode,
530
413
  });
531
414
  }
@@ -541,7 +424,7 @@ const de_CreateClusterCommand = async (output, context) => {
541
424
  $metadata: deserializeMetadata(output),
542
425
  ...contents,
543
426
  };
544
- return Promise.resolve(response);
427
+ return response;
545
428
  };
546
429
  exports.de_CreateClusterCommand = de_CreateClusterCommand;
547
430
  const de_CreateClusterCommandError = async (output, context) => {
@@ -601,10 +484,9 @@ const de_CreateClusterCommandError = async (output, context) => {
601
484
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
602
485
  default:
603
486
  const parsedBody = parsedOutput.body;
604
- (0, smithy_client_1.throwDefaultError)({
487
+ return throwDefaultError({
605
488
  output,
606
489
  parsedBody,
607
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
608
490
  errorCode,
609
491
  });
610
492
  }
@@ -615,12 +497,12 @@ const de_CreateParameterGroupCommand = async (output, context) => {
615
497
  }
616
498
  const data = await parseBody(output.body, context);
617
499
  let contents = {};
618
- contents = de_CreateParameterGroupResponse(data, context);
500
+ contents = (0, smithy_client_1._json)(data);
619
501
  const response = {
620
502
  $metadata: deserializeMetadata(output),
621
503
  ...contents,
622
504
  };
623
- return Promise.resolve(response);
505
+ return response;
624
506
  };
625
507
  exports.de_CreateParameterGroupCommand = de_CreateParameterGroupCommand;
626
508
  const de_CreateParameterGroupCommandError = async (output, context) => {
@@ -653,10 +535,9 @@ const de_CreateParameterGroupCommandError = async (output, context) => {
653
535
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
654
536
  default:
655
537
  const parsedBody = parsedOutput.body;
656
- (0, smithy_client_1.throwDefaultError)({
538
+ return throwDefaultError({
657
539
  output,
658
540
  parsedBody,
659
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
660
541
  errorCode,
661
542
  });
662
543
  }
@@ -672,7 +553,7 @@ const de_CreateSnapshotCommand = async (output, context) => {
672
553
  $metadata: deserializeMetadata(output),
673
554
  ...contents,
674
555
  };
675
- return Promise.resolve(response);
556
+ return response;
676
557
  };
677
558
  exports.de_CreateSnapshotCommand = de_CreateSnapshotCommand;
678
559
  const de_CreateSnapshotCommandError = async (output, context) => {
@@ -708,10 +589,9 @@ const de_CreateSnapshotCommandError = async (output, context) => {
708
589
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
709
590
  default:
710
591
  const parsedBody = parsedOutput.body;
711
- (0, smithy_client_1.throwDefaultError)({
592
+ return throwDefaultError({
712
593
  output,
713
594
  parsedBody,
714
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
715
595
  errorCode,
716
596
  });
717
597
  }
@@ -722,12 +602,12 @@ const de_CreateSubnetGroupCommand = async (output, context) => {
722
602
  }
723
603
  const data = await parseBody(output.body, context);
724
604
  let contents = {};
725
- contents = de_CreateSubnetGroupResponse(data, context);
605
+ contents = (0, smithy_client_1._json)(data);
726
606
  const response = {
727
607
  $metadata: deserializeMetadata(output),
728
608
  ...contents,
729
609
  };
730
- return Promise.resolve(response);
610
+ return response;
731
611
  };
732
612
  exports.de_CreateSubnetGroupCommand = de_CreateSubnetGroupCommand;
733
613
  const de_CreateSubnetGroupCommandError = async (output, context) => {
@@ -760,10 +640,9 @@ const de_CreateSubnetGroupCommandError = async (output, context) => {
760
640
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
761
641
  default:
762
642
  const parsedBody = parsedOutput.body;
763
- (0, smithy_client_1.throwDefaultError)({
643
+ return throwDefaultError({
764
644
  output,
765
645
  parsedBody,
766
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
767
646
  errorCode,
768
647
  });
769
648
  }
@@ -774,12 +653,12 @@ const de_CreateUserCommand = async (output, context) => {
774
653
  }
775
654
  const data = await parseBody(output.body, context);
776
655
  let contents = {};
777
- contents = de_CreateUserResponse(data, context);
656
+ contents = (0, smithy_client_1._json)(data);
778
657
  const response = {
779
658
  $metadata: deserializeMetadata(output),
780
659
  ...contents,
781
660
  };
782
- return Promise.resolve(response);
661
+ return response;
783
662
  };
784
663
  exports.de_CreateUserCommand = de_CreateUserCommand;
785
664
  const de_CreateUserCommandError = async (output, context) => {
@@ -809,10 +688,9 @@ const de_CreateUserCommandError = async (output, context) => {
809
688
  throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
810
689
  default:
811
690
  const parsedBody = parsedOutput.body;
812
- (0, smithy_client_1.throwDefaultError)({
691
+ return throwDefaultError({
813
692
  output,
814
693
  parsedBody,
815
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
816
694
  errorCode,
817
695
  });
818
696
  }
@@ -823,12 +701,12 @@ const de_DeleteACLCommand = async (output, context) => {
823
701
  }
824
702
  const data = await parseBody(output.body, context);
825
703
  let contents = {};
826
- contents = de_DeleteACLResponse(data, context);
704
+ contents = (0, smithy_client_1._json)(data);
827
705
  const response = {
828
706
  $metadata: deserializeMetadata(output),
829
707
  ...contents,
830
708
  };
831
- return Promise.resolve(response);
709
+ return response;
832
710
  };
833
711
  exports.de_DeleteACLCommand = de_DeleteACLCommand;
834
712
  const de_DeleteACLCommandError = async (output, context) => {
@@ -849,10 +727,9 @@ const de_DeleteACLCommandError = async (output, context) => {
849
727
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
850
728
  default:
851
729
  const parsedBody = parsedOutput.body;
852
- (0, smithy_client_1.throwDefaultError)({
730
+ return throwDefaultError({
853
731
  output,
854
732
  parsedBody,
855
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
856
733
  errorCode,
857
734
  });
858
735
  }
@@ -868,7 +745,7 @@ const de_DeleteClusterCommand = async (output, context) => {
868
745
  $metadata: deserializeMetadata(output),
869
746
  ...contents,
870
747
  };
871
- return Promise.resolve(response);
748
+ return response;
872
749
  };
873
750
  exports.de_DeleteClusterCommand = de_DeleteClusterCommand;
874
751
  const de_DeleteClusterCommandError = async (output, context) => {
@@ -898,10 +775,9 @@ const de_DeleteClusterCommandError = async (output, context) => {
898
775
  throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
899
776
  default:
900
777
  const parsedBody = parsedOutput.body;
901
- (0, smithy_client_1.throwDefaultError)({
778
+ return throwDefaultError({
902
779
  output,
903
780
  parsedBody,
904
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
905
781
  errorCode,
906
782
  });
907
783
  }
@@ -912,12 +788,12 @@ const de_DeleteParameterGroupCommand = async (output, context) => {
912
788
  }
913
789
  const data = await parseBody(output.body, context);
914
790
  let contents = {};
915
- contents = de_DeleteParameterGroupResponse(data, context);
791
+ contents = (0, smithy_client_1._json)(data);
916
792
  const response = {
917
793
  $metadata: deserializeMetadata(output),
918
794
  ...contents,
919
795
  };
920
- return Promise.resolve(response);
796
+ return response;
921
797
  };
922
798
  exports.de_DeleteParameterGroupCommand = de_DeleteParameterGroupCommand;
923
799
  const de_DeleteParameterGroupCommandError = async (output, context) => {
@@ -944,10 +820,9 @@ const de_DeleteParameterGroupCommandError = async (output, context) => {
944
820
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
945
821
  default:
946
822
  const parsedBody = parsedOutput.body;
947
- (0, smithy_client_1.throwDefaultError)({
823
+ return throwDefaultError({
948
824
  output,
949
825
  parsedBody,
950
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
951
826
  errorCode,
952
827
  });
953
828
  }
@@ -963,7 +838,7 @@ const de_DeleteSnapshotCommand = async (output, context) => {
963
838
  $metadata: deserializeMetadata(output),
964
839
  ...contents,
965
840
  };
966
- return Promise.resolve(response);
841
+ return response;
967
842
  };
968
843
  exports.de_DeleteSnapshotCommand = de_DeleteSnapshotCommand;
969
844
  const de_DeleteSnapshotCommandError = async (output, context) => {
@@ -990,10 +865,9 @@ const de_DeleteSnapshotCommandError = async (output, context) => {
990
865
  throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
991
866
  default:
992
867
  const parsedBody = parsedOutput.body;
993
- (0, smithy_client_1.throwDefaultError)({
868
+ return throwDefaultError({
994
869
  output,
995
870
  parsedBody,
996
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
997
871
  errorCode,
998
872
  });
999
873
  }
@@ -1004,12 +878,12 @@ const de_DeleteSubnetGroupCommand = async (output, context) => {
1004
878
  }
1005
879
  const data = await parseBody(output.body, context);
1006
880
  let contents = {};
1007
- contents = de_DeleteSubnetGroupResponse(data, context);
881
+ contents = (0, smithy_client_1._json)(data);
1008
882
  const response = {
1009
883
  $metadata: deserializeMetadata(output),
1010
884
  ...contents,
1011
885
  };
1012
- return Promise.resolve(response);
886
+ return response;
1013
887
  };
1014
888
  exports.de_DeleteSubnetGroupCommand = de_DeleteSubnetGroupCommand;
1015
889
  const de_DeleteSubnetGroupCommandError = async (output, context) => {
@@ -1030,10 +904,9 @@ const de_DeleteSubnetGroupCommandError = async (output, context) => {
1030
904
  throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
1031
905
  default:
1032
906
  const parsedBody = parsedOutput.body;
1033
- (0, smithy_client_1.throwDefaultError)({
907
+ return throwDefaultError({
1034
908
  output,
1035
909
  parsedBody,
1036
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1037
910
  errorCode,
1038
911
  });
1039
912
  }
@@ -1044,12 +917,12 @@ const de_DeleteUserCommand = async (output, context) => {
1044
917
  }
1045
918
  const data = await parseBody(output.body, context);
1046
919
  let contents = {};
1047
- contents = de_DeleteUserResponse(data, context);
920
+ contents = (0, smithy_client_1._json)(data);
1048
921
  const response = {
1049
922
  $metadata: deserializeMetadata(output),
1050
923
  ...contents,
1051
924
  };
1052
- return Promise.resolve(response);
925
+ return response;
1053
926
  };
1054
927
  exports.de_DeleteUserCommand = de_DeleteUserCommand;
1055
928
  const de_DeleteUserCommandError = async (output, context) => {
@@ -1070,10 +943,9 @@ const de_DeleteUserCommandError = async (output, context) => {
1070
943
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
1071
944
  default:
1072
945
  const parsedBody = parsedOutput.body;
1073
- (0, smithy_client_1.throwDefaultError)({
946
+ return throwDefaultError({
1074
947
  output,
1075
948
  parsedBody,
1076
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1077
949
  errorCode,
1078
950
  });
1079
951
  }
@@ -1084,12 +956,12 @@ const de_DescribeACLsCommand = async (output, context) => {
1084
956
  }
1085
957
  const data = await parseBody(output.body, context);
1086
958
  let contents = {};
1087
- contents = de_DescribeACLsResponse(data, context);
959
+ contents = (0, smithy_client_1._json)(data);
1088
960
  const response = {
1089
961
  $metadata: deserializeMetadata(output),
1090
962
  ...contents,
1091
963
  };
1092
- return Promise.resolve(response);
964
+ return response;
1093
965
  };
1094
966
  exports.de_DescribeACLsCommand = de_DescribeACLsCommand;
1095
967
  const de_DescribeACLsCommandError = async (output, context) => {
@@ -1107,10 +979,9 @@ const de_DescribeACLsCommandError = async (output, context) => {
1107
979
  throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1108
980
  default:
1109
981
  const parsedBody = parsedOutput.body;
1110
- (0, smithy_client_1.throwDefaultError)({
982
+ return throwDefaultError({
1111
983
  output,
1112
984
  parsedBody,
1113
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1114
985
  errorCode,
1115
986
  });
1116
987
  }
@@ -1126,7 +997,7 @@ const de_DescribeClustersCommand = async (output, context) => {
1126
997
  $metadata: deserializeMetadata(output),
1127
998
  ...contents,
1128
999
  };
1129
- return Promise.resolve(response);
1000
+ return response;
1130
1001
  };
1131
1002
  exports.de_DescribeClustersCommand = de_DescribeClustersCommand;
1132
1003
  const de_DescribeClustersCommandError = async (output, context) => {
@@ -1150,10 +1021,9 @@ const de_DescribeClustersCommandError = async (output, context) => {
1150
1021
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1151
1022
  default:
1152
1023
  const parsedBody = parsedOutput.body;
1153
- (0, smithy_client_1.throwDefaultError)({
1024
+ return throwDefaultError({
1154
1025
  output,
1155
1026
  parsedBody,
1156
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1157
1027
  errorCode,
1158
1028
  });
1159
1029
  }
@@ -1164,12 +1034,12 @@ const de_DescribeEngineVersionsCommand = async (output, context) => {
1164
1034
  }
1165
1035
  const data = await parseBody(output.body, context);
1166
1036
  let contents = {};
1167
- contents = de_DescribeEngineVersionsResponse(data, context);
1037
+ contents = (0, smithy_client_1._json)(data);
1168
1038
  const response = {
1169
1039
  $metadata: deserializeMetadata(output),
1170
1040
  ...contents,
1171
1041
  };
1172
- return Promise.resolve(response);
1042
+ return response;
1173
1043
  };
1174
1044
  exports.de_DescribeEngineVersionsCommand = de_DescribeEngineVersionsCommand;
1175
1045
  const de_DescribeEngineVersionsCommandError = async (output, context) => {
@@ -1190,10 +1060,9 @@ const de_DescribeEngineVersionsCommandError = async (output, context) => {
1190
1060
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1191
1061
  default:
1192
1062
  const parsedBody = parsedOutput.body;
1193
- (0, smithy_client_1.throwDefaultError)({
1063
+ return throwDefaultError({
1194
1064
  output,
1195
1065
  parsedBody,
1196
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1197
1066
  errorCode,
1198
1067
  });
1199
1068
  }
@@ -1209,7 +1078,7 @@ const de_DescribeEventsCommand = async (output, context) => {
1209
1078
  $metadata: deserializeMetadata(output),
1210
1079
  ...contents,
1211
1080
  };
1212
- return Promise.resolve(response);
1081
+ return response;
1213
1082
  };
1214
1083
  exports.de_DescribeEventsCommand = de_DescribeEventsCommand;
1215
1084
  const de_DescribeEventsCommandError = async (output, context) => {
@@ -1230,10 +1099,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
1230
1099
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1231
1100
  default:
1232
1101
  const parsedBody = parsedOutput.body;
1233
- (0, smithy_client_1.throwDefaultError)({
1102
+ return throwDefaultError({
1234
1103
  output,
1235
1104
  parsedBody,
1236
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1237
1105
  errorCode,
1238
1106
  });
1239
1107
  }
@@ -1244,12 +1112,12 @@ const de_DescribeParameterGroupsCommand = async (output, context) => {
1244
1112
  }
1245
1113
  const data = await parseBody(output.body, context);
1246
1114
  let contents = {};
1247
- contents = de_DescribeParameterGroupsResponse(data, context);
1115
+ contents = (0, smithy_client_1._json)(data);
1248
1116
  const response = {
1249
1117
  $metadata: deserializeMetadata(output),
1250
1118
  ...contents,
1251
1119
  };
1252
- return Promise.resolve(response);
1120
+ return response;
1253
1121
  };
1254
1122
  exports.de_DescribeParameterGroupsCommand = de_DescribeParameterGroupsCommand;
1255
1123
  const de_DescribeParameterGroupsCommandError = async (output, context) => {
@@ -1273,10 +1141,9 @@ const de_DescribeParameterGroupsCommandError = async (output, context) => {
1273
1141
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1274
1142
  default:
1275
1143
  const parsedBody = parsedOutput.body;
1276
- (0, smithy_client_1.throwDefaultError)({
1144
+ return throwDefaultError({
1277
1145
  output,
1278
1146
  parsedBody,
1279
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1280
1147
  errorCode,
1281
1148
  });
1282
1149
  }
@@ -1287,12 +1154,12 @@ const de_DescribeParametersCommand = async (output, context) => {
1287
1154
  }
1288
1155
  const data = await parseBody(output.body, context);
1289
1156
  let contents = {};
1290
- contents = de_DescribeParametersResponse(data, context);
1157
+ contents = (0, smithy_client_1._json)(data);
1291
1158
  const response = {
1292
1159
  $metadata: deserializeMetadata(output),
1293
1160
  ...contents,
1294
1161
  };
1295
- return Promise.resolve(response);
1162
+ return response;
1296
1163
  };
1297
1164
  exports.de_DescribeParametersCommand = de_DescribeParametersCommand;
1298
1165
  const de_DescribeParametersCommandError = async (output, context) => {
@@ -1316,10 +1183,9 @@ const de_DescribeParametersCommandError = async (output, context) => {
1316
1183
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1317
1184
  default:
1318
1185
  const parsedBody = parsedOutput.body;
1319
- (0, smithy_client_1.throwDefaultError)({
1186
+ return throwDefaultError({
1320
1187
  output,
1321
1188
  parsedBody,
1322
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1323
1189
  errorCode,
1324
1190
  });
1325
1191
  }
@@ -1335,7 +1201,7 @@ const de_DescribeReservedNodesCommand = async (output, context) => {
1335
1201
  $metadata: deserializeMetadata(output),
1336
1202
  ...contents,
1337
1203
  };
1338
- return Promise.resolve(response);
1204
+ return response;
1339
1205
  };
1340
1206
  exports.de_DescribeReservedNodesCommand = de_DescribeReservedNodesCommand;
1341
1207
  const de_DescribeReservedNodesCommandError = async (output, context) => {
@@ -1359,10 +1225,9 @@ const de_DescribeReservedNodesCommandError = async (output, context) => {
1359
1225
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1360
1226
  default:
1361
1227
  const parsedBody = parsedOutput.body;
1362
- (0, smithy_client_1.throwDefaultError)({
1228
+ return throwDefaultError({
1363
1229
  output,
1364
1230
  parsedBody,
1365
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1366
1231
  errorCode,
1367
1232
  });
1368
1233
  }
@@ -1378,7 +1243,7 @@ const de_DescribeReservedNodesOfferingsCommand = async (output, context) => {
1378
1243
  $metadata: deserializeMetadata(output),
1379
1244
  ...contents,
1380
1245
  };
1381
- return Promise.resolve(response);
1246
+ return response;
1382
1247
  };
1383
1248
  exports.de_DescribeReservedNodesOfferingsCommand = de_DescribeReservedNodesOfferingsCommand;
1384
1249
  const de_DescribeReservedNodesOfferingsCommandError = async (output, context) => {
@@ -1402,10 +1267,9 @@ const de_DescribeReservedNodesOfferingsCommandError = async (output, context) =>
1402
1267
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1403
1268
  default:
1404
1269
  const parsedBody = parsedOutput.body;
1405
- (0, smithy_client_1.throwDefaultError)({
1270
+ return throwDefaultError({
1406
1271
  output,
1407
1272
  parsedBody,
1408
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1409
1273
  errorCode,
1410
1274
  });
1411
1275
  }
@@ -1421,7 +1285,7 @@ const de_DescribeServiceUpdatesCommand = async (output, context) => {
1421
1285
  $metadata: deserializeMetadata(output),
1422
1286
  ...contents,
1423
1287
  };
1424
- return Promise.resolve(response);
1288
+ return response;
1425
1289
  };
1426
1290
  exports.de_DescribeServiceUpdatesCommand = de_DescribeServiceUpdatesCommand;
1427
1291
  const de_DescribeServiceUpdatesCommandError = async (output, context) => {
@@ -1439,10 +1303,9 @@ const de_DescribeServiceUpdatesCommandError = async (output, context) => {
1439
1303
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1440
1304
  default:
1441
1305
  const parsedBody = parsedOutput.body;
1442
- (0, smithy_client_1.throwDefaultError)({
1306
+ return throwDefaultError({
1443
1307
  output,
1444
1308
  parsedBody,
1445
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1446
1309
  errorCode,
1447
1310
  });
1448
1311
  }
@@ -1458,7 +1321,7 @@ const de_DescribeSnapshotsCommand = async (output, context) => {
1458
1321
  $metadata: deserializeMetadata(output),
1459
1322
  ...contents,
1460
1323
  };
1461
- return Promise.resolve(response);
1324
+ return response;
1462
1325
  };
1463
1326
  exports.de_DescribeSnapshotsCommand = de_DescribeSnapshotsCommand;
1464
1327
  const de_DescribeSnapshotsCommandError = async (output, context) => {
@@ -1482,10 +1345,9 @@ const de_DescribeSnapshotsCommandError = async (output, context) => {
1482
1345
  throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
1483
1346
  default:
1484
1347
  const parsedBody = parsedOutput.body;
1485
- (0, smithy_client_1.throwDefaultError)({
1348
+ return throwDefaultError({
1486
1349
  output,
1487
1350
  parsedBody,
1488
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1489
1351
  errorCode,
1490
1352
  });
1491
1353
  }
@@ -1496,12 +1358,12 @@ const de_DescribeSubnetGroupsCommand = async (output, context) => {
1496
1358
  }
1497
1359
  const data = await parseBody(output.body, context);
1498
1360
  let contents = {};
1499
- contents = de_DescribeSubnetGroupsResponse(data, context);
1361
+ contents = (0, smithy_client_1._json)(data);
1500
1362
  const response = {
1501
1363
  $metadata: deserializeMetadata(output),
1502
1364
  ...contents,
1503
1365
  };
1504
- return Promise.resolve(response);
1366
+ return response;
1505
1367
  };
1506
1368
  exports.de_DescribeSubnetGroupsCommand = de_DescribeSubnetGroupsCommand;
1507
1369
  const de_DescribeSubnetGroupsCommandError = async (output, context) => {
@@ -1519,10 +1381,9 @@ const de_DescribeSubnetGroupsCommandError = async (output, context) => {
1519
1381
  throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
1520
1382
  default:
1521
1383
  const parsedBody = parsedOutput.body;
1522
- (0, smithy_client_1.throwDefaultError)({
1384
+ return throwDefaultError({
1523
1385
  output,
1524
1386
  parsedBody,
1525
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1526
1387
  errorCode,
1527
1388
  });
1528
1389
  }
@@ -1533,12 +1394,12 @@ const de_DescribeUsersCommand = async (output, context) => {
1533
1394
  }
1534
1395
  const data = await parseBody(output.body, context);
1535
1396
  let contents = {};
1536
- contents = de_DescribeUsersResponse(data, context);
1397
+ contents = (0, smithy_client_1._json)(data);
1537
1398
  const response = {
1538
1399
  $metadata: deserializeMetadata(output),
1539
1400
  ...contents,
1540
1401
  };
1541
- return Promise.resolve(response);
1402
+ return response;
1542
1403
  };
1543
1404
  exports.de_DescribeUsersCommand = de_DescribeUsersCommand;
1544
1405
  const de_DescribeUsersCommandError = async (output, context) => {
@@ -1556,10 +1417,9 @@ const de_DescribeUsersCommandError = async (output, context) => {
1556
1417
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
1557
1418
  default:
1558
1419
  const parsedBody = parsedOutput.body;
1559
- (0, smithy_client_1.throwDefaultError)({
1420
+ return throwDefaultError({
1560
1421
  output,
1561
1422
  parsedBody,
1562
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1563
1423
  errorCode,
1564
1424
  });
1565
1425
  }
@@ -1575,7 +1435,7 @@ const de_FailoverShardCommand = async (output, context) => {
1575
1435
  $metadata: deserializeMetadata(output),
1576
1436
  ...contents,
1577
1437
  };
1578
- return Promise.resolve(response);
1438
+ return response;
1579
1439
  };
1580
1440
  exports.de_FailoverShardCommand = de_FailoverShardCommand;
1581
1441
  const de_FailoverShardCommandError = async (output, context) => {
@@ -1611,10 +1471,9 @@ const de_FailoverShardCommandError = async (output, context) => {
1611
1471
  throw await de_TestFailoverNotAvailableFaultRes(parsedOutput, context);
1612
1472
  default:
1613
1473
  const parsedBody = parsedOutput.body;
1614
- (0, smithy_client_1.throwDefaultError)({
1474
+ return throwDefaultError({
1615
1475
  output,
1616
1476
  parsedBody,
1617
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1618
1477
  errorCode,
1619
1478
  });
1620
1479
  }
@@ -1625,12 +1484,12 @@ const de_ListAllowedNodeTypeUpdatesCommand = async (output, context) => {
1625
1484
  }
1626
1485
  const data = await parseBody(output.body, context);
1627
1486
  let contents = {};
1628
- contents = de_ListAllowedNodeTypeUpdatesResponse(data, context);
1487
+ contents = (0, smithy_client_1._json)(data);
1629
1488
  const response = {
1630
1489
  $metadata: deserializeMetadata(output),
1631
1490
  ...contents,
1632
1491
  };
1633
- return Promise.resolve(response);
1492
+ return response;
1634
1493
  };
1635
1494
  exports.de_ListAllowedNodeTypeUpdatesCommand = de_ListAllowedNodeTypeUpdatesCommand;
1636
1495
  const de_ListAllowedNodeTypeUpdatesCommandError = async (output, context) => {
@@ -1654,10 +1513,9 @@ const de_ListAllowedNodeTypeUpdatesCommandError = async (output, context) => {
1654
1513
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1655
1514
  default:
1656
1515
  const parsedBody = parsedOutput.body;
1657
- (0, smithy_client_1.throwDefaultError)({
1516
+ return throwDefaultError({
1658
1517
  output,
1659
1518
  parsedBody,
1660
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1661
1519
  errorCode,
1662
1520
  });
1663
1521
  }
@@ -1668,12 +1526,12 @@ const de_ListTagsCommand = async (output, context) => {
1668
1526
  }
1669
1527
  const data = await parseBody(output.body, context);
1670
1528
  let contents = {};
1671
- contents = de_ListTagsResponse(data, context);
1529
+ contents = (0, smithy_client_1._json)(data);
1672
1530
  const response = {
1673
1531
  $metadata: deserializeMetadata(output),
1674
1532
  ...contents,
1675
1533
  };
1676
- return Promise.resolve(response);
1534
+ return response;
1677
1535
  };
1678
1536
  exports.de_ListTagsCommand = de_ListTagsCommand;
1679
1537
  const de_ListTagsCommandError = async (output, context) => {
@@ -1712,10 +1570,9 @@ const de_ListTagsCommandError = async (output, context) => {
1712
1570
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
1713
1571
  default:
1714
1572
  const parsedBody = parsedOutput.body;
1715
- (0, smithy_client_1.throwDefaultError)({
1573
+ return throwDefaultError({
1716
1574
  output,
1717
1575
  parsedBody,
1718
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1719
1576
  errorCode,
1720
1577
  });
1721
1578
  }
@@ -1731,7 +1588,7 @@ const de_PurchaseReservedNodesOfferingCommand = async (output, context) => {
1731
1588
  $metadata: deserializeMetadata(output),
1732
1589
  ...contents,
1733
1590
  };
1734
- return Promise.resolve(response);
1591
+ return response;
1735
1592
  };
1736
1593
  exports.de_PurchaseReservedNodesOfferingCommand = de_PurchaseReservedNodesOfferingCommand;
1737
1594
  const de_PurchaseReservedNodesOfferingCommandError = async (output, context) => {
@@ -1764,10 +1621,9 @@ const de_PurchaseReservedNodesOfferingCommandError = async (output, context) =>
1764
1621
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1765
1622
  default:
1766
1623
  const parsedBody = parsedOutput.body;
1767
- (0, smithy_client_1.throwDefaultError)({
1624
+ return throwDefaultError({
1768
1625
  output,
1769
1626
  parsedBody,
1770
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1771
1627
  errorCode,
1772
1628
  });
1773
1629
  }
@@ -1778,12 +1634,12 @@ const de_ResetParameterGroupCommand = async (output, context) => {
1778
1634
  }
1779
1635
  const data = await parseBody(output.body, context);
1780
1636
  let contents = {};
1781
- contents = de_ResetParameterGroupResponse(data, context);
1637
+ contents = (0, smithy_client_1._json)(data);
1782
1638
  const response = {
1783
1639
  $metadata: deserializeMetadata(output),
1784
1640
  ...contents,
1785
1641
  };
1786
- return Promise.resolve(response);
1642
+ return response;
1787
1643
  };
1788
1644
  exports.de_ResetParameterGroupCommand = de_ResetParameterGroupCommand;
1789
1645
  const de_ResetParameterGroupCommandError = async (output, context) => {
@@ -1810,10 +1666,9 @@ const de_ResetParameterGroupCommandError = async (output, context) => {
1810
1666
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1811
1667
  default:
1812
1668
  const parsedBody = parsedOutput.body;
1813
- (0, smithy_client_1.throwDefaultError)({
1669
+ return throwDefaultError({
1814
1670
  output,
1815
1671
  parsedBody,
1816
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1817
1672
  errorCode,
1818
1673
  });
1819
1674
  }
@@ -1824,12 +1679,12 @@ const de_TagResourceCommand = async (output, context) => {
1824
1679
  }
1825
1680
  const data = await parseBody(output.body, context);
1826
1681
  let contents = {};
1827
- contents = de_TagResourceResponse(data, context);
1682
+ contents = (0, smithy_client_1._json)(data);
1828
1683
  const response = {
1829
1684
  $metadata: deserializeMetadata(output),
1830
1685
  ...contents,
1831
1686
  };
1832
- return Promise.resolve(response);
1687
+ return response;
1833
1688
  };
1834
1689
  exports.de_TagResourceCommand = de_TagResourceCommand;
1835
1690
  const de_TagResourceCommandError = async (output, context) => {
@@ -1871,10 +1726,9 @@ const de_TagResourceCommandError = async (output, context) => {
1871
1726
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
1872
1727
  default:
1873
1728
  const parsedBody = parsedOutput.body;
1874
- (0, smithy_client_1.throwDefaultError)({
1729
+ return throwDefaultError({
1875
1730
  output,
1876
1731
  parsedBody,
1877
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1878
1732
  errorCode,
1879
1733
  });
1880
1734
  }
@@ -1885,12 +1739,12 @@ const de_UntagResourceCommand = async (output, context) => {
1885
1739
  }
1886
1740
  const data = await parseBody(output.body, context);
1887
1741
  let contents = {};
1888
- contents = de_UntagResourceResponse(data, context);
1742
+ contents = (0, smithy_client_1._json)(data);
1889
1743
  const response = {
1890
1744
  $metadata: deserializeMetadata(output),
1891
1745
  ...contents,
1892
1746
  };
1893
- return Promise.resolve(response);
1747
+ return response;
1894
1748
  };
1895
1749
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
1896
1750
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1932,10 +1786,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1932
1786
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
1933
1787
  default:
1934
1788
  const parsedBody = parsedOutput.body;
1935
- (0, smithy_client_1.throwDefaultError)({
1789
+ return throwDefaultError({
1936
1790
  output,
1937
1791
  parsedBody,
1938
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1939
1792
  errorCode,
1940
1793
  });
1941
1794
  }
@@ -1946,12 +1799,12 @@ const de_UpdateACLCommand = async (output, context) => {
1946
1799
  }
1947
1800
  const data = await parseBody(output.body, context);
1948
1801
  let contents = {};
1949
- contents = de_UpdateACLResponse(data, context);
1802
+ contents = (0, smithy_client_1._json)(data);
1950
1803
  const response = {
1951
1804
  $metadata: deserializeMetadata(output),
1952
1805
  ...contents,
1953
1806
  };
1954
- return Promise.resolve(response);
1807
+ return response;
1955
1808
  };
1956
1809
  exports.de_UpdateACLCommand = de_UpdateACLCommand;
1957
1810
  const de_UpdateACLCommandError = async (output, context) => {
@@ -1984,10 +1837,9 @@ const de_UpdateACLCommandError = async (output, context) => {
1984
1837
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
1985
1838
  default:
1986
1839
  const parsedBody = parsedOutput.body;
1987
- (0, smithy_client_1.throwDefaultError)({
1840
+ return throwDefaultError({
1988
1841
  output,
1989
1842
  parsedBody,
1990
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
1991
1843
  errorCode,
1992
1844
  });
1993
1845
  }
@@ -2003,7 +1855,7 @@ const de_UpdateClusterCommand = async (output, context) => {
2003
1855
  $metadata: deserializeMetadata(output),
2004
1856
  ...contents,
2005
1857
  };
2006
- return Promise.resolve(response);
1858
+ return response;
2007
1859
  };
2008
1860
  exports.de_UpdateClusterCommand = de_UpdateClusterCommand;
2009
1861
  const de_UpdateClusterCommandError = async (output, context) => {
@@ -2063,10 +1915,9 @@ const de_UpdateClusterCommandError = async (output, context) => {
2063
1915
  throw await de_ShardsPerClusterQuotaExceededFaultRes(parsedOutput, context);
2064
1916
  default:
2065
1917
  const parsedBody = parsedOutput.body;
2066
- (0, smithy_client_1.throwDefaultError)({
1918
+ return throwDefaultError({
2067
1919
  output,
2068
1920
  parsedBody,
2069
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
2070
1921
  errorCode,
2071
1922
  });
2072
1923
  }
@@ -2077,12 +1928,12 @@ const de_UpdateParameterGroupCommand = async (output, context) => {
2077
1928
  }
2078
1929
  const data = await parseBody(output.body, context);
2079
1930
  let contents = {};
2080
- contents = de_UpdateParameterGroupResponse(data, context);
1931
+ contents = (0, smithy_client_1._json)(data);
2081
1932
  const response = {
2082
1933
  $metadata: deserializeMetadata(output),
2083
1934
  ...contents,
2084
1935
  };
2085
- return Promise.resolve(response);
1936
+ return response;
2086
1937
  };
2087
1938
  exports.de_UpdateParameterGroupCommand = de_UpdateParameterGroupCommand;
2088
1939
  const de_UpdateParameterGroupCommandError = async (output, context) => {
@@ -2109,10 +1960,9 @@ const de_UpdateParameterGroupCommandError = async (output, context) => {
2109
1960
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2110
1961
  default:
2111
1962
  const parsedBody = parsedOutput.body;
2112
- (0, smithy_client_1.throwDefaultError)({
1963
+ return throwDefaultError({
2113
1964
  output,
2114
1965
  parsedBody,
2115
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
2116
1966
  errorCode,
2117
1967
  });
2118
1968
  }
@@ -2123,12 +1973,12 @@ const de_UpdateSubnetGroupCommand = async (output, context) => {
2123
1973
  }
2124
1974
  const data = await parseBody(output.body, context);
2125
1975
  let contents = {};
2126
- contents = de_UpdateSubnetGroupResponse(data, context);
1976
+ contents = (0, smithy_client_1._json)(data);
2127
1977
  const response = {
2128
1978
  $metadata: deserializeMetadata(output),
2129
1979
  ...contents,
2130
1980
  };
2131
- return Promise.resolve(response);
1981
+ return response;
2132
1982
  };
2133
1983
  exports.de_UpdateSubnetGroupCommand = de_UpdateSubnetGroupCommand;
2134
1984
  const de_UpdateSubnetGroupCommandError = async (output, context) => {
@@ -2158,10 +2008,9 @@ const de_UpdateSubnetGroupCommandError = async (output, context) => {
2158
2008
  throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
2159
2009
  default:
2160
2010
  const parsedBody = parsedOutput.body;
2161
- (0, smithy_client_1.throwDefaultError)({
2011
+ return throwDefaultError({
2162
2012
  output,
2163
2013
  parsedBody,
2164
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
2165
2014
  errorCode,
2166
2015
  });
2167
2016
  }
@@ -2172,12 +2021,12 @@ const de_UpdateUserCommand = async (output, context) => {
2172
2021
  }
2173
2022
  const data = await parseBody(output.body, context);
2174
2023
  let contents = {};
2175
- contents = de_UpdateUserResponse(data, context);
2024
+ contents = (0, smithy_client_1._json)(data);
2176
2025
  const response = {
2177
2026
  $metadata: deserializeMetadata(output),
2178
2027
  ...contents,
2179
2028
  };
2180
- return Promise.resolve(response);
2029
+ return response;
2181
2030
  };
2182
2031
  exports.de_UpdateUserCommand = de_UpdateUserCommand;
2183
2032
  const de_UpdateUserCommandError = async (output, context) => {
@@ -2201,17 +2050,16 @@ const de_UpdateUserCommandError = async (output, context) => {
2201
2050
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
2202
2051
  default:
2203
2052
  const parsedBody = parsedOutput.body;
2204
- (0, smithy_client_1.throwDefaultError)({
2053
+ return throwDefaultError({
2205
2054
  output,
2206
2055
  parsedBody,
2207
- exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
2208
2056
  errorCode,
2209
2057
  });
2210
2058
  }
2211
2059
  };
2212
2060
  const de_ACLAlreadyExistsFaultRes = async (parsedOutput, context) => {
2213
2061
  const body = parsedOutput.body;
2214
- const deserialized = de_ACLAlreadyExistsFault(body, context);
2062
+ const deserialized = (0, smithy_client_1._json)(body);
2215
2063
  const exception = new models_0_1.ACLAlreadyExistsFault({
2216
2064
  $metadata: deserializeMetadata(parsedOutput),
2217
2065
  ...deserialized,
@@ -2220,7 +2068,7 @@ const de_ACLAlreadyExistsFaultRes = async (parsedOutput, context) => {
2220
2068
  };
2221
2069
  const de_ACLNotFoundFaultRes = async (parsedOutput, context) => {
2222
2070
  const body = parsedOutput.body;
2223
- const deserialized = de_ACLNotFoundFault(body, context);
2071
+ const deserialized = (0, smithy_client_1._json)(body);
2224
2072
  const exception = new models_0_1.ACLNotFoundFault({
2225
2073
  $metadata: deserializeMetadata(parsedOutput),
2226
2074
  ...deserialized,
@@ -2229,7 +2077,7 @@ const de_ACLNotFoundFaultRes = async (parsedOutput, context) => {
2229
2077
  };
2230
2078
  const de_ACLQuotaExceededFaultRes = async (parsedOutput, context) => {
2231
2079
  const body = parsedOutput.body;
2232
- const deserialized = de_ACLQuotaExceededFault(body, context);
2080
+ const deserialized = (0, smithy_client_1._json)(body);
2233
2081
  const exception = new models_0_1.ACLQuotaExceededFault({
2234
2082
  $metadata: deserializeMetadata(parsedOutput),
2235
2083
  ...deserialized,
@@ -2238,7 +2086,7 @@ const de_ACLQuotaExceededFaultRes = async (parsedOutput, context) => {
2238
2086
  };
2239
2087
  const de_APICallRateForCustomerExceededFaultRes = async (parsedOutput, context) => {
2240
2088
  const body = parsedOutput.body;
2241
- const deserialized = de_APICallRateForCustomerExceededFault(body, context);
2089
+ const deserialized = (0, smithy_client_1._json)(body);
2242
2090
  const exception = new models_0_1.APICallRateForCustomerExceededFault({
2243
2091
  $metadata: deserializeMetadata(parsedOutput),
2244
2092
  ...deserialized,
@@ -2247,7 +2095,7 @@ const de_APICallRateForCustomerExceededFaultRes = async (parsedOutput, context)
2247
2095
  };
2248
2096
  const de_ClusterAlreadyExistsFaultRes = async (parsedOutput, context) => {
2249
2097
  const body = parsedOutput.body;
2250
- const deserialized = de_ClusterAlreadyExistsFault(body, context);
2098
+ const deserialized = (0, smithy_client_1._json)(body);
2251
2099
  const exception = new models_0_1.ClusterAlreadyExistsFault({
2252
2100
  $metadata: deserializeMetadata(parsedOutput),
2253
2101
  ...deserialized,
@@ -2256,7 +2104,7 @@ const de_ClusterAlreadyExistsFaultRes = async (parsedOutput, context) => {
2256
2104
  };
2257
2105
  const de_ClusterNotFoundFaultRes = async (parsedOutput, context) => {
2258
2106
  const body = parsedOutput.body;
2259
- const deserialized = de_ClusterNotFoundFault(body, context);
2107
+ const deserialized = (0, smithy_client_1._json)(body);
2260
2108
  const exception = new models_0_1.ClusterNotFoundFault({
2261
2109
  $metadata: deserializeMetadata(parsedOutput),
2262
2110
  ...deserialized,
@@ -2265,7 +2113,7 @@ const de_ClusterNotFoundFaultRes = async (parsedOutput, context) => {
2265
2113
  };
2266
2114
  const de_ClusterQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
2267
2115
  const body = parsedOutput.body;
2268
- const deserialized = de_ClusterQuotaForCustomerExceededFault(body, context);
2116
+ const deserialized = (0, smithy_client_1._json)(body);
2269
2117
  const exception = new models_0_1.ClusterQuotaForCustomerExceededFault({
2270
2118
  $metadata: deserializeMetadata(parsedOutput),
2271
2119
  ...deserialized,
@@ -2274,7 +2122,7 @@ const de_ClusterQuotaForCustomerExceededFaultRes = async (parsedOutput, context)
2274
2122
  };
2275
2123
  const de_DefaultUserRequiredRes = async (parsedOutput, context) => {
2276
2124
  const body = parsedOutput.body;
2277
- const deserialized = de_DefaultUserRequired(body, context);
2125
+ const deserialized = (0, smithy_client_1._json)(body);
2278
2126
  const exception = new models_0_1.DefaultUserRequired({
2279
2127
  $metadata: deserializeMetadata(parsedOutput),
2280
2128
  ...deserialized,
@@ -2283,7 +2131,7 @@ const de_DefaultUserRequiredRes = async (parsedOutput, context) => {
2283
2131
  };
2284
2132
  const de_DuplicateUserNameFaultRes = async (parsedOutput, context) => {
2285
2133
  const body = parsedOutput.body;
2286
- const deserialized = de_DuplicateUserNameFault(body, context);
2134
+ const deserialized = (0, smithy_client_1._json)(body);
2287
2135
  const exception = new models_0_1.DuplicateUserNameFault({
2288
2136
  $metadata: deserializeMetadata(parsedOutput),
2289
2137
  ...deserialized,
@@ -2292,7 +2140,7 @@ const de_DuplicateUserNameFaultRes = async (parsedOutput, context) => {
2292
2140
  };
2293
2141
  const de_InsufficientClusterCapacityFaultRes = async (parsedOutput, context) => {
2294
2142
  const body = parsedOutput.body;
2295
- const deserialized = de_InsufficientClusterCapacityFault(body, context);
2143
+ const deserialized = (0, smithy_client_1._json)(body);
2296
2144
  const exception = new models_0_1.InsufficientClusterCapacityFault({
2297
2145
  $metadata: deserializeMetadata(parsedOutput),
2298
2146
  ...deserialized,
@@ -2301,7 +2149,7 @@ const de_InsufficientClusterCapacityFaultRes = async (parsedOutput, context) =>
2301
2149
  };
2302
2150
  const de_InvalidACLStateFaultRes = async (parsedOutput, context) => {
2303
2151
  const body = parsedOutput.body;
2304
- const deserialized = de_InvalidACLStateFault(body, context);
2152
+ const deserialized = (0, smithy_client_1._json)(body);
2305
2153
  const exception = new models_0_1.InvalidACLStateFault({
2306
2154
  $metadata: deserializeMetadata(parsedOutput),
2307
2155
  ...deserialized,
@@ -2310,7 +2158,7 @@ const de_InvalidACLStateFaultRes = async (parsedOutput, context) => {
2310
2158
  };
2311
2159
  const de_InvalidARNFaultRes = async (parsedOutput, context) => {
2312
2160
  const body = parsedOutput.body;
2313
- const deserialized = de_InvalidARNFault(body, context);
2161
+ const deserialized = (0, smithy_client_1._json)(body);
2314
2162
  const exception = new models_0_1.InvalidARNFault({
2315
2163
  $metadata: deserializeMetadata(parsedOutput),
2316
2164
  ...deserialized,
@@ -2319,7 +2167,7 @@ const de_InvalidARNFaultRes = async (parsedOutput, context) => {
2319
2167
  };
2320
2168
  const de_InvalidClusterStateFaultRes = async (parsedOutput, context) => {
2321
2169
  const body = parsedOutput.body;
2322
- const deserialized = de_InvalidClusterStateFault(body, context);
2170
+ const deserialized = (0, smithy_client_1._json)(body);
2323
2171
  const exception = new models_0_1.InvalidClusterStateFault({
2324
2172
  $metadata: deserializeMetadata(parsedOutput),
2325
2173
  ...deserialized,
@@ -2328,7 +2176,7 @@ const de_InvalidClusterStateFaultRes = async (parsedOutput, context) => {
2328
2176
  };
2329
2177
  const de_InvalidCredentialsExceptionRes = async (parsedOutput, context) => {
2330
2178
  const body = parsedOutput.body;
2331
- const deserialized = de_InvalidCredentialsException(body, context);
2179
+ const deserialized = (0, smithy_client_1._json)(body);
2332
2180
  const exception = new models_0_1.InvalidCredentialsException({
2333
2181
  $metadata: deserializeMetadata(parsedOutput),
2334
2182
  ...deserialized,
@@ -2337,7 +2185,7 @@ const de_InvalidCredentialsExceptionRes = async (parsedOutput, context) => {
2337
2185
  };
2338
2186
  const de_InvalidKMSKeyFaultRes = async (parsedOutput, context) => {
2339
2187
  const body = parsedOutput.body;
2340
- const deserialized = de_InvalidKMSKeyFault(body, context);
2188
+ const deserialized = (0, smithy_client_1._json)(body);
2341
2189
  const exception = new models_0_1.InvalidKMSKeyFault({
2342
2190
  $metadata: deserializeMetadata(parsedOutput),
2343
2191
  ...deserialized,
@@ -2346,7 +2194,7 @@ const de_InvalidKMSKeyFaultRes = async (parsedOutput, context) => {
2346
2194
  };
2347
2195
  const de_InvalidNodeStateFaultRes = async (parsedOutput, context) => {
2348
2196
  const body = parsedOutput.body;
2349
- const deserialized = de_InvalidNodeStateFault(body, context);
2197
+ const deserialized = (0, smithy_client_1._json)(body);
2350
2198
  const exception = new models_0_1.InvalidNodeStateFault({
2351
2199
  $metadata: deserializeMetadata(parsedOutput),
2352
2200
  ...deserialized,
@@ -2355,7 +2203,7 @@ const de_InvalidNodeStateFaultRes = async (parsedOutput, context) => {
2355
2203
  };
2356
2204
  const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
2357
2205
  const body = parsedOutput.body;
2358
- const deserialized = de_InvalidParameterCombinationException(body, context);
2206
+ const deserialized = (0, smithy_client_1._json)(body);
2359
2207
  const exception = new models_0_1.InvalidParameterCombinationException({
2360
2208
  $metadata: deserializeMetadata(parsedOutput),
2361
2209
  ...deserialized,
@@ -2364,7 +2212,7 @@ const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context)
2364
2212
  };
2365
2213
  const de_InvalidParameterGroupStateFaultRes = async (parsedOutput, context) => {
2366
2214
  const body = parsedOutput.body;
2367
- const deserialized = de_InvalidParameterGroupStateFault(body, context);
2215
+ const deserialized = (0, smithy_client_1._json)(body);
2368
2216
  const exception = new models_0_1.InvalidParameterGroupStateFault({
2369
2217
  $metadata: deserializeMetadata(parsedOutput),
2370
2218
  ...deserialized,
@@ -2373,7 +2221,7 @@ const de_InvalidParameterGroupStateFaultRes = async (parsedOutput, context) => {
2373
2221
  };
2374
2222
  const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
2375
2223
  const body = parsedOutput.body;
2376
- const deserialized = de_InvalidParameterValueException(body, context);
2224
+ const deserialized = (0, smithy_client_1._json)(body);
2377
2225
  const exception = new models_0_1.InvalidParameterValueException({
2378
2226
  $metadata: deserializeMetadata(parsedOutput),
2379
2227
  ...deserialized,
@@ -2382,7 +2230,7 @@ const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
2382
2230
  };
2383
2231
  const de_InvalidSnapshotStateFaultRes = async (parsedOutput, context) => {
2384
2232
  const body = parsedOutput.body;
2385
- const deserialized = de_InvalidSnapshotStateFault(body, context);
2233
+ const deserialized = (0, smithy_client_1._json)(body);
2386
2234
  const exception = new models_0_1.InvalidSnapshotStateFault({
2387
2235
  $metadata: deserializeMetadata(parsedOutput),
2388
2236
  ...deserialized,
@@ -2391,7 +2239,7 @@ const de_InvalidSnapshotStateFaultRes = async (parsedOutput, context) => {
2391
2239
  };
2392
2240
  const de_InvalidSubnetRes = async (parsedOutput, context) => {
2393
2241
  const body = parsedOutput.body;
2394
- const deserialized = de_InvalidSubnet(body, context);
2242
+ const deserialized = (0, smithy_client_1._json)(body);
2395
2243
  const exception = new models_0_1.InvalidSubnet({
2396
2244
  $metadata: deserializeMetadata(parsedOutput),
2397
2245
  ...deserialized,
@@ -2400,7 +2248,7 @@ const de_InvalidSubnetRes = async (parsedOutput, context) => {
2400
2248
  };
2401
2249
  const de_InvalidUserStateFaultRes = async (parsedOutput, context) => {
2402
2250
  const body = parsedOutput.body;
2403
- const deserialized = de_InvalidUserStateFault(body, context);
2251
+ const deserialized = (0, smithy_client_1._json)(body);
2404
2252
  const exception = new models_0_1.InvalidUserStateFault({
2405
2253
  $metadata: deserializeMetadata(parsedOutput),
2406
2254
  ...deserialized,
@@ -2409,7 +2257,7 @@ const de_InvalidUserStateFaultRes = async (parsedOutput, context) => {
2409
2257
  };
2410
2258
  const de_InvalidVPCNetworkStateFaultRes = async (parsedOutput, context) => {
2411
2259
  const body = parsedOutput.body;
2412
- const deserialized = de_InvalidVPCNetworkStateFault(body, context);
2260
+ const deserialized = (0, smithy_client_1._json)(body);
2413
2261
  const exception = new models_0_1.InvalidVPCNetworkStateFault({
2414
2262
  $metadata: deserializeMetadata(parsedOutput),
2415
2263
  ...deserialized,
@@ -2418,7 +2266,7 @@ const de_InvalidVPCNetworkStateFaultRes = async (parsedOutput, context) => {
2418
2266
  };
2419
2267
  const de_NodeQuotaForClusterExceededFaultRes = async (parsedOutput, context) => {
2420
2268
  const body = parsedOutput.body;
2421
- const deserialized = de_NodeQuotaForClusterExceededFault(body, context);
2269
+ const deserialized = (0, smithy_client_1._json)(body);
2422
2270
  const exception = new models_0_1.NodeQuotaForClusterExceededFault({
2423
2271
  $metadata: deserializeMetadata(parsedOutput),
2424
2272
  ...deserialized,
@@ -2427,7 +2275,7 @@ const de_NodeQuotaForClusterExceededFaultRes = async (parsedOutput, context) =>
2427
2275
  };
2428
2276
  const de_NodeQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
2429
2277
  const body = parsedOutput.body;
2430
- const deserialized = de_NodeQuotaForCustomerExceededFault(body, context);
2278
+ const deserialized = (0, smithy_client_1._json)(body);
2431
2279
  const exception = new models_0_1.NodeQuotaForCustomerExceededFault({
2432
2280
  $metadata: deserializeMetadata(parsedOutput),
2433
2281
  ...deserialized,
@@ -2436,7 +2284,7 @@ const de_NodeQuotaForCustomerExceededFaultRes = async (parsedOutput, context) =>
2436
2284
  };
2437
2285
  const de_NoOperationFaultRes = async (parsedOutput, context) => {
2438
2286
  const body = parsedOutput.body;
2439
- const deserialized = de_NoOperationFault(body, context);
2287
+ const deserialized = (0, smithy_client_1._json)(body);
2440
2288
  const exception = new models_0_1.NoOperationFault({
2441
2289
  $metadata: deserializeMetadata(parsedOutput),
2442
2290
  ...deserialized,
@@ -2445,7 +2293,7 @@ const de_NoOperationFaultRes = async (parsedOutput, context) => {
2445
2293
  };
2446
2294
  const de_ParameterGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
2447
2295
  const body = parsedOutput.body;
2448
- const deserialized = de_ParameterGroupAlreadyExistsFault(body, context);
2296
+ const deserialized = (0, smithy_client_1._json)(body);
2449
2297
  const exception = new models_0_1.ParameterGroupAlreadyExistsFault({
2450
2298
  $metadata: deserializeMetadata(parsedOutput),
2451
2299
  ...deserialized,
@@ -2454,7 +2302,7 @@ const de_ParameterGroupAlreadyExistsFaultRes = async (parsedOutput, context) =>
2454
2302
  };
2455
2303
  const de_ParameterGroupNotFoundFaultRes = async (parsedOutput, context) => {
2456
2304
  const body = parsedOutput.body;
2457
- const deserialized = de_ParameterGroupNotFoundFault(body, context);
2305
+ const deserialized = (0, smithy_client_1._json)(body);
2458
2306
  const exception = new models_0_1.ParameterGroupNotFoundFault({
2459
2307
  $metadata: deserializeMetadata(parsedOutput),
2460
2308
  ...deserialized,
@@ -2463,7 +2311,7 @@ const de_ParameterGroupNotFoundFaultRes = async (parsedOutput, context) => {
2463
2311
  };
2464
2312
  const de_ParameterGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
2465
2313
  const body = parsedOutput.body;
2466
- const deserialized = de_ParameterGroupQuotaExceededFault(body, context);
2314
+ const deserialized = (0, smithy_client_1._json)(body);
2467
2315
  const exception = new models_0_1.ParameterGroupQuotaExceededFault({
2468
2316
  $metadata: deserializeMetadata(parsedOutput),
2469
2317
  ...deserialized,
@@ -2472,7 +2320,7 @@ const de_ParameterGroupQuotaExceededFaultRes = async (parsedOutput, context) =>
2472
2320
  };
2473
2321
  const de_ReservedNodeAlreadyExistsFaultRes = async (parsedOutput, context) => {
2474
2322
  const body = parsedOutput.body;
2475
- const deserialized = de_ReservedNodeAlreadyExistsFault(body, context);
2323
+ const deserialized = (0, smithy_client_1._json)(body);
2476
2324
  const exception = new models_0_1.ReservedNodeAlreadyExistsFault({
2477
2325
  $metadata: deserializeMetadata(parsedOutput),
2478
2326
  ...deserialized,
@@ -2481,7 +2329,7 @@ const de_ReservedNodeAlreadyExistsFaultRes = async (parsedOutput, context) => {
2481
2329
  };
2482
2330
  const de_ReservedNodeNotFoundFaultRes = async (parsedOutput, context) => {
2483
2331
  const body = parsedOutput.body;
2484
- const deserialized = de_ReservedNodeNotFoundFault(body, context);
2332
+ const deserialized = (0, smithy_client_1._json)(body);
2485
2333
  const exception = new models_0_1.ReservedNodeNotFoundFault({
2486
2334
  $metadata: deserializeMetadata(parsedOutput),
2487
2335
  ...deserialized,
@@ -2490,7 +2338,7 @@ const de_ReservedNodeNotFoundFaultRes = async (parsedOutput, context) => {
2490
2338
  };
2491
2339
  const de_ReservedNodeQuotaExceededFaultRes = async (parsedOutput, context) => {
2492
2340
  const body = parsedOutput.body;
2493
- const deserialized = de_ReservedNodeQuotaExceededFault(body, context);
2341
+ const deserialized = (0, smithy_client_1._json)(body);
2494
2342
  const exception = new models_0_1.ReservedNodeQuotaExceededFault({
2495
2343
  $metadata: deserializeMetadata(parsedOutput),
2496
2344
  ...deserialized,
@@ -2499,7 +2347,7 @@ const de_ReservedNodeQuotaExceededFaultRes = async (parsedOutput, context) => {
2499
2347
  };
2500
2348
  const de_ReservedNodesOfferingNotFoundFaultRes = async (parsedOutput, context) => {
2501
2349
  const body = parsedOutput.body;
2502
- const deserialized = de_ReservedNodesOfferingNotFoundFault(body, context);
2350
+ const deserialized = (0, smithy_client_1._json)(body);
2503
2351
  const exception = new models_0_1.ReservedNodesOfferingNotFoundFault({
2504
2352
  $metadata: deserializeMetadata(parsedOutput),
2505
2353
  ...deserialized,
@@ -2508,7 +2356,7 @@ const de_ReservedNodesOfferingNotFoundFaultRes = async (parsedOutput, context) =
2508
2356
  };
2509
2357
  const de_ServiceLinkedRoleNotFoundFaultRes = async (parsedOutput, context) => {
2510
2358
  const body = parsedOutput.body;
2511
- const deserialized = de_ServiceLinkedRoleNotFoundFault(body, context);
2359
+ const deserialized = (0, smithy_client_1._json)(body);
2512
2360
  const exception = new models_0_1.ServiceLinkedRoleNotFoundFault({
2513
2361
  $metadata: deserializeMetadata(parsedOutput),
2514
2362
  ...deserialized,
@@ -2517,7 +2365,7 @@ const de_ServiceLinkedRoleNotFoundFaultRes = async (parsedOutput, context) => {
2517
2365
  };
2518
2366
  const de_ServiceUpdateNotFoundFaultRes = async (parsedOutput, context) => {
2519
2367
  const body = parsedOutput.body;
2520
- const deserialized = de_ServiceUpdateNotFoundFault(body, context);
2368
+ const deserialized = (0, smithy_client_1._json)(body);
2521
2369
  const exception = new models_0_1.ServiceUpdateNotFoundFault({
2522
2370
  $metadata: deserializeMetadata(parsedOutput),
2523
2371
  ...deserialized,
@@ -2526,7 +2374,7 @@ const de_ServiceUpdateNotFoundFaultRes = async (parsedOutput, context) => {
2526
2374
  };
2527
2375
  const de_ShardNotFoundFaultRes = async (parsedOutput, context) => {
2528
2376
  const body = parsedOutput.body;
2529
- const deserialized = de_ShardNotFoundFault(body, context);
2377
+ const deserialized = (0, smithy_client_1._json)(body);
2530
2378
  const exception = new models_0_1.ShardNotFoundFault({
2531
2379
  $metadata: deserializeMetadata(parsedOutput),
2532
2380
  ...deserialized,
@@ -2535,7 +2383,7 @@ const de_ShardNotFoundFaultRes = async (parsedOutput, context) => {
2535
2383
  };
2536
2384
  const de_ShardsPerClusterQuotaExceededFaultRes = async (parsedOutput, context) => {
2537
2385
  const body = parsedOutput.body;
2538
- const deserialized = de_ShardsPerClusterQuotaExceededFault(body, context);
2386
+ const deserialized = (0, smithy_client_1._json)(body);
2539
2387
  const exception = new models_0_1.ShardsPerClusterQuotaExceededFault({
2540
2388
  $metadata: deserializeMetadata(parsedOutput),
2541
2389
  ...deserialized,
@@ -2544,7 +2392,7 @@ const de_ShardsPerClusterQuotaExceededFaultRes = async (parsedOutput, context) =
2544
2392
  };
2545
2393
  const de_SnapshotAlreadyExistsFaultRes = async (parsedOutput, context) => {
2546
2394
  const body = parsedOutput.body;
2547
- const deserialized = de_SnapshotAlreadyExistsFault(body, context);
2395
+ const deserialized = (0, smithy_client_1._json)(body);
2548
2396
  const exception = new models_0_1.SnapshotAlreadyExistsFault({
2549
2397
  $metadata: deserializeMetadata(parsedOutput),
2550
2398
  ...deserialized,
@@ -2553,7 +2401,7 @@ const de_SnapshotAlreadyExistsFaultRes = async (parsedOutput, context) => {
2553
2401
  };
2554
2402
  const de_SnapshotNotFoundFaultRes = async (parsedOutput, context) => {
2555
2403
  const body = parsedOutput.body;
2556
- const deserialized = de_SnapshotNotFoundFault(body, context);
2404
+ const deserialized = (0, smithy_client_1._json)(body);
2557
2405
  const exception = new models_0_1.SnapshotNotFoundFault({
2558
2406
  $metadata: deserializeMetadata(parsedOutput),
2559
2407
  ...deserialized,
@@ -2562,7 +2410,7 @@ const de_SnapshotNotFoundFaultRes = async (parsedOutput, context) => {
2562
2410
  };
2563
2411
  const de_SnapshotQuotaExceededFaultRes = async (parsedOutput, context) => {
2564
2412
  const body = parsedOutput.body;
2565
- const deserialized = de_SnapshotQuotaExceededFault(body, context);
2413
+ const deserialized = (0, smithy_client_1._json)(body);
2566
2414
  const exception = new models_0_1.SnapshotQuotaExceededFault({
2567
2415
  $metadata: deserializeMetadata(parsedOutput),
2568
2416
  ...deserialized,
@@ -2571,7 +2419,7 @@ const de_SnapshotQuotaExceededFaultRes = async (parsedOutput, context) => {
2571
2419
  };
2572
2420
  const de_SubnetGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
2573
2421
  const body = parsedOutput.body;
2574
- const deserialized = de_SubnetGroupAlreadyExistsFault(body, context);
2422
+ const deserialized = (0, smithy_client_1._json)(body);
2575
2423
  const exception = new models_0_1.SubnetGroupAlreadyExistsFault({
2576
2424
  $metadata: deserializeMetadata(parsedOutput),
2577
2425
  ...deserialized,
@@ -2580,7 +2428,7 @@ const de_SubnetGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
2580
2428
  };
2581
2429
  const de_SubnetGroupInUseFaultRes = async (parsedOutput, context) => {
2582
2430
  const body = parsedOutput.body;
2583
- const deserialized = de_SubnetGroupInUseFault(body, context);
2431
+ const deserialized = (0, smithy_client_1._json)(body);
2584
2432
  const exception = new models_0_1.SubnetGroupInUseFault({
2585
2433
  $metadata: deserializeMetadata(parsedOutput),
2586
2434
  ...deserialized,
@@ -2589,7 +2437,7 @@ const de_SubnetGroupInUseFaultRes = async (parsedOutput, context) => {
2589
2437
  };
2590
2438
  const de_SubnetGroupNotFoundFaultRes = async (parsedOutput, context) => {
2591
2439
  const body = parsedOutput.body;
2592
- const deserialized = de_SubnetGroupNotFoundFault(body, context);
2440
+ const deserialized = (0, smithy_client_1._json)(body);
2593
2441
  const exception = new models_0_1.SubnetGroupNotFoundFault({
2594
2442
  $metadata: deserializeMetadata(parsedOutput),
2595
2443
  ...deserialized,
@@ -2598,7 +2446,7 @@ const de_SubnetGroupNotFoundFaultRes = async (parsedOutput, context) => {
2598
2446
  };
2599
2447
  const de_SubnetGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
2600
2448
  const body = parsedOutput.body;
2601
- const deserialized = de_SubnetGroupQuotaExceededFault(body, context);
2449
+ const deserialized = (0, smithy_client_1._json)(body);
2602
2450
  const exception = new models_0_1.SubnetGroupQuotaExceededFault({
2603
2451
  $metadata: deserializeMetadata(parsedOutput),
2604
2452
  ...deserialized,
@@ -2607,7 +2455,7 @@ const de_SubnetGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
2607
2455
  };
2608
2456
  const de_SubnetInUseRes = async (parsedOutput, context) => {
2609
2457
  const body = parsedOutput.body;
2610
- const deserialized = de_SubnetInUse(body, context);
2458
+ const deserialized = (0, smithy_client_1._json)(body);
2611
2459
  const exception = new models_0_1.SubnetInUse({
2612
2460
  $metadata: deserializeMetadata(parsedOutput),
2613
2461
  ...deserialized,
@@ -2616,7 +2464,7 @@ const de_SubnetInUseRes = async (parsedOutput, context) => {
2616
2464
  };
2617
2465
  const de_SubnetNotAllowedFaultRes = async (parsedOutput, context) => {
2618
2466
  const body = parsedOutput.body;
2619
- const deserialized = de_SubnetNotAllowedFault(body, context);
2467
+ const deserialized = (0, smithy_client_1._json)(body);
2620
2468
  const exception = new models_0_1.SubnetNotAllowedFault({
2621
2469
  $metadata: deserializeMetadata(parsedOutput),
2622
2470
  ...deserialized,
@@ -2625,7 +2473,7 @@ const de_SubnetNotAllowedFaultRes = async (parsedOutput, context) => {
2625
2473
  };
2626
2474
  const de_SubnetQuotaExceededFaultRes = async (parsedOutput, context) => {
2627
2475
  const body = parsedOutput.body;
2628
- const deserialized = de_SubnetQuotaExceededFault(body, context);
2476
+ const deserialized = (0, smithy_client_1._json)(body);
2629
2477
  const exception = new models_0_1.SubnetQuotaExceededFault({
2630
2478
  $metadata: deserializeMetadata(parsedOutput),
2631
2479
  ...deserialized,
@@ -2634,7 +2482,7 @@ const de_SubnetQuotaExceededFaultRes = async (parsedOutput, context) => {
2634
2482
  };
2635
2483
  const de_TagNotFoundFaultRes = async (parsedOutput, context) => {
2636
2484
  const body = parsedOutput.body;
2637
- const deserialized = de_TagNotFoundFault(body, context);
2485
+ const deserialized = (0, smithy_client_1._json)(body);
2638
2486
  const exception = new models_0_1.TagNotFoundFault({
2639
2487
  $metadata: deserializeMetadata(parsedOutput),
2640
2488
  ...deserialized,
@@ -2643,7 +2491,7 @@ const de_TagNotFoundFaultRes = async (parsedOutput, context) => {
2643
2491
  };
2644
2492
  const de_TagQuotaPerResourceExceededRes = async (parsedOutput, context) => {
2645
2493
  const body = parsedOutput.body;
2646
- const deserialized = de_TagQuotaPerResourceExceeded(body, context);
2494
+ const deserialized = (0, smithy_client_1._json)(body);
2647
2495
  const exception = new models_0_1.TagQuotaPerResourceExceeded({
2648
2496
  $metadata: deserializeMetadata(parsedOutput),
2649
2497
  ...deserialized,
@@ -2652,7 +2500,7 @@ const de_TagQuotaPerResourceExceededRes = async (parsedOutput, context) => {
2652
2500
  };
2653
2501
  const de_TestFailoverNotAvailableFaultRes = async (parsedOutput, context) => {
2654
2502
  const body = parsedOutput.body;
2655
- const deserialized = de_TestFailoverNotAvailableFault(body, context);
2503
+ const deserialized = (0, smithy_client_1._json)(body);
2656
2504
  const exception = new models_0_1.TestFailoverNotAvailableFault({
2657
2505
  $metadata: deserializeMetadata(parsedOutput),
2658
2506
  ...deserialized,
@@ -2661,7 +2509,7 @@ const de_TestFailoverNotAvailableFaultRes = async (parsedOutput, context) => {
2661
2509
  };
2662
2510
  const de_UserAlreadyExistsFaultRes = async (parsedOutput, context) => {
2663
2511
  const body = parsedOutput.body;
2664
- const deserialized = de_UserAlreadyExistsFault(body, context);
2512
+ const deserialized = (0, smithy_client_1._json)(body);
2665
2513
  const exception = new models_0_1.UserAlreadyExistsFault({
2666
2514
  $metadata: deserializeMetadata(parsedOutput),
2667
2515
  ...deserialized,
@@ -2670,7 +2518,7 @@ const de_UserAlreadyExistsFaultRes = async (parsedOutput, context) => {
2670
2518
  };
2671
2519
  const de_UserNotFoundFaultRes = async (parsedOutput, context) => {
2672
2520
  const body = parsedOutput.body;
2673
- const deserialized = de_UserNotFoundFault(body, context);
2521
+ const deserialized = (0, smithy_client_1._json)(body);
2674
2522
  const exception = new models_0_1.UserNotFoundFault({
2675
2523
  $metadata: deserializeMetadata(parsedOutput),
2676
2524
  ...deserialized,
@@ -2679,1216 +2527,298 @@ const de_UserNotFoundFaultRes = async (parsedOutput, context) => {
2679
2527
  };
2680
2528
  const de_UserQuotaExceededFaultRes = async (parsedOutput, context) => {
2681
2529
  const body = parsedOutput.body;
2682
- const deserialized = de_UserQuotaExceededFault(body, context);
2530
+ const deserialized = (0, smithy_client_1._json)(body);
2683
2531
  const exception = new models_0_1.UserQuotaExceededFault({
2684
2532
  $metadata: deserializeMetadata(parsedOutput),
2685
2533
  ...deserialized,
2686
2534
  });
2687
2535
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2688
2536
  };
2689
- const se_AuthenticationMode = (input, context) => {
2690
- return {
2691
- ...(input.Passwords != null && { Passwords: se_PasswordListInput(input.Passwords, context) }),
2692
- ...(input.Type != null && { Type: input.Type }),
2693
- };
2694
- };
2695
- const se_BatchUpdateClusterRequest = (input, context) => {
2696
- return {
2697
- ...(input.ClusterNames != null && { ClusterNames: se_ClusterNameList(input.ClusterNames, context) }),
2698
- ...(input.ServiceUpdate != null && { ServiceUpdate: se_ServiceUpdateRequest(input.ServiceUpdate, context) }),
2699
- };
2700
- };
2701
- const se_ClusterNameList = (input, context) => {
2702
- return input
2703
- .filter((e) => e != null)
2704
- .map((entry) => {
2705
- return entry;
2537
+ const se_DescribeEventsRequest = (input, context) => {
2538
+ return (0, smithy_client_1.take)(input, {
2539
+ Duration: [],
2540
+ EndTime: (_) => Math.round(_.getTime() / 1000),
2541
+ MaxResults: [],
2542
+ NextToken: [],
2543
+ SourceName: [],
2544
+ SourceType: [],
2545
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2706
2546
  });
2707
2547
  };
2708
- const se_CopySnapshotRequest = (input, context) => {
2709
- return {
2710
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
2711
- ...(input.SourceSnapshotName != null && { SourceSnapshotName: input.SourceSnapshotName }),
2712
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2713
- ...(input.TargetBucket != null && { TargetBucket: input.TargetBucket }),
2714
- ...(input.TargetSnapshotName != null && { TargetSnapshotName: input.TargetSnapshotName }),
2715
- };
2716
- };
2717
- const se_CreateACLRequest = (input, context) => {
2718
- return {
2719
- ...(input.ACLName != null && { ACLName: input.ACLName }),
2720
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2721
- ...(input.UserNames != null && { UserNames: se_UserNameListInput(input.UserNames, context) }),
2722
- };
2723
- };
2724
- const se_CreateClusterRequest = (input, context) => {
2725
- return {
2726
- ...(input.ACLName != null && { ACLName: input.ACLName }),
2727
- ...(input.AutoMinorVersionUpgrade != null && { AutoMinorVersionUpgrade: input.AutoMinorVersionUpgrade }),
2728
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
2729
- ...(input.DataTiering != null && { DataTiering: input.DataTiering }),
2730
- ...(input.Description != null && { Description: input.Description }),
2731
- ...(input.EngineVersion != null && { EngineVersion: input.EngineVersion }),
2732
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
2733
- ...(input.MaintenanceWindow != null && { MaintenanceWindow: input.MaintenanceWindow }),
2734
- ...(input.NodeType != null && { NodeType: input.NodeType }),
2735
- ...(input.NumReplicasPerShard != null && { NumReplicasPerShard: input.NumReplicasPerShard }),
2736
- ...(input.NumShards != null && { NumShards: input.NumShards }),
2737
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
2738
- ...(input.Port != null && { Port: input.Port }),
2739
- ...(input.SecurityGroupIds != null && {
2740
- SecurityGroupIds: se_SecurityGroupIdsList(input.SecurityGroupIds, context),
2741
- }),
2742
- ...(input.SnapshotArns != null && { SnapshotArns: se_SnapshotArnsList(input.SnapshotArns, context) }),
2743
- ...(input.SnapshotName != null && { SnapshotName: input.SnapshotName }),
2744
- ...(input.SnapshotRetentionLimit != null && { SnapshotRetentionLimit: input.SnapshotRetentionLimit }),
2745
- ...(input.SnapshotWindow != null && { SnapshotWindow: input.SnapshotWindow }),
2746
- ...(input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn }),
2747
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
2748
- ...(input.TLSEnabled != null && { TLSEnabled: input.TLSEnabled }),
2749
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2750
- };
2751
- };
2752
- const se_CreateParameterGroupRequest = (input, context) => {
2753
- return {
2754
- ...(input.Description != null && { Description: input.Description }),
2755
- ...(input.Family != null && { Family: input.Family }),
2756
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
2757
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2758
- };
2759
- };
2760
- const se_CreateSnapshotRequest = (input, context) => {
2761
- return {
2762
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
2763
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
2764
- ...(input.SnapshotName != null && { SnapshotName: input.SnapshotName }),
2765
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2766
- };
2767
- };
2768
- const se_CreateSubnetGroupRequest = (input, context) => {
2769
- return {
2770
- ...(input.Description != null && { Description: input.Description }),
2771
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
2772
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIdentifierList(input.SubnetIds, context) }),
2773
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2774
- };
2775
- };
2776
- const se_CreateUserRequest = (input, context) => {
2777
- return {
2778
- ...(input.AccessString != null && { AccessString: input.AccessString }),
2779
- ...(input.AuthenticationMode != null && {
2780
- AuthenticationMode: se_AuthenticationMode(input.AuthenticationMode, context),
2781
- }),
2782
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2783
- ...(input.UserName != null && { UserName: input.UserName }),
2784
- };
2785
- };
2786
- const se_DeleteACLRequest = (input, context) => {
2787
- return {
2788
- ...(input.ACLName != null && { ACLName: input.ACLName }),
2789
- };
2790
- };
2791
- const se_DeleteClusterRequest = (input, context) => {
2792
- return {
2793
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
2794
- ...(input.FinalSnapshotName != null && { FinalSnapshotName: input.FinalSnapshotName }),
2795
- };
2796
- };
2797
- const se_DeleteParameterGroupRequest = (input, context) => {
2798
- return {
2799
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
2800
- };
2801
- };
2802
- const se_DeleteSnapshotRequest = (input, context) => {
2803
- return {
2804
- ...(input.SnapshotName != null && { SnapshotName: input.SnapshotName }),
2805
- };
2806
- };
2807
- const se_DeleteSubnetGroupRequest = (input, context) => {
2808
- return {
2809
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
2810
- };
2811
- };
2812
- const se_DeleteUserRequest = (input, context) => {
2813
- return {
2814
- ...(input.UserName != null && { UserName: input.UserName }),
2815
- };
2548
+ const de_BatchUpdateClusterResponse = (output, context) => {
2549
+ return (0, smithy_client_1.take)(output, {
2550
+ ProcessedClusters: (_) => de_ClusterList(_, context),
2551
+ UnprocessedClusters: smithy_client_1._json,
2552
+ });
2816
2553
  };
2817
- const se_DescribeACLsRequest = (input, context) => {
2818
- return {
2819
- ...(input.ACLName != null && { ACLName: input.ACLName }),
2820
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2821
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2822
- };
2554
+ const de_Cluster = (output, context) => {
2555
+ return (0, smithy_client_1.take)(output, {
2556
+ ACLName: smithy_client_1.expectString,
2557
+ ARN: smithy_client_1.expectString,
2558
+ AutoMinorVersionUpgrade: smithy_client_1.expectBoolean,
2559
+ AvailabilityMode: smithy_client_1.expectString,
2560
+ ClusterEndpoint: smithy_client_1._json,
2561
+ DataTiering: smithy_client_1.expectString,
2562
+ Description: smithy_client_1.expectString,
2563
+ EnginePatchVersion: smithy_client_1.expectString,
2564
+ EngineVersion: smithy_client_1.expectString,
2565
+ KmsKeyId: smithy_client_1.expectString,
2566
+ MaintenanceWindow: smithy_client_1.expectString,
2567
+ Name: smithy_client_1.expectString,
2568
+ NodeType: smithy_client_1.expectString,
2569
+ NumberOfShards: smithy_client_1.expectInt32,
2570
+ ParameterGroupName: smithy_client_1.expectString,
2571
+ ParameterGroupStatus: smithy_client_1.expectString,
2572
+ PendingUpdates: (_) => de_ClusterPendingUpdates(_, context),
2573
+ SecurityGroups: smithy_client_1._json,
2574
+ Shards: (_) => de_ShardList(_, context),
2575
+ SnapshotRetentionLimit: smithy_client_1.expectInt32,
2576
+ SnapshotWindow: smithy_client_1.expectString,
2577
+ SnsTopicArn: smithy_client_1.expectString,
2578
+ SnsTopicStatus: smithy_client_1.expectString,
2579
+ Status: smithy_client_1.expectString,
2580
+ SubnetGroupName: smithy_client_1.expectString,
2581
+ TLSEnabled: smithy_client_1.expectBoolean,
2582
+ });
2823
2583
  };
2824
- const se_DescribeClustersRequest = (input, context) => {
2825
- return {
2826
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
2827
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2828
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2829
- ...(input.ShowShardDetails != null && { ShowShardDetails: input.ShowShardDetails }),
2830
- };
2584
+ const de_ClusterConfiguration = (output, context) => {
2585
+ return (0, smithy_client_1.take)(output, {
2586
+ Description: smithy_client_1.expectString,
2587
+ EngineVersion: smithy_client_1.expectString,
2588
+ MaintenanceWindow: smithy_client_1.expectString,
2589
+ Name: smithy_client_1.expectString,
2590
+ NodeType: smithy_client_1.expectString,
2591
+ NumShards: smithy_client_1.expectInt32,
2592
+ ParameterGroupName: smithy_client_1.expectString,
2593
+ Port: smithy_client_1.expectInt32,
2594
+ Shards: (_) => de_ShardDetails(_, context),
2595
+ SnapshotRetentionLimit: smithy_client_1.expectInt32,
2596
+ SnapshotWindow: smithy_client_1.expectString,
2597
+ SubnetGroupName: smithy_client_1.expectString,
2598
+ TopicArn: smithy_client_1.expectString,
2599
+ VpcId: smithy_client_1.expectString,
2600
+ });
2831
2601
  };
2832
- const se_DescribeEngineVersionsRequest = (input, context) => {
2833
- return {
2834
- ...(input.DefaultOnly != null && { DefaultOnly: input.DefaultOnly }),
2835
- ...(input.EngineVersion != null && { EngineVersion: input.EngineVersion }),
2836
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2837
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2838
- ...(input.ParameterGroupFamily != null && { ParameterGroupFamily: input.ParameterGroupFamily }),
2839
- };
2602
+ const de_ClusterList = (output, context) => {
2603
+ const retVal = (output || [])
2604
+ .filter((e) => e != null)
2605
+ .map((entry) => {
2606
+ return de_Cluster(entry, context);
2607
+ });
2608
+ return retVal;
2840
2609
  };
2841
- const se_DescribeEventsRequest = (input, context) => {
2842
- return {
2843
- ...(input.Duration != null && { Duration: input.Duration }),
2844
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2845
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2846
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2847
- ...(input.SourceName != null && { SourceName: input.SourceName }),
2848
- ...(input.SourceType != null && { SourceType: input.SourceType }),
2849
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2850
- };
2610
+ const de_ClusterPendingUpdates = (output, context) => {
2611
+ return (0, smithy_client_1.take)(output, {
2612
+ ACLs: smithy_client_1._json,
2613
+ Resharding: (_) => de_ReshardingStatus(_, context),
2614
+ ServiceUpdates: smithy_client_1._json,
2615
+ });
2851
2616
  };
2852
- const se_DescribeParameterGroupsRequest = (input, context) => {
2853
- return {
2854
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2855
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2856
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
2857
- };
2617
+ const de_CopySnapshotResponse = (output, context) => {
2618
+ return (0, smithy_client_1.take)(output, {
2619
+ Snapshot: (_) => de_Snapshot(_, context),
2620
+ });
2858
2621
  };
2859
- const se_DescribeParametersRequest = (input, context) => {
2860
- return {
2861
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2862
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2863
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
2864
- };
2622
+ const de_CreateClusterResponse = (output, context) => {
2623
+ return (0, smithy_client_1.take)(output, {
2624
+ Cluster: (_) => de_Cluster(_, context),
2625
+ });
2865
2626
  };
2866
- const se_DescribeReservedNodesOfferingsRequest = (input, context) => {
2867
- return {
2868
- ...(input.Duration != null && { Duration: input.Duration }),
2869
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2870
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2871
- ...(input.NodeType != null && { NodeType: input.NodeType }),
2872
- ...(input.OfferingType != null && { OfferingType: input.OfferingType }),
2873
- ...(input.ReservedNodesOfferingId != null && { ReservedNodesOfferingId: input.ReservedNodesOfferingId }),
2874
- };
2627
+ const de_CreateSnapshotResponse = (output, context) => {
2628
+ return (0, smithy_client_1.take)(output, {
2629
+ Snapshot: (_) => de_Snapshot(_, context),
2630
+ });
2875
2631
  };
2876
- const se_DescribeReservedNodesRequest = (input, context) => {
2877
- return {
2878
- ...(input.Duration != null && { Duration: input.Duration }),
2879
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2880
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2881
- ...(input.NodeType != null && { NodeType: input.NodeType }),
2882
- ...(input.OfferingType != null && { OfferingType: input.OfferingType }),
2883
- ...(input.ReservationId != null && { ReservationId: input.ReservationId }),
2884
- ...(input.ReservedNodesOfferingId != null && { ReservedNodesOfferingId: input.ReservedNodesOfferingId }),
2885
- };
2632
+ const de_DeleteClusterResponse = (output, context) => {
2633
+ return (0, smithy_client_1.take)(output, {
2634
+ Cluster: (_) => de_Cluster(_, context),
2635
+ });
2886
2636
  };
2887
- const se_DescribeServiceUpdatesRequest = (input, context) => {
2888
- return {
2889
- ...(input.ClusterNames != null && { ClusterNames: se_ClusterNameList(input.ClusterNames, context) }),
2890
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2891
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2892
- ...(input.ServiceUpdateName != null && { ServiceUpdateName: input.ServiceUpdateName }),
2893
- ...(input.Status != null && { Status: se_ServiceUpdateStatusList(input.Status, context) }),
2894
- };
2637
+ const de_DeleteSnapshotResponse = (output, context) => {
2638
+ return (0, smithy_client_1.take)(output, {
2639
+ Snapshot: (_) => de_Snapshot(_, context),
2640
+ });
2895
2641
  };
2896
- const se_DescribeSnapshotsRequest = (input, context) => {
2897
- return {
2898
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
2899
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2900
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2901
- ...(input.ShowDetail != null && { ShowDetail: input.ShowDetail }),
2902
- ...(input.SnapshotName != null && { SnapshotName: input.SnapshotName }),
2903
- ...(input.Source != null && { Source: input.Source }),
2904
- };
2642
+ const de_DescribeClustersResponse = (output, context) => {
2643
+ return (0, smithy_client_1.take)(output, {
2644
+ Clusters: (_) => de_ClusterList(_, context),
2645
+ NextToken: smithy_client_1.expectString,
2646
+ });
2905
2647
  };
2906
- const se_DescribeSubnetGroupsRequest = (input, context) => {
2907
- return {
2908
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2909
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2910
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
2911
- };
2648
+ const de_DescribeEventsResponse = (output, context) => {
2649
+ return (0, smithy_client_1.take)(output, {
2650
+ Events: (_) => de_EventList(_, context),
2651
+ NextToken: smithy_client_1.expectString,
2652
+ });
2912
2653
  };
2913
- const se_DescribeUsersRequest = (input, context) => {
2914
- return {
2915
- ...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
2916
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2917
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2918
- ...(input.UserName != null && { UserName: input.UserName }),
2919
- };
2654
+ const de_DescribeReservedNodesOfferingsResponse = (output, context) => {
2655
+ return (0, smithy_client_1.take)(output, {
2656
+ NextToken: smithy_client_1.expectString,
2657
+ ReservedNodesOfferings: (_) => de_ReservedNodesOfferingList(_, context),
2658
+ });
2920
2659
  };
2921
- const se_FailoverShardRequest = (input, context) => {
2922
- return {
2923
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
2924
- ...(input.ShardName != null && { ShardName: input.ShardName }),
2925
- };
2660
+ const de_DescribeReservedNodesResponse = (output, context) => {
2661
+ return (0, smithy_client_1.take)(output, {
2662
+ NextToken: smithy_client_1.expectString,
2663
+ ReservedNodes: (_) => de_ReservedNodeList(_, context),
2664
+ });
2926
2665
  };
2927
- const se_Filter = (input, context) => {
2928
- return {
2929
- ...(input.Name != null && { Name: input.Name }),
2930
- ...(input.Values != null && { Values: se_FilterValueList(input.Values, context) }),
2931
- };
2666
+ const de_DescribeServiceUpdatesResponse = (output, context) => {
2667
+ return (0, smithy_client_1.take)(output, {
2668
+ NextToken: smithy_client_1.expectString,
2669
+ ServiceUpdates: (_) => de_ServiceUpdateList(_, context),
2670
+ });
2932
2671
  };
2933
- const se_FilterList = (input, context) => {
2934
- return input
2935
- .filter((e) => e != null)
2936
- .map((entry) => {
2937
- return se_Filter(entry, context);
2672
+ const de_DescribeSnapshotsResponse = (output, context) => {
2673
+ return (0, smithy_client_1.take)(output, {
2674
+ NextToken: smithy_client_1.expectString,
2675
+ Snapshots: (_) => de_SnapshotList(_, context),
2938
2676
  });
2939
2677
  };
2940
- const se_FilterValueList = (input, context) => {
2941
- return input
2942
- .filter((e) => e != null)
2943
- .map((entry) => {
2944
- return entry;
2678
+ const de_Event = (output, context) => {
2679
+ return (0, smithy_client_1.take)(output, {
2680
+ Date: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2681
+ Message: smithy_client_1.expectString,
2682
+ SourceName: smithy_client_1.expectString,
2683
+ SourceType: smithy_client_1.expectString,
2945
2684
  });
2946
2685
  };
2947
- const se_KeyList = (input, context) => {
2948
- return input
2686
+ const de_EventList = (output, context) => {
2687
+ const retVal = (output || [])
2949
2688
  .filter((e) => e != null)
2950
2689
  .map((entry) => {
2951
- return entry;
2690
+ return de_Event(entry, context);
2952
2691
  });
2692
+ return retVal;
2953
2693
  };
2954
- const se_ListAllowedNodeTypeUpdatesRequest = (input, context) => {
2955
- return {
2956
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
2957
- };
2694
+ const de_FailoverShardResponse = (output, context) => {
2695
+ return (0, smithy_client_1.take)(output, {
2696
+ Cluster: (_) => de_Cluster(_, context),
2697
+ });
2958
2698
  };
2959
- const se_ListTagsRequest = (input, context) => {
2960
- return {
2961
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2962
- };
2699
+ const de_Node = (output, context) => {
2700
+ return (0, smithy_client_1.take)(output, {
2701
+ AvailabilityZone: smithy_client_1.expectString,
2702
+ CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2703
+ Endpoint: smithy_client_1._json,
2704
+ Name: smithy_client_1.expectString,
2705
+ Status: smithy_client_1.expectString,
2706
+ });
2963
2707
  };
2964
- const se_ParameterNameList = (input, context) => {
2965
- return input
2708
+ const de_NodeList = (output, context) => {
2709
+ const retVal = (output || [])
2966
2710
  .filter((e) => e != null)
2967
2711
  .map((entry) => {
2968
- return entry;
2712
+ return de_Node(entry, context);
2969
2713
  });
2714
+ return retVal;
2970
2715
  };
2971
- const se_ParameterNameValue = (input, context) => {
2972
- return {
2973
- ...(input.ParameterName != null && { ParameterName: input.ParameterName }),
2974
- ...(input.ParameterValue != null && { ParameterValue: input.ParameterValue }),
2975
- };
2716
+ const de_PurchaseReservedNodesOfferingResponse = (output, context) => {
2717
+ return (0, smithy_client_1.take)(output, {
2718
+ ReservedNode: (_) => de_ReservedNode(_, context),
2719
+ });
2976
2720
  };
2977
- const se_ParameterNameValueList = (input, context) => {
2978
- return input
2979
- .filter((e) => e != null)
2980
- .map((entry) => {
2981
- return se_ParameterNameValue(entry, context);
2721
+ const de_RecurringCharge = (output, context) => {
2722
+ return (0, smithy_client_1.take)(output, {
2723
+ RecurringChargeAmount: smithy_client_1.limitedParseDouble,
2724
+ RecurringChargeFrequency: smithy_client_1.expectString,
2982
2725
  });
2983
2726
  };
2984
- const se_PasswordListInput = (input, context) => {
2985
- return input
2727
+ const de_RecurringChargeList = (output, context) => {
2728
+ const retVal = (output || [])
2986
2729
  .filter((e) => e != null)
2987
2730
  .map((entry) => {
2988
- return entry;
2731
+ return de_RecurringCharge(entry, context);
2989
2732
  });
2733
+ return retVal;
2990
2734
  };
2991
- const se_PurchaseReservedNodesOfferingRequest = (input, context) => {
2992
- return {
2993
- ...(input.NodeCount != null && { NodeCount: input.NodeCount }),
2994
- ...(input.ReservationId != null && { ReservationId: input.ReservationId }),
2995
- ...(input.ReservedNodesOfferingId != null && { ReservedNodesOfferingId: input.ReservedNodesOfferingId }),
2996
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2997
- };
2998
- };
2999
- const se_ReplicaConfigurationRequest = (input, context) => {
3000
- return {
3001
- ...(input.ReplicaCount != null && { ReplicaCount: input.ReplicaCount }),
3002
- };
3003
- };
3004
- const se_ResetParameterGroupRequest = (input, context) => {
3005
- return {
3006
- ...(input.AllParameters != null && { AllParameters: input.AllParameters }),
3007
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
3008
- ...(input.ParameterNames != null && { ParameterNames: se_ParameterNameList(input.ParameterNames, context) }),
3009
- };
2735
+ const de_ReservedNode = (output, context) => {
2736
+ return (0, smithy_client_1.take)(output, {
2737
+ ARN: smithy_client_1.expectString,
2738
+ Duration: smithy_client_1.expectInt32,
2739
+ FixedPrice: smithy_client_1.limitedParseDouble,
2740
+ NodeCount: smithy_client_1.expectInt32,
2741
+ NodeType: smithy_client_1.expectString,
2742
+ OfferingType: smithy_client_1.expectString,
2743
+ RecurringCharges: (_) => de_RecurringChargeList(_, context),
2744
+ ReservationId: smithy_client_1.expectString,
2745
+ ReservedNodesOfferingId: smithy_client_1.expectString,
2746
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2747
+ State: smithy_client_1.expectString,
2748
+ });
3010
2749
  };
3011
- const se_SecurityGroupIdsList = (input, context) => {
3012
- return input
2750
+ const de_ReservedNodeList = (output, context) => {
2751
+ const retVal = (output || [])
3013
2752
  .filter((e) => e != null)
3014
2753
  .map((entry) => {
3015
- return entry;
2754
+ return de_ReservedNode(entry, context);
3016
2755
  });
2756
+ return retVal;
3017
2757
  };
3018
- const se_ServiceUpdateRequest = (input, context) => {
3019
- return {
3020
- ...(input.ServiceUpdateNameToApply != null && { ServiceUpdateNameToApply: input.ServiceUpdateNameToApply }),
3021
- };
2758
+ const de_ReservedNodesOffering = (output, context) => {
2759
+ return (0, smithy_client_1.take)(output, {
2760
+ Duration: smithy_client_1.expectInt32,
2761
+ FixedPrice: smithy_client_1.limitedParseDouble,
2762
+ NodeType: smithy_client_1.expectString,
2763
+ OfferingType: smithy_client_1.expectString,
2764
+ RecurringCharges: (_) => de_RecurringChargeList(_, context),
2765
+ ReservedNodesOfferingId: smithy_client_1.expectString,
2766
+ });
3022
2767
  };
3023
- const se_ServiceUpdateStatusList = (input, context) => {
3024
- return input
2768
+ const de_ReservedNodesOfferingList = (output, context) => {
2769
+ const retVal = (output || [])
3025
2770
  .filter((e) => e != null)
3026
2771
  .map((entry) => {
3027
- return entry;
2772
+ return de_ReservedNodesOffering(entry, context);
3028
2773
  });
2774
+ return retVal;
3029
2775
  };
3030
- const se_ShardConfigurationRequest = (input, context) => {
3031
- return {
3032
- ...(input.ShardCount != null && { ShardCount: input.ShardCount }),
3033
- };
2776
+ const de_ReshardingStatus = (output, context) => {
2777
+ return (0, smithy_client_1.take)(output, {
2778
+ SlotMigration: (_) => de_SlotMigration(_, context),
2779
+ });
3034
2780
  };
3035
- const se_SnapshotArnsList = (input, context) => {
3036
- return input
3037
- .filter((e) => e != null)
3038
- .map((entry) => {
3039
- return entry;
2781
+ const de_ServiceUpdate = (output, context) => {
2782
+ return (0, smithy_client_1.take)(output, {
2783
+ AutoUpdateStartDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2784
+ ClusterName: smithy_client_1.expectString,
2785
+ Description: smithy_client_1.expectString,
2786
+ NodesUpdated: smithy_client_1.expectString,
2787
+ ReleaseDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2788
+ ServiceUpdateName: smithy_client_1.expectString,
2789
+ Status: smithy_client_1.expectString,
2790
+ Type: smithy_client_1.expectString,
3040
2791
  });
3041
2792
  };
3042
- const se_SubnetIdentifierList = (input, context) => {
3043
- return input
2793
+ const de_ServiceUpdateList = (output, context) => {
2794
+ const retVal = (output || [])
3044
2795
  .filter((e) => e != null)
3045
2796
  .map((entry) => {
3046
- return entry;
2797
+ return de_ServiceUpdate(entry, context);
3047
2798
  });
3048
- };
3049
- const se_Tag = (input, context) => {
3050
- return {
3051
- ...(input.Key != null && { Key: input.Key }),
3052
- ...(input.Value != null && { Value: input.Value }),
3053
- };
3054
- };
3055
- const se_TagList = (input, context) => {
3056
- return input
3057
- .filter((e) => e != null)
3058
- .map((entry) => {
3059
- return se_Tag(entry, context);
3060
- });
3061
- };
3062
- const se_TagResourceRequest = (input, context) => {
3063
- return {
3064
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3065
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3066
- };
3067
- };
3068
- const se_UntagResourceRequest = (input, context) => {
3069
- return {
3070
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3071
- ...(input.TagKeys != null && { TagKeys: se_KeyList(input.TagKeys, context) }),
3072
- };
3073
- };
3074
- const se_UpdateACLRequest = (input, context) => {
3075
- return {
3076
- ...(input.ACLName != null && { ACLName: input.ACLName }),
3077
- ...(input.UserNamesToAdd != null && { UserNamesToAdd: se_UserNameListInput(input.UserNamesToAdd, context) }),
3078
- ...(input.UserNamesToRemove != null && {
3079
- UserNamesToRemove: se_UserNameListInput(input.UserNamesToRemove, context),
3080
- }),
3081
- };
3082
- };
3083
- const se_UpdateClusterRequest = (input, context) => {
3084
- return {
3085
- ...(input.ACLName != null && { ACLName: input.ACLName }),
3086
- ...(input.ClusterName != null && { ClusterName: input.ClusterName }),
3087
- ...(input.Description != null && { Description: input.Description }),
3088
- ...(input.EngineVersion != null && { EngineVersion: input.EngineVersion }),
3089
- ...(input.MaintenanceWindow != null && { MaintenanceWindow: input.MaintenanceWindow }),
3090
- ...(input.NodeType != null && { NodeType: input.NodeType }),
3091
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
3092
- ...(input.ReplicaConfiguration != null && {
3093
- ReplicaConfiguration: se_ReplicaConfigurationRequest(input.ReplicaConfiguration, context),
3094
- }),
3095
- ...(input.SecurityGroupIds != null && {
3096
- SecurityGroupIds: se_SecurityGroupIdsList(input.SecurityGroupIds, context),
3097
- }),
3098
- ...(input.ShardConfiguration != null && {
3099
- ShardConfiguration: se_ShardConfigurationRequest(input.ShardConfiguration, context),
3100
- }),
3101
- ...(input.SnapshotRetentionLimit != null && { SnapshotRetentionLimit: input.SnapshotRetentionLimit }),
3102
- ...(input.SnapshotWindow != null && { SnapshotWindow: input.SnapshotWindow }),
3103
- ...(input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn }),
3104
- ...(input.SnsTopicStatus != null && { SnsTopicStatus: input.SnsTopicStatus }),
3105
- };
3106
- };
3107
- const se_UpdateParameterGroupRequest = (input, context) => {
3108
- return {
3109
- ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
3110
- ...(input.ParameterNameValues != null && {
3111
- ParameterNameValues: se_ParameterNameValueList(input.ParameterNameValues, context),
3112
- }),
3113
- };
3114
- };
3115
- const se_UpdateSubnetGroupRequest = (input, context) => {
3116
- return {
3117
- ...(input.Description != null && { Description: input.Description }),
3118
- ...(input.SubnetGroupName != null && { SubnetGroupName: input.SubnetGroupName }),
3119
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIdentifierList(input.SubnetIds, context) }),
3120
- };
3121
- };
3122
- const se_UpdateUserRequest = (input, context) => {
3123
- return {
3124
- ...(input.AccessString != null && { AccessString: input.AccessString }),
3125
- ...(input.AuthenticationMode != null && {
3126
- AuthenticationMode: se_AuthenticationMode(input.AuthenticationMode, context),
3127
- }),
3128
- ...(input.UserName != null && { UserName: input.UserName }),
3129
- };
3130
- };
3131
- const se_UserNameListInput = (input, context) => {
3132
- return input
3133
- .filter((e) => e != null)
3134
- .map((entry) => {
3135
- return entry;
3136
- });
3137
- };
3138
- const de_ACL = (output, context) => {
3139
- return {
3140
- ARN: (0, smithy_client_1.expectString)(output.ARN),
3141
- Clusters: output.Clusters != null ? de_ACLClusterNameList(output.Clusters, context) : undefined,
3142
- MinimumEngineVersion: (0, smithy_client_1.expectString)(output.MinimumEngineVersion),
3143
- Name: (0, smithy_client_1.expectString)(output.Name),
3144
- PendingChanges: output.PendingChanges != null ? de_ACLPendingChanges(output.PendingChanges, context) : undefined,
3145
- Status: (0, smithy_client_1.expectString)(output.Status),
3146
- UserNames: output.UserNames != null ? de_UserNameList(output.UserNames, context) : undefined,
3147
- };
3148
- };
3149
- const de_ACLAlreadyExistsFault = (output, context) => {
3150
- return {
3151
- message: (0, smithy_client_1.expectString)(output.message),
3152
- };
3153
- };
3154
- const de_ACLClusterNameList = (output, context) => {
3155
- const retVal = (output || [])
3156
- .filter((e) => e != null)
3157
- .map((entry) => {
3158
- if (entry === null) {
3159
- return null;
3160
- }
3161
- return (0, smithy_client_1.expectString)(entry);
3162
- });
3163
- return retVal;
3164
- };
3165
- const de_ACLList = (output, context) => {
3166
- const retVal = (output || [])
3167
- .filter((e) => e != null)
3168
- .map((entry) => {
3169
- if (entry === null) {
3170
- return null;
3171
- }
3172
- return de_ACL(entry, context);
3173
- });
3174
- return retVal;
3175
- };
3176
- const de_ACLNameList = (output, context) => {
3177
- const retVal = (output || [])
3178
- .filter((e) => e != null)
3179
- .map((entry) => {
3180
- if (entry === null) {
3181
- return null;
3182
- }
3183
- return (0, smithy_client_1.expectString)(entry);
3184
- });
3185
- return retVal;
3186
- };
3187
- const de_ACLNotFoundFault = (output, context) => {
3188
- return {
3189
- message: (0, smithy_client_1.expectString)(output.message),
3190
- };
3191
- };
3192
- const de_ACLPendingChanges = (output, context) => {
3193
- return {
3194
- UserNamesToAdd: output.UserNamesToAdd != null ? de_UserNameList(output.UserNamesToAdd, context) : undefined,
3195
- UserNamesToRemove: output.UserNamesToRemove != null ? de_UserNameList(output.UserNamesToRemove, context) : undefined,
3196
- };
3197
- };
3198
- const de_ACLQuotaExceededFault = (output, context) => {
3199
- return {
3200
- message: (0, smithy_client_1.expectString)(output.message),
3201
- };
3202
- };
3203
- const de_ACLsUpdateStatus = (output, context) => {
3204
- return {
3205
- ACLToApply: (0, smithy_client_1.expectString)(output.ACLToApply),
3206
- };
3207
- };
3208
- const de_APICallRateForCustomerExceededFault = (output, context) => {
3209
- return {
3210
- message: (0, smithy_client_1.expectString)(output.message),
3211
- };
3212
- };
3213
- const de_Authentication = (output, context) => {
3214
- return {
3215
- PasswordCount: (0, smithy_client_1.expectInt32)(output.PasswordCount),
3216
- Type: (0, smithy_client_1.expectString)(output.Type),
3217
- };
3218
- };
3219
- const de_AvailabilityZone = (output, context) => {
3220
- return {
3221
- Name: (0, smithy_client_1.expectString)(output.Name),
3222
- };
3223
- };
3224
- const de_BatchUpdateClusterResponse = (output, context) => {
3225
- return {
3226
- ProcessedClusters: output.ProcessedClusters != null ? de_ClusterList(output.ProcessedClusters, context) : undefined,
3227
- UnprocessedClusters: output.UnprocessedClusters != null ? de_UnprocessedClusterList(output.UnprocessedClusters, context) : undefined,
3228
- };
3229
- };
3230
- const de_Cluster = (output, context) => {
3231
- return {
3232
- ACLName: (0, smithy_client_1.expectString)(output.ACLName),
3233
- ARN: (0, smithy_client_1.expectString)(output.ARN),
3234
- AutoMinorVersionUpgrade: (0, smithy_client_1.expectBoolean)(output.AutoMinorVersionUpgrade),
3235
- AvailabilityMode: (0, smithy_client_1.expectString)(output.AvailabilityMode),
3236
- ClusterEndpoint: output.ClusterEndpoint != null ? de_Endpoint(output.ClusterEndpoint, context) : undefined,
3237
- DataTiering: (0, smithy_client_1.expectString)(output.DataTiering),
3238
- Description: (0, smithy_client_1.expectString)(output.Description),
3239
- EnginePatchVersion: (0, smithy_client_1.expectString)(output.EnginePatchVersion),
3240
- EngineVersion: (0, smithy_client_1.expectString)(output.EngineVersion),
3241
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
3242
- MaintenanceWindow: (0, smithy_client_1.expectString)(output.MaintenanceWindow),
3243
- Name: (0, smithy_client_1.expectString)(output.Name),
3244
- NodeType: (0, smithy_client_1.expectString)(output.NodeType),
3245
- NumberOfShards: (0, smithy_client_1.expectInt32)(output.NumberOfShards),
3246
- ParameterGroupName: (0, smithy_client_1.expectString)(output.ParameterGroupName),
3247
- ParameterGroupStatus: (0, smithy_client_1.expectString)(output.ParameterGroupStatus),
3248
- PendingUpdates: output.PendingUpdates != null ? de_ClusterPendingUpdates(output.PendingUpdates, context) : undefined,
3249
- SecurityGroups: output.SecurityGroups != null ? de_SecurityGroupMembershipList(output.SecurityGroups, context) : undefined,
3250
- Shards: output.Shards != null ? de_ShardList(output.Shards, context) : undefined,
3251
- SnapshotRetentionLimit: (0, smithy_client_1.expectInt32)(output.SnapshotRetentionLimit),
3252
- SnapshotWindow: (0, smithy_client_1.expectString)(output.SnapshotWindow),
3253
- SnsTopicArn: (0, smithy_client_1.expectString)(output.SnsTopicArn),
3254
- SnsTopicStatus: (0, smithy_client_1.expectString)(output.SnsTopicStatus),
3255
- Status: (0, smithy_client_1.expectString)(output.Status),
3256
- SubnetGroupName: (0, smithy_client_1.expectString)(output.SubnetGroupName),
3257
- TLSEnabled: (0, smithy_client_1.expectBoolean)(output.TLSEnabled),
3258
- };
3259
- };
3260
- const de_ClusterAlreadyExistsFault = (output, context) => {
3261
- return {
3262
- message: (0, smithy_client_1.expectString)(output.message),
3263
- };
3264
- };
3265
- const de_ClusterConfiguration = (output, context) => {
3266
- return {
3267
- Description: (0, smithy_client_1.expectString)(output.Description),
3268
- EngineVersion: (0, smithy_client_1.expectString)(output.EngineVersion),
3269
- MaintenanceWindow: (0, smithy_client_1.expectString)(output.MaintenanceWindow),
3270
- Name: (0, smithy_client_1.expectString)(output.Name),
3271
- NodeType: (0, smithy_client_1.expectString)(output.NodeType),
3272
- NumShards: (0, smithy_client_1.expectInt32)(output.NumShards),
3273
- ParameterGroupName: (0, smithy_client_1.expectString)(output.ParameterGroupName),
3274
- Port: (0, smithy_client_1.expectInt32)(output.Port),
3275
- Shards: output.Shards != null ? de_ShardDetails(output.Shards, context) : undefined,
3276
- SnapshotRetentionLimit: (0, smithy_client_1.expectInt32)(output.SnapshotRetentionLimit),
3277
- SnapshotWindow: (0, smithy_client_1.expectString)(output.SnapshotWindow),
3278
- SubnetGroupName: (0, smithy_client_1.expectString)(output.SubnetGroupName),
3279
- TopicArn: (0, smithy_client_1.expectString)(output.TopicArn),
3280
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
3281
- };
3282
- };
3283
- const de_ClusterList = (output, context) => {
3284
- const retVal = (output || [])
3285
- .filter((e) => e != null)
3286
- .map((entry) => {
3287
- if (entry === null) {
3288
- return null;
3289
- }
3290
- return de_Cluster(entry, context);
3291
- });
3292
- return retVal;
3293
- };
3294
- const de_ClusterNotFoundFault = (output, context) => {
3295
- return {
3296
- message: (0, smithy_client_1.expectString)(output.message),
3297
- };
3298
- };
3299
- const de_ClusterPendingUpdates = (output, context) => {
3300
- return {
3301
- ACLs: output.ACLs != null ? de_ACLsUpdateStatus(output.ACLs, context) : undefined,
3302
- Resharding: output.Resharding != null ? de_ReshardingStatus(output.Resharding, context) : undefined,
3303
- ServiceUpdates: output.ServiceUpdates != null ? de_PendingModifiedServiceUpdateList(output.ServiceUpdates, context) : undefined,
3304
- };
3305
- };
3306
- const de_ClusterQuotaForCustomerExceededFault = (output, context) => {
3307
- return {
3308
- message: (0, smithy_client_1.expectString)(output.message),
3309
- };
3310
- };
3311
- const de_CopySnapshotResponse = (output, context) => {
3312
- return {
3313
- Snapshot: output.Snapshot != null ? de_Snapshot(output.Snapshot, context) : undefined,
3314
- };
3315
- };
3316
- const de_CreateACLResponse = (output, context) => {
3317
- return {
3318
- ACL: output.ACL != null ? de_ACL(output.ACL, context) : undefined,
3319
- };
3320
- };
3321
- const de_CreateClusterResponse = (output, context) => {
3322
- return {
3323
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
3324
- };
3325
- };
3326
- const de_CreateParameterGroupResponse = (output, context) => {
3327
- return {
3328
- ParameterGroup: output.ParameterGroup != null ? de_ParameterGroup(output.ParameterGroup, context) : undefined,
3329
- };
3330
- };
3331
- const de_CreateSnapshotResponse = (output, context) => {
3332
- return {
3333
- Snapshot: output.Snapshot != null ? de_Snapshot(output.Snapshot, context) : undefined,
3334
- };
3335
- };
3336
- const de_CreateSubnetGroupResponse = (output, context) => {
3337
- return {
3338
- SubnetGroup: output.SubnetGroup != null ? de_SubnetGroup(output.SubnetGroup, context) : undefined,
3339
- };
3340
- };
3341
- const de_CreateUserResponse = (output, context) => {
3342
- return {
3343
- User: output.User != null ? de_User(output.User, context) : undefined,
3344
- };
3345
- };
3346
- const de_DefaultUserRequired = (output, context) => {
3347
- return {
3348
- message: (0, smithy_client_1.expectString)(output.message),
3349
- };
3350
- };
3351
- const de_DeleteACLResponse = (output, context) => {
3352
- return {
3353
- ACL: output.ACL != null ? de_ACL(output.ACL, context) : undefined,
3354
- };
3355
- };
3356
- const de_DeleteClusterResponse = (output, context) => {
3357
- return {
3358
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
3359
- };
3360
- };
3361
- const de_DeleteParameterGroupResponse = (output, context) => {
3362
- return {
3363
- ParameterGroup: output.ParameterGroup != null ? de_ParameterGroup(output.ParameterGroup, context) : undefined,
3364
- };
3365
- };
3366
- const de_DeleteSnapshotResponse = (output, context) => {
3367
- return {
3368
- Snapshot: output.Snapshot != null ? de_Snapshot(output.Snapshot, context) : undefined,
3369
- };
3370
- };
3371
- const de_DeleteSubnetGroupResponse = (output, context) => {
3372
- return {
3373
- SubnetGroup: output.SubnetGroup != null ? de_SubnetGroup(output.SubnetGroup, context) : undefined,
3374
- };
3375
- };
3376
- const de_DeleteUserResponse = (output, context) => {
3377
- return {
3378
- User: output.User != null ? de_User(output.User, context) : undefined,
3379
- };
3380
- };
3381
- const de_DescribeACLsResponse = (output, context) => {
3382
- return {
3383
- ACLs: output.ACLs != null ? de_ACLList(output.ACLs, context) : undefined,
3384
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3385
- };
3386
- };
3387
- const de_DescribeClustersResponse = (output, context) => {
3388
- return {
3389
- Clusters: output.Clusters != null ? de_ClusterList(output.Clusters, context) : undefined,
3390
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3391
- };
3392
- };
3393
- const de_DescribeEngineVersionsResponse = (output, context) => {
3394
- return {
3395
- EngineVersions: output.EngineVersions != null ? de_EngineVersionInfoList(output.EngineVersions, context) : undefined,
3396
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3397
- };
3398
- };
3399
- const de_DescribeEventsResponse = (output, context) => {
3400
- return {
3401
- Events: output.Events != null ? de_EventList(output.Events, context) : undefined,
3402
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3403
- };
3404
- };
3405
- const de_DescribeParameterGroupsResponse = (output, context) => {
3406
- return {
3407
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3408
- ParameterGroups: output.ParameterGroups != null ? de_ParameterGroupList(output.ParameterGroups, context) : undefined,
3409
- };
3410
- };
3411
- const de_DescribeParametersResponse = (output, context) => {
3412
- return {
3413
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3414
- Parameters: output.Parameters != null ? de_ParametersList(output.Parameters, context) : undefined,
3415
- };
3416
- };
3417
- const de_DescribeReservedNodesOfferingsResponse = (output, context) => {
3418
- return {
3419
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3420
- ReservedNodesOfferings: output.ReservedNodesOfferings != null
3421
- ? de_ReservedNodesOfferingList(output.ReservedNodesOfferings, context)
3422
- : undefined,
3423
- };
3424
- };
3425
- const de_DescribeReservedNodesResponse = (output, context) => {
3426
- return {
3427
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3428
- ReservedNodes: output.ReservedNodes != null ? de_ReservedNodeList(output.ReservedNodes, context) : undefined,
3429
- };
3430
- };
3431
- const de_DescribeServiceUpdatesResponse = (output, context) => {
3432
- return {
3433
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3434
- ServiceUpdates: output.ServiceUpdates != null ? de_ServiceUpdateList(output.ServiceUpdates, context) : undefined,
3435
- };
3436
- };
3437
- const de_DescribeSnapshotsResponse = (output, context) => {
3438
- return {
3439
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3440
- Snapshots: output.Snapshots != null ? de_SnapshotList(output.Snapshots, context) : undefined,
3441
- };
3442
- };
3443
- const de_DescribeSubnetGroupsResponse = (output, context) => {
3444
- return {
3445
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3446
- SubnetGroups: output.SubnetGroups != null ? de_SubnetGroupList(output.SubnetGroups, context) : undefined,
3447
- };
3448
- };
3449
- const de_DescribeUsersResponse = (output, context) => {
3450
- return {
3451
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3452
- Users: output.Users != null ? de_UserList(output.Users, context) : undefined,
3453
- };
3454
- };
3455
- const de_DuplicateUserNameFault = (output, context) => {
3456
- return {
3457
- message: (0, smithy_client_1.expectString)(output.message),
3458
- };
3459
- };
3460
- const de_Endpoint = (output, context) => {
3461
- return {
3462
- Address: (0, smithy_client_1.expectString)(output.Address),
3463
- Port: (0, smithy_client_1.expectInt32)(output.Port),
3464
- };
3465
- };
3466
- const de_EngineVersionInfo = (output, context) => {
3467
- return {
3468
- EnginePatchVersion: (0, smithy_client_1.expectString)(output.EnginePatchVersion),
3469
- EngineVersion: (0, smithy_client_1.expectString)(output.EngineVersion),
3470
- ParameterGroupFamily: (0, smithy_client_1.expectString)(output.ParameterGroupFamily),
3471
- };
3472
- };
3473
- const de_EngineVersionInfoList = (output, context) => {
3474
- const retVal = (output || [])
3475
- .filter((e) => e != null)
3476
- .map((entry) => {
3477
- if (entry === null) {
3478
- return null;
3479
- }
3480
- return de_EngineVersionInfo(entry, context);
3481
- });
3482
- return retVal;
3483
- };
3484
- const de_Event = (output, context) => {
3485
- return {
3486
- Date: output.Date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date))) : undefined,
3487
- Message: (0, smithy_client_1.expectString)(output.Message),
3488
- SourceName: (0, smithy_client_1.expectString)(output.SourceName),
3489
- SourceType: (0, smithy_client_1.expectString)(output.SourceType),
3490
- };
3491
- };
3492
- const de_EventList = (output, context) => {
3493
- const retVal = (output || [])
3494
- .filter((e) => e != null)
3495
- .map((entry) => {
3496
- if (entry === null) {
3497
- return null;
3498
- }
3499
- return de_Event(entry, context);
3500
- });
3501
- return retVal;
3502
- };
3503
- const de_FailoverShardResponse = (output, context) => {
3504
- return {
3505
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
3506
- };
3507
- };
3508
- const de_InsufficientClusterCapacityFault = (output, context) => {
3509
- return {
3510
- message: (0, smithy_client_1.expectString)(output.message),
3511
- };
3512
- };
3513
- const de_InvalidACLStateFault = (output, context) => {
3514
- return {
3515
- message: (0, smithy_client_1.expectString)(output.message),
3516
- };
3517
- };
3518
- const de_InvalidARNFault = (output, context) => {
3519
- return {
3520
- message: (0, smithy_client_1.expectString)(output.message),
3521
- };
3522
- };
3523
- const de_InvalidClusterStateFault = (output, context) => {
3524
- return {
3525
- message: (0, smithy_client_1.expectString)(output.message),
3526
- };
3527
- };
3528
- const de_InvalidCredentialsException = (output, context) => {
3529
- return {
3530
- message: (0, smithy_client_1.expectString)(output.message),
3531
- };
3532
- };
3533
- const de_InvalidKMSKeyFault = (output, context) => {
3534
- return {
3535
- message: (0, smithy_client_1.expectString)(output.message),
3536
- };
3537
- };
3538
- const de_InvalidNodeStateFault = (output, context) => {
3539
- return {
3540
- message: (0, smithy_client_1.expectString)(output.message),
3541
- };
3542
- };
3543
- const de_InvalidParameterCombinationException = (output, context) => {
3544
- return {
3545
- message: (0, smithy_client_1.expectString)(output.message),
3546
- };
3547
- };
3548
- const de_InvalidParameterGroupStateFault = (output, context) => {
3549
- return {
3550
- message: (0, smithy_client_1.expectString)(output.message),
3551
- };
3552
- };
3553
- const de_InvalidParameterValueException = (output, context) => {
3554
- return {
3555
- message: (0, smithy_client_1.expectString)(output.message),
3556
- };
3557
- };
3558
- const de_InvalidSnapshotStateFault = (output, context) => {
3559
- return {
3560
- message: (0, smithy_client_1.expectString)(output.message),
3561
- };
3562
- };
3563
- const de_InvalidSubnet = (output, context) => {
3564
- return {
3565
- message: (0, smithy_client_1.expectString)(output.message),
3566
- };
3567
- };
3568
- const de_InvalidUserStateFault = (output, context) => {
3569
- return {
3570
- message: (0, smithy_client_1.expectString)(output.message),
3571
- };
3572
- };
3573
- const de_InvalidVPCNetworkStateFault = (output, context) => {
3574
- return {
3575
- message: (0, smithy_client_1.expectString)(output.message),
3576
- };
3577
- };
3578
- const de_ListAllowedNodeTypeUpdatesResponse = (output, context) => {
3579
- return {
3580
- ScaleDownNodeTypes: output.ScaleDownNodeTypes != null ? de_NodeTypeList(output.ScaleDownNodeTypes, context) : undefined,
3581
- ScaleUpNodeTypes: output.ScaleUpNodeTypes != null ? de_NodeTypeList(output.ScaleUpNodeTypes, context) : undefined,
3582
- };
3583
- };
3584
- const de_ListTagsResponse = (output, context) => {
3585
- return {
3586
- TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
3587
- };
3588
- };
3589
- const de_Node = (output, context) => {
3590
- return {
3591
- AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
3592
- CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime))) : undefined,
3593
- Endpoint: output.Endpoint != null ? de_Endpoint(output.Endpoint, context) : undefined,
3594
- Name: (0, smithy_client_1.expectString)(output.Name),
3595
- Status: (0, smithy_client_1.expectString)(output.Status),
3596
- };
3597
- };
3598
- const de_NodeList = (output, context) => {
3599
- const retVal = (output || [])
3600
- .filter((e) => e != null)
3601
- .map((entry) => {
3602
- if (entry === null) {
3603
- return null;
3604
- }
3605
- return de_Node(entry, context);
3606
- });
3607
- return retVal;
3608
- };
3609
- const de_NodeQuotaForClusterExceededFault = (output, context) => {
3610
- return {
3611
- message: (0, smithy_client_1.expectString)(output.message),
3612
- };
3613
- };
3614
- const de_NodeQuotaForCustomerExceededFault = (output, context) => {
3615
- return {
3616
- message: (0, smithy_client_1.expectString)(output.message),
3617
- };
3618
- };
3619
- const de_NodeTypeList = (output, context) => {
3620
- const retVal = (output || [])
3621
- .filter((e) => e != null)
3622
- .map((entry) => {
3623
- if (entry === null) {
3624
- return null;
3625
- }
3626
- return (0, smithy_client_1.expectString)(entry);
3627
- });
3628
- return retVal;
3629
- };
3630
- const de_NoOperationFault = (output, context) => {
3631
- return {
3632
- message: (0, smithy_client_1.expectString)(output.message),
3633
- };
3634
- };
3635
- const de_Parameter = (output, context) => {
3636
- return {
3637
- AllowedValues: (0, smithy_client_1.expectString)(output.AllowedValues),
3638
- DataType: (0, smithy_client_1.expectString)(output.DataType),
3639
- Description: (0, smithy_client_1.expectString)(output.Description),
3640
- MinimumEngineVersion: (0, smithy_client_1.expectString)(output.MinimumEngineVersion),
3641
- Name: (0, smithy_client_1.expectString)(output.Name),
3642
- Value: (0, smithy_client_1.expectString)(output.Value),
3643
- };
3644
- };
3645
- const de_ParameterGroup = (output, context) => {
3646
- return {
3647
- ARN: (0, smithy_client_1.expectString)(output.ARN),
3648
- Description: (0, smithy_client_1.expectString)(output.Description),
3649
- Family: (0, smithy_client_1.expectString)(output.Family),
3650
- Name: (0, smithy_client_1.expectString)(output.Name),
3651
- };
3652
- };
3653
- const de_ParameterGroupAlreadyExistsFault = (output, context) => {
3654
- return {
3655
- message: (0, smithy_client_1.expectString)(output.message),
3656
- };
3657
- };
3658
- const de_ParameterGroupList = (output, context) => {
3659
- const retVal = (output || [])
3660
- .filter((e) => e != null)
3661
- .map((entry) => {
3662
- if (entry === null) {
3663
- return null;
3664
- }
3665
- return de_ParameterGroup(entry, context);
3666
- });
3667
- return retVal;
3668
- };
3669
- const de_ParameterGroupNotFoundFault = (output, context) => {
3670
- return {
3671
- message: (0, smithy_client_1.expectString)(output.message),
3672
- };
3673
- };
3674
- const de_ParameterGroupQuotaExceededFault = (output, context) => {
3675
- return {
3676
- message: (0, smithy_client_1.expectString)(output.message),
3677
- };
3678
- };
3679
- const de_ParametersList = (output, context) => {
3680
- const retVal = (output || [])
3681
- .filter((e) => e != null)
3682
- .map((entry) => {
3683
- if (entry === null) {
3684
- return null;
3685
- }
3686
- return de_Parameter(entry, context);
3687
- });
3688
- return retVal;
3689
- };
3690
- const de_PendingModifiedServiceUpdate = (output, context) => {
3691
- return {
3692
- ServiceUpdateName: (0, smithy_client_1.expectString)(output.ServiceUpdateName),
3693
- Status: (0, smithy_client_1.expectString)(output.Status),
3694
- };
3695
- };
3696
- const de_PendingModifiedServiceUpdateList = (output, context) => {
3697
- const retVal = (output || [])
3698
- .filter((e) => e != null)
3699
- .map((entry) => {
3700
- if (entry === null) {
3701
- return null;
3702
- }
3703
- return de_PendingModifiedServiceUpdate(entry, context);
3704
- });
3705
- return retVal;
3706
- };
3707
- const de_PurchaseReservedNodesOfferingResponse = (output, context) => {
3708
- return {
3709
- ReservedNode: output.ReservedNode != null ? de_ReservedNode(output.ReservedNode, context) : undefined,
3710
- };
3711
- };
3712
- const de_RecurringCharge = (output, context) => {
3713
- return {
3714
- RecurringChargeAmount: (0, smithy_client_1.limitedParseDouble)(output.RecurringChargeAmount),
3715
- RecurringChargeFrequency: (0, smithy_client_1.expectString)(output.RecurringChargeFrequency),
3716
- };
3717
- };
3718
- const de_RecurringChargeList = (output, context) => {
3719
- const retVal = (output || [])
3720
- .filter((e) => e != null)
3721
- .map((entry) => {
3722
- if (entry === null) {
3723
- return null;
3724
- }
3725
- return de_RecurringCharge(entry, context);
3726
- });
3727
- return retVal;
3728
- };
3729
- const de_ReservedNode = (output, context) => {
3730
- return {
3731
- ARN: (0, smithy_client_1.expectString)(output.ARN),
3732
- Duration: (0, smithy_client_1.expectInt32)(output.Duration),
3733
- FixedPrice: (0, smithy_client_1.limitedParseDouble)(output.FixedPrice),
3734
- NodeCount: (0, smithy_client_1.expectInt32)(output.NodeCount),
3735
- NodeType: (0, smithy_client_1.expectString)(output.NodeType),
3736
- OfferingType: (0, smithy_client_1.expectString)(output.OfferingType),
3737
- RecurringCharges: output.RecurringCharges != null ? de_RecurringChargeList(output.RecurringCharges, context) : undefined,
3738
- ReservationId: (0, smithy_client_1.expectString)(output.ReservationId),
3739
- ReservedNodesOfferingId: (0, smithy_client_1.expectString)(output.ReservedNodesOfferingId),
3740
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3741
- State: (0, smithy_client_1.expectString)(output.State),
3742
- };
3743
- };
3744
- const de_ReservedNodeAlreadyExistsFault = (output, context) => {
3745
- return {
3746
- message: (0, smithy_client_1.expectString)(output.message),
3747
- };
3748
- };
3749
- const de_ReservedNodeList = (output, context) => {
3750
- const retVal = (output || [])
3751
- .filter((e) => e != null)
3752
- .map((entry) => {
3753
- if (entry === null) {
3754
- return null;
3755
- }
3756
- return de_ReservedNode(entry, context);
3757
- });
3758
- return retVal;
3759
- };
3760
- const de_ReservedNodeNotFoundFault = (output, context) => {
3761
- return {
3762
- message: (0, smithy_client_1.expectString)(output.message),
3763
- };
3764
- };
3765
- const de_ReservedNodeQuotaExceededFault = (output, context) => {
3766
- return {
3767
- message: (0, smithy_client_1.expectString)(output.message),
3768
- };
3769
- };
3770
- const de_ReservedNodesOffering = (output, context) => {
3771
- return {
3772
- Duration: (0, smithy_client_1.expectInt32)(output.Duration),
3773
- FixedPrice: (0, smithy_client_1.limitedParseDouble)(output.FixedPrice),
3774
- NodeType: (0, smithy_client_1.expectString)(output.NodeType),
3775
- OfferingType: (0, smithy_client_1.expectString)(output.OfferingType),
3776
- RecurringCharges: output.RecurringCharges != null ? de_RecurringChargeList(output.RecurringCharges, context) : undefined,
3777
- ReservedNodesOfferingId: (0, smithy_client_1.expectString)(output.ReservedNodesOfferingId),
3778
- };
3779
- };
3780
- const de_ReservedNodesOfferingList = (output, context) => {
3781
- const retVal = (output || [])
3782
- .filter((e) => e != null)
3783
- .map((entry) => {
3784
- if (entry === null) {
3785
- return null;
3786
- }
3787
- return de_ReservedNodesOffering(entry, context);
3788
- });
3789
- return retVal;
3790
- };
3791
- const de_ReservedNodesOfferingNotFoundFault = (output, context) => {
3792
- return {
3793
- message: (0, smithy_client_1.expectString)(output.message),
3794
- };
3795
- };
3796
- const de_ResetParameterGroupResponse = (output, context) => {
3797
- return {
3798
- ParameterGroup: output.ParameterGroup != null ? de_ParameterGroup(output.ParameterGroup, context) : undefined,
3799
- };
3800
- };
3801
- const de_ReshardingStatus = (output, context) => {
3802
- return {
3803
- SlotMigration: output.SlotMigration != null ? de_SlotMigration(output.SlotMigration, context) : undefined,
3804
- };
3805
- };
3806
- const de_SecurityGroupMembership = (output, context) => {
3807
- return {
3808
- SecurityGroupId: (0, smithy_client_1.expectString)(output.SecurityGroupId),
3809
- Status: (0, smithy_client_1.expectString)(output.Status),
3810
- };
3811
- };
3812
- const de_SecurityGroupMembershipList = (output, context) => {
3813
- const retVal = (output || [])
3814
- .filter((e) => e != null)
3815
- .map((entry) => {
3816
- if (entry === null) {
3817
- return null;
3818
- }
3819
- return de_SecurityGroupMembership(entry, context);
3820
- });
3821
- return retVal;
3822
- };
3823
- const de_ServiceLinkedRoleNotFoundFault = (output, context) => {
3824
- return {
3825
- message: (0, smithy_client_1.expectString)(output.message),
3826
- };
3827
- };
3828
- const de_ServiceUpdate = (output, context) => {
3829
- return {
3830
- AutoUpdateStartDate: output.AutoUpdateStartDate != null
3831
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AutoUpdateStartDate)))
3832
- : undefined,
3833
- ClusterName: (0, smithy_client_1.expectString)(output.ClusterName),
3834
- Description: (0, smithy_client_1.expectString)(output.Description),
3835
- NodesUpdated: (0, smithy_client_1.expectString)(output.NodesUpdated),
3836
- ReleaseDate: output.ReleaseDate != null
3837
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReleaseDate)))
3838
- : undefined,
3839
- ServiceUpdateName: (0, smithy_client_1.expectString)(output.ServiceUpdateName),
3840
- Status: (0, smithy_client_1.expectString)(output.Status),
3841
- Type: (0, smithy_client_1.expectString)(output.Type),
3842
- };
3843
- };
3844
- const de_ServiceUpdateList = (output, context) => {
3845
- const retVal = (output || [])
3846
- .filter((e) => e != null)
3847
- .map((entry) => {
3848
- if (entry === null) {
3849
- return null;
3850
- }
3851
- return de_ServiceUpdate(entry, context);
3852
- });
3853
- return retVal;
3854
- };
3855
- const de_ServiceUpdateNotFoundFault = (output, context) => {
3856
- return {
3857
- message: (0, smithy_client_1.expectString)(output.message),
3858
- };
2799
+ return retVal;
3859
2800
  };
3860
2801
  const de_Shard = (output, context) => {
3861
- return {
3862
- Name: (0, smithy_client_1.expectString)(output.Name),
3863
- Nodes: output.Nodes != null ? de_NodeList(output.Nodes, context) : undefined,
3864
- NumberOfNodes: (0, smithy_client_1.expectInt32)(output.NumberOfNodes),
3865
- Slots: (0, smithy_client_1.expectString)(output.Slots),
3866
- Status: (0, smithy_client_1.expectString)(output.Status),
3867
- };
3868
- };
3869
- const de_ShardConfiguration = (output, context) => {
3870
- return {
3871
- ReplicaCount: (0, smithy_client_1.expectInt32)(output.ReplicaCount),
3872
- Slots: (0, smithy_client_1.expectString)(output.Slots),
3873
- };
2802
+ return (0, smithy_client_1.take)(output, {
2803
+ Name: smithy_client_1.expectString,
2804
+ Nodes: (_) => de_NodeList(_, context),
2805
+ NumberOfNodes: smithy_client_1.expectInt32,
2806
+ Slots: smithy_client_1.expectString,
2807
+ Status: smithy_client_1.expectString,
2808
+ });
3874
2809
  };
3875
2810
  const de_ShardDetail = (output, context) => {
3876
- return {
3877
- Configuration: output.Configuration != null ? de_ShardConfiguration(output.Configuration, context) : undefined,
3878
- Name: (0, smithy_client_1.expectString)(output.Name),
3879
- Size: (0, smithy_client_1.expectString)(output.Size),
3880
- SnapshotCreationTime: output.SnapshotCreationTime != null
3881
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SnapshotCreationTime)))
3882
- : undefined,
3883
- };
2811
+ return (0, smithy_client_1.take)(output, {
2812
+ Configuration: smithy_client_1._json,
2813
+ Name: smithy_client_1.expectString,
2814
+ Size: smithy_client_1.expectString,
2815
+ SnapshotCreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2816
+ });
3884
2817
  };
3885
2818
  const de_ShardDetails = (output, context) => {
3886
2819
  const retVal = (output || [])
3887
2820
  .filter((e) => e != null)
3888
2821
  .map((entry) => {
3889
- if (entry === null) {
3890
- return null;
3891
- }
3892
2822
  return de_ShardDetail(entry, context);
3893
2823
  });
3894
2824
  return retVal;
@@ -3897,269 +2827,38 @@ const de_ShardList = (output, context) => {
3897
2827
  const retVal = (output || [])
3898
2828
  .filter((e) => e != null)
3899
2829
  .map((entry) => {
3900
- if (entry === null) {
3901
- return null;
3902
- }
3903
2830
  return de_Shard(entry, context);
3904
2831
  });
3905
2832
  return retVal;
3906
2833
  };
3907
- const de_ShardNotFoundFault = (output, context) => {
3908
- return {
3909
- message: (0, smithy_client_1.expectString)(output.message),
3910
- };
3911
- };
3912
- const de_ShardsPerClusterQuotaExceededFault = (output, context) => {
3913
- return {
3914
- message: (0, smithy_client_1.expectString)(output.message),
3915
- };
3916
- };
3917
2834
  const de_SlotMigration = (output, context) => {
3918
- return {
3919
- ProgressPercentage: (0, smithy_client_1.limitedParseDouble)(output.ProgressPercentage),
3920
- };
2835
+ return (0, smithy_client_1.take)(output, {
2836
+ ProgressPercentage: smithy_client_1.limitedParseDouble,
2837
+ });
3921
2838
  };
3922
2839
  const de_Snapshot = (output, context) => {
3923
- return {
3924
- ARN: (0, smithy_client_1.expectString)(output.ARN),
3925
- ClusterConfiguration: output.ClusterConfiguration != null ? de_ClusterConfiguration(output.ClusterConfiguration, context) : undefined,
3926
- DataTiering: (0, smithy_client_1.expectString)(output.DataTiering),
3927
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
3928
- Name: (0, smithy_client_1.expectString)(output.Name),
3929
- Source: (0, smithy_client_1.expectString)(output.Source),
3930
- Status: (0, smithy_client_1.expectString)(output.Status),
3931
- };
3932
- };
3933
- const de_SnapshotAlreadyExistsFault = (output, context) => {
3934
- return {
3935
- message: (0, smithy_client_1.expectString)(output.message),
3936
- };
2840
+ return (0, smithy_client_1.take)(output, {
2841
+ ARN: smithy_client_1.expectString,
2842
+ ClusterConfiguration: (_) => de_ClusterConfiguration(_, context),
2843
+ DataTiering: smithy_client_1.expectString,
2844
+ KmsKeyId: smithy_client_1.expectString,
2845
+ Name: smithy_client_1.expectString,
2846
+ Source: smithy_client_1.expectString,
2847
+ Status: smithy_client_1.expectString,
2848
+ });
3937
2849
  };
3938
2850
  const de_SnapshotList = (output, context) => {
3939
2851
  const retVal = (output || [])
3940
2852
  .filter((e) => e != null)
3941
2853
  .map((entry) => {
3942
- if (entry === null) {
3943
- return null;
3944
- }
3945
2854
  return de_Snapshot(entry, context);
3946
2855
  });
3947
2856
  return retVal;
3948
2857
  };
3949
- const de_SnapshotNotFoundFault = (output, context) => {
3950
- return {
3951
- message: (0, smithy_client_1.expectString)(output.message),
3952
- };
3953
- };
3954
- const de_SnapshotQuotaExceededFault = (output, context) => {
3955
- return {
3956
- message: (0, smithy_client_1.expectString)(output.message),
3957
- };
3958
- };
3959
- const de_Subnet = (output, context) => {
3960
- return {
3961
- AvailabilityZone: output.AvailabilityZone != null ? de_AvailabilityZone(output.AvailabilityZone, context) : undefined,
3962
- Identifier: (0, smithy_client_1.expectString)(output.Identifier),
3963
- };
3964
- };
3965
- const de_SubnetGroup = (output, context) => {
3966
- return {
3967
- ARN: (0, smithy_client_1.expectString)(output.ARN),
3968
- Description: (0, smithy_client_1.expectString)(output.Description),
3969
- Name: (0, smithy_client_1.expectString)(output.Name),
3970
- Subnets: output.Subnets != null ? de_SubnetList(output.Subnets, context) : undefined,
3971
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
3972
- };
3973
- };
3974
- const de_SubnetGroupAlreadyExistsFault = (output, context) => {
3975
- return {
3976
- message: (0, smithy_client_1.expectString)(output.message),
3977
- };
3978
- };
3979
- const de_SubnetGroupInUseFault = (output, context) => {
3980
- return {
3981
- message: (0, smithy_client_1.expectString)(output.message),
3982
- };
3983
- };
3984
- const de_SubnetGroupList = (output, context) => {
3985
- const retVal = (output || [])
3986
- .filter((e) => e != null)
3987
- .map((entry) => {
3988
- if (entry === null) {
3989
- return null;
3990
- }
3991
- return de_SubnetGroup(entry, context);
3992
- });
3993
- return retVal;
3994
- };
3995
- const de_SubnetGroupNotFoundFault = (output, context) => {
3996
- return {
3997
- message: (0, smithy_client_1.expectString)(output.message),
3998
- };
3999
- };
4000
- const de_SubnetGroupQuotaExceededFault = (output, context) => {
4001
- return {
4002
- message: (0, smithy_client_1.expectString)(output.message),
4003
- };
4004
- };
4005
- const de_SubnetInUse = (output, context) => {
4006
- return {
4007
- message: (0, smithy_client_1.expectString)(output.message),
4008
- };
4009
- };
4010
- const de_SubnetList = (output, context) => {
4011
- const retVal = (output || [])
4012
- .filter((e) => e != null)
4013
- .map((entry) => {
4014
- if (entry === null) {
4015
- return null;
4016
- }
4017
- return de_Subnet(entry, context);
4018
- });
4019
- return retVal;
4020
- };
4021
- const de_SubnetNotAllowedFault = (output, context) => {
4022
- return {
4023
- message: (0, smithy_client_1.expectString)(output.message),
4024
- };
4025
- };
4026
- const de_SubnetQuotaExceededFault = (output, context) => {
4027
- return {
4028
- message: (0, smithy_client_1.expectString)(output.message),
4029
- };
4030
- };
4031
- const de_Tag = (output, context) => {
4032
- return {
4033
- Key: (0, smithy_client_1.expectString)(output.Key),
4034
- Value: (0, smithy_client_1.expectString)(output.Value),
4035
- };
4036
- };
4037
- const de_TagList = (output, context) => {
4038
- const retVal = (output || [])
4039
- .filter((e) => e != null)
4040
- .map((entry) => {
4041
- if (entry === null) {
4042
- return null;
4043
- }
4044
- return de_Tag(entry, context);
4045
- });
4046
- return retVal;
4047
- };
4048
- const de_TagNotFoundFault = (output, context) => {
4049
- return {
4050
- message: (0, smithy_client_1.expectString)(output.message),
4051
- };
4052
- };
4053
- const de_TagQuotaPerResourceExceeded = (output, context) => {
4054
- return {
4055
- message: (0, smithy_client_1.expectString)(output.message),
4056
- };
4057
- };
4058
- const de_TagResourceResponse = (output, context) => {
4059
- return {
4060
- TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
4061
- };
4062
- };
4063
- const de_TestFailoverNotAvailableFault = (output, context) => {
4064
- return {
4065
- message: (0, smithy_client_1.expectString)(output.message),
4066
- };
4067
- };
4068
- const de_UnprocessedCluster = (output, context) => {
4069
- return {
4070
- ClusterName: (0, smithy_client_1.expectString)(output.ClusterName),
4071
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4072
- ErrorType: (0, smithy_client_1.expectString)(output.ErrorType),
4073
- };
4074
- };
4075
- const de_UnprocessedClusterList = (output, context) => {
4076
- const retVal = (output || [])
4077
- .filter((e) => e != null)
4078
- .map((entry) => {
4079
- if (entry === null) {
4080
- return null;
4081
- }
4082
- return de_UnprocessedCluster(entry, context);
4083
- });
4084
- return retVal;
4085
- };
4086
- const de_UntagResourceResponse = (output, context) => {
4087
- return {
4088
- TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
4089
- };
4090
- };
4091
- const de_UpdateACLResponse = (output, context) => {
4092
- return {
4093
- ACL: output.ACL != null ? de_ACL(output.ACL, context) : undefined,
4094
- };
4095
- };
4096
2858
  const de_UpdateClusterResponse = (output, context) => {
4097
- return {
4098
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
4099
- };
4100
- };
4101
- const de_UpdateParameterGroupResponse = (output, context) => {
4102
- return {
4103
- ParameterGroup: output.ParameterGroup != null ? de_ParameterGroup(output.ParameterGroup, context) : undefined,
4104
- };
4105
- };
4106
- const de_UpdateSubnetGroupResponse = (output, context) => {
4107
- return {
4108
- SubnetGroup: output.SubnetGroup != null ? de_SubnetGroup(output.SubnetGroup, context) : undefined,
4109
- };
4110
- };
4111
- const de_UpdateUserResponse = (output, context) => {
4112
- return {
4113
- User: output.User != null ? de_User(output.User, context) : undefined,
4114
- };
4115
- };
4116
- const de_User = (output, context) => {
4117
- return {
4118
- ACLNames: output.ACLNames != null ? de_ACLNameList(output.ACLNames, context) : undefined,
4119
- ARN: (0, smithy_client_1.expectString)(output.ARN),
4120
- AccessString: (0, smithy_client_1.expectString)(output.AccessString),
4121
- Authentication: output.Authentication != null ? de_Authentication(output.Authentication, context) : undefined,
4122
- MinimumEngineVersion: (0, smithy_client_1.expectString)(output.MinimumEngineVersion),
4123
- Name: (0, smithy_client_1.expectString)(output.Name),
4124
- Status: (0, smithy_client_1.expectString)(output.Status),
4125
- };
4126
- };
4127
- const de_UserAlreadyExistsFault = (output, context) => {
4128
- return {
4129
- message: (0, smithy_client_1.expectString)(output.message),
4130
- };
4131
- };
4132
- const de_UserList = (output, context) => {
4133
- const retVal = (output || [])
4134
- .filter((e) => e != null)
4135
- .map((entry) => {
4136
- if (entry === null) {
4137
- return null;
4138
- }
4139
- return de_User(entry, context);
4140
- });
4141
- return retVal;
4142
- };
4143
- const de_UserNameList = (output, context) => {
4144
- const retVal = (output || [])
4145
- .filter((e) => e != null)
4146
- .map((entry) => {
4147
- if (entry === null) {
4148
- return null;
4149
- }
4150
- return (0, smithy_client_1.expectString)(entry);
2859
+ return (0, smithy_client_1.take)(output, {
2860
+ Cluster: (_) => de_Cluster(_, context),
4151
2861
  });
4152
- return retVal;
4153
- };
4154
- const de_UserNotFoundFault = (output, context) => {
4155
- return {
4156
- message: (0, smithy_client_1.expectString)(output.message),
4157
- };
4158
- };
4159
- const de_UserQuotaExceededFault = (output, context) => {
4160
- return {
4161
- message: (0, smithy_client_1.expectString)(output.message),
4162
- };
4163
2862
  };
4164
2863
  const deserializeMetadata = (output) => ({
4165
2864
  httpStatusCode: output.statusCode,
@@ -4174,6 +2873,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
4174
2873
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4175
2874
  };
4176
2875
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2876
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(MemoryDBServiceException_1.MemoryDBServiceException);
4177
2877
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4178
2878
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4179
2879
  const contents = {
@@ -4192,6 +2892,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
4192
2892
  }
4193
2893
  return new protocol_http_1.HttpRequest(contents);
4194
2894
  };
2895
+ function sharedHeaders(operation) {
2896
+ return {
2897
+ "content-type": "application/x-amz-json-1.1",
2898
+ "x-amz-target": `AmazonMemoryDB.${operation}`,
2899
+ };
2900
+ }
4195
2901
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4196
2902
  if (encoded.length) {
4197
2903
  return JSON.parse(encoded);