@aws-sdk/client-route53resolver 3.312.0 → 3.316.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,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectString as __expectString, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { AccessDeniedException, ConflictException, InternalServiceErrorException, InvalidNextTokenException, InvalidParameterException, InvalidPolicyDocument, InvalidRequestException, InvalidTagException, LimitExceededException, ResourceExistsException, ResourceInUseException, ResourceNotFoundException, ResourceUnavailableException, ThrottlingException, UnknownResourceException, ValidationException, } from "../models/models_0";
5
5
  import { Route53ResolverServiceException as __BaseException } from "../models/Route53ResolverServiceException";
@@ -12,19 +12,19 @@ export const se_AssociateFirewallRuleGroupCommand = async (input, context) => {
12
12
  export const se_AssociateResolverEndpointIpAddressCommand = async (input, context) => {
13
13
  const headers = sharedHeaders("AssociateResolverEndpointIpAddress");
14
14
  let body;
15
- body = JSON.stringify(se_AssociateResolverEndpointIpAddressRequest(input, context));
15
+ body = JSON.stringify(_json(input));
16
16
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
17
  };
18
18
  export const se_AssociateResolverQueryLogConfigCommand = async (input, context) => {
19
19
  const headers = sharedHeaders("AssociateResolverQueryLogConfig");
20
20
  let body;
21
- body = JSON.stringify(se_AssociateResolverQueryLogConfigRequest(input, context));
21
+ body = JSON.stringify(_json(input));
22
22
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
23
  };
24
24
  export const se_AssociateResolverRuleCommand = async (input, context) => {
25
25
  const headers = sharedHeaders("AssociateResolverRule");
26
26
  let body;
27
- body = JSON.stringify(se_AssociateResolverRuleRequest(input, context));
27
+ body = JSON.stringify(_json(input));
28
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
29
  };
30
30
  export const se_CreateFirewallDomainListCommand = async (input, context) => {
@@ -48,7 +48,7 @@ export const se_CreateFirewallRuleGroupCommand = async (input, context) => {
48
48
  export const se_CreateResolverEndpointCommand = async (input, context) => {
49
49
  const headers = sharedHeaders("CreateResolverEndpoint");
50
50
  let body;
51
- body = JSON.stringify(se_CreateResolverEndpointRequest(input, context));
51
+ body = JSON.stringify(_json(input));
52
52
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
53
  };
54
54
  export const se_CreateResolverQueryLogConfigCommand = async (input, context) => {
@@ -60,325 +60,325 @@ export const se_CreateResolverQueryLogConfigCommand = async (input, context) =>
60
60
  export const se_CreateResolverRuleCommand = async (input, context) => {
61
61
  const headers = sharedHeaders("CreateResolverRule");
62
62
  let body;
63
- body = JSON.stringify(se_CreateResolverRuleRequest(input, context));
63
+ body = JSON.stringify(_json(input));
64
64
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
65
  };
66
66
  export const se_DeleteFirewallDomainListCommand = async (input, context) => {
67
67
  const headers = sharedHeaders("DeleteFirewallDomainList");
68
68
  let body;
69
- body = JSON.stringify(se_DeleteFirewallDomainListRequest(input, context));
69
+ body = JSON.stringify(_json(input));
70
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
71
  };
72
72
  export const se_DeleteFirewallRuleCommand = async (input, context) => {
73
73
  const headers = sharedHeaders("DeleteFirewallRule");
74
74
  let body;
75
- body = JSON.stringify(se_DeleteFirewallRuleRequest(input, context));
75
+ body = JSON.stringify(_json(input));
76
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
77
  };
78
78
  export const se_DeleteFirewallRuleGroupCommand = async (input, context) => {
79
79
  const headers = sharedHeaders("DeleteFirewallRuleGroup");
80
80
  let body;
81
- body = JSON.stringify(se_DeleteFirewallRuleGroupRequest(input, context));
81
+ body = JSON.stringify(_json(input));
82
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
83
  };
84
84
  export const se_DeleteResolverEndpointCommand = async (input, context) => {
85
85
  const headers = sharedHeaders("DeleteResolverEndpoint");
86
86
  let body;
87
- body = JSON.stringify(se_DeleteResolverEndpointRequest(input, context));
87
+ body = JSON.stringify(_json(input));
88
88
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
89
  };
90
90
  export const se_DeleteResolverQueryLogConfigCommand = async (input, context) => {
91
91
  const headers = sharedHeaders("DeleteResolverQueryLogConfig");
92
92
  let body;
93
- body = JSON.stringify(se_DeleteResolverQueryLogConfigRequest(input, context));
93
+ body = JSON.stringify(_json(input));
94
94
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
95
  };
96
96
  export const se_DeleteResolverRuleCommand = async (input, context) => {
97
97
  const headers = sharedHeaders("DeleteResolverRule");
98
98
  let body;
99
- body = JSON.stringify(se_DeleteResolverRuleRequest(input, context));
99
+ body = JSON.stringify(_json(input));
100
100
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
101
  };
102
102
  export const se_DisassociateFirewallRuleGroupCommand = async (input, context) => {
103
103
  const headers = sharedHeaders("DisassociateFirewallRuleGroup");
104
104
  let body;
105
- body = JSON.stringify(se_DisassociateFirewallRuleGroupRequest(input, context));
105
+ body = JSON.stringify(_json(input));
106
106
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
107
  };
108
108
  export const se_DisassociateResolverEndpointIpAddressCommand = async (input, context) => {
109
109
  const headers = sharedHeaders("DisassociateResolverEndpointIpAddress");
110
110
  let body;
111
- body = JSON.stringify(se_DisassociateResolverEndpointIpAddressRequest(input, context));
111
+ body = JSON.stringify(_json(input));
112
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
113
  };
114
114
  export const se_DisassociateResolverQueryLogConfigCommand = async (input, context) => {
115
115
  const headers = sharedHeaders("DisassociateResolverQueryLogConfig");
116
116
  let body;
117
- body = JSON.stringify(se_DisassociateResolverQueryLogConfigRequest(input, context));
117
+ body = JSON.stringify(_json(input));
118
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
119
  };
120
120
  export const se_DisassociateResolverRuleCommand = async (input, context) => {
121
121
  const headers = sharedHeaders("DisassociateResolverRule");
122
122
  let body;
123
- body = JSON.stringify(se_DisassociateResolverRuleRequest(input, context));
123
+ body = JSON.stringify(_json(input));
124
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
125
  };
126
126
  export const se_GetFirewallConfigCommand = async (input, context) => {
127
127
  const headers = sharedHeaders("GetFirewallConfig");
128
128
  let body;
129
- body = JSON.stringify(se_GetFirewallConfigRequest(input, context));
129
+ body = JSON.stringify(_json(input));
130
130
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
131
  };
132
132
  export const se_GetFirewallDomainListCommand = async (input, context) => {
133
133
  const headers = sharedHeaders("GetFirewallDomainList");
134
134
  let body;
135
- body = JSON.stringify(se_GetFirewallDomainListRequest(input, context));
135
+ body = JSON.stringify(_json(input));
136
136
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
137
  };
138
138
  export const se_GetFirewallRuleGroupCommand = async (input, context) => {
139
139
  const headers = sharedHeaders("GetFirewallRuleGroup");
140
140
  let body;
141
- body = JSON.stringify(se_GetFirewallRuleGroupRequest(input, context));
141
+ body = JSON.stringify(_json(input));
142
142
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
143
  };
144
144
  export const se_GetFirewallRuleGroupAssociationCommand = async (input, context) => {
145
145
  const headers = sharedHeaders("GetFirewallRuleGroupAssociation");
146
146
  let body;
147
- body = JSON.stringify(se_GetFirewallRuleGroupAssociationRequest(input, context));
147
+ body = JSON.stringify(_json(input));
148
148
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
149
  };
150
150
  export const se_GetFirewallRuleGroupPolicyCommand = async (input, context) => {
151
151
  const headers = sharedHeaders("GetFirewallRuleGroupPolicy");
152
152
  let body;
153
- body = JSON.stringify(se_GetFirewallRuleGroupPolicyRequest(input, context));
153
+ body = JSON.stringify(_json(input));
154
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
155
  };
156
156
  export const se_GetResolverConfigCommand = async (input, context) => {
157
157
  const headers = sharedHeaders("GetResolverConfig");
158
158
  let body;
159
- body = JSON.stringify(se_GetResolverConfigRequest(input, context));
159
+ body = JSON.stringify(_json(input));
160
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
161
  };
162
162
  export const se_GetResolverDnssecConfigCommand = async (input, context) => {
163
163
  const headers = sharedHeaders("GetResolverDnssecConfig");
164
164
  let body;
165
- body = JSON.stringify(se_GetResolverDnssecConfigRequest(input, context));
165
+ body = JSON.stringify(_json(input));
166
166
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
167
  };
168
168
  export const se_GetResolverEndpointCommand = async (input, context) => {
169
169
  const headers = sharedHeaders("GetResolverEndpoint");
170
170
  let body;
171
- body = JSON.stringify(se_GetResolverEndpointRequest(input, context));
171
+ body = JSON.stringify(_json(input));
172
172
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
173
  };
174
174
  export const se_GetResolverQueryLogConfigCommand = async (input, context) => {
175
175
  const headers = sharedHeaders("GetResolverQueryLogConfig");
176
176
  let body;
177
- body = JSON.stringify(se_GetResolverQueryLogConfigRequest(input, context));
177
+ body = JSON.stringify(_json(input));
178
178
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
179
  };
180
180
  export const se_GetResolverQueryLogConfigAssociationCommand = async (input, context) => {
181
181
  const headers = sharedHeaders("GetResolverQueryLogConfigAssociation");
182
182
  let body;
183
- body = JSON.stringify(se_GetResolverQueryLogConfigAssociationRequest(input, context));
183
+ body = JSON.stringify(_json(input));
184
184
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
185
  };
186
186
  export const se_GetResolverQueryLogConfigPolicyCommand = async (input, context) => {
187
187
  const headers = sharedHeaders("GetResolverQueryLogConfigPolicy");
188
188
  let body;
189
- body = JSON.stringify(se_GetResolverQueryLogConfigPolicyRequest(input, context));
189
+ body = JSON.stringify(_json(input));
190
190
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
191
  };
192
192
  export const se_GetResolverRuleCommand = async (input, context) => {
193
193
  const headers = sharedHeaders("GetResolverRule");
194
194
  let body;
195
- body = JSON.stringify(se_GetResolverRuleRequest(input, context));
195
+ body = JSON.stringify(_json(input));
196
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
197
  };
198
198
  export const se_GetResolverRuleAssociationCommand = async (input, context) => {
199
199
  const headers = sharedHeaders("GetResolverRuleAssociation");
200
200
  let body;
201
- body = JSON.stringify(se_GetResolverRuleAssociationRequest(input, context));
201
+ body = JSON.stringify(_json(input));
202
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
203
  };
204
204
  export const se_GetResolverRulePolicyCommand = async (input, context) => {
205
205
  const headers = sharedHeaders("GetResolverRulePolicy");
206
206
  let body;
207
- body = JSON.stringify(se_GetResolverRulePolicyRequest(input, context));
207
+ body = JSON.stringify(_json(input));
208
208
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
209
  };
210
210
  export const se_ImportFirewallDomainsCommand = async (input, context) => {
211
211
  const headers = sharedHeaders("ImportFirewallDomains");
212
212
  let body;
213
- body = JSON.stringify(se_ImportFirewallDomainsRequest(input, context));
213
+ body = JSON.stringify(_json(input));
214
214
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
215
  };
216
216
  export const se_ListFirewallConfigsCommand = async (input, context) => {
217
217
  const headers = sharedHeaders("ListFirewallConfigs");
218
218
  let body;
219
- body = JSON.stringify(se_ListFirewallConfigsRequest(input, context));
219
+ body = JSON.stringify(_json(input));
220
220
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
221
  };
222
222
  export const se_ListFirewallDomainListsCommand = async (input, context) => {
223
223
  const headers = sharedHeaders("ListFirewallDomainLists");
224
224
  let body;
225
- body = JSON.stringify(se_ListFirewallDomainListsRequest(input, context));
225
+ body = JSON.stringify(_json(input));
226
226
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
227
  };
228
228
  export const se_ListFirewallDomainsCommand = async (input, context) => {
229
229
  const headers = sharedHeaders("ListFirewallDomains");
230
230
  let body;
231
- body = JSON.stringify(se_ListFirewallDomainsRequest(input, context));
231
+ body = JSON.stringify(_json(input));
232
232
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
233
  };
234
234
  export const se_ListFirewallRuleGroupAssociationsCommand = async (input, context) => {
235
235
  const headers = sharedHeaders("ListFirewallRuleGroupAssociations");
236
236
  let body;
237
- body = JSON.stringify(se_ListFirewallRuleGroupAssociationsRequest(input, context));
237
+ body = JSON.stringify(_json(input));
238
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
239
  };
240
240
  export const se_ListFirewallRuleGroupsCommand = async (input, context) => {
241
241
  const headers = sharedHeaders("ListFirewallRuleGroups");
242
242
  let body;
243
- body = JSON.stringify(se_ListFirewallRuleGroupsRequest(input, context));
243
+ body = JSON.stringify(_json(input));
244
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
245
  };
246
246
  export const se_ListFirewallRulesCommand = async (input, context) => {
247
247
  const headers = sharedHeaders("ListFirewallRules");
248
248
  let body;
249
- body = JSON.stringify(se_ListFirewallRulesRequest(input, context));
249
+ body = JSON.stringify(_json(input));
250
250
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
251
251
  };
252
252
  export const se_ListResolverConfigsCommand = async (input, context) => {
253
253
  const headers = sharedHeaders("ListResolverConfigs");
254
254
  let body;
255
- body = JSON.stringify(se_ListResolverConfigsRequest(input, context));
255
+ body = JSON.stringify(_json(input));
256
256
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
257
  };
258
258
  export const se_ListResolverDnssecConfigsCommand = async (input, context) => {
259
259
  const headers = sharedHeaders("ListResolverDnssecConfigs");
260
260
  let body;
261
- body = JSON.stringify(se_ListResolverDnssecConfigsRequest(input, context));
261
+ body = JSON.stringify(_json(input));
262
262
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
263
263
  };
264
264
  export const se_ListResolverEndpointIpAddressesCommand = async (input, context) => {
265
265
  const headers = sharedHeaders("ListResolverEndpointIpAddresses");
266
266
  let body;
267
- body = JSON.stringify(se_ListResolverEndpointIpAddressesRequest(input, context));
267
+ body = JSON.stringify(_json(input));
268
268
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
269
  };
270
270
  export const se_ListResolverEndpointsCommand = async (input, context) => {
271
271
  const headers = sharedHeaders("ListResolverEndpoints");
272
272
  let body;
273
- body = JSON.stringify(se_ListResolverEndpointsRequest(input, context));
273
+ body = JSON.stringify(_json(input));
274
274
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
275
  };
276
276
  export const se_ListResolverQueryLogConfigAssociationsCommand = async (input, context) => {
277
277
  const headers = sharedHeaders("ListResolverQueryLogConfigAssociations");
278
278
  let body;
279
- body = JSON.stringify(se_ListResolverQueryLogConfigAssociationsRequest(input, context));
279
+ body = JSON.stringify(_json(input));
280
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
281
  };
282
282
  export const se_ListResolverQueryLogConfigsCommand = async (input, context) => {
283
283
  const headers = sharedHeaders("ListResolverQueryLogConfigs");
284
284
  let body;
285
- body = JSON.stringify(se_ListResolverQueryLogConfigsRequest(input, context));
285
+ body = JSON.stringify(_json(input));
286
286
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
287
  };
288
288
  export const se_ListResolverRuleAssociationsCommand = async (input, context) => {
289
289
  const headers = sharedHeaders("ListResolverRuleAssociations");
290
290
  let body;
291
- body = JSON.stringify(se_ListResolverRuleAssociationsRequest(input, context));
291
+ body = JSON.stringify(_json(input));
292
292
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
293
293
  };
294
294
  export const se_ListResolverRulesCommand = async (input, context) => {
295
295
  const headers = sharedHeaders("ListResolverRules");
296
296
  let body;
297
- body = JSON.stringify(se_ListResolverRulesRequest(input, context));
297
+ body = JSON.stringify(_json(input));
298
298
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
299
  };
300
300
  export const se_ListTagsForResourceCommand = async (input, context) => {
301
301
  const headers = sharedHeaders("ListTagsForResource");
302
302
  let body;
303
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
303
+ body = JSON.stringify(_json(input));
304
304
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
305
  };
306
306
  export const se_PutFirewallRuleGroupPolicyCommand = async (input, context) => {
307
307
  const headers = sharedHeaders("PutFirewallRuleGroupPolicy");
308
308
  let body;
309
- body = JSON.stringify(se_PutFirewallRuleGroupPolicyRequest(input, context));
309
+ body = JSON.stringify(_json(input));
310
310
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
311
  };
312
312
  export const se_PutResolverQueryLogConfigPolicyCommand = async (input, context) => {
313
313
  const headers = sharedHeaders("PutResolverQueryLogConfigPolicy");
314
314
  let body;
315
- body = JSON.stringify(se_PutResolverQueryLogConfigPolicyRequest(input, context));
315
+ body = JSON.stringify(_json(input));
316
316
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
317
  };
318
318
  export const se_PutResolverRulePolicyCommand = async (input, context) => {
319
319
  const headers = sharedHeaders("PutResolverRulePolicy");
320
320
  let body;
321
- body = JSON.stringify(se_PutResolverRulePolicyRequest(input, context));
321
+ body = JSON.stringify(_json(input));
322
322
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
323
  };
324
324
  export const se_TagResourceCommand = async (input, context) => {
325
325
  const headers = sharedHeaders("TagResource");
326
326
  let body;
327
- body = JSON.stringify(se_TagResourceRequest(input, context));
327
+ body = JSON.stringify(_json(input));
328
328
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
329
  };
330
330
  export const se_UntagResourceCommand = async (input, context) => {
331
331
  const headers = sharedHeaders("UntagResource");
332
332
  let body;
333
- body = JSON.stringify(se_UntagResourceRequest(input, context));
333
+ body = JSON.stringify(_json(input));
334
334
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
335
335
  };
336
336
  export const se_UpdateFirewallConfigCommand = async (input, context) => {
337
337
  const headers = sharedHeaders("UpdateFirewallConfig");
338
338
  let body;
339
- body = JSON.stringify(se_UpdateFirewallConfigRequest(input, context));
339
+ body = JSON.stringify(_json(input));
340
340
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
341
341
  };
342
342
  export const se_UpdateFirewallDomainsCommand = async (input, context) => {
343
343
  const headers = sharedHeaders("UpdateFirewallDomains");
344
344
  let body;
345
- body = JSON.stringify(se_UpdateFirewallDomainsRequest(input, context));
345
+ body = JSON.stringify(_json(input));
346
346
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
347
  };
348
348
  export const se_UpdateFirewallRuleCommand = async (input, context) => {
349
349
  const headers = sharedHeaders("UpdateFirewallRule");
350
350
  let body;
351
- body = JSON.stringify(se_UpdateFirewallRuleRequest(input, context));
351
+ body = JSON.stringify(_json(input));
352
352
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
353
  };
354
354
  export const se_UpdateFirewallRuleGroupAssociationCommand = async (input, context) => {
355
355
  const headers = sharedHeaders("UpdateFirewallRuleGroupAssociation");
356
356
  let body;
357
- body = JSON.stringify(se_UpdateFirewallRuleGroupAssociationRequest(input, context));
357
+ body = JSON.stringify(_json(input));
358
358
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
359
359
  };
360
360
  export const se_UpdateResolverConfigCommand = async (input, context) => {
361
361
  const headers = sharedHeaders("UpdateResolverConfig");
362
362
  let body;
363
- body = JSON.stringify(se_UpdateResolverConfigRequest(input, context));
363
+ body = JSON.stringify(_json(input));
364
364
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
365
  };
366
366
  export const se_UpdateResolverDnssecConfigCommand = async (input, context) => {
367
367
  const headers = sharedHeaders("UpdateResolverDnssecConfig");
368
368
  let body;
369
- body = JSON.stringify(se_UpdateResolverDnssecConfigRequest(input, context));
369
+ body = JSON.stringify(_json(input));
370
370
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
371
371
  };
372
372
  export const se_UpdateResolverEndpointCommand = async (input, context) => {
373
373
  const headers = sharedHeaders("UpdateResolverEndpoint");
374
374
  let body;
375
- body = JSON.stringify(se_UpdateResolverEndpointRequest(input, context));
375
+ body = JSON.stringify(_json(input));
376
376
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
377
  };
378
378
  export const se_UpdateResolverRuleCommand = async (input, context) => {
379
379
  const headers = sharedHeaders("UpdateResolverRule");
380
380
  let body;
381
- body = JSON.stringify(se_UpdateResolverRuleRequest(input, context));
381
+ body = JSON.stringify(_json(input));
382
382
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
383
383
  };
384
384
  export const de_AssociateFirewallRuleGroupCommand = async (output, context) => {
@@ -387,12 +387,12 @@ export const de_AssociateFirewallRuleGroupCommand = async (output, context) => {
387
387
  }
388
388
  const data = await parseBody(output.body, context);
389
389
  let contents = {};
390
- contents = de_AssociateFirewallRuleGroupResponse(data, context);
390
+ contents = _json(data);
391
391
  const response = {
392
392
  $metadata: deserializeMetadata(output),
393
393
  ...contents,
394
394
  };
395
- return Promise.resolve(response);
395
+ return response;
396
396
  };
397
397
  const de_AssociateFirewallRuleGroupCommandError = async (output, context) => {
398
398
  const parsedOutput = {
@@ -424,10 +424,9 @@ const de_AssociateFirewallRuleGroupCommandError = async (output, context) => {
424
424
  throw await de_ValidationExceptionRes(parsedOutput, context);
425
425
  default:
426
426
  const parsedBody = parsedOutput.body;
427
- throwDefaultError({
427
+ return throwDefaultError({
428
428
  output,
429
429
  parsedBody,
430
- exceptionCtor: __BaseException,
431
430
  errorCode,
432
431
  });
433
432
  }
@@ -438,12 +437,12 @@ export const de_AssociateResolverEndpointIpAddressCommand = async (output, conte
438
437
  }
439
438
  const data = await parseBody(output.body, context);
440
439
  let contents = {};
441
- contents = de_AssociateResolverEndpointIpAddressResponse(data, context);
440
+ contents = _json(data);
442
441
  const response = {
443
442
  $metadata: deserializeMetadata(output),
444
443
  ...contents,
445
444
  };
446
- return Promise.resolve(response);
445
+ return response;
447
446
  };
448
447
  const de_AssociateResolverEndpointIpAddressCommandError = async (output, context) => {
449
448
  const parsedOutput = {
@@ -475,10 +474,9 @@ const de_AssociateResolverEndpointIpAddressCommandError = async (output, context
475
474
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
476
475
  default:
477
476
  const parsedBody = parsedOutput.body;
478
- throwDefaultError({
477
+ return throwDefaultError({
479
478
  output,
480
479
  parsedBody,
481
- exceptionCtor: __BaseException,
482
480
  errorCode,
483
481
  });
484
482
  }
@@ -489,12 +487,12 @@ export const de_AssociateResolverQueryLogConfigCommand = async (output, context)
489
487
  }
490
488
  const data = await parseBody(output.body, context);
491
489
  let contents = {};
492
- contents = de_AssociateResolverQueryLogConfigResponse(data, context);
490
+ contents = _json(data);
493
491
  const response = {
494
492
  $metadata: deserializeMetadata(output),
495
493
  ...contents,
496
494
  };
497
- return Promise.resolve(response);
495
+ return response;
498
496
  };
499
497
  const de_AssociateResolverQueryLogConfigCommandError = async (output, context) => {
500
498
  const parsedOutput = {
@@ -529,10 +527,9 @@ const de_AssociateResolverQueryLogConfigCommandError = async (output, context) =
529
527
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
530
528
  default:
531
529
  const parsedBody = parsedOutput.body;
532
- throwDefaultError({
530
+ return throwDefaultError({
533
531
  output,
534
532
  parsedBody,
535
- exceptionCtor: __BaseException,
536
533
  errorCode,
537
534
  });
538
535
  }
@@ -543,12 +540,12 @@ export const de_AssociateResolverRuleCommand = async (output, context) => {
543
540
  }
544
541
  const data = await parseBody(output.body, context);
545
542
  let contents = {};
546
- contents = de_AssociateResolverRuleResponse(data, context);
543
+ contents = _json(data);
547
544
  const response = {
548
545
  $metadata: deserializeMetadata(output),
549
546
  ...contents,
550
547
  };
551
- return Promise.resolve(response);
548
+ return response;
552
549
  };
553
550
  const de_AssociateResolverRuleCommandError = async (output, context) => {
554
551
  const parsedOutput = {
@@ -583,10 +580,9 @@ const de_AssociateResolverRuleCommandError = async (output, context) => {
583
580
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
584
581
  default:
585
582
  const parsedBody = parsedOutput.body;
586
- throwDefaultError({
583
+ return throwDefaultError({
587
584
  output,
588
585
  parsedBody,
589
- exceptionCtor: __BaseException,
590
586
  errorCode,
591
587
  });
592
588
  }
@@ -597,12 +593,12 @@ export const de_CreateFirewallDomainListCommand = async (output, context) => {
597
593
  }
598
594
  const data = await parseBody(output.body, context);
599
595
  let contents = {};
600
- contents = de_CreateFirewallDomainListResponse(data, context);
596
+ contents = _json(data);
601
597
  const response = {
602
598
  $metadata: deserializeMetadata(output),
603
599
  ...contents,
604
600
  };
605
- return Promise.resolve(response);
601
+ return response;
606
602
  };
607
603
  const de_CreateFirewallDomainListCommandError = async (output, context) => {
608
604
  const parsedOutput = {
@@ -628,10 +624,9 @@ const de_CreateFirewallDomainListCommandError = async (output, context) => {
628
624
  throw await de_ValidationExceptionRes(parsedOutput, context);
629
625
  default:
630
626
  const parsedBody = parsedOutput.body;
631
- throwDefaultError({
627
+ return throwDefaultError({
632
628
  output,
633
629
  parsedBody,
634
- exceptionCtor: __BaseException,
635
630
  errorCode,
636
631
  });
637
632
  }
@@ -642,12 +637,12 @@ export const de_CreateFirewallRuleCommand = async (output, context) => {
642
637
  }
643
638
  const data = await parseBody(output.body, context);
644
639
  let contents = {};
645
- contents = de_CreateFirewallRuleResponse(data, context);
640
+ contents = _json(data);
646
641
  const response = {
647
642
  $metadata: deserializeMetadata(output),
648
643
  ...contents,
649
644
  };
650
- return Promise.resolve(response);
645
+ return response;
651
646
  };
652
647
  const de_CreateFirewallRuleCommandError = async (output, context) => {
653
648
  const parsedOutput = {
@@ -676,10 +671,9 @@ const de_CreateFirewallRuleCommandError = async (output, context) => {
676
671
  throw await de_ValidationExceptionRes(parsedOutput, context);
677
672
  default:
678
673
  const parsedBody = parsedOutput.body;
679
- throwDefaultError({
674
+ return throwDefaultError({
680
675
  output,
681
676
  parsedBody,
682
- exceptionCtor: __BaseException,
683
677
  errorCode,
684
678
  });
685
679
  }
@@ -690,12 +684,12 @@ export const de_CreateFirewallRuleGroupCommand = async (output, context) => {
690
684
  }
691
685
  const data = await parseBody(output.body, context);
692
686
  let contents = {};
693
- contents = de_CreateFirewallRuleGroupResponse(data, context);
687
+ contents = _json(data);
694
688
  const response = {
695
689
  $metadata: deserializeMetadata(output),
696
690
  ...contents,
697
691
  };
698
- return Promise.resolve(response);
692
+ return response;
699
693
  };
700
694
  const de_CreateFirewallRuleGroupCommandError = async (output, context) => {
701
695
  const parsedOutput = {
@@ -721,10 +715,9 @@ const de_CreateFirewallRuleGroupCommandError = async (output, context) => {
721
715
  throw await de_ValidationExceptionRes(parsedOutput, context);
722
716
  default:
723
717
  const parsedBody = parsedOutput.body;
724
- throwDefaultError({
718
+ return throwDefaultError({
725
719
  output,
726
720
  parsedBody,
727
- exceptionCtor: __BaseException,
728
721
  errorCode,
729
722
  });
730
723
  }
@@ -735,12 +728,12 @@ export const de_CreateResolverEndpointCommand = async (output, context) => {
735
728
  }
736
729
  const data = await parseBody(output.body, context);
737
730
  let contents = {};
738
- contents = de_CreateResolverEndpointResponse(data, context);
731
+ contents = _json(data);
739
732
  const response = {
740
733
  $metadata: deserializeMetadata(output),
741
734
  ...contents,
742
735
  };
743
- return Promise.resolve(response);
736
+ return response;
744
737
  };
745
738
  const de_CreateResolverEndpointCommandError = async (output, context) => {
746
739
  const parsedOutput = {
@@ -772,10 +765,9 @@ const de_CreateResolverEndpointCommandError = async (output, context) => {
772
765
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
773
766
  default:
774
767
  const parsedBody = parsedOutput.body;
775
- throwDefaultError({
768
+ return throwDefaultError({
776
769
  output,
777
770
  parsedBody,
778
- exceptionCtor: __BaseException,
779
771
  errorCode,
780
772
  });
781
773
  }
@@ -786,12 +778,12 @@ export const de_CreateResolverQueryLogConfigCommand = async (output, context) =>
786
778
  }
787
779
  const data = await parseBody(output.body, context);
788
780
  let contents = {};
789
- contents = de_CreateResolverQueryLogConfigResponse(data, context);
781
+ contents = _json(data);
790
782
  const response = {
791
783
  $metadata: deserializeMetadata(output),
792
784
  ...contents,
793
785
  };
794
- return Promise.resolve(response);
786
+ return response;
795
787
  };
796
788
  const de_CreateResolverQueryLogConfigCommandError = async (output, context) => {
797
789
  const parsedOutput = {
@@ -826,10 +818,9 @@ const de_CreateResolverQueryLogConfigCommandError = async (output, context) => {
826
818
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
827
819
  default:
828
820
  const parsedBody = parsedOutput.body;
829
- throwDefaultError({
821
+ return throwDefaultError({
830
822
  output,
831
823
  parsedBody,
832
- exceptionCtor: __BaseException,
833
824
  errorCode,
834
825
  });
835
826
  }
@@ -840,12 +831,12 @@ export const de_CreateResolverRuleCommand = async (output, context) => {
840
831
  }
841
832
  const data = await parseBody(output.body, context);
842
833
  let contents = {};
843
- contents = de_CreateResolverRuleResponse(data, context);
834
+ contents = _json(data);
844
835
  const response = {
845
836
  $metadata: deserializeMetadata(output),
846
837
  ...contents,
847
838
  };
848
- return Promise.resolve(response);
839
+ return response;
849
840
  };
850
841
  const de_CreateResolverRuleCommandError = async (output, context) => {
851
842
  const parsedOutput = {
@@ -880,10 +871,9 @@ const de_CreateResolverRuleCommandError = async (output, context) => {
880
871
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
881
872
  default:
882
873
  const parsedBody = parsedOutput.body;
883
- throwDefaultError({
874
+ return throwDefaultError({
884
875
  output,
885
876
  parsedBody,
886
- exceptionCtor: __BaseException,
887
877
  errorCode,
888
878
  });
889
879
  }
@@ -894,12 +884,12 @@ export const de_DeleteFirewallDomainListCommand = async (output, context) => {
894
884
  }
895
885
  const data = await parseBody(output.body, context);
896
886
  let contents = {};
897
- contents = de_DeleteFirewallDomainListResponse(data, context);
887
+ contents = _json(data);
898
888
  const response = {
899
889
  $metadata: deserializeMetadata(output),
900
890
  ...contents,
901
891
  };
902
- return Promise.resolve(response);
892
+ return response;
903
893
  };
904
894
  const de_DeleteFirewallDomainListCommandError = async (output, context) => {
905
895
  const parsedOutput = {
@@ -925,10 +915,9 @@ const de_DeleteFirewallDomainListCommandError = async (output, context) => {
925
915
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
926
916
  default:
927
917
  const parsedBody = parsedOutput.body;
928
- throwDefaultError({
918
+ return throwDefaultError({
929
919
  output,
930
920
  parsedBody,
931
- exceptionCtor: __BaseException,
932
921
  errorCode,
933
922
  });
934
923
  }
@@ -939,12 +928,12 @@ export const de_DeleteFirewallRuleCommand = async (output, context) => {
939
928
  }
940
929
  const data = await parseBody(output.body, context);
941
930
  let contents = {};
942
- contents = de_DeleteFirewallRuleResponse(data, context);
931
+ contents = _json(data);
943
932
  const response = {
944
933
  $metadata: deserializeMetadata(output),
945
934
  ...contents,
946
935
  };
947
- return Promise.resolve(response);
936
+ return response;
948
937
  };
949
938
  const de_DeleteFirewallRuleCommandError = async (output, context) => {
950
939
  const parsedOutput = {
@@ -967,10 +956,9 @@ const de_DeleteFirewallRuleCommandError = async (output, context) => {
967
956
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
968
957
  default:
969
958
  const parsedBody = parsedOutput.body;
970
- throwDefaultError({
959
+ return throwDefaultError({
971
960
  output,
972
961
  parsedBody,
973
- exceptionCtor: __BaseException,
974
962
  errorCode,
975
963
  });
976
964
  }
@@ -981,12 +969,12 @@ export const de_DeleteFirewallRuleGroupCommand = async (output, context) => {
981
969
  }
982
970
  const data = await parseBody(output.body, context);
983
971
  let contents = {};
984
- contents = de_DeleteFirewallRuleGroupResponse(data, context);
972
+ contents = _json(data);
985
973
  const response = {
986
974
  $metadata: deserializeMetadata(output),
987
975
  ...contents,
988
976
  };
989
- return Promise.resolve(response);
977
+ return response;
990
978
  };
991
979
  const de_DeleteFirewallRuleGroupCommandError = async (output, context) => {
992
980
  const parsedOutput = {
@@ -1015,10 +1003,9 @@ const de_DeleteFirewallRuleGroupCommandError = async (output, context) => {
1015
1003
  throw await de_ValidationExceptionRes(parsedOutput, context);
1016
1004
  default:
1017
1005
  const parsedBody = parsedOutput.body;
1018
- throwDefaultError({
1006
+ return throwDefaultError({
1019
1007
  output,
1020
1008
  parsedBody,
1021
- exceptionCtor: __BaseException,
1022
1009
  errorCode,
1023
1010
  });
1024
1011
  }
@@ -1029,12 +1016,12 @@ export const de_DeleteResolverEndpointCommand = async (output, context) => {
1029
1016
  }
1030
1017
  const data = await parseBody(output.body, context);
1031
1018
  let contents = {};
1032
- contents = de_DeleteResolverEndpointResponse(data, context);
1019
+ contents = _json(data);
1033
1020
  const response = {
1034
1021
  $metadata: deserializeMetadata(output),
1035
1022
  ...contents,
1036
1023
  };
1037
- return Promise.resolve(response);
1024
+ return response;
1038
1025
  };
1039
1026
  const de_DeleteResolverEndpointCommandError = async (output, context) => {
1040
1027
  const parsedOutput = {
@@ -1060,10 +1047,9 @@ const de_DeleteResolverEndpointCommandError = async (output, context) => {
1060
1047
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1061
1048
  default:
1062
1049
  const parsedBody = parsedOutput.body;
1063
- throwDefaultError({
1050
+ return throwDefaultError({
1064
1051
  output,
1065
1052
  parsedBody,
1066
- exceptionCtor: __BaseException,
1067
1053
  errorCode,
1068
1054
  });
1069
1055
  }
@@ -1074,12 +1060,12 @@ export const de_DeleteResolverQueryLogConfigCommand = async (output, context) =>
1074
1060
  }
1075
1061
  const data = await parseBody(output.body, context);
1076
1062
  let contents = {};
1077
- contents = de_DeleteResolverQueryLogConfigResponse(data, context);
1063
+ contents = _json(data);
1078
1064
  const response = {
1079
1065
  $metadata: deserializeMetadata(output),
1080
1066
  ...contents,
1081
1067
  };
1082
- return Promise.resolve(response);
1068
+ return response;
1083
1069
  };
1084
1070
  const de_DeleteResolverQueryLogConfigCommandError = async (output, context) => {
1085
1071
  const parsedOutput = {
@@ -1108,10 +1094,9 @@ const de_DeleteResolverQueryLogConfigCommandError = async (output, context) => {
1108
1094
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1109
1095
  default:
1110
1096
  const parsedBody = parsedOutput.body;
1111
- throwDefaultError({
1097
+ return throwDefaultError({
1112
1098
  output,
1113
1099
  parsedBody,
1114
- exceptionCtor: __BaseException,
1115
1100
  errorCode,
1116
1101
  });
1117
1102
  }
@@ -1122,12 +1107,12 @@ export const de_DeleteResolverRuleCommand = async (output, context) => {
1122
1107
  }
1123
1108
  const data = await parseBody(output.body, context);
1124
1109
  let contents = {};
1125
- contents = de_DeleteResolverRuleResponse(data, context);
1110
+ contents = _json(data);
1126
1111
  const response = {
1127
1112
  $metadata: deserializeMetadata(output),
1128
1113
  ...contents,
1129
1114
  };
1130
- return Promise.resolve(response);
1115
+ return response;
1131
1116
  };
1132
1117
  const de_DeleteResolverRuleCommandError = async (output, context) => {
1133
1118
  const parsedOutput = {
@@ -1153,10 +1138,9 @@ const de_DeleteResolverRuleCommandError = async (output, context) => {
1153
1138
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1154
1139
  default:
1155
1140
  const parsedBody = parsedOutput.body;
1156
- throwDefaultError({
1141
+ return throwDefaultError({
1157
1142
  output,
1158
1143
  parsedBody,
1159
- exceptionCtor: __BaseException,
1160
1144
  errorCode,
1161
1145
  });
1162
1146
  }
@@ -1167,12 +1151,12 @@ export const de_DisassociateFirewallRuleGroupCommand = async (output, context) =
1167
1151
  }
1168
1152
  const data = await parseBody(output.body, context);
1169
1153
  let contents = {};
1170
- contents = de_DisassociateFirewallRuleGroupResponse(data, context);
1154
+ contents = _json(data);
1171
1155
  const response = {
1172
1156
  $metadata: deserializeMetadata(output),
1173
1157
  ...contents,
1174
1158
  };
1175
- return Promise.resolve(response);
1159
+ return response;
1176
1160
  };
1177
1161
  const de_DisassociateFirewallRuleGroupCommandError = async (output, context) => {
1178
1162
  const parsedOutput = {
@@ -1201,10 +1185,9 @@ const de_DisassociateFirewallRuleGroupCommandError = async (output, context) =>
1201
1185
  throw await de_ValidationExceptionRes(parsedOutput, context);
1202
1186
  default:
1203
1187
  const parsedBody = parsedOutput.body;
1204
- throwDefaultError({
1188
+ return throwDefaultError({
1205
1189
  output,
1206
1190
  parsedBody,
1207
- exceptionCtor: __BaseException,
1208
1191
  errorCode,
1209
1192
  });
1210
1193
  }
@@ -1215,12 +1198,12 @@ export const de_DisassociateResolverEndpointIpAddressCommand = async (output, co
1215
1198
  }
1216
1199
  const data = await parseBody(output.body, context);
1217
1200
  let contents = {};
1218
- contents = de_DisassociateResolverEndpointIpAddressResponse(data, context);
1201
+ contents = _json(data);
1219
1202
  const response = {
1220
1203
  $metadata: deserializeMetadata(output),
1221
1204
  ...contents,
1222
1205
  };
1223
- return Promise.resolve(response);
1206
+ return response;
1224
1207
  };
1225
1208
  const de_DisassociateResolverEndpointIpAddressCommandError = async (output, context) => {
1226
1209
  const parsedOutput = {
@@ -1249,10 +1232,9 @@ const de_DisassociateResolverEndpointIpAddressCommandError = async (output, cont
1249
1232
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1250
1233
  default:
1251
1234
  const parsedBody = parsedOutput.body;
1252
- throwDefaultError({
1235
+ return throwDefaultError({
1253
1236
  output,
1254
1237
  parsedBody,
1255
- exceptionCtor: __BaseException,
1256
1238
  errorCode,
1257
1239
  });
1258
1240
  }
@@ -1263,12 +1245,12 @@ export const de_DisassociateResolverQueryLogConfigCommand = async (output, conte
1263
1245
  }
1264
1246
  const data = await parseBody(output.body, context);
1265
1247
  let contents = {};
1266
- contents = de_DisassociateResolverQueryLogConfigResponse(data, context);
1248
+ contents = _json(data);
1267
1249
  const response = {
1268
1250
  $metadata: deserializeMetadata(output),
1269
1251
  ...contents,
1270
1252
  };
1271
- return Promise.resolve(response);
1253
+ return response;
1272
1254
  };
1273
1255
  const de_DisassociateResolverQueryLogConfigCommandError = async (output, context) => {
1274
1256
  const parsedOutput = {
@@ -1297,10 +1279,9 @@ const de_DisassociateResolverQueryLogConfigCommandError = async (output, context
1297
1279
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1298
1280
  default:
1299
1281
  const parsedBody = parsedOutput.body;
1300
- throwDefaultError({
1282
+ return throwDefaultError({
1301
1283
  output,
1302
1284
  parsedBody,
1303
- exceptionCtor: __BaseException,
1304
1285
  errorCode,
1305
1286
  });
1306
1287
  }
@@ -1311,12 +1292,12 @@ export const de_DisassociateResolverRuleCommand = async (output, context) => {
1311
1292
  }
1312
1293
  const data = await parseBody(output.body, context);
1313
1294
  let contents = {};
1314
- contents = de_DisassociateResolverRuleResponse(data, context);
1295
+ contents = _json(data);
1315
1296
  const response = {
1316
1297
  $metadata: deserializeMetadata(output),
1317
1298
  ...contents,
1318
1299
  };
1319
- return Promise.resolve(response);
1300
+ return response;
1320
1301
  };
1321
1302
  const de_DisassociateResolverRuleCommandError = async (output, context) => {
1322
1303
  const parsedOutput = {
@@ -1339,10 +1320,9 @@ const de_DisassociateResolverRuleCommandError = async (output, context) => {
1339
1320
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1340
1321
  default:
1341
1322
  const parsedBody = parsedOutput.body;
1342
- throwDefaultError({
1323
+ return throwDefaultError({
1343
1324
  output,
1344
1325
  parsedBody,
1345
- exceptionCtor: __BaseException,
1346
1326
  errorCode,
1347
1327
  });
1348
1328
  }
@@ -1353,12 +1333,12 @@ export const de_GetFirewallConfigCommand = async (output, context) => {
1353
1333
  }
1354
1334
  const data = await parseBody(output.body, context);
1355
1335
  let contents = {};
1356
- contents = de_GetFirewallConfigResponse(data, context);
1336
+ contents = _json(data);
1357
1337
  const response = {
1358
1338
  $metadata: deserializeMetadata(output),
1359
1339
  ...contents,
1360
1340
  };
1361
- return Promise.resolve(response);
1341
+ return response;
1362
1342
  };
1363
1343
  const de_GetFirewallConfigCommandError = async (output, context) => {
1364
1344
  const parsedOutput = {
@@ -1384,10 +1364,9 @@ const de_GetFirewallConfigCommandError = async (output, context) => {
1384
1364
  throw await de_ValidationExceptionRes(parsedOutput, context);
1385
1365
  default:
1386
1366
  const parsedBody = parsedOutput.body;
1387
- throwDefaultError({
1367
+ return throwDefaultError({
1388
1368
  output,
1389
1369
  parsedBody,
1390
- exceptionCtor: __BaseException,
1391
1370
  errorCode,
1392
1371
  });
1393
1372
  }
@@ -1398,12 +1377,12 @@ export const de_GetFirewallDomainListCommand = async (output, context) => {
1398
1377
  }
1399
1378
  const data = await parseBody(output.body, context);
1400
1379
  let contents = {};
1401
- contents = de_GetFirewallDomainListResponse(data, context);
1380
+ contents = _json(data);
1402
1381
  const response = {
1403
1382
  $metadata: deserializeMetadata(output),
1404
1383
  ...contents,
1405
1384
  };
1406
- return Promise.resolve(response);
1385
+ return response;
1407
1386
  };
1408
1387
  const de_GetFirewallDomainListCommandError = async (output, context) => {
1409
1388
  const parsedOutput = {
@@ -1426,10 +1405,9 @@ const de_GetFirewallDomainListCommandError = async (output, context) => {
1426
1405
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1427
1406
  default:
1428
1407
  const parsedBody = parsedOutput.body;
1429
- throwDefaultError({
1408
+ return throwDefaultError({
1430
1409
  output,
1431
1410
  parsedBody,
1432
- exceptionCtor: __BaseException,
1433
1411
  errorCode,
1434
1412
  });
1435
1413
  }
@@ -1440,12 +1418,12 @@ export const de_GetFirewallRuleGroupCommand = async (output, context) => {
1440
1418
  }
1441
1419
  const data = await parseBody(output.body, context);
1442
1420
  let contents = {};
1443
- contents = de_GetFirewallRuleGroupResponse(data, context);
1421
+ contents = _json(data);
1444
1422
  const response = {
1445
1423
  $metadata: deserializeMetadata(output),
1446
1424
  ...contents,
1447
1425
  };
1448
- return Promise.resolve(response);
1426
+ return response;
1449
1427
  };
1450
1428
  const de_GetFirewallRuleGroupCommandError = async (output, context) => {
1451
1429
  const parsedOutput = {
@@ -1468,10 +1446,9 @@ const de_GetFirewallRuleGroupCommandError = async (output, context) => {
1468
1446
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1469
1447
  default:
1470
1448
  const parsedBody = parsedOutput.body;
1471
- throwDefaultError({
1449
+ return throwDefaultError({
1472
1450
  output,
1473
1451
  parsedBody,
1474
- exceptionCtor: __BaseException,
1475
1452
  errorCode,
1476
1453
  });
1477
1454
  }
@@ -1482,12 +1459,12 @@ export const de_GetFirewallRuleGroupAssociationCommand = async (output, context)
1482
1459
  }
1483
1460
  const data = await parseBody(output.body, context);
1484
1461
  let contents = {};
1485
- contents = de_GetFirewallRuleGroupAssociationResponse(data, context);
1462
+ contents = _json(data);
1486
1463
  const response = {
1487
1464
  $metadata: deserializeMetadata(output),
1488
1465
  ...contents,
1489
1466
  };
1490
- return Promise.resolve(response);
1467
+ return response;
1491
1468
  };
1492
1469
  const de_GetFirewallRuleGroupAssociationCommandError = async (output, context) => {
1493
1470
  const parsedOutput = {
@@ -1510,10 +1487,9 @@ const de_GetFirewallRuleGroupAssociationCommandError = async (output, context) =
1510
1487
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1511
1488
  default:
1512
1489
  const parsedBody = parsedOutput.body;
1513
- throwDefaultError({
1490
+ return throwDefaultError({
1514
1491
  output,
1515
1492
  parsedBody,
1516
- exceptionCtor: __BaseException,
1517
1493
  errorCode,
1518
1494
  });
1519
1495
  }
@@ -1524,12 +1500,12 @@ export const de_GetFirewallRuleGroupPolicyCommand = async (output, context) => {
1524
1500
  }
1525
1501
  const data = await parseBody(output.body, context);
1526
1502
  let contents = {};
1527
- contents = de_GetFirewallRuleGroupPolicyResponse(data, context);
1503
+ contents = _json(data);
1528
1504
  const response = {
1529
1505
  $metadata: deserializeMetadata(output),
1530
1506
  ...contents,
1531
1507
  };
1532
- return Promise.resolve(response);
1508
+ return response;
1533
1509
  };
1534
1510
  const de_GetFirewallRuleGroupPolicyCommandError = async (output, context) => {
1535
1511
  const parsedOutput = {
@@ -1555,10 +1531,9 @@ const de_GetFirewallRuleGroupPolicyCommandError = async (output, context) => {
1555
1531
  throw await de_ValidationExceptionRes(parsedOutput, context);
1556
1532
  default:
1557
1533
  const parsedBody = parsedOutput.body;
1558
- throwDefaultError({
1534
+ return throwDefaultError({
1559
1535
  output,
1560
1536
  parsedBody,
1561
- exceptionCtor: __BaseException,
1562
1537
  errorCode,
1563
1538
  });
1564
1539
  }
@@ -1569,12 +1544,12 @@ export const de_GetResolverConfigCommand = async (output, context) => {
1569
1544
  }
1570
1545
  const data = await parseBody(output.body, context);
1571
1546
  let contents = {};
1572
- contents = de_GetResolverConfigResponse(data, context);
1547
+ contents = _json(data);
1573
1548
  const response = {
1574
1549
  $metadata: deserializeMetadata(output),
1575
1550
  ...contents,
1576
1551
  };
1577
- return Promise.resolve(response);
1552
+ return response;
1578
1553
  };
1579
1554
  const de_GetResolverConfigCommandError = async (output, context) => {
1580
1555
  const parsedOutput = {
@@ -1603,10 +1578,9 @@ const de_GetResolverConfigCommandError = async (output, context) => {
1603
1578
  throw await de_ValidationExceptionRes(parsedOutput, context);
1604
1579
  default:
1605
1580
  const parsedBody = parsedOutput.body;
1606
- throwDefaultError({
1581
+ return throwDefaultError({
1607
1582
  output,
1608
1583
  parsedBody,
1609
- exceptionCtor: __BaseException,
1610
1584
  errorCode,
1611
1585
  });
1612
1586
  }
@@ -1617,12 +1591,12 @@ export const de_GetResolverDnssecConfigCommand = async (output, context) => {
1617
1591
  }
1618
1592
  const data = await parseBody(output.body, context);
1619
1593
  let contents = {};
1620
- contents = de_GetResolverDnssecConfigResponse(data, context);
1594
+ contents = _json(data);
1621
1595
  const response = {
1622
1596
  $metadata: deserializeMetadata(output),
1623
1597
  ...contents,
1624
1598
  };
1625
- return Promise.resolve(response);
1599
+ return response;
1626
1600
  };
1627
1601
  const de_GetResolverDnssecConfigCommandError = async (output, context) => {
1628
1602
  const parsedOutput = {
@@ -1651,10 +1625,9 @@ const de_GetResolverDnssecConfigCommandError = async (output, context) => {
1651
1625
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1652
1626
  default:
1653
1627
  const parsedBody = parsedOutput.body;
1654
- throwDefaultError({
1628
+ return throwDefaultError({
1655
1629
  output,
1656
1630
  parsedBody,
1657
- exceptionCtor: __BaseException,
1658
1631
  errorCode,
1659
1632
  });
1660
1633
  }
@@ -1665,12 +1638,12 @@ export const de_GetResolverEndpointCommand = async (output, context) => {
1665
1638
  }
1666
1639
  const data = await parseBody(output.body, context);
1667
1640
  let contents = {};
1668
- contents = de_GetResolverEndpointResponse(data, context);
1641
+ contents = _json(data);
1669
1642
  const response = {
1670
1643
  $metadata: deserializeMetadata(output),
1671
1644
  ...contents,
1672
1645
  };
1673
- return Promise.resolve(response);
1646
+ return response;
1674
1647
  };
1675
1648
  const de_GetResolverEndpointCommandError = async (output, context) => {
1676
1649
  const parsedOutput = {
@@ -1693,10 +1666,9 @@ const de_GetResolverEndpointCommandError = async (output, context) => {
1693
1666
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1694
1667
  default:
1695
1668
  const parsedBody = parsedOutput.body;
1696
- throwDefaultError({
1669
+ return throwDefaultError({
1697
1670
  output,
1698
1671
  parsedBody,
1699
- exceptionCtor: __BaseException,
1700
1672
  errorCode,
1701
1673
  });
1702
1674
  }
@@ -1707,12 +1679,12 @@ export const de_GetResolverQueryLogConfigCommand = async (output, context) => {
1707
1679
  }
1708
1680
  const data = await parseBody(output.body, context);
1709
1681
  let contents = {};
1710
- contents = de_GetResolverQueryLogConfigResponse(data, context);
1682
+ contents = _json(data);
1711
1683
  const response = {
1712
1684
  $metadata: deserializeMetadata(output),
1713
1685
  ...contents,
1714
1686
  };
1715
- return Promise.resolve(response);
1687
+ return response;
1716
1688
  };
1717
1689
  const de_GetResolverQueryLogConfigCommandError = async (output, context) => {
1718
1690
  const parsedOutput = {
@@ -1741,10 +1713,9 @@ const de_GetResolverQueryLogConfigCommandError = async (output, context) => {
1741
1713
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1742
1714
  default:
1743
1715
  const parsedBody = parsedOutput.body;
1744
- throwDefaultError({
1716
+ return throwDefaultError({
1745
1717
  output,
1746
1718
  parsedBody,
1747
- exceptionCtor: __BaseException,
1748
1719
  errorCode,
1749
1720
  });
1750
1721
  }
@@ -1755,12 +1726,12 @@ export const de_GetResolverQueryLogConfigAssociationCommand = async (output, con
1755
1726
  }
1756
1727
  const data = await parseBody(output.body, context);
1757
1728
  let contents = {};
1758
- contents = de_GetResolverQueryLogConfigAssociationResponse(data, context);
1729
+ contents = _json(data);
1759
1730
  const response = {
1760
1731
  $metadata: deserializeMetadata(output),
1761
1732
  ...contents,
1762
1733
  };
1763
- return Promise.resolve(response);
1734
+ return response;
1764
1735
  };
1765
1736
  const de_GetResolverQueryLogConfigAssociationCommandError = async (output, context) => {
1766
1737
  const parsedOutput = {
@@ -1789,10 +1760,9 @@ const de_GetResolverQueryLogConfigAssociationCommandError = async (output, conte
1789
1760
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1790
1761
  default:
1791
1762
  const parsedBody = parsedOutput.body;
1792
- throwDefaultError({
1763
+ return throwDefaultError({
1793
1764
  output,
1794
1765
  parsedBody,
1795
- exceptionCtor: __BaseException,
1796
1766
  errorCode,
1797
1767
  });
1798
1768
  }
@@ -1803,12 +1773,12 @@ export const de_GetResolverQueryLogConfigPolicyCommand = async (output, context)
1803
1773
  }
1804
1774
  const data = await parseBody(output.body, context);
1805
1775
  let contents = {};
1806
- contents = de_GetResolverQueryLogConfigPolicyResponse(data, context);
1776
+ contents = _json(data);
1807
1777
  const response = {
1808
1778
  $metadata: deserializeMetadata(output),
1809
1779
  ...contents,
1810
1780
  };
1811
- return Promise.resolve(response);
1781
+ return response;
1812
1782
  };
1813
1783
  const de_GetResolverQueryLogConfigPolicyCommandError = async (output, context) => {
1814
1784
  const parsedOutput = {
@@ -1834,10 +1804,9 @@ const de_GetResolverQueryLogConfigPolicyCommandError = async (output, context) =
1834
1804
  throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1835
1805
  default:
1836
1806
  const parsedBody = parsedOutput.body;
1837
- throwDefaultError({
1807
+ return throwDefaultError({
1838
1808
  output,
1839
1809
  parsedBody,
1840
- exceptionCtor: __BaseException,
1841
1810
  errorCode,
1842
1811
  });
1843
1812
  }
@@ -1848,12 +1817,12 @@ export const de_GetResolverRuleCommand = async (output, context) => {
1848
1817
  }
1849
1818
  const data = await parseBody(output.body, context);
1850
1819
  let contents = {};
1851
- contents = de_GetResolverRuleResponse(data, context);
1820
+ contents = _json(data);
1852
1821
  const response = {
1853
1822
  $metadata: deserializeMetadata(output),
1854
1823
  ...contents,
1855
1824
  };
1856
- return Promise.resolve(response);
1825
+ return response;
1857
1826
  };
1858
1827
  const de_GetResolverRuleCommandError = async (output, context) => {
1859
1828
  const parsedOutput = {
@@ -1876,10 +1845,9 @@ const de_GetResolverRuleCommandError = async (output, context) => {
1876
1845
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1877
1846
  default:
1878
1847
  const parsedBody = parsedOutput.body;
1879
- throwDefaultError({
1848
+ return throwDefaultError({
1880
1849
  output,
1881
1850
  parsedBody,
1882
- exceptionCtor: __BaseException,
1883
1851
  errorCode,
1884
1852
  });
1885
1853
  }
@@ -1890,12 +1858,12 @@ export const de_GetResolverRuleAssociationCommand = async (output, context) => {
1890
1858
  }
1891
1859
  const data = await parseBody(output.body, context);
1892
1860
  let contents = {};
1893
- contents = de_GetResolverRuleAssociationResponse(data, context);
1861
+ contents = _json(data);
1894
1862
  const response = {
1895
1863
  $metadata: deserializeMetadata(output),
1896
1864
  ...contents,
1897
1865
  };
1898
- return Promise.resolve(response);
1866
+ return response;
1899
1867
  };
1900
1868
  const de_GetResolverRuleAssociationCommandError = async (output, context) => {
1901
1869
  const parsedOutput = {
@@ -1918,10 +1886,9 @@ const de_GetResolverRuleAssociationCommandError = async (output, context) => {
1918
1886
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1919
1887
  default:
1920
1888
  const parsedBody = parsedOutput.body;
1921
- throwDefaultError({
1889
+ return throwDefaultError({
1922
1890
  output,
1923
1891
  parsedBody,
1924
- exceptionCtor: __BaseException,
1925
1892
  errorCode,
1926
1893
  });
1927
1894
  }
@@ -1932,12 +1899,12 @@ export const de_GetResolverRulePolicyCommand = async (output, context) => {
1932
1899
  }
1933
1900
  const data = await parseBody(output.body, context);
1934
1901
  let contents = {};
1935
- contents = de_GetResolverRulePolicyResponse(data, context);
1902
+ contents = _json(data);
1936
1903
  const response = {
1937
1904
  $metadata: deserializeMetadata(output),
1938
1905
  ...contents,
1939
1906
  };
1940
- return Promise.resolve(response);
1907
+ return response;
1941
1908
  };
1942
1909
  const de_GetResolverRulePolicyCommandError = async (output, context) => {
1943
1910
  const parsedOutput = {
@@ -1960,10 +1927,9 @@ const de_GetResolverRulePolicyCommandError = async (output, context) => {
1960
1927
  throw await de_UnknownResourceExceptionRes(parsedOutput, context);
1961
1928
  default:
1962
1929
  const parsedBody = parsedOutput.body;
1963
- throwDefaultError({
1930
+ return throwDefaultError({
1964
1931
  output,
1965
1932
  parsedBody,
1966
- exceptionCtor: __BaseException,
1967
1933
  errorCode,
1968
1934
  });
1969
1935
  }
@@ -1974,12 +1940,12 @@ export const de_ImportFirewallDomainsCommand = async (output, context) => {
1974
1940
  }
1975
1941
  const data = await parseBody(output.body, context);
1976
1942
  let contents = {};
1977
- contents = de_ImportFirewallDomainsResponse(data, context);
1943
+ contents = _json(data);
1978
1944
  const response = {
1979
1945
  $metadata: deserializeMetadata(output),
1980
1946
  ...contents,
1981
1947
  };
1982
- return Promise.resolve(response);
1948
+ return response;
1983
1949
  };
1984
1950
  const de_ImportFirewallDomainsCommandError = async (output, context) => {
1985
1951
  const parsedOutput = {
@@ -2011,10 +1977,9 @@ const de_ImportFirewallDomainsCommandError = async (output, context) => {
2011
1977
  throw await de_ValidationExceptionRes(parsedOutput, context);
2012
1978
  default:
2013
1979
  const parsedBody = parsedOutput.body;
2014
- throwDefaultError({
1980
+ return throwDefaultError({
2015
1981
  output,
2016
1982
  parsedBody,
2017
- exceptionCtor: __BaseException,
2018
1983
  errorCode,
2019
1984
  });
2020
1985
  }
@@ -2025,12 +1990,12 @@ export const de_ListFirewallConfigsCommand = async (output, context) => {
2025
1990
  }
2026
1991
  const data = await parseBody(output.body, context);
2027
1992
  let contents = {};
2028
- contents = de_ListFirewallConfigsResponse(data, context);
1993
+ contents = _json(data);
2029
1994
  const response = {
2030
1995
  $metadata: deserializeMetadata(output),
2031
1996
  ...contents,
2032
1997
  };
2033
- return Promise.resolve(response);
1998
+ return response;
2034
1999
  };
2035
2000
  const de_ListFirewallConfigsCommandError = async (output, context) => {
2036
2001
  const parsedOutput = {
@@ -2053,10 +2018,9 @@ const de_ListFirewallConfigsCommandError = async (output, context) => {
2053
2018
  throw await de_ValidationExceptionRes(parsedOutput, context);
2054
2019
  default:
2055
2020
  const parsedBody = parsedOutput.body;
2056
- throwDefaultError({
2021
+ return throwDefaultError({
2057
2022
  output,
2058
2023
  parsedBody,
2059
- exceptionCtor: __BaseException,
2060
2024
  errorCode,
2061
2025
  });
2062
2026
  }
@@ -2067,12 +2031,12 @@ export const de_ListFirewallDomainListsCommand = async (output, context) => {
2067
2031
  }
2068
2032
  const data = await parseBody(output.body, context);
2069
2033
  let contents = {};
2070
- contents = de_ListFirewallDomainListsResponse(data, context);
2034
+ contents = _json(data);
2071
2035
  const response = {
2072
2036
  $metadata: deserializeMetadata(output),
2073
2037
  ...contents,
2074
2038
  };
2075
- return Promise.resolve(response);
2039
+ return response;
2076
2040
  };
2077
2041
  const de_ListFirewallDomainListsCommandError = async (output, context) => {
2078
2042
  const parsedOutput = {
@@ -2095,10 +2059,9 @@ const de_ListFirewallDomainListsCommandError = async (output, context) => {
2095
2059
  throw await de_ValidationExceptionRes(parsedOutput, context);
2096
2060
  default:
2097
2061
  const parsedBody = parsedOutput.body;
2098
- throwDefaultError({
2062
+ return throwDefaultError({
2099
2063
  output,
2100
2064
  parsedBody,
2101
- exceptionCtor: __BaseException,
2102
2065
  errorCode,
2103
2066
  });
2104
2067
  }
@@ -2109,12 +2072,12 @@ export const de_ListFirewallDomainsCommand = async (output, context) => {
2109
2072
  }
2110
2073
  const data = await parseBody(output.body, context);
2111
2074
  let contents = {};
2112
- contents = de_ListFirewallDomainsResponse(data, context);
2075
+ contents = _json(data);
2113
2076
  const response = {
2114
2077
  $metadata: deserializeMetadata(output),
2115
2078
  ...contents,
2116
2079
  };
2117
- return Promise.resolve(response);
2080
+ return response;
2118
2081
  };
2119
2082
  const de_ListFirewallDomainsCommandError = async (output, context) => {
2120
2083
  const parsedOutput = {
@@ -2140,10 +2103,9 @@ const de_ListFirewallDomainsCommandError = async (output, context) => {
2140
2103
  throw await de_ValidationExceptionRes(parsedOutput, context);
2141
2104
  default:
2142
2105
  const parsedBody = parsedOutput.body;
2143
- throwDefaultError({
2106
+ return throwDefaultError({
2144
2107
  output,
2145
2108
  parsedBody,
2146
- exceptionCtor: __BaseException,
2147
2109
  errorCode,
2148
2110
  });
2149
2111
  }
@@ -2154,12 +2116,12 @@ export const de_ListFirewallRuleGroupAssociationsCommand = async (output, contex
2154
2116
  }
2155
2117
  const data = await parseBody(output.body, context);
2156
2118
  let contents = {};
2157
- contents = de_ListFirewallRuleGroupAssociationsResponse(data, context);
2119
+ contents = _json(data);
2158
2120
  const response = {
2159
2121
  $metadata: deserializeMetadata(output),
2160
2122
  ...contents,
2161
2123
  };
2162
- return Promise.resolve(response);
2124
+ return response;
2163
2125
  };
2164
2126
  const de_ListFirewallRuleGroupAssociationsCommandError = async (output, context) => {
2165
2127
  const parsedOutput = {
@@ -2182,10 +2144,9 @@ const de_ListFirewallRuleGroupAssociationsCommandError = async (output, context)
2182
2144
  throw await de_ValidationExceptionRes(parsedOutput, context);
2183
2145
  default:
2184
2146
  const parsedBody = parsedOutput.body;
2185
- throwDefaultError({
2147
+ return throwDefaultError({
2186
2148
  output,
2187
2149
  parsedBody,
2188
- exceptionCtor: __BaseException,
2189
2150
  errorCode,
2190
2151
  });
2191
2152
  }
@@ -2196,12 +2157,12 @@ export const de_ListFirewallRuleGroupsCommand = async (output, context) => {
2196
2157
  }
2197
2158
  const data = await parseBody(output.body, context);
2198
2159
  let contents = {};
2199
- contents = de_ListFirewallRuleGroupsResponse(data, context);
2160
+ contents = _json(data);
2200
2161
  const response = {
2201
2162
  $metadata: deserializeMetadata(output),
2202
2163
  ...contents,
2203
2164
  };
2204
- return Promise.resolve(response);
2165
+ return response;
2205
2166
  };
2206
2167
  const de_ListFirewallRuleGroupsCommandError = async (output, context) => {
2207
2168
  const parsedOutput = {
@@ -2224,10 +2185,9 @@ const de_ListFirewallRuleGroupsCommandError = async (output, context) => {
2224
2185
  throw await de_ValidationExceptionRes(parsedOutput, context);
2225
2186
  default:
2226
2187
  const parsedBody = parsedOutput.body;
2227
- throwDefaultError({
2188
+ return throwDefaultError({
2228
2189
  output,
2229
2190
  parsedBody,
2230
- exceptionCtor: __BaseException,
2231
2191
  errorCode,
2232
2192
  });
2233
2193
  }
@@ -2238,12 +2198,12 @@ export const de_ListFirewallRulesCommand = async (output, context) => {
2238
2198
  }
2239
2199
  const data = await parseBody(output.body, context);
2240
2200
  let contents = {};
2241
- contents = de_ListFirewallRulesResponse(data, context);
2201
+ contents = _json(data);
2242
2202
  const response = {
2243
2203
  $metadata: deserializeMetadata(output),
2244
2204
  ...contents,
2245
2205
  };
2246
- return Promise.resolve(response);
2206
+ return response;
2247
2207
  };
2248
2208
  const de_ListFirewallRulesCommandError = async (output, context) => {
2249
2209
  const parsedOutput = {
@@ -2269,10 +2229,9 @@ const de_ListFirewallRulesCommandError = async (output, context) => {
2269
2229
  throw await de_ValidationExceptionRes(parsedOutput, context);
2270
2230
  default:
2271
2231
  const parsedBody = parsedOutput.body;
2272
- throwDefaultError({
2232
+ return throwDefaultError({
2273
2233
  output,
2274
2234
  parsedBody,
2275
- exceptionCtor: __BaseException,
2276
2235
  errorCode,
2277
2236
  });
2278
2237
  }
@@ -2283,12 +2242,12 @@ export const de_ListResolverConfigsCommand = async (output, context) => {
2283
2242
  }
2284
2243
  const data = await parseBody(output.body, context);
2285
2244
  let contents = {};
2286
- contents = de_ListResolverConfigsResponse(data, context);
2245
+ contents = _json(data);
2287
2246
  const response = {
2288
2247
  $metadata: deserializeMetadata(output),
2289
2248
  ...contents,
2290
2249
  };
2291
- return Promise.resolve(response);
2250
+ return response;
2292
2251
  };
2293
2252
  const de_ListResolverConfigsCommandError = async (output, context) => {
2294
2253
  const parsedOutput = {
@@ -2320,10 +2279,9 @@ const de_ListResolverConfigsCommandError = async (output, context) => {
2320
2279
  throw await de_ValidationExceptionRes(parsedOutput, context);
2321
2280
  default:
2322
2281
  const parsedBody = parsedOutput.body;
2323
- throwDefaultError({
2282
+ return throwDefaultError({
2324
2283
  output,
2325
2284
  parsedBody,
2326
- exceptionCtor: __BaseException,
2327
2285
  errorCode,
2328
2286
  });
2329
2287
  }
@@ -2334,12 +2292,12 @@ export const de_ListResolverDnssecConfigsCommand = async (output, context) => {
2334
2292
  }
2335
2293
  const data = await parseBody(output.body, context);
2336
2294
  let contents = {};
2337
- contents = de_ListResolverDnssecConfigsResponse(data, context);
2295
+ contents = _json(data);
2338
2296
  const response = {
2339
2297
  $metadata: deserializeMetadata(output),
2340
2298
  ...contents,
2341
2299
  };
2342
- return Promise.resolve(response);
2300
+ return response;
2343
2301
  };
2344
2302
  const de_ListResolverDnssecConfigsCommandError = async (output, context) => {
2345
2303
  const parsedOutput = {
@@ -2368,10 +2326,9 @@ const de_ListResolverDnssecConfigsCommandError = async (output, context) => {
2368
2326
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2369
2327
  default:
2370
2328
  const parsedBody = parsedOutput.body;
2371
- throwDefaultError({
2329
+ return throwDefaultError({
2372
2330
  output,
2373
2331
  parsedBody,
2374
- exceptionCtor: __BaseException,
2375
2332
  errorCode,
2376
2333
  });
2377
2334
  }
@@ -2382,12 +2339,12 @@ export const de_ListResolverEndpointIpAddressesCommand = async (output, context)
2382
2339
  }
2383
2340
  const data = await parseBody(output.body, context);
2384
2341
  let contents = {};
2385
- contents = de_ListResolverEndpointIpAddressesResponse(data, context);
2342
+ contents = _json(data);
2386
2343
  const response = {
2387
2344
  $metadata: deserializeMetadata(output),
2388
2345
  ...contents,
2389
2346
  };
2390
- return Promise.resolve(response);
2347
+ return response;
2391
2348
  };
2392
2349
  const de_ListResolverEndpointIpAddressesCommandError = async (output, context) => {
2393
2350
  const parsedOutput = {
@@ -2413,10 +2370,9 @@ const de_ListResolverEndpointIpAddressesCommandError = async (output, context) =
2413
2370
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2414
2371
  default:
2415
2372
  const parsedBody = parsedOutput.body;
2416
- throwDefaultError({
2373
+ return throwDefaultError({
2417
2374
  output,
2418
2375
  parsedBody,
2419
- exceptionCtor: __BaseException,
2420
2376
  errorCode,
2421
2377
  });
2422
2378
  }
@@ -2427,12 +2383,12 @@ export const de_ListResolverEndpointsCommand = async (output, context) => {
2427
2383
  }
2428
2384
  const data = await parseBody(output.body, context);
2429
2385
  let contents = {};
2430
- contents = de_ListResolverEndpointsResponse(data, context);
2386
+ contents = _json(data);
2431
2387
  const response = {
2432
2388
  $metadata: deserializeMetadata(output),
2433
2389
  ...contents,
2434
2390
  };
2435
- return Promise.resolve(response);
2391
+ return response;
2436
2392
  };
2437
2393
  const de_ListResolverEndpointsCommandError = async (output, context) => {
2438
2394
  const parsedOutput = {
@@ -2458,10 +2414,9 @@ const de_ListResolverEndpointsCommandError = async (output, context) => {
2458
2414
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2459
2415
  default:
2460
2416
  const parsedBody = parsedOutput.body;
2461
- throwDefaultError({
2417
+ return throwDefaultError({
2462
2418
  output,
2463
2419
  parsedBody,
2464
- exceptionCtor: __BaseException,
2465
2420
  errorCode,
2466
2421
  });
2467
2422
  }
@@ -2472,12 +2427,12 @@ export const de_ListResolverQueryLogConfigAssociationsCommand = async (output, c
2472
2427
  }
2473
2428
  const data = await parseBody(output.body, context);
2474
2429
  let contents = {};
2475
- contents = de_ListResolverQueryLogConfigAssociationsResponse(data, context);
2430
+ contents = _json(data);
2476
2431
  const response = {
2477
2432
  $metadata: deserializeMetadata(output),
2478
2433
  ...contents,
2479
2434
  };
2480
- return Promise.resolve(response);
2435
+ return response;
2481
2436
  };
2482
2437
  const de_ListResolverQueryLogConfigAssociationsCommandError = async (output, context) => {
2483
2438
  const parsedOutput = {
@@ -2506,10 +2461,9 @@ const de_ListResolverQueryLogConfigAssociationsCommandError = async (output, con
2506
2461
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2507
2462
  default:
2508
2463
  const parsedBody = parsedOutput.body;
2509
- throwDefaultError({
2464
+ return throwDefaultError({
2510
2465
  output,
2511
2466
  parsedBody,
2512
- exceptionCtor: __BaseException,
2513
2467
  errorCode,
2514
2468
  });
2515
2469
  }
@@ -2520,12 +2474,12 @@ export const de_ListResolverQueryLogConfigsCommand = async (output, context) =>
2520
2474
  }
2521
2475
  const data = await parseBody(output.body, context);
2522
2476
  let contents = {};
2523
- contents = de_ListResolverQueryLogConfigsResponse(data, context);
2477
+ contents = _json(data);
2524
2478
  const response = {
2525
2479
  $metadata: deserializeMetadata(output),
2526
2480
  ...contents,
2527
2481
  };
2528
- return Promise.resolve(response);
2482
+ return response;
2529
2483
  };
2530
2484
  const de_ListResolverQueryLogConfigsCommandError = async (output, context) => {
2531
2485
  const parsedOutput = {
@@ -2554,10 +2508,9 @@ const de_ListResolverQueryLogConfigsCommandError = async (output, context) => {
2554
2508
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2555
2509
  default:
2556
2510
  const parsedBody = parsedOutput.body;
2557
- throwDefaultError({
2511
+ return throwDefaultError({
2558
2512
  output,
2559
2513
  parsedBody,
2560
- exceptionCtor: __BaseException,
2561
2514
  errorCode,
2562
2515
  });
2563
2516
  }
@@ -2568,12 +2521,12 @@ export const de_ListResolverRuleAssociationsCommand = async (output, context) =>
2568
2521
  }
2569
2522
  const data = await parseBody(output.body, context);
2570
2523
  let contents = {};
2571
- contents = de_ListResolverRuleAssociationsResponse(data, context);
2524
+ contents = _json(data);
2572
2525
  const response = {
2573
2526
  $metadata: deserializeMetadata(output),
2574
2527
  ...contents,
2575
2528
  };
2576
- return Promise.resolve(response);
2529
+ return response;
2577
2530
  };
2578
2531
  const de_ListResolverRuleAssociationsCommandError = async (output, context) => {
2579
2532
  const parsedOutput = {
@@ -2599,10 +2552,9 @@ const de_ListResolverRuleAssociationsCommandError = async (output, context) => {
2599
2552
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2600
2553
  default:
2601
2554
  const parsedBody = parsedOutput.body;
2602
- throwDefaultError({
2555
+ return throwDefaultError({
2603
2556
  output,
2604
2557
  parsedBody,
2605
- exceptionCtor: __BaseException,
2606
2558
  errorCode,
2607
2559
  });
2608
2560
  }
@@ -2613,12 +2565,12 @@ export const de_ListResolverRulesCommand = async (output, context) => {
2613
2565
  }
2614
2566
  const data = await parseBody(output.body, context);
2615
2567
  let contents = {};
2616
- contents = de_ListResolverRulesResponse(data, context);
2568
+ contents = _json(data);
2617
2569
  const response = {
2618
2570
  $metadata: deserializeMetadata(output),
2619
2571
  ...contents,
2620
2572
  };
2621
- return Promise.resolve(response);
2573
+ return response;
2622
2574
  };
2623
2575
  const de_ListResolverRulesCommandError = async (output, context) => {
2624
2576
  const parsedOutput = {
@@ -2644,10 +2596,9 @@ const de_ListResolverRulesCommandError = async (output, context) => {
2644
2596
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2645
2597
  default:
2646
2598
  const parsedBody = parsedOutput.body;
2647
- throwDefaultError({
2599
+ return throwDefaultError({
2648
2600
  output,
2649
2601
  parsedBody,
2650
- exceptionCtor: __BaseException,
2651
2602
  errorCode,
2652
2603
  });
2653
2604
  }
@@ -2658,12 +2609,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
2658
2609
  }
2659
2610
  const data = await parseBody(output.body, context);
2660
2611
  let contents = {};
2661
- contents = de_ListTagsForResourceResponse(data, context);
2612
+ contents = _json(data);
2662
2613
  const response = {
2663
2614
  $metadata: deserializeMetadata(output),
2664
2615
  ...contents,
2665
2616
  };
2666
- return Promise.resolve(response);
2617
+ return response;
2667
2618
  };
2668
2619
  const de_ListTagsForResourceCommandError = async (output, context) => {
2669
2620
  const parsedOutput = {
@@ -2692,10 +2643,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2692
2643
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2693
2644
  default:
2694
2645
  const parsedBody = parsedOutput.body;
2695
- throwDefaultError({
2646
+ return throwDefaultError({
2696
2647
  output,
2697
2648
  parsedBody,
2698
- exceptionCtor: __BaseException,
2699
2649
  errorCode,
2700
2650
  });
2701
2651
  }
@@ -2706,12 +2656,12 @@ export const de_PutFirewallRuleGroupPolicyCommand = async (output, context) => {
2706
2656
  }
2707
2657
  const data = await parseBody(output.body, context);
2708
2658
  let contents = {};
2709
- contents = de_PutFirewallRuleGroupPolicyResponse(data, context);
2659
+ contents = _json(data);
2710
2660
  const response = {
2711
2661
  $metadata: deserializeMetadata(output),
2712
2662
  ...contents,
2713
2663
  };
2714
- return Promise.resolve(response);
2664
+ return response;
2715
2665
  };
2716
2666
  const de_PutFirewallRuleGroupPolicyCommandError = async (output, context) => {
2717
2667
  const parsedOutput = {
@@ -2737,10 +2687,9 @@ const de_PutFirewallRuleGroupPolicyCommandError = async (output, context) => {
2737
2687
  throw await de_ValidationExceptionRes(parsedOutput, context);
2738
2688
  default:
2739
2689
  const parsedBody = parsedOutput.body;
2740
- throwDefaultError({
2690
+ return throwDefaultError({
2741
2691
  output,
2742
2692
  parsedBody,
2743
- exceptionCtor: __BaseException,
2744
2693
  errorCode,
2745
2694
  });
2746
2695
  }
@@ -2751,12 +2700,12 @@ export const de_PutResolverQueryLogConfigPolicyCommand = async (output, context)
2751
2700
  }
2752
2701
  const data = await parseBody(output.body, context);
2753
2702
  let contents = {};
2754
- contents = de_PutResolverQueryLogConfigPolicyResponse(data, context);
2703
+ contents = _json(data);
2755
2704
  const response = {
2756
2705
  $metadata: deserializeMetadata(output),
2757
2706
  ...contents,
2758
2707
  };
2759
- return Promise.resolve(response);
2708
+ return response;
2760
2709
  };
2761
2710
  const de_PutResolverQueryLogConfigPolicyCommandError = async (output, context) => {
2762
2711
  const parsedOutput = {
@@ -2785,10 +2734,9 @@ const de_PutResolverQueryLogConfigPolicyCommandError = async (output, context) =
2785
2734
  throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2786
2735
  default:
2787
2736
  const parsedBody = parsedOutput.body;
2788
- throwDefaultError({
2737
+ return throwDefaultError({
2789
2738
  output,
2790
2739
  parsedBody,
2791
- exceptionCtor: __BaseException,
2792
2740
  errorCode,
2793
2741
  });
2794
2742
  }
@@ -2799,12 +2747,12 @@ export const de_PutResolverRulePolicyCommand = async (output, context) => {
2799
2747
  }
2800
2748
  const data = await parseBody(output.body, context);
2801
2749
  let contents = {};
2802
- contents = de_PutResolverRulePolicyResponse(data, context);
2750
+ contents = _json(data);
2803
2751
  const response = {
2804
2752
  $metadata: deserializeMetadata(output),
2805
2753
  ...contents,
2806
2754
  };
2807
- return Promise.resolve(response);
2755
+ return response;
2808
2756
  };
2809
2757
  const de_PutResolverRulePolicyCommandError = async (output, context) => {
2810
2758
  const parsedOutput = {
@@ -2830,10 +2778,9 @@ const de_PutResolverRulePolicyCommandError = async (output, context) => {
2830
2778
  throw await de_UnknownResourceExceptionRes(parsedOutput, context);
2831
2779
  default:
2832
2780
  const parsedBody = parsedOutput.body;
2833
- throwDefaultError({
2781
+ return throwDefaultError({
2834
2782
  output,
2835
2783
  parsedBody,
2836
- exceptionCtor: __BaseException,
2837
2784
  errorCode,
2838
2785
  });
2839
2786
  }
@@ -2844,12 +2791,12 @@ export const de_TagResourceCommand = async (output, context) => {
2844
2791
  }
2845
2792
  const data = await parseBody(output.body, context);
2846
2793
  let contents = {};
2847
- contents = de_TagResourceResponse(data, context);
2794
+ contents = _json(data);
2848
2795
  const response = {
2849
2796
  $metadata: deserializeMetadata(output),
2850
2797
  ...contents,
2851
2798
  };
2852
- return Promise.resolve(response);
2799
+ return response;
2853
2800
  };
2854
2801
  const de_TagResourceCommandError = async (output, context) => {
2855
2802
  const parsedOutput = {
@@ -2881,10 +2828,9 @@ const de_TagResourceCommandError = async (output, context) => {
2881
2828
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2882
2829
  default:
2883
2830
  const parsedBody = parsedOutput.body;
2884
- throwDefaultError({
2831
+ return throwDefaultError({
2885
2832
  output,
2886
2833
  parsedBody,
2887
- exceptionCtor: __BaseException,
2888
2834
  errorCode,
2889
2835
  });
2890
2836
  }
@@ -2895,12 +2841,12 @@ export const de_UntagResourceCommand = async (output, context) => {
2895
2841
  }
2896
2842
  const data = await parseBody(output.body, context);
2897
2843
  let contents = {};
2898
- contents = de_UntagResourceResponse(data, context);
2844
+ contents = _json(data);
2899
2845
  const response = {
2900
2846
  $metadata: deserializeMetadata(output),
2901
2847
  ...contents,
2902
2848
  };
2903
- return Promise.resolve(response);
2849
+ return response;
2904
2850
  };
2905
2851
  const de_UntagResourceCommandError = async (output, context) => {
2906
2852
  const parsedOutput = {
@@ -2926,10 +2872,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2926
2872
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2927
2873
  default:
2928
2874
  const parsedBody = parsedOutput.body;
2929
- throwDefaultError({
2875
+ return throwDefaultError({
2930
2876
  output,
2931
2877
  parsedBody,
2932
- exceptionCtor: __BaseException,
2933
2878
  errorCode,
2934
2879
  });
2935
2880
  }
@@ -2940,12 +2885,12 @@ export const de_UpdateFirewallConfigCommand = async (output, context) => {
2940
2885
  }
2941
2886
  const data = await parseBody(output.body, context);
2942
2887
  let contents = {};
2943
- contents = de_UpdateFirewallConfigResponse(data, context);
2888
+ contents = _json(data);
2944
2889
  const response = {
2945
2890
  $metadata: deserializeMetadata(output),
2946
2891
  ...contents,
2947
2892
  };
2948
- return Promise.resolve(response);
2893
+ return response;
2949
2894
  };
2950
2895
  const de_UpdateFirewallConfigCommandError = async (output, context) => {
2951
2896
  const parsedOutput = {
@@ -2971,10 +2916,9 @@ const de_UpdateFirewallConfigCommandError = async (output, context) => {
2971
2916
  throw await de_ValidationExceptionRes(parsedOutput, context);
2972
2917
  default:
2973
2918
  const parsedBody = parsedOutput.body;
2974
- throwDefaultError({
2919
+ return throwDefaultError({
2975
2920
  output,
2976
2921
  parsedBody,
2977
- exceptionCtor: __BaseException,
2978
2922
  errorCode,
2979
2923
  });
2980
2924
  }
@@ -2985,12 +2929,12 @@ export const de_UpdateFirewallDomainsCommand = async (output, context) => {
2985
2929
  }
2986
2930
  const data = await parseBody(output.body, context);
2987
2931
  let contents = {};
2988
- contents = de_UpdateFirewallDomainsResponse(data, context);
2932
+ contents = _json(data);
2989
2933
  const response = {
2990
2934
  $metadata: deserializeMetadata(output),
2991
2935
  ...contents,
2992
2936
  };
2993
- return Promise.resolve(response);
2937
+ return response;
2994
2938
  };
2995
2939
  const de_UpdateFirewallDomainsCommandError = async (output, context) => {
2996
2940
  const parsedOutput = {
@@ -3022,10 +2966,9 @@ const de_UpdateFirewallDomainsCommandError = async (output, context) => {
3022
2966
  throw await de_ValidationExceptionRes(parsedOutput, context);
3023
2967
  default:
3024
2968
  const parsedBody = parsedOutput.body;
3025
- throwDefaultError({
2969
+ return throwDefaultError({
3026
2970
  output,
3027
2971
  parsedBody,
3028
- exceptionCtor: __BaseException,
3029
2972
  errorCode,
3030
2973
  });
3031
2974
  }
@@ -3036,12 +2979,12 @@ export const de_UpdateFirewallRuleCommand = async (output, context) => {
3036
2979
  }
3037
2980
  const data = await parseBody(output.body, context);
3038
2981
  let contents = {};
3039
- contents = de_UpdateFirewallRuleResponse(data, context);
2982
+ contents = _json(data);
3040
2983
  const response = {
3041
2984
  $metadata: deserializeMetadata(output),
3042
2985
  ...contents,
3043
2986
  };
3044
- return Promise.resolve(response);
2987
+ return response;
3045
2988
  };
3046
2989
  const de_UpdateFirewallRuleCommandError = async (output, context) => {
3047
2990
  const parsedOutput = {
@@ -3070,10 +3013,9 @@ const de_UpdateFirewallRuleCommandError = async (output, context) => {
3070
3013
  throw await de_ValidationExceptionRes(parsedOutput, context);
3071
3014
  default:
3072
3015
  const parsedBody = parsedOutput.body;
3073
- throwDefaultError({
3016
+ return throwDefaultError({
3074
3017
  output,
3075
3018
  parsedBody,
3076
- exceptionCtor: __BaseException,
3077
3019
  errorCode,
3078
3020
  });
3079
3021
  }
@@ -3084,12 +3026,12 @@ export const de_UpdateFirewallRuleGroupAssociationCommand = async (output, conte
3084
3026
  }
3085
3027
  const data = await parseBody(output.body, context);
3086
3028
  let contents = {};
3087
- contents = de_UpdateFirewallRuleGroupAssociationResponse(data, context);
3029
+ contents = _json(data);
3088
3030
  const response = {
3089
3031
  $metadata: deserializeMetadata(output),
3090
3032
  ...contents,
3091
3033
  };
3092
- return Promise.resolve(response);
3034
+ return response;
3093
3035
  };
3094
3036
  const de_UpdateFirewallRuleGroupAssociationCommandError = async (output, context) => {
3095
3037
  const parsedOutput = {
@@ -3118,10 +3060,9 @@ const de_UpdateFirewallRuleGroupAssociationCommandError = async (output, context
3118
3060
  throw await de_ValidationExceptionRes(parsedOutput, context);
3119
3061
  default:
3120
3062
  const parsedBody = parsedOutput.body;
3121
- throwDefaultError({
3063
+ return throwDefaultError({
3122
3064
  output,
3123
3065
  parsedBody,
3124
- exceptionCtor: __BaseException,
3125
3066
  errorCode,
3126
3067
  });
3127
3068
  }
@@ -3132,12 +3073,12 @@ export const de_UpdateResolverConfigCommand = async (output, context) => {
3132
3073
  }
3133
3074
  const data = await parseBody(output.body, context);
3134
3075
  let contents = {};
3135
- contents = de_UpdateResolverConfigResponse(data, context);
3076
+ contents = _json(data);
3136
3077
  const response = {
3137
3078
  $metadata: deserializeMetadata(output),
3138
3079
  ...contents,
3139
3080
  };
3140
- return Promise.resolve(response);
3081
+ return response;
3141
3082
  };
3142
3083
  const de_UpdateResolverConfigCommandError = async (output, context) => {
3143
3084
  const parsedOutput = {
@@ -3175,10 +3116,9 @@ const de_UpdateResolverConfigCommandError = async (output, context) => {
3175
3116
  throw await de_ValidationExceptionRes(parsedOutput, context);
3176
3117
  default:
3177
3118
  const parsedBody = parsedOutput.body;
3178
- throwDefaultError({
3119
+ return throwDefaultError({
3179
3120
  output,
3180
3121
  parsedBody,
3181
- exceptionCtor: __BaseException,
3182
3122
  errorCode,
3183
3123
  });
3184
3124
  }
@@ -3189,12 +3129,12 @@ export const de_UpdateResolverDnssecConfigCommand = async (output, context) => {
3189
3129
  }
3190
3130
  const data = await parseBody(output.body, context);
3191
3131
  let contents = {};
3192
- contents = de_UpdateResolverDnssecConfigResponse(data, context);
3132
+ contents = _json(data);
3193
3133
  const response = {
3194
3134
  $metadata: deserializeMetadata(output),
3195
3135
  ...contents,
3196
3136
  };
3197
- return Promise.resolve(response);
3137
+ return response;
3198
3138
  };
3199
3139
  const de_UpdateResolverDnssecConfigCommandError = async (output, context) => {
3200
3140
  const parsedOutput = {
@@ -3223,10 +3163,9 @@ const de_UpdateResolverDnssecConfigCommandError = async (output, context) => {
3223
3163
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
3224
3164
  default:
3225
3165
  const parsedBody = parsedOutput.body;
3226
- throwDefaultError({
3166
+ return throwDefaultError({
3227
3167
  output,
3228
3168
  parsedBody,
3229
- exceptionCtor: __BaseException,
3230
3169
  errorCode,
3231
3170
  });
3232
3171
  }
@@ -3237,12 +3176,12 @@ export const de_UpdateResolverEndpointCommand = async (output, context) => {
3237
3176
  }
3238
3177
  const data = await parseBody(output.body, context);
3239
3178
  let contents = {};
3240
- contents = de_UpdateResolverEndpointResponse(data, context);
3179
+ contents = _json(data);
3241
3180
  const response = {
3242
3181
  $metadata: deserializeMetadata(output),
3243
3182
  ...contents,
3244
3183
  };
3245
- return Promise.resolve(response);
3184
+ return response;
3246
3185
  };
3247
3186
  const de_UpdateResolverEndpointCommandError = async (output, context) => {
3248
3187
  const parsedOutput = {
@@ -3268,10 +3207,9 @@ const de_UpdateResolverEndpointCommandError = async (output, context) => {
3268
3207
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
3269
3208
  default:
3270
3209
  const parsedBody = parsedOutput.body;
3271
- throwDefaultError({
3210
+ return throwDefaultError({
3272
3211
  output,
3273
3212
  parsedBody,
3274
- exceptionCtor: __BaseException,
3275
3213
  errorCode,
3276
3214
  });
3277
3215
  }
@@ -3282,12 +3220,12 @@ export const de_UpdateResolverRuleCommand = async (output, context) => {
3282
3220
  }
3283
3221
  const data = await parseBody(output.body, context);
3284
3222
  let contents = {};
3285
- contents = de_UpdateResolverRuleResponse(data, context);
3223
+ contents = _json(data);
3286
3224
  const response = {
3287
3225
  $metadata: deserializeMetadata(output),
3288
3226
  ...contents,
3289
3227
  };
3290
- return Promise.resolve(response);
3228
+ return response;
3291
3229
  };
3292
3230
  const de_UpdateResolverRuleCommandError = async (output, context) => {
3293
3231
  const parsedOutput = {
@@ -3319,17 +3257,16 @@ const de_UpdateResolverRuleCommandError = async (output, context) => {
3319
3257
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
3320
3258
  default:
3321
3259
  const parsedBody = parsedOutput.body;
3322
- throwDefaultError({
3260
+ return throwDefaultError({
3323
3261
  output,
3324
3262
  parsedBody,
3325
- exceptionCtor: __BaseException,
3326
3263
  errorCode,
3327
3264
  });
3328
3265
  }
3329
3266
  };
3330
3267
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3331
3268
  const body = parsedOutput.body;
3332
- const deserialized = de_AccessDeniedException(body, context);
3269
+ const deserialized = _json(body);
3333
3270
  const exception = new AccessDeniedException({
3334
3271
  $metadata: deserializeMetadata(parsedOutput),
3335
3272
  ...deserialized,
@@ -3338,7 +3275,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3338
3275
  };
3339
3276
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
3340
3277
  const body = parsedOutput.body;
3341
- const deserialized = de_ConflictException(body, context);
3278
+ const deserialized = _json(body);
3342
3279
  const exception = new ConflictException({
3343
3280
  $metadata: deserializeMetadata(parsedOutput),
3344
3281
  ...deserialized,
@@ -3347,7 +3284,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
3347
3284
  };
3348
3285
  const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
3349
3286
  const body = parsedOutput.body;
3350
- const deserialized = de_InternalServiceErrorException(body, context);
3287
+ const deserialized = _json(body);
3351
3288
  const exception = new InternalServiceErrorException({
3352
3289
  $metadata: deserializeMetadata(parsedOutput),
3353
3290
  ...deserialized,
@@ -3356,7 +3293,7 @@ const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
3356
3293
  };
3357
3294
  const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
3358
3295
  const body = parsedOutput.body;
3359
- const deserialized = de_InvalidNextTokenException(body, context);
3296
+ const deserialized = _json(body);
3360
3297
  const exception = new InvalidNextTokenException({
3361
3298
  $metadata: deserializeMetadata(parsedOutput),
3362
3299
  ...deserialized,
@@ -3365,7 +3302,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
3365
3302
  };
3366
3303
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
3367
3304
  const body = parsedOutput.body;
3368
- const deserialized = de_InvalidParameterException(body, context);
3305
+ const deserialized = _json(body);
3369
3306
  const exception = new InvalidParameterException({
3370
3307
  $metadata: deserializeMetadata(parsedOutput),
3371
3308
  ...deserialized,
@@ -3374,7 +3311,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
3374
3311
  };
3375
3312
  const de_InvalidPolicyDocumentRes = async (parsedOutput, context) => {
3376
3313
  const body = parsedOutput.body;
3377
- const deserialized = de_InvalidPolicyDocument(body, context);
3314
+ const deserialized = _json(body);
3378
3315
  const exception = new InvalidPolicyDocument({
3379
3316
  $metadata: deserializeMetadata(parsedOutput),
3380
3317
  ...deserialized,
@@ -3383,7 +3320,7 @@ const de_InvalidPolicyDocumentRes = async (parsedOutput, context) => {
3383
3320
  };
3384
3321
  const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
3385
3322
  const body = parsedOutput.body;
3386
- const deserialized = de_InvalidRequestException(body, context);
3323
+ const deserialized = _json(body);
3387
3324
  const exception = new InvalidRequestException({
3388
3325
  $metadata: deserializeMetadata(parsedOutput),
3389
3326
  ...deserialized,
@@ -3392,7 +3329,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
3392
3329
  };
3393
3330
  const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
3394
3331
  const body = parsedOutput.body;
3395
- const deserialized = de_InvalidTagException(body, context);
3332
+ const deserialized = _json(body);
3396
3333
  const exception = new InvalidTagException({
3397
3334
  $metadata: deserializeMetadata(parsedOutput),
3398
3335
  ...deserialized,
@@ -3401,7 +3338,7 @@ const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
3401
3338
  };
3402
3339
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3403
3340
  const body = parsedOutput.body;
3404
- const deserialized = de_LimitExceededException(body, context);
3341
+ const deserialized = _json(body);
3405
3342
  const exception = new LimitExceededException({
3406
3343
  $metadata: deserializeMetadata(parsedOutput),
3407
3344
  ...deserialized,
@@ -3410,7 +3347,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3410
3347
  };
3411
3348
  const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
3412
3349
  const body = parsedOutput.body;
3413
- const deserialized = de_ResourceExistsException(body, context);
3350
+ const deserialized = _json(body);
3414
3351
  const exception = new ResourceExistsException({
3415
3352
  $metadata: deserializeMetadata(parsedOutput),
3416
3353
  ...deserialized,
@@ -3419,7 +3356,7 @@ const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
3419
3356
  };
3420
3357
  const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
3421
3358
  const body = parsedOutput.body;
3422
- const deserialized = de_ResourceInUseException(body, context);
3359
+ const deserialized = _json(body);
3423
3360
  const exception = new ResourceInUseException({
3424
3361
  $metadata: deserializeMetadata(parsedOutput),
3425
3362
  ...deserialized,
@@ -3428,7 +3365,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
3428
3365
  };
3429
3366
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3430
3367
  const body = parsedOutput.body;
3431
- const deserialized = de_ResourceNotFoundException(body, context);
3368
+ const deserialized = _json(body);
3432
3369
  const exception = new ResourceNotFoundException({
3433
3370
  $metadata: deserializeMetadata(parsedOutput),
3434
3371
  ...deserialized,
@@ -3437,7 +3374,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3437
3374
  };
3438
3375
  const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
3439
3376
  const body = parsedOutput.body;
3440
- const deserialized = de_ResourceUnavailableException(body, context);
3377
+ const deserialized = _json(body);
3441
3378
  const exception = new ResourceUnavailableException({
3442
3379
  $metadata: deserializeMetadata(parsedOutput),
3443
3380
  ...deserialized,
@@ -3446,7 +3383,7 @@ const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
3446
3383
  };
3447
3384
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
3448
3385
  const body = parsedOutput.body;
3449
- const deserialized = de_ThrottlingException(body, context);
3386
+ const deserialized = _json(body);
3450
3387
  const exception = new ThrottlingException({
3451
3388
  $metadata: deserializeMetadata(parsedOutput),
3452
3389
  ...deserialized,
@@ -3455,7 +3392,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
3455
3392
  };
3456
3393
  const de_UnknownResourceExceptionRes = async (parsedOutput, context) => {
3457
3394
  const body = parsedOutput.body;
3458
- const deserialized = de_UnknownResourceException(body, context);
3395
+ const deserialized = _json(body);
3459
3396
  const exception = new UnknownResourceException({
3460
3397
  $metadata: deserializeMetadata(parsedOutput),
3461
3398
  ...deserialized,
@@ -3464,7 +3401,7 @@ const de_UnknownResourceExceptionRes = async (parsedOutput, context) => {
3464
3401
  };
3465
3402
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
3466
3403
  const body = parsedOutput.body;
3467
- const deserialized = de_ValidationException(body, context);
3404
+ const deserialized = _json(body);
3468
3405
  const exception = new ValidationException({
3469
3406
  $metadata: deserializeMetadata(parsedOutput),
3470
3407
  ...deserialized,
@@ -3472,1398 +3409,51 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
3472
3409
  return __decorateServiceException(exception, body);
3473
3410
  };
3474
3411
  const se_AssociateFirewallRuleGroupRequest = (input, context) => {
3475
- return {
3476
- CreatorRequestId: input.CreatorRequestId ?? generateIdempotencyToken(),
3477
- ...(input.FirewallRuleGroupId != null && { FirewallRuleGroupId: input.FirewallRuleGroupId }),
3478
- ...(input.MutationProtection != null && { MutationProtection: input.MutationProtection }),
3479
- ...(input.Name != null && { Name: input.Name }),
3480
- ...(input.Priority != null && { Priority: input.Priority }),
3481
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3482
- ...(input.VpcId != null && { VpcId: input.VpcId }),
3483
- };
3484
- };
3485
- const se_AssociateResolverEndpointIpAddressRequest = (input, context) => {
3486
- return {
3487
- ...(input.IpAddress != null && { IpAddress: se_IpAddressUpdate(input.IpAddress, context) }),
3488
- ...(input.ResolverEndpointId != null && { ResolverEndpointId: input.ResolverEndpointId }),
3489
- };
3490
- };
3491
- const se_AssociateResolverQueryLogConfigRequest = (input, context) => {
3492
- return {
3493
- ...(input.ResolverQueryLogConfigId != null && { ResolverQueryLogConfigId: input.ResolverQueryLogConfigId }),
3494
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3495
- };
3496
- };
3497
- const se_AssociateResolverRuleRequest = (input, context) => {
3498
- return {
3499
- ...(input.Name != null && { Name: input.Name }),
3500
- ...(input.ResolverRuleId != null && { ResolverRuleId: input.ResolverRuleId }),
3501
- ...(input.VPCId != null && { VPCId: input.VPCId }),
3502
- };
3503
- };
3504
- const se_CreateFirewallDomainListRequest = (input, context) => {
3505
- return {
3506
- CreatorRequestId: input.CreatorRequestId ?? generateIdempotencyToken(),
3507
- ...(input.Name != null && { Name: input.Name }),
3508
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3509
- };
3510
- };
3511
- const se_CreateFirewallRuleGroupRequest = (input, context) => {
3512
- return {
3513
- CreatorRequestId: input.CreatorRequestId ?? generateIdempotencyToken(),
3514
- ...(input.Name != null && { Name: input.Name }),
3515
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3516
- };
3517
- };
3518
- const se_CreateFirewallRuleRequest = (input, context) => {
3519
- return {
3520
- ...(input.Action != null && { Action: input.Action }),
3521
- ...(input.BlockOverrideDnsType != null && { BlockOverrideDnsType: input.BlockOverrideDnsType }),
3522
- ...(input.BlockOverrideDomain != null && { BlockOverrideDomain: input.BlockOverrideDomain }),
3523
- ...(input.BlockOverrideTtl != null && { BlockOverrideTtl: input.BlockOverrideTtl }),
3524
- ...(input.BlockResponse != null && { BlockResponse: input.BlockResponse }),
3525
- CreatorRequestId: input.CreatorRequestId ?? generateIdempotencyToken(),
3526
- ...(input.FirewallDomainListId != null && { FirewallDomainListId: input.FirewallDomainListId }),
3527
- ...(input.FirewallRuleGroupId != null && { FirewallRuleGroupId: input.FirewallRuleGroupId }),
3528
- ...(input.Name != null && { Name: input.Name }),
3529
- ...(input.Priority != null && { Priority: input.Priority }),
3530
- };
3531
- };
3532
- const se_CreateResolverEndpointRequest = (input, context) => {
3533
- return {
3534
- ...(input.CreatorRequestId != null && { CreatorRequestId: input.CreatorRequestId }),
3535
- ...(input.Direction != null && { Direction: input.Direction }),
3536
- ...(input.IpAddresses != null && { IpAddresses: se_IpAddressesRequest(input.IpAddresses, context) }),
3537
- ...(input.Name != null && { Name: input.Name }),
3538
- ...(input.ResolverEndpointType != null && { ResolverEndpointType: input.ResolverEndpointType }),
3539
- ...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupIds(input.SecurityGroupIds, context) }),
3540
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3541
- };
3542
- };
3543
- const se_CreateResolverQueryLogConfigRequest = (input, context) => {
3544
- return {
3545
- CreatorRequestId: input.CreatorRequestId ?? generateIdempotencyToken(),
3546
- ...(input.DestinationArn != null && { DestinationArn: input.DestinationArn }),
3547
- ...(input.Name != null && { Name: input.Name }),
3548
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3549
- };
3550
- };
3551
- const se_CreateResolverRuleRequest = (input, context) => {
3552
- return {
3553
- ...(input.CreatorRequestId != null && { CreatorRequestId: input.CreatorRequestId }),
3554
- ...(input.DomainName != null && { DomainName: input.DomainName }),
3555
- ...(input.Name != null && { Name: input.Name }),
3556
- ...(input.ResolverEndpointId != null && { ResolverEndpointId: input.ResolverEndpointId }),
3557
- ...(input.RuleType != null && { RuleType: input.RuleType }),
3558
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3559
- ...(input.TargetIps != null && { TargetIps: se_TargetList(input.TargetIps, context) }),
3560
- };
3561
- };
3562
- const se_DeleteFirewallDomainListRequest = (input, context) => {
3563
- return {
3564
- ...(input.FirewallDomainListId != null && { FirewallDomainListId: input.FirewallDomainListId }),
3565
- };
3566
- };
3567
- const se_DeleteFirewallRuleGroupRequest = (input, context) => {
3568
- return {
3569
- ...(input.FirewallRuleGroupId != null && { FirewallRuleGroupId: input.FirewallRuleGroupId }),
3570
- };
3571
- };
3572
- const se_DeleteFirewallRuleRequest = (input, context) => {
3573
- return {
3574
- ...(input.FirewallDomainListId != null && { FirewallDomainListId: input.FirewallDomainListId }),
3575
- ...(input.FirewallRuleGroupId != null && { FirewallRuleGroupId: input.FirewallRuleGroupId }),
3576
- };
3577
- };
3578
- const se_DeleteResolverEndpointRequest = (input, context) => {
3579
- return {
3580
- ...(input.ResolverEndpointId != null && { ResolverEndpointId: input.ResolverEndpointId }),
3581
- };
3582
- };
3583
- const se_DeleteResolverQueryLogConfigRequest = (input, context) => {
3584
- return {
3585
- ...(input.ResolverQueryLogConfigId != null && { ResolverQueryLogConfigId: input.ResolverQueryLogConfigId }),
3586
- };
3587
- };
3588
- const se_DeleteResolverRuleRequest = (input, context) => {
3589
- return {
3590
- ...(input.ResolverRuleId != null && { ResolverRuleId: input.ResolverRuleId }),
3591
- };
3592
- };
3593
- const se_DisassociateFirewallRuleGroupRequest = (input, context) => {
3594
- return {
3595
- ...(input.FirewallRuleGroupAssociationId != null && {
3596
- FirewallRuleGroupAssociationId: input.FirewallRuleGroupAssociationId,
3597
- }),
3598
- };
3599
- };
3600
- const se_DisassociateResolverEndpointIpAddressRequest = (input, context) => {
3601
- return {
3602
- ...(input.IpAddress != null && { IpAddress: se_IpAddressUpdate(input.IpAddress, context) }),
3603
- ...(input.ResolverEndpointId != null && { ResolverEndpointId: input.ResolverEndpointId }),
3604
- };
3605
- };
3606
- const se_DisassociateResolverQueryLogConfigRequest = (input, context) => {
3607
- return {
3608
- ...(input.ResolverQueryLogConfigId != null && { ResolverQueryLogConfigId: input.ResolverQueryLogConfigId }),
3609
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3610
- };
3611
- };
3612
- const se_DisassociateResolverRuleRequest = (input, context) => {
3613
- return {
3614
- ...(input.ResolverRuleId != null && { ResolverRuleId: input.ResolverRuleId }),
3615
- ...(input.VPCId != null && { VPCId: input.VPCId }),
3616
- };
3617
- };
3618
- const se_Filter = (input, context) => {
3619
- return {
3620
- ...(input.Name != null && { Name: input.Name }),
3621
- ...(input.Values != null && { Values: se_FilterValues(input.Values, context) }),
3622
- };
3623
- };
3624
- const se_Filters = (input, context) => {
3625
- return input
3626
- .filter((e) => e != null)
3627
- .map((entry) => {
3628
- return se_Filter(entry, context);
3629
- });
3630
- };
3631
- const se_FilterValues = (input, context) => {
3632
- return input
3633
- .filter((e) => e != null)
3634
- .map((entry) => {
3635
- return entry;
3636
- });
3637
- };
3638
- const se_FirewallDomains = (input, context) => {
3639
- return input
3640
- .filter((e) => e != null)
3641
- .map((entry) => {
3642
- return entry;
3643
- });
3644
- };
3645
- const se_GetFirewallConfigRequest = (input, context) => {
3646
- return {
3647
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3648
- };
3649
- };
3650
- const se_GetFirewallDomainListRequest = (input, context) => {
3651
- return {
3652
- ...(input.FirewallDomainListId != null && { FirewallDomainListId: input.FirewallDomainListId }),
3653
- };
3654
- };
3655
- const se_GetFirewallRuleGroupAssociationRequest = (input, context) => {
3656
- return {
3657
- ...(input.FirewallRuleGroupAssociationId != null && {
3658
- FirewallRuleGroupAssociationId: input.FirewallRuleGroupAssociationId,
3659
- }),
3660
- };
3661
- };
3662
- const se_GetFirewallRuleGroupPolicyRequest = (input, context) => {
3663
- return {
3664
- ...(input.Arn != null && { Arn: input.Arn }),
3665
- };
3666
- };
3667
- const se_GetFirewallRuleGroupRequest = (input, context) => {
3668
- return {
3669
- ...(input.FirewallRuleGroupId != null && { FirewallRuleGroupId: input.FirewallRuleGroupId }),
3670
- };
3671
- };
3672
- const se_GetResolverConfigRequest = (input, context) => {
3673
- return {
3674
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3675
- };
3676
- };
3677
- const se_GetResolverDnssecConfigRequest = (input, context) => {
3678
- return {
3679
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3680
- };
3681
- };
3682
- const se_GetResolverEndpointRequest = (input, context) => {
3683
- return {
3684
- ...(input.ResolverEndpointId != null && { ResolverEndpointId: input.ResolverEndpointId }),
3685
- };
3686
- };
3687
- const se_GetResolverQueryLogConfigAssociationRequest = (input, context) => {
3688
- return {
3689
- ...(input.ResolverQueryLogConfigAssociationId != null && {
3690
- ResolverQueryLogConfigAssociationId: input.ResolverQueryLogConfigAssociationId,
3691
- }),
3692
- };
3693
- };
3694
- const se_GetResolverQueryLogConfigPolicyRequest = (input, context) => {
3695
- return {
3696
- ...(input.Arn != null && { Arn: input.Arn }),
3697
- };
3698
- };
3699
- const se_GetResolverQueryLogConfigRequest = (input, context) => {
3700
- return {
3701
- ...(input.ResolverQueryLogConfigId != null && { ResolverQueryLogConfigId: input.ResolverQueryLogConfigId }),
3702
- };
3703
- };
3704
- const se_GetResolverRuleAssociationRequest = (input, context) => {
3705
- return {
3706
- ...(input.ResolverRuleAssociationId != null && { ResolverRuleAssociationId: input.ResolverRuleAssociationId }),
3707
- };
3708
- };
3709
- const se_GetResolverRulePolicyRequest = (input, context) => {
3710
- return {
3711
- ...(input.Arn != null && { Arn: input.Arn }),
3712
- };
3713
- };
3714
- const se_GetResolverRuleRequest = (input, context) => {
3715
- return {
3716
- ...(input.ResolverRuleId != null && { ResolverRuleId: input.ResolverRuleId }),
3717
- };
3718
- };
3719
- const se_ImportFirewallDomainsRequest = (input, context) => {
3720
- return {
3721
- ...(input.DomainFileUrl != null && { DomainFileUrl: input.DomainFileUrl }),
3722
- ...(input.FirewallDomainListId != null && { FirewallDomainListId: input.FirewallDomainListId }),
3723
- ...(input.Operation != null && { Operation: input.Operation }),
3724
- };
3725
- };
3726
- const se_IpAddressesRequest = (input, context) => {
3727
- return input
3728
- .filter((e) => e != null)
3729
- .map((entry) => {
3730
- return se_IpAddressRequest(entry, context);
3731
- });
3732
- };
3733
- const se_IpAddressRequest = (input, context) => {
3734
- return {
3735
- ...(input.Ip != null && { Ip: input.Ip }),
3736
- ...(input.Ipv6 != null && { Ipv6: input.Ipv6 }),
3737
- ...(input.SubnetId != null && { SubnetId: input.SubnetId }),
3738
- };
3739
- };
3740
- const se_IpAddressUpdate = (input, context) => {
3741
- return {
3742
- ...(input.Ip != null && { Ip: input.Ip }),
3743
- ...(input.IpId != null && { IpId: input.IpId }),
3744
- ...(input.Ipv6 != null && { Ipv6: input.Ipv6 }),
3745
- ...(input.SubnetId != null && { SubnetId: input.SubnetId }),
3746
- };
3747
- };
3748
- const se_ListFirewallConfigsRequest = (input, context) => {
3749
- return {
3750
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3751
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3752
- };
3753
- };
3754
- const se_ListFirewallDomainListsRequest = (input, context) => {
3755
- return {
3756
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3757
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3758
- };
3759
- };
3760
- const se_ListFirewallDomainsRequest = (input, context) => {
3761
- return {
3762
- ...(input.FirewallDomainListId != null && { FirewallDomainListId: input.FirewallDomainListId }),
3763
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3764
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3765
- };
3766
- };
3767
- const se_ListFirewallRuleGroupAssociationsRequest = (input, context) => {
3768
- return {
3769
- ...(input.FirewallRuleGroupId != null && { FirewallRuleGroupId: input.FirewallRuleGroupId }),
3770
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3771
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3772
- ...(input.Priority != null && { Priority: input.Priority }),
3773
- ...(input.Status != null && { Status: input.Status }),
3774
- ...(input.VpcId != null && { VpcId: input.VpcId }),
3775
- };
3776
- };
3777
- const se_ListFirewallRuleGroupsRequest = (input, context) => {
3778
- return {
3779
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3780
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3781
- };
3782
- };
3783
- const se_ListFirewallRulesRequest = (input, context) => {
3784
- return {
3785
- ...(input.Action != null && { Action: input.Action }),
3786
- ...(input.FirewallRuleGroupId != null && { FirewallRuleGroupId: input.FirewallRuleGroupId }),
3787
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3788
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3789
- ...(input.Priority != null && { Priority: input.Priority }),
3790
- };
3791
- };
3792
- const se_ListResolverConfigsRequest = (input, context) => {
3793
- return {
3794
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3795
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3796
- };
3797
- };
3798
- const se_ListResolverDnssecConfigsRequest = (input, context) => {
3799
- return {
3800
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3801
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3802
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3803
- };
3804
- };
3805
- const se_ListResolverEndpointIpAddressesRequest = (input, context) => {
3806
- return {
3807
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3808
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3809
- ...(input.ResolverEndpointId != null && { ResolverEndpointId: input.ResolverEndpointId }),
3810
- };
3811
- };
3812
- const se_ListResolverEndpointsRequest = (input, context) => {
3813
- return {
3814
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3815
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3816
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3817
- };
3818
- };
3819
- const se_ListResolverQueryLogConfigAssociationsRequest = (input, context) => {
3820
- return {
3821
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3822
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3823
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3824
- ...(input.SortBy != null && { SortBy: input.SortBy }),
3825
- ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
3826
- };
3827
- };
3828
- const se_ListResolverQueryLogConfigsRequest = (input, context) => {
3829
- return {
3830
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3831
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3832
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3833
- ...(input.SortBy != null && { SortBy: input.SortBy }),
3834
- ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
3835
- };
3836
- };
3837
- const se_ListResolverRuleAssociationsRequest = (input, context) => {
3838
- return {
3839
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3840
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3841
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3842
- };
3843
- };
3844
- const se_ListResolverRulesRequest = (input, context) => {
3845
- return {
3846
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3847
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3848
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3849
- };
3850
- };
3851
- const se_ListTagsForResourceRequest = (input, context) => {
3852
- return {
3853
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3854
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3855
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3856
- };
3857
- };
3858
- const se_PutFirewallRuleGroupPolicyRequest = (input, context) => {
3859
- return {
3860
- ...(input.Arn != null && { Arn: input.Arn }),
3861
- ...(input.FirewallRuleGroupPolicy != null && { FirewallRuleGroupPolicy: input.FirewallRuleGroupPolicy }),
3862
- };
3863
- };
3864
- const se_PutResolverQueryLogConfigPolicyRequest = (input, context) => {
3865
- return {
3866
- ...(input.Arn != null && { Arn: input.Arn }),
3867
- ...(input.ResolverQueryLogConfigPolicy != null && {
3868
- ResolverQueryLogConfigPolicy: input.ResolverQueryLogConfigPolicy,
3869
- }),
3870
- };
3871
- };
3872
- const se_PutResolverRulePolicyRequest = (input, context) => {
3873
- return {
3874
- ...(input.Arn != null && { Arn: input.Arn }),
3875
- ...(input.ResolverRulePolicy != null && { ResolverRulePolicy: input.ResolverRulePolicy }),
3876
- };
3877
- };
3878
- const se_ResolverRuleConfig = (input, context) => {
3879
- return {
3880
- ...(input.Name != null && { Name: input.Name }),
3881
- ...(input.ResolverEndpointId != null && { ResolverEndpointId: input.ResolverEndpointId }),
3882
- ...(input.TargetIps != null && { TargetIps: se_TargetList(input.TargetIps, context) }),
3883
- };
3884
- };
3885
- const se_SecurityGroupIds = (input, context) => {
3886
- return input
3887
- .filter((e) => e != null)
3888
- .map((entry) => {
3889
- return entry;
3890
- });
3891
- };
3892
- const se_Tag = (input, context) => {
3893
- return {
3894
- ...(input.Key != null && { Key: input.Key }),
3895
- ...(input.Value != null && { Value: input.Value }),
3896
- };
3897
- };
3898
- const se_TagKeyList = (input, context) => {
3899
- return input
3900
- .filter((e) => e != null)
3901
- .map((entry) => {
3902
- return entry;
3903
- });
3904
- };
3905
- const se_TagList = (input, context) => {
3906
- return input
3907
- .filter((e) => e != null)
3908
- .map((entry) => {
3909
- return se_Tag(entry, context);
3910
- });
3911
- };
3912
- const se_TagResourceRequest = (input, context) => {
3913
- return {
3914
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3915
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3916
- };
3917
- };
3918
- const se_TargetAddress = (input, context) => {
3919
- return {
3920
- ...(input.Ip != null && { Ip: input.Ip }),
3921
- ...(input.Ipv6 != null && { Ipv6: input.Ipv6 }),
3922
- ...(input.Port != null && { Port: input.Port }),
3923
- };
3924
- };
3925
- const se_TargetList = (input, context) => {
3926
- return input
3927
- .filter((e) => e != null)
3928
- .map((entry) => {
3929
- return se_TargetAddress(entry, context);
3930
- });
3931
- };
3932
- const se_UntagResourceRequest = (input, context) => {
3933
- return {
3934
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3935
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
3936
- };
3937
- };
3938
- const se_UpdateFirewallConfigRequest = (input, context) => {
3939
- return {
3940
- ...(input.FirewallFailOpen != null && { FirewallFailOpen: input.FirewallFailOpen }),
3941
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3942
- };
3943
- };
3944
- const se_UpdateFirewallDomainsRequest = (input, context) => {
3945
- return {
3946
- ...(input.Domains != null && { Domains: se_FirewallDomains(input.Domains, context) }),
3947
- ...(input.FirewallDomainListId != null && { FirewallDomainListId: input.FirewallDomainListId }),
3948
- ...(input.Operation != null && { Operation: input.Operation }),
3949
- };
3950
- };
3951
- const se_UpdateFirewallRuleGroupAssociationRequest = (input, context) => {
3952
- return {
3953
- ...(input.FirewallRuleGroupAssociationId != null && {
3954
- FirewallRuleGroupAssociationId: input.FirewallRuleGroupAssociationId,
3955
- }),
3956
- ...(input.MutationProtection != null && { MutationProtection: input.MutationProtection }),
3957
- ...(input.Name != null && { Name: input.Name }),
3958
- ...(input.Priority != null && { Priority: input.Priority }),
3959
- };
3960
- };
3961
- const se_UpdateFirewallRuleRequest = (input, context) => {
3962
- return {
3963
- ...(input.Action != null && { Action: input.Action }),
3964
- ...(input.BlockOverrideDnsType != null && { BlockOverrideDnsType: input.BlockOverrideDnsType }),
3965
- ...(input.BlockOverrideDomain != null && { BlockOverrideDomain: input.BlockOverrideDomain }),
3966
- ...(input.BlockOverrideTtl != null && { BlockOverrideTtl: input.BlockOverrideTtl }),
3967
- ...(input.BlockResponse != null && { BlockResponse: input.BlockResponse }),
3968
- ...(input.FirewallDomainListId != null && { FirewallDomainListId: input.FirewallDomainListId }),
3969
- ...(input.FirewallRuleGroupId != null && { FirewallRuleGroupId: input.FirewallRuleGroupId }),
3970
- ...(input.Name != null && { Name: input.Name }),
3971
- ...(input.Priority != null && { Priority: input.Priority }),
3972
- };
3973
- };
3974
- const se_UpdateIpAddress = (input, context) => {
3975
- return {
3976
- ...(input.IpId != null && { IpId: input.IpId }),
3977
- ...(input.Ipv6 != null && { Ipv6: input.Ipv6 }),
3978
- };
3979
- };
3980
- const se_UpdateIpAddresses = (input, context) => {
3981
- return input
3982
- .filter((e) => e != null)
3983
- .map((entry) => {
3984
- return se_UpdateIpAddress(entry, context);
3985
- });
3986
- };
3987
- const se_UpdateResolverConfigRequest = (input, context) => {
3988
- return {
3989
- ...(input.AutodefinedReverseFlag != null && { AutodefinedReverseFlag: input.AutodefinedReverseFlag }),
3990
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3991
- };
3992
- };
3993
- const se_UpdateResolverDnssecConfigRequest = (input, context) => {
3994
- return {
3995
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3996
- ...(input.Validation != null && { Validation: input.Validation }),
3997
- };
3998
- };
3999
- const se_UpdateResolverEndpointRequest = (input, context) => {
4000
- return {
4001
- ...(input.Name != null && { Name: input.Name }),
4002
- ...(input.ResolverEndpointId != null && { ResolverEndpointId: input.ResolverEndpointId }),
4003
- ...(input.ResolverEndpointType != null && { ResolverEndpointType: input.ResolverEndpointType }),
4004
- ...(input.UpdateIpAddresses != null && {
4005
- UpdateIpAddresses: se_UpdateIpAddresses(input.UpdateIpAddresses, context),
4006
- }),
4007
- };
4008
- };
4009
- const se_UpdateResolverRuleRequest = (input, context) => {
4010
- return {
4011
- ...(input.Config != null && { Config: se_ResolverRuleConfig(input.Config, context) }),
4012
- ...(input.ResolverRuleId != null && { ResolverRuleId: input.ResolverRuleId }),
4013
- };
4014
- };
4015
- const de_AccessDeniedException = (output, context) => {
4016
- return {
4017
- Message: __expectString(output.Message),
4018
- };
4019
- };
4020
- const de_AssociateFirewallRuleGroupResponse = (output, context) => {
4021
- return {
4022
- FirewallRuleGroupAssociation: output.FirewallRuleGroupAssociation != null
4023
- ? de_FirewallRuleGroupAssociation(output.FirewallRuleGroupAssociation, context)
4024
- : undefined,
4025
- };
4026
- };
4027
- const de_AssociateResolverEndpointIpAddressResponse = (output, context) => {
4028
- return {
4029
- ResolverEndpoint: output.ResolverEndpoint != null ? de_ResolverEndpoint(output.ResolverEndpoint, context) : undefined,
4030
- };
4031
- };
4032
- const de_AssociateResolverQueryLogConfigResponse = (output, context) => {
4033
- return {
4034
- ResolverQueryLogConfigAssociation: output.ResolverQueryLogConfigAssociation != null
4035
- ? de_ResolverQueryLogConfigAssociation(output.ResolverQueryLogConfigAssociation, context)
4036
- : undefined,
4037
- };
4038
- };
4039
- const de_AssociateResolverRuleResponse = (output, context) => {
4040
- return {
4041
- ResolverRuleAssociation: output.ResolverRuleAssociation != null
4042
- ? de_ResolverRuleAssociation(output.ResolverRuleAssociation, context)
4043
- : undefined,
4044
- };
4045
- };
4046
- const de_ConflictException = (output, context) => {
4047
- return {
4048
- Message: __expectString(output.Message),
4049
- };
4050
- };
4051
- const de_CreateFirewallDomainListResponse = (output, context) => {
4052
- return {
4053
- FirewallDomainList: output.FirewallDomainList != null ? de_FirewallDomainList(output.FirewallDomainList, context) : undefined,
4054
- };
4055
- };
4056
- const de_CreateFirewallRuleGroupResponse = (output, context) => {
4057
- return {
4058
- FirewallRuleGroup: output.FirewallRuleGroup != null ? de_FirewallRuleGroup(output.FirewallRuleGroup, context) : undefined,
4059
- };
4060
- };
4061
- const de_CreateFirewallRuleResponse = (output, context) => {
4062
- return {
4063
- FirewallRule: output.FirewallRule != null ? de_FirewallRule(output.FirewallRule, context) : undefined,
4064
- };
4065
- };
4066
- const de_CreateResolverEndpointResponse = (output, context) => {
4067
- return {
4068
- ResolverEndpoint: output.ResolverEndpoint != null ? de_ResolverEndpoint(output.ResolverEndpoint, context) : undefined,
4069
- };
4070
- };
4071
- const de_CreateResolverQueryLogConfigResponse = (output, context) => {
4072
- return {
4073
- ResolverQueryLogConfig: output.ResolverQueryLogConfig != null
4074
- ? de_ResolverQueryLogConfig(output.ResolverQueryLogConfig, context)
4075
- : undefined,
4076
- };
4077
- };
4078
- const de_CreateResolverRuleResponse = (output, context) => {
4079
- return {
4080
- ResolverRule: output.ResolverRule != null ? de_ResolverRule(output.ResolverRule, context) : undefined,
4081
- };
4082
- };
4083
- const de_DeleteFirewallDomainListResponse = (output, context) => {
4084
- return {
4085
- FirewallDomainList: output.FirewallDomainList != null ? de_FirewallDomainList(output.FirewallDomainList, context) : undefined,
4086
- };
4087
- };
4088
- const de_DeleteFirewallRuleGroupResponse = (output, context) => {
4089
- return {
4090
- FirewallRuleGroup: output.FirewallRuleGroup != null ? de_FirewallRuleGroup(output.FirewallRuleGroup, context) : undefined,
4091
- };
4092
- };
4093
- const de_DeleteFirewallRuleResponse = (output, context) => {
4094
- return {
4095
- FirewallRule: output.FirewallRule != null ? de_FirewallRule(output.FirewallRule, context) : undefined,
4096
- };
4097
- };
4098
- const de_DeleteResolverEndpointResponse = (output, context) => {
4099
- return {
4100
- ResolverEndpoint: output.ResolverEndpoint != null ? de_ResolverEndpoint(output.ResolverEndpoint, context) : undefined,
4101
- };
4102
- };
4103
- const de_DeleteResolverQueryLogConfigResponse = (output, context) => {
4104
- return {
4105
- ResolverQueryLogConfig: output.ResolverQueryLogConfig != null
4106
- ? de_ResolverQueryLogConfig(output.ResolverQueryLogConfig, context)
4107
- : undefined,
4108
- };
4109
- };
4110
- const de_DeleteResolverRuleResponse = (output, context) => {
4111
- return {
4112
- ResolverRule: output.ResolverRule != null ? de_ResolverRule(output.ResolverRule, context) : undefined,
4113
- };
4114
- };
4115
- const de_DisassociateFirewallRuleGroupResponse = (output, context) => {
4116
- return {
4117
- FirewallRuleGroupAssociation: output.FirewallRuleGroupAssociation != null
4118
- ? de_FirewallRuleGroupAssociation(output.FirewallRuleGroupAssociation, context)
4119
- : undefined,
4120
- };
4121
- };
4122
- const de_DisassociateResolverEndpointIpAddressResponse = (output, context) => {
4123
- return {
4124
- ResolverEndpoint: output.ResolverEndpoint != null ? de_ResolverEndpoint(output.ResolverEndpoint, context) : undefined,
4125
- };
4126
- };
4127
- const de_DisassociateResolverQueryLogConfigResponse = (output, context) => {
4128
- return {
4129
- ResolverQueryLogConfigAssociation: output.ResolverQueryLogConfigAssociation != null
4130
- ? de_ResolverQueryLogConfigAssociation(output.ResolverQueryLogConfigAssociation, context)
4131
- : undefined,
4132
- };
4133
- };
4134
- const de_DisassociateResolverRuleResponse = (output, context) => {
4135
- return {
4136
- ResolverRuleAssociation: output.ResolverRuleAssociation != null
4137
- ? de_ResolverRuleAssociation(output.ResolverRuleAssociation, context)
4138
- : undefined,
4139
- };
4140
- };
4141
- const de_FirewallConfig = (output, context) => {
4142
- return {
4143
- FirewallFailOpen: __expectString(output.FirewallFailOpen),
4144
- Id: __expectString(output.Id),
4145
- OwnerId: __expectString(output.OwnerId),
4146
- ResourceId: __expectString(output.ResourceId),
4147
- };
4148
- };
4149
- const de_FirewallConfigList = (output, context) => {
4150
- const retVal = (output || [])
4151
- .filter((e) => e != null)
4152
- .map((entry) => {
4153
- if (entry === null) {
4154
- return null;
4155
- }
4156
- return de_FirewallConfig(entry, context);
4157
- });
4158
- return retVal;
4159
- };
4160
- const de_FirewallDomainList = (output, context) => {
4161
- return {
4162
- Arn: __expectString(output.Arn),
4163
- CreationTime: __expectString(output.CreationTime),
4164
- CreatorRequestId: __expectString(output.CreatorRequestId),
4165
- DomainCount: __expectInt32(output.DomainCount),
4166
- Id: __expectString(output.Id),
4167
- ManagedOwnerName: __expectString(output.ManagedOwnerName),
4168
- ModificationTime: __expectString(output.ModificationTime),
4169
- Name: __expectString(output.Name),
4170
- Status: __expectString(output.Status),
4171
- StatusMessage: __expectString(output.StatusMessage),
4172
- };
4173
- };
4174
- const de_FirewallDomainListMetadata = (output, context) => {
4175
- return {
4176
- Arn: __expectString(output.Arn),
4177
- CreatorRequestId: __expectString(output.CreatorRequestId),
4178
- Id: __expectString(output.Id),
4179
- ManagedOwnerName: __expectString(output.ManagedOwnerName),
4180
- Name: __expectString(output.Name),
4181
- };
4182
- };
4183
- const de_FirewallDomainListMetadataList = (output, context) => {
4184
- const retVal = (output || [])
4185
- .filter((e) => e != null)
4186
- .map((entry) => {
4187
- if (entry === null) {
4188
- return null;
4189
- }
4190
- return de_FirewallDomainListMetadata(entry, context);
4191
- });
4192
- return retVal;
4193
- };
4194
- const de_FirewallDomains = (output, context) => {
4195
- const retVal = (output || [])
4196
- .filter((e) => e != null)
4197
- .map((entry) => {
4198
- if (entry === null) {
4199
- return null;
4200
- }
4201
- return __expectString(entry);
4202
- });
4203
- return retVal;
4204
- };
4205
- const de_FirewallRule = (output, context) => {
4206
- return {
4207
- Action: __expectString(output.Action),
4208
- BlockOverrideDnsType: __expectString(output.BlockOverrideDnsType),
4209
- BlockOverrideDomain: __expectString(output.BlockOverrideDomain),
4210
- BlockOverrideTtl: __expectInt32(output.BlockOverrideTtl),
4211
- BlockResponse: __expectString(output.BlockResponse),
4212
- CreationTime: __expectString(output.CreationTime),
4213
- CreatorRequestId: __expectString(output.CreatorRequestId),
4214
- FirewallDomainListId: __expectString(output.FirewallDomainListId),
4215
- FirewallRuleGroupId: __expectString(output.FirewallRuleGroupId),
4216
- ModificationTime: __expectString(output.ModificationTime),
4217
- Name: __expectString(output.Name),
4218
- Priority: __expectInt32(output.Priority),
4219
- };
4220
- };
4221
- const de_FirewallRuleGroup = (output, context) => {
4222
- return {
4223
- Arn: __expectString(output.Arn),
4224
- CreationTime: __expectString(output.CreationTime),
4225
- CreatorRequestId: __expectString(output.CreatorRequestId),
4226
- Id: __expectString(output.Id),
4227
- ModificationTime: __expectString(output.ModificationTime),
4228
- Name: __expectString(output.Name),
4229
- OwnerId: __expectString(output.OwnerId),
4230
- RuleCount: __expectInt32(output.RuleCount),
4231
- ShareStatus: __expectString(output.ShareStatus),
4232
- Status: __expectString(output.Status),
4233
- StatusMessage: __expectString(output.StatusMessage),
4234
- };
4235
- };
4236
- const de_FirewallRuleGroupAssociation = (output, context) => {
4237
- return {
4238
- Arn: __expectString(output.Arn),
4239
- CreationTime: __expectString(output.CreationTime),
4240
- CreatorRequestId: __expectString(output.CreatorRequestId),
4241
- FirewallRuleGroupId: __expectString(output.FirewallRuleGroupId),
4242
- Id: __expectString(output.Id),
4243
- ManagedOwnerName: __expectString(output.ManagedOwnerName),
4244
- ModificationTime: __expectString(output.ModificationTime),
4245
- MutationProtection: __expectString(output.MutationProtection),
4246
- Name: __expectString(output.Name),
4247
- Priority: __expectInt32(output.Priority),
4248
- Status: __expectString(output.Status),
4249
- StatusMessage: __expectString(output.StatusMessage),
4250
- VpcId: __expectString(output.VpcId),
4251
- };
4252
- };
4253
- const de_FirewallRuleGroupAssociations = (output, context) => {
4254
- const retVal = (output || [])
4255
- .filter((e) => e != null)
4256
- .map((entry) => {
4257
- if (entry === null) {
4258
- return null;
4259
- }
4260
- return de_FirewallRuleGroupAssociation(entry, context);
4261
- });
4262
- return retVal;
4263
- };
4264
- const de_FirewallRuleGroupMetadata = (output, context) => {
4265
- return {
4266
- Arn: __expectString(output.Arn),
4267
- CreatorRequestId: __expectString(output.CreatorRequestId),
4268
- Id: __expectString(output.Id),
4269
- Name: __expectString(output.Name),
4270
- OwnerId: __expectString(output.OwnerId),
4271
- ShareStatus: __expectString(output.ShareStatus),
4272
- };
4273
- };
4274
- const de_FirewallRuleGroupMetadataList = (output, context) => {
4275
- const retVal = (output || [])
4276
- .filter((e) => e != null)
4277
- .map((entry) => {
4278
- if (entry === null) {
4279
- return null;
4280
- }
4281
- return de_FirewallRuleGroupMetadata(entry, context);
4282
- });
4283
- return retVal;
4284
- };
4285
- const de_FirewallRules = (output, context) => {
4286
- const retVal = (output || [])
4287
- .filter((e) => e != null)
4288
- .map((entry) => {
4289
- if (entry === null) {
4290
- return null;
4291
- }
4292
- return de_FirewallRule(entry, context);
4293
- });
4294
- return retVal;
4295
- };
4296
- const de_GetFirewallConfigResponse = (output, context) => {
4297
- return {
4298
- FirewallConfig: output.FirewallConfig != null ? de_FirewallConfig(output.FirewallConfig, context) : undefined,
4299
- };
4300
- };
4301
- const de_GetFirewallDomainListResponse = (output, context) => {
4302
- return {
4303
- FirewallDomainList: output.FirewallDomainList != null ? de_FirewallDomainList(output.FirewallDomainList, context) : undefined,
4304
- };
4305
- };
4306
- const de_GetFirewallRuleGroupAssociationResponse = (output, context) => {
4307
- return {
4308
- FirewallRuleGroupAssociation: output.FirewallRuleGroupAssociation != null
4309
- ? de_FirewallRuleGroupAssociation(output.FirewallRuleGroupAssociation, context)
4310
- : undefined,
4311
- };
4312
- };
4313
- const de_GetFirewallRuleGroupPolicyResponse = (output, context) => {
4314
- return {
4315
- FirewallRuleGroupPolicy: __expectString(output.FirewallRuleGroupPolicy),
4316
- };
4317
- };
4318
- const de_GetFirewallRuleGroupResponse = (output, context) => {
4319
- return {
4320
- FirewallRuleGroup: output.FirewallRuleGroup != null ? de_FirewallRuleGroup(output.FirewallRuleGroup, context) : undefined,
4321
- };
4322
- };
4323
- const de_GetResolverConfigResponse = (output, context) => {
4324
- return {
4325
- ResolverConfig: output.ResolverConfig != null ? de_ResolverConfig(output.ResolverConfig, context) : undefined,
4326
- };
4327
- };
4328
- const de_GetResolverDnssecConfigResponse = (output, context) => {
4329
- return {
4330
- ResolverDNSSECConfig: output.ResolverDNSSECConfig != null ? de_ResolverDnssecConfig(output.ResolverDNSSECConfig, context) : undefined,
4331
- };
4332
- };
4333
- const de_GetResolverEndpointResponse = (output, context) => {
4334
- return {
4335
- ResolverEndpoint: output.ResolverEndpoint != null ? de_ResolverEndpoint(output.ResolverEndpoint, context) : undefined,
4336
- };
4337
- };
4338
- const de_GetResolverQueryLogConfigAssociationResponse = (output, context) => {
4339
- return {
4340
- ResolverQueryLogConfigAssociation: output.ResolverQueryLogConfigAssociation != null
4341
- ? de_ResolverQueryLogConfigAssociation(output.ResolverQueryLogConfigAssociation, context)
4342
- : undefined,
4343
- };
4344
- };
4345
- const de_GetResolverQueryLogConfigPolicyResponse = (output, context) => {
4346
- return {
4347
- ResolverQueryLogConfigPolicy: __expectString(output.ResolverQueryLogConfigPolicy),
4348
- };
4349
- };
4350
- const de_GetResolverQueryLogConfigResponse = (output, context) => {
4351
- return {
4352
- ResolverQueryLogConfig: output.ResolverQueryLogConfig != null
4353
- ? de_ResolverQueryLogConfig(output.ResolverQueryLogConfig, context)
4354
- : undefined,
4355
- };
4356
- };
4357
- const de_GetResolverRuleAssociationResponse = (output, context) => {
4358
- return {
4359
- ResolverRuleAssociation: output.ResolverRuleAssociation != null
4360
- ? de_ResolverRuleAssociation(output.ResolverRuleAssociation, context)
4361
- : undefined,
4362
- };
4363
- };
4364
- const de_GetResolverRulePolicyResponse = (output, context) => {
4365
- return {
4366
- ResolverRulePolicy: __expectString(output.ResolverRulePolicy),
4367
- };
4368
- };
4369
- const de_GetResolverRuleResponse = (output, context) => {
4370
- return {
4371
- ResolverRule: output.ResolverRule != null ? de_ResolverRule(output.ResolverRule, context) : undefined,
4372
- };
4373
- };
4374
- const de_ImportFirewallDomainsResponse = (output, context) => {
4375
- return {
4376
- Id: __expectString(output.Id),
4377
- Name: __expectString(output.Name),
4378
- Status: __expectString(output.Status),
4379
- StatusMessage: __expectString(output.StatusMessage),
4380
- };
4381
- };
4382
- const de_InternalServiceErrorException = (output, context) => {
4383
- return {
4384
- Message: __expectString(output.Message),
4385
- };
4386
- };
4387
- const de_InvalidNextTokenException = (output, context) => {
4388
- return {
4389
- Message: __expectString(output.Message),
4390
- };
4391
- };
4392
- const de_InvalidParameterException = (output, context) => {
4393
- return {
4394
- FieldName: __expectString(output.FieldName),
4395
- Message: __expectString(output.Message),
4396
- };
4397
- };
4398
- const de_InvalidPolicyDocument = (output, context) => {
4399
- return {
4400
- Message: __expectString(output.Message),
4401
- };
4402
- };
4403
- const de_InvalidRequestException = (output, context) => {
4404
- return {
4405
- Message: __expectString(output.Message),
4406
- };
4407
- };
4408
- const de_InvalidTagException = (output, context) => {
4409
- return {
4410
- Message: __expectString(output.Message),
4411
- };
4412
- };
4413
- const de_IpAddressesResponse = (output, context) => {
4414
- const retVal = (output || [])
4415
- .filter((e) => e != null)
4416
- .map((entry) => {
4417
- if (entry === null) {
4418
- return null;
4419
- }
4420
- return de_IpAddressResponse(entry, context);
4421
- });
4422
- return retVal;
4423
- };
4424
- const de_IpAddressResponse = (output, context) => {
4425
- return {
4426
- CreationTime: __expectString(output.CreationTime),
4427
- Ip: __expectString(output.Ip),
4428
- IpId: __expectString(output.IpId),
4429
- Ipv6: __expectString(output.Ipv6),
4430
- ModificationTime: __expectString(output.ModificationTime),
4431
- Status: __expectString(output.Status),
4432
- StatusMessage: __expectString(output.StatusMessage),
4433
- SubnetId: __expectString(output.SubnetId),
4434
- };
4435
- };
4436
- const de_LimitExceededException = (output, context) => {
4437
- return {
4438
- Message: __expectString(output.Message),
4439
- ResourceType: __expectString(output.ResourceType),
4440
- };
4441
- };
4442
- const de_ListFirewallConfigsResponse = (output, context) => {
4443
- return {
4444
- FirewallConfigs: output.FirewallConfigs != null ? de_FirewallConfigList(output.FirewallConfigs, context) : undefined,
4445
- NextToken: __expectString(output.NextToken),
4446
- };
4447
- };
4448
- const de_ListFirewallDomainListsResponse = (output, context) => {
4449
- return {
4450
- FirewallDomainLists: output.FirewallDomainLists != null
4451
- ? de_FirewallDomainListMetadataList(output.FirewallDomainLists, context)
4452
- : undefined,
4453
- NextToken: __expectString(output.NextToken),
4454
- };
4455
- };
4456
- const de_ListFirewallDomainsResponse = (output, context) => {
4457
- return {
4458
- Domains: output.Domains != null ? de_FirewallDomains(output.Domains, context) : undefined,
4459
- NextToken: __expectString(output.NextToken),
4460
- };
4461
- };
4462
- const de_ListFirewallRuleGroupAssociationsResponse = (output, context) => {
4463
- return {
4464
- FirewallRuleGroupAssociations: output.FirewallRuleGroupAssociations != null
4465
- ? de_FirewallRuleGroupAssociations(output.FirewallRuleGroupAssociations, context)
4466
- : undefined,
4467
- NextToken: __expectString(output.NextToken),
4468
- };
4469
- };
4470
- const de_ListFirewallRuleGroupsResponse = (output, context) => {
4471
- return {
4472
- FirewallRuleGroups: output.FirewallRuleGroups != null
4473
- ? de_FirewallRuleGroupMetadataList(output.FirewallRuleGroups, context)
4474
- : undefined,
4475
- NextToken: __expectString(output.NextToken),
4476
- };
4477
- };
4478
- const de_ListFirewallRulesResponse = (output, context) => {
4479
- return {
4480
- FirewallRules: output.FirewallRules != null ? de_FirewallRules(output.FirewallRules, context) : undefined,
4481
- NextToken: __expectString(output.NextToken),
4482
- };
4483
- };
4484
- const de_ListResolverConfigsResponse = (output, context) => {
4485
- return {
4486
- NextToken: __expectString(output.NextToken),
4487
- ResolverConfigs: output.ResolverConfigs != null ? de_ResolverConfigList(output.ResolverConfigs, context) : undefined,
4488
- };
4489
- };
4490
- const de_ListResolverDnssecConfigsResponse = (output, context) => {
4491
- return {
4492
- NextToken: __expectString(output.NextToken),
4493
- ResolverDnssecConfigs: output.ResolverDnssecConfigs != null
4494
- ? de_ResolverDnssecConfigList(output.ResolverDnssecConfigs, context)
4495
- : undefined,
4496
- };
4497
- };
4498
- const de_ListResolverEndpointIpAddressesResponse = (output, context) => {
4499
- return {
4500
- IpAddresses: output.IpAddresses != null ? de_IpAddressesResponse(output.IpAddresses, context) : undefined,
4501
- MaxResults: __expectInt32(output.MaxResults),
4502
- NextToken: __expectString(output.NextToken),
4503
- };
4504
- };
4505
- const de_ListResolverEndpointsResponse = (output, context) => {
4506
- return {
4507
- MaxResults: __expectInt32(output.MaxResults),
4508
- NextToken: __expectString(output.NextToken),
4509
- ResolverEndpoints: output.ResolverEndpoints != null ? de_ResolverEndpoints(output.ResolverEndpoints, context) : undefined,
4510
- };
4511
- };
4512
- const de_ListResolverQueryLogConfigAssociationsResponse = (output, context) => {
4513
- return {
4514
- NextToken: __expectString(output.NextToken),
4515
- ResolverQueryLogConfigAssociations: output.ResolverQueryLogConfigAssociations != null
4516
- ? de_ResolverQueryLogConfigAssociationList(output.ResolverQueryLogConfigAssociations, context)
4517
- : undefined,
4518
- TotalCount: __expectInt32(output.TotalCount),
4519
- TotalFilteredCount: __expectInt32(output.TotalFilteredCount),
4520
- };
4521
- };
4522
- const de_ListResolverQueryLogConfigsResponse = (output, context) => {
4523
- return {
4524
- NextToken: __expectString(output.NextToken),
4525
- ResolverQueryLogConfigs: output.ResolverQueryLogConfigs != null
4526
- ? de_ResolverQueryLogConfigList(output.ResolverQueryLogConfigs, context)
4527
- : undefined,
4528
- TotalCount: __expectInt32(output.TotalCount),
4529
- TotalFilteredCount: __expectInt32(output.TotalFilteredCount),
4530
- };
4531
- };
4532
- const de_ListResolverRuleAssociationsResponse = (output, context) => {
4533
- return {
4534
- MaxResults: __expectInt32(output.MaxResults),
4535
- NextToken: __expectString(output.NextToken),
4536
- ResolverRuleAssociations: output.ResolverRuleAssociations != null
4537
- ? de_ResolverRuleAssociations(output.ResolverRuleAssociations, context)
4538
- : undefined,
4539
- };
4540
- };
4541
- const de_ListResolverRulesResponse = (output, context) => {
4542
- return {
4543
- MaxResults: __expectInt32(output.MaxResults),
4544
- NextToken: __expectString(output.NextToken),
4545
- ResolverRules: output.ResolverRules != null ? de_ResolverRules(output.ResolverRules, context) : undefined,
4546
- };
4547
- };
4548
- const de_ListTagsForResourceResponse = (output, context) => {
4549
- return {
4550
- NextToken: __expectString(output.NextToken),
4551
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
4552
- };
4553
- };
4554
- const de_PutFirewallRuleGroupPolicyResponse = (output, context) => {
4555
- return {
4556
- ReturnValue: __expectBoolean(output.ReturnValue),
4557
- };
4558
- };
4559
- const de_PutResolverQueryLogConfigPolicyResponse = (output, context) => {
4560
- return {
4561
- ReturnValue: __expectBoolean(output.ReturnValue),
4562
- };
4563
- };
4564
- const de_PutResolverRulePolicyResponse = (output, context) => {
4565
- return {
4566
- ReturnValue: __expectBoolean(output.ReturnValue),
4567
- };
4568
- };
4569
- const de_ResolverConfig = (output, context) => {
4570
- return {
4571
- AutodefinedReverse: __expectString(output.AutodefinedReverse),
4572
- Id: __expectString(output.Id),
4573
- OwnerId: __expectString(output.OwnerId),
4574
- ResourceId: __expectString(output.ResourceId),
4575
- };
4576
- };
4577
- const de_ResolverConfigList = (output, context) => {
4578
- const retVal = (output || [])
4579
- .filter((e) => e != null)
4580
- .map((entry) => {
4581
- if (entry === null) {
4582
- return null;
4583
- }
4584
- return de_ResolverConfig(entry, context);
4585
- });
4586
- return retVal;
4587
- };
4588
- const de_ResolverDnssecConfig = (output, context) => {
4589
- return {
4590
- Id: __expectString(output.Id),
4591
- OwnerId: __expectString(output.OwnerId),
4592
- ResourceId: __expectString(output.ResourceId),
4593
- ValidationStatus: __expectString(output.ValidationStatus),
4594
- };
4595
- };
4596
- const de_ResolverDnssecConfigList = (output, context) => {
4597
- const retVal = (output || [])
4598
- .filter((e) => e != null)
4599
- .map((entry) => {
4600
- if (entry === null) {
4601
- return null;
4602
- }
4603
- return de_ResolverDnssecConfig(entry, context);
4604
- });
4605
- return retVal;
4606
- };
4607
- const de_ResolverEndpoint = (output, context) => {
4608
- return {
4609
- Arn: __expectString(output.Arn),
4610
- CreationTime: __expectString(output.CreationTime),
4611
- CreatorRequestId: __expectString(output.CreatorRequestId),
4612
- Direction: __expectString(output.Direction),
4613
- HostVPCId: __expectString(output.HostVPCId),
4614
- Id: __expectString(output.Id),
4615
- IpAddressCount: __expectInt32(output.IpAddressCount),
4616
- ModificationTime: __expectString(output.ModificationTime),
4617
- Name: __expectString(output.Name),
4618
- ResolverEndpointType: __expectString(output.ResolverEndpointType),
4619
- SecurityGroupIds: output.SecurityGroupIds != null ? de_SecurityGroupIds(output.SecurityGroupIds, context) : undefined,
4620
- Status: __expectString(output.Status),
4621
- StatusMessage: __expectString(output.StatusMessage),
4622
- };
4623
- };
4624
- const de_ResolverEndpoints = (output, context) => {
4625
- const retVal = (output || [])
4626
- .filter((e) => e != null)
4627
- .map((entry) => {
4628
- if (entry === null) {
4629
- return null;
4630
- }
4631
- return de_ResolverEndpoint(entry, context);
4632
- });
4633
- return retVal;
4634
- };
4635
- const de_ResolverQueryLogConfig = (output, context) => {
4636
- return {
4637
- Arn: __expectString(output.Arn),
4638
- AssociationCount: __expectInt32(output.AssociationCount),
4639
- CreationTime: __expectString(output.CreationTime),
4640
- CreatorRequestId: __expectString(output.CreatorRequestId),
4641
- DestinationArn: __expectString(output.DestinationArn),
4642
- Id: __expectString(output.Id),
4643
- Name: __expectString(output.Name),
4644
- OwnerId: __expectString(output.OwnerId),
4645
- ShareStatus: __expectString(output.ShareStatus),
4646
- Status: __expectString(output.Status),
4647
- };
4648
- };
4649
- const de_ResolverQueryLogConfigAssociation = (output, context) => {
4650
- return {
4651
- CreationTime: __expectString(output.CreationTime),
4652
- Error: __expectString(output.Error),
4653
- ErrorMessage: __expectString(output.ErrorMessage),
4654
- Id: __expectString(output.Id),
4655
- ResolverQueryLogConfigId: __expectString(output.ResolverQueryLogConfigId),
4656
- ResourceId: __expectString(output.ResourceId),
4657
- Status: __expectString(output.Status),
4658
- };
4659
- };
4660
- const de_ResolverQueryLogConfigAssociationList = (output, context) => {
4661
- const retVal = (output || [])
4662
- .filter((e) => e != null)
4663
- .map((entry) => {
4664
- if (entry === null) {
4665
- return null;
4666
- }
4667
- return de_ResolverQueryLogConfigAssociation(entry, context);
4668
- });
4669
- return retVal;
4670
- };
4671
- const de_ResolverQueryLogConfigList = (output, context) => {
4672
- const retVal = (output || [])
4673
- .filter((e) => e != null)
4674
- .map((entry) => {
4675
- if (entry === null) {
4676
- return null;
4677
- }
4678
- return de_ResolverQueryLogConfig(entry, context);
3412
+ return take(input, {
3413
+ CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
3414
+ FirewallRuleGroupId: [],
3415
+ MutationProtection: [],
3416
+ Name: [],
3417
+ Priority: [],
3418
+ Tags: _json,
3419
+ VpcId: [],
4679
3420
  });
4680
- return retVal;
4681
3421
  };
4682
- const de_ResolverRule = (output, context) => {
4683
- return {
4684
- Arn: __expectString(output.Arn),
4685
- CreationTime: __expectString(output.CreationTime),
4686
- CreatorRequestId: __expectString(output.CreatorRequestId),
4687
- DomainName: __expectString(output.DomainName),
4688
- Id: __expectString(output.Id),
4689
- ModificationTime: __expectString(output.ModificationTime),
4690
- Name: __expectString(output.Name),
4691
- OwnerId: __expectString(output.OwnerId),
4692
- ResolverEndpointId: __expectString(output.ResolverEndpointId),
4693
- RuleType: __expectString(output.RuleType),
4694
- ShareStatus: __expectString(output.ShareStatus),
4695
- Status: __expectString(output.Status),
4696
- StatusMessage: __expectString(output.StatusMessage),
4697
- TargetIps: output.TargetIps != null ? de_TargetList(output.TargetIps, context) : undefined,
4698
- };
4699
- };
4700
- const de_ResolverRuleAssociation = (output, context) => {
4701
- return {
4702
- Id: __expectString(output.Id),
4703
- Name: __expectString(output.Name),
4704
- ResolverRuleId: __expectString(output.ResolverRuleId),
4705
- Status: __expectString(output.Status),
4706
- StatusMessage: __expectString(output.StatusMessage),
4707
- VPCId: __expectString(output.VPCId),
4708
- };
4709
- };
4710
- const de_ResolverRuleAssociations = (output, context) => {
4711
- const retVal = (output || [])
4712
- .filter((e) => e != null)
4713
- .map((entry) => {
4714
- if (entry === null) {
4715
- return null;
4716
- }
4717
- return de_ResolverRuleAssociation(entry, context);
4718
- });
4719
- return retVal;
4720
- };
4721
- const de_ResolverRules = (output, context) => {
4722
- const retVal = (output || [])
4723
- .filter((e) => e != null)
4724
- .map((entry) => {
4725
- if (entry === null) {
4726
- return null;
4727
- }
4728
- return de_ResolverRule(entry, context);
3422
+ const se_CreateFirewallDomainListRequest = (input, context) => {
3423
+ return take(input, {
3424
+ CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
3425
+ Name: [],
3426
+ Tags: _json,
4729
3427
  });
4730
- return retVal;
4731
- };
4732
- const de_ResourceExistsException = (output, context) => {
4733
- return {
4734
- Message: __expectString(output.Message),
4735
- ResourceType: __expectString(output.ResourceType),
4736
- };
4737
- };
4738
- const de_ResourceInUseException = (output, context) => {
4739
- return {
4740
- Message: __expectString(output.Message),
4741
- ResourceType: __expectString(output.ResourceType),
4742
- };
4743
- };
4744
- const de_ResourceNotFoundException = (output, context) => {
4745
- return {
4746
- Message: __expectString(output.Message),
4747
- ResourceType: __expectString(output.ResourceType),
4748
- };
4749
3428
  };
4750
- const de_ResourceUnavailableException = (output, context) => {
4751
- return {
4752
- Message: __expectString(output.Message),
4753
- ResourceType: __expectString(output.ResourceType),
4754
- };
4755
- };
4756
- const de_SecurityGroupIds = (output, context) => {
4757
- const retVal = (output || [])
4758
- .filter((e) => e != null)
4759
- .map((entry) => {
4760
- if (entry === null) {
4761
- return null;
4762
- }
4763
- return __expectString(entry);
3429
+ const se_CreateFirewallRuleGroupRequest = (input, context) => {
3430
+ return take(input, {
3431
+ CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
3432
+ Name: [],
3433
+ Tags: _json,
4764
3434
  });
4765
- return retVal;
4766
- };
4767
- const de_Tag = (output, context) => {
4768
- return {
4769
- Key: __expectString(output.Key),
4770
- Value: __expectString(output.Value),
4771
- };
4772
3435
  };
4773
- const de_TagList = (output, context) => {
4774
- const retVal = (output || [])
4775
- .filter((e) => e != null)
4776
- .map((entry) => {
4777
- if (entry === null) {
4778
- return null;
4779
- }
4780
- return de_Tag(entry, context);
3436
+ const se_CreateFirewallRuleRequest = (input, context) => {
3437
+ return take(input, {
3438
+ Action: [],
3439
+ BlockOverrideDnsType: [],
3440
+ BlockOverrideDomain: [],
3441
+ BlockOverrideTtl: [],
3442
+ BlockResponse: [],
3443
+ CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
3444
+ FirewallDomainListId: [],
3445
+ FirewallRuleGroupId: [],
3446
+ Name: [],
3447
+ Priority: [],
4781
3448
  });
4782
- return retVal;
4783
- };
4784
- const de_TagResourceResponse = (output, context) => {
4785
- return {};
4786
3449
  };
4787
- const de_TargetAddress = (output, context) => {
4788
- return {
4789
- Ip: __expectString(output.Ip),
4790
- Ipv6: __expectString(output.Ipv6),
4791
- Port: __expectInt32(output.Port),
4792
- };
4793
- };
4794
- const de_TargetList = (output, context) => {
4795
- const retVal = (output || [])
4796
- .filter((e) => e != null)
4797
- .map((entry) => {
4798
- if (entry === null) {
4799
- return null;
4800
- }
4801
- return de_TargetAddress(entry, context);
3450
+ const se_CreateResolverQueryLogConfigRequest = (input, context) => {
3451
+ return take(input, {
3452
+ CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
3453
+ DestinationArn: [],
3454
+ Name: [],
3455
+ Tags: _json,
4802
3456
  });
4803
- return retVal;
4804
- };
4805
- const de_ThrottlingException = (output, context) => {
4806
- return {
4807
- Message: __expectString(output.Message),
4808
- };
4809
- };
4810
- const de_UnknownResourceException = (output, context) => {
4811
- return {
4812
- Message: __expectString(output.Message),
4813
- };
4814
- };
4815
- const de_UntagResourceResponse = (output, context) => {
4816
- return {};
4817
- };
4818
- const de_UpdateFirewallConfigResponse = (output, context) => {
4819
- return {
4820
- FirewallConfig: output.FirewallConfig != null ? de_FirewallConfig(output.FirewallConfig, context) : undefined,
4821
- };
4822
- };
4823
- const de_UpdateFirewallDomainsResponse = (output, context) => {
4824
- return {
4825
- Id: __expectString(output.Id),
4826
- Name: __expectString(output.Name),
4827
- Status: __expectString(output.Status),
4828
- StatusMessage: __expectString(output.StatusMessage),
4829
- };
4830
- };
4831
- const de_UpdateFirewallRuleGroupAssociationResponse = (output, context) => {
4832
- return {
4833
- FirewallRuleGroupAssociation: output.FirewallRuleGroupAssociation != null
4834
- ? de_FirewallRuleGroupAssociation(output.FirewallRuleGroupAssociation, context)
4835
- : undefined,
4836
- };
4837
- };
4838
- const de_UpdateFirewallRuleResponse = (output, context) => {
4839
- return {
4840
- FirewallRule: output.FirewallRule != null ? de_FirewallRule(output.FirewallRule, context) : undefined,
4841
- };
4842
- };
4843
- const de_UpdateResolverConfigResponse = (output, context) => {
4844
- return {
4845
- ResolverConfig: output.ResolverConfig != null ? de_ResolverConfig(output.ResolverConfig, context) : undefined,
4846
- };
4847
- };
4848
- const de_UpdateResolverDnssecConfigResponse = (output, context) => {
4849
- return {
4850
- ResolverDNSSECConfig: output.ResolverDNSSECConfig != null ? de_ResolverDnssecConfig(output.ResolverDNSSECConfig, context) : undefined,
4851
- };
4852
- };
4853
- const de_UpdateResolverEndpointResponse = (output, context) => {
4854
- return {
4855
- ResolverEndpoint: output.ResolverEndpoint != null ? de_ResolverEndpoint(output.ResolverEndpoint, context) : undefined,
4856
- };
4857
- };
4858
- const de_UpdateResolverRuleResponse = (output, context) => {
4859
- return {
4860
- ResolverRule: output.ResolverRule != null ? de_ResolverRule(output.ResolverRule, context) : undefined,
4861
- };
4862
- };
4863
- const de_ValidationException = (output, context) => {
4864
- return {
4865
- Message: __expectString(output.Message),
4866
- };
4867
3457
  };
4868
3458
  const deserializeMetadata = (output) => ({
4869
3459
  httpStatusCode: output.statusCode,
@@ -4878,6 +3468,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
4878
3468
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4879
3469
  };
4880
3470
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3471
+ const throwDefaultError = withBaseException(__BaseException);
4881
3472
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4882
3473
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4883
3474
  const contents = {