@aws-sdk/client-redshift 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.
@@ -1,13 +1,11 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { AccessToClusterDeniedFault, AccessToSnapshotDeniedFault, AuthenticationProfileAlreadyExistsFault, AuthenticationProfileNotFoundFault, AuthenticationProfileQuotaExceededFault, AuthorizationAlreadyExistsFault, AuthorizationNotFoundFault, AuthorizationQuotaExceededFault, BatchDeleteRequestSizeExceededFault, BatchModifyClusterSnapshotsLimitExceededFault, BucketNotFoundFault, ClusterAlreadyExistsFault, ClusterNotFoundFault, ClusterOnLatestRevisionFault, ClusterParameterGroupAlreadyExistsFault, ClusterParameterGroupNotFoundFault, ClusterParameterGroupQuotaExceededFault, ClusterQuotaExceededFault, ClusterSecurityGroupAlreadyExistsFault, ClusterSecurityGroupNotFoundFault, ClusterSecurityGroupQuotaExceededFault, ClusterSnapshotAlreadyExistsFault, ClusterSnapshotNotFoundFault, ClusterSnapshotQuotaExceededFault, ClusterSubnetGroupAlreadyExistsFault, ClusterSubnetGroupNotFoundFault, ClusterSubnetGroupQuotaExceededFault, ClusterSubnetQuotaExceededFault, CopyToRegionDisabledFault, DependentServiceRequestThrottlingFault, DependentServiceUnavailableFault, EndpointAlreadyExistsFault, EndpointAuthorizationAlreadyExistsFault, EndpointAuthorizationsPerClusterLimitExceededFault, EndpointNotFoundFault, EndpointsPerAuthorizationLimitExceededFault, EndpointsPerClusterLimitExceededFault, EventSubscriptionQuotaExceededFault, HsmClientCertificateAlreadyExistsFault, HsmClientCertificateNotFoundFault, HsmClientCertificateQuotaExceededFault, HsmConfigurationAlreadyExistsFault, HsmConfigurationNotFoundFault, HsmConfigurationQuotaExceededFault, InsufficientClusterCapacityFault, InvalidAuthenticationProfileRequestFault, InvalidAuthorizationStateFault, InvalidClusterParameterGroupStateFault, InvalidClusterSecurityGroupStateFault, InvalidClusterSnapshotScheduleStateFault, InvalidClusterSnapshotStateFault, InvalidClusterStateFault, InvalidClusterSubnetGroupStateFault, InvalidClusterSubnetStateFault, InvalidClusterTrackFault, InvalidDataShareFault, InvalidElasticIpFault, InvalidEndpointStateFault, InvalidHsmClientCertificateStateFault, InvalidHsmConfigurationStateFault, InvalidNamespaceFault, InvalidReservedNodeStateFault, InvalidRetentionPeriodFault, InvalidScheduledActionFault, InvalidScheduleFault, InvalidSnapshotCopyGrantStateFault, InvalidSubnet, InvalidSubscriptionStateFault, InvalidTagFault, InvalidUsageLimitFault, InvalidVPCNetworkStateFault, LimitExceededFault, NumberOfNodesPerClusterLimitExceededFault, NumberOfNodesQuotaExceededFault, PartnerNotFoundFault, ReservedNodeAlreadyExistsFault, ReservedNodeAlreadyMigratedFault, ReservedNodeNotFoundFault, ReservedNodeOfferingNotFoundFault, ResizeNotFoundFault, ResourceNotFoundFault, ScheduledActionAlreadyExistsFault, ScheduledActionNotFoundFault, ScheduledActionQuotaExceededFault, ScheduledActionTypeUnsupportedFault, ScheduleDefinitionTypeUnsupportedFault, SnapshotCopyGrantAlreadyExistsFault, SnapshotCopyGrantNotFoundFault, SnapshotCopyGrantQuotaExceededFault, SnapshotScheduleAlreadyExistsFault, SnapshotScheduleNotFoundFault, SnapshotScheduleQuotaExceededFault, SNSInvalidTopicFault, SNSNoAuthorizationFault, SNSTopicArnNotFoundFault, SourceNotFoundFault, SubscriptionAlreadyExistFault, SubscriptionCategoryNotFoundFault, SubscriptionEventIdNotFoundFault, SubscriptionNotFoundFault, SubscriptionSeverityNotFoundFault, TagLimitExceededFault, UnauthorizedOperation, UnauthorizedPartnerIntegrationFault, UnsupportedOperationFault, UsageLimitAlreadyExistsFault, UsageLimitNotFoundFault, } from "../models/models_0";
5
5
  import { EndpointAuthorizationNotFoundFault, IncompatibleOrderableOptions, InProgressTableRestoreQuotaExceededFault, InsufficientS3BucketPolicyFault, InvalidRestoreFault, InvalidS3BucketNameFault, InvalidS3KeyPrefixFault, InvalidTableRestoreArgumentFault, ReservedNodeExchangeNotFoundFault, ReservedNodeQuotaExceededFault, SnapshotCopyAlreadyDisabledFault, SnapshotCopyAlreadyEnabledFault, SnapshotCopyDisabledFault, SnapshotScheduleUpdateInProgressFault, SubnetAlreadyInUse, TableLimitExceededFault, TableRestoreNotFoundFault, UnknownSnapshotCopyRegionFault, UnsupportedOptionFault, } from "../models/models_1";
6
6
  import { RedshiftServiceException as __BaseException } from "../models/RedshiftServiceException";
7
7
  export const se_AcceptReservedNodeExchangeCommand = async (input, context) => {
8
- const headers = {
9
- "content-type": "application/x-www-form-urlencoded",
10
- };
8
+ const headers = SHARED_HEADERS;
11
9
  let body;
12
10
  body = buildFormUrlencodedString({
13
11
  ...se_AcceptReservedNodeExchangeInputMessage(input, context),
@@ -17,9 +15,7 @@ export const se_AcceptReservedNodeExchangeCommand = async (input, context) => {
17
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
16
  };
19
17
  export const se_AddPartnerCommand = async (input, context) => {
20
- const headers = {
21
- "content-type": "application/x-www-form-urlencoded",
22
- };
18
+ const headers = SHARED_HEADERS;
23
19
  let body;
24
20
  body = buildFormUrlencodedString({
25
21
  ...se_PartnerIntegrationInputMessage(input, context),
@@ -29,9 +25,7 @@ export const se_AddPartnerCommand = async (input, context) => {
29
25
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
26
  };
31
27
  export const se_AssociateDataShareConsumerCommand = async (input, context) => {
32
- const headers = {
33
- "content-type": "application/x-www-form-urlencoded",
34
- };
28
+ const headers = SHARED_HEADERS;
35
29
  let body;
36
30
  body = buildFormUrlencodedString({
37
31
  ...se_AssociateDataShareConsumerMessage(input, context),
@@ -41,9 +35,7 @@ export const se_AssociateDataShareConsumerCommand = async (input, context) => {
41
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
36
  };
43
37
  export const se_AuthorizeClusterSecurityGroupIngressCommand = async (input, context) => {
44
- const headers = {
45
- "content-type": "application/x-www-form-urlencoded",
46
- };
38
+ const headers = SHARED_HEADERS;
47
39
  let body;
48
40
  body = buildFormUrlencodedString({
49
41
  ...se_AuthorizeClusterSecurityGroupIngressMessage(input, context),
@@ -53,9 +45,7 @@ export const se_AuthorizeClusterSecurityGroupIngressCommand = async (input, cont
53
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
46
  };
55
47
  export const se_AuthorizeDataShareCommand = async (input, context) => {
56
- const headers = {
57
- "content-type": "application/x-www-form-urlencoded",
58
- };
48
+ const headers = SHARED_HEADERS;
59
49
  let body;
60
50
  body = buildFormUrlencodedString({
61
51
  ...se_AuthorizeDataShareMessage(input, context),
@@ -65,9 +55,7 @@ export const se_AuthorizeDataShareCommand = async (input, context) => {
65
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
56
  };
67
57
  export const se_AuthorizeEndpointAccessCommand = async (input, context) => {
68
- const headers = {
69
- "content-type": "application/x-www-form-urlencoded",
70
- };
58
+ const headers = SHARED_HEADERS;
71
59
  let body;
72
60
  body = buildFormUrlencodedString({
73
61
  ...se_AuthorizeEndpointAccessMessage(input, context),
@@ -77,9 +65,7 @@ export const se_AuthorizeEndpointAccessCommand = async (input, context) => {
77
65
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
66
  };
79
67
  export const se_AuthorizeSnapshotAccessCommand = async (input, context) => {
80
- const headers = {
81
- "content-type": "application/x-www-form-urlencoded",
82
- };
68
+ const headers = SHARED_HEADERS;
83
69
  let body;
84
70
  body = buildFormUrlencodedString({
85
71
  ...se_AuthorizeSnapshotAccessMessage(input, context),
@@ -89,9 +75,7 @@ export const se_AuthorizeSnapshotAccessCommand = async (input, context) => {
89
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
76
  };
91
77
  export const se_BatchDeleteClusterSnapshotsCommand = async (input, context) => {
92
- const headers = {
93
- "content-type": "application/x-www-form-urlencoded",
94
- };
78
+ const headers = SHARED_HEADERS;
95
79
  let body;
96
80
  body = buildFormUrlencodedString({
97
81
  ...se_BatchDeleteClusterSnapshotsRequest(input, context),
@@ -101,9 +85,7 @@ export const se_BatchDeleteClusterSnapshotsCommand = async (input, context) => {
101
85
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
86
  };
103
87
  export const se_BatchModifyClusterSnapshotsCommand = async (input, context) => {
104
- const headers = {
105
- "content-type": "application/x-www-form-urlencoded",
106
- };
88
+ const headers = SHARED_HEADERS;
107
89
  let body;
108
90
  body = buildFormUrlencodedString({
109
91
  ...se_BatchModifyClusterSnapshotsMessage(input, context),
@@ -113,9 +95,7 @@ export const se_BatchModifyClusterSnapshotsCommand = async (input, context) => {
113
95
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
96
  };
115
97
  export const se_CancelResizeCommand = async (input, context) => {
116
- const headers = {
117
- "content-type": "application/x-www-form-urlencoded",
118
- };
98
+ const headers = SHARED_HEADERS;
119
99
  let body;
120
100
  body = buildFormUrlencodedString({
121
101
  ...se_CancelResizeMessage(input, context),
@@ -125,9 +105,7 @@ export const se_CancelResizeCommand = async (input, context) => {
125
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
106
  };
127
107
  export const se_CopyClusterSnapshotCommand = async (input, context) => {
128
- const headers = {
129
- "content-type": "application/x-www-form-urlencoded",
130
- };
108
+ const headers = SHARED_HEADERS;
131
109
  let body;
132
110
  body = buildFormUrlencodedString({
133
111
  ...se_CopyClusterSnapshotMessage(input, context),
@@ -137,9 +115,7 @@ export const se_CopyClusterSnapshotCommand = async (input, context) => {
137
115
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
116
  };
139
117
  export const se_CreateAuthenticationProfileCommand = async (input, context) => {
140
- const headers = {
141
- "content-type": "application/x-www-form-urlencoded",
142
- };
118
+ const headers = SHARED_HEADERS;
143
119
  let body;
144
120
  body = buildFormUrlencodedString({
145
121
  ...se_CreateAuthenticationProfileMessage(input, context),
@@ -149,9 +125,7 @@ export const se_CreateAuthenticationProfileCommand = async (input, context) => {
149
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
126
  };
151
127
  export const se_CreateClusterCommand = async (input, context) => {
152
- const headers = {
153
- "content-type": "application/x-www-form-urlencoded",
154
- };
128
+ const headers = SHARED_HEADERS;
155
129
  let body;
156
130
  body = buildFormUrlencodedString({
157
131
  ...se_CreateClusterMessage(input, context),
@@ -161,9 +135,7 @@ export const se_CreateClusterCommand = async (input, context) => {
161
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
136
  };
163
137
  export const se_CreateClusterParameterGroupCommand = async (input, context) => {
164
- const headers = {
165
- "content-type": "application/x-www-form-urlencoded",
166
- };
138
+ const headers = SHARED_HEADERS;
167
139
  let body;
168
140
  body = buildFormUrlencodedString({
169
141
  ...se_CreateClusterParameterGroupMessage(input, context),
@@ -173,9 +145,7 @@ export const se_CreateClusterParameterGroupCommand = async (input, context) => {
173
145
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
146
  };
175
147
  export const se_CreateClusterSecurityGroupCommand = async (input, context) => {
176
- const headers = {
177
- "content-type": "application/x-www-form-urlencoded",
178
- };
148
+ const headers = SHARED_HEADERS;
179
149
  let body;
180
150
  body = buildFormUrlencodedString({
181
151
  ...se_CreateClusterSecurityGroupMessage(input, context),
@@ -185,9 +155,7 @@ export const se_CreateClusterSecurityGroupCommand = async (input, context) => {
185
155
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
156
  };
187
157
  export const se_CreateClusterSnapshotCommand = async (input, context) => {
188
- const headers = {
189
- "content-type": "application/x-www-form-urlencoded",
190
- };
158
+ const headers = SHARED_HEADERS;
191
159
  let body;
192
160
  body = buildFormUrlencodedString({
193
161
  ...se_CreateClusterSnapshotMessage(input, context),
@@ -197,9 +165,7 @@ export const se_CreateClusterSnapshotCommand = async (input, context) => {
197
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
166
  };
199
167
  export const se_CreateClusterSubnetGroupCommand = async (input, context) => {
200
- const headers = {
201
- "content-type": "application/x-www-form-urlencoded",
202
- };
168
+ const headers = SHARED_HEADERS;
203
169
  let body;
204
170
  body = buildFormUrlencodedString({
205
171
  ...se_CreateClusterSubnetGroupMessage(input, context),
@@ -209,9 +175,7 @@ export const se_CreateClusterSubnetGroupCommand = async (input, context) => {
209
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
176
  };
211
177
  export const se_CreateEndpointAccessCommand = async (input, context) => {
212
- const headers = {
213
- "content-type": "application/x-www-form-urlencoded",
214
- };
178
+ const headers = SHARED_HEADERS;
215
179
  let body;
216
180
  body = buildFormUrlencodedString({
217
181
  ...se_CreateEndpointAccessMessage(input, context),
@@ -221,9 +185,7 @@ export const se_CreateEndpointAccessCommand = async (input, context) => {
221
185
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
186
  };
223
187
  export const se_CreateEventSubscriptionCommand = async (input, context) => {
224
- const headers = {
225
- "content-type": "application/x-www-form-urlencoded",
226
- };
188
+ const headers = SHARED_HEADERS;
227
189
  let body;
228
190
  body = buildFormUrlencodedString({
229
191
  ...se_CreateEventSubscriptionMessage(input, context),
@@ -233,9 +195,7 @@ export const se_CreateEventSubscriptionCommand = async (input, context) => {
233
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
196
  };
235
197
  export const se_CreateHsmClientCertificateCommand = async (input, context) => {
236
- const headers = {
237
- "content-type": "application/x-www-form-urlencoded",
238
- };
198
+ const headers = SHARED_HEADERS;
239
199
  let body;
240
200
  body = buildFormUrlencodedString({
241
201
  ...se_CreateHsmClientCertificateMessage(input, context),
@@ -245,9 +205,7 @@ export const se_CreateHsmClientCertificateCommand = async (input, context) => {
245
205
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
206
  };
247
207
  export const se_CreateHsmConfigurationCommand = async (input, context) => {
248
- const headers = {
249
- "content-type": "application/x-www-form-urlencoded",
250
- };
208
+ const headers = SHARED_HEADERS;
251
209
  let body;
252
210
  body = buildFormUrlencodedString({
253
211
  ...se_CreateHsmConfigurationMessage(input, context),
@@ -257,9 +215,7 @@ export const se_CreateHsmConfigurationCommand = async (input, context) => {
257
215
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
216
  };
259
217
  export const se_CreateScheduledActionCommand = async (input, context) => {
260
- const headers = {
261
- "content-type": "application/x-www-form-urlencoded",
262
- };
218
+ const headers = SHARED_HEADERS;
263
219
  let body;
264
220
  body = buildFormUrlencodedString({
265
221
  ...se_CreateScheduledActionMessage(input, context),
@@ -269,9 +225,7 @@ export const se_CreateScheduledActionCommand = async (input, context) => {
269
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
226
  };
271
227
  export const se_CreateSnapshotCopyGrantCommand = async (input, context) => {
272
- const headers = {
273
- "content-type": "application/x-www-form-urlencoded",
274
- };
228
+ const headers = SHARED_HEADERS;
275
229
  let body;
276
230
  body = buildFormUrlencodedString({
277
231
  ...se_CreateSnapshotCopyGrantMessage(input, context),
@@ -281,9 +235,7 @@ export const se_CreateSnapshotCopyGrantCommand = async (input, context) => {
281
235
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
282
236
  };
283
237
  export const se_CreateSnapshotScheduleCommand = async (input, context) => {
284
- const headers = {
285
- "content-type": "application/x-www-form-urlencoded",
286
- };
238
+ const headers = SHARED_HEADERS;
287
239
  let body;
288
240
  body = buildFormUrlencodedString({
289
241
  ...se_CreateSnapshotScheduleMessage(input, context),
@@ -293,9 +245,7 @@ export const se_CreateSnapshotScheduleCommand = async (input, context) => {
293
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
246
  };
295
247
  export const se_CreateTagsCommand = async (input, context) => {
296
- const headers = {
297
- "content-type": "application/x-www-form-urlencoded",
298
- };
248
+ const headers = SHARED_HEADERS;
299
249
  let body;
300
250
  body = buildFormUrlencodedString({
301
251
  ...se_CreateTagsMessage(input, context),
@@ -305,9 +255,7 @@ export const se_CreateTagsCommand = async (input, context) => {
305
255
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
256
  };
307
257
  export const se_CreateUsageLimitCommand = async (input, context) => {
308
- const headers = {
309
- "content-type": "application/x-www-form-urlencoded",
310
- };
258
+ const headers = SHARED_HEADERS;
311
259
  let body;
312
260
  body = buildFormUrlencodedString({
313
261
  ...se_CreateUsageLimitMessage(input, context),
@@ -317,9 +265,7 @@ export const se_CreateUsageLimitCommand = async (input, context) => {
317
265
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
266
  };
319
267
  export const se_DeauthorizeDataShareCommand = async (input, context) => {
320
- const headers = {
321
- "content-type": "application/x-www-form-urlencoded",
322
- };
268
+ const headers = SHARED_HEADERS;
323
269
  let body;
324
270
  body = buildFormUrlencodedString({
325
271
  ...se_DeauthorizeDataShareMessage(input, context),
@@ -329,9 +275,7 @@ export const se_DeauthorizeDataShareCommand = async (input, context) => {
329
275
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
276
  };
331
277
  export const se_DeleteAuthenticationProfileCommand = async (input, context) => {
332
- const headers = {
333
- "content-type": "application/x-www-form-urlencoded",
334
- };
278
+ const headers = SHARED_HEADERS;
335
279
  let body;
336
280
  body = buildFormUrlencodedString({
337
281
  ...se_DeleteAuthenticationProfileMessage(input, context),
@@ -341,9 +285,7 @@ export const se_DeleteAuthenticationProfileCommand = async (input, context) => {
341
285
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
342
286
  };
343
287
  export const se_DeleteClusterCommand = async (input, context) => {
344
- const headers = {
345
- "content-type": "application/x-www-form-urlencoded",
346
- };
288
+ const headers = SHARED_HEADERS;
347
289
  let body;
348
290
  body = buildFormUrlencodedString({
349
291
  ...se_DeleteClusterMessage(input, context),
@@ -353,9 +295,7 @@ export const se_DeleteClusterCommand = async (input, context) => {
353
295
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
296
  };
355
297
  export const se_DeleteClusterParameterGroupCommand = async (input, context) => {
356
- const headers = {
357
- "content-type": "application/x-www-form-urlencoded",
358
- };
298
+ const headers = SHARED_HEADERS;
359
299
  let body;
360
300
  body = buildFormUrlencodedString({
361
301
  ...se_DeleteClusterParameterGroupMessage(input, context),
@@ -365,9 +305,7 @@ export const se_DeleteClusterParameterGroupCommand = async (input, context) => {
365
305
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
306
  };
367
307
  export const se_DeleteClusterSecurityGroupCommand = async (input, context) => {
368
- const headers = {
369
- "content-type": "application/x-www-form-urlencoded",
370
- };
308
+ const headers = SHARED_HEADERS;
371
309
  let body;
372
310
  body = buildFormUrlencodedString({
373
311
  ...se_DeleteClusterSecurityGroupMessage(input, context),
@@ -377,9 +315,7 @@ export const se_DeleteClusterSecurityGroupCommand = async (input, context) => {
377
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
316
  };
379
317
  export const se_DeleteClusterSnapshotCommand = async (input, context) => {
380
- const headers = {
381
- "content-type": "application/x-www-form-urlencoded",
382
- };
318
+ const headers = SHARED_HEADERS;
383
319
  let body;
384
320
  body = buildFormUrlencodedString({
385
321
  ...se_DeleteClusterSnapshotMessage(input, context),
@@ -389,9 +325,7 @@ export const se_DeleteClusterSnapshotCommand = async (input, context) => {
389
325
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
326
  };
391
327
  export const se_DeleteClusterSubnetGroupCommand = async (input, context) => {
392
- const headers = {
393
- "content-type": "application/x-www-form-urlencoded",
394
- };
328
+ const headers = SHARED_HEADERS;
395
329
  let body;
396
330
  body = buildFormUrlencodedString({
397
331
  ...se_DeleteClusterSubnetGroupMessage(input, context),
@@ -401,9 +335,7 @@ export const se_DeleteClusterSubnetGroupCommand = async (input, context) => {
401
335
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
402
336
  };
403
337
  export const se_DeleteEndpointAccessCommand = async (input, context) => {
404
- const headers = {
405
- "content-type": "application/x-www-form-urlencoded",
406
- };
338
+ const headers = SHARED_HEADERS;
407
339
  let body;
408
340
  body = buildFormUrlencodedString({
409
341
  ...se_DeleteEndpointAccessMessage(input, context),
@@ -413,9 +345,7 @@ export const se_DeleteEndpointAccessCommand = async (input, context) => {
413
345
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
346
  };
415
347
  export const se_DeleteEventSubscriptionCommand = async (input, context) => {
416
- const headers = {
417
- "content-type": "application/x-www-form-urlencoded",
418
- };
348
+ const headers = SHARED_HEADERS;
419
349
  let body;
420
350
  body = buildFormUrlencodedString({
421
351
  ...se_DeleteEventSubscriptionMessage(input, context),
@@ -425,9 +355,7 @@ export const se_DeleteEventSubscriptionCommand = async (input, context) => {
425
355
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
426
356
  };
427
357
  export const se_DeleteHsmClientCertificateCommand = async (input, context) => {
428
- const headers = {
429
- "content-type": "application/x-www-form-urlencoded",
430
- };
358
+ const headers = SHARED_HEADERS;
431
359
  let body;
432
360
  body = buildFormUrlencodedString({
433
361
  ...se_DeleteHsmClientCertificateMessage(input, context),
@@ -437,9 +365,7 @@ export const se_DeleteHsmClientCertificateCommand = async (input, context) => {
437
365
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
438
366
  };
439
367
  export const se_DeleteHsmConfigurationCommand = async (input, context) => {
440
- const headers = {
441
- "content-type": "application/x-www-form-urlencoded",
442
- };
368
+ const headers = SHARED_HEADERS;
443
369
  let body;
444
370
  body = buildFormUrlencodedString({
445
371
  ...se_DeleteHsmConfigurationMessage(input, context),
@@ -449,9 +375,7 @@ export const se_DeleteHsmConfigurationCommand = async (input, context) => {
449
375
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
450
376
  };
451
377
  export const se_DeletePartnerCommand = async (input, context) => {
452
- const headers = {
453
- "content-type": "application/x-www-form-urlencoded",
454
- };
378
+ const headers = SHARED_HEADERS;
455
379
  let body;
456
380
  body = buildFormUrlencodedString({
457
381
  ...se_PartnerIntegrationInputMessage(input, context),
@@ -461,9 +385,7 @@ export const se_DeletePartnerCommand = async (input, context) => {
461
385
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
462
386
  };
463
387
  export const se_DeleteScheduledActionCommand = async (input, context) => {
464
- const headers = {
465
- "content-type": "application/x-www-form-urlencoded",
466
- };
388
+ const headers = SHARED_HEADERS;
467
389
  let body;
468
390
  body = buildFormUrlencodedString({
469
391
  ...se_DeleteScheduledActionMessage(input, context),
@@ -473,9 +395,7 @@ export const se_DeleteScheduledActionCommand = async (input, context) => {
473
395
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
474
396
  };
475
397
  export const se_DeleteSnapshotCopyGrantCommand = async (input, context) => {
476
- const headers = {
477
- "content-type": "application/x-www-form-urlencoded",
478
- };
398
+ const headers = SHARED_HEADERS;
479
399
  let body;
480
400
  body = buildFormUrlencodedString({
481
401
  ...se_DeleteSnapshotCopyGrantMessage(input, context),
@@ -485,9 +405,7 @@ export const se_DeleteSnapshotCopyGrantCommand = async (input, context) => {
485
405
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
486
406
  };
487
407
  export const se_DeleteSnapshotScheduleCommand = async (input, context) => {
488
- const headers = {
489
- "content-type": "application/x-www-form-urlencoded",
490
- };
408
+ const headers = SHARED_HEADERS;
491
409
  let body;
492
410
  body = buildFormUrlencodedString({
493
411
  ...se_DeleteSnapshotScheduleMessage(input, context),
@@ -497,9 +415,7 @@ export const se_DeleteSnapshotScheduleCommand = async (input, context) => {
497
415
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
416
  };
499
417
  export const se_DeleteTagsCommand = async (input, context) => {
500
- const headers = {
501
- "content-type": "application/x-www-form-urlencoded",
502
- };
418
+ const headers = SHARED_HEADERS;
503
419
  let body;
504
420
  body = buildFormUrlencodedString({
505
421
  ...se_DeleteTagsMessage(input, context),
@@ -509,9 +425,7 @@ export const se_DeleteTagsCommand = async (input, context) => {
509
425
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
510
426
  };
511
427
  export const se_DeleteUsageLimitCommand = async (input, context) => {
512
- const headers = {
513
- "content-type": "application/x-www-form-urlencoded",
514
- };
428
+ const headers = SHARED_HEADERS;
515
429
  let body;
516
430
  body = buildFormUrlencodedString({
517
431
  ...se_DeleteUsageLimitMessage(input, context),
@@ -521,9 +435,7 @@ export const se_DeleteUsageLimitCommand = async (input, context) => {
521
435
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
522
436
  };
523
437
  export const se_DescribeAccountAttributesCommand = async (input, context) => {
524
- const headers = {
525
- "content-type": "application/x-www-form-urlencoded",
526
- };
438
+ const headers = SHARED_HEADERS;
527
439
  let body;
528
440
  body = buildFormUrlencodedString({
529
441
  ...se_DescribeAccountAttributesMessage(input, context),
@@ -533,9 +445,7 @@ export const se_DescribeAccountAttributesCommand = async (input, context) => {
533
445
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
534
446
  };
535
447
  export const se_DescribeAuthenticationProfilesCommand = async (input, context) => {
536
- const headers = {
537
- "content-type": "application/x-www-form-urlencoded",
538
- };
448
+ const headers = SHARED_HEADERS;
539
449
  let body;
540
450
  body = buildFormUrlencodedString({
541
451
  ...se_DescribeAuthenticationProfilesMessage(input, context),
@@ -545,9 +455,7 @@ export const se_DescribeAuthenticationProfilesCommand = async (input, context) =
545
455
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
546
456
  };
547
457
  export const se_DescribeClusterDbRevisionsCommand = async (input, context) => {
548
- const headers = {
549
- "content-type": "application/x-www-form-urlencoded",
550
- };
458
+ const headers = SHARED_HEADERS;
551
459
  let body;
552
460
  body = buildFormUrlencodedString({
553
461
  ...se_DescribeClusterDbRevisionsMessage(input, context),
@@ -557,9 +465,7 @@ export const se_DescribeClusterDbRevisionsCommand = async (input, context) => {
557
465
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
558
466
  };
559
467
  export const se_DescribeClusterParameterGroupsCommand = async (input, context) => {
560
- const headers = {
561
- "content-type": "application/x-www-form-urlencoded",
562
- };
468
+ const headers = SHARED_HEADERS;
563
469
  let body;
564
470
  body = buildFormUrlencodedString({
565
471
  ...se_DescribeClusterParameterGroupsMessage(input, context),
@@ -569,9 +475,7 @@ export const se_DescribeClusterParameterGroupsCommand = async (input, context) =
569
475
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
570
476
  };
571
477
  export const se_DescribeClusterParametersCommand = async (input, context) => {
572
- const headers = {
573
- "content-type": "application/x-www-form-urlencoded",
574
- };
478
+ const headers = SHARED_HEADERS;
575
479
  let body;
576
480
  body = buildFormUrlencodedString({
577
481
  ...se_DescribeClusterParametersMessage(input, context),
@@ -581,9 +485,7 @@ export const se_DescribeClusterParametersCommand = async (input, context) => {
581
485
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
582
486
  };
583
487
  export const se_DescribeClustersCommand = async (input, context) => {
584
- const headers = {
585
- "content-type": "application/x-www-form-urlencoded",
586
- };
488
+ const headers = SHARED_HEADERS;
587
489
  let body;
588
490
  body = buildFormUrlencodedString({
589
491
  ...se_DescribeClustersMessage(input, context),
@@ -593,9 +495,7 @@ export const se_DescribeClustersCommand = async (input, context) => {
593
495
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
594
496
  };
595
497
  export const se_DescribeClusterSecurityGroupsCommand = async (input, context) => {
596
- const headers = {
597
- "content-type": "application/x-www-form-urlencoded",
598
- };
498
+ const headers = SHARED_HEADERS;
599
499
  let body;
600
500
  body = buildFormUrlencodedString({
601
501
  ...se_DescribeClusterSecurityGroupsMessage(input, context),
@@ -605,9 +505,7 @@ export const se_DescribeClusterSecurityGroupsCommand = async (input, context) =>
605
505
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
606
506
  };
607
507
  export const se_DescribeClusterSnapshotsCommand = async (input, context) => {
608
- const headers = {
609
- "content-type": "application/x-www-form-urlencoded",
610
- };
508
+ const headers = SHARED_HEADERS;
611
509
  let body;
612
510
  body = buildFormUrlencodedString({
613
511
  ...se_DescribeClusterSnapshotsMessage(input, context),
@@ -617,9 +515,7 @@ export const se_DescribeClusterSnapshotsCommand = async (input, context) => {
617
515
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
618
516
  };
619
517
  export const se_DescribeClusterSubnetGroupsCommand = async (input, context) => {
620
- const headers = {
621
- "content-type": "application/x-www-form-urlencoded",
622
- };
518
+ const headers = SHARED_HEADERS;
623
519
  let body;
624
520
  body = buildFormUrlencodedString({
625
521
  ...se_DescribeClusterSubnetGroupsMessage(input, context),
@@ -629,9 +525,7 @@ export const se_DescribeClusterSubnetGroupsCommand = async (input, context) => {
629
525
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
630
526
  };
631
527
  export const se_DescribeClusterTracksCommand = async (input, context) => {
632
- const headers = {
633
- "content-type": "application/x-www-form-urlencoded",
634
- };
528
+ const headers = SHARED_HEADERS;
635
529
  let body;
636
530
  body = buildFormUrlencodedString({
637
531
  ...se_DescribeClusterTracksMessage(input, context),
@@ -641,9 +535,7 @@ export const se_DescribeClusterTracksCommand = async (input, context) => {
641
535
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
642
536
  };
643
537
  export const se_DescribeClusterVersionsCommand = async (input, context) => {
644
- const headers = {
645
- "content-type": "application/x-www-form-urlencoded",
646
- };
538
+ const headers = SHARED_HEADERS;
647
539
  let body;
648
540
  body = buildFormUrlencodedString({
649
541
  ...se_DescribeClusterVersionsMessage(input, context),
@@ -653,9 +545,7 @@ export const se_DescribeClusterVersionsCommand = async (input, context) => {
653
545
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
654
546
  };
655
547
  export const se_DescribeDataSharesCommand = async (input, context) => {
656
- const headers = {
657
- "content-type": "application/x-www-form-urlencoded",
658
- };
548
+ const headers = SHARED_HEADERS;
659
549
  let body;
660
550
  body = buildFormUrlencodedString({
661
551
  ...se_DescribeDataSharesMessage(input, context),
@@ -665,9 +555,7 @@ export const se_DescribeDataSharesCommand = async (input, context) => {
665
555
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
666
556
  };
667
557
  export const se_DescribeDataSharesForConsumerCommand = async (input, context) => {
668
- const headers = {
669
- "content-type": "application/x-www-form-urlencoded",
670
- };
558
+ const headers = SHARED_HEADERS;
671
559
  let body;
672
560
  body = buildFormUrlencodedString({
673
561
  ...se_DescribeDataSharesForConsumerMessage(input, context),
@@ -677,9 +565,7 @@ export const se_DescribeDataSharesForConsumerCommand = async (input, context) =>
677
565
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
678
566
  };
679
567
  export const se_DescribeDataSharesForProducerCommand = async (input, context) => {
680
- const headers = {
681
- "content-type": "application/x-www-form-urlencoded",
682
- };
568
+ const headers = SHARED_HEADERS;
683
569
  let body;
684
570
  body = buildFormUrlencodedString({
685
571
  ...se_DescribeDataSharesForProducerMessage(input, context),
@@ -689,9 +575,7 @@ export const se_DescribeDataSharesForProducerCommand = async (input, context) =>
689
575
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
690
576
  };
691
577
  export const se_DescribeDefaultClusterParametersCommand = async (input, context) => {
692
- const headers = {
693
- "content-type": "application/x-www-form-urlencoded",
694
- };
578
+ const headers = SHARED_HEADERS;
695
579
  let body;
696
580
  body = buildFormUrlencodedString({
697
581
  ...se_DescribeDefaultClusterParametersMessage(input, context),
@@ -701,9 +585,7 @@ export const se_DescribeDefaultClusterParametersCommand = async (input, context)
701
585
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
702
586
  };
703
587
  export const se_DescribeEndpointAccessCommand = async (input, context) => {
704
- const headers = {
705
- "content-type": "application/x-www-form-urlencoded",
706
- };
588
+ const headers = SHARED_HEADERS;
707
589
  let body;
708
590
  body = buildFormUrlencodedString({
709
591
  ...se_DescribeEndpointAccessMessage(input, context),
@@ -713,9 +595,7 @@ export const se_DescribeEndpointAccessCommand = async (input, context) => {
713
595
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
714
596
  };
715
597
  export const se_DescribeEndpointAuthorizationCommand = async (input, context) => {
716
- const headers = {
717
- "content-type": "application/x-www-form-urlencoded",
718
- };
598
+ const headers = SHARED_HEADERS;
719
599
  let body;
720
600
  body = buildFormUrlencodedString({
721
601
  ...se_DescribeEndpointAuthorizationMessage(input, context),
@@ -725,9 +605,7 @@ export const se_DescribeEndpointAuthorizationCommand = async (input, context) =>
725
605
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
726
606
  };
727
607
  export const se_DescribeEventCategoriesCommand = async (input, context) => {
728
- const headers = {
729
- "content-type": "application/x-www-form-urlencoded",
730
- };
608
+ const headers = SHARED_HEADERS;
731
609
  let body;
732
610
  body = buildFormUrlencodedString({
733
611
  ...se_DescribeEventCategoriesMessage(input, context),
@@ -737,9 +615,7 @@ export const se_DescribeEventCategoriesCommand = async (input, context) => {
737
615
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
738
616
  };
739
617
  export const se_DescribeEventsCommand = async (input, context) => {
740
- const headers = {
741
- "content-type": "application/x-www-form-urlencoded",
742
- };
618
+ const headers = SHARED_HEADERS;
743
619
  let body;
744
620
  body = buildFormUrlencodedString({
745
621
  ...se_DescribeEventsMessage(input, context),
@@ -749,9 +625,7 @@ export const se_DescribeEventsCommand = async (input, context) => {
749
625
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
750
626
  };
751
627
  export const se_DescribeEventSubscriptionsCommand = async (input, context) => {
752
- const headers = {
753
- "content-type": "application/x-www-form-urlencoded",
754
- };
628
+ const headers = SHARED_HEADERS;
755
629
  let body;
756
630
  body = buildFormUrlencodedString({
757
631
  ...se_DescribeEventSubscriptionsMessage(input, context),
@@ -761,9 +635,7 @@ export const se_DescribeEventSubscriptionsCommand = async (input, context) => {
761
635
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
762
636
  };
763
637
  export const se_DescribeHsmClientCertificatesCommand = async (input, context) => {
764
- const headers = {
765
- "content-type": "application/x-www-form-urlencoded",
766
- };
638
+ const headers = SHARED_HEADERS;
767
639
  let body;
768
640
  body = buildFormUrlencodedString({
769
641
  ...se_DescribeHsmClientCertificatesMessage(input, context),
@@ -773,9 +645,7 @@ export const se_DescribeHsmClientCertificatesCommand = async (input, context) =>
773
645
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
774
646
  };
775
647
  export const se_DescribeHsmConfigurationsCommand = async (input, context) => {
776
- const headers = {
777
- "content-type": "application/x-www-form-urlencoded",
778
- };
648
+ const headers = SHARED_HEADERS;
779
649
  let body;
780
650
  body = buildFormUrlencodedString({
781
651
  ...se_DescribeHsmConfigurationsMessage(input, context),
@@ -785,9 +655,7 @@ export const se_DescribeHsmConfigurationsCommand = async (input, context) => {
785
655
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
786
656
  };
787
657
  export const se_DescribeLoggingStatusCommand = async (input, context) => {
788
- const headers = {
789
- "content-type": "application/x-www-form-urlencoded",
790
- };
658
+ const headers = SHARED_HEADERS;
791
659
  let body;
792
660
  body = buildFormUrlencodedString({
793
661
  ...se_DescribeLoggingStatusMessage(input, context),
@@ -797,9 +665,7 @@ export const se_DescribeLoggingStatusCommand = async (input, context) => {
797
665
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
798
666
  };
799
667
  export const se_DescribeNodeConfigurationOptionsCommand = async (input, context) => {
800
- const headers = {
801
- "content-type": "application/x-www-form-urlencoded",
802
- };
668
+ const headers = SHARED_HEADERS;
803
669
  let body;
804
670
  body = buildFormUrlencodedString({
805
671
  ...se_DescribeNodeConfigurationOptionsMessage(input, context),
@@ -809,9 +675,7 @@ export const se_DescribeNodeConfigurationOptionsCommand = async (input, context)
809
675
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
810
676
  };
811
677
  export const se_DescribeOrderableClusterOptionsCommand = async (input, context) => {
812
- const headers = {
813
- "content-type": "application/x-www-form-urlencoded",
814
- };
678
+ const headers = SHARED_HEADERS;
815
679
  let body;
816
680
  body = buildFormUrlencodedString({
817
681
  ...se_DescribeOrderableClusterOptionsMessage(input, context),
@@ -821,9 +685,7 @@ export const se_DescribeOrderableClusterOptionsCommand = async (input, context)
821
685
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
822
686
  };
823
687
  export const se_DescribePartnersCommand = async (input, context) => {
824
- const headers = {
825
- "content-type": "application/x-www-form-urlencoded",
826
- };
688
+ const headers = SHARED_HEADERS;
827
689
  let body;
828
690
  body = buildFormUrlencodedString({
829
691
  ...se_DescribePartnersInputMessage(input, context),
@@ -833,9 +695,7 @@ export const se_DescribePartnersCommand = async (input, context) => {
833
695
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
834
696
  };
835
697
  export const se_DescribeReservedNodeExchangeStatusCommand = async (input, context) => {
836
- const headers = {
837
- "content-type": "application/x-www-form-urlencoded",
838
- };
698
+ const headers = SHARED_HEADERS;
839
699
  let body;
840
700
  body = buildFormUrlencodedString({
841
701
  ...se_DescribeReservedNodeExchangeStatusInputMessage(input, context),
@@ -845,9 +705,7 @@ export const se_DescribeReservedNodeExchangeStatusCommand = async (input, contex
845
705
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
846
706
  };
847
707
  export const se_DescribeReservedNodeOfferingsCommand = async (input, context) => {
848
- const headers = {
849
- "content-type": "application/x-www-form-urlencoded",
850
- };
708
+ const headers = SHARED_HEADERS;
851
709
  let body;
852
710
  body = buildFormUrlencodedString({
853
711
  ...se_DescribeReservedNodeOfferingsMessage(input, context),
@@ -857,9 +715,7 @@ export const se_DescribeReservedNodeOfferingsCommand = async (input, context) =>
857
715
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
858
716
  };
859
717
  export const se_DescribeReservedNodesCommand = async (input, context) => {
860
- const headers = {
861
- "content-type": "application/x-www-form-urlencoded",
862
- };
718
+ const headers = SHARED_HEADERS;
863
719
  let body;
864
720
  body = buildFormUrlencodedString({
865
721
  ...se_DescribeReservedNodesMessage(input, context),
@@ -869,9 +725,7 @@ export const se_DescribeReservedNodesCommand = async (input, context) => {
869
725
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
870
726
  };
871
727
  export const se_DescribeResizeCommand = async (input, context) => {
872
- const headers = {
873
- "content-type": "application/x-www-form-urlencoded",
874
- };
728
+ const headers = SHARED_HEADERS;
875
729
  let body;
876
730
  body = buildFormUrlencodedString({
877
731
  ...se_DescribeResizeMessage(input, context),
@@ -881,9 +735,7 @@ export const se_DescribeResizeCommand = async (input, context) => {
881
735
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
882
736
  };
883
737
  export const se_DescribeScheduledActionsCommand = async (input, context) => {
884
- const headers = {
885
- "content-type": "application/x-www-form-urlencoded",
886
- };
738
+ const headers = SHARED_HEADERS;
887
739
  let body;
888
740
  body = buildFormUrlencodedString({
889
741
  ...se_DescribeScheduledActionsMessage(input, context),
@@ -893,9 +745,7 @@ export const se_DescribeScheduledActionsCommand = async (input, context) => {
893
745
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
894
746
  };
895
747
  export const se_DescribeSnapshotCopyGrantsCommand = async (input, context) => {
896
- const headers = {
897
- "content-type": "application/x-www-form-urlencoded",
898
- };
748
+ const headers = SHARED_HEADERS;
899
749
  let body;
900
750
  body = buildFormUrlencodedString({
901
751
  ...se_DescribeSnapshotCopyGrantsMessage(input, context),
@@ -905,9 +755,7 @@ export const se_DescribeSnapshotCopyGrantsCommand = async (input, context) => {
905
755
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
906
756
  };
907
757
  export const se_DescribeSnapshotSchedulesCommand = async (input, context) => {
908
- const headers = {
909
- "content-type": "application/x-www-form-urlencoded",
910
- };
758
+ const headers = SHARED_HEADERS;
911
759
  let body;
912
760
  body = buildFormUrlencodedString({
913
761
  ...se_DescribeSnapshotSchedulesMessage(input, context),
@@ -917,9 +765,7 @@ export const se_DescribeSnapshotSchedulesCommand = async (input, context) => {
917
765
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
918
766
  };
919
767
  export const se_DescribeStorageCommand = async (input, context) => {
920
- const headers = {
921
- "content-type": "application/x-www-form-urlencoded",
922
- };
768
+ const headers = SHARED_HEADERS;
923
769
  const body = buildFormUrlencodedString({
924
770
  Action: "DescribeStorage",
925
771
  Version: "2012-12-01",
@@ -927,9 +773,7 @@ export const se_DescribeStorageCommand = async (input, context) => {
927
773
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
928
774
  };
929
775
  export const se_DescribeTableRestoreStatusCommand = async (input, context) => {
930
- const headers = {
931
- "content-type": "application/x-www-form-urlencoded",
932
- };
776
+ const headers = SHARED_HEADERS;
933
777
  let body;
934
778
  body = buildFormUrlencodedString({
935
779
  ...se_DescribeTableRestoreStatusMessage(input, context),
@@ -939,9 +783,7 @@ export const se_DescribeTableRestoreStatusCommand = async (input, context) => {
939
783
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
940
784
  };
941
785
  export const se_DescribeTagsCommand = async (input, context) => {
942
- const headers = {
943
- "content-type": "application/x-www-form-urlencoded",
944
- };
786
+ const headers = SHARED_HEADERS;
945
787
  let body;
946
788
  body = buildFormUrlencodedString({
947
789
  ...se_DescribeTagsMessage(input, context),
@@ -951,9 +793,7 @@ export const se_DescribeTagsCommand = async (input, context) => {
951
793
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
952
794
  };
953
795
  export const se_DescribeUsageLimitsCommand = async (input, context) => {
954
- const headers = {
955
- "content-type": "application/x-www-form-urlencoded",
956
- };
796
+ const headers = SHARED_HEADERS;
957
797
  let body;
958
798
  body = buildFormUrlencodedString({
959
799
  ...se_DescribeUsageLimitsMessage(input, context),
@@ -963,9 +803,7 @@ export const se_DescribeUsageLimitsCommand = async (input, context) => {
963
803
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
964
804
  };
965
805
  export const se_DisableLoggingCommand = async (input, context) => {
966
- const headers = {
967
- "content-type": "application/x-www-form-urlencoded",
968
- };
806
+ const headers = SHARED_HEADERS;
969
807
  let body;
970
808
  body = buildFormUrlencodedString({
971
809
  ...se_DisableLoggingMessage(input, context),
@@ -975,9 +813,7 @@ export const se_DisableLoggingCommand = async (input, context) => {
975
813
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
976
814
  };
977
815
  export const se_DisableSnapshotCopyCommand = async (input, context) => {
978
- const headers = {
979
- "content-type": "application/x-www-form-urlencoded",
980
- };
816
+ const headers = SHARED_HEADERS;
981
817
  let body;
982
818
  body = buildFormUrlencodedString({
983
819
  ...se_DisableSnapshotCopyMessage(input, context),
@@ -987,9 +823,7 @@ export const se_DisableSnapshotCopyCommand = async (input, context) => {
987
823
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
988
824
  };
989
825
  export const se_DisassociateDataShareConsumerCommand = async (input, context) => {
990
- const headers = {
991
- "content-type": "application/x-www-form-urlencoded",
992
- };
826
+ const headers = SHARED_HEADERS;
993
827
  let body;
994
828
  body = buildFormUrlencodedString({
995
829
  ...se_DisassociateDataShareConsumerMessage(input, context),
@@ -999,9 +833,7 @@ export const se_DisassociateDataShareConsumerCommand = async (input, context) =>
999
833
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1000
834
  };
1001
835
  export const se_EnableLoggingCommand = async (input, context) => {
1002
- const headers = {
1003
- "content-type": "application/x-www-form-urlencoded",
1004
- };
836
+ const headers = SHARED_HEADERS;
1005
837
  let body;
1006
838
  body = buildFormUrlencodedString({
1007
839
  ...se_EnableLoggingMessage(input, context),
@@ -1011,9 +843,7 @@ export const se_EnableLoggingCommand = async (input, context) => {
1011
843
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1012
844
  };
1013
845
  export const se_EnableSnapshotCopyCommand = async (input, context) => {
1014
- const headers = {
1015
- "content-type": "application/x-www-form-urlencoded",
1016
- };
846
+ const headers = SHARED_HEADERS;
1017
847
  let body;
1018
848
  body = buildFormUrlencodedString({
1019
849
  ...se_EnableSnapshotCopyMessage(input, context),
@@ -1023,9 +853,7 @@ export const se_EnableSnapshotCopyCommand = async (input, context) => {
1023
853
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1024
854
  };
1025
855
  export const se_GetClusterCredentialsCommand = async (input, context) => {
1026
- const headers = {
1027
- "content-type": "application/x-www-form-urlencoded",
1028
- };
856
+ const headers = SHARED_HEADERS;
1029
857
  let body;
1030
858
  body = buildFormUrlencodedString({
1031
859
  ...se_GetClusterCredentialsMessage(input, context),
@@ -1035,9 +863,7 @@ export const se_GetClusterCredentialsCommand = async (input, context) => {
1035
863
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1036
864
  };
1037
865
  export const se_GetClusterCredentialsWithIAMCommand = async (input, context) => {
1038
- const headers = {
1039
- "content-type": "application/x-www-form-urlencoded",
1040
- };
866
+ const headers = SHARED_HEADERS;
1041
867
  let body;
1042
868
  body = buildFormUrlencodedString({
1043
869
  ...se_GetClusterCredentialsWithIAMMessage(input, context),
@@ -1047,9 +873,7 @@ export const se_GetClusterCredentialsWithIAMCommand = async (input, context) =>
1047
873
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1048
874
  };
1049
875
  export const se_GetReservedNodeExchangeConfigurationOptionsCommand = async (input, context) => {
1050
- const headers = {
1051
- "content-type": "application/x-www-form-urlencoded",
1052
- };
876
+ const headers = SHARED_HEADERS;
1053
877
  let body;
1054
878
  body = buildFormUrlencodedString({
1055
879
  ...se_GetReservedNodeExchangeConfigurationOptionsInputMessage(input, context),
@@ -1059,9 +883,7 @@ export const se_GetReservedNodeExchangeConfigurationOptionsCommand = async (inpu
1059
883
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1060
884
  };
1061
885
  export const se_GetReservedNodeExchangeOfferingsCommand = async (input, context) => {
1062
- const headers = {
1063
- "content-type": "application/x-www-form-urlencoded",
1064
- };
886
+ const headers = SHARED_HEADERS;
1065
887
  let body;
1066
888
  body = buildFormUrlencodedString({
1067
889
  ...se_GetReservedNodeExchangeOfferingsInputMessage(input, context),
@@ -1071,9 +893,7 @@ export const se_GetReservedNodeExchangeOfferingsCommand = async (input, context)
1071
893
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1072
894
  };
1073
895
  export const se_ModifyAquaConfigurationCommand = async (input, context) => {
1074
- const headers = {
1075
- "content-type": "application/x-www-form-urlencoded",
1076
- };
896
+ const headers = SHARED_HEADERS;
1077
897
  let body;
1078
898
  body = buildFormUrlencodedString({
1079
899
  ...se_ModifyAquaInputMessage(input, context),
@@ -1083,9 +903,7 @@ export const se_ModifyAquaConfigurationCommand = async (input, context) => {
1083
903
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1084
904
  };
1085
905
  export const se_ModifyAuthenticationProfileCommand = async (input, context) => {
1086
- const headers = {
1087
- "content-type": "application/x-www-form-urlencoded",
1088
- };
906
+ const headers = SHARED_HEADERS;
1089
907
  let body;
1090
908
  body = buildFormUrlencodedString({
1091
909
  ...se_ModifyAuthenticationProfileMessage(input, context),
@@ -1095,9 +913,7 @@ export const se_ModifyAuthenticationProfileCommand = async (input, context) => {
1095
913
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1096
914
  };
1097
915
  export const se_ModifyClusterCommand = async (input, context) => {
1098
- const headers = {
1099
- "content-type": "application/x-www-form-urlencoded",
1100
- };
916
+ const headers = SHARED_HEADERS;
1101
917
  let body;
1102
918
  body = buildFormUrlencodedString({
1103
919
  ...se_ModifyClusterMessage(input, context),
@@ -1107,9 +923,7 @@ export const se_ModifyClusterCommand = async (input, context) => {
1107
923
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1108
924
  };
1109
925
  export const se_ModifyClusterDbRevisionCommand = async (input, context) => {
1110
- const headers = {
1111
- "content-type": "application/x-www-form-urlencoded",
1112
- };
926
+ const headers = SHARED_HEADERS;
1113
927
  let body;
1114
928
  body = buildFormUrlencodedString({
1115
929
  ...se_ModifyClusterDbRevisionMessage(input, context),
@@ -1119,9 +933,7 @@ export const se_ModifyClusterDbRevisionCommand = async (input, context) => {
1119
933
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1120
934
  };
1121
935
  export const se_ModifyClusterIamRolesCommand = async (input, context) => {
1122
- const headers = {
1123
- "content-type": "application/x-www-form-urlencoded",
1124
- };
936
+ const headers = SHARED_HEADERS;
1125
937
  let body;
1126
938
  body = buildFormUrlencodedString({
1127
939
  ...se_ModifyClusterIamRolesMessage(input, context),
@@ -1131,9 +943,7 @@ export const se_ModifyClusterIamRolesCommand = async (input, context) => {
1131
943
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1132
944
  };
1133
945
  export const se_ModifyClusterMaintenanceCommand = async (input, context) => {
1134
- const headers = {
1135
- "content-type": "application/x-www-form-urlencoded",
1136
- };
946
+ const headers = SHARED_HEADERS;
1137
947
  let body;
1138
948
  body = buildFormUrlencodedString({
1139
949
  ...se_ModifyClusterMaintenanceMessage(input, context),
@@ -1143,9 +953,7 @@ export const se_ModifyClusterMaintenanceCommand = async (input, context) => {
1143
953
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1144
954
  };
1145
955
  export const se_ModifyClusterParameterGroupCommand = async (input, context) => {
1146
- const headers = {
1147
- "content-type": "application/x-www-form-urlencoded",
1148
- };
956
+ const headers = SHARED_HEADERS;
1149
957
  let body;
1150
958
  body = buildFormUrlencodedString({
1151
959
  ...se_ModifyClusterParameterGroupMessage(input, context),
@@ -1155,9 +963,7 @@ export const se_ModifyClusterParameterGroupCommand = async (input, context) => {
1155
963
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1156
964
  };
1157
965
  export const se_ModifyClusterSnapshotCommand = async (input, context) => {
1158
- const headers = {
1159
- "content-type": "application/x-www-form-urlencoded",
1160
- };
966
+ const headers = SHARED_HEADERS;
1161
967
  let body;
1162
968
  body = buildFormUrlencodedString({
1163
969
  ...se_ModifyClusterSnapshotMessage(input, context),
@@ -1167,9 +973,7 @@ export const se_ModifyClusterSnapshotCommand = async (input, context) => {
1167
973
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1168
974
  };
1169
975
  export const se_ModifyClusterSnapshotScheduleCommand = async (input, context) => {
1170
- const headers = {
1171
- "content-type": "application/x-www-form-urlencoded",
1172
- };
976
+ const headers = SHARED_HEADERS;
1173
977
  let body;
1174
978
  body = buildFormUrlencodedString({
1175
979
  ...se_ModifyClusterSnapshotScheduleMessage(input, context),
@@ -1179,9 +983,7 @@ export const se_ModifyClusterSnapshotScheduleCommand = async (input, context) =>
1179
983
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1180
984
  };
1181
985
  export const se_ModifyClusterSubnetGroupCommand = async (input, context) => {
1182
- const headers = {
1183
- "content-type": "application/x-www-form-urlencoded",
1184
- };
986
+ const headers = SHARED_HEADERS;
1185
987
  let body;
1186
988
  body = buildFormUrlencodedString({
1187
989
  ...se_ModifyClusterSubnetGroupMessage(input, context),
@@ -1191,9 +993,7 @@ export const se_ModifyClusterSubnetGroupCommand = async (input, context) => {
1191
993
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1192
994
  };
1193
995
  export const se_ModifyEndpointAccessCommand = async (input, context) => {
1194
- const headers = {
1195
- "content-type": "application/x-www-form-urlencoded",
1196
- };
996
+ const headers = SHARED_HEADERS;
1197
997
  let body;
1198
998
  body = buildFormUrlencodedString({
1199
999
  ...se_ModifyEndpointAccessMessage(input, context),
@@ -1203,9 +1003,7 @@ export const se_ModifyEndpointAccessCommand = async (input, context) => {
1203
1003
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1204
1004
  };
1205
1005
  export const se_ModifyEventSubscriptionCommand = async (input, context) => {
1206
- const headers = {
1207
- "content-type": "application/x-www-form-urlencoded",
1208
- };
1006
+ const headers = SHARED_HEADERS;
1209
1007
  let body;
1210
1008
  body = buildFormUrlencodedString({
1211
1009
  ...se_ModifyEventSubscriptionMessage(input, context),
@@ -1215,9 +1013,7 @@ export const se_ModifyEventSubscriptionCommand = async (input, context) => {
1215
1013
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1216
1014
  };
1217
1015
  export const se_ModifyScheduledActionCommand = async (input, context) => {
1218
- const headers = {
1219
- "content-type": "application/x-www-form-urlencoded",
1220
- };
1016
+ const headers = SHARED_HEADERS;
1221
1017
  let body;
1222
1018
  body = buildFormUrlencodedString({
1223
1019
  ...se_ModifyScheduledActionMessage(input, context),
@@ -1227,9 +1023,7 @@ export const se_ModifyScheduledActionCommand = async (input, context) => {
1227
1023
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1228
1024
  };
1229
1025
  export const se_ModifySnapshotCopyRetentionPeriodCommand = async (input, context) => {
1230
- const headers = {
1231
- "content-type": "application/x-www-form-urlencoded",
1232
- };
1026
+ const headers = SHARED_HEADERS;
1233
1027
  let body;
1234
1028
  body = buildFormUrlencodedString({
1235
1029
  ...se_ModifySnapshotCopyRetentionPeriodMessage(input, context),
@@ -1239,9 +1033,7 @@ export const se_ModifySnapshotCopyRetentionPeriodCommand = async (input, context
1239
1033
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1240
1034
  };
1241
1035
  export const se_ModifySnapshotScheduleCommand = async (input, context) => {
1242
- const headers = {
1243
- "content-type": "application/x-www-form-urlencoded",
1244
- };
1036
+ const headers = SHARED_HEADERS;
1245
1037
  let body;
1246
1038
  body = buildFormUrlencodedString({
1247
1039
  ...se_ModifySnapshotScheduleMessage(input, context),
@@ -1251,9 +1043,7 @@ export const se_ModifySnapshotScheduleCommand = async (input, context) => {
1251
1043
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1252
1044
  };
1253
1045
  export const se_ModifyUsageLimitCommand = async (input, context) => {
1254
- const headers = {
1255
- "content-type": "application/x-www-form-urlencoded",
1256
- };
1046
+ const headers = SHARED_HEADERS;
1257
1047
  let body;
1258
1048
  body = buildFormUrlencodedString({
1259
1049
  ...se_ModifyUsageLimitMessage(input, context),
@@ -1263,9 +1053,7 @@ export const se_ModifyUsageLimitCommand = async (input, context) => {
1263
1053
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1264
1054
  };
1265
1055
  export const se_PauseClusterCommand = async (input, context) => {
1266
- const headers = {
1267
- "content-type": "application/x-www-form-urlencoded",
1268
- };
1056
+ const headers = SHARED_HEADERS;
1269
1057
  let body;
1270
1058
  body = buildFormUrlencodedString({
1271
1059
  ...se_PauseClusterMessage(input, context),
@@ -1275,9 +1063,7 @@ export const se_PauseClusterCommand = async (input, context) => {
1275
1063
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1276
1064
  };
1277
1065
  export const se_PurchaseReservedNodeOfferingCommand = async (input, context) => {
1278
- const headers = {
1279
- "content-type": "application/x-www-form-urlencoded",
1280
- };
1066
+ const headers = SHARED_HEADERS;
1281
1067
  let body;
1282
1068
  body = buildFormUrlencodedString({
1283
1069
  ...se_PurchaseReservedNodeOfferingMessage(input, context),
@@ -1287,9 +1073,7 @@ export const se_PurchaseReservedNodeOfferingCommand = async (input, context) =>
1287
1073
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1288
1074
  };
1289
1075
  export const se_RebootClusterCommand = async (input, context) => {
1290
- const headers = {
1291
- "content-type": "application/x-www-form-urlencoded",
1292
- };
1076
+ const headers = SHARED_HEADERS;
1293
1077
  let body;
1294
1078
  body = buildFormUrlencodedString({
1295
1079
  ...se_RebootClusterMessage(input, context),
@@ -1299,9 +1083,7 @@ export const se_RebootClusterCommand = async (input, context) => {
1299
1083
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1300
1084
  };
1301
1085
  export const se_RejectDataShareCommand = async (input, context) => {
1302
- const headers = {
1303
- "content-type": "application/x-www-form-urlencoded",
1304
- };
1086
+ const headers = SHARED_HEADERS;
1305
1087
  let body;
1306
1088
  body = buildFormUrlencodedString({
1307
1089
  ...se_RejectDataShareMessage(input, context),
@@ -1311,9 +1093,7 @@ export const se_RejectDataShareCommand = async (input, context) => {
1311
1093
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1312
1094
  };
1313
1095
  export const se_ResetClusterParameterGroupCommand = async (input, context) => {
1314
- const headers = {
1315
- "content-type": "application/x-www-form-urlencoded",
1316
- };
1096
+ const headers = SHARED_HEADERS;
1317
1097
  let body;
1318
1098
  body = buildFormUrlencodedString({
1319
1099
  ...se_ResetClusterParameterGroupMessage(input, context),
@@ -1323,9 +1103,7 @@ export const se_ResetClusterParameterGroupCommand = async (input, context) => {
1323
1103
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1324
1104
  };
1325
1105
  export const se_ResizeClusterCommand = async (input, context) => {
1326
- const headers = {
1327
- "content-type": "application/x-www-form-urlencoded",
1328
- };
1106
+ const headers = SHARED_HEADERS;
1329
1107
  let body;
1330
1108
  body = buildFormUrlencodedString({
1331
1109
  ...se_ResizeClusterMessage(input, context),
@@ -1335,9 +1113,7 @@ export const se_ResizeClusterCommand = async (input, context) => {
1335
1113
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1336
1114
  };
1337
1115
  export const se_RestoreFromClusterSnapshotCommand = async (input, context) => {
1338
- const headers = {
1339
- "content-type": "application/x-www-form-urlencoded",
1340
- };
1116
+ const headers = SHARED_HEADERS;
1341
1117
  let body;
1342
1118
  body = buildFormUrlencodedString({
1343
1119
  ...se_RestoreFromClusterSnapshotMessage(input, context),
@@ -1347,9 +1123,7 @@ export const se_RestoreFromClusterSnapshotCommand = async (input, context) => {
1347
1123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1348
1124
  };
1349
1125
  export const se_RestoreTableFromClusterSnapshotCommand = async (input, context) => {
1350
- const headers = {
1351
- "content-type": "application/x-www-form-urlencoded",
1352
- };
1126
+ const headers = SHARED_HEADERS;
1353
1127
  let body;
1354
1128
  body = buildFormUrlencodedString({
1355
1129
  ...se_RestoreTableFromClusterSnapshotMessage(input, context),
@@ -1359,9 +1133,7 @@ export const se_RestoreTableFromClusterSnapshotCommand = async (input, context)
1359
1133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1360
1134
  };
1361
1135
  export const se_ResumeClusterCommand = async (input, context) => {
1362
- const headers = {
1363
- "content-type": "application/x-www-form-urlencoded",
1364
- };
1136
+ const headers = SHARED_HEADERS;
1365
1137
  let body;
1366
1138
  body = buildFormUrlencodedString({
1367
1139
  ...se_ResumeClusterMessage(input, context),
@@ -1371,9 +1143,7 @@ export const se_ResumeClusterCommand = async (input, context) => {
1371
1143
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1372
1144
  };
1373
1145
  export const se_RevokeClusterSecurityGroupIngressCommand = async (input, context) => {
1374
- const headers = {
1375
- "content-type": "application/x-www-form-urlencoded",
1376
- };
1146
+ const headers = SHARED_HEADERS;
1377
1147
  let body;
1378
1148
  body = buildFormUrlencodedString({
1379
1149
  ...se_RevokeClusterSecurityGroupIngressMessage(input, context),
@@ -1383,9 +1153,7 @@ export const se_RevokeClusterSecurityGroupIngressCommand = async (input, context
1383
1153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1384
1154
  };
1385
1155
  export const se_RevokeEndpointAccessCommand = async (input, context) => {
1386
- const headers = {
1387
- "content-type": "application/x-www-form-urlencoded",
1388
- };
1156
+ const headers = SHARED_HEADERS;
1389
1157
  let body;
1390
1158
  body = buildFormUrlencodedString({
1391
1159
  ...se_RevokeEndpointAccessMessage(input, context),
@@ -1395,9 +1163,7 @@ export const se_RevokeEndpointAccessCommand = async (input, context) => {
1395
1163
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1396
1164
  };
1397
1165
  export const se_RevokeSnapshotAccessCommand = async (input, context) => {
1398
- const headers = {
1399
- "content-type": "application/x-www-form-urlencoded",
1400
- };
1166
+ const headers = SHARED_HEADERS;
1401
1167
  let body;
1402
1168
  body = buildFormUrlencodedString({
1403
1169
  ...se_RevokeSnapshotAccessMessage(input, context),
@@ -1407,9 +1173,7 @@ export const se_RevokeSnapshotAccessCommand = async (input, context) => {
1407
1173
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1408
1174
  };
1409
1175
  export const se_RotateEncryptionKeyCommand = async (input, context) => {
1410
- const headers = {
1411
- "content-type": "application/x-www-form-urlencoded",
1412
- };
1176
+ const headers = SHARED_HEADERS;
1413
1177
  let body;
1414
1178
  body = buildFormUrlencodedString({
1415
1179
  ...se_RotateEncryptionKeyMessage(input, context),
@@ -1419,9 +1183,7 @@ export const se_RotateEncryptionKeyCommand = async (input, context) => {
1419
1183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1420
1184
  };
1421
1185
  export const se_UpdatePartnerStatusCommand = async (input, context) => {
1422
- const headers = {
1423
- "content-type": "application/x-www-form-urlencoded",
1424
- };
1186
+ const headers = SHARED_HEADERS;
1425
1187
  let body;
1426
1188
  body = buildFormUrlencodedString({
1427
1189
  ...se_UpdatePartnerStatusInputMessage(input, context),
@@ -1441,7 +1203,7 @@ export const de_AcceptReservedNodeExchangeCommand = async (output, context) => {
1441
1203
  $metadata: deserializeMetadata(output),
1442
1204
  ...contents,
1443
1205
  };
1444
- return Promise.resolve(response);
1206
+ return response;
1445
1207
  };
1446
1208
  const de_AcceptReservedNodeExchangeCommandError = async (output, context) => {
1447
1209
  const parsedOutput = {
@@ -1473,10 +1235,9 @@ const de_AcceptReservedNodeExchangeCommandError = async (output, context) => {
1473
1235
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1474
1236
  default:
1475
1237
  const parsedBody = parsedOutput.body;
1476
- throwDefaultError({
1238
+ return throwDefaultError({
1477
1239
  output,
1478
1240
  parsedBody: parsedBody.Error,
1479
- exceptionCtor: __BaseException,
1480
1241
  errorCode,
1481
1242
  });
1482
1243
  }
@@ -1492,7 +1253,7 @@ export const de_AddPartnerCommand = async (output, context) => {
1492
1253
  $metadata: deserializeMetadata(output),
1493
1254
  ...contents,
1494
1255
  };
1495
- return Promise.resolve(response);
1256
+ return response;
1496
1257
  };
1497
1258
  const de_AddPartnerCommandError = async (output, context) => {
1498
1259
  const parsedOutput = {
@@ -1512,10 +1273,9 @@ const de_AddPartnerCommandError = async (output, context) => {
1512
1273
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
1513
1274
  default:
1514
1275
  const parsedBody = parsedOutput.body;
1515
- throwDefaultError({
1276
+ return throwDefaultError({
1516
1277
  output,
1517
1278
  parsedBody: parsedBody.Error,
1518
- exceptionCtor: __BaseException,
1519
1279
  errorCode,
1520
1280
  });
1521
1281
  }
@@ -1531,7 +1291,7 @@ export const de_AssociateDataShareConsumerCommand = async (output, context) => {
1531
1291
  $metadata: deserializeMetadata(output),
1532
1292
  ...contents,
1533
1293
  };
1534
- return Promise.resolve(response);
1294
+ return response;
1535
1295
  };
1536
1296
  const de_AssociateDataShareConsumerCommandError = async (output, context) => {
1537
1297
  const parsedOutput = {
@@ -1548,10 +1308,9 @@ const de_AssociateDataShareConsumerCommandError = async (output, context) => {
1548
1308
  throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
1549
1309
  default:
1550
1310
  const parsedBody = parsedOutput.body;
1551
- throwDefaultError({
1311
+ return throwDefaultError({
1552
1312
  output,
1553
1313
  parsedBody: parsedBody.Error,
1554
- exceptionCtor: __BaseException,
1555
1314
  errorCode,
1556
1315
  });
1557
1316
  }
@@ -1567,7 +1326,7 @@ export const de_AuthorizeClusterSecurityGroupIngressCommand = async (output, con
1567
1326
  $metadata: deserializeMetadata(output),
1568
1327
  ...contents,
1569
1328
  };
1570
- return Promise.resolve(response);
1329
+ return response;
1571
1330
  };
1572
1331
  const de_AuthorizeClusterSecurityGroupIngressCommandError = async (output, context) => {
1573
1332
  const parsedOutput = {
@@ -1590,10 +1349,9 @@ const de_AuthorizeClusterSecurityGroupIngressCommandError = async (output, conte
1590
1349
  throw await de_InvalidClusterSecurityGroupStateFaultRes(parsedOutput, context);
1591
1350
  default:
1592
1351
  const parsedBody = parsedOutput.body;
1593
- throwDefaultError({
1352
+ return throwDefaultError({
1594
1353
  output,
1595
1354
  parsedBody: parsedBody.Error,
1596
- exceptionCtor: __BaseException,
1597
1355
  errorCode,
1598
1356
  });
1599
1357
  }
@@ -1609,7 +1367,7 @@ export const de_AuthorizeDataShareCommand = async (output, context) => {
1609
1367
  $metadata: deserializeMetadata(output),
1610
1368
  ...contents,
1611
1369
  };
1612
- return Promise.resolve(response);
1370
+ return response;
1613
1371
  };
1614
1372
  const de_AuthorizeDataShareCommandError = async (output, context) => {
1615
1373
  const parsedOutput = {
@@ -1623,10 +1381,9 @@ const de_AuthorizeDataShareCommandError = async (output, context) => {
1623
1381
  throw await de_InvalidDataShareFaultRes(parsedOutput, context);
1624
1382
  default:
1625
1383
  const parsedBody = parsedOutput.body;
1626
- throwDefaultError({
1384
+ return throwDefaultError({
1627
1385
  output,
1628
1386
  parsedBody: parsedBody.Error,
1629
- exceptionCtor: __BaseException,
1630
1387
  errorCode,
1631
1388
  });
1632
1389
  }
@@ -1642,7 +1399,7 @@ export const de_AuthorizeEndpointAccessCommand = async (output, context) => {
1642
1399
  $metadata: deserializeMetadata(output),
1643
1400
  ...contents,
1644
1401
  };
1645
- return Promise.resolve(response);
1402
+ return response;
1646
1403
  };
1647
1404
  const de_AuthorizeEndpointAccessCommandError = async (output, context) => {
1648
1405
  const parsedOutput = {
@@ -1671,10 +1428,9 @@ const de_AuthorizeEndpointAccessCommandError = async (output, context) => {
1671
1428
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1672
1429
  default:
1673
1430
  const parsedBody = parsedOutput.body;
1674
- throwDefaultError({
1431
+ return throwDefaultError({
1675
1432
  output,
1676
1433
  parsedBody: parsedBody.Error,
1677
- exceptionCtor: __BaseException,
1678
1434
  errorCode,
1679
1435
  });
1680
1436
  }
@@ -1690,7 +1446,7 @@ export const de_AuthorizeSnapshotAccessCommand = async (output, context) => {
1690
1446
  $metadata: deserializeMetadata(output),
1691
1447
  ...contents,
1692
1448
  };
1693
- return Promise.resolve(response);
1449
+ return response;
1694
1450
  };
1695
1451
  const de_AuthorizeSnapshotAccessCommandError = async (output, context) => {
1696
1452
  const parsedOutput = {
@@ -1722,10 +1478,9 @@ const de_AuthorizeSnapshotAccessCommandError = async (output, context) => {
1722
1478
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1723
1479
  default:
1724
1480
  const parsedBody = parsedOutput.body;
1725
- throwDefaultError({
1481
+ return throwDefaultError({
1726
1482
  output,
1727
1483
  parsedBody: parsedBody.Error,
1728
- exceptionCtor: __BaseException,
1729
1484
  errorCode,
1730
1485
  });
1731
1486
  }
@@ -1741,7 +1496,7 @@ export const de_BatchDeleteClusterSnapshotsCommand = async (output, context) =>
1741
1496
  $metadata: deserializeMetadata(output),
1742
1497
  ...contents,
1743
1498
  };
1744
- return Promise.resolve(response);
1499
+ return response;
1745
1500
  };
1746
1501
  const de_BatchDeleteClusterSnapshotsCommandError = async (output, context) => {
1747
1502
  const parsedOutput = {
@@ -1755,10 +1510,9 @@ const de_BatchDeleteClusterSnapshotsCommandError = async (output, context) => {
1755
1510
  throw await de_BatchDeleteRequestSizeExceededFaultRes(parsedOutput, context);
1756
1511
  default:
1757
1512
  const parsedBody = parsedOutput.body;
1758
- throwDefaultError({
1513
+ return throwDefaultError({
1759
1514
  output,
1760
1515
  parsedBody: parsedBody.Error,
1761
- exceptionCtor: __BaseException,
1762
1516
  errorCode,
1763
1517
  });
1764
1518
  }
@@ -1774,7 +1528,7 @@ export const de_BatchModifyClusterSnapshotsCommand = async (output, context) =>
1774
1528
  $metadata: deserializeMetadata(output),
1775
1529
  ...contents,
1776
1530
  };
1777
- return Promise.resolve(response);
1531
+ return response;
1778
1532
  };
1779
1533
  const de_BatchModifyClusterSnapshotsCommandError = async (output, context) => {
1780
1534
  const parsedOutput = {
@@ -1791,10 +1545,9 @@ const de_BatchModifyClusterSnapshotsCommandError = async (output, context) => {
1791
1545
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
1792
1546
  default:
1793
1547
  const parsedBody = parsedOutput.body;
1794
- throwDefaultError({
1548
+ return throwDefaultError({
1795
1549
  output,
1796
1550
  parsedBody: parsedBody.Error,
1797
- exceptionCtor: __BaseException,
1798
1551
  errorCode,
1799
1552
  });
1800
1553
  }
@@ -1810,7 +1563,7 @@ export const de_CancelResizeCommand = async (output, context) => {
1810
1563
  $metadata: deserializeMetadata(output),
1811
1564
  ...contents,
1812
1565
  };
1813
- return Promise.resolve(response);
1566
+ return response;
1814
1567
  };
1815
1568
  const de_CancelResizeCommandError = async (output, context) => {
1816
1569
  const parsedOutput = {
@@ -1833,10 +1586,9 @@ const de_CancelResizeCommandError = async (output, context) => {
1833
1586
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1834
1587
  default:
1835
1588
  const parsedBody = parsedOutput.body;
1836
- throwDefaultError({
1589
+ return throwDefaultError({
1837
1590
  output,
1838
1591
  parsedBody: parsedBody.Error,
1839
- exceptionCtor: __BaseException,
1840
1592
  errorCode,
1841
1593
  });
1842
1594
  }
@@ -1852,7 +1604,7 @@ export const de_CopyClusterSnapshotCommand = async (output, context) => {
1852
1604
  $metadata: deserializeMetadata(output),
1853
1605
  ...contents,
1854
1606
  };
1855
- return Promise.resolve(response);
1607
+ return response;
1856
1608
  };
1857
1609
  const de_CopyClusterSnapshotCommandError = async (output, context) => {
1858
1610
  const parsedOutput = {
@@ -1878,10 +1630,9 @@ const de_CopyClusterSnapshotCommandError = async (output, context) => {
1878
1630
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
1879
1631
  default:
1880
1632
  const parsedBody = parsedOutput.body;
1881
- throwDefaultError({
1633
+ return throwDefaultError({
1882
1634
  output,
1883
1635
  parsedBody: parsedBody.Error,
1884
- exceptionCtor: __BaseException,
1885
1636
  errorCode,
1886
1637
  });
1887
1638
  }
@@ -1897,7 +1648,7 @@ export const de_CreateAuthenticationProfileCommand = async (output, context) =>
1897
1648
  $metadata: deserializeMetadata(output),
1898
1649
  ...contents,
1899
1650
  };
1900
- return Promise.resolve(response);
1651
+ return response;
1901
1652
  };
1902
1653
  const de_CreateAuthenticationProfileCommandError = async (output, context) => {
1903
1654
  const parsedOutput = {
@@ -1917,10 +1668,9 @@ const de_CreateAuthenticationProfileCommandError = async (output, context) => {
1917
1668
  throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
1918
1669
  default:
1919
1670
  const parsedBody = parsedOutput.body;
1920
- throwDefaultError({
1671
+ return throwDefaultError({
1921
1672
  output,
1922
1673
  parsedBody: parsedBody.Error,
1923
- exceptionCtor: __BaseException,
1924
1674
  errorCode,
1925
1675
  });
1926
1676
  }
@@ -1936,7 +1686,7 @@ export const de_CreateClusterCommand = async (output, context) => {
1936
1686
  $metadata: deserializeMetadata(output),
1937
1687
  ...contents,
1938
1688
  };
1939
- return Promise.resolve(response);
1689
+ return response;
1940
1690
  };
1941
1691
  const de_CreateClusterCommandError = async (output, context) => {
1942
1692
  const parsedOutput = {
@@ -2013,10 +1763,9 @@ const de_CreateClusterCommandError = async (output, context) => {
2013
1763
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
2014
1764
  default:
2015
1765
  const parsedBody = parsedOutput.body;
2016
- throwDefaultError({
1766
+ return throwDefaultError({
2017
1767
  output,
2018
1768
  parsedBody: parsedBody.Error,
2019
- exceptionCtor: __BaseException,
2020
1769
  errorCode,
2021
1770
  });
2022
1771
  }
@@ -2032,7 +1781,7 @@ export const de_CreateClusterParameterGroupCommand = async (output, context) =>
2032
1781
  $metadata: deserializeMetadata(output),
2033
1782
  ...contents,
2034
1783
  };
2035
- return Promise.resolve(response);
1784
+ return response;
2036
1785
  };
2037
1786
  const de_CreateClusterParameterGroupCommandError = async (output, context) => {
2038
1787
  const parsedOutput = {
@@ -2055,10 +1804,9 @@ const de_CreateClusterParameterGroupCommandError = async (output, context) => {
2055
1804
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2056
1805
  default:
2057
1806
  const parsedBody = parsedOutput.body;
2058
- throwDefaultError({
1807
+ return throwDefaultError({
2059
1808
  output,
2060
1809
  parsedBody: parsedBody.Error,
2061
- exceptionCtor: __BaseException,
2062
1810
  errorCode,
2063
1811
  });
2064
1812
  }
@@ -2074,7 +1822,7 @@ export const de_CreateClusterSecurityGroupCommand = async (output, context) => {
2074
1822
  $metadata: deserializeMetadata(output),
2075
1823
  ...contents,
2076
1824
  };
2077
- return Promise.resolve(response);
1825
+ return response;
2078
1826
  };
2079
1827
  const de_CreateClusterSecurityGroupCommandError = async (output, context) => {
2080
1828
  const parsedOutput = {
@@ -2097,10 +1845,9 @@ const de_CreateClusterSecurityGroupCommandError = async (output, context) => {
2097
1845
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2098
1846
  default:
2099
1847
  const parsedBody = parsedOutput.body;
2100
- throwDefaultError({
1848
+ return throwDefaultError({
2101
1849
  output,
2102
1850
  parsedBody: parsedBody.Error,
2103
- exceptionCtor: __BaseException,
2104
1851
  errorCode,
2105
1852
  });
2106
1853
  }
@@ -2116,7 +1863,7 @@ export const de_CreateClusterSnapshotCommand = async (output, context) => {
2116
1863
  $metadata: deserializeMetadata(output),
2117
1864
  ...contents,
2118
1865
  };
2119
- return Promise.resolve(response);
1866
+ return response;
2120
1867
  };
2121
1868
  const de_CreateClusterSnapshotCommandError = async (output, context) => {
2122
1869
  const parsedOutput = {
@@ -2148,10 +1895,9 @@ const de_CreateClusterSnapshotCommandError = async (output, context) => {
2148
1895
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2149
1896
  default:
2150
1897
  const parsedBody = parsedOutput.body;
2151
- throwDefaultError({
1898
+ return throwDefaultError({
2152
1899
  output,
2153
1900
  parsedBody: parsedBody.Error,
2154
- exceptionCtor: __BaseException,
2155
1901
  errorCode,
2156
1902
  });
2157
1903
  }
@@ -2167,7 +1913,7 @@ export const de_CreateClusterSubnetGroupCommand = async (output, context) => {
2167
1913
  $metadata: deserializeMetadata(output),
2168
1914
  ...contents,
2169
1915
  };
2170
- return Promise.resolve(response);
1916
+ return response;
2171
1917
  };
2172
1918
  const de_CreateClusterSubnetGroupCommandError = async (output, context) => {
2173
1919
  const parsedOutput = {
@@ -2202,10 +1948,9 @@ const de_CreateClusterSubnetGroupCommandError = async (output, context) => {
2202
1948
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
2203
1949
  default:
2204
1950
  const parsedBody = parsedOutput.body;
2205
- throwDefaultError({
1951
+ return throwDefaultError({
2206
1952
  output,
2207
1953
  parsedBody: parsedBody.Error,
2208
- exceptionCtor: __BaseException,
2209
1954
  errorCode,
2210
1955
  });
2211
1956
  }
@@ -2221,7 +1966,7 @@ export const de_CreateEndpointAccessCommand = async (output, context) => {
2221
1966
  $metadata: deserializeMetadata(output),
2222
1967
  ...contents,
2223
1968
  };
2224
- return Promise.resolve(response);
1969
+ return response;
2225
1970
  };
2226
1971
  const de_CreateEndpointAccessCommandError = async (output, context) => {
2227
1972
  const parsedOutput = {
@@ -2262,10 +2007,9 @@ const de_CreateEndpointAccessCommandError = async (output, context) => {
2262
2007
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
2263
2008
  default:
2264
2009
  const parsedBody = parsedOutput.body;
2265
- throwDefaultError({
2010
+ return throwDefaultError({
2266
2011
  output,
2267
2012
  parsedBody: parsedBody.Error,
2268
- exceptionCtor: __BaseException,
2269
2013
  errorCode,
2270
2014
  });
2271
2015
  }
@@ -2281,7 +2025,7 @@ export const de_CreateEventSubscriptionCommand = async (output, context) => {
2281
2025
  $metadata: deserializeMetadata(output),
2282
2026
  ...contents,
2283
2027
  };
2284
- return Promise.resolve(response);
2028
+ return response;
2285
2029
  };
2286
2030
  const de_CreateEventSubscriptionCommandError = async (output, context) => {
2287
2031
  const parsedOutput = {
@@ -2325,10 +2069,9 @@ const de_CreateEventSubscriptionCommandError = async (output, context) => {
2325
2069
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2326
2070
  default:
2327
2071
  const parsedBody = parsedOutput.body;
2328
- throwDefaultError({
2072
+ return throwDefaultError({
2329
2073
  output,
2330
2074
  parsedBody: parsedBody.Error,
2331
- exceptionCtor: __BaseException,
2332
2075
  errorCode,
2333
2076
  });
2334
2077
  }
@@ -2344,7 +2087,7 @@ export const de_CreateHsmClientCertificateCommand = async (output, context) => {
2344
2087
  $metadata: deserializeMetadata(output),
2345
2088
  ...contents,
2346
2089
  };
2347
- return Promise.resolve(response);
2090
+ return response;
2348
2091
  };
2349
2092
  const de_CreateHsmClientCertificateCommandError = async (output, context) => {
2350
2093
  const parsedOutput = {
@@ -2367,10 +2110,9 @@ const de_CreateHsmClientCertificateCommandError = async (output, context) => {
2367
2110
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2368
2111
  default:
2369
2112
  const parsedBody = parsedOutput.body;
2370
- throwDefaultError({
2113
+ return throwDefaultError({
2371
2114
  output,
2372
2115
  parsedBody: parsedBody.Error,
2373
- exceptionCtor: __BaseException,
2374
2116
  errorCode,
2375
2117
  });
2376
2118
  }
@@ -2386,7 +2128,7 @@ export const de_CreateHsmConfigurationCommand = async (output, context) => {
2386
2128
  $metadata: deserializeMetadata(output),
2387
2129
  ...contents,
2388
2130
  };
2389
- return Promise.resolve(response);
2131
+ return response;
2390
2132
  };
2391
2133
  const de_CreateHsmConfigurationCommandError = async (output, context) => {
2392
2134
  const parsedOutput = {
@@ -2409,10 +2151,9 @@ const de_CreateHsmConfigurationCommandError = async (output, context) => {
2409
2151
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2410
2152
  default:
2411
2153
  const parsedBody = parsedOutput.body;
2412
- throwDefaultError({
2154
+ return throwDefaultError({
2413
2155
  output,
2414
2156
  parsedBody: parsedBody.Error,
2415
- exceptionCtor: __BaseException,
2416
2157
  errorCode,
2417
2158
  });
2418
2159
  }
@@ -2428,7 +2169,7 @@ export const de_CreateScheduledActionCommand = async (output, context) => {
2428
2169
  $metadata: deserializeMetadata(output),
2429
2170
  ...contents,
2430
2171
  };
2431
- return Promise.resolve(response);
2172
+ return response;
2432
2173
  };
2433
2174
  const de_CreateScheduledActionCommandError = async (output, context) => {
2434
2175
  const parsedOutput = {
@@ -2457,10 +2198,9 @@ const de_CreateScheduledActionCommandError = async (output, context) => {
2457
2198
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
2458
2199
  default:
2459
2200
  const parsedBody = parsedOutput.body;
2460
- throwDefaultError({
2201
+ return throwDefaultError({
2461
2202
  output,
2462
2203
  parsedBody: parsedBody.Error,
2463
- exceptionCtor: __BaseException,
2464
2204
  errorCode,
2465
2205
  });
2466
2206
  }
@@ -2476,7 +2216,7 @@ export const de_CreateSnapshotCopyGrantCommand = async (output, context) => {
2476
2216
  $metadata: deserializeMetadata(output),
2477
2217
  ...contents,
2478
2218
  };
2479
- return Promise.resolve(response);
2219
+ return response;
2480
2220
  };
2481
2221
  const de_CreateSnapshotCopyGrantCommandError = async (output, context) => {
2482
2222
  const parsedOutput = {
@@ -2505,10 +2245,9 @@ const de_CreateSnapshotCopyGrantCommandError = async (output, context) => {
2505
2245
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2506
2246
  default:
2507
2247
  const parsedBody = parsedOutput.body;
2508
- throwDefaultError({
2248
+ return throwDefaultError({
2509
2249
  output,
2510
2250
  parsedBody: parsedBody.Error,
2511
- exceptionCtor: __BaseException,
2512
2251
  errorCode,
2513
2252
  });
2514
2253
  }
@@ -2524,7 +2263,7 @@ export const de_CreateSnapshotScheduleCommand = async (output, context) => {
2524
2263
  $metadata: deserializeMetadata(output),
2525
2264
  ...contents,
2526
2265
  };
2527
- return Promise.resolve(response);
2266
+ return response;
2528
2267
  };
2529
2268
  const de_CreateSnapshotScheduleCommandError = async (output, context) => {
2530
2269
  const parsedOutput = {
@@ -2553,10 +2292,9 @@ const de_CreateSnapshotScheduleCommandError = async (output, context) => {
2553
2292
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2554
2293
  default:
2555
2294
  const parsedBody = parsedOutput.body;
2556
- throwDefaultError({
2295
+ return throwDefaultError({
2557
2296
  output,
2558
2297
  parsedBody: parsedBody.Error,
2559
- exceptionCtor: __BaseException,
2560
2298
  errorCode,
2561
2299
  });
2562
2300
  }
@@ -2569,7 +2307,7 @@ export const de_CreateTagsCommand = async (output, context) => {
2569
2307
  const response = {
2570
2308
  $metadata: deserializeMetadata(output),
2571
2309
  };
2572
- return Promise.resolve(response);
2310
+ return response;
2573
2311
  };
2574
2312
  const de_CreateTagsCommandError = async (output, context) => {
2575
2313
  const parsedOutput = {
@@ -2592,10 +2330,9 @@ const de_CreateTagsCommandError = async (output, context) => {
2592
2330
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2593
2331
  default:
2594
2332
  const parsedBody = parsedOutput.body;
2595
- throwDefaultError({
2333
+ return throwDefaultError({
2596
2334
  output,
2597
2335
  parsedBody: parsedBody.Error,
2598
- exceptionCtor: __BaseException,
2599
2336
  errorCode,
2600
2337
  });
2601
2338
  }
@@ -2611,7 +2348,7 @@ export const de_CreateUsageLimitCommand = async (output, context) => {
2611
2348
  $metadata: deserializeMetadata(output),
2612
2349
  ...contents,
2613
2350
  };
2614
- return Promise.resolve(response);
2351
+ return response;
2615
2352
  };
2616
2353
  const de_CreateUsageLimitCommandError = async (output, context) => {
2617
2354
  const parsedOutput = {
@@ -2643,10 +2380,9 @@ const de_CreateUsageLimitCommandError = async (output, context) => {
2643
2380
  throw await de_UsageLimitAlreadyExistsFaultRes(parsedOutput, context);
2644
2381
  default:
2645
2382
  const parsedBody = parsedOutput.body;
2646
- throwDefaultError({
2383
+ return throwDefaultError({
2647
2384
  output,
2648
2385
  parsedBody: parsedBody.Error,
2649
- exceptionCtor: __BaseException,
2650
2386
  errorCode,
2651
2387
  });
2652
2388
  }
@@ -2662,7 +2398,7 @@ export const de_DeauthorizeDataShareCommand = async (output, context) => {
2662
2398
  $metadata: deserializeMetadata(output),
2663
2399
  ...contents,
2664
2400
  };
2665
- return Promise.resolve(response);
2401
+ return response;
2666
2402
  };
2667
2403
  const de_DeauthorizeDataShareCommandError = async (output, context) => {
2668
2404
  const parsedOutput = {
@@ -2676,10 +2412,9 @@ const de_DeauthorizeDataShareCommandError = async (output, context) => {
2676
2412
  throw await de_InvalidDataShareFaultRes(parsedOutput, context);
2677
2413
  default:
2678
2414
  const parsedBody = parsedOutput.body;
2679
- throwDefaultError({
2415
+ return throwDefaultError({
2680
2416
  output,
2681
2417
  parsedBody: parsedBody.Error,
2682
- exceptionCtor: __BaseException,
2683
2418
  errorCode,
2684
2419
  });
2685
2420
  }
@@ -2695,7 +2430,7 @@ export const de_DeleteAuthenticationProfileCommand = async (output, context) =>
2695
2430
  $metadata: deserializeMetadata(output),
2696
2431
  ...contents,
2697
2432
  };
2698
- return Promise.resolve(response);
2433
+ return response;
2699
2434
  };
2700
2435
  const de_DeleteAuthenticationProfileCommandError = async (output, context) => {
2701
2436
  const parsedOutput = {
@@ -2712,10 +2447,9 @@ const de_DeleteAuthenticationProfileCommandError = async (output, context) => {
2712
2447
  throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
2713
2448
  default:
2714
2449
  const parsedBody = parsedOutput.body;
2715
- throwDefaultError({
2450
+ return throwDefaultError({
2716
2451
  output,
2717
2452
  parsedBody: parsedBody.Error,
2718
- exceptionCtor: __BaseException,
2719
2453
  errorCode,
2720
2454
  });
2721
2455
  }
@@ -2731,7 +2465,7 @@ export const de_DeleteClusterCommand = async (output, context) => {
2731
2465
  $metadata: deserializeMetadata(output),
2732
2466
  ...contents,
2733
2467
  };
2734
- return Promise.resolve(response);
2468
+ return response;
2735
2469
  };
2736
2470
  const de_DeleteClusterCommandError = async (output, context) => {
2737
2471
  const parsedOutput = {
@@ -2757,10 +2491,9 @@ const de_DeleteClusterCommandError = async (output, context) => {
2757
2491
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
2758
2492
  default:
2759
2493
  const parsedBody = parsedOutput.body;
2760
- throwDefaultError({
2494
+ return throwDefaultError({
2761
2495
  output,
2762
2496
  parsedBody: parsedBody.Error,
2763
- exceptionCtor: __BaseException,
2764
2497
  errorCode,
2765
2498
  });
2766
2499
  }
@@ -2773,7 +2506,7 @@ export const de_DeleteClusterParameterGroupCommand = async (output, context) =>
2773
2506
  const response = {
2774
2507
  $metadata: deserializeMetadata(output),
2775
2508
  };
2776
- return Promise.resolve(response);
2509
+ return response;
2777
2510
  };
2778
2511
  const de_DeleteClusterParameterGroupCommandError = async (output, context) => {
2779
2512
  const parsedOutput = {
@@ -2790,10 +2523,9 @@ const de_DeleteClusterParameterGroupCommandError = async (output, context) => {
2790
2523
  throw await de_InvalidClusterParameterGroupStateFaultRes(parsedOutput, context);
2791
2524
  default:
2792
2525
  const parsedBody = parsedOutput.body;
2793
- throwDefaultError({
2526
+ return throwDefaultError({
2794
2527
  output,
2795
2528
  parsedBody: parsedBody.Error,
2796
- exceptionCtor: __BaseException,
2797
2529
  errorCode,
2798
2530
  });
2799
2531
  }
@@ -2806,7 +2538,7 @@ export const de_DeleteClusterSecurityGroupCommand = async (output, context) => {
2806
2538
  const response = {
2807
2539
  $metadata: deserializeMetadata(output),
2808
2540
  };
2809
- return Promise.resolve(response);
2541
+ return response;
2810
2542
  };
2811
2543
  const de_DeleteClusterSecurityGroupCommandError = async (output, context) => {
2812
2544
  const parsedOutput = {
@@ -2823,10 +2555,9 @@ const de_DeleteClusterSecurityGroupCommandError = async (output, context) => {
2823
2555
  throw await de_InvalidClusterSecurityGroupStateFaultRes(parsedOutput, context);
2824
2556
  default:
2825
2557
  const parsedBody = parsedOutput.body;
2826
- throwDefaultError({
2558
+ return throwDefaultError({
2827
2559
  output,
2828
2560
  parsedBody: parsedBody.Error,
2829
- exceptionCtor: __BaseException,
2830
2561
  errorCode,
2831
2562
  });
2832
2563
  }
@@ -2842,7 +2573,7 @@ export const de_DeleteClusterSnapshotCommand = async (output, context) => {
2842
2573
  $metadata: deserializeMetadata(output),
2843
2574
  ...contents,
2844
2575
  };
2845
- return Promise.resolve(response);
2576
+ return response;
2846
2577
  };
2847
2578
  const de_DeleteClusterSnapshotCommandError = async (output, context) => {
2848
2579
  const parsedOutput = {
@@ -2859,10 +2590,9 @@ const de_DeleteClusterSnapshotCommandError = async (output, context) => {
2859
2590
  throw await de_InvalidClusterSnapshotStateFaultRes(parsedOutput, context);
2860
2591
  default:
2861
2592
  const parsedBody = parsedOutput.body;
2862
- throwDefaultError({
2593
+ return throwDefaultError({
2863
2594
  output,
2864
2595
  parsedBody: parsedBody.Error,
2865
- exceptionCtor: __BaseException,
2866
2596
  errorCode,
2867
2597
  });
2868
2598
  }
@@ -2875,7 +2605,7 @@ export const de_DeleteClusterSubnetGroupCommand = async (output, context) => {
2875
2605
  const response = {
2876
2606
  $metadata: deserializeMetadata(output),
2877
2607
  };
2878
- return Promise.resolve(response);
2608
+ return response;
2879
2609
  };
2880
2610
  const de_DeleteClusterSubnetGroupCommandError = async (output, context) => {
2881
2611
  const parsedOutput = {
@@ -2895,10 +2625,9 @@ const de_DeleteClusterSubnetGroupCommandError = async (output, context) => {
2895
2625
  throw await de_InvalidClusterSubnetStateFaultRes(parsedOutput, context);
2896
2626
  default:
2897
2627
  const parsedBody = parsedOutput.body;
2898
- throwDefaultError({
2628
+ return throwDefaultError({
2899
2629
  output,
2900
2630
  parsedBody: parsedBody.Error,
2901
- exceptionCtor: __BaseException,
2902
2631
  errorCode,
2903
2632
  });
2904
2633
  }
@@ -2914,7 +2643,7 @@ export const de_DeleteEndpointAccessCommand = async (output, context) => {
2914
2643
  $metadata: deserializeMetadata(output),
2915
2644
  ...contents,
2916
2645
  };
2917
- return Promise.resolve(response);
2646
+ return response;
2918
2647
  };
2919
2648
  const de_DeleteEndpointAccessCommandError = async (output, context) => {
2920
2649
  const parsedOutput = {
@@ -2940,10 +2669,9 @@ const de_DeleteEndpointAccessCommandError = async (output, context) => {
2940
2669
  throw await de_InvalidEndpointStateFaultRes(parsedOutput, context);
2941
2670
  default:
2942
2671
  const parsedBody = parsedOutput.body;
2943
- throwDefaultError({
2672
+ return throwDefaultError({
2944
2673
  output,
2945
2674
  parsedBody: parsedBody.Error,
2946
- exceptionCtor: __BaseException,
2947
2675
  errorCode,
2948
2676
  });
2949
2677
  }
@@ -2956,7 +2684,7 @@ export const de_DeleteEventSubscriptionCommand = async (output, context) => {
2956
2684
  const response = {
2957
2685
  $metadata: deserializeMetadata(output),
2958
2686
  };
2959
- return Promise.resolve(response);
2687
+ return response;
2960
2688
  };
2961
2689
  const de_DeleteEventSubscriptionCommandError = async (output, context) => {
2962
2690
  const parsedOutput = {
@@ -2973,10 +2701,9 @@ const de_DeleteEventSubscriptionCommandError = async (output, context) => {
2973
2701
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
2974
2702
  default:
2975
2703
  const parsedBody = parsedOutput.body;
2976
- throwDefaultError({
2704
+ return throwDefaultError({
2977
2705
  output,
2978
2706
  parsedBody: parsedBody.Error,
2979
- exceptionCtor: __BaseException,
2980
2707
  errorCode,
2981
2708
  });
2982
2709
  }
@@ -2989,7 +2716,7 @@ export const de_DeleteHsmClientCertificateCommand = async (output, context) => {
2989
2716
  const response = {
2990
2717
  $metadata: deserializeMetadata(output),
2991
2718
  };
2992
- return Promise.resolve(response);
2719
+ return response;
2993
2720
  };
2994
2721
  const de_DeleteHsmClientCertificateCommandError = async (output, context) => {
2995
2722
  const parsedOutput = {
@@ -3006,10 +2733,9 @@ const de_DeleteHsmClientCertificateCommandError = async (output, context) => {
3006
2733
  throw await de_InvalidHsmClientCertificateStateFaultRes(parsedOutput, context);
3007
2734
  default:
3008
2735
  const parsedBody = parsedOutput.body;
3009
- throwDefaultError({
2736
+ return throwDefaultError({
3010
2737
  output,
3011
2738
  parsedBody: parsedBody.Error,
3012
- exceptionCtor: __BaseException,
3013
2739
  errorCode,
3014
2740
  });
3015
2741
  }
@@ -3022,7 +2748,7 @@ export const de_DeleteHsmConfigurationCommand = async (output, context) => {
3022
2748
  const response = {
3023
2749
  $metadata: deserializeMetadata(output),
3024
2750
  };
3025
- return Promise.resolve(response);
2751
+ return response;
3026
2752
  };
3027
2753
  const de_DeleteHsmConfigurationCommandError = async (output, context) => {
3028
2754
  const parsedOutput = {
@@ -3039,10 +2765,9 @@ const de_DeleteHsmConfigurationCommandError = async (output, context) => {
3039
2765
  throw await de_InvalidHsmConfigurationStateFaultRes(parsedOutput, context);
3040
2766
  default:
3041
2767
  const parsedBody = parsedOutput.body;
3042
- throwDefaultError({
2768
+ return throwDefaultError({
3043
2769
  output,
3044
2770
  parsedBody: parsedBody.Error,
3045
- exceptionCtor: __BaseException,
3046
2771
  errorCode,
3047
2772
  });
3048
2773
  }
@@ -3058,7 +2783,7 @@ export const de_DeletePartnerCommand = async (output, context) => {
3058
2783
  $metadata: deserializeMetadata(output),
3059
2784
  ...contents,
3060
2785
  };
3061
- return Promise.resolve(response);
2786
+ return response;
3062
2787
  };
3063
2788
  const de_DeletePartnerCommandError = async (output, context) => {
3064
2789
  const parsedOutput = {
@@ -3078,10 +2803,9 @@ const de_DeletePartnerCommandError = async (output, context) => {
3078
2803
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
3079
2804
  default:
3080
2805
  const parsedBody = parsedOutput.body;
3081
- throwDefaultError({
2806
+ return throwDefaultError({
3082
2807
  output,
3083
2808
  parsedBody: parsedBody.Error,
3084
- exceptionCtor: __BaseException,
3085
2809
  errorCode,
3086
2810
  });
3087
2811
  }
@@ -3094,7 +2818,7 @@ export const de_DeleteScheduledActionCommand = async (output, context) => {
3094
2818
  const response = {
3095
2819
  $metadata: deserializeMetadata(output),
3096
2820
  };
3097
- return Promise.resolve(response);
2821
+ return response;
3098
2822
  };
3099
2823
  const de_DeleteScheduledActionCommandError = async (output, context) => {
3100
2824
  const parsedOutput = {
@@ -3111,10 +2835,9 @@ const de_DeleteScheduledActionCommandError = async (output, context) => {
3111
2835
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
3112
2836
  default:
3113
2837
  const parsedBody = parsedOutput.body;
3114
- throwDefaultError({
2838
+ return throwDefaultError({
3115
2839
  output,
3116
2840
  parsedBody: parsedBody.Error,
3117
- exceptionCtor: __BaseException,
3118
2841
  errorCode,
3119
2842
  });
3120
2843
  }
@@ -3127,7 +2850,7 @@ export const de_DeleteSnapshotCopyGrantCommand = async (output, context) => {
3127
2850
  const response = {
3128
2851
  $metadata: deserializeMetadata(output),
3129
2852
  };
3130
- return Promise.resolve(response);
2853
+ return response;
3131
2854
  };
3132
2855
  const de_DeleteSnapshotCopyGrantCommandError = async (output, context) => {
3133
2856
  const parsedOutput = {
@@ -3144,10 +2867,9 @@ const de_DeleteSnapshotCopyGrantCommandError = async (output, context) => {
3144
2867
  throw await de_SnapshotCopyGrantNotFoundFaultRes(parsedOutput, context);
3145
2868
  default:
3146
2869
  const parsedBody = parsedOutput.body;
3147
- throwDefaultError({
2870
+ return throwDefaultError({
3148
2871
  output,
3149
2872
  parsedBody: parsedBody.Error,
3150
- exceptionCtor: __BaseException,
3151
2873
  errorCode,
3152
2874
  });
3153
2875
  }
@@ -3160,7 +2882,7 @@ export const de_DeleteSnapshotScheduleCommand = async (output, context) => {
3160
2882
  const response = {
3161
2883
  $metadata: deserializeMetadata(output),
3162
2884
  };
3163
- return Promise.resolve(response);
2885
+ return response;
3164
2886
  };
3165
2887
  const de_DeleteSnapshotScheduleCommandError = async (output, context) => {
3166
2888
  const parsedOutput = {
@@ -3177,10 +2899,9 @@ const de_DeleteSnapshotScheduleCommandError = async (output, context) => {
3177
2899
  throw await de_SnapshotScheduleNotFoundFaultRes(parsedOutput, context);
3178
2900
  default:
3179
2901
  const parsedBody = parsedOutput.body;
3180
- throwDefaultError({
2902
+ return throwDefaultError({
3181
2903
  output,
3182
2904
  parsedBody: parsedBody.Error,
3183
- exceptionCtor: __BaseException,
3184
2905
  errorCode,
3185
2906
  });
3186
2907
  }
@@ -3193,7 +2914,7 @@ export const de_DeleteTagsCommand = async (output, context) => {
3193
2914
  const response = {
3194
2915
  $metadata: deserializeMetadata(output),
3195
2916
  };
3196
- return Promise.resolve(response);
2917
+ return response;
3197
2918
  };
3198
2919
  const de_DeleteTagsCommandError = async (output, context) => {
3199
2920
  const parsedOutput = {
@@ -3210,10 +2931,9 @@ const de_DeleteTagsCommandError = async (output, context) => {
3210
2931
  throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
3211
2932
  default:
3212
2933
  const parsedBody = parsedOutput.body;
3213
- throwDefaultError({
2934
+ return throwDefaultError({
3214
2935
  output,
3215
2936
  parsedBody: parsedBody.Error,
3216
- exceptionCtor: __BaseException,
3217
2937
  errorCode,
3218
2938
  });
3219
2939
  }
@@ -3226,7 +2946,7 @@ export const de_DeleteUsageLimitCommand = async (output, context) => {
3226
2946
  const response = {
3227
2947
  $metadata: deserializeMetadata(output),
3228
2948
  };
3229
- return Promise.resolve(response);
2949
+ return response;
3230
2950
  };
3231
2951
  const de_DeleteUsageLimitCommandError = async (output, context) => {
3232
2952
  const parsedOutput = {
@@ -3243,10 +2963,9 @@ const de_DeleteUsageLimitCommandError = async (output, context) => {
3243
2963
  throw await de_UsageLimitNotFoundFaultRes(parsedOutput, context);
3244
2964
  default:
3245
2965
  const parsedBody = parsedOutput.body;
3246
- throwDefaultError({
2966
+ return throwDefaultError({
3247
2967
  output,
3248
2968
  parsedBody: parsedBody.Error,
3249
- exceptionCtor: __BaseException,
3250
2969
  errorCode,
3251
2970
  });
3252
2971
  }
@@ -3262,7 +2981,7 @@ export const de_DescribeAccountAttributesCommand = async (output, context) => {
3262
2981
  $metadata: deserializeMetadata(output),
3263
2982
  ...contents,
3264
2983
  };
3265
- return Promise.resolve(response);
2984
+ return response;
3266
2985
  };
3267
2986
  const de_DescribeAccountAttributesCommandError = async (output, context) => {
3268
2987
  const parsedOutput = {
@@ -3271,10 +2990,9 @@ const de_DescribeAccountAttributesCommandError = async (output, context) => {
3271
2990
  };
3272
2991
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3273
2992
  const parsedBody = parsedOutput.body;
3274
- throwDefaultError({
2993
+ return throwDefaultError({
3275
2994
  output,
3276
2995
  parsedBody: parsedBody.Error,
3277
- exceptionCtor: __BaseException,
3278
2996
  errorCode,
3279
2997
  });
3280
2998
  };
@@ -3289,7 +3007,7 @@ export const de_DescribeAuthenticationProfilesCommand = async (output, context)
3289
3007
  $metadata: deserializeMetadata(output),
3290
3008
  ...contents,
3291
3009
  };
3292
- return Promise.resolve(response);
3010
+ return response;
3293
3011
  };
3294
3012
  const de_DescribeAuthenticationProfilesCommandError = async (output, context) => {
3295
3013
  const parsedOutput = {
@@ -3306,10 +3024,9 @@ const de_DescribeAuthenticationProfilesCommandError = async (output, context) =>
3306
3024
  throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
3307
3025
  default:
3308
3026
  const parsedBody = parsedOutput.body;
3309
- throwDefaultError({
3027
+ return throwDefaultError({
3310
3028
  output,
3311
3029
  parsedBody: parsedBody.Error,
3312
- exceptionCtor: __BaseException,
3313
3030
  errorCode,
3314
3031
  });
3315
3032
  }
@@ -3325,7 +3042,7 @@ export const de_DescribeClusterDbRevisionsCommand = async (output, context) => {
3325
3042
  $metadata: deserializeMetadata(output),
3326
3043
  ...contents,
3327
3044
  };
3328
- return Promise.resolve(response);
3045
+ return response;
3329
3046
  };
3330
3047
  const de_DescribeClusterDbRevisionsCommandError = async (output, context) => {
3331
3048
  const parsedOutput = {
@@ -3342,10 +3059,9 @@ const de_DescribeClusterDbRevisionsCommandError = async (output, context) => {
3342
3059
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
3343
3060
  default:
3344
3061
  const parsedBody = parsedOutput.body;
3345
- throwDefaultError({
3062
+ return throwDefaultError({
3346
3063
  output,
3347
3064
  parsedBody: parsedBody.Error,
3348
- exceptionCtor: __BaseException,
3349
3065
  errorCode,
3350
3066
  });
3351
3067
  }
@@ -3361,7 +3077,7 @@ export const de_DescribeClusterParameterGroupsCommand = async (output, context)
3361
3077
  $metadata: deserializeMetadata(output),
3362
3078
  ...contents,
3363
3079
  };
3364
- return Promise.resolve(response);
3080
+ return response;
3365
3081
  };
3366
3082
  const de_DescribeClusterParameterGroupsCommandError = async (output, context) => {
3367
3083
  const parsedOutput = {
@@ -3378,10 +3094,9 @@ const de_DescribeClusterParameterGroupsCommandError = async (output, context) =>
3378
3094
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3379
3095
  default:
3380
3096
  const parsedBody = parsedOutput.body;
3381
- throwDefaultError({
3097
+ return throwDefaultError({
3382
3098
  output,
3383
3099
  parsedBody: parsedBody.Error,
3384
- exceptionCtor: __BaseException,
3385
3100
  errorCode,
3386
3101
  });
3387
3102
  }
@@ -3397,7 +3112,7 @@ export const de_DescribeClusterParametersCommand = async (output, context) => {
3397
3112
  $metadata: deserializeMetadata(output),
3398
3113
  ...contents,
3399
3114
  };
3400
- return Promise.resolve(response);
3115
+ return response;
3401
3116
  };
3402
3117
  const de_DescribeClusterParametersCommandError = async (output, context) => {
3403
3118
  const parsedOutput = {
@@ -3411,10 +3126,9 @@ const de_DescribeClusterParametersCommandError = async (output, context) => {
3411
3126
  throw await de_ClusterParameterGroupNotFoundFaultRes(parsedOutput, context);
3412
3127
  default:
3413
3128
  const parsedBody = parsedOutput.body;
3414
- throwDefaultError({
3129
+ return throwDefaultError({
3415
3130
  output,
3416
3131
  parsedBody: parsedBody.Error,
3417
- exceptionCtor: __BaseException,
3418
3132
  errorCode,
3419
3133
  });
3420
3134
  }
@@ -3430,7 +3144,7 @@ export const de_DescribeClustersCommand = async (output, context) => {
3430
3144
  $metadata: deserializeMetadata(output),
3431
3145
  ...contents,
3432
3146
  };
3433
- return Promise.resolve(response);
3147
+ return response;
3434
3148
  };
3435
3149
  const de_DescribeClustersCommandError = async (output, context) => {
3436
3150
  const parsedOutput = {
@@ -3447,10 +3161,9 @@ const de_DescribeClustersCommandError = async (output, context) => {
3447
3161
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3448
3162
  default:
3449
3163
  const parsedBody = parsedOutput.body;
3450
- throwDefaultError({
3164
+ return throwDefaultError({
3451
3165
  output,
3452
3166
  parsedBody: parsedBody.Error,
3453
- exceptionCtor: __BaseException,
3454
3167
  errorCode,
3455
3168
  });
3456
3169
  }
@@ -3466,7 +3179,7 @@ export const de_DescribeClusterSecurityGroupsCommand = async (output, context) =
3466
3179
  $metadata: deserializeMetadata(output),
3467
3180
  ...contents,
3468
3181
  };
3469
- return Promise.resolve(response);
3182
+ return response;
3470
3183
  };
3471
3184
  const de_DescribeClusterSecurityGroupsCommandError = async (output, context) => {
3472
3185
  const parsedOutput = {
@@ -3483,10 +3196,9 @@ const de_DescribeClusterSecurityGroupsCommandError = async (output, context) =>
3483
3196
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3484
3197
  default:
3485
3198
  const parsedBody = parsedOutput.body;
3486
- throwDefaultError({
3199
+ return throwDefaultError({
3487
3200
  output,
3488
3201
  parsedBody: parsedBody.Error,
3489
- exceptionCtor: __BaseException,
3490
3202
  errorCode,
3491
3203
  });
3492
3204
  }
@@ -3502,7 +3214,7 @@ export const de_DescribeClusterSnapshotsCommand = async (output, context) => {
3502
3214
  $metadata: deserializeMetadata(output),
3503
3215
  ...contents,
3504
3216
  };
3505
- return Promise.resolve(response);
3217
+ return response;
3506
3218
  };
3507
3219
  const de_DescribeClusterSnapshotsCommandError = async (output, context) => {
3508
3220
  const parsedOutput = {
@@ -3525,10 +3237,9 @@ const de_DescribeClusterSnapshotsCommandError = async (output, context) => {
3525
3237
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
3526
3238
  default:
3527
3239
  const parsedBody = parsedOutput.body;
3528
- throwDefaultError({
3240
+ return throwDefaultError({
3529
3241
  output,
3530
3242
  parsedBody: parsedBody.Error,
3531
- exceptionCtor: __BaseException,
3532
3243
  errorCode,
3533
3244
  });
3534
3245
  }
@@ -3544,7 +3255,7 @@ export const de_DescribeClusterSubnetGroupsCommand = async (output, context) =>
3544
3255
  $metadata: deserializeMetadata(output),
3545
3256
  ...contents,
3546
3257
  };
3547
- return Promise.resolve(response);
3258
+ return response;
3548
3259
  };
3549
3260
  const de_DescribeClusterSubnetGroupsCommandError = async (output, context) => {
3550
3261
  const parsedOutput = {
@@ -3561,10 +3272,9 @@ const de_DescribeClusterSubnetGroupsCommandError = async (output, context) => {
3561
3272
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3562
3273
  default:
3563
3274
  const parsedBody = parsedOutput.body;
3564
- throwDefaultError({
3275
+ return throwDefaultError({
3565
3276
  output,
3566
3277
  parsedBody: parsedBody.Error,
3567
- exceptionCtor: __BaseException,
3568
3278
  errorCode,
3569
3279
  });
3570
3280
  }
@@ -3580,7 +3290,7 @@ export const de_DescribeClusterTracksCommand = async (output, context) => {
3580
3290
  $metadata: deserializeMetadata(output),
3581
3291
  ...contents,
3582
3292
  };
3583
- return Promise.resolve(response);
3293
+ return response;
3584
3294
  };
3585
3295
  const de_DescribeClusterTracksCommandError = async (output, context) => {
3586
3296
  const parsedOutput = {
@@ -3597,10 +3307,9 @@ const de_DescribeClusterTracksCommandError = async (output, context) => {
3597
3307
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
3598
3308
  default:
3599
3309
  const parsedBody = parsedOutput.body;
3600
- throwDefaultError({
3310
+ return throwDefaultError({
3601
3311
  output,
3602
3312
  parsedBody: parsedBody.Error,
3603
- exceptionCtor: __BaseException,
3604
3313
  errorCode,
3605
3314
  });
3606
3315
  }
@@ -3616,7 +3325,7 @@ export const de_DescribeClusterVersionsCommand = async (output, context) => {
3616
3325
  $metadata: deserializeMetadata(output),
3617
3326
  ...contents,
3618
3327
  };
3619
- return Promise.resolve(response);
3328
+ return response;
3620
3329
  };
3621
3330
  const de_DescribeClusterVersionsCommandError = async (output, context) => {
3622
3331
  const parsedOutput = {
@@ -3625,10 +3334,9 @@ const de_DescribeClusterVersionsCommandError = async (output, context) => {
3625
3334
  };
3626
3335
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3627
3336
  const parsedBody = parsedOutput.body;
3628
- throwDefaultError({
3337
+ return throwDefaultError({
3629
3338
  output,
3630
3339
  parsedBody: parsedBody.Error,
3631
- exceptionCtor: __BaseException,
3632
3340
  errorCode,
3633
3341
  });
3634
3342
  };
@@ -3643,7 +3351,7 @@ export const de_DescribeDataSharesCommand = async (output, context) => {
3643
3351
  $metadata: deserializeMetadata(output),
3644
3352
  ...contents,
3645
3353
  };
3646
- return Promise.resolve(response);
3354
+ return response;
3647
3355
  };
3648
3356
  const de_DescribeDataSharesCommandError = async (output, context) => {
3649
3357
  const parsedOutput = {
@@ -3657,10 +3365,9 @@ const de_DescribeDataSharesCommandError = async (output, context) => {
3657
3365
  throw await de_InvalidDataShareFaultRes(parsedOutput, context);
3658
3366
  default:
3659
3367
  const parsedBody = parsedOutput.body;
3660
- throwDefaultError({
3368
+ return throwDefaultError({
3661
3369
  output,
3662
3370
  parsedBody: parsedBody.Error,
3663
- exceptionCtor: __BaseException,
3664
3371
  errorCode,
3665
3372
  });
3666
3373
  }
@@ -3676,7 +3383,7 @@ export const de_DescribeDataSharesForConsumerCommand = async (output, context) =
3676
3383
  $metadata: deserializeMetadata(output),
3677
3384
  ...contents,
3678
3385
  };
3679
- return Promise.resolve(response);
3386
+ return response;
3680
3387
  };
3681
3388
  const de_DescribeDataSharesForConsumerCommandError = async (output, context) => {
3682
3389
  const parsedOutput = {
@@ -3690,10 +3397,9 @@ const de_DescribeDataSharesForConsumerCommandError = async (output, context) =>
3690
3397
  throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
3691
3398
  default:
3692
3399
  const parsedBody = parsedOutput.body;
3693
- throwDefaultError({
3400
+ return throwDefaultError({
3694
3401
  output,
3695
3402
  parsedBody: parsedBody.Error,
3696
- exceptionCtor: __BaseException,
3697
3403
  errorCode,
3698
3404
  });
3699
3405
  }
@@ -3709,7 +3415,7 @@ export const de_DescribeDataSharesForProducerCommand = async (output, context) =
3709
3415
  $metadata: deserializeMetadata(output),
3710
3416
  ...contents,
3711
3417
  };
3712
- return Promise.resolve(response);
3418
+ return response;
3713
3419
  };
3714
3420
  const de_DescribeDataSharesForProducerCommandError = async (output, context) => {
3715
3421
  const parsedOutput = {
@@ -3723,10 +3429,9 @@ const de_DescribeDataSharesForProducerCommandError = async (output, context) =>
3723
3429
  throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
3724
3430
  default:
3725
3431
  const parsedBody = parsedOutput.body;
3726
- throwDefaultError({
3432
+ return throwDefaultError({
3727
3433
  output,
3728
3434
  parsedBody: parsedBody.Error,
3729
- exceptionCtor: __BaseException,
3730
3435
  errorCode,
3731
3436
  });
3732
3437
  }
@@ -3742,7 +3447,7 @@ export const de_DescribeDefaultClusterParametersCommand = async (output, context
3742
3447
  $metadata: deserializeMetadata(output),
3743
3448
  ...contents,
3744
3449
  };
3745
- return Promise.resolve(response);
3450
+ return response;
3746
3451
  };
3747
3452
  const de_DescribeDefaultClusterParametersCommandError = async (output, context) => {
3748
3453
  const parsedOutput = {
@@ -3751,10 +3456,9 @@ const de_DescribeDefaultClusterParametersCommandError = async (output, context)
3751
3456
  };
3752
3457
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3753
3458
  const parsedBody = parsedOutput.body;
3754
- throwDefaultError({
3459
+ return throwDefaultError({
3755
3460
  output,
3756
3461
  parsedBody: parsedBody.Error,
3757
- exceptionCtor: __BaseException,
3758
3462
  errorCode,
3759
3463
  });
3760
3464
  };
@@ -3769,7 +3473,7 @@ export const de_DescribeEndpointAccessCommand = async (output, context) => {
3769
3473
  $metadata: deserializeMetadata(output),
3770
3474
  ...contents,
3771
3475
  };
3772
- return Promise.resolve(response);
3476
+ return response;
3773
3477
  };
3774
3478
  const de_DescribeEndpointAccessCommandError = async (output, context) => {
3775
3479
  const parsedOutput = {
@@ -3789,10 +3493,9 @@ const de_DescribeEndpointAccessCommandError = async (output, context) => {
3789
3493
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
3790
3494
  default:
3791
3495
  const parsedBody = parsedOutput.body;
3792
- throwDefaultError({
3496
+ return throwDefaultError({
3793
3497
  output,
3794
3498
  parsedBody: parsedBody.Error,
3795
- exceptionCtor: __BaseException,
3796
3499
  errorCode,
3797
3500
  });
3798
3501
  }
@@ -3808,7 +3511,7 @@ export const de_DescribeEndpointAuthorizationCommand = async (output, context) =
3808
3511
  $metadata: deserializeMetadata(output),
3809
3512
  ...contents,
3810
3513
  };
3811
- return Promise.resolve(response);
3514
+ return response;
3812
3515
  };
3813
3516
  const de_DescribeEndpointAuthorizationCommandError = async (output, context) => {
3814
3517
  const parsedOutput = {
@@ -3825,10 +3528,9 @@ const de_DescribeEndpointAuthorizationCommandError = async (output, context) =>
3825
3528
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
3826
3529
  default:
3827
3530
  const parsedBody = parsedOutput.body;
3828
- throwDefaultError({
3531
+ return throwDefaultError({
3829
3532
  output,
3830
3533
  parsedBody: parsedBody.Error,
3831
- exceptionCtor: __BaseException,
3832
3534
  errorCode,
3833
3535
  });
3834
3536
  }
@@ -3844,7 +3546,7 @@ export const de_DescribeEventCategoriesCommand = async (output, context) => {
3844
3546
  $metadata: deserializeMetadata(output),
3845
3547
  ...contents,
3846
3548
  };
3847
- return Promise.resolve(response);
3549
+ return response;
3848
3550
  };
3849
3551
  const de_DescribeEventCategoriesCommandError = async (output, context) => {
3850
3552
  const parsedOutput = {
@@ -3853,10 +3555,9 @@ const de_DescribeEventCategoriesCommandError = async (output, context) => {
3853
3555
  };
3854
3556
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3855
3557
  const parsedBody = parsedOutput.body;
3856
- throwDefaultError({
3558
+ return throwDefaultError({
3857
3559
  output,
3858
3560
  parsedBody: parsedBody.Error,
3859
- exceptionCtor: __BaseException,
3860
3561
  errorCode,
3861
3562
  });
3862
3563
  };
@@ -3871,7 +3572,7 @@ export const de_DescribeEventsCommand = async (output, context) => {
3871
3572
  $metadata: deserializeMetadata(output),
3872
3573
  ...contents,
3873
3574
  };
3874
- return Promise.resolve(response);
3575
+ return response;
3875
3576
  };
3876
3577
  const de_DescribeEventsCommandError = async (output, context) => {
3877
3578
  const parsedOutput = {
@@ -3880,10 +3581,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
3880
3581
  };
3881
3582
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3882
3583
  const parsedBody = parsedOutput.body;
3883
- throwDefaultError({
3584
+ return throwDefaultError({
3884
3585
  output,
3885
3586
  parsedBody: parsedBody.Error,
3886
- exceptionCtor: __BaseException,
3887
3587
  errorCode,
3888
3588
  });
3889
3589
  };
@@ -3898,7 +3598,7 @@ export const de_DescribeEventSubscriptionsCommand = async (output, context) => {
3898
3598
  $metadata: deserializeMetadata(output),
3899
3599
  ...contents,
3900
3600
  };
3901
- return Promise.resolve(response);
3601
+ return response;
3902
3602
  };
3903
3603
  const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
3904
3604
  const parsedOutput = {
@@ -3915,10 +3615,9 @@ const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
3915
3615
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
3916
3616
  default:
3917
3617
  const parsedBody = parsedOutput.body;
3918
- throwDefaultError({
3618
+ return throwDefaultError({
3919
3619
  output,
3920
3620
  parsedBody: parsedBody.Error,
3921
- exceptionCtor: __BaseException,
3922
3621
  errorCode,
3923
3622
  });
3924
3623
  }
@@ -3934,7 +3633,7 @@ export const de_DescribeHsmClientCertificatesCommand = async (output, context) =
3934
3633
  $metadata: deserializeMetadata(output),
3935
3634
  ...contents,
3936
3635
  };
3937
- return Promise.resolve(response);
3636
+ return response;
3938
3637
  };
3939
3638
  const de_DescribeHsmClientCertificatesCommandError = async (output, context) => {
3940
3639
  const parsedOutput = {
@@ -3951,10 +3650,9 @@ const de_DescribeHsmClientCertificatesCommandError = async (output, context) =>
3951
3650
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3952
3651
  default:
3953
3652
  const parsedBody = parsedOutput.body;
3954
- throwDefaultError({
3653
+ return throwDefaultError({
3955
3654
  output,
3956
3655
  parsedBody: parsedBody.Error,
3957
- exceptionCtor: __BaseException,
3958
3656
  errorCode,
3959
3657
  });
3960
3658
  }
@@ -3970,7 +3668,7 @@ export const de_DescribeHsmConfigurationsCommand = async (output, context) => {
3970
3668
  $metadata: deserializeMetadata(output),
3971
3669
  ...contents,
3972
3670
  };
3973
- return Promise.resolve(response);
3671
+ return response;
3974
3672
  };
3975
3673
  const de_DescribeHsmConfigurationsCommandError = async (output, context) => {
3976
3674
  const parsedOutput = {
@@ -3987,10 +3685,9 @@ const de_DescribeHsmConfigurationsCommandError = async (output, context) => {
3987
3685
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3988
3686
  default:
3989
3687
  const parsedBody = parsedOutput.body;
3990
- throwDefaultError({
3688
+ return throwDefaultError({
3991
3689
  output,
3992
3690
  parsedBody: parsedBody.Error,
3993
- exceptionCtor: __BaseException,
3994
3691
  errorCode,
3995
3692
  });
3996
3693
  }
@@ -4006,7 +3703,7 @@ export const de_DescribeLoggingStatusCommand = async (output, context) => {
4006
3703
  $metadata: deserializeMetadata(output),
4007
3704
  ...contents,
4008
3705
  };
4009
- return Promise.resolve(response);
3706
+ return response;
4010
3707
  };
4011
3708
  const de_DescribeLoggingStatusCommandError = async (output, context) => {
4012
3709
  const parsedOutput = {
@@ -4020,10 +3717,9 @@ const de_DescribeLoggingStatusCommandError = async (output, context) => {
4020
3717
  throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
4021
3718
  default:
4022
3719
  const parsedBody = parsedOutput.body;
4023
- throwDefaultError({
3720
+ return throwDefaultError({
4024
3721
  output,
4025
3722
  parsedBody: parsedBody.Error,
4026
- exceptionCtor: __BaseException,
4027
3723
  errorCode,
4028
3724
  });
4029
3725
  }
@@ -4039,7 +3735,7 @@ export const de_DescribeNodeConfigurationOptionsCommand = async (output, context
4039
3735
  $metadata: deserializeMetadata(output),
4040
3736
  ...contents,
4041
3737
  };
4042
- return Promise.resolve(response);
3738
+ return response;
4043
3739
  };
4044
3740
  const de_DescribeNodeConfigurationOptionsCommandError = async (output, context) => {
4045
3741
  const parsedOutput = {
@@ -4065,10 +3761,9 @@ const de_DescribeNodeConfigurationOptionsCommandError = async (output, context)
4065
3761
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4066
3762
  default:
4067
3763
  const parsedBody = parsedOutput.body;
4068
- throwDefaultError({
3764
+ return throwDefaultError({
4069
3765
  output,
4070
3766
  parsedBody: parsedBody.Error,
4071
- exceptionCtor: __BaseException,
4072
3767
  errorCode,
4073
3768
  });
4074
3769
  }
@@ -4084,7 +3779,7 @@ export const de_DescribeOrderableClusterOptionsCommand = async (output, context)
4084
3779
  $metadata: deserializeMetadata(output),
4085
3780
  ...contents,
4086
3781
  };
4087
- return Promise.resolve(response);
3782
+ return response;
4088
3783
  };
4089
3784
  const de_DescribeOrderableClusterOptionsCommandError = async (output, context) => {
4090
3785
  const parsedOutput = {
@@ -4093,10 +3788,9 @@ const de_DescribeOrderableClusterOptionsCommandError = async (output, context) =
4093
3788
  };
4094
3789
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4095
3790
  const parsedBody = parsedOutput.body;
4096
- throwDefaultError({
3791
+ return throwDefaultError({
4097
3792
  output,
4098
3793
  parsedBody: parsedBody.Error,
4099
- exceptionCtor: __BaseException,
4100
3794
  errorCode,
4101
3795
  });
4102
3796
  };
@@ -4111,7 +3805,7 @@ export const de_DescribePartnersCommand = async (output, context) => {
4111
3805
  $metadata: deserializeMetadata(output),
4112
3806
  ...contents,
4113
3807
  };
4114
- return Promise.resolve(response);
3808
+ return response;
4115
3809
  };
4116
3810
  const de_DescribePartnersCommandError = async (output, context) => {
4117
3811
  const parsedOutput = {
@@ -4128,10 +3822,9 @@ const de_DescribePartnersCommandError = async (output, context) => {
4128
3822
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
4129
3823
  default:
4130
3824
  const parsedBody = parsedOutput.body;
4131
- throwDefaultError({
3825
+ return throwDefaultError({
4132
3826
  output,
4133
3827
  parsedBody: parsedBody.Error,
4134
- exceptionCtor: __BaseException,
4135
3828
  errorCode,
4136
3829
  });
4137
3830
  }
@@ -4147,7 +3840,7 @@ export const de_DescribeReservedNodeExchangeStatusCommand = async (output, conte
4147
3840
  $metadata: deserializeMetadata(output),
4148
3841
  ...contents,
4149
3842
  };
4150
- return Promise.resolve(response);
3843
+ return response;
4151
3844
  };
4152
3845
  const de_DescribeReservedNodeExchangeStatusCommandError = async (output, context) => {
4153
3846
  const parsedOutput = {
@@ -4167,10 +3860,9 @@ const de_DescribeReservedNodeExchangeStatusCommandError = async (output, context
4167
3860
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4168
3861
  default:
4169
3862
  const parsedBody = parsedOutput.body;
4170
- throwDefaultError({
3863
+ return throwDefaultError({
4171
3864
  output,
4172
3865
  parsedBody: parsedBody.Error,
4173
- exceptionCtor: __BaseException,
4174
3866
  errorCode,
4175
3867
  });
4176
3868
  }
@@ -4186,7 +3878,7 @@ export const de_DescribeReservedNodeOfferingsCommand = async (output, context) =
4186
3878
  $metadata: deserializeMetadata(output),
4187
3879
  ...contents,
4188
3880
  };
4189
- return Promise.resolve(response);
3881
+ return response;
4190
3882
  };
4191
3883
  const de_DescribeReservedNodeOfferingsCommandError = async (output, context) => {
4192
3884
  const parsedOutput = {
@@ -4206,10 +3898,9 @@ const de_DescribeReservedNodeOfferingsCommandError = async (output, context) =>
4206
3898
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4207
3899
  default:
4208
3900
  const parsedBody = parsedOutput.body;
4209
- throwDefaultError({
3901
+ return throwDefaultError({
4210
3902
  output,
4211
3903
  parsedBody: parsedBody.Error,
4212
- exceptionCtor: __BaseException,
4213
3904
  errorCode,
4214
3905
  });
4215
3906
  }
@@ -4225,7 +3916,7 @@ export const de_DescribeReservedNodesCommand = async (output, context) => {
4225
3916
  $metadata: deserializeMetadata(output),
4226
3917
  ...contents,
4227
3918
  };
4228
- return Promise.resolve(response);
3919
+ return response;
4229
3920
  };
4230
3921
  const de_DescribeReservedNodesCommandError = async (output, context) => {
4231
3922
  const parsedOutput = {
@@ -4242,10 +3933,9 @@ const de_DescribeReservedNodesCommandError = async (output, context) => {
4242
3933
  throw await de_ReservedNodeNotFoundFaultRes(parsedOutput, context);
4243
3934
  default:
4244
3935
  const parsedBody = parsedOutput.body;
4245
- throwDefaultError({
3936
+ return throwDefaultError({
4246
3937
  output,
4247
3938
  parsedBody: parsedBody.Error,
4248
- exceptionCtor: __BaseException,
4249
3939
  errorCode,
4250
3940
  });
4251
3941
  }
@@ -4261,7 +3951,7 @@ export const de_DescribeResizeCommand = async (output, context) => {
4261
3951
  $metadata: deserializeMetadata(output),
4262
3952
  ...contents,
4263
3953
  };
4264
- return Promise.resolve(response);
3954
+ return response;
4265
3955
  };
4266
3956
  const de_DescribeResizeCommandError = async (output, context) => {
4267
3957
  const parsedOutput = {
@@ -4278,10 +3968,9 @@ const de_DescribeResizeCommandError = async (output, context) => {
4278
3968
  throw await de_ResizeNotFoundFaultRes(parsedOutput, context);
4279
3969
  default:
4280
3970
  const parsedBody = parsedOutput.body;
4281
- throwDefaultError({
3971
+ return throwDefaultError({
4282
3972
  output,
4283
3973
  parsedBody: parsedBody.Error,
4284
- exceptionCtor: __BaseException,
4285
3974
  errorCode,
4286
3975
  });
4287
3976
  }
@@ -4297,7 +3986,7 @@ export const de_DescribeScheduledActionsCommand = async (output, context) => {
4297
3986
  $metadata: deserializeMetadata(output),
4298
3987
  ...contents,
4299
3988
  };
4300
- return Promise.resolve(response);
3989
+ return response;
4301
3990
  };
4302
3991
  const de_DescribeScheduledActionsCommandError = async (output, context) => {
4303
3992
  const parsedOutput = {
@@ -4314,10 +4003,9 @@ const de_DescribeScheduledActionsCommandError = async (output, context) => {
4314
4003
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
4315
4004
  default:
4316
4005
  const parsedBody = parsedOutput.body;
4317
- throwDefaultError({
4006
+ return throwDefaultError({
4318
4007
  output,
4319
4008
  parsedBody: parsedBody.Error,
4320
- exceptionCtor: __BaseException,
4321
4009
  errorCode,
4322
4010
  });
4323
4011
  }
@@ -4333,7 +4021,7 @@ export const de_DescribeSnapshotCopyGrantsCommand = async (output, context) => {
4333
4021
  $metadata: deserializeMetadata(output),
4334
4022
  ...contents,
4335
4023
  };
4336
- return Promise.resolve(response);
4024
+ return response;
4337
4025
  };
4338
4026
  const de_DescribeSnapshotCopyGrantsCommandError = async (output, context) => {
4339
4027
  const parsedOutput = {
@@ -4350,10 +4038,9 @@ const de_DescribeSnapshotCopyGrantsCommandError = async (output, context) => {
4350
4038
  throw await de_SnapshotCopyGrantNotFoundFaultRes(parsedOutput, context);
4351
4039
  default:
4352
4040
  const parsedBody = parsedOutput.body;
4353
- throwDefaultError({
4041
+ return throwDefaultError({
4354
4042
  output,
4355
4043
  parsedBody: parsedBody.Error,
4356
- exceptionCtor: __BaseException,
4357
4044
  errorCode,
4358
4045
  });
4359
4046
  }
@@ -4369,7 +4056,7 @@ export const de_DescribeSnapshotSchedulesCommand = async (output, context) => {
4369
4056
  $metadata: deserializeMetadata(output),
4370
4057
  ...contents,
4371
4058
  };
4372
- return Promise.resolve(response);
4059
+ return response;
4373
4060
  };
4374
4061
  const de_DescribeSnapshotSchedulesCommandError = async (output, context) => {
4375
4062
  const parsedOutput = {
@@ -4378,10 +4065,9 @@ const de_DescribeSnapshotSchedulesCommandError = async (output, context) => {
4378
4065
  };
4379
4066
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4380
4067
  const parsedBody = parsedOutput.body;
4381
- throwDefaultError({
4068
+ return throwDefaultError({
4382
4069
  output,
4383
4070
  parsedBody: parsedBody.Error,
4384
- exceptionCtor: __BaseException,
4385
4071
  errorCode,
4386
4072
  });
4387
4073
  };
@@ -4396,7 +4082,7 @@ export const de_DescribeStorageCommand = async (output, context) => {
4396
4082
  $metadata: deserializeMetadata(output),
4397
4083
  ...contents,
4398
4084
  };
4399
- return Promise.resolve(response);
4085
+ return response;
4400
4086
  };
4401
4087
  const de_DescribeStorageCommandError = async (output, context) => {
4402
4088
  const parsedOutput = {
@@ -4405,10 +4091,9 @@ const de_DescribeStorageCommandError = async (output, context) => {
4405
4091
  };
4406
4092
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4407
4093
  const parsedBody = parsedOutput.body;
4408
- throwDefaultError({
4094
+ return throwDefaultError({
4409
4095
  output,
4410
4096
  parsedBody: parsedBody.Error,
4411
- exceptionCtor: __BaseException,
4412
4097
  errorCode,
4413
4098
  });
4414
4099
  };
@@ -4423,7 +4108,7 @@ export const de_DescribeTableRestoreStatusCommand = async (output, context) => {
4423
4108
  $metadata: deserializeMetadata(output),
4424
4109
  ...contents,
4425
4110
  };
4426
- return Promise.resolve(response);
4111
+ return response;
4427
4112
  };
4428
4113
  const de_DescribeTableRestoreStatusCommandError = async (output, context) => {
4429
4114
  const parsedOutput = {
@@ -4440,10 +4125,9 @@ const de_DescribeTableRestoreStatusCommandError = async (output, context) => {
4440
4125
  throw await de_TableRestoreNotFoundFaultRes(parsedOutput, context);
4441
4126
  default:
4442
4127
  const parsedBody = parsedOutput.body;
4443
- throwDefaultError({
4128
+ return throwDefaultError({
4444
4129
  output,
4445
4130
  parsedBody: parsedBody.Error,
4446
- exceptionCtor: __BaseException,
4447
4131
  errorCode,
4448
4132
  });
4449
4133
  }
@@ -4459,7 +4143,7 @@ export const de_DescribeTagsCommand = async (output, context) => {
4459
4143
  $metadata: deserializeMetadata(output),
4460
4144
  ...contents,
4461
4145
  };
4462
- return Promise.resolve(response);
4146
+ return response;
4463
4147
  };
4464
4148
  const de_DescribeTagsCommandError = async (output, context) => {
4465
4149
  const parsedOutput = {
@@ -4476,10 +4160,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
4476
4160
  throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
4477
4161
  default:
4478
4162
  const parsedBody = parsedOutput.body;
4479
- throwDefaultError({
4163
+ return throwDefaultError({
4480
4164
  output,
4481
4165
  parsedBody: parsedBody.Error,
4482
- exceptionCtor: __BaseException,
4483
4166
  errorCode,
4484
4167
  });
4485
4168
  }
@@ -4495,7 +4178,7 @@ export const de_DescribeUsageLimitsCommand = async (output, context) => {
4495
4178
  $metadata: deserializeMetadata(output),
4496
4179
  ...contents,
4497
4180
  };
4498
- return Promise.resolve(response);
4181
+ return response;
4499
4182
  };
4500
4183
  const de_DescribeUsageLimitsCommandError = async (output, context) => {
4501
4184
  const parsedOutput = {
@@ -4512,10 +4195,9 @@ const de_DescribeUsageLimitsCommandError = async (output, context) => {
4512
4195
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4513
4196
  default:
4514
4197
  const parsedBody = parsedOutput.body;
4515
- throwDefaultError({
4198
+ return throwDefaultError({
4516
4199
  output,
4517
4200
  parsedBody: parsedBody.Error,
4518
- exceptionCtor: __BaseException,
4519
4201
  errorCode,
4520
4202
  });
4521
4203
  }
@@ -4531,7 +4213,7 @@ export const de_DisableLoggingCommand = async (output, context) => {
4531
4213
  $metadata: deserializeMetadata(output),
4532
4214
  ...contents,
4533
4215
  };
4534
- return Promise.resolve(response);
4216
+ return response;
4535
4217
  };
4536
4218
  const de_DisableLoggingCommandError = async (output, context) => {
4537
4219
  const parsedOutput = {
@@ -4548,10 +4230,9 @@ const de_DisableLoggingCommandError = async (output, context) => {
4548
4230
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
4549
4231
  default:
4550
4232
  const parsedBody = parsedOutput.body;
4551
- throwDefaultError({
4233
+ return throwDefaultError({
4552
4234
  output,
4553
4235
  parsedBody: parsedBody.Error,
4554
- exceptionCtor: __BaseException,
4555
4236
  errorCode,
4556
4237
  });
4557
4238
  }
@@ -4567,7 +4248,7 @@ export const de_DisableSnapshotCopyCommand = async (output, context) => {
4567
4248
  $metadata: deserializeMetadata(output),
4568
4249
  ...contents,
4569
4250
  };
4570
- return Promise.resolve(response);
4251
+ return response;
4571
4252
  };
4572
4253
  const de_DisableSnapshotCopyCommandError = async (output, context) => {
4573
4254
  const parsedOutput = {
@@ -4590,10 +4271,9 @@ const de_DisableSnapshotCopyCommandError = async (output, context) => {
4590
4271
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
4591
4272
  default:
4592
4273
  const parsedBody = parsedOutput.body;
4593
- throwDefaultError({
4274
+ return throwDefaultError({
4594
4275
  output,
4595
4276
  parsedBody: parsedBody.Error,
4596
- exceptionCtor: __BaseException,
4597
4277
  errorCode,
4598
4278
  });
4599
4279
  }
@@ -4609,7 +4289,7 @@ export const de_DisassociateDataShareConsumerCommand = async (output, context) =
4609
4289
  $metadata: deserializeMetadata(output),
4610
4290
  ...contents,
4611
4291
  };
4612
- return Promise.resolve(response);
4292
+ return response;
4613
4293
  };
4614
4294
  const de_DisassociateDataShareConsumerCommandError = async (output, context) => {
4615
4295
  const parsedOutput = {
@@ -4626,10 +4306,9 @@ const de_DisassociateDataShareConsumerCommandError = async (output, context) =>
4626
4306
  throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
4627
4307
  default:
4628
4308
  const parsedBody = parsedOutput.body;
4629
- throwDefaultError({
4309
+ return throwDefaultError({
4630
4310
  output,
4631
4311
  parsedBody: parsedBody.Error,
4632
- exceptionCtor: __BaseException,
4633
4312
  errorCode,
4634
4313
  });
4635
4314
  }
@@ -4645,7 +4324,7 @@ export const de_EnableLoggingCommand = async (output, context) => {
4645
4324
  $metadata: deserializeMetadata(output),
4646
4325
  ...contents,
4647
4326
  };
4648
- return Promise.resolve(response);
4327
+ return response;
4649
4328
  };
4650
4329
  const de_EnableLoggingCommandError = async (output, context) => {
4651
4330
  const parsedOutput = {
@@ -4674,10 +4353,9 @@ const de_EnableLoggingCommandError = async (output, context) => {
4674
4353
  throw await de_InvalidS3KeyPrefixFaultRes(parsedOutput, context);
4675
4354
  default:
4676
4355
  const parsedBody = parsedOutput.body;
4677
- throwDefaultError({
4356
+ return throwDefaultError({
4678
4357
  output,
4679
4358
  parsedBody: parsedBody.Error,
4680
- exceptionCtor: __BaseException,
4681
4359
  errorCode,
4682
4360
  });
4683
4361
  }
@@ -4693,7 +4371,7 @@ export const de_EnableSnapshotCopyCommand = async (output, context) => {
4693
4371
  $metadata: deserializeMetadata(output),
4694
4372
  ...contents,
4695
4373
  };
4696
- return Promise.resolve(response);
4374
+ return response;
4697
4375
  };
4698
4376
  const de_EnableSnapshotCopyCommandError = async (output, context) => {
4699
4377
  const parsedOutput = {
@@ -4737,10 +4415,9 @@ const de_EnableSnapshotCopyCommandError = async (output, context) => {
4737
4415
  throw await de_UnknownSnapshotCopyRegionFaultRes(parsedOutput, context);
4738
4416
  default:
4739
4417
  const parsedBody = parsedOutput.body;
4740
- throwDefaultError({
4418
+ return throwDefaultError({
4741
4419
  output,
4742
4420
  parsedBody: parsedBody.Error,
4743
- exceptionCtor: __BaseException,
4744
4421
  errorCode,
4745
4422
  });
4746
4423
  }
@@ -4756,7 +4433,7 @@ export const de_GetClusterCredentialsCommand = async (output, context) => {
4756
4433
  $metadata: deserializeMetadata(output),
4757
4434
  ...contents,
4758
4435
  };
4759
- return Promise.resolve(response);
4436
+ return response;
4760
4437
  };
4761
4438
  const de_GetClusterCredentialsCommandError = async (output, context) => {
4762
4439
  const parsedOutput = {
@@ -4773,10 +4450,9 @@ const de_GetClusterCredentialsCommandError = async (output, context) => {
4773
4450
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4774
4451
  default:
4775
4452
  const parsedBody = parsedOutput.body;
4776
- throwDefaultError({
4453
+ return throwDefaultError({
4777
4454
  output,
4778
4455
  parsedBody: parsedBody.Error,
4779
- exceptionCtor: __BaseException,
4780
4456
  errorCode,
4781
4457
  });
4782
4458
  }
@@ -4792,7 +4468,7 @@ export const de_GetClusterCredentialsWithIAMCommand = async (output, context) =>
4792
4468
  $metadata: deserializeMetadata(output),
4793
4469
  ...contents,
4794
4470
  };
4795
- return Promise.resolve(response);
4471
+ return response;
4796
4472
  };
4797
4473
  const de_GetClusterCredentialsWithIAMCommandError = async (output, context) => {
4798
4474
  const parsedOutput = {
@@ -4809,10 +4485,9 @@ const de_GetClusterCredentialsWithIAMCommandError = async (output, context) => {
4809
4485
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4810
4486
  default:
4811
4487
  const parsedBody = parsedOutput.body;
4812
- throwDefaultError({
4488
+ return throwDefaultError({
4813
4489
  output,
4814
4490
  parsedBody: parsedBody.Error,
4815
- exceptionCtor: __BaseException,
4816
4491
  errorCode,
4817
4492
  });
4818
4493
  }
@@ -4828,7 +4503,7 @@ export const de_GetReservedNodeExchangeConfigurationOptionsCommand = async (outp
4828
4503
  $metadata: deserializeMetadata(output),
4829
4504
  ...contents,
4830
4505
  };
4831
- return Promise.resolve(response);
4506
+ return response;
4832
4507
  };
4833
4508
  const de_GetReservedNodeExchangeConfigurationOptionsCommandError = async (output, context) => {
4834
4509
  const parsedOutput = {
@@ -4863,10 +4538,9 @@ const de_GetReservedNodeExchangeConfigurationOptionsCommandError = async (output
4863
4538
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4864
4539
  default:
4865
4540
  const parsedBody = parsedOutput.body;
4866
- throwDefaultError({
4541
+ return throwDefaultError({
4867
4542
  output,
4868
4543
  parsedBody: parsedBody.Error,
4869
- exceptionCtor: __BaseException,
4870
4544
  errorCode,
4871
4545
  });
4872
4546
  }
@@ -4882,7 +4556,7 @@ export const de_GetReservedNodeExchangeOfferingsCommand = async (output, context
4882
4556
  $metadata: deserializeMetadata(output),
4883
4557
  ...contents,
4884
4558
  };
4885
- return Promise.resolve(response);
4559
+ return response;
4886
4560
  };
4887
4561
  const de_GetReservedNodeExchangeOfferingsCommandError = async (output, context) => {
4888
4562
  const parsedOutput = {
@@ -4911,10 +4585,9 @@ const de_GetReservedNodeExchangeOfferingsCommandError = async (output, context)
4911
4585
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4912
4586
  default:
4913
4587
  const parsedBody = parsedOutput.body;
4914
- throwDefaultError({
4588
+ return throwDefaultError({
4915
4589
  output,
4916
4590
  parsedBody: parsedBody.Error,
4917
- exceptionCtor: __BaseException,
4918
4591
  errorCode,
4919
4592
  });
4920
4593
  }
@@ -4930,7 +4603,7 @@ export const de_ModifyAquaConfigurationCommand = async (output, context) => {
4930
4603
  $metadata: deserializeMetadata(output),
4931
4604
  ...contents,
4932
4605
  };
4933
- return Promise.resolve(response);
4606
+ return response;
4934
4607
  };
4935
4608
  const de_ModifyAquaConfigurationCommandError = async (output, context) => {
4936
4609
  const parsedOutput = {
@@ -4950,10 +4623,9 @@ const de_ModifyAquaConfigurationCommandError = async (output, context) => {
4950
4623
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4951
4624
  default:
4952
4625
  const parsedBody = parsedOutput.body;
4953
- throwDefaultError({
4626
+ return throwDefaultError({
4954
4627
  output,
4955
4628
  parsedBody: parsedBody.Error,
4956
- exceptionCtor: __BaseException,
4957
4629
  errorCode,
4958
4630
  });
4959
4631
  }
@@ -4969,7 +4641,7 @@ export const de_ModifyAuthenticationProfileCommand = async (output, context) =>
4969
4641
  $metadata: deserializeMetadata(output),
4970
4642
  ...contents,
4971
4643
  };
4972
- return Promise.resolve(response);
4644
+ return response;
4973
4645
  };
4974
4646
  const de_ModifyAuthenticationProfileCommandError = async (output, context) => {
4975
4647
  const parsedOutput = {
@@ -4989,10 +4661,9 @@ const de_ModifyAuthenticationProfileCommandError = async (output, context) => {
4989
4661
  throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
4990
4662
  default:
4991
4663
  const parsedBody = parsedOutput.body;
4992
- throwDefaultError({
4664
+ return throwDefaultError({
4993
4665
  output,
4994
4666
  parsedBody: parsedBody.Error,
4995
- exceptionCtor: __BaseException,
4996
4667
  errorCode,
4997
4668
  });
4998
4669
  }
@@ -5008,7 +4679,7 @@ export const de_ModifyClusterCommand = async (output, context) => {
5008
4679
  $metadata: deserializeMetadata(output),
5009
4680
  ...contents,
5010
4681
  };
5011
- return Promise.resolve(response);
4682
+ return response;
5012
4683
  };
5013
4684
  const de_ModifyClusterCommandError = async (output, context) => {
5014
4685
  const parsedOutput = {
@@ -5076,10 +4747,9 @@ const de_ModifyClusterCommandError = async (output, context) => {
5076
4747
  throw await de_UnsupportedOptionFaultRes(parsedOutput, context);
5077
4748
  default:
5078
4749
  const parsedBody = parsedOutput.body;
5079
- throwDefaultError({
4750
+ return throwDefaultError({
5080
4751
  output,
5081
4752
  parsedBody: parsedBody.Error,
5082
- exceptionCtor: __BaseException,
5083
4753
  errorCode,
5084
4754
  });
5085
4755
  }
@@ -5095,7 +4765,7 @@ export const de_ModifyClusterDbRevisionCommand = async (output, context) => {
5095
4765
  $metadata: deserializeMetadata(output),
5096
4766
  ...contents,
5097
4767
  };
5098
- return Promise.resolve(response);
4768
+ return response;
5099
4769
  };
5100
4770
  const de_ModifyClusterDbRevisionCommandError = async (output, context) => {
5101
4771
  const parsedOutput = {
@@ -5115,10 +4785,9 @@ const de_ModifyClusterDbRevisionCommandError = async (output, context) => {
5115
4785
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5116
4786
  default:
5117
4787
  const parsedBody = parsedOutput.body;
5118
- throwDefaultError({
4788
+ return throwDefaultError({
5119
4789
  output,
5120
4790
  parsedBody: parsedBody.Error,
5121
- exceptionCtor: __BaseException,
5122
4791
  errorCode,
5123
4792
  });
5124
4793
  }
@@ -5134,7 +4803,7 @@ export const de_ModifyClusterIamRolesCommand = async (output, context) => {
5134
4803
  $metadata: deserializeMetadata(output),
5135
4804
  ...contents,
5136
4805
  };
5137
- return Promise.resolve(response);
4806
+ return response;
5138
4807
  };
5139
4808
  const de_ModifyClusterIamRolesCommandError = async (output, context) => {
5140
4809
  const parsedOutput = {
@@ -5151,10 +4820,9 @@ const de_ModifyClusterIamRolesCommandError = async (output, context) => {
5151
4820
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5152
4821
  default:
5153
4822
  const parsedBody = parsedOutput.body;
5154
- throwDefaultError({
4823
+ return throwDefaultError({
5155
4824
  output,
5156
4825
  parsedBody: parsedBody.Error,
5157
- exceptionCtor: __BaseException,
5158
4826
  errorCode,
5159
4827
  });
5160
4828
  }
@@ -5170,7 +4838,7 @@ export const de_ModifyClusterMaintenanceCommand = async (output, context) => {
5170
4838
  $metadata: deserializeMetadata(output),
5171
4839
  ...contents,
5172
4840
  };
5173
- return Promise.resolve(response);
4841
+ return response;
5174
4842
  };
5175
4843
  const de_ModifyClusterMaintenanceCommandError = async (output, context) => {
5176
4844
  const parsedOutput = {
@@ -5187,10 +4855,9 @@ const de_ModifyClusterMaintenanceCommandError = async (output, context) => {
5187
4855
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5188
4856
  default:
5189
4857
  const parsedBody = parsedOutput.body;
5190
- throwDefaultError({
4858
+ return throwDefaultError({
5191
4859
  output,
5192
4860
  parsedBody: parsedBody.Error,
5193
- exceptionCtor: __BaseException,
5194
4861
  errorCode,
5195
4862
  });
5196
4863
  }
@@ -5206,7 +4873,7 @@ export const de_ModifyClusterParameterGroupCommand = async (output, context) =>
5206
4873
  $metadata: deserializeMetadata(output),
5207
4874
  ...contents,
5208
4875
  };
5209
- return Promise.resolve(response);
4876
+ return response;
5210
4877
  };
5211
4878
  const de_ModifyClusterParameterGroupCommandError = async (output, context) => {
5212
4879
  const parsedOutput = {
@@ -5223,10 +4890,9 @@ const de_ModifyClusterParameterGroupCommandError = async (output, context) => {
5223
4890
  throw await de_InvalidClusterParameterGroupStateFaultRes(parsedOutput, context);
5224
4891
  default:
5225
4892
  const parsedBody = parsedOutput.body;
5226
- throwDefaultError({
4893
+ return throwDefaultError({
5227
4894
  output,
5228
4895
  parsedBody: parsedBody.Error,
5229
- exceptionCtor: __BaseException,
5230
4896
  errorCode,
5231
4897
  });
5232
4898
  }
@@ -5242,7 +4908,7 @@ export const de_ModifyClusterSnapshotCommand = async (output, context) => {
5242
4908
  $metadata: deserializeMetadata(output),
5243
4909
  ...contents,
5244
4910
  };
5245
- return Promise.resolve(response);
4911
+ return response;
5246
4912
  };
5247
4913
  const de_ModifyClusterSnapshotCommandError = async (output, context) => {
5248
4914
  const parsedOutput = {
@@ -5262,10 +4928,9 @@ const de_ModifyClusterSnapshotCommandError = async (output, context) => {
5262
4928
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
5263
4929
  default:
5264
4930
  const parsedBody = parsedOutput.body;
5265
- throwDefaultError({
4931
+ return throwDefaultError({
5266
4932
  output,
5267
4933
  parsedBody: parsedBody.Error,
5268
- exceptionCtor: __BaseException,
5269
4934
  errorCode,
5270
4935
  });
5271
4936
  }
@@ -5278,7 +4943,7 @@ export const de_ModifyClusterSnapshotScheduleCommand = async (output, context) =
5278
4943
  const response = {
5279
4944
  $metadata: deserializeMetadata(output),
5280
4945
  };
5281
- return Promise.resolve(response);
4946
+ return response;
5282
4947
  };
5283
4948
  const de_ModifyClusterSnapshotScheduleCommandError = async (output, context) => {
5284
4949
  const parsedOutput = {
@@ -5298,10 +4963,9 @@ const de_ModifyClusterSnapshotScheduleCommandError = async (output, context) =>
5298
4963
  throw await de_SnapshotScheduleNotFoundFaultRes(parsedOutput, context);
5299
4964
  default:
5300
4965
  const parsedBody = parsedOutput.body;
5301
- throwDefaultError({
4966
+ return throwDefaultError({
5302
4967
  output,
5303
4968
  parsedBody: parsedBody.Error,
5304
- exceptionCtor: __BaseException,
5305
4969
  errorCode,
5306
4970
  });
5307
4971
  }
@@ -5317,7 +4981,7 @@ export const de_ModifyClusterSubnetGroupCommand = async (output, context) => {
5317
4981
  $metadata: deserializeMetadata(output),
5318
4982
  ...contents,
5319
4983
  };
5320
- return Promise.resolve(response);
4984
+ return response;
5321
4985
  };
5322
4986
  const de_ModifyClusterSubnetGroupCommandError = async (output, context) => {
5323
4987
  const parsedOutput = {
@@ -5346,10 +5010,9 @@ const de_ModifyClusterSubnetGroupCommandError = async (output, context) => {
5346
5010
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5347
5011
  default:
5348
5012
  const parsedBody = parsedOutput.body;
5349
- throwDefaultError({
5013
+ return throwDefaultError({
5350
5014
  output,
5351
5015
  parsedBody: parsedBody.Error,
5352
- exceptionCtor: __BaseException,
5353
5016
  errorCode,
5354
5017
  });
5355
5018
  }
@@ -5365,7 +5028,7 @@ export const de_ModifyEndpointAccessCommand = async (output, context) => {
5365
5028
  $metadata: deserializeMetadata(output),
5366
5029
  ...contents,
5367
5030
  };
5368
- return Promise.resolve(response);
5031
+ return response;
5369
5032
  };
5370
5033
  const de_ModifyEndpointAccessCommandError = async (output, context) => {
5371
5034
  const parsedOutput = {
@@ -5394,10 +5057,9 @@ const de_ModifyEndpointAccessCommandError = async (output, context) => {
5394
5057
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5395
5058
  default:
5396
5059
  const parsedBody = parsedOutput.body;
5397
- throwDefaultError({
5060
+ return throwDefaultError({
5398
5061
  output,
5399
5062
  parsedBody: parsedBody.Error,
5400
- exceptionCtor: __BaseException,
5401
5063
  errorCode,
5402
5064
  });
5403
5065
  }
@@ -5413,7 +5075,7 @@ export const de_ModifyEventSubscriptionCommand = async (output, context) => {
5413
5075
  $metadata: deserializeMetadata(output),
5414
5076
  ...contents,
5415
5077
  };
5416
- return Promise.resolve(response);
5078
+ return response;
5417
5079
  };
5418
5080
  const de_ModifyEventSubscriptionCommandError = async (output, context) => {
5419
5081
  const parsedOutput = {
@@ -5451,10 +5113,9 @@ const de_ModifyEventSubscriptionCommandError = async (output, context) => {
5451
5113
  throw await de_SubscriptionSeverityNotFoundFaultRes(parsedOutput, context);
5452
5114
  default:
5453
5115
  const parsedBody = parsedOutput.body;
5454
- throwDefaultError({
5116
+ return throwDefaultError({
5455
5117
  output,
5456
5118
  parsedBody: parsedBody.Error,
5457
- exceptionCtor: __BaseException,
5458
5119
  errorCode,
5459
5120
  });
5460
5121
  }
@@ -5470,7 +5131,7 @@ export const de_ModifyScheduledActionCommand = async (output, context) => {
5470
5131
  $metadata: deserializeMetadata(output),
5471
5132
  ...contents,
5472
5133
  };
5473
- return Promise.resolve(response);
5134
+ return response;
5474
5135
  };
5475
5136
  const de_ModifyScheduledActionCommandError = async (output, context) => {
5476
5137
  const parsedOutput = {
@@ -5496,10 +5157,9 @@ const de_ModifyScheduledActionCommandError = async (output, context) => {
5496
5157
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5497
5158
  default:
5498
5159
  const parsedBody = parsedOutput.body;
5499
- throwDefaultError({
5160
+ return throwDefaultError({
5500
5161
  output,
5501
5162
  parsedBody: parsedBody.Error,
5502
- exceptionCtor: __BaseException,
5503
5163
  errorCode,
5504
5164
  });
5505
5165
  }
@@ -5515,7 +5175,7 @@ export const de_ModifySnapshotCopyRetentionPeriodCommand = async (output, contex
5515
5175
  $metadata: deserializeMetadata(output),
5516
5176
  ...contents,
5517
5177
  };
5518
- return Promise.resolve(response);
5178
+ return response;
5519
5179
  };
5520
5180
  const de_ModifySnapshotCopyRetentionPeriodCommandError = async (output, context) => {
5521
5181
  const parsedOutput = {
@@ -5541,10 +5201,9 @@ const de_ModifySnapshotCopyRetentionPeriodCommandError = async (output, context)
5541
5201
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5542
5202
  default:
5543
5203
  const parsedBody = parsedOutput.body;
5544
- throwDefaultError({
5204
+ return throwDefaultError({
5545
5205
  output,
5546
5206
  parsedBody: parsedBody.Error,
5547
- exceptionCtor: __BaseException,
5548
5207
  errorCode,
5549
5208
  });
5550
5209
  }
@@ -5560,7 +5219,7 @@ export const de_ModifySnapshotScheduleCommand = async (output, context) => {
5560
5219
  $metadata: deserializeMetadata(output),
5561
5220
  ...contents,
5562
5221
  };
5563
- return Promise.resolve(response);
5222
+ return response;
5564
5223
  };
5565
5224
  const de_ModifySnapshotScheduleCommandError = async (output, context) => {
5566
5225
  const parsedOutput = {
@@ -5580,10 +5239,9 @@ const de_ModifySnapshotScheduleCommandError = async (output, context) => {
5580
5239
  throw await de_SnapshotScheduleUpdateInProgressFaultRes(parsedOutput, context);
5581
5240
  default:
5582
5241
  const parsedBody = parsedOutput.body;
5583
- throwDefaultError({
5242
+ return throwDefaultError({
5584
5243
  output,
5585
5244
  parsedBody: parsedBody.Error,
5586
- exceptionCtor: __BaseException,
5587
5245
  errorCode,
5588
5246
  });
5589
5247
  }
@@ -5599,7 +5257,7 @@ export const de_ModifyUsageLimitCommand = async (output, context) => {
5599
5257
  $metadata: deserializeMetadata(output),
5600
5258
  ...contents,
5601
5259
  };
5602
- return Promise.resolve(response);
5260
+ return response;
5603
5261
  };
5604
5262
  const de_ModifyUsageLimitCommandError = async (output, context) => {
5605
5263
  const parsedOutput = {
@@ -5619,10 +5277,9 @@ const de_ModifyUsageLimitCommandError = async (output, context) => {
5619
5277
  throw await de_UsageLimitNotFoundFaultRes(parsedOutput, context);
5620
5278
  default:
5621
5279
  const parsedBody = parsedOutput.body;
5622
- throwDefaultError({
5280
+ return throwDefaultError({
5623
5281
  output,
5624
5282
  parsedBody: parsedBody.Error,
5625
- exceptionCtor: __BaseException,
5626
5283
  errorCode,
5627
5284
  });
5628
5285
  }
@@ -5638,7 +5295,7 @@ export const de_PauseClusterCommand = async (output, context) => {
5638
5295
  $metadata: deserializeMetadata(output),
5639
5296
  ...contents,
5640
5297
  };
5641
- return Promise.resolve(response);
5298
+ return response;
5642
5299
  };
5643
5300
  const de_PauseClusterCommandError = async (output, context) => {
5644
5301
  const parsedOutput = {
@@ -5655,10 +5312,9 @@ const de_PauseClusterCommandError = async (output, context) => {
5655
5312
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5656
5313
  default:
5657
5314
  const parsedBody = parsedOutput.body;
5658
- throwDefaultError({
5315
+ return throwDefaultError({
5659
5316
  output,
5660
5317
  parsedBody: parsedBody.Error,
5661
- exceptionCtor: __BaseException,
5662
5318
  errorCode,
5663
5319
  });
5664
5320
  }
@@ -5674,7 +5330,7 @@ export const de_PurchaseReservedNodeOfferingCommand = async (output, context) =>
5674
5330
  $metadata: deserializeMetadata(output),
5675
5331
  ...contents,
5676
5332
  };
5677
- return Promise.resolve(response);
5333
+ return response;
5678
5334
  };
5679
5335
  const de_PurchaseReservedNodeOfferingCommandError = async (output, context) => {
5680
5336
  const parsedOutput = {
@@ -5697,10 +5353,9 @@ const de_PurchaseReservedNodeOfferingCommandError = async (output, context) => {
5697
5353
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5698
5354
  default:
5699
5355
  const parsedBody = parsedOutput.body;
5700
- throwDefaultError({
5356
+ return throwDefaultError({
5701
5357
  output,
5702
5358
  parsedBody: parsedBody.Error,
5703
- exceptionCtor: __BaseException,
5704
5359
  errorCode,
5705
5360
  });
5706
5361
  }
@@ -5716,7 +5371,7 @@ export const de_RebootClusterCommand = async (output, context) => {
5716
5371
  $metadata: deserializeMetadata(output),
5717
5372
  ...contents,
5718
5373
  };
5719
- return Promise.resolve(response);
5374
+ return response;
5720
5375
  };
5721
5376
  const de_RebootClusterCommandError = async (output, context) => {
5722
5377
  const parsedOutput = {
@@ -5733,10 +5388,9 @@ const de_RebootClusterCommandError = async (output, context) => {
5733
5388
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5734
5389
  default:
5735
5390
  const parsedBody = parsedOutput.body;
5736
- throwDefaultError({
5391
+ return throwDefaultError({
5737
5392
  output,
5738
5393
  parsedBody: parsedBody.Error,
5739
- exceptionCtor: __BaseException,
5740
5394
  errorCode,
5741
5395
  });
5742
5396
  }
@@ -5752,7 +5406,7 @@ export const de_RejectDataShareCommand = async (output, context) => {
5752
5406
  $metadata: deserializeMetadata(output),
5753
5407
  ...contents,
5754
5408
  };
5755
- return Promise.resolve(response);
5409
+ return response;
5756
5410
  };
5757
5411
  const de_RejectDataShareCommandError = async (output, context) => {
5758
5412
  const parsedOutput = {
@@ -5766,10 +5420,9 @@ const de_RejectDataShareCommandError = async (output, context) => {
5766
5420
  throw await de_InvalidDataShareFaultRes(parsedOutput, context);
5767
5421
  default:
5768
5422
  const parsedBody = parsedOutput.body;
5769
- throwDefaultError({
5423
+ return throwDefaultError({
5770
5424
  output,
5771
5425
  parsedBody: parsedBody.Error,
5772
- exceptionCtor: __BaseException,
5773
5426
  errorCode,
5774
5427
  });
5775
5428
  }
@@ -5785,7 +5438,7 @@ export const de_ResetClusterParameterGroupCommand = async (output, context) => {
5785
5438
  $metadata: deserializeMetadata(output),
5786
5439
  ...contents,
5787
5440
  };
5788
- return Promise.resolve(response);
5441
+ return response;
5789
5442
  };
5790
5443
  const de_ResetClusterParameterGroupCommandError = async (output, context) => {
5791
5444
  const parsedOutput = {
@@ -5802,10 +5455,9 @@ const de_ResetClusterParameterGroupCommandError = async (output, context) => {
5802
5455
  throw await de_InvalidClusterParameterGroupStateFaultRes(parsedOutput, context);
5803
5456
  default:
5804
5457
  const parsedBody = parsedOutput.body;
5805
- throwDefaultError({
5458
+ return throwDefaultError({
5806
5459
  output,
5807
5460
  parsedBody: parsedBody.Error,
5808
- exceptionCtor: __BaseException,
5809
5461
  errorCode,
5810
5462
  });
5811
5463
  }
@@ -5821,7 +5473,7 @@ export const de_ResizeClusterCommand = async (output, context) => {
5821
5473
  $metadata: deserializeMetadata(output),
5822
5474
  ...contents,
5823
5475
  };
5824
- return Promise.resolve(response);
5476
+ return response;
5825
5477
  };
5826
5478
  const de_ResizeClusterCommandError = async (output, context) => {
5827
5479
  const parsedOutput = {
@@ -5877,10 +5529,9 @@ const de_ResizeClusterCommandError = async (output, context) => {
5877
5529
  throw await de_UnsupportedOptionFaultRes(parsedOutput, context);
5878
5530
  default:
5879
5531
  const parsedBody = parsedOutput.body;
5880
- throwDefaultError({
5532
+ return throwDefaultError({
5881
5533
  output,
5882
5534
  parsedBody: parsedBody.Error,
5883
- exceptionCtor: __BaseException,
5884
5535
  errorCode,
5885
5536
  });
5886
5537
  }
@@ -5896,7 +5547,7 @@ export const de_RestoreFromClusterSnapshotCommand = async (output, context) => {
5896
5547
  $metadata: deserializeMetadata(output),
5897
5548
  ...contents,
5898
5549
  };
5899
- return Promise.resolve(response);
5550
+ return response;
5900
5551
  };
5901
5552
  const de_RestoreFromClusterSnapshotCommandError = async (output, context) => {
5902
5553
  const parsedOutput = {
@@ -6003,10 +5654,9 @@ const de_RestoreFromClusterSnapshotCommandError = async (output, context) => {
6003
5654
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
6004
5655
  default:
6005
5656
  const parsedBody = parsedOutput.body;
6006
- throwDefaultError({
5657
+ return throwDefaultError({
6007
5658
  output,
6008
5659
  parsedBody: parsedBody.Error,
6009
- exceptionCtor: __BaseException,
6010
5660
  errorCode,
6011
5661
  });
6012
5662
  }
@@ -6022,7 +5672,7 @@ export const de_RestoreTableFromClusterSnapshotCommand = async (output, context)
6022
5672
  $metadata: deserializeMetadata(output),
6023
5673
  ...contents,
6024
5674
  };
6025
- return Promise.resolve(response);
5675
+ return response;
6026
5676
  };
6027
5677
  const de_RestoreTableFromClusterSnapshotCommandError = async (output, context) => {
6028
5678
  const parsedOutput = {
@@ -6054,10 +5704,9 @@ const de_RestoreTableFromClusterSnapshotCommandError = async (output, context) =
6054
5704
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
6055
5705
  default:
6056
5706
  const parsedBody = parsedOutput.body;
6057
- throwDefaultError({
5707
+ return throwDefaultError({
6058
5708
  output,
6059
5709
  parsedBody: parsedBody.Error,
6060
- exceptionCtor: __BaseException,
6061
5710
  errorCode,
6062
5711
  });
6063
5712
  }
@@ -6073,7 +5722,7 @@ export const de_ResumeClusterCommand = async (output, context) => {
6073
5722
  $metadata: deserializeMetadata(output),
6074
5723
  ...contents,
6075
5724
  };
6076
- return Promise.resolve(response);
5725
+ return response;
6077
5726
  };
6078
5727
  const de_ResumeClusterCommandError = async (output, context) => {
6079
5728
  const parsedOutput = {
@@ -6093,10 +5742,9 @@ const de_ResumeClusterCommandError = async (output, context) => {
6093
5742
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
6094
5743
  default:
6095
5744
  const parsedBody = parsedOutput.body;
6096
- throwDefaultError({
5745
+ return throwDefaultError({
6097
5746
  output,
6098
5747
  parsedBody: parsedBody.Error,
6099
- exceptionCtor: __BaseException,
6100
5748
  errorCode,
6101
5749
  });
6102
5750
  }
@@ -6112,7 +5760,7 @@ export const de_RevokeClusterSecurityGroupIngressCommand = async (output, contex
6112
5760
  $metadata: deserializeMetadata(output),
6113
5761
  ...contents,
6114
5762
  };
6115
- return Promise.resolve(response);
5763
+ return response;
6116
5764
  };
6117
5765
  const de_RevokeClusterSecurityGroupIngressCommandError = async (output, context) => {
6118
5766
  const parsedOutput = {
@@ -6132,10 +5780,9 @@ const de_RevokeClusterSecurityGroupIngressCommandError = async (output, context)
6132
5780
  throw await de_InvalidClusterSecurityGroupStateFaultRes(parsedOutput, context);
6133
5781
  default:
6134
5782
  const parsedBody = parsedOutput.body;
6135
- throwDefaultError({
5783
+ return throwDefaultError({
6136
5784
  output,
6137
5785
  parsedBody: parsedBody.Error,
6138
- exceptionCtor: __BaseException,
6139
5786
  errorCode,
6140
5787
  });
6141
5788
  }
@@ -6151,7 +5798,7 @@ export const de_RevokeEndpointAccessCommand = async (output, context) => {
6151
5798
  $metadata: deserializeMetadata(output),
6152
5799
  ...contents,
6153
5800
  };
6154
- return Promise.resolve(response);
5801
+ return response;
6155
5802
  };
6156
5803
  const de_RevokeEndpointAccessCommandError = async (output, context) => {
6157
5804
  const parsedOutput = {
@@ -6183,10 +5830,9 @@ const de_RevokeEndpointAccessCommandError = async (output, context) => {
6183
5830
  throw await de_InvalidEndpointStateFaultRes(parsedOutput, context);
6184
5831
  default:
6185
5832
  const parsedBody = parsedOutput.body;
6186
- throwDefaultError({
5833
+ return throwDefaultError({
6187
5834
  output,
6188
5835
  parsedBody: parsedBody.Error,
6189
- exceptionCtor: __BaseException,
6190
5836
  errorCode,
6191
5837
  });
6192
5838
  }
@@ -6202,7 +5848,7 @@ export const de_RevokeSnapshotAccessCommand = async (output, context) => {
6202
5848
  $metadata: deserializeMetadata(output),
6203
5849
  ...contents,
6204
5850
  };
6205
- return Promise.resolve(response);
5851
+ return response;
6206
5852
  };
6207
5853
  const de_RevokeSnapshotAccessCommandError = async (output, context) => {
6208
5854
  const parsedOutput = {
@@ -6225,10 +5871,9 @@ const de_RevokeSnapshotAccessCommandError = async (output, context) => {
6225
5871
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
6226
5872
  default:
6227
5873
  const parsedBody = parsedOutput.body;
6228
- throwDefaultError({
5874
+ return throwDefaultError({
6229
5875
  output,
6230
5876
  parsedBody: parsedBody.Error,
6231
- exceptionCtor: __BaseException,
6232
5877
  errorCode,
6233
5878
  });
6234
5879
  }
@@ -6244,7 +5889,7 @@ export const de_RotateEncryptionKeyCommand = async (output, context) => {
6244
5889
  $metadata: deserializeMetadata(output),
6245
5890
  ...contents,
6246
5891
  };
6247
- return Promise.resolve(response);
5892
+ return response;
6248
5893
  };
6249
5894
  const de_RotateEncryptionKeyCommandError = async (output, context) => {
6250
5895
  const parsedOutput = {
@@ -6264,10 +5909,9 @@ const de_RotateEncryptionKeyCommandError = async (output, context) => {
6264
5909
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
6265
5910
  default:
6266
5911
  const parsedBody = parsedOutput.body;
6267
- throwDefaultError({
5912
+ return throwDefaultError({
6268
5913
  output,
6269
5914
  parsedBody: parsedBody.Error,
6270
- exceptionCtor: __BaseException,
6271
5915
  errorCode,
6272
5916
  });
6273
5917
  }
@@ -6283,7 +5927,7 @@ export const de_UpdatePartnerStatusCommand = async (output, context) => {
6283
5927
  $metadata: deserializeMetadata(output),
6284
5928
  ...contents,
6285
5929
  };
6286
- return Promise.resolve(response);
5930
+ return response;
6287
5931
  };
6288
5932
  const de_UpdatePartnerStatusCommandError = async (output, context) => {
6289
5933
  const parsedOutput = {
@@ -6303,10 +5947,9 @@ const de_UpdatePartnerStatusCommandError = async (output, context) => {
6303
5947
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
6304
5948
  default:
6305
5949
  const parsedBody = parsedOutput.body;
6306
- throwDefaultError({
5950
+ return throwDefaultError({
6307
5951
  output,
6308
5952
  parsedBody: parsedBody.Error,
6309
- exceptionCtor: __BaseException,
6310
5953
  errorCode,
6311
5954
  });
6312
5955
  }
@@ -14233,6 +13876,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
14233
13876
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
14234
13877
  };
14235
13878
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
13879
+ const throwDefaultError = withBaseException(__BaseException);
14236
13880
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
14237
13881
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
14238
13882
  const contents = {
@@ -14251,6 +13895,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
14251
13895
  }
14252
13896
  return new __HttpRequest(contents);
14253
13897
  };
13898
+ const SHARED_HEADERS = {
13899
+ "content-type": "application/x-www-form-urlencoded",
13900
+ };
14254
13901
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
14255
13902
  if (encoded.length) {
14256
13903
  const parser = new XMLParser({