@aws-sdk/client-wafv2 3.312.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { WAFAssociatedItemException, WAFConfigurationWarningException, WAFDuplicateItemException, WAFExpiredManagedRuleGroupVersionException, WAFInternalErrorException, WAFInvalidOperationException, WAFInvalidParameterException, WAFInvalidPermissionPolicyException, WAFInvalidResourceException, WAFLimitsExceededException, WAFLogDestinationPermissionIssueException, WAFNonexistentItemException, WAFOptimisticLockException, WAFServiceLinkedRoleErrorException, WAFSubscriptionNotFoundException, WAFTagOperationException, WAFTagOperationInternalErrorException, WAFUnavailableEntityException, } from "../models/models_0";
4
4
  import { WAFV2ServiceException as __BaseException } from "../models/WAFV2ServiceException";
5
5
  export const se_AssociateWebACLCommand = async (input, context) => {
6
6
  const headers = sharedHeaders("AssociateWebACL");
7
7
  let body;
8
- body = JSON.stringify(se_AssociateWebACLRequest(input, context));
8
+ body = JSON.stringify(_json(input));
9
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
10
10
  };
11
11
  export const se_CheckCapacityCommand = async (input, context) => {
@@ -17,13 +17,13 @@ export const se_CheckCapacityCommand = async (input, context) => {
17
17
  export const se_CreateIPSetCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("CreateIPSet");
19
19
  let body;
20
- body = JSON.stringify(se_CreateIPSetRequest(input, context));
20
+ body = JSON.stringify(_json(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  export const se_CreateRegexPatternSetCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("CreateRegexPatternSet");
25
25
  let body;
26
- body = JSON.stringify(se_CreateRegexPatternSetRequest(input, context));
26
+ body = JSON.stringify(_json(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  export const se_CreateRuleGroupCommand = async (input, context) => {
@@ -41,109 +41,109 @@ export const se_CreateWebACLCommand = async (input, context) => {
41
41
  export const se_DeleteFirewallManagerRuleGroupsCommand = async (input, context) => {
42
42
  const headers = sharedHeaders("DeleteFirewallManagerRuleGroups");
43
43
  let body;
44
- body = JSON.stringify(se_DeleteFirewallManagerRuleGroupsRequest(input, context));
44
+ body = JSON.stringify(_json(input));
45
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
46
  };
47
47
  export const se_DeleteIPSetCommand = async (input, context) => {
48
48
  const headers = sharedHeaders("DeleteIPSet");
49
49
  let body;
50
- body = JSON.stringify(se_DeleteIPSetRequest(input, context));
50
+ body = JSON.stringify(_json(input));
51
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
52
  };
53
53
  export const se_DeleteLoggingConfigurationCommand = async (input, context) => {
54
54
  const headers = sharedHeaders("DeleteLoggingConfiguration");
55
55
  let body;
56
- body = JSON.stringify(se_DeleteLoggingConfigurationRequest(input, context));
56
+ body = JSON.stringify(_json(input));
57
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
58
  };
59
59
  export const se_DeletePermissionPolicyCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("DeletePermissionPolicy");
61
61
  let body;
62
- body = JSON.stringify(se_DeletePermissionPolicyRequest(input, context));
62
+ body = JSON.stringify(_json(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  export const se_DeleteRegexPatternSetCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("DeleteRegexPatternSet");
67
67
  let body;
68
- body = JSON.stringify(se_DeleteRegexPatternSetRequest(input, context));
68
+ body = JSON.stringify(_json(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  export const se_DeleteRuleGroupCommand = async (input, context) => {
72
72
  const headers = sharedHeaders("DeleteRuleGroup");
73
73
  let body;
74
- body = JSON.stringify(se_DeleteRuleGroupRequest(input, context));
74
+ body = JSON.stringify(_json(input));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
77
  export const se_DeleteWebACLCommand = async (input, context) => {
78
78
  const headers = sharedHeaders("DeleteWebACL");
79
79
  let body;
80
- body = JSON.stringify(se_DeleteWebACLRequest(input, context));
80
+ body = JSON.stringify(_json(input));
81
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
82
82
  };
83
83
  export const se_DescribeManagedRuleGroupCommand = async (input, context) => {
84
84
  const headers = sharedHeaders("DescribeManagedRuleGroup");
85
85
  let body;
86
- body = JSON.stringify(se_DescribeManagedRuleGroupRequest(input, context));
86
+ body = JSON.stringify(_json(input));
87
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
88
  };
89
89
  export const se_DisassociateWebACLCommand = async (input, context) => {
90
90
  const headers = sharedHeaders("DisassociateWebACL");
91
91
  let body;
92
- body = JSON.stringify(se_DisassociateWebACLRequest(input, context));
92
+ body = JSON.stringify(_json(input));
93
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
94
  };
95
95
  export const se_GenerateMobileSdkReleaseUrlCommand = async (input, context) => {
96
96
  const headers = sharedHeaders("GenerateMobileSdkReleaseUrl");
97
97
  let body;
98
- body = JSON.stringify(se_GenerateMobileSdkReleaseUrlRequest(input, context));
98
+ body = JSON.stringify(_json(input));
99
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
100
  };
101
101
  export const se_GetIPSetCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("GetIPSet");
103
103
  let body;
104
- body = JSON.stringify(se_GetIPSetRequest(input, context));
104
+ body = JSON.stringify(_json(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  export const se_GetLoggingConfigurationCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("GetLoggingConfiguration");
109
109
  let body;
110
- body = JSON.stringify(se_GetLoggingConfigurationRequest(input, context));
110
+ body = JSON.stringify(_json(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  export const se_GetManagedRuleSetCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("GetManagedRuleSet");
115
115
  let body;
116
- body = JSON.stringify(se_GetManagedRuleSetRequest(input, context));
116
+ body = JSON.stringify(_json(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  export const se_GetMobileSdkReleaseCommand = async (input, context) => {
120
120
  const headers = sharedHeaders("GetMobileSdkRelease");
121
121
  let body;
122
- body = JSON.stringify(se_GetMobileSdkReleaseRequest(input, context));
122
+ body = JSON.stringify(_json(input));
123
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
124
124
  };
125
125
  export const se_GetPermissionPolicyCommand = async (input, context) => {
126
126
  const headers = sharedHeaders("GetPermissionPolicy");
127
127
  let body;
128
- body = JSON.stringify(se_GetPermissionPolicyRequest(input, context));
128
+ body = JSON.stringify(_json(input));
129
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
130
  };
131
131
  export const se_GetRateBasedStatementManagedKeysCommand = async (input, context) => {
132
132
  const headers = sharedHeaders("GetRateBasedStatementManagedKeys");
133
133
  let body;
134
- body = JSON.stringify(se_GetRateBasedStatementManagedKeysRequest(input, context));
134
+ body = JSON.stringify(_json(input));
135
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
136
  };
137
137
  export const se_GetRegexPatternSetCommand = async (input, context) => {
138
138
  const headers = sharedHeaders("GetRegexPatternSet");
139
139
  let body;
140
- body = JSON.stringify(se_GetRegexPatternSetRequest(input, context));
140
+ body = JSON.stringify(_json(input));
141
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
142
142
  };
143
143
  export const se_GetRuleGroupCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("GetRuleGroup");
145
145
  let body;
146
- body = JSON.stringify(se_GetRuleGroupRequest(input, context));
146
+ body = JSON.stringify(_json(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  export const se_GetSampledRequestsCommand = async (input, context) => {
@@ -155,115 +155,115 @@ export const se_GetSampledRequestsCommand = async (input, context) => {
155
155
  export const se_GetWebACLCommand = async (input, context) => {
156
156
  const headers = sharedHeaders("GetWebACL");
157
157
  let body;
158
- body = JSON.stringify(se_GetWebACLRequest(input, context));
158
+ body = JSON.stringify(_json(input));
159
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
160
160
  };
161
161
  export const se_GetWebACLForResourceCommand = async (input, context) => {
162
162
  const headers = sharedHeaders("GetWebACLForResource");
163
163
  let body;
164
- body = JSON.stringify(se_GetWebACLForResourceRequest(input, context));
164
+ body = JSON.stringify(_json(input));
165
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
166
  };
167
167
  export const se_ListAvailableManagedRuleGroupsCommand = async (input, context) => {
168
168
  const headers = sharedHeaders("ListAvailableManagedRuleGroups");
169
169
  let body;
170
- body = JSON.stringify(se_ListAvailableManagedRuleGroupsRequest(input, context));
170
+ body = JSON.stringify(_json(input));
171
171
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
172
172
  };
173
173
  export const se_ListAvailableManagedRuleGroupVersionsCommand = async (input, context) => {
174
174
  const headers = sharedHeaders("ListAvailableManagedRuleGroupVersions");
175
175
  let body;
176
- body = JSON.stringify(se_ListAvailableManagedRuleGroupVersionsRequest(input, context));
176
+ body = JSON.stringify(_json(input));
177
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
178
  };
179
179
  export const se_ListIPSetsCommand = async (input, context) => {
180
180
  const headers = sharedHeaders("ListIPSets");
181
181
  let body;
182
- body = JSON.stringify(se_ListIPSetsRequest(input, context));
182
+ body = JSON.stringify(_json(input));
183
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
184
  };
185
185
  export const se_ListLoggingConfigurationsCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("ListLoggingConfigurations");
187
187
  let body;
188
- body = JSON.stringify(se_ListLoggingConfigurationsRequest(input, context));
188
+ body = JSON.stringify(_json(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  export const se_ListManagedRuleSetsCommand = async (input, context) => {
192
192
  const headers = sharedHeaders("ListManagedRuleSets");
193
193
  let body;
194
- body = JSON.stringify(se_ListManagedRuleSetsRequest(input, context));
194
+ body = JSON.stringify(_json(input));
195
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
196
  };
197
197
  export const se_ListMobileSdkReleasesCommand = async (input, context) => {
198
198
  const headers = sharedHeaders("ListMobileSdkReleases");
199
199
  let body;
200
- body = JSON.stringify(se_ListMobileSdkReleasesRequest(input, context));
200
+ body = JSON.stringify(_json(input));
201
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
202
  };
203
203
  export const se_ListRegexPatternSetsCommand = async (input, context) => {
204
204
  const headers = sharedHeaders("ListRegexPatternSets");
205
205
  let body;
206
- body = JSON.stringify(se_ListRegexPatternSetsRequest(input, context));
206
+ body = JSON.stringify(_json(input));
207
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
208
  };
209
209
  export const se_ListResourcesForWebACLCommand = async (input, context) => {
210
210
  const headers = sharedHeaders("ListResourcesForWebACL");
211
211
  let body;
212
- body = JSON.stringify(se_ListResourcesForWebACLRequest(input, context));
212
+ body = JSON.stringify(_json(input));
213
213
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
214
214
  };
215
215
  export const se_ListRuleGroupsCommand = async (input, context) => {
216
216
  const headers = sharedHeaders("ListRuleGroups");
217
217
  let body;
218
- body = JSON.stringify(se_ListRuleGroupsRequest(input, context));
218
+ body = JSON.stringify(_json(input));
219
219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
220
  };
221
221
  export const se_ListTagsForResourceCommand = async (input, context) => {
222
222
  const headers = sharedHeaders("ListTagsForResource");
223
223
  let body;
224
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
224
+ body = JSON.stringify(_json(input));
225
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
226
226
  };
227
227
  export const se_ListWebACLsCommand = async (input, context) => {
228
228
  const headers = sharedHeaders("ListWebACLs");
229
229
  let body;
230
- body = JSON.stringify(se_ListWebACLsRequest(input, context));
230
+ body = JSON.stringify(_json(input));
231
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
232
  };
233
233
  export const se_PutLoggingConfigurationCommand = async (input, context) => {
234
234
  const headers = sharedHeaders("PutLoggingConfiguration");
235
235
  let body;
236
- body = JSON.stringify(se_PutLoggingConfigurationRequest(input, context));
236
+ body = JSON.stringify(_json(input));
237
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
238
  };
239
239
  export const se_PutManagedRuleSetVersionsCommand = async (input, context) => {
240
240
  const headers = sharedHeaders("PutManagedRuleSetVersions");
241
241
  let body;
242
- body = JSON.stringify(se_PutManagedRuleSetVersionsRequest(input, context));
242
+ body = JSON.stringify(_json(input));
243
243
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
244
244
  };
245
245
  export const se_PutPermissionPolicyCommand = async (input, context) => {
246
246
  const headers = sharedHeaders("PutPermissionPolicy");
247
247
  let body;
248
- body = JSON.stringify(se_PutPermissionPolicyRequest(input, context));
248
+ body = JSON.stringify(_json(input));
249
249
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
250
250
  };
251
251
  export const se_TagResourceCommand = async (input, context) => {
252
252
  const headers = sharedHeaders("TagResource");
253
253
  let body;
254
- body = JSON.stringify(se_TagResourceRequest(input, context));
254
+ body = JSON.stringify(_json(input));
255
255
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
256
  };
257
257
  export const se_UntagResourceCommand = async (input, context) => {
258
258
  const headers = sharedHeaders("UntagResource");
259
259
  let body;
260
- body = JSON.stringify(se_UntagResourceRequest(input, context));
260
+ body = JSON.stringify(_json(input));
261
261
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
262
262
  };
263
263
  export const se_UpdateIPSetCommand = async (input, context) => {
264
264
  const headers = sharedHeaders("UpdateIPSet");
265
265
  let body;
266
- body = JSON.stringify(se_UpdateIPSetRequest(input, context));
266
+ body = JSON.stringify(_json(input));
267
267
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
268
  };
269
269
  export const se_UpdateManagedRuleSetVersionExpiryDateCommand = async (input, context) => {
@@ -275,7 +275,7 @@ export const se_UpdateManagedRuleSetVersionExpiryDateCommand = async (input, con
275
275
  export const se_UpdateRegexPatternSetCommand = async (input, context) => {
276
276
  const headers = sharedHeaders("UpdateRegexPatternSet");
277
277
  let body;
278
- body = JSON.stringify(se_UpdateRegexPatternSetRequest(input, context));
278
+ body = JSON.stringify(_json(input));
279
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
280
  };
281
281
  export const se_UpdateRuleGroupCommand = async (input, context) => {
@@ -296,12 +296,12 @@ export const de_AssociateWebACLCommand = async (output, context) => {
296
296
  }
297
297
  const data = await parseBody(output.body, context);
298
298
  let contents = {};
299
- contents = de_AssociateWebACLResponse(data, context);
299
+ contents = _json(data);
300
300
  const response = {
301
301
  $metadata: deserializeMetadata(output),
302
302
  ...contents,
303
303
  };
304
- return Promise.resolve(response);
304
+ return response;
305
305
  };
306
306
  const de_AssociateWebACLCommandError = async (output, context) => {
307
307
  const parsedOutput = {
@@ -327,10 +327,9 @@ const de_AssociateWebACLCommandError = async (output, context) => {
327
327
  throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
328
328
  default:
329
329
  const parsedBody = parsedOutput.body;
330
- throwDefaultError({
330
+ return throwDefaultError({
331
331
  output,
332
332
  parsedBody,
333
- exceptionCtor: __BaseException,
334
333
  errorCode,
335
334
  });
336
335
  }
@@ -341,12 +340,12 @@ export const de_CheckCapacityCommand = async (output, context) => {
341
340
  }
342
341
  const data = await parseBody(output.body, context);
343
342
  let contents = {};
344
- contents = de_CheckCapacityResponse(data, context);
343
+ contents = _json(data);
345
344
  const response = {
346
345
  $metadata: deserializeMetadata(output),
347
346
  ...contents,
348
347
  };
349
- return Promise.resolve(response);
348
+ return response;
350
349
  };
351
350
  const de_CheckCapacityCommandError = async (output, context) => {
352
351
  const parsedOutput = {
@@ -384,10 +383,9 @@ const de_CheckCapacityCommandError = async (output, context) => {
384
383
  throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
385
384
  default:
386
385
  const parsedBody = parsedOutput.body;
387
- throwDefaultError({
386
+ return throwDefaultError({
388
387
  output,
389
388
  parsedBody,
390
- exceptionCtor: __BaseException,
391
389
  errorCode,
392
390
  });
393
391
  }
@@ -398,12 +396,12 @@ export const de_CreateIPSetCommand = async (output, context) => {
398
396
  }
399
397
  const data = await parseBody(output.body, context);
400
398
  let contents = {};
401
- contents = de_CreateIPSetResponse(data, context);
399
+ contents = _json(data);
402
400
  const response = {
403
401
  $metadata: deserializeMetadata(output),
404
402
  ...contents,
405
403
  };
406
- return Promise.resolve(response);
404
+ return response;
407
405
  };
408
406
  const de_CreateIPSetCommandError = async (output, context) => {
409
407
  const parsedOutput = {
@@ -438,10 +436,9 @@ const de_CreateIPSetCommandError = async (output, context) => {
438
436
  throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
439
437
  default:
440
438
  const parsedBody = parsedOutput.body;
441
- throwDefaultError({
439
+ return throwDefaultError({
442
440
  output,
443
441
  parsedBody,
444
- exceptionCtor: __BaseException,
445
442
  errorCode,
446
443
  });
447
444
  }
@@ -452,12 +449,12 @@ export const de_CreateRegexPatternSetCommand = async (output, context) => {
452
449
  }
453
450
  const data = await parseBody(output.body, context);
454
451
  let contents = {};
455
- contents = de_CreateRegexPatternSetResponse(data, context);
452
+ contents = _json(data);
456
453
  const response = {
457
454
  $metadata: deserializeMetadata(output),
458
455
  ...contents,
459
456
  };
460
- return Promise.resolve(response);
457
+ return response;
461
458
  };
462
459
  const de_CreateRegexPatternSetCommandError = async (output, context) => {
463
460
  const parsedOutput = {
@@ -492,10 +489,9 @@ const de_CreateRegexPatternSetCommandError = async (output, context) => {
492
489
  throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
493
490
  default:
494
491
  const parsedBody = parsedOutput.body;
495
- throwDefaultError({
492
+ return throwDefaultError({
496
493
  output,
497
494
  parsedBody,
498
- exceptionCtor: __BaseException,
499
495
  errorCode,
500
496
  });
501
497
  }
@@ -506,12 +502,12 @@ export const de_CreateRuleGroupCommand = async (output, context) => {
506
502
  }
507
503
  const data = await parseBody(output.body, context);
508
504
  let contents = {};
509
- contents = de_CreateRuleGroupResponse(data, context);
505
+ contents = _json(data);
510
506
  const response = {
511
507
  $metadata: deserializeMetadata(output),
512
508
  ...contents,
513
509
  };
514
- return Promise.resolve(response);
510
+ return response;
515
511
  };
516
512
  const de_CreateRuleGroupCommandError = async (output, context) => {
517
513
  const parsedOutput = {
@@ -555,10 +551,9 @@ const de_CreateRuleGroupCommandError = async (output, context) => {
555
551
  throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
556
552
  default:
557
553
  const parsedBody = parsedOutput.body;
558
- throwDefaultError({
554
+ return throwDefaultError({
559
555
  output,
560
556
  parsedBody,
561
- exceptionCtor: __BaseException,
562
557
  errorCode,
563
558
  });
564
559
  }
@@ -569,12 +564,12 @@ export const de_CreateWebACLCommand = async (output, context) => {
569
564
  }
570
565
  const data = await parseBody(output.body, context);
571
566
  let contents = {};
572
- contents = de_CreateWebACLResponse(data, context);
567
+ contents = _json(data);
573
568
  const response = {
574
569
  $metadata: deserializeMetadata(output),
575
570
  ...contents,
576
571
  };
577
- return Promise.resolve(response);
572
+ return response;
578
573
  };
579
574
  const de_CreateWebACLCommandError = async (output, context) => {
580
575
  const parsedOutput = {
@@ -627,10 +622,9 @@ const de_CreateWebACLCommandError = async (output, context) => {
627
622
  throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
628
623
  default:
629
624
  const parsedBody = parsedOutput.body;
630
- throwDefaultError({
625
+ return throwDefaultError({
631
626
  output,
632
627
  parsedBody,
633
- exceptionCtor: __BaseException,
634
628
  errorCode,
635
629
  });
636
630
  }
@@ -641,12 +635,12 @@ export const de_DeleteFirewallManagerRuleGroupsCommand = async (output, context)
641
635
  }
642
636
  const data = await parseBody(output.body, context);
643
637
  let contents = {};
644
- contents = de_DeleteFirewallManagerRuleGroupsResponse(data, context);
638
+ contents = _json(data);
645
639
  const response = {
646
640
  $metadata: deserializeMetadata(output),
647
641
  ...contents,
648
642
  };
649
- return Promise.resolve(response);
643
+ return response;
650
644
  };
651
645
  const de_DeleteFirewallManagerRuleGroupsCommandError = async (output, context) => {
652
646
  const parsedOutput = {
@@ -672,10 +666,9 @@ const de_DeleteFirewallManagerRuleGroupsCommandError = async (output, context) =
672
666
  throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
673
667
  default:
674
668
  const parsedBody = parsedOutput.body;
675
- throwDefaultError({
669
+ return throwDefaultError({
676
670
  output,
677
671
  parsedBody,
678
- exceptionCtor: __BaseException,
679
672
  errorCode,
680
673
  });
681
674
  }
@@ -686,12 +679,12 @@ export const de_DeleteIPSetCommand = async (output, context) => {
686
679
  }
687
680
  const data = await parseBody(output.body, context);
688
681
  let contents = {};
689
- contents = de_DeleteIPSetResponse(data, context);
682
+ contents = _json(data);
690
683
  const response = {
691
684
  $metadata: deserializeMetadata(output),
692
685
  ...contents,
693
686
  };
694
- return Promise.resolve(response);
687
+ return response;
695
688
  };
696
689
  const de_DeleteIPSetCommandError = async (output, context) => {
697
690
  const parsedOutput = {
@@ -726,10 +719,9 @@ const de_DeleteIPSetCommandError = async (output, context) => {
726
719
  throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
727
720
  default:
728
721
  const parsedBody = parsedOutput.body;
729
- throwDefaultError({
722
+ return throwDefaultError({
730
723
  output,
731
724
  parsedBody,
732
- exceptionCtor: __BaseException,
733
725
  errorCode,
734
726
  });
735
727
  }
@@ -740,12 +732,12 @@ export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
740
732
  }
741
733
  const data = await parseBody(output.body, context);
742
734
  let contents = {};
743
- contents = de_DeleteLoggingConfigurationResponse(data, context);
735
+ contents = _json(data);
744
736
  const response = {
745
737
  $metadata: deserializeMetadata(output),
746
738
  ...contents,
747
739
  };
748
- return Promise.resolve(response);
740
+ return response;
749
741
  };
750
742
  const de_DeleteLoggingConfigurationCommandError = async (output, context) => {
751
743
  const parsedOutput = {
@@ -771,10 +763,9 @@ const de_DeleteLoggingConfigurationCommandError = async (output, context) => {
771
763
  throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
772
764
  default:
773
765
  const parsedBody = parsedOutput.body;
774
- throwDefaultError({
766
+ return throwDefaultError({
775
767
  output,
776
768
  parsedBody,
777
- exceptionCtor: __BaseException,
778
769
  errorCode,
779
770
  });
780
771
  }
@@ -785,12 +776,12 @@ export const de_DeletePermissionPolicyCommand = async (output, context) => {
785
776
  }
786
777
  const data = await parseBody(output.body, context);
787
778
  let contents = {};
788
- contents = de_DeletePermissionPolicyResponse(data, context);
779
+ contents = _json(data);
789
780
  const response = {
790
781
  $metadata: deserializeMetadata(output),
791
782
  ...contents,
792
783
  };
793
- return Promise.resolve(response);
784
+ return response;
794
785
  };
795
786
  const de_DeletePermissionPolicyCommandError = async (output, context) => {
796
787
  const parsedOutput = {
@@ -810,10 +801,9 @@ const de_DeletePermissionPolicyCommandError = async (output, context) => {
810
801
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
811
802
  default:
812
803
  const parsedBody = parsedOutput.body;
813
- throwDefaultError({
804
+ return throwDefaultError({
814
805
  output,
815
806
  parsedBody,
816
- exceptionCtor: __BaseException,
817
807
  errorCode,
818
808
  });
819
809
  }
@@ -824,12 +814,12 @@ export const de_DeleteRegexPatternSetCommand = async (output, context) => {
824
814
  }
825
815
  const data = await parseBody(output.body, context);
826
816
  let contents = {};
827
- contents = de_DeleteRegexPatternSetResponse(data, context);
817
+ contents = _json(data);
828
818
  const response = {
829
819
  $metadata: deserializeMetadata(output),
830
820
  ...contents,
831
821
  };
832
- return Promise.resolve(response);
822
+ return response;
833
823
  };
834
824
  const de_DeleteRegexPatternSetCommandError = async (output, context) => {
835
825
  const parsedOutput = {
@@ -864,10 +854,9 @@ const de_DeleteRegexPatternSetCommandError = async (output, context) => {
864
854
  throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
865
855
  default:
866
856
  const parsedBody = parsedOutput.body;
867
- throwDefaultError({
857
+ return throwDefaultError({
868
858
  output,
869
859
  parsedBody,
870
- exceptionCtor: __BaseException,
871
860
  errorCode,
872
861
  });
873
862
  }
@@ -878,12 +867,12 @@ export const de_DeleteRuleGroupCommand = async (output, context) => {
878
867
  }
879
868
  const data = await parseBody(output.body, context);
880
869
  let contents = {};
881
- contents = de_DeleteRuleGroupResponse(data, context);
870
+ contents = _json(data);
882
871
  const response = {
883
872
  $metadata: deserializeMetadata(output),
884
873
  ...contents,
885
874
  };
886
- return Promise.resolve(response);
875
+ return response;
887
876
  };
888
877
  const de_DeleteRuleGroupCommandError = async (output, context) => {
889
878
  const parsedOutput = {
@@ -918,10 +907,9 @@ const de_DeleteRuleGroupCommandError = async (output, context) => {
918
907
  throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
919
908
  default:
920
909
  const parsedBody = parsedOutput.body;
921
- throwDefaultError({
910
+ return throwDefaultError({
922
911
  output,
923
912
  parsedBody,
924
- exceptionCtor: __BaseException,
925
913
  errorCode,
926
914
  });
927
915
  }
@@ -932,12 +920,12 @@ export const de_DeleteWebACLCommand = async (output, context) => {
932
920
  }
933
921
  const data = await parseBody(output.body, context);
934
922
  let contents = {};
935
- contents = de_DeleteWebACLResponse(data, context);
923
+ contents = _json(data);
936
924
  const response = {
937
925
  $metadata: deserializeMetadata(output),
938
926
  ...contents,
939
927
  };
940
- return Promise.resolve(response);
928
+ return response;
941
929
  };
942
930
  const de_DeleteWebACLCommandError = async (output, context) => {
943
931
  const parsedOutput = {
@@ -972,10 +960,9 @@ const de_DeleteWebACLCommandError = async (output, context) => {
972
960
  throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
973
961
  default:
974
962
  const parsedBody = parsedOutput.body;
975
- throwDefaultError({
963
+ return throwDefaultError({
976
964
  output,
977
965
  parsedBody,
978
- exceptionCtor: __BaseException,
979
966
  errorCode,
980
967
  });
981
968
  }
@@ -986,12 +973,12 @@ export const de_DescribeManagedRuleGroupCommand = async (output, context) => {
986
973
  }
987
974
  const data = await parseBody(output.body, context);
988
975
  let contents = {};
989
- contents = de_DescribeManagedRuleGroupResponse(data, context);
976
+ contents = _json(data);
990
977
  const response = {
991
978
  $metadata: deserializeMetadata(output),
992
979
  ...contents,
993
980
  };
994
- return Promise.resolve(response);
981
+ return response;
995
982
  };
996
983
  const de_DescribeManagedRuleGroupCommandError = async (output, context) => {
997
984
  const parsedOutput = {
@@ -1020,10 +1007,9 @@ const de_DescribeManagedRuleGroupCommandError = async (output, context) => {
1020
1007
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1021
1008
  default:
1022
1009
  const parsedBody = parsedOutput.body;
1023
- throwDefaultError({
1010
+ return throwDefaultError({
1024
1011
  output,
1025
1012
  parsedBody,
1026
- exceptionCtor: __BaseException,
1027
1013
  errorCode,
1028
1014
  });
1029
1015
  }
@@ -1034,12 +1020,12 @@ export const de_DisassociateWebACLCommand = async (output, context) => {
1034
1020
  }
1035
1021
  const data = await parseBody(output.body, context);
1036
1022
  let contents = {};
1037
- contents = de_DisassociateWebACLResponse(data, context);
1023
+ contents = _json(data);
1038
1024
  const response = {
1039
1025
  $metadata: deserializeMetadata(output),
1040
1026
  ...contents,
1041
1027
  };
1042
- return Promise.resolve(response);
1028
+ return response;
1043
1029
  };
1044
1030
  const de_DisassociateWebACLCommandError = async (output, context) => {
1045
1031
  const parsedOutput = {
@@ -1062,10 +1048,9 @@ const de_DisassociateWebACLCommandError = async (output, context) => {
1062
1048
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1063
1049
  default:
1064
1050
  const parsedBody = parsedOutput.body;
1065
- throwDefaultError({
1051
+ return throwDefaultError({
1066
1052
  output,
1067
1053
  parsedBody,
1068
- exceptionCtor: __BaseException,
1069
1054
  errorCode,
1070
1055
  });
1071
1056
  }
@@ -1076,12 +1061,12 @@ export const de_GenerateMobileSdkReleaseUrlCommand = async (output, context) =>
1076
1061
  }
1077
1062
  const data = await parseBody(output.body, context);
1078
1063
  let contents = {};
1079
- contents = de_GenerateMobileSdkReleaseUrlResponse(data, context);
1064
+ contents = _json(data);
1080
1065
  const response = {
1081
1066
  $metadata: deserializeMetadata(output),
1082
1067
  ...contents,
1083
1068
  };
1084
- return Promise.resolve(response);
1069
+ return response;
1085
1070
  };
1086
1071
  const de_GenerateMobileSdkReleaseUrlCommandError = async (output, context) => {
1087
1072
  const parsedOutput = {
@@ -1104,10 +1089,9 @@ const de_GenerateMobileSdkReleaseUrlCommandError = async (output, context) => {
1104
1089
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1105
1090
  default:
1106
1091
  const parsedBody = parsedOutput.body;
1107
- throwDefaultError({
1092
+ return throwDefaultError({
1108
1093
  output,
1109
1094
  parsedBody,
1110
- exceptionCtor: __BaseException,
1111
1095
  errorCode,
1112
1096
  });
1113
1097
  }
@@ -1118,12 +1102,12 @@ export const de_GetIPSetCommand = async (output, context) => {
1118
1102
  }
1119
1103
  const data = await parseBody(output.body, context);
1120
1104
  let contents = {};
1121
- contents = de_GetIPSetResponse(data, context);
1105
+ contents = _json(data);
1122
1106
  const response = {
1123
1107
  $metadata: deserializeMetadata(output),
1124
1108
  ...contents,
1125
1109
  };
1126
- return Promise.resolve(response);
1110
+ return response;
1127
1111
  };
1128
1112
  const de_GetIPSetCommandError = async (output, context) => {
1129
1113
  const parsedOutput = {
@@ -1146,10 +1130,9 @@ const de_GetIPSetCommandError = async (output, context) => {
1146
1130
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1147
1131
  default:
1148
1132
  const parsedBody = parsedOutput.body;
1149
- throwDefaultError({
1133
+ return throwDefaultError({
1150
1134
  output,
1151
1135
  parsedBody,
1152
- exceptionCtor: __BaseException,
1153
1136
  errorCode,
1154
1137
  });
1155
1138
  }
@@ -1160,12 +1143,12 @@ export const de_GetLoggingConfigurationCommand = async (output, context) => {
1160
1143
  }
1161
1144
  const data = await parseBody(output.body, context);
1162
1145
  let contents = {};
1163
- contents = de_GetLoggingConfigurationResponse(data, context);
1146
+ contents = _json(data);
1164
1147
  const response = {
1165
1148
  $metadata: deserializeMetadata(output),
1166
1149
  ...contents,
1167
1150
  };
1168
- return Promise.resolve(response);
1151
+ return response;
1169
1152
  };
1170
1153
  const de_GetLoggingConfigurationCommandError = async (output, context) => {
1171
1154
  const parsedOutput = {
@@ -1188,10 +1171,9 @@ const de_GetLoggingConfigurationCommandError = async (output, context) => {
1188
1171
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1189
1172
  default:
1190
1173
  const parsedBody = parsedOutput.body;
1191
- throwDefaultError({
1174
+ return throwDefaultError({
1192
1175
  output,
1193
1176
  parsedBody,
1194
- exceptionCtor: __BaseException,
1195
1177
  errorCode,
1196
1178
  });
1197
1179
  }
@@ -1207,7 +1189,7 @@ export const de_GetManagedRuleSetCommand = async (output, context) => {
1207
1189
  $metadata: deserializeMetadata(output),
1208
1190
  ...contents,
1209
1191
  };
1210
- return Promise.resolve(response);
1192
+ return response;
1211
1193
  };
1212
1194
  const de_GetManagedRuleSetCommandError = async (output, context) => {
1213
1195
  const parsedOutput = {
@@ -1230,10 +1212,9 @@ const de_GetManagedRuleSetCommandError = async (output, context) => {
1230
1212
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1231
1213
  default:
1232
1214
  const parsedBody = parsedOutput.body;
1233
- throwDefaultError({
1215
+ return throwDefaultError({
1234
1216
  output,
1235
1217
  parsedBody,
1236
- exceptionCtor: __BaseException,
1237
1218
  errorCode,
1238
1219
  });
1239
1220
  }
@@ -1249,7 +1230,7 @@ export const de_GetMobileSdkReleaseCommand = async (output, context) => {
1249
1230
  $metadata: deserializeMetadata(output),
1250
1231
  ...contents,
1251
1232
  };
1252
- return Promise.resolve(response);
1233
+ return response;
1253
1234
  };
1254
1235
  const de_GetMobileSdkReleaseCommandError = async (output, context) => {
1255
1236
  const parsedOutput = {
@@ -1272,10 +1253,9 @@ const de_GetMobileSdkReleaseCommandError = async (output, context) => {
1272
1253
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1273
1254
  default:
1274
1255
  const parsedBody = parsedOutput.body;
1275
- throwDefaultError({
1256
+ return throwDefaultError({
1276
1257
  output,
1277
1258
  parsedBody,
1278
- exceptionCtor: __BaseException,
1279
1259
  errorCode,
1280
1260
  });
1281
1261
  }
@@ -1286,12 +1266,12 @@ export const de_GetPermissionPolicyCommand = async (output, context) => {
1286
1266
  }
1287
1267
  const data = await parseBody(output.body, context);
1288
1268
  let contents = {};
1289
- contents = de_GetPermissionPolicyResponse(data, context);
1269
+ contents = _json(data);
1290
1270
  const response = {
1291
1271
  $metadata: deserializeMetadata(output),
1292
1272
  ...contents,
1293
1273
  };
1294
- return Promise.resolve(response);
1274
+ return response;
1295
1275
  };
1296
1276
  const de_GetPermissionPolicyCommandError = async (output, context) => {
1297
1277
  const parsedOutput = {
@@ -1311,10 +1291,9 @@ const de_GetPermissionPolicyCommandError = async (output, context) => {
1311
1291
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1312
1292
  default:
1313
1293
  const parsedBody = parsedOutput.body;
1314
- throwDefaultError({
1294
+ return throwDefaultError({
1315
1295
  output,
1316
1296
  parsedBody,
1317
- exceptionCtor: __BaseException,
1318
1297
  errorCode,
1319
1298
  });
1320
1299
  }
@@ -1325,12 +1304,12 @@ export const de_GetRateBasedStatementManagedKeysCommand = async (output, context
1325
1304
  }
1326
1305
  const data = await parseBody(output.body, context);
1327
1306
  let contents = {};
1328
- contents = de_GetRateBasedStatementManagedKeysResponse(data, context);
1307
+ contents = _json(data);
1329
1308
  const response = {
1330
1309
  $metadata: deserializeMetadata(output),
1331
1310
  ...contents,
1332
1311
  };
1333
- return Promise.resolve(response);
1312
+ return response;
1334
1313
  };
1335
1314
  const de_GetRateBasedStatementManagedKeysCommandError = async (output, context) => {
1336
1315
  const parsedOutput = {
@@ -1353,10 +1332,9 @@ const de_GetRateBasedStatementManagedKeysCommandError = async (output, context)
1353
1332
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1354
1333
  default:
1355
1334
  const parsedBody = parsedOutput.body;
1356
- throwDefaultError({
1335
+ return throwDefaultError({
1357
1336
  output,
1358
1337
  parsedBody,
1359
- exceptionCtor: __BaseException,
1360
1338
  errorCode,
1361
1339
  });
1362
1340
  }
@@ -1367,12 +1345,12 @@ export const de_GetRegexPatternSetCommand = async (output, context) => {
1367
1345
  }
1368
1346
  const data = await parseBody(output.body, context);
1369
1347
  let contents = {};
1370
- contents = de_GetRegexPatternSetResponse(data, context);
1348
+ contents = _json(data);
1371
1349
  const response = {
1372
1350
  $metadata: deserializeMetadata(output),
1373
1351
  ...contents,
1374
1352
  };
1375
- return Promise.resolve(response);
1353
+ return response;
1376
1354
  };
1377
1355
  const de_GetRegexPatternSetCommandError = async (output, context) => {
1378
1356
  const parsedOutput = {
@@ -1395,10 +1373,9 @@ const de_GetRegexPatternSetCommandError = async (output, context) => {
1395
1373
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1396
1374
  default:
1397
1375
  const parsedBody = parsedOutput.body;
1398
- throwDefaultError({
1376
+ return throwDefaultError({
1399
1377
  output,
1400
1378
  parsedBody,
1401
- exceptionCtor: __BaseException,
1402
1379
  errorCode,
1403
1380
  });
1404
1381
  }
@@ -1414,7 +1391,7 @@ export const de_GetRuleGroupCommand = async (output, context) => {
1414
1391
  $metadata: deserializeMetadata(output),
1415
1392
  ...contents,
1416
1393
  };
1417
- return Promise.resolve(response);
1394
+ return response;
1418
1395
  };
1419
1396
  const de_GetRuleGroupCommandError = async (output, context) => {
1420
1397
  const parsedOutput = {
@@ -1437,10 +1414,9 @@ const de_GetRuleGroupCommandError = async (output, context) => {
1437
1414
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1438
1415
  default:
1439
1416
  const parsedBody = parsedOutput.body;
1440
- throwDefaultError({
1417
+ return throwDefaultError({
1441
1418
  output,
1442
1419
  parsedBody,
1443
- exceptionCtor: __BaseException,
1444
1420
  errorCode,
1445
1421
  });
1446
1422
  }
@@ -1456,7 +1432,7 @@ export const de_GetSampledRequestsCommand = async (output, context) => {
1456
1432
  $metadata: deserializeMetadata(output),
1457
1433
  ...contents,
1458
1434
  };
1459
- return Promise.resolve(response);
1435
+ return response;
1460
1436
  };
1461
1437
  const de_GetSampledRequestsCommandError = async (output, context) => {
1462
1438
  const parsedOutput = {
@@ -1476,10 +1452,9 @@ const de_GetSampledRequestsCommandError = async (output, context) => {
1476
1452
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1477
1453
  default:
1478
1454
  const parsedBody = parsedOutput.body;
1479
- throwDefaultError({
1455
+ return throwDefaultError({
1480
1456
  output,
1481
1457
  parsedBody,
1482
- exceptionCtor: __BaseException,
1483
1458
  errorCode,
1484
1459
  });
1485
1460
  }
@@ -1495,7 +1470,7 @@ export const de_GetWebACLCommand = async (output, context) => {
1495
1470
  $metadata: deserializeMetadata(output),
1496
1471
  ...contents,
1497
1472
  };
1498
- return Promise.resolve(response);
1473
+ return response;
1499
1474
  };
1500
1475
  const de_GetWebACLCommandError = async (output, context) => {
1501
1476
  const parsedOutput = {
@@ -1518,10 +1493,9 @@ const de_GetWebACLCommandError = async (output, context) => {
1518
1493
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1519
1494
  default:
1520
1495
  const parsedBody = parsedOutput.body;
1521
- throwDefaultError({
1496
+ return throwDefaultError({
1522
1497
  output,
1523
1498
  parsedBody,
1524
- exceptionCtor: __BaseException,
1525
1499
  errorCode,
1526
1500
  });
1527
1501
  }
@@ -1537,7 +1511,7 @@ export const de_GetWebACLForResourceCommand = async (output, context) => {
1537
1511
  $metadata: deserializeMetadata(output),
1538
1512
  ...contents,
1539
1513
  };
1540
- return Promise.resolve(response);
1514
+ return response;
1541
1515
  };
1542
1516
  const de_GetWebACLForResourceCommandError = async (output, context) => {
1543
1517
  const parsedOutput = {
@@ -1563,10 +1537,9 @@ const de_GetWebACLForResourceCommandError = async (output, context) => {
1563
1537
  throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
1564
1538
  default:
1565
1539
  const parsedBody = parsedOutput.body;
1566
- throwDefaultError({
1540
+ return throwDefaultError({
1567
1541
  output,
1568
1542
  parsedBody,
1569
- exceptionCtor: __BaseException,
1570
1543
  errorCode,
1571
1544
  });
1572
1545
  }
@@ -1577,12 +1550,12 @@ export const de_ListAvailableManagedRuleGroupsCommand = async (output, context)
1577
1550
  }
1578
1551
  const data = await parseBody(output.body, context);
1579
1552
  let contents = {};
1580
- contents = de_ListAvailableManagedRuleGroupsResponse(data, context);
1553
+ contents = _json(data);
1581
1554
  const response = {
1582
1555
  $metadata: deserializeMetadata(output),
1583
1556
  ...contents,
1584
1557
  };
1585
- return Promise.resolve(response);
1558
+ return response;
1586
1559
  };
1587
1560
  const de_ListAvailableManagedRuleGroupsCommandError = async (output, context) => {
1588
1561
  const parsedOutput = {
@@ -1602,10 +1575,9 @@ const de_ListAvailableManagedRuleGroupsCommandError = async (output, context) =>
1602
1575
  throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1603
1576
  default:
1604
1577
  const parsedBody = parsedOutput.body;
1605
- throwDefaultError({
1578
+ return throwDefaultError({
1606
1579
  output,
1607
1580
  parsedBody,
1608
- exceptionCtor: __BaseException,
1609
1581
  errorCode,
1610
1582
  });
1611
1583
  }
@@ -1621,7 +1593,7 @@ export const de_ListAvailableManagedRuleGroupVersionsCommand = async (output, co
1621
1593
  $metadata: deserializeMetadata(output),
1622
1594
  ...contents,
1623
1595
  };
1624
- return Promise.resolve(response);
1596
+ return response;
1625
1597
  };
1626
1598
  const de_ListAvailableManagedRuleGroupVersionsCommandError = async (output, context) => {
1627
1599
  const parsedOutput = {
@@ -1644,10 +1616,9 @@ const de_ListAvailableManagedRuleGroupVersionsCommandError = async (output, cont
1644
1616
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1645
1617
  default:
1646
1618
  const parsedBody = parsedOutput.body;
1647
- throwDefaultError({
1619
+ return throwDefaultError({
1648
1620
  output,
1649
1621
  parsedBody,
1650
- exceptionCtor: __BaseException,
1651
1622
  errorCode,
1652
1623
  });
1653
1624
  }
@@ -1658,12 +1629,12 @@ export const de_ListIPSetsCommand = async (output, context) => {
1658
1629
  }
1659
1630
  const data = await parseBody(output.body, context);
1660
1631
  let contents = {};
1661
- contents = de_ListIPSetsResponse(data, context);
1632
+ contents = _json(data);
1662
1633
  const response = {
1663
1634
  $metadata: deserializeMetadata(output),
1664
1635
  ...contents,
1665
1636
  };
1666
- return Promise.resolve(response);
1637
+ return response;
1667
1638
  };
1668
1639
  const de_ListIPSetsCommandError = async (output, context) => {
1669
1640
  const parsedOutput = {
@@ -1683,10 +1654,9 @@ const de_ListIPSetsCommandError = async (output, context) => {
1683
1654
  throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1684
1655
  default:
1685
1656
  const parsedBody = parsedOutput.body;
1686
- throwDefaultError({
1657
+ return throwDefaultError({
1687
1658
  output,
1688
1659
  parsedBody,
1689
- exceptionCtor: __BaseException,
1690
1660
  errorCode,
1691
1661
  });
1692
1662
  }
@@ -1697,12 +1667,12 @@ export const de_ListLoggingConfigurationsCommand = async (output, context) => {
1697
1667
  }
1698
1668
  const data = await parseBody(output.body, context);
1699
1669
  let contents = {};
1700
- contents = de_ListLoggingConfigurationsResponse(data, context);
1670
+ contents = _json(data);
1701
1671
  const response = {
1702
1672
  $metadata: deserializeMetadata(output),
1703
1673
  ...contents,
1704
1674
  };
1705
- return Promise.resolve(response);
1675
+ return response;
1706
1676
  };
1707
1677
  const de_ListLoggingConfigurationsCommandError = async (output, context) => {
1708
1678
  const parsedOutput = {
@@ -1722,10 +1692,9 @@ const de_ListLoggingConfigurationsCommandError = async (output, context) => {
1722
1692
  throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1723
1693
  default:
1724
1694
  const parsedBody = parsedOutput.body;
1725
- throwDefaultError({
1695
+ return throwDefaultError({
1726
1696
  output,
1727
1697
  parsedBody,
1728
- exceptionCtor: __BaseException,
1729
1698
  errorCode,
1730
1699
  });
1731
1700
  }
@@ -1736,12 +1705,12 @@ export const de_ListManagedRuleSetsCommand = async (output, context) => {
1736
1705
  }
1737
1706
  const data = await parseBody(output.body, context);
1738
1707
  let contents = {};
1739
- contents = de_ListManagedRuleSetsResponse(data, context);
1708
+ contents = _json(data);
1740
1709
  const response = {
1741
1710
  $metadata: deserializeMetadata(output),
1742
1711
  ...contents,
1743
1712
  };
1744
- return Promise.resolve(response);
1713
+ return response;
1745
1714
  };
1746
1715
  const de_ListManagedRuleSetsCommandError = async (output, context) => {
1747
1716
  const parsedOutput = {
@@ -1761,10 +1730,9 @@ const de_ListManagedRuleSetsCommandError = async (output, context) => {
1761
1730
  throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1762
1731
  default:
1763
1732
  const parsedBody = parsedOutput.body;
1764
- throwDefaultError({
1733
+ return throwDefaultError({
1765
1734
  output,
1766
1735
  parsedBody,
1767
- exceptionCtor: __BaseException,
1768
1736
  errorCode,
1769
1737
  });
1770
1738
  }
@@ -1780,7 +1748,7 @@ export const de_ListMobileSdkReleasesCommand = async (output, context) => {
1780
1748
  $metadata: deserializeMetadata(output),
1781
1749
  ...contents,
1782
1750
  };
1783
- return Promise.resolve(response);
1751
+ return response;
1784
1752
  };
1785
1753
  const de_ListMobileSdkReleasesCommandError = async (output, context) => {
1786
1754
  const parsedOutput = {
@@ -1800,10 +1768,9 @@ const de_ListMobileSdkReleasesCommandError = async (output, context) => {
1800
1768
  throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1801
1769
  default:
1802
1770
  const parsedBody = parsedOutput.body;
1803
- throwDefaultError({
1771
+ return throwDefaultError({
1804
1772
  output,
1805
1773
  parsedBody,
1806
- exceptionCtor: __BaseException,
1807
1774
  errorCode,
1808
1775
  });
1809
1776
  }
@@ -1814,12 +1781,12 @@ export const de_ListRegexPatternSetsCommand = async (output, context) => {
1814
1781
  }
1815
1782
  const data = await parseBody(output.body, context);
1816
1783
  let contents = {};
1817
- contents = de_ListRegexPatternSetsResponse(data, context);
1784
+ contents = _json(data);
1818
1785
  const response = {
1819
1786
  $metadata: deserializeMetadata(output),
1820
1787
  ...contents,
1821
1788
  };
1822
- return Promise.resolve(response);
1789
+ return response;
1823
1790
  };
1824
1791
  const de_ListRegexPatternSetsCommandError = async (output, context) => {
1825
1792
  const parsedOutput = {
@@ -1839,10 +1806,9 @@ const de_ListRegexPatternSetsCommandError = async (output, context) => {
1839
1806
  throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1840
1807
  default:
1841
1808
  const parsedBody = parsedOutput.body;
1842
- throwDefaultError({
1809
+ return throwDefaultError({
1843
1810
  output,
1844
1811
  parsedBody,
1845
- exceptionCtor: __BaseException,
1846
1812
  errorCode,
1847
1813
  });
1848
1814
  }
@@ -1853,12 +1819,12 @@ export const de_ListResourcesForWebACLCommand = async (output, context) => {
1853
1819
  }
1854
1820
  const data = await parseBody(output.body, context);
1855
1821
  let contents = {};
1856
- contents = de_ListResourcesForWebACLResponse(data, context);
1822
+ contents = _json(data);
1857
1823
  const response = {
1858
1824
  $metadata: deserializeMetadata(output),
1859
1825
  ...contents,
1860
1826
  };
1861
- return Promise.resolve(response);
1827
+ return response;
1862
1828
  };
1863
1829
  const de_ListResourcesForWebACLCommandError = async (output, context) => {
1864
1830
  const parsedOutput = {
@@ -1881,10 +1847,9 @@ const de_ListResourcesForWebACLCommandError = async (output, context) => {
1881
1847
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1882
1848
  default:
1883
1849
  const parsedBody = parsedOutput.body;
1884
- throwDefaultError({
1850
+ return throwDefaultError({
1885
1851
  output,
1886
1852
  parsedBody,
1887
- exceptionCtor: __BaseException,
1888
1853
  errorCode,
1889
1854
  });
1890
1855
  }
@@ -1895,12 +1860,12 @@ export const de_ListRuleGroupsCommand = async (output, context) => {
1895
1860
  }
1896
1861
  const data = await parseBody(output.body, context);
1897
1862
  let contents = {};
1898
- contents = de_ListRuleGroupsResponse(data, context);
1863
+ contents = _json(data);
1899
1864
  const response = {
1900
1865
  $metadata: deserializeMetadata(output),
1901
1866
  ...contents,
1902
1867
  };
1903
- return Promise.resolve(response);
1868
+ return response;
1904
1869
  };
1905
1870
  const de_ListRuleGroupsCommandError = async (output, context) => {
1906
1871
  const parsedOutput = {
@@ -1920,10 +1885,9 @@ const de_ListRuleGroupsCommandError = async (output, context) => {
1920
1885
  throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1921
1886
  default:
1922
1887
  const parsedBody = parsedOutput.body;
1923
- throwDefaultError({
1888
+ return throwDefaultError({
1924
1889
  output,
1925
1890
  parsedBody,
1926
- exceptionCtor: __BaseException,
1927
1891
  errorCode,
1928
1892
  });
1929
1893
  }
@@ -1934,12 +1898,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1934
1898
  }
1935
1899
  const data = await parseBody(output.body, context);
1936
1900
  let contents = {};
1937
- contents = de_ListTagsForResourceResponse(data, context);
1901
+ contents = _json(data);
1938
1902
  const response = {
1939
1903
  $metadata: deserializeMetadata(output),
1940
1904
  ...contents,
1941
1905
  };
1942
- return Promise.resolve(response);
1906
+ return response;
1943
1907
  };
1944
1908
  const de_ListTagsForResourceCommandError = async (output, context) => {
1945
1909
  const parsedOutput = {
@@ -1968,10 +1932,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1968
1932
  throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1969
1933
  default:
1970
1934
  const parsedBody = parsedOutput.body;
1971
- throwDefaultError({
1935
+ return throwDefaultError({
1972
1936
  output,
1973
1937
  parsedBody,
1974
- exceptionCtor: __BaseException,
1975
1938
  errorCode,
1976
1939
  });
1977
1940
  }
@@ -1982,12 +1945,12 @@ export const de_ListWebACLsCommand = async (output, context) => {
1982
1945
  }
1983
1946
  const data = await parseBody(output.body, context);
1984
1947
  let contents = {};
1985
- contents = de_ListWebACLsResponse(data, context);
1948
+ contents = _json(data);
1986
1949
  const response = {
1987
1950
  $metadata: deserializeMetadata(output),
1988
1951
  ...contents,
1989
1952
  };
1990
- return Promise.resolve(response);
1953
+ return response;
1991
1954
  };
1992
1955
  const de_ListWebACLsCommandError = async (output, context) => {
1993
1956
  const parsedOutput = {
@@ -2007,10 +1970,9 @@ const de_ListWebACLsCommandError = async (output, context) => {
2007
1970
  throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2008
1971
  default:
2009
1972
  const parsedBody = parsedOutput.body;
2010
- throwDefaultError({
1973
+ return throwDefaultError({
2011
1974
  output,
2012
1975
  parsedBody,
2013
- exceptionCtor: __BaseException,
2014
1976
  errorCode,
2015
1977
  });
2016
1978
  }
@@ -2021,12 +1983,12 @@ export const de_PutLoggingConfigurationCommand = async (output, context) => {
2021
1983
  }
2022
1984
  const data = await parseBody(output.body, context);
2023
1985
  let contents = {};
2024
- contents = de_PutLoggingConfigurationResponse(data, context);
1986
+ contents = _json(data);
2025
1987
  const response = {
2026
1988
  $metadata: deserializeMetadata(output),
2027
1989
  ...contents,
2028
1990
  };
2029
- return Promise.resolve(response);
1991
+ return response;
2030
1992
  };
2031
1993
  const de_PutLoggingConfigurationCommandError = async (output, context) => {
2032
1994
  const parsedOutput = {
@@ -2061,10 +2023,9 @@ const de_PutLoggingConfigurationCommandError = async (output, context) => {
2061
2023
  throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
2062
2024
  default:
2063
2025
  const parsedBody = parsedOutput.body;
2064
- throwDefaultError({
2026
+ return throwDefaultError({
2065
2027
  output,
2066
2028
  parsedBody,
2067
- exceptionCtor: __BaseException,
2068
2029
  errorCode,
2069
2030
  });
2070
2031
  }
@@ -2075,12 +2036,12 @@ export const de_PutManagedRuleSetVersionsCommand = async (output, context) => {
2075
2036
  }
2076
2037
  const data = await parseBody(output.body, context);
2077
2038
  let contents = {};
2078
- contents = de_PutManagedRuleSetVersionsResponse(data, context);
2039
+ contents = _json(data);
2079
2040
  const response = {
2080
2041
  $metadata: deserializeMetadata(output),
2081
2042
  ...contents,
2082
2043
  };
2083
- return Promise.resolve(response);
2044
+ return response;
2084
2045
  };
2085
2046
  const de_PutManagedRuleSetVersionsCommandError = async (output, context) => {
2086
2047
  const parsedOutput = {
@@ -2106,10 +2067,9 @@ const de_PutManagedRuleSetVersionsCommandError = async (output, context) => {
2106
2067
  throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2107
2068
  default:
2108
2069
  const parsedBody = parsedOutput.body;
2109
- throwDefaultError({
2070
+ return throwDefaultError({
2110
2071
  output,
2111
2072
  parsedBody,
2112
- exceptionCtor: __BaseException,
2113
2073
  errorCode,
2114
2074
  });
2115
2075
  }
@@ -2120,12 +2080,12 @@ export const de_PutPermissionPolicyCommand = async (output, context) => {
2120
2080
  }
2121
2081
  const data = await parseBody(output.body, context);
2122
2082
  let contents = {};
2123
- contents = de_PutPermissionPolicyResponse(data, context);
2083
+ contents = _json(data);
2124
2084
  const response = {
2125
2085
  $metadata: deserializeMetadata(output),
2126
2086
  ...contents,
2127
2087
  };
2128
- return Promise.resolve(response);
2088
+ return response;
2129
2089
  };
2130
2090
  const de_PutPermissionPolicyCommandError = async (output, context) => {
2131
2091
  const parsedOutput = {
@@ -2148,10 +2108,9 @@ const de_PutPermissionPolicyCommandError = async (output, context) => {
2148
2108
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2149
2109
  default:
2150
2110
  const parsedBody = parsedOutput.body;
2151
- throwDefaultError({
2111
+ return throwDefaultError({
2152
2112
  output,
2153
2113
  parsedBody,
2154
- exceptionCtor: __BaseException,
2155
2114
  errorCode,
2156
2115
  });
2157
2116
  }
@@ -2162,12 +2121,12 @@ export const de_TagResourceCommand = async (output, context) => {
2162
2121
  }
2163
2122
  const data = await parseBody(output.body, context);
2164
2123
  let contents = {};
2165
- contents = de_TagResourceResponse(data, context);
2124
+ contents = _json(data);
2166
2125
  const response = {
2167
2126
  $metadata: deserializeMetadata(output),
2168
2127
  ...contents,
2169
2128
  };
2170
- return Promise.resolve(response);
2129
+ return response;
2171
2130
  };
2172
2131
  const de_TagResourceCommandError = async (output, context) => {
2173
2132
  const parsedOutput = {
@@ -2199,10 +2158,9 @@ const de_TagResourceCommandError = async (output, context) => {
2199
2158
  throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2200
2159
  default:
2201
2160
  const parsedBody = parsedOutput.body;
2202
- throwDefaultError({
2161
+ return throwDefaultError({
2203
2162
  output,
2204
2163
  parsedBody,
2205
- exceptionCtor: __BaseException,
2206
2164
  errorCode,
2207
2165
  });
2208
2166
  }
@@ -2213,12 +2171,12 @@ export const de_UntagResourceCommand = async (output, context) => {
2213
2171
  }
2214
2172
  const data = await parseBody(output.body, context);
2215
2173
  let contents = {};
2216
- contents = de_UntagResourceResponse(data, context);
2174
+ contents = _json(data);
2217
2175
  const response = {
2218
2176
  $metadata: deserializeMetadata(output),
2219
2177
  ...contents,
2220
2178
  };
2221
- return Promise.resolve(response);
2179
+ return response;
2222
2180
  };
2223
2181
  const de_UntagResourceCommandError = async (output, context) => {
2224
2182
  const parsedOutput = {
@@ -2247,10 +2205,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2247
2205
  throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2248
2206
  default:
2249
2207
  const parsedBody = parsedOutput.body;
2250
- throwDefaultError({
2208
+ return throwDefaultError({
2251
2209
  output,
2252
2210
  parsedBody,
2253
- exceptionCtor: __BaseException,
2254
2211
  errorCode,
2255
2212
  });
2256
2213
  }
@@ -2261,12 +2218,12 @@ export const de_UpdateIPSetCommand = async (output, context) => {
2261
2218
  }
2262
2219
  const data = await parseBody(output.body, context);
2263
2220
  let contents = {};
2264
- contents = de_UpdateIPSetResponse(data, context);
2221
+ contents = _json(data);
2265
2222
  const response = {
2266
2223
  $metadata: deserializeMetadata(output),
2267
2224
  ...contents,
2268
2225
  };
2269
- return Promise.resolve(response);
2226
+ return response;
2270
2227
  };
2271
2228
  const de_UpdateIPSetCommandError = async (output, context) => {
2272
2229
  const parsedOutput = {
@@ -2298,10 +2255,9 @@ const de_UpdateIPSetCommandError = async (output, context) => {
2298
2255
  throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2299
2256
  default:
2300
2257
  const parsedBody = parsedOutput.body;
2301
- throwDefaultError({
2258
+ return throwDefaultError({
2302
2259
  output,
2303
2260
  parsedBody,
2304
- exceptionCtor: __BaseException,
2305
2261
  errorCode,
2306
2262
  });
2307
2263
  }
@@ -2317,7 +2273,7 @@ export const de_UpdateManagedRuleSetVersionExpiryDateCommand = async (output, co
2317
2273
  $metadata: deserializeMetadata(output),
2318
2274
  ...contents,
2319
2275
  };
2320
- return Promise.resolve(response);
2276
+ return response;
2321
2277
  };
2322
2278
  const de_UpdateManagedRuleSetVersionExpiryDateCommandError = async (output, context) => {
2323
2279
  const parsedOutput = {
@@ -2343,10 +2299,9 @@ const de_UpdateManagedRuleSetVersionExpiryDateCommandError = async (output, cont
2343
2299
  throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2344
2300
  default:
2345
2301
  const parsedBody = parsedOutput.body;
2346
- throwDefaultError({
2302
+ return throwDefaultError({
2347
2303
  output,
2348
2304
  parsedBody,
2349
- exceptionCtor: __BaseException,
2350
2305
  errorCode,
2351
2306
  });
2352
2307
  }
@@ -2357,12 +2312,12 @@ export const de_UpdateRegexPatternSetCommand = async (output, context) => {
2357
2312
  }
2358
2313
  const data = await parseBody(output.body, context);
2359
2314
  let contents = {};
2360
- contents = de_UpdateRegexPatternSetResponse(data, context);
2315
+ contents = _json(data);
2361
2316
  const response = {
2362
2317
  $metadata: deserializeMetadata(output),
2363
2318
  ...contents,
2364
2319
  };
2365
- return Promise.resolve(response);
2320
+ return response;
2366
2321
  };
2367
2322
  const de_UpdateRegexPatternSetCommandError = async (output, context) => {
2368
2323
  const parsedOutput = {
@@ -2394,10 +2349,9 @@ const de_UpdateRegexPatternSetCommandError = async (output, context) => {
2394
2349
  throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2395
2350
  default:
2396
2351
  const parsedBody = parsedOutput.body;
2397
- throwDefaultError({
2352
+ return throwDefaultError({
2398
2353
  output,
2399
2354
  parsedBody,
2400
- exceptionCtor: __BaseException,
2401
2355
  errorCode,
2402
2356
  });
2403
2357
  }
@@ -2408,12 +2362,12 @@ export const de_UpdateRuleGroupCommand = async (output, context) => {
2408
2362
  }
2409
2363
  const data = await parseBody(output.body, context);
2410
2364
  let contents = {};
2411
- contents = de_UpdateRuleGroupResponse(data, context);
2365
+ contents = _json(data);
2412
2366
  const response = {
2413
2367
  $metadata: deserializeMetadata(output),
2414
2368
  ...contents,
2415
2369
  };
2416
- return Promise.resolve(response);
2370
+ return response;
2417
2371
  };
2418
2372
  const de_UpdateRuleGroupCommandError = async (output, context) => {
2419
2373
  const parsedOutput = {
@@ -2454,10 +2408,9 @@ const de_UpdateRuleGroupCommandError = async (output, context) => {
2454
2408
  throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
2455
2409
  default:
2456
2410
  const parsedBody = parsedOutput.body;
2457
- throwDefaultError({
2411
+ return throwDefaultError({
2458
2412
  output,
2459
2413
  parsedBody,
2460
- exceptionCtor: __BaseException,
2461
2414
  errorCode,
2462
2415
  });
2463
2416
  }
@@ -2468,12 +2421,12 @@ export const de_UpdateWebACLCommand = async (output, context) => {
2468
2421
  }
2469
2422
  const data = await parseBody(output.body, context);
2470
2423
  let contents = {};
2471
- contents = de_UpdateWebACLResponse(data, context);
2424
+ contents = _json(data);
2472
2425
  const response = {
2473
2426
  $metadata: deserializeMetadata(output),
2474
2427
  ...contents,
2475
2428
  };
2476
- return Promise.resolve(response);
2429
+ return response;
2477
2430
  };
2478
2431
  const de_UpdateWebACLCommandError = async (output, context) => {
2479
2432
  const parsedOutput = {
@@ -2520,17 +2473,16 @@ const de_UpdateWebACLCommandError = async (output, context) => {
2520
2473
  throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
2521
2474
  default:
2522
2475
  const parsedBody = parsedOutput.body;
2523
- throwDefaultError({
2476
+ return throwDefaultError({
2524
2477
  output,
2525
2478
  parsedBody,
2526
- exceptionCtor: __BaseException,
2527
2479
  errorCode,
2528
2480
  });
2529
2481
  }
2530
2482
  };
2531
2483
  const de_WAFAssociatedItemExceptionRes = async (parsedOutput, context) => {
2532
2484
  const body = parsedOutput.body;
2533
- const deserialized = de_WAFAssociatedItemException(body, context);
2485
+ const deserialized = _json(body);
2534
2486
  const exception = new WAFAssociatedItemException({
2535
2487
  $metadata: deserializeMetadata(parsedOutput),
2536
2488
  ...deserialized,
@@ -2539,7 +2491,7 @@ const de_WAFAssociatedItemExceptionRes = async (parsedOutput, context) => {
2539
2491
  };
2540
2492
  const de_WAFConfigurationWarningExceptionRes = async (parsedOutput, context) => {
2541
2493
  const body = parsedOutput.body;
2542
- const deserialized = de_WAFConfigurationWarningException(body, context);
2494
+ const deserialized = _json(body);
2543
2495
  const exception = new WAFConfigurationWarningException({
2544
2496
  $metadata: deserializeMetadata(parsedOutput),
2545
2497
  ...deserialized,
@@ -2548,7 +2500,7 @@ const de_WAFConfigurationWarningExceptionRes = async (parsedOutput, context) =>
2548
2500
  };
2549
2501
  const de_WAFDuplicateItemExceptionRes = async (parsedOutput, context) => {
2550
2502
  const body = parsedOutput.body;
2551
- const deserialized = de_WAFDuplicateItemException(body, context);
2503
+ const deserialized = _json(body);
2552
2504
  const exception = new WAFDuplicateItemException({
2553
2505
  $metadata: deserializeMetadata(parsedOutput),
2554
2506
  ...deserialized,
@@ -2557,7 +2509,7 @@ const de_WAFDuplicateItemExceptionRes = async (parsedOutput, context) => {
2557
2509
  };
2558
2510
  const de_WAFExpiredManagedRuleGroupVersionExceptionRes = async (parsedOutput, context) => {
2559
2511
  const body = parsedOutput.body;
2560
- const deserialized = de_WAFExpiredManagedRuleGroupVersionException(body, context);
2512
+ const deserialized = _json(body);
2561
2513
  const exception = new WAFExpiredManagedRuleGroupVersionException({
2562
2514
  $metadata: deserializeMetadata(parsedOutput),
2563
2515
  ...deserialized,
@@ -2566,7 +2518,7 @@ const de_WAFExpiredManagedRuleGroupVersionExceptionRes = async (parsedOutput, co
2566
2518
  };
2567
2519
  const de_WAFInternalErrorExceptionRes = async (parsedOutput, context) => {
2568
2520
  const body = parsedOutput.body;
2569
- const deserialized = de_WAFInternalErrorException(body, context);
2521
+ const deserialized = _json(body);
2570
2522
  const exception = new WAFInternalErrorException({
2571
2523
  $metadata: deserializeMetadata(parsedOutput),
2572
2524
  ...deserialized,
@@ -2575,7 +2527,7 @@ const de_WAFInternalErrorExceptionRes = async (parsedOutput, context) => {
2575
2527
  };
2576
2528
  const de_WAFInvalidOperationExceptionRes = async (parsedOutput, context) => {
2577
2529
  const body = parsedOutput.body;
2578
- const deserialized = de_WAFInvalidOperationException(body, context);
2530
+ const deserialized = _json(body);
2579
2531
  const exception = new WAFInvalidOperationException({
2580
2532
  $metadata: deserializeMetadata(parsedOutput),
2581
2533
  ...deserialized,
@@ -2584,7 +2536,7 @@ const de_WAFInvalidOperationExceptionRes = async (parsedOutput, context) => {
2584
2536
  };
2585
2537
  const de_WAFInvalidParameterExceptionRes = async (parsedOutput, context) => {
2586
2538
  const body = parsedOutput.body;
2587
- const deserialized = de_WAFInvalidParameterException(body, context);
2539
+ const deserialized = _json(body);
2588
2540
  const exception = new WAFInvalidParameterException({
2589
2541
  $metadata: deserializeMetadata(parsedOutput),
2590
2542
  ...deserialized,
@@ -2593,7 +2545,7 @@ const de_WAFInvalidParameterExceptionRes = async (parsedOutput, context) => {
2593
2545
  };
2594
2546
  const de_WAFInvalidPermissionPolicyExceptionRes = async (parsedOutput, context) => {
2595
2547
  const body = parsedOutput.body;
2596
- const deserialized = de_WAFInvalidPermissionPolicyException(body, context);
2548
+ const deserialized = _json(body);
2597
2549
  const exception = new WAFInvalidPermissionPolicyException({
2598
2550
  $metadata: deserializeMetadata(parsedOutput),
2599
2551
  ...deserialized,
@@ -2602,7 +2554,7 @@ const de_WAFInvalidPermissionPolicyExceptionRes = async (parsedOutput, context)
2602
2554
  };
2603
2555
  const de_WAFInvalidResourceExceptionRes = async (parsedOutput, context) => {
2604
2556
  const body = parsedOutput.body;
2605
- const deserialized = de_WAFInvalidResourceException(body, context);
2557
+ const deserialized = _json(body);
2606
2558
  const exception = new WAFInvalidResourceException({
2607
2559
  $metadata: deserializeMetadata(parsedOutput),
2608
2560
  ...deserialized,
@@ -2611,7 +2563,7 @@ const de_WAFInvalidResourceExceptionRes = async (parsedOutput, context) => {
2611
2563
  };
2612
2564
  const de_WAFLimitsExceededExceptionRes = async (parsedOutput, context) => {
2613
2565
  const body = parsedOutput.body;
2614
- const deserialized = de_WAFLimitsExceededException(body, context);
2566
+ const deserialized = _json(body);
2615
2567
  const exception = new WAFLimitsExceededException({
2616
2568
  $metadata: deserializeMetadata(parsedOutput),
2617
2569
  ...deserialized,
@@ -2620,7 +2572,7 @@ const de_WAFLimitsExceededExceptionRes = async (parsedOutput, context) => {
2620
2572
  };
2621
2573
  const de_WAFLogDestinationPermissionIssueExceptionRes = async (parsedOutput, context) => {
2622
2574
  const body = parsedOutput.body;
2623
- const deserialized = de_WAFLogDestinationPermissionIssueException(body, context);
2575
+ const deserialized = _json(body);
2624
2576
  const exception = new WAFLogDestinationPermissionIssueException({
2625
2577
  $metadata: deserializeMetadata(parsedOutput),
2626
2578
  ...deserialized,
@@ -2629,7 +2581,7 @@ const de_WAFLogDestinationPermissionIssueExceptionRes = async (parsedOutput, con
2629
2581
  };
2630
2582
  const de_WAFNonexistentItemExceptionRes = async (parsedOutput, context) => {
2631
2583
  const body = parsedOutput.body;
2632
- const deserialized = de_WAFNonexistentItemException(body, context);
2584
+ const deserialized = _json(body);
2633
2585
  const exception = new WAFNonexistentItemException({
2634
2586
  $metadata: deserializeMetadata(parsedOutput),
2635
2587
  ...deserialized,
@@ -2638,7 +2590,7 @@ const de_WAFNonexistentItemExceptionRes = async (parsedOutput, context) => {
2638
2590
  };
2639
2591
  const de_WAFOptimisticLockExceptionRes = async (parsedOutput, context) => {
2640
2592
  const body = parsedOutput.body;
2641
- const deserialized = de_WAFOptimisticLockException(body, context);
2593
+ const deserialized = _json(body);
2642
2594
  const exception = new WAFOptimisticLockException({
2643
2595
  $metadata: deserializeMetadata(parsedOutput),
2644
2596
  ...deserialized,
@@ -2647,7 +2599,7 @@ const de_WAFOptimisticLockExceptionRes = async (parsedOutput, context) => {
2647
2599
  };
2648
2600
  const de_WAFServiceLinkedRoleErrorExceptionRes = async (parsedOutput, context) => {
2649
2601
  const body = parsedOutput.body;
2650
- const deserialized = de_WAFServiceLinkedRoleErrorException(body, context);
2602
+ const deserialized = _json(body);
2651
2603
  const exception = new WAFServiceLinkedRoleErrorException({
2652
2604
  $metadata: deserializeMetadata(parsedOutput),
2653
2605
  ...deserialized,
@@ -2656,7 +2608,7 @@ const de_WAFServiceLinkedRoleErrorExceptionRes = async (parsedOutput, context) =
2656
2608
  };
2657
2609
  const de_WAFSubscriptionNotFoundExceptionRes = async (parsedOutput, context) => {
2658
2610
  const body = parsedOutput.body;
2659
- const deserialized = de_WAFSubscriptionNotFoundException(body, context);
2611
+ const deserialized = _json(body);
2660
2612
  const exception = new WAFSubscriptionNotFoundException({
2661
2613
  $metadata: deserializeMetadata(parsedOutput),
2662
2614
  ...deserialized,
@@ -2665,7 +2617,7 @@ const de_WAFSubscriptionNotFoundExceptionRes = async (parsedOutput, context) =>
2665
2617
  };
2666
2618
  const de_WAFTagOperationExceptionRes = async (parsedOutput, context) => {
2667
2619
  const body = parsedOutput.body;
2668
- const deserialized = de_WAFTagOperationException(body, context);
2620
+ const deserialized = _json(body);
2669
2621
  const exception = new WAFTagOperationException({
2670
2622
  $metadata: deserializeMetadata(parsedOutput),
2671
2623
  ...deserialized,
@@ -2674,7 +2626,7 @@ const de_WAFTagOperationExceptionRes = async (parsedOutput, context) => {
2674
2626
  };
2675
2627
  const de_WAFTagOperationInternalErrorExceptionRes = async (parsedOutput, context) => {
2676
2628
  const body = parsedOutput.body;
2677
- const deserialized = de_WAFTagOperationInternalErrorException(body, context);
2629
+ const deserialized = _json(body);
2678
2630
  const exception = new WAFTagOperationInternalErrorException({
2679
2631
  $metadata: deserializeMetadata(parsedOutput),
2680
2632
  ...deserialized,
@@ -2683,2847 +2635,488 @@ const de_WAFTagOperationInternalErrorExceptionRes = async (parsedOutput, context
2683
2635
  };
2684
2636
  const de_WAFUnavailableEntityExceptionRes = async (parsedOutput, context) => {
2685
2637
  const body = parsedOutput.body;
2686
- const deserialized = de_WAFUnavailableEntityException(body, context);
2638
+ const deserialized = _json(body);
2687
2639
  const exception = new WAFUnavailableEntityException({
2688
2640
  $metadata: deserializeMetadata(parsedOutput),
2689
2641
  ...deserialized,
2690
2642
  });
2691
2643
  return __decorateServiceException(exception, body);
2692
2644
  };
2693
- const se_ActionCondition = (input, context) => {
2694
- return {
2695
- ...(input.Action != null && { Action: input.Action }),
2696
- };
2697
- };
2698
- const se_All = (input, context) => {
2699
- return {};
2700
- };
2701
- const se_AllowAction = (input, context) => {
2702
- return {
2703
- ...(input.CustomRequestHandling != null && {
2704
- CustomRequestHandling: se_CustomRequestHandling(input.CustomRequestHandling, context),
2705
- }),
2706
- };
2707
- };
2708
- const se_AllQueryArguments = (input, context) => {
2709
- return {};
2710
- };
2711
- const se_AndStatement = (input, context) => {
2712
- return {
2713
- ...(input.Statements != null && { Statements: se_Statements(input.Statements, context) }),
2714
- };
2715
- };
2716
- const se_AssociateWebACLRequest = (input, context) => {
2717
- return {
2718
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2719
- ...(input.WebACLArn != null && { WebACLArn: input.WebACLArn }),
2720
- };
2721
- };
2722
- const se_AssociationConfig = (input, context) => {
2723
- return {
2724
- ...(input.RequestBody != null && { RequestBody: se_RequestBody(input.RequestBody, context) }),
2725
- };
2726
- };
2727
- const se_AWSManagedRulesATPRuleSet = (input, context) => {
2728
- return {
2729
- ...(input.LoginPath != null && { LoginPath: input.LoginPath }),
2730
- ...(input.RequestInspection != null && {
2731
- RequestInspection: se_RequestInspection(input.RequestInspection, context),
2732
- }),
2733
- ...(input.ResponseInspection != null && {
2734
- ResponseInspection: se_ResponseInspection(input.ResponseInspection, context),
2735
- }),
2736
- };
2737
- };
2738
- const se_AWSManagedRulesBotControlRuleSet = (input, context) => {
2739
- return {
2740
- ...(input.InspectionLevel != null && { InspectionLevel: input.InspectionLevel }),
2741
- };
2742
- };
2743
- const se_BlockAction = (input, context) => {
2744
- return {
2745
- ...(input.CustomResponse != null && { CustomResponse: se_CustomResponse(input.CustomResponse, context) }),
2746
- };
2747
- };
2748
- const se_Body = (input, context) => {
2749
- return {
2750
- ...(input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }),
2751
- };
2752
- };
2753
- const se_ByteMatchStatement = (input, context) => {
2754
- return {
2755
- ...(input.FieldToMatch != null && { FieldToMatch: se_FieldToMatch(input.FieldToMatch, context) }),
2756
- ...(input.PositionalConstraint != null && { PositionalConstraint: input.PositionalConstraint }),
2757
- ...(input.SearchString != null && { SearchString: context.base64Encoder(input.SearchString) }),
2758
- ...(input.TextTransformations != null && {
2759
- TextTransformations: se_TextTransformations(input.TextTransformations, context),
2760
- }),
2761
- };
2762
- };
2763
- const se_CaptchaAction = (input, context) => {
2764
- return {
2765
- ...(input.CustomRequestHandling != null && {
2766
- CustomRequestHandling: se_CustomRequestHandling(input.CustomRequestHandling, context),
2767
- }),
2768
- };
2769
- };
2770
- const se_CaptchaConfig = (input, context) => {
2771
- return {
2772
- ...(input.ImmunityTimeProperty != null && {
2773
- ImmunityTimeProperty: se_ImmunityTimeProperty(input.ImmunityTimeProperty, context),
2774
- }),
2775
- };
2776
- };
2777
- const se_ChallengeAction = (input, context) => {
2778
- return {
2779
- ...(input.CustomRequestHandling != null && {
2780
- CustomRequestHandling: se_CustomRequestHandling(input.CustomRequestHandling, context),
2781
- }),
2782
- };
2783
- };
2784
- const se_ChallengeConfig = (input, context) => {
2785
- return {
2786
- ...(input.ImmunityTimeProperty != null && {
2787
- ImmunityTimeProperty: se_ImmunityTimeProperty(input.ImmunityTimeProperty, context),
2788
- }),
2789
- };
2790
- };
2791
- const se_CheckCapacityRequest = (input, context) => {
2792
- return {
2793
- ...(input.Rules != null && { Rules: se_Rules(input.Rules, context) }),
2794
- ...(input.Scope != null && { Scope: input.Scope }),
2795
- };
2796
- };
2797
- const se_Condition = (input, context) => {
2798
- return {
2799
- ...(input.ActionCondition != null && { ActionCondition: se_ActionCondition(input.ActionCondition, context) }),
2800
- ...(input.LabelNameCondition != null && {
2801
- LabelNameCondition: se_LabelNameCondition(input.LabelNameCondition, context),
2802
- }),
2803
- };
2804
- };
2805
- const se_Conditions = (input, context) => {
2806
- return input
2807
- .filter((e) => e != null)
2808
- .map((entry) => {
2809
- return se_Condition(entry, context);
2810
- });
2811
- };
2812
- const se_CookieMatchPattern = (input, context) => {
2813
- return {
2814
- ...(input.All != null && { All: se_All(input.All, context) }),
2815
- ...(input.ExcludedCookies != null && { ExcludedCookies: se_CookieNames(input.ExcludedCookies, context) }),
2816
- ...(input.IncludedCookies != null && { IncludedCookies: se_CookieNames(input.IncludedCookies, context) }),
2817
- };
2818
- };
2819
- const se_CookieNames = (input, context) => {
2820
- return input
2821
- .filter((e) => e != null)
2822
- .map((entry) => {
2823
- return entry;
2824
- });
2825
- };
2826
- const se_Cookies = (input, context) => {
2827
- return {
2828
- ...(input.MatchPattern != null && { MatchPattern: se_CookieMatchPattern(input.MatchPattern, context) }),
2829
- ...(input.MatchScope != null && { MatchScope: input.MatchScope }),
2830
- ...(input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }),
2831
- };
2832
- };
2833
- const se_CountAction = (input, context) => {
2834
- return {
2835
- ...(input.CustomRequestHandling != null && {
2836
- CustomRequestHandling: se_CustomRequestHandling(input.CustomRequestHandling, context),
2837
- }),
2838
- };
2839
- };
2840
- const se_CountryCodes = (input, context) => {
2841
- return input
2842
- .filter((e) => e != null)
2843
- .map((entry) => {
2844
- return entry;
2845
- });
2846
- };
2847
- const se_CreateIPSetRequest = (input, context) => {
2848
- return {
2849
- ...(input.Addresses != null && { Addresses: se_IPAddresses(input.Addresses, context) }),
2850
- ...(input.Description != null && { Description: input.Description }),
2851
- ...(input.IPAddressVersion != null && { IPAddressVersion: input.IPAddressVersion }),
2852
- ...(input.Name != null && { Name: input.Name }),
2853
- ...(input.Scope != null && { Scope: input.Scope }),
2854
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2855
- };
2856
- };
2857
- const se_CreateRegexPatternSetRequest = (input, context) => {
2858
- return {
2859
- ...(input.Description != null && { Description: input.Description }),
2860
- ...(input.Name != null && { Name: input.Name }),
2861
- ...(input.RegularExpressionList != null && {
2862
- RegularExpressionList: se_RegularExpressionList(input.RegularExpressionList, context),
2863
- }),
2864
- ...(input.Scope != null && { Scope: input.Scope }),
2865
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2866
- };
2867
- };
2868
- const se_CreateRuleGroupRequest = (input, context) => {
2869
- return {
2870
- ...(input.Capacity != null && { Capacity: input.Capacity }),
2871
- ...(input.CustomResponseBodies != null && {
2872
- CustomResponseBodies: se_CustomResponseBodies(input.CustomResponseBodies, context),
2873
- }),
2874
- ...(input.Description != null && { Description: input.Description }),
2875
- ...(input.Name != null && { Name: input.Name }),
2876
- ...(input.Rules != null && { Rules: se_Rules(input.Rules, context) }),
2877
- ...(input.Scope != null && { Scope: input.Scope }),
2878
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2879
- ...(input.VisibilityConfig != null && { VisibilityConfig: se_VisibilityConfig(input.VisibilityConfig, context) }),
2880
- };
2881
- };
2882
- const se_CreateWebACLRequest = (input, context) => {
2883
- return {
2884
- ...(input.AssociationConfig != null && {
2885
- AssociationConfig: se_AssociationConfig(input.AssociationConfig, context),
2886
- }),
2887
- ...(input.CaptchaConfig != null && { CaptchaConfig: se_CaptchaConfig(input.CaptchaConfig, context) }),
2888
- ...(input.ChallengeConfig != null && { ChallengeConfig: se_ChallengeConfig(input.ChallengeConfig, context) }),
2889
- ...(input.CustomResponseBodies != null && {
2890
- CustomResponseBodies: se_CustomResponseBodies(input.CustomResponseBodies, context),
2891
- }),
2892
- ...(input.DefaultAction != null && { DefaultAction: se_DefaultAction(input.DefaultAction, context) }),
2893
- ...(input.Description != null && { Description: input.Description }),
2894
- ...(input.Name != null && { Name: input.Name }),
2895
- ...(input.Rules != null && { Rules: se_Rules(input.Rules, context) }),
2896
- ...(input.Scope != null && { Scope: input.Scope }),
2897
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2898
- ...(input.TokenDomains != null && { TokenDomains: se_TokenDomains(input.TokenDomains, context) }),
2899
- ...(input.VisibilityConfig != null && { VisibilityConfig: se_VisibilityConfig(input.VisibilityConfig, context) }),
2900
- };
2901
- };
2902
- const se_CustomHTTPHeader = (input, context) => {
2903
- return {
2904
- ...(input.Name != null && { Name: input.Name }),
2905
- ...(input.Value != null && { Value: input.Value }),
2906
- };
2907
- };
2908
- const se_CustomHTTPHeaders = (input, context) => {
2909
- return input
2910
- .filter((e) => e != null)
2911
- .map((entry) => {
2912
- return se_CustomHTTPHeader(entry, context);
2913
- });
2914
- };
2915
- const se_CustomRequestHandling = (input, context) => {
2916
- return {
2917
- ...(input.InsertHeaders != null && { InsertHeaders: se_CustomHTTPHeaders(input.InsertHeaders, context) }),
2918
- };
2919
- };
2920
- const se_CustomResponse = (input, context) => {
2921
- return {
2922
- ...(input.CustomResponseBodyKey != null && { CustomResponseBodyKey: input.CustomResponseBodyKey }),
2923
- ...(input.ResponseCode != null && { ResponseCode: input.ResponseCode }),
2924
- ...(input.ResponseHeaders != null && { ResponseHeaders: se_CustomHTTPHeaders(input.ResponseHeaders, context) }),
2925
- };
2926
- };
2927
- const se_CustomResponseBodies = (input, context) => {
2928
- return Object.entries(input).reduce((acc, [key, value]) => {
2929
- if (value === null) {
2930
- return acc;
2931
- }
2932
- acc[key] = se_CustomResponseBody(value, context);
2933
- return acc;
2934
- }, {});
2935
- };
2936
- const se_CustomResponseBody = (input, context) => {
2937
- return {
2938
- ...(input.Content != null && { Content: input.Content }),
2939
- ...(input.ContentType != null && { ContentType: input.ContentType }),
2940
- };
2941
- };
2942
- const se_DefaultAction = (input, context) => {
2943
- return {
2944
- ...(input.Allow != null && { Allow: se_AllowAction(input.Allow, context) }),
2945
- ...(input.Block != null && { Block: se_BlockAction(input.Block, context) }),
2946
- };
2947
- };
2948
- const se_DeleteFirewallManagerRuleGroupsRequest = (input, context) => {
2949
- return {
2950
- ...(input.WebACLArn != null && { WebACLArn: input.WebACLArn }),
2951
- ...(input.WebACLLockToken != null && { WebACLLockToken: input.WebACLLockToken }),
2952
- };
2953
- };
2954
- const se_DeleteIPSetRequest = (input, context) => {
2955
- return {
2956
- ...(input.Id != null && { Id: input.Id }),
2957
- ...(input.LockToken != null && { LockToken: input.LockToken }),
2958
- ...(input.Name != null && { Name: input.Name }),
2959
- ...(input.Scope != null && { Scope: input.Scope }),
2960
- };
2961
- };
2962
- const se_DeleteLoggingConfigurationRequest = (input, context) => {
2963
- return {
2964
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2965
- };
2966
- };
2967
- const se_DeletePermissionPolicyRequest = (input, context) => {
2968
- return {
2969
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2970
- };
2971
- };
2972
- const se_DeleteRegexPatternSetRequest = (input, context) => {
2973
- return {
2974
- ...(input.Id != null && { Id: input.Id }),
2975
- ...(input.LockToken != null && { LockToken: input.LockToken }),
2976
- ...(input.Name != null && { Name: input.Name }),
2977
- ...(input.Scope != null && { Scope: input.Scope }),
2978
- };
2979
- };
2980
- const se_DeleteRuleGroupRequest = (input, context) => {
2981
- return {
2982
- ...(input.Id != null && { Id: input.Id }),
2983
- ...(input.LockToken != null && { LockToken: input.LockToken }),
2984
- ...(input.Name != null && { Name: input.Name }),
2985
- ...(input.Scope != null && { Scope: input.Scope }),
2986
- };
2987
- };
2988
- const se_DeleteWebACLRequest = (input, context) => {
2989
- return {
2990
- ...(input.Id != null && { Id: input.Id }),
2991
- ...(input.LockToken != null && { LockToken: input.LockToken }),
2992
- ...(input.Name != null && { Name: input.Name }),
2993
- ...(input.Scope != null && { Scope: input.Scope }),
2994
- };
2995
- };
2996
- const se_DescribeManagedRuleGroupRequest = (input, context) => {
2997
- return {
2998
- ...(input.Name != null && { Name: input.Name }),
2999
- ...(input.Scope != null && { Scope: input.Scope }),
3000
- ...(input.VendorName != null && { VendorName: input.VendorName }),
3001
- ...(input.VersionName != null && { VersionName: input.VersionName }),
3002
- };
3003
- };
3004
- const se_DisassociateWebACLRequest = (input, context) => {
3005
- return {
3006
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3007
- };
3008
- };
3009
- const se_ExcludedRule = (input, context) => {
3010
- return {
3011
- ...(input.Name != null && { Name: input.Name }),
3012
- };
3013
- };
3014
- const se_ExcludedRules = (input, context) => {
3015
- return input
3016
- .filter((e) => e != null)
3017
- .map((entry) => {
3018
- return se_ExcludedRule(entry, context);
3019
- });
3020
- };
3021
- const se_FieldToMatch = (input, context) => {
3022
- return {
3023
- ...(input.AllQueryArguments != null && {
3024
- AllQueryArguments: se_AllQueryArguments(input.AllQueryArguments, context),
3025
- }),
3026
- ...(input.Body != null && { Body: se_Body(input.Body, context) }),
3027
- ...(input.Cookies != null && { Cookies: se_Cookies(input.Cookies, context) }),
3028
- ...(input.Headers != null && { Headers: se_Headers(input.Headers, context) }),
3029
- ...(input.JsonBody != null && { JsonBody: se_JsonBody(input.JsonBody, context) }),
3030
- ...(input.Method != null && { Method: se_Method(input.Method, context) }),
3031
- ...(input.QueryString != null && { QueryString: se_QueryString(input.QueryString, context) }),
3032
- ...(input.SingleHeader != null && { SingleHeader: se_SingleHeader(input.SingleHeader, context) }),
3033
- ...(input.SingleQueryArgument != null && {
3034
- SingleQueryArgument: se_SingleQueryArgument(input.SingleQueryArgument, context),
3035
- }),
3036
- ...(input.UriPath != null && { UriPath: se_UriPath(input.UriPath, context) }),
3037
- };
3038
- };
3039
- const se_Filter = (input, context) => {
3040
- return {
3041
- ...(input.Behavior != null && { Behavior: input.Behavior }),
3042
- ...(input.Conditions != null && { Conditions: se_Conditions(input.Conditions, context) }),
3043
- ...(input.Requirement != null && { Requirement: input.Requirement }),
3044
- };
3045
- };
3046
- const se_Filters = (input, context) => {
3047
- return input
3048
- .filter((e) => e != null)
3049
- .map((entry) => {
3050
- return se_Filter(entry, context);
3051
- });
3052
- };
3053
- const se_ForwardedIPConfig = (input, context) => {
3054
- return {
3055
- ...(input.FallbackBehavior != null && { FallbackBehavior: input.FallbackBehavior }),
3056
- ...(input.HeaderName != null && { HeaderName: input.HeaderName }),
3057
- };
3058
- };
3059
- const se_GenerateMobileSdkReleaseUrlRequest = (input, context) => {
3060
- return {
3061
- ...(input.Platform != null && { Platform: input.Platform }),
3062
- ...(input.ReleaseVersion != null && { ReleaseVersion: input.ReleaseVersion }),
3063
- };
3064
- };
3065
- const se_GeoMatchStatement = (input, context) => {
3066
- return {
3067
- ...(input.CountryCodes != null && { CountryCodes: se_CountryCodes(input.CountryCodes, context) }),
3068
- ...(input.ForwardedIPConfig != null && {
3069
- ForwardedIPConfig: se_ForwardedIPConfig(input.ForwardedIPConfig, context),
3070
- }),
3071
- };
3072
- };
3073
- const se_GetIPSetRequest = (input, context) => {
3074
- return {
3075
- ...(input.Id != null && { Id: input.Id }),
3076
- ...(input.Name != null && { Name: input.Name }),
3077
- ...(input.Scope != null && { Scope: input.Scope }),
3078
- };
3079
- };
3080
- const se_GetLoggingConfigurationRequest = (input, context) => {
3081
- return {
3082
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3083
- };
3084
- };
3085
- const se_GetManagedRuleSetRequest = (input, context) => {
3086
- return {
3087
- ...(input.Id != null && { Id: input.Id }),
3088
- ...(input.Name != null && { Name: input.Name }),
3089
- ...(input.Scope != null && { Scope: input.Scope }),
3090
- };
3091
- };
3092
- const se_GetMobileSdkReleaseRequest = (input, context) => {
3093
- return {
3094
- ...(input.Platform != null && { Platform: input.Platform }),
3095
- ...(input.ReleaseVersion != null && { ReleaseVersion: input.ReleaseVersion }),
3096
- };
3097
- };
3098
- const se_GetPermissionPolicyRequest = (input, context) => {
3099
- return {
3100
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3101
- };
3102
- };
3103
- const se_GetRateBasedStatementManagedKeysRequest = (input, context) => {
3104
- return {
3105
- ...(input.RuleGroupRuleName != null && { RuleGroupRuleName: input.RuleGroupRuleName }),
3106
- ...(input.RuleName != null && { RuleName: input.RuleName }),
3107
- ...(input.Scope != null && { Scope: input.Scope }),
3108
- ...(input.WebACLId != null && { WebACLId: input.WebACLId }),
3109
- ...(input.WebACLName != null && { WebACLName: input.WebACLName }),
3110
- };
3111
- };
3112
- const se_GetRegexPatternSetRequest = (input, context) => {
3113
- return {
3114
- ...(input.Id != null && { Id: input.Id }),
3115
- ...(input.Name != null && { Name: input.Name }),
3116
- ...(input.Scope != null && { Scope: input.Scope }),
3117
- };
3118
- };
3119
- const se_GetRuleGroupRequest = (input, context) => {
3120
- return {
3121
- ...(input.ARN != null && { ARN: input.ARN }),
3122
- ...(input.Id != null && { Id: input.Id }),
3123
- ...(input.Name != null && { Name: input.Name }),
3124
- ...(input.Scope != null && { Scope: input.Scope }),
3125
- };
3126
- };
3127
- const se_GetSampledRequestsRequest = (input, context) => {
3128
- return {
3129
- ...(input.MaxItems != null && { MaxItems: input.MaxItems }),
3130
- ...(input.RuleMetricName != null && { RuleMetricName: input.RuleMetricName }),
3131
- ...(input.Scope != null && { Scope: input.Scope }),
3132
- ...(input.TimeWindow != null && { TimeWindow: se_TimeWindow(input.TimeWindow, context) }),
3133
- ...(input.WebAclArn != null && { WebAclArn: input.WebAclArn }),
3134
- };
3135
- };
3136
- const se_GetWebACLForResourceRequest = (input, context) => {
3137
- return {
3138
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3139
- };
3140
- };
3141
- const se_GetWebACLRequest = (input, context) => {
3142
- return {
3143
- ...(input.Id != null && { Id: input.Id }),
3144
- ...(input.Name != null && { Name: input.Name }),
3145
- ...(input.Scope != null && { Scope: input.Scope }),
3146
- };
3147
- };
3148
- const se_HeaderMatchPattern = (input, context) => {
3149
- return {
3150
- ...(input.All != null && { All: se_All(input.All, context) }),
3151
- ...(input.ExcludedHeaders != null && { ExcludedHeaders: se_HeaderNames(input.ExcludedHeaders, context) }),
3152
- ...(input.IncludedHeaders != null && { IncludedHeaders: se_HeaderNames(input.IncludedHeaders, context) }),
3153
- };
3154
- };
3155
- const se_HeaderNames = (input, context) => {
3156
- return input
3157
- .filter((e) => e != null)
3158
- .map((entry) => {
3159
- return entry;
3160
- });
3161
- };
3162
- const se_Headers = (input, context) => {
3163
- return {
3164
- ...(input.MatchPattern != null && { MatchPattern: se_HeaderMatchPattern(input.MatchPattern, context) }),
3165
- ...(input.MatchScope != null && { MatchScope: input.MatchScope }),
3166
- ...(input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }),
3167
- };
3168
- };
3169
- const se_ImmunityTimeProperty = (input, context) => {
3170
- return {
3171
- ...(input.ImmunityTime != null && { ImmunityTime: input.ImmunityTime }),
3172
- };
3173
- };
3174
- const se_IPAddresses = (input, context) => {
3175
- return input
3176
- .filter((e) => e != null)
3177
- .map((entry) => {
3178
- return entry;
3179
- });
3180
- };
3181
- const se_IPSetForwardedIPConfig = (input, context) => {
3182
- return {
3183
- ...(input.FallbackBehavior != null && { FallbackBehavior: input.FallbackBehavior }),
3184
- ...(input.HeaderName != null && { HeaderName: input.HeaderName }),
3185
- ...(input.Position != null && { Position: input.Position }),
3186
- };
3187
- };
3188
- const se_IPSetReferenceStatement = (input, context) => {
3189
- return {
3190
- ...(input.ARN != null && { ARN: input.ARN }),
3191
- ...(input.IPSetForwardedIPConfig != null && {
3192
- IPSetForwardedIPConfig: se_IPSetForwardedIPConfig(input.IPSetForwardedIPConfig, context),
3193
- }),
3194
- };
3195
- };
3196
- const se_JsonBody = (input, context) => {
3197
- return {
3198
- ...(input.InvalidFallbackBehavior != null && { InvalidFallbackBehavior: input.InvalidFallbackBehavior }),
3199
- ...(input.MatchPattern != null && { MatchPattern: se_JsonMatchPattern(input.MatchPattern, context) }),
3200
- ...(input.MatchScope != null && { MatchScope: input.MatchScope }),
3201
- ...(input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }),
3202
- };
3203
- };
3204
- const se_JsonMatchPattern = (input, context) => {
3205
- return {
3206
- ...(input.All != null && { All: se_All(input.All, context) }),
3207
- ...(input.IncludedPaths != null && { IncludedPaths: se_JsonPointerPaths(input.IncludedPaths, context) }),
3208
- };
3209
- };
3210
- const se_JsonPointerPaths = (input, context) => {
3211
- return input
3212
- .filter((e) => e != null)
3213
- .map((entry) => {
3214
- return entry;
3215
- });
3216
- };
3217
- const se_Label = (input, context) => {
3218
- return {
3219
- ...(input.Name != null && { Name: input.Name }),
3220
- };
3221
- };
3222
- const se_LabelMatchStatement = (input, context) => {
3223
- return {
3224
- ...(input.Key != null && { Key: input.Key }),
3225
- ...(input.Scope != null && { Scope: input.Scope }),
3226
- };
3227
- };
3228
- const se_LabelNameCondition = (input, context) => {
3229
- return {
3230
- ...(input.LabelName != null && { LabelName: input.LabelName }),
3231
- };
3232
- };
3233
- const se_Labels = (input, context) => {
3234
- return input
3235
- .filter((e) => e != null)
3236
- .map((entry) => {
3237
- return se_Label(entry, context);
3238
- });
3239
- };
3240
- const se_ListAvailableManagedRuleGroupsRequest = (input, context) => {
3241
- return {
3242
- ...(input.Limit != null && { Limit: input.Limit }),
3243
- ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3244
- ...(input.Scope != null && { Scope: input.Scope }),
3245
- };
3246
- };
3247
- const se_ListAvailableManagedRuleGroupVersionsRequest = (input, context) => {
3248
- return {
3249
- ...(input.Limit != null && { Limit: input.Limit }),
3250
- ...(input.Name != null && { Name: input.Name }),
3251
- ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3252
- ...(input.Scope != null && { Scope: input.Scope }),
3253
- ...(input.VendorName != null && { VendorName: input.VendorName }),
3254
- };
3255
- };
3256
- const se_ListIPSetsRequest = (input, context) => {
3257
- return {
3258
- ...(input.Limit != null && { Limit: input.Limit }),
3259
- ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3260
- ...(input.Scope != null && { Scope: input.Scope }),
3261
- };
3262
- };
3263
- const se_ListLoggingConfigurationsRequest = (input, context) => {
3264
- return {
3265
- ...(input.Limit != null && { Limit: input.Limit }),
3266
- ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3267
- ...(input.Scope != null && { Scope: input.Scope }),
3268
- };
3269
- };
3270
- const se_ListManagedRuleSetsRequest = (input, context) => {
3271
- return {
3272
- ...(input.Limit != null && { Limit: input.Limit }),
3273
- ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3274
- ...(input.Scope != null && { Scope: input.Scope }),
3275
- };
3276
- };
3277
- const se_ListMobileSdkReleasesRequest = (input, context) => {
3278
- return {
3279
- ...(input.Limit != null && { Limit: input.Limit }),
3280
- ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3281
- ...(input.Platform != null && { Platform: input.Platform }),
3282
- };
3283
- };
3284
- const se_ListRegexPatternSetsRequest = (input, context) => {
3285
- return {
3286
- ...(input.Limit != null && { Limit: input.Limit }),
3287
- ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3288
- ...(input.Scope != null && { Scope: input.Scope }),
3289
- };
3290
- };
3291
- const se_ListResourcesForWebACLRequest = (input, context) => {
3292
- return {
3293
- ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
3294
- ...(input.WebACLArn != null && { WebACLArn: input.WebACLArn }),
3295
- };
3296
- };
3297
- const se_ListRuleGroupsRequest = (input, context) => {
3298
- return {
3299
- ...(input.Limit != null && { Limit: input.Limit }),
3300
- ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3301
- ...(input.Scope != null && { Scope: input.Scope }),
3302
- };
3303
- };
3304
- const se_ListTagsForResourceRequest = (input, context) => {
3305
- return {
3306
- ...(input.Limit != null && { Limit: input.Limit }),
3307
- ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3308
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3309
- };
3310
- };
3311
- const se_ListWebACLsRequest = (input, context) => {
3312
- return {
3313
- ...(input.Limit != null && { Limit: input.Limit }),
3314
- ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3315
- ...(input.Scope != null && { Scope: input.Scope }),
3316
- };
3317
- };
3318
- const se_LogDestinationConfigs = (input, context) => {
3319
- return input
3320
- .filter((e) => e != null)
3321
- .map((entry) => {
3322
- return entry;
3323
- });
3324
- };
3325
- const se_LoggingConfiguration = (input, context) => {
3326
- return {
3327
- ...(input.LogDestinationConfigs != null && {
3328
- LogDestinationConfigs: se_LogDestinationConfigs(input.LogDestinationConfigs, context),
3329
- }),
3330
- ...(input.LoggingFilter != null && { LoggingFilter: se_LoggingFilter(input.LoggingFilter, context) }),
3331
- ...(input.ManagedByFirewallManager != null && { ManagedByFirewallManager: input.ManagedByFirewallManager }),
3332
- ...(input.RedactedFields != null && { RedactedFields: se_RedactedFields(input.RedactedFields, context) }),
3333
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3334
- };
3335
- };
3336
- const se_LoggingFilter = (input, context) => {
3337
- return {
3338
- ...(input.DefaultBehavior != null && { DefaultBehavior: input.DefaultBehavior }),
3339
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3340
- };
3341
- };
3342
- const se_ManagedRuleGroupConfig = (input, context) => {
3343
- return {
3344
- ...(input.AWSManagedRulesATPRuleSet != null && {
3345
- AWSManagedRulesATPRuleSet: se_AWSManagedRulesATPRuleSet(input.AWSManagedRulesATPRuleSet, context),
3346
- }),
3347
- ...(input.AWSManagedRulesBotControlRuleSet != null && {
3348
- AWSManagedRulesBotControlRuleSet: se_AWSManagedRulesBotControlRuleSet(input.AWSManagedRulesBotControlRuleSet, context),
3349
- }),
3350
- ...(input.LoginPath != null && { LoginPath: input.LoginPath }),
3351
- ...(input.PasswordField != null && { PasswordField: se_PasswordField(input.PasswordField, context) }),
3352
- ...(input.PayloadType != null && { PayloadType: input.PayloadType }),
3353
- ...(input.UsernameField != null && { UsernameField: se_UsernameField(input.UsernameField, context) }),
3354
- };
3355
- };
3356
- const se_ManagedRuleGroupConfigs = (input, context) => {
3357
- return input
3358
- .filter((e) => e != null)
3359
- .map((entry) => {
3360
- return se_ManagedRuleGroupConfig(entry, context);
3361
- });
3362
- };
3363
- const se_ManagedRuleGroupStatement = (input, context) => {
3364
- return {
3365
- ...(input.ExcludedRules != null && { ExcludedRules: se_ExcludedRules(input.ExcludedRules, context) }),
3366
- ...(input.ManagedRuleGroupConfigs != null && {
3367
- ManagedRuleGroupConfigs: se_ManagedRuleGroupConfigs(input.ManagedRuleGroupConfigs, context),
3368
- }),
3369
- ...(input.Name != null && { Name: input.Name }),
3370
- ...(input.RuleActionOverrides != null && {
3371
- RuleActionOverrides: se_RuleActionOverrides(input.RuleActionOverrides, context),
3372
- }),
3373
- ...(input.ScopeDownStatement != null && { ScopeDownStatement: se_Statement(input.ScopeDownStatement, context) }),
3374
- ...(input.VendorName != null && { VendorName: input.VendorName }),
3375
- ...(input.Version != null && { Version: input.Version }),
3376
- };
3377
- };
3378
- const se_Method = (input, context) => {
3379
- return {};
3380
- };
3381
- const se_NoneAction = (input, context) => {
3382
- return {};
3383
- };
3384
- const se_NotStatement = (input, context) => {
3385
- return {
3386
- ...(input.Statement != null && { Statement: se_Statement(input.Statement, context) }),
3387
- };
3388
- };
3389
- const se_OrStatement = (input, context) => {
3390
- return {
3391
- ...(input.Statements != null && { Statements: se_Statements(input.Statements, context) }),
3392
- };
3393
- };
3394
- const se_OverrideAction = (input, context) => {
3395
- return {
3396
- ...(input.Count != null && { Count: se_CountAction(input.Count, context) }),
3397
- ...(input.None != null && { None: se_NoneAction(input.None, context) }),
3398
- };
3399
- };
3400
- const se_PasswordField = (input, context) => {
3401
- return {
3402
- ...(input.Identifier != null && { Identifier: input.Identifier }),
3403
- };
3404
- };
3405
- const se_PutLoggingConfigurationRequest = (input, context) => {
3406
- return {
3407
- ...(input.LoggingConfiguration != null && {
3408
- LoggingConfiguration: se_LoggingConfiguration(input.LoggingConfiguration, context),
3409
- }),
3410
- };
3411
- };
3412
- const se_PutManagedRuleSetVersionsRequest = (input, context) => {
3413
- return {
3414
- ...(input.Id != null && { Id: input.Id }),
3415
- ...(input.LockToken != null && { LockToken: input.LockToken }),
3416
- ...(input.Name != null && { Name: input.Name }),
3417
- ...(input.RecommendedVersion != null && { RecommendedVersion: input.RecommendedVersion }),
3418
- ...(input.Scope != null && { Scope: input.Scope }),
3419
- ...(input.VersionsToPublish != null && {
3420
- VersionsToPublish: se_VersionsToPublish(input.VersionsToPublish, context),
3421
- }),
3422
- };
3423
- };
3424
- const se_PutPermissionPolicyRequest = (input, context) => {
3425
- return {
3426
- ...(input.Policy != null && { Policy: input.Policy }),
3427
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3428
- };
3429
- };
3430
- const se_QueryString = (input, context) => {
3431
- return {};
3432
- };
3433
- const se_RateBasedStatement = (input, context) => {
3434
- return {
3435
- ...(input.AggregateKeyType != null && { AggregateKeyType: input.AggregateKeyType }),
3436
- ...(input.ForwardedIPConfig != null && {
3437
- ForwardedIPConfig: se_ForwardedIPConfig(input.ForwardedIPConfig, context),
3438
- }),
3439
- ...(input.Limit != null && { Limit: input.Limit }),
3440
- ...(input.ScopeDownStatement != null && { ScopeDownStatement: se_Statement(input.ScopeDownStatement, context) }),
3441
- };
3442
- };
3443
- const se_RedactedFields = (input, context) => {
3444
- return input
3445
- .filter((e) => e != null)
3446
- .map((entry) => {
3447
- return se_FieldToMatch(entry, context);
3448
- });
3449
- };
3450
- const se_Regex = (input, context) => {
3451
- return {
3452
- ...(input.RegexString != null && { RegexString: input.RegexString }),
3453
- };
3454
- };
3455
- const se_RegexMatchStatement = (input, context) => {
3456
- return {
3457
- ...(input.FieldToMatch != null && { FieldToMatch: se_FieldToMatch(input.FieldToMatch, context) }),
3458
- ...(input.RegexString != null && { RegexString: input.RegexString }),
3459
- ...(input.TextTransformations != null && {
3460
- TextTransformations: se_TextTransformations(input.TextTransformations, context),
3461
- }),
3462
- };
3463
- };
3464
- const se_RegexPatternSetReferenceStatement = (input, context) => {
3465
- return {
3466
- ...(input.ARN != null && { ARN: input.ARN }),
3467
- ...(input.FieldToMatch != null && { FieldToMatch: se_FieldToMatch(input.FieldToMatch, context) }),
3468
- ...(input.TextTransformations != null && {
3469
- TextTransformations: se_TextTransformations(input.TextTransformations, context),
3470
- }),
3471
- };
3472
- };
3473
- const se_RegularExpressionList = (input, context) => {
3474
- return input
3475
- .filter((e) => e != null)
3476
- .map((entry) => {
3477
- return se_Regex(entry, context);
3478
- });
3479
- };
3480
- const se_RequestBody = (input, context) => {
3481
- return Object.entries(input).reduce((acc, [key, value]) => {
3482
- if (value === null) {
3483
- return acc;
3484
- }
3485
- acc[key] = se_RequestBodyAssociatedResourceTypeConfig(value, context);
3486
- return acc;
3487
- }, {});
3488
- };
3489
- const se_RequestBodyAssociatedResourceTypeConfig = (input, context) => {
3490
- return {
3491
- ...(input.DefaultSizeInspectionLimit != null && { DefaultSizeInspectionLimit: input.DefaultSizeInspectionLimit }),
3492
- };
3493
- };
3494
- const se_RequestInspection = (input, context) => {
3495
- return {
3496
- ...(input.PasswordField != null && { PasswordField: se_PasswordField(input.PasswordField, context) }),
3497
- ...(input.PayloadType != null && { PayloadType: input.PayloadType }),
3498
- ...(input.UsernameField != null && { UsernameField: se_UsernameField(input.UsernameField, context) }),
3499
- };
3500
- };
3501
- const se_ResponseInspection = (input, context) => {
3502
- return {
3503
- ...(input.BodyContains != null && { BodyContains: se_ResponseInspectionBodyContains(input.BodyContains, context) }),
3504
- ...(input.Header != null && { Header: se_ResponseInspectionHeader(input.Header, context) }),
3505
- ...(input.Json != null && { Json: se_ResponseInspectionJson(input.Json, context) }),
3506
- ...(input.StatusCode != null && { StatusCode: se_ResponseInspectionStatusCode(input.StatusCode, context) }),
3507
- };
3508
- };
3509
- const se_ResponseInspectionBodyContains = (input, context) => {
3510
- return {
3511
- ...(input.FailureStrings != null && {
3512
- FailureStrings: se_ResponseInspectionBodyContainsFailureStrings(input.FailureStrings, context),
3513
- }),
3514
- ...(input.SuccessStrings != null && {
3515
- SuccessStrings: se_ResponseInspectionBodyContainsSuccessStrings(input.SuccessStrings, context),
3516
- }),
3517
- };
3518
- };
3519
- const se_ResponseInspectionBodyContainsFailureStrings = (input, context) => {
3520
- return input
3521
- .filter((e) => e != null)
3522
- .map((entry) => {
3523
- return entry;
3524
- });
3525
- };
3526
- const se_ResponseInspectionBodyContainsSuccessStrings = (input, context) => {
3527
- return input
3528
- .filter((e) => e != null)
3529
- .map((entry) => {
3530
- return entry;
3531
- });
3532
- };
3533
- const se_ResponseInspectionHeader = (input, context) => {
3534
- return {
3535
- ...(input.FailureValues != null && {
3536
- FailureValues: se_ResponseInspectionHeaderFailureValues(input.FailureValues, context),
3537
- }),
3538
- ...(input.Name != null && { Name: input.Name }),
3539
- ...(input.SuccessValues != null && {
3540
- SuccessValues: se_ResponseInspectionHeaderSuccessValues(input.SuccessValues, context),
3541
- }),
3542
- };
3543
- };
3544
- const se_ResponseInspectionHeaderFailureValues = (input, context) => {
3545
- return input
3546
- .filter((e) => e != null)
3547
- .map((entry) => {
3548
- return entry;
3549
- });
3550
- };
3551
- const se_ResponseInspectionHeaderSuccessValues = (input, context) => {
3552
- return input
3553
- .filter((e) => e != null)
3554
- .map((entry) => {
3555
- return entry;
3556
- });
3557
- };
3558
- const se_ResponseInspectionJson = (input, context) => {
3559
- return {
3560
- ...(input.FailureValues != null && {
3561
- FailureValues: se_ResponseInspectionJsonFailureValues(input.FailureValues, context),
3562
- }),
3563
- ...(input.Identifier != null && { Identifier: input.Identifier }),
3564
- ...(input.SuccessValues != null && {
3565
- SuccessValues: se_ResponseInspectionJsonSuccessValues(input.SuccessValues, context),
3566
- }),
3567
- };
3568
- };
3569
- const se_ResponseInspectionJsonFailureValues = (input, context) => {
3570
- return input
3571
- .filter((e) => e != null)
3572
- .map((entry) => {
3573
- return entry;
3574
- });
3575
- };
3576
- const se_ResponseInspectionJsonSuccessValues = (input, context) => {
3577
- return input
3578
- .filter((e) => e != null)
3579
- .map((entry) => {
3580
- return entry;
3581
- });
3582
- };
3583
- const se_ResponseInspectionStatusCode = (input, context) => {
3584
- return {
3585
- ...(input.FailureCodes != null && {
3586
- FailureCodes: se_ResponseInspectionStatusCodeFailureCodes(input.FailureCodes, context),
3587
- }),
3588
- ...(input.SuccessCodes != null && {
3589
- SuccessCodes: se_ResponseInspectionStatusCodeSuccessCodes(input.SuccessCodes, context),
3590
- }),
3591
- };
3592
- };
3593
- const se_ResponseInspectionStatusCodeFailureCodes = (input, context) => {
3594
- return input
3595
- .filter((e) => e != null)
3596
- .map((entry) => {
3597
- return entry;
3598
- });
3599
- };
3600
- const se_ResponseInspectionStatusCodeSuccessCodes = (input, context) => {
3601
- return input
3602
- .filter((e) => e != null)
3603
- .map((entry) => {
3604
- return entry;
3605
- });
3606
- };
3607
- const se_Rule = (input, context) => {
3608
- return {
3609
- ...(input.Action != null && { Action: se_RuleAction(input.Action, context) }),
3610
- ...(input.CaptchaConfig != null && { CaptchaConfig: se_CaptchaConfig(input.CaptchaConfig, context) }),
3611
- ...(input.ChallengeConfig != null && { ChallengeConfig: se_ChallengeConfig(input.ChallengeConfig, context) }),
3612
- ...(input.Name != null && { Name: input.Name }),
3613
- ...(input.OverrideAction != null && { OverrideAction: se_OverrideAction(input.OverrideAction, context) }),
3614
- ...(input.Priority != null && { Priority: input.Priority }),
3615
- ...(input.RuleLabels != null && { RuleLabels: se_Labels(input.RuleLabels, context) }),
3616
- ...(input.Statement != null && { Statement: se_Statement(input.Statement, context) }),
3617
- ...(input.VisibilityConfig != null && { VisibilityConfig: se_VisibilityConfig(input.VisibilityConfig, context) }),
3618
- };
3619
- };
3620
- const se_RuleAction = (input, context) => {
3621
- return {
3622
- ...(input.Allow != null && { Allow: se_AllowAction(input.Allow, context) }),
3623
- ...(input.Block != null && { Block: se_BlockAction(input.Block, context) }),
3624
- ...(input.Captcha != null && { Captcha: se_CaptchaAction(input.Captcha, context) }),
3625
- ...(input.Challenge != null && { Challenge: se_ChallengeAction(input.Challenge, context) }),
3626
- ...(input.Count != null && { Count: se_CountAction(input.Count, context) }),
3627
- };
3628
- };
3629
- const se_RuleActionOverride = (input, context) => {
3630
- return {
3631
- ...(input.ActionToUse != null && { ActionToUse: se_RuleAction(input.ActionToUse, context) }),
3632
- ...(input.Name != null && { Name: input.Name }),
3633
- };
3634
- };
3635
- const se_RuleActionOverrides = (input, context) => {
3636
- return input
3637
- .filter((e) => e != null)
3638
- .map((entry) => {
3639
- return se_RuleActionOverride(entry, context);
3640
- });
3641
- };
3642
- const se_RuleGroupReferenceStatement = (input, context) => {
3643
- return {
3644
- ...(input.ARN != null && { ARN: input.ARN }),
3645
- ...(input.ExcludedRules != null && { ExcludedRules: se_ExcludedRules(input.ExcludedRules, context) }),
3646
- ...(input.RuleActionOverrides != null && {
3647
- RuleActionOverrides: se_RuleActionOverrides(input.RuleActionOverrides, context),
3648
- }),
3649
- };
3650
- };
3651
- const se_Rules = (input, context) => {
3652
- return input
3653
- .filter((e) => e != null)
3654
- .map((entry) => {
3655
- return se_Rule(entry, context);
3656
- });
3657
- };
3658
- const se_SingleHeader = (input, context) => {
3659
- return {
3660
- ...(input.Name != null && { Name: input.Name }),
3661
- };
3662
- };
3663
- const se_SingleQueryArgument = (input, context) => {
3664
- return {
3665
- ...(input.Name != null && { Name: input.Name }),
3666
- };
3667
- };
3668
- const se_SizeConstraintStatement = (input, context) => {
3669
- return {
3670
- ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
3671
- ...(input.FieldToMatch != null && { FieldToMatch: se_FieldToMatch(input.FieldToMatch, context) }),
3672
- ...(input.Size != null && { Size: input.Size }),
3673
- ...(input.TextTransformations != null && {
3674
- TextTransformations: se_TextTransformations(input.TextTransformations, context),
3675
- }),
3676
- };
3677
- };
3678
- const se_SqliMatchStatement = (input, context) => {
3679
- return {
3680
- ...(input.FieldToMatch != null && { FieldToMatch: se_FieldToMatch(input.FieldToMatch, context) }),
3681
- ...(input.SensitivityLevel != null && { SensitivityLevel: input.SensitivityLevel }),
3682
- ...(input.TextTransformations != null && {
3683
- TextTransformations: se_TextTransformations(input.TextTransformations, context),
3684
- }),
3685
- };
3686
- };
3687
- const se_Statement = (input, context) => {
3688
- return {
3689
- ...(input.AndStatement != null && { AndStatement: se_AndStatement(input.AndStatement, context) }),
3690
- ...(input.ByteMatchStatement != null && {
3691
- ByteMatchStatement: se_ByteMatchStatement(input.ByteMatchStatement, context),
3692
- }),
3693
- ...(input.GeoMatchStatement != null && {
3694
- GeoMatchStatement: se_GeoMatchStatement(input.GeoMatchStatement, context),
3695
- }),
3696
- ...(input.IPSetReferenceStatement != null && {
3697
- IPSetReferenceStatement: se_IPSetReferenceStatement(input.IPSetReferenceStatement, context),
3698
- }),
3699
- ...(input.LabelMatchStatement != null && {
3700
- LabelMatchStatement: se_LabelMatchStatement(input.LabelMatchStatement, context),
3701
- }),
3702
- ...(input.ManagedRuleGroupStatement != null && {
3703
- ManagedRuleGroupStatement: se_ManagedRuleGroupStatement(input.ManagedRuleGroupStatement, context),
3704
- }),
3705
- ...(input.NotStatement != null && { NotStatement: se_NotStatement(input.NotStatement, context) }),
3706
- ...(input.OrStatement != null && { OrStatement: se_OrStatement(input.OrStatement, context) }),
3707
- ...(input.RateBasedStatement != null && {
3708
- RateBasedStatement: se_RateBasedStatement(input.RateBasedStatement, context),
3709
- }),
3710
- ...(input.RegexMatchStatement != null && {
3711
- RegexMatchStatement: se_RegexMatchStatement(input.RegexMatchStatement, context),
3712
- }),
3713
- ...(input.RegexPatternSetReferenceStatement != null && {
3714
- RegexPatternSetReferenceStatement: se_RegexPatternSetReferenceStatement(input.RegexPatternSetReferenceStatement, context),
3715
- }),
3716
- ...(input.RuleGroupReferenceStatement != null && {
3717
- RuleGroupReferenceStatement: se_RuleGroupReferenceStatement(input.RuleGroupReferenceStatement, context),
3718
- }),
3719
- ...(input.SizeConstraintStatement != null && {
3720
- SizeConstraintStatement: se_SizeConstraintStatement(input.SizeConstraintStatement, context),
3721
- }),
3722
- ...(input.SqliMatchStatement != null && {
3723
- SqliMatchStatement: se_SqliMatchStatement(input.SqliMatchStatement, context),
3724
- }),
3725
- ...(input.XssMatchStatement != null && {
3726
- XssMatchStatement: se_XssMatchStatement(input.XssMatchStatement, context),
3727
- }),
3728
- };
3729
- };
3730
- const se_Statements = (input, context) => {
3731
- return input
3732
- .filter((e) => e != null)
3733
- .map((entry) => {
3734
- return se_Statement(entry, context);
3735
- });
3736
- };
3737
- const se_Tag = (input, context) => {
3738
- return {
3739
- ...(input.Key != null && { Key: input.Key }),
3740
- ...(input.Value != null && { Value: input.Value }),
3741
- };
3742
- };
3743
- const se_TagKeyList = (input, context) => {
3744
- return input
3745
- .filter((e) => e != null)
3746
- .map((entry) => {
3747
- return entry;
3748
- });
3749
- };
3750
- const se_TagList = (input, context) => {
3751
- return input
3752
- .filter((e) => e != null)
3753
- .map((entry) => {
3754
- return se_Tag(entry, context);
3755
- });
3756
- };
3757
- const se_TagResourceRequest = (input, context) => {
3758
- return {
3759
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3760
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3761
- };
3762
- };
3763
- const se_TextTransformation = (input, context) => {
3764
- return {
3765
- ...(input.Priority != null && { Priority: input.Priority }),
3766
- ...(input.Type != null && { Type: input.Type }),
3767
- };
3768
- };
3769
- const se_TextTransformations = (input, context) => {
3770
- return input
3771
- .filter((e) => e != null)
3772
- .map((entry) => {
3773
- return se_TextTransformation(entry, context);
3774
- });
3775
- };
3776
- const se_TimeWindow = (input, context) => {
3777
- return {
3778
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3779
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3780
- };
3781
- };
3782
- const se_TokenDomains = (input, context) => {
3783
- return input
3784
- .filter((e) => e != null)
3785
- .map((entry) => {
3786
- return entry;
3787
- });
3788
- };
3789
- const se_UntagResourceRequest = (input, context) => {
3790
- return {
3791
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3792
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
3793
- };
3794
- };
3795
- const se_UpdateIPSetRequest = (input, context) => {
3796
- return {
3797
- ...(input.Addresses != null && { Addresses: se_IPAddresses(input.Addresses, context) }),
3798
- ...(input.Description != null && { Description: input.Description }),
3799
- ...(input.Id != null && { Id: input.Id }),
3800
- ...(input.LockToken != null && { LockToken: input.LockToken }),
3801
- ...(input.Name != null && { Name: input.Name }),
3802
- ...(input.Scope != null && { Scope: input.Scope }),
3803
- };
3804
- };
3805
- const se_UpdateManagedRuleSetVersionExpiryDateRequest = (input, context) => {
3806
- return {
3807
- ...(input.ExpiryTimestamp != null && { ExpiryTimestamp: Math.round(input.ExpiryTimestamp.getTime() / 1000) }),
3808
- ...(input.Id != null && { Id: input.Id }),
3809
- ...(input.LockToken != null && { LockToken: input.LockToken }),
3810
- ...(input.Name != null && { Name: input.Name }),
3811
- ...(input.Scope != null && { Scope: input.Scope }),
3812
- ...(input.VersionToExpire != null && { VersionToExpire: input.VersionToExpire }),
3813
- };
3814
- };
3815
- const se_UpdateRegexPatternSetRequest = (input, context) => {
3816
- return {
3817
- ...(input.Description != null && { Description: input.Description }),
3818
- ...(input.Id != null && { Id: input.Id }),
3819
- ...(input.LockToken != null && { LockToken: input.LockToken }),
3820
- ...(input.Name != null && { Name: input.Name }),
3821
- ...(input.RegularExpressionList != null && {
3822
- RegularExpressionList: se_RegularExpressionList(input.RegularExpressionList, context),
3823
- }),
3824
- ...(input.Scope != null && { Scope: input.Scope }),
3825
- };
3826
- };
3827
- const se_UpdateRuleGroupRequest = (input, context) => {
3828
- return {
3829
- ...(input.CustomResponseBodies != null && {
3830
- CustomResponseBodies: se_CustomResponseBodies(input.CustomResponseBodies, context),
3831
- }),
3832
- ...(input.Description != null && { Description: input.Description }),
3833
- ...(input.Id != null && { Id: input.Id }),
3834
- ...(input.LockToken != null && { LockToken: input.LockToken }),
3835
- ...(input.Name != null && { Name: input.Name }),
3836
- ...(input.Rules != null && { Rules: se_Rules(input.Rules, context) }),
3837
- ...(input.Scope != null && { Scope: input.Scope }),
3838
- ...(input.VisibilityConfig != null && { VisibilityConfig: se_VisibilityConfig(input.VisibilityConfig, context) }),
3839
- };
3840
- };
3841
- const se_UpdateWebACLRequest = (input, context) => {
3842
- return {
3843
- ...(input.AssociationConfig != null && {
3844
- AssociationConfig: se_AssociationConfig(input.AssociationConfig, context),
3845
- }),
3846
- ...(input.CaptchaConfig != null && { CaptchaConfig: se_CaptchaConfig(input.CaptchaConfig, context) }),
3847
- ...(input.ChallengeConfig != null && { ChallengeConfig: se_ChallengeConfig(input.ChallengeConfig, context) }),
3848
- ...(input.CustomResponseBodies != null && {
3849
- CustomResponseBodies: se_CustomResponseBodies(input.CustomResponseBodies, context),
3850
- }),
3851
- ...(input.DefaultAction != null && { DefaultAction: se_DefaultAction(input.DefaultAction, context) }),
3852
- ...(input.Description != null && { Description: input.Description }),
3853
- ...(input.Id != null && { Id: input.Id }),
3854
- ...(input.LockToken != null && { LockToken: input.LockToken }),
3855
- ...(input.Name != null && { Name: input.Name }),
3856
- ...(input.Rules != null && { Rules: se_Rules(input.Rules, context) }),
3857
- ...(input.Scope != null && { Scope: input.Scope }),
3858
- ...(input.TokenDomains != null && { TokenDomains: se_TokenDomains(input.TokenDomains, context) }),
3859
- ...(input.VisibilityConfig != null && { VisibilityConfig: se_VisibilityConfig(input.VisibilityConfig, context) }),
3860
- };
3861
- };
3862
- const se_UriPath = (input, context) => {
3863
- return {};
3864
- };
3865
- const se_UsernameField = (input, context) => {
3866
- return {
3867
- ...(input.Identifier != null && { Identifier: input.Identifier }),
3868
- };
3869
- };
3870
- const se_VersionsToPublish = (input, context) => {
3871
- return Object.entries(input).reduce((acc, [key, value]) => {
3872
- if (value === null) {
3873
- return acc;
3874
- }
3875
- acc[key] = se_VersionToPublish(value, context);
3876
- return acc;
3877
- }, {});
3878
- };
3879
- const se_VersionToPublish = (input, context) => {
3880
- return {
3881
- ...(input.AssociatedRuleGroupArn != null && { AssociatedRuleGroupArn: input.AssociatedRuleGroupArn }),
3882
- ...(input.ForecastedLifetime != null && { ForecastedLifetime: input.ForecastedLifetime }),
3883
- };
3884
- };
3885
- const se_VisibilityConfig = (input, context) => {
3886
- return {
3887
- ...(input.CloudWatchMetricsEnabled != null && { CloudWatchMetricsEnabled: input.CloudWatchMetricsEnabled }),
3888
- ...(input.MetricName != null && { MetricName: input.MetricName }),
3889
- ...(input.SampledRequestsEnabled != null && { SampledRequestsEnabled: input.SampledRequestsEnabled }),
3890
- };
3891
- };
3892
- const se_XssMatchStatement = (input, context) => {
3893
- return {
3894
- ...(input.FieldToMatch != null && { FieldToMatch: se_FieldToMatch(input.FieldToMatch, context) }),
3895
- ...(input.TextTransformations != null && {
3896
- TextTransformations: se_TextTransformations(input.TextTransformations, context),
3897
- }),
3898
- };
3899
- };
3900
- const de_ActionCondition = (output, context) => {
3901
- return {
3902
- Action: __expectString(output.Action),
3903
- };
3904
- };
3905
- const de_All = (output, context) => {
3906
- return {};
3907
- };
3908
- const de_AllowAction = (output, context) => {
3909
- return {
3910
- CustomRequestHandling: output.CustomRequestHandling != null
3911
- ? de_CustomRequestHandling(output.CustomRequestHandling, context)
3912
- : undefined,
3913
- };
3914
- };
3915
- const de_AllQueryArguments = (output, context) => {
3916
- return {};
3917
- };
3918
- const de_AndStatement = (output, context) => {
3919
- return {
3920
- Statements: output.Statements != null ? de_Statements(output.Statements, context) : undefined,
3921
- };
3922
- };
3923
- const de_AssociateWebACLResponse = (output, context) => {
3924
- return {};
3925
- };
3926
- const de_AssociationConfig = (output, context) => {
3927
- return {
3928
- RequestBody: output.RequestBody != null ? de_RequestBody(output.RequestBody, context) : undefined,
3929
- };
3930
- };
3931
- const de_AWSManagedRulesATPRuleSet = (output, context) => {
3932
- return {
3933
- LoginPath: __expectString(output.LoginPath),
3934
- RequestInspection: output.RequestInspection != null ? de_RequestInspection(output.RequestInspection, context) : undefined,
3935
- ResponseInspection: output.ResponseInspection != null ? de_ResponseInspection(output.ResponseInspection, context) : undefined,
3936
- };
3937
- };
3938
- const de_AWSManagedRulesBotControlRuleSet = (output, context) => {
3939
- return {
3940
- InspectionLevel: __expectString(output.InspectionLevel),
3941
- };
3942
- };
3943
- const de_BlockAction = (output, context) => {
3944
- return {
3945
- CustomResponse: output.CustomResponse != null ? de_CustomResponse(output.CustomResponse, context) : undefined,
3946
- };
3947
- };
3948
- const de_Body = (output, context) => {
3949
- return {
3950
- OversizeHandling: __expectString(output.OversizeHandling),
3951
- };
3952
- };
3953
- const de_ByteMatchStatement = (output, context) => {
3954
- return {
3955
- FieldToMatch: output.FieldToMatch != null ? de_FieldToMatch(output.FieldToMatch, context) : undefined,
3956
- PositionalConstraint: __expectString(output.PositionalConstraint),
3957
- SearchString: output.SearchString != null ? context.base64Decoder(output.SearchString) : undefined,
3958
- TextTransformations: output.TextTransformations != null ? de_TextTransformations(output.TextTransformations, context) : undefined,
3959
- };
3960
- };
3961
- const de_CaptchaAction = (output, context) => {
3962
- return {
3963
- CustomRequestHandling: output.CustomRequestHandling != null
3964
- ? de_CustomRequestHandling(output.CustomRequestHandling, context)
3965
- : undefined,
3966
- };
3967
- };
3968
- const de_CaptchaConfig = (output, context) => {
3969
- return {
3970
- ImmunityTimeProperty: output.ImmunityTimeProperty != null ? de_ImmunityTimeProperty(output.ImmunityTimeProperty, context) : undefined,
3971
- };
3972
- };
3973
- const de_CaptchaResponse = (output, context) => {
3974
- return {
3975
- FailureReason: __expectString(output.FailureReason),
3976
- ResponseCode: __expectInt32(output.ResponseCode),
3977
- SolveTimestamp: __expectLong(output.SolveTimestamp),
3978
- };
3979
- };
3980
- const de_ChallengeAction = (output, context) => {
3981
- return {
3982
- CustomRequestHandling: output.CustomRequestHandling != null
3983
- ? de_CustomRequestHandling(output.CustomRequestHandling, context)
3984
- : undefined,
3985
- };
3986
- };
3987
- const de_ChallengeConfig = (output, context) => {
3988
- return {
3989
- ImmunityTimeProperty: output.ImmunityTimeProperty != null ? de_ImmunityTimeProperty(output.ImmunityTimeProperty, context) : undefined,
3990
- };
3991
- };
3992
- const de_ChallengeResponse = (output, context) => {
3993
- return {
3994
- FailureReason: __expectString(output.FailureReason),
3995
- ResponseCode: __expectInt32(output.ResponseCode),
3996
- SolveTimestamp: __expectLong(output.SolveTimestamp),
3997
- };
3998
- };
3999
- const de_CheckCapacityResponse = (output, context) => {
4000
- return {
4001
- Capacity: __expectLong(output.Capacity),
4002
- };
4003
- };
4004
- const de_Condition = (output, context) => {
4005
- return {
4006
- ActionCondition: output.ActionCondition != null ? de_ActionCondition(output.ActionCondition, context) : undefined,
4007
- LabelNameCondition: output.LabelNameCondition != null ? de_LabelNameCondition(output.LabelNameCondition, context) : undefined,
4008
- };
4009
- };
4010
- const de_Conditions = (output, context) => {
4011
- const retVal = (output || [])
4012
- .filter((e) => e != null)
4013
- .map((entry) => {
4014
- if (entry === null) {
4015
- return null;
4016
- }
4017
- return de_Condition(entry, context);
4018
- });
4019
- return retVal;
4020
- };
4021
- const de_CookieMatchPattern = (output, context) => {
4022
- return {
4023
- All: output.All != null ? de_All(output.All, context) : undefined,
4024
- ExcludedCookies: output.ExcludedCookies != null ? de_CookieNames(output.ExcludedCookies, context) : undefined,
4025
- IncludedCookies: output.IncludedCookies != null ? de_CookieNames(output.IncludedCookies, context) : undefined,
4026
- };
4027
- };
4028
- const de_CookieNames = (output, context) => {
4029
- const retVal = (output || [])
4030
- .filter((e) => e != null)
4031
- .map((entry) => {
4032
- if (entry === null) {
4033
- return null;
4034
- }
4035
- return __expectString(entry);
4036
- });
4037
- return retVal;
4038
- };
4039
- const de_Cookies = (output, context) => {
4040
- return {
4041
- MatchPattern: output.MatchPattern != null ? de_CookieMatchPattern(output.MatchPattern, context) : undefined,
4042
- MatchScope: __expectString(output.MatchScope),
4043
- OversizeHandling: __expectString(output.OversizeHandling),
4044
- };
4045
- };
4046
- const de_CountAction = (output, context) => {
4047
- return {
4048
- CustomRequestHandling: output.CustomRequestHandling != null
4049
- ? de_CustomRequestHandling(output.CustomRequestHandling, context)
4050
- : undefined,
4051
- };
4052
- };
4053
- const de_CountryCodes = (output, context) => {
4054
- const retVal = (output || [])
4055
- .filter((e) => e != null)
4056
- .map((entry) => {
4057
- if (entry === null) {
4058
- return null;
4059
- }
4060
- return __expectString(entry);
4061
- });
4062
- return retVal;
4063
- };
4064
- const de_CreateIPSetResponse = (output, context) => {
4065
- return {
4066
- Summary: output.Summary != null ? de_IPSetSummary(output.Summary, context) : undefined,
4067
- };
4068
- };
4069
- const de_CreateRegexPatternSetResponse = (output, context) => {
4070
- return {
4071
- Summary: output.Summary != null ? de_RegexPatternSetSummary(output.Summary, context) : undefined,
4072
- };
4073
- };
4074
- const de_CreateRuleGroupResponse = (output, context) => {
4075
- return {
4076
- Summary: output.Summary != null ? de_RuleGroupSummary(output.Summary, context) : undefined,
4077
- };
4078
- };
4079
- const de_CreateWebACLResponse = (output, context) => {
4080
- return {
4081
- Summary: output.Summary != null ? de_WebACLSummary(output.Summary, context) : undefined,
4082
- };
4083
- };
4084
- const de_CustomHTTPHeader = (output, context) => {
4085
- return {
4086
- Name: __expectString(output.Name),
4087
- Value: __expectString(output.Value),
4088
- };
4089
- };
4090
- const de_CustomHTTPHeaders = (output, context) => {
4091
- const retVal = (output || [])
4092
- .filter((e) => e != null)
4093
- .map((entry) => {
4094
- if (entry === null) {
4095
- return null;
4096
- }
4097
- return de_CustomHTTPHeader(entry, context);
4098
- });
4099
- return retVal;
4100
- };
4101
- const de_CustomRequestHandling = (output, context) => {
4102
- return {
4103
- InsertHeaders: output.InsertHeaders != null ? de_CustomHTTPHeaders(output.InsertHeaders, context) : undefined,
4104
- };
4105
- };
4106
- const de_CustomResponse = (output, context) => {
4107
- return {
4108
- CustomResponseBodyKey: __expectString(output.CustomResponseBodyKey),
4109
- ResponseCode: __expectInt32(output.ResponseCode),
4110
- ResponseHeaders: output.ResponseHeaders != null ? de_CustomHTTPHeaders(output.ResponseHeaders, context) : undefined,
4111
- };
4112
- };
4113
- const de_CustomResponseBodies = (output, context) => {
4114
- return Object.entries(output).reduce((acc, [key, value]) => {
4115
- if (value === null) {
4116
- return acc;
4117
- }
4118
- acc[key] = de_CustomResponseBody(value, context);
4119
- return acc;
4120
- }, {});
4121
- };
4122
- const de_CustomResponseBody = (output, context) => {
4123
- return {
4124
- Content: __expectString(output.Content),
4125
- ContentType: __expectString(output.ContentType),
4126
- };
4127
- };
4128
- const de_DefaultAction = (output, context) => {
4129
- return {
4130
- Allow: output.Allow != null ? de_AllowAction(output.Allow, context) : undefined,
4131
- Block: output.Block != null ? de_BlockAction(output.Block, context) : undefined,
4132
- };
4133
- };
4134
- const de_DeleteFirewallManagerRuleGroupsResponse = (output, context) => {
4135
- return {
4136
- NextWebACLLockToken: __expectString(output.NextWebACLLockToken),
4137
- };
4138
- };
4139
- const de_DeleteIPSetResponse = (output, context) => {
4140
- return {};
4141
- };
4142
- const de_DeleteLoggingConfigurationResponse = (output, context) => {
4143
- return {};
4144
- };
4145
- const de_DeletePermissionPolicyResponse = (output, context) => {
4146
- return {};
4147
- };
4148
- const de_DeleteRegexPatternSetResponse = (output, context) => {
4149
- return {};
4150
- };
4151
- const de_DeleteRuleGroupResponse = (output, context) => {
4152
- return {};
4153
- };
4154
- const de_DeleteWebACLResponse = (output, context) => {
4155
- return {};
4156
- };
4157
- const de_DescribeManagedRuleGroupResponse = (output, context) => {
4158
- return {
4159
- AvailableLabels: output.AvailableLabels != null ? de_LabelSummaries(output.AvailableLabels, context) : undefined,
4160
- Capacity: __expectLong(output.Capacity),
4161
- ConsumedLabels: output.ConsumedLabels != null ? de_LabelSummaries(output.ConsumedLabels, context) : undefined,
4162
- LabelNamespace: __expectString(output.LabelNamespace),
4163
- Rules: output.Rules != null ? de_RuleSummaries(output.Rules, context) : undefined,
4164
- SnsTopicArn: __expectString(output.SnsTopicArn),
4165
- VersionName: __expectString(output.VersionName),
4166
- };
4167
- };
4168
- const de_DisassociateWebACLResponse = (output, context) => {
4169
- return {};
4170
- };
4171
- const de_ExcludedRule = (output, context) => {
4172
- return {
4173
- Name: __expectString(output.Name),
4174
- };
4175
- };
4176
- const de_ExcludedRules = (output, context) => {
4177
- const retVal = (output || [])
4178
- .filter((e) => e != null)
4179
- .map((entry) => {
4180
- if (entry === null) {
4181
- return null;
4182
- }
4183
- return de_ExcludedRule(entry, context);
4184
- });
4185
- return retVal;
4186
- };
4187
- const de_FieldToMatch = (output, context) => {
4188
- return {
4189
- AllQueryArguments: output.AllQueryArguments != null ? de_AllQueryArguments(output.AllQueryArguments, context) : undefined,
4190
- Body: output.Body != null ? de_Body(output.Body, context) : undefined,
4191
- Cookies: output.Cookies != null ? de_Cookies(output.Cookies, context) : undefined,
4192
- Headers: output.Headers != null ? de_Headers(output.Headers, context) : undefined,
4193
- JsonBody: output.JsonBody != null ? de_JsonBody(output.JsonBody, context) : undefined,
4194
- Method: output.Method != null ? de_Method(output.Method, context) : undefined,
4195
- QueryString: output.QueryString != null ? de_QueryString(output.QueryString, context) : undefined,
4196
- SingleHeader: output.SingleHeader != null ? de_SingleHeader(output.SingleHeader, context) : undefined,
4197
- SingleQueryArgument: output.SingleQueryArgument != null ? de_SingleQueryArgument(output.SingleQueryArgument, context) : undefined,
4198
- UriPath: output.UriPath != null ? de_UriPath(output.UriPath, context) : undefined,
4199
- };
4200
- };
4201
- const de_Filter = (output, context) => {
4202
- return {
4203
- Behavior: __expectString(output.Behavior),
4204
- Conditions: output.Conditions != null ? de_Conditions(output.Conditions, context) : undefined,
4205
- Requirement: __expectString(output.Requirement),
4206
- };
4207
- };
4208
- const de_Filters = (output, context) => {
4209
- const retVal = (output || [])
4210
- .filter((e) => e != null)
4211
- .map((entry) => {
4212
- if (entry === null) {
4213
- return null;
4214
- }
4215
- return de_Filter(entry, context);
4216
- });
4217
- return retVal;
4218
- };
4219
- const de_FirewallManagerRuleGroup = (output, context) => {
4220
- return {
4221
- FirewallManagerStatement: output.FirewallManagerStatement != null
4222
- ? de_FirewallManagerStatement(output.FirewallManagerStatement, context)
4223
- : undefined,
4224
- Name: __expectString(output.Name),
4225
- OverrideAction: output.OverrideAction != null ? de_OverrideAction(output.OverrideAction, context) : undefined,
4226
- Priority: __expectInt32(output.Priority),
4227
- VisibilityConfig: output.VisibilityConfig != null ? de_VisibilityConfig(output.VisibilityConfig, context) : undefined,
4228
- };
4229
- };
4230
- const de_FirewallManagerRuleGroups = (output, context) => {
4231
- const retVal = (output || [])
4232
- .filter((e) => e != null)
4233
- .map((entry) => {
4234
- if (entry === null) {
4235
- return null;
4236
- }
4237
- return de_FirewallManagerRuleGroup(entry, context);
4238
- });
4239
- return retVal;
4240
- };
4241
- const de_FirewallManagerStatement = (output, context) => {
4242
- return {
4243
- ManagedRuleGroupStatement: output.ManagedRuleGroupStatement != null
4244
- ? de_ManagedRuleGroupStatement(output.ManagedRuleGroupStatement, context)
4245
- : undefined,
4246
- RuleGroupReferenceStatement: output.RuleGroupReferenceStatement != null
4247
- ? de_RuleGroupReferenceStatement(output.RuleGroupReferenceStatement, context)
4248
- : undefined,
4249
- };
4250
- };
4251
- const de_ForwardedIPConfig = (output, context) => {
4252
- return {
4253
- FallbackBehavior: __expectString(output.FallbackBehavior),
4254
- HeaderName: __expectString(output.HeaderName),
4255
- };
4256
- };
4257
- const de_GenerateMobileSdkReleaseUrlResponse = (output, context) => {
4258
- return {
4259
- Url: __expectString(output.Url),
4260
- };
4261
- };
4262
- const de_GeoMatchStatement = (output, context) => {
4263
- return {
4264
- CountryCodes: output.CountryCodes != null ? de_CountryCodes(output.CountryCodes, context) : undefined,
4265
- ForwardedIPConfig: output.ForwardedIPConfig != null ? de_ForwardedIPConfig(output.ForwardedIPConfig, context) : undefined,
4266
- };
4267
- };
4268
- const de_GetIPSetResponse = (output, context) => {
4269
- return {
4270
- IPSet: output.IPSet != null ? de_IPSet(output.IPSet, context) : undefined,
4271
- LockToken: __expectString(output.LockToken),
4272
- };
4273
- };
4274
- const de_GetLoggingConfigurationResponse = (output, context) => {
4275
- return {
4276
- LoggingConfiguration: output.LoggingConfiguration != null ? de_LoggingConfiguration(output.LoggingConfiguration, context) : undefined,
4277
- };
4278
- };
4279
- const de_GetManagedRuleSetResponse = (output, context) => {
4280
- return {
4281
- LockToken: __expectString(output.LockToken),
4282
- ManagedRuleSet: output.ManagedRuleSet != null ? de_ManagedRuleSet(output.ManagedRuleSet, context) : undefined,
4283
- };
4284
- };
4285
- const de_GetMobileSdkReleaseResponse = (output, context) => {
4286
- return {
4287
- MobileSdkRelease: output.MobileSdkRelease != null ? de_MobileSdkRelease(output.MobileSdkRelease, context) : undefined,
4288
- };
4289
- };
4290
- const de_GetPermissionPolicyResponse = (output, context) => {
4291
- return {
4292
- Policy: __expectString(output.Policy),
4293
- };
4294
- };
4295
- const de_GetRateBasedStatementManagedKeysResponse = (output, context) => {
4296
- return {
4297
- ManagedKeysIPV4: output.ManagedKeysIPV4 != null
4298
- ? de_RateBasedStatementManagedKeysIPSet(output.ManagedKeysIPV4, context)
4299
- : undefined,
4300
- ManagedKeysIPV6: output.ManagedKeysIPV6 != null
4301
- ? de_RateBasedStatementManagedKeysIPSet(output.ManagedKeysIPV6, context)
4302
- : undefined,
4303
- };
4304
- };
4305
- const de_GetRegexPatternSetResponse = (output, context) => {
4306
- return {
4307
- LockToken: __expectString(output.LockToken),
4308
- RegexPatternSet: output.RegexPatternSet != null ? de_RegexPatternSet(output.RegexPatternSet, context) : undefined,
4309
- };
4310
- };
4311
- const de_GetRuleGroupResponse = (output, context) => {
4312
- return {
4313
- LockToken: __expectString(output.LockToken),
4314
- RuleGroup: output.RuleGroup != null ? de_RuleGroup(output.RuleGroup, context) : undefined,
4315
- };
4316
- };
4317
- const de_GetSampledRequestsResponse = (output, context) => {
4318
- return {
4319
- PopulationSize: __expectLong(output.PopulationSize),
4320
- SampledRequests: output.SampledRequests != null ? de_SampledHTTPRequests(output.SampledRequests, context) : undefined,
4321
- TimeWindow: output.TimeWindow != null ? de_TimeWindow(output.TimeWindow, context) : undefined,
4322
- };
4323
- };
4324
- const de_GetWebACLForResourceResponse = (output, context) => {
4325
- return {
4326
- WebACL: output.WebACL != null ? de_WebACL(output.WebACL, context) : undefined,
4327
- };
4328
- };
4329
- const de_GetWebACLResponse = (output, context) => {
4330
- return {
4331
- ApplicationIntegrationURL: __expectString(output.ApplicationIntegrationURL),
4332
- LockToken: __expectString(output.LockToken),
4333
- WebACL: output.WebACL != null ? de_WebACL(output.WebACL, context) : undefined,
4334
- };
4335
- };
4336
- const de_HeaderMatchPattern = (output, context) => {
4337
- return {
4338
- All: output.All != null ? de_All(output.All, context) : undefined,
4339
- ExcludedHeaders: output.ExcludedHeaders != null ? de_HeaderNames(output.ExcludedHeaders, context) : undefined,
4340
- IncludedHeaders: output.IncludedHeaders != null ? de_HeaderNames(output.IncludedHeaders, context) : undefined,
4341
- };
4342
- };
4343
- const de_HeaderNames = (output, context) => {
4344
- const retVal = (output || [])
4345
- .filter((e) => e != null)
4346
- .map((entry) => {
4347
- if (entry === null) {
4348
- return null;
4349
- }
4350
- return __expectString(entry);
4351
- });
4352
- return retVal;
4353
- };
4354
- const de_Headers = (output, context) => {
4355
- return {
4356
- MatchPattern: output.MatchPattern != null ? de_HeaderMatchPattern(output.MatchPattern, context) : undefined,
4357
- MatchScope: __expectString(output.MatchScope),
4358
- OversizeHandling: __expectString(output.OversizeHandling),
4359
- };
4360
- };
4361
- const de_HTTPHeader = (output, context) => {
4362
- return {
4363
- Name: __expectString(output.Name),
4364
- Value: __expectString(output.Value),
4365
- };
4366
- };
4367
- const de_HTTPHeaders = (output, context) => {
4368
- const retVal = (output || [])
4369
- .filter((e) => e != null)
4370
- .map((entry) => {
4371
- if (entry === null) {
4372
- return null;
4373
- }
4374
- return de_HTTPHeader(entry, context);
4375
- });
4376
- return retVal;
4377
- };
4378
- const de_HTTPRequest = (output, context) => {
4379
- return {
4380
- ClientIP: __expectString(output.ClientIP),
4381
- Country: __expectString(output.Country),
4382
- HTTPVersion: __expectString(output.HTTPVersion),
4383
- Headers: output.Headers != null ? de_HTTPHeaders(output.Headers, context) : undefined,
4384
- Method: __expectString(output.Method),
4385
- URI: __expectString(output.URI),
4386
- };
4387
- };
4388
- const de_ImmunityTimeProperty = (output, context) => {
4389
- return {
4390
- ImmunityTime: __expectLong(output.ImmunityTime),
4391
- };
4392
- };
4393
- const de_IPAddresses = (output, context) => {
4394
- const retVal = (output || [])
4395
- .filter((e) => e != null)
4396
- .map((entry) => {
4397
- if (entry === null) {
4398
- return null;
4399
- }
4400
- return __expectString(entry);
4401
- });
4402
- return retVal;
4403
- };
4404
- const de_IPSet = (output, context) => {
4405
- return {
4406
- ARN: __expectString(output.ARN),
4407
- Addresses: output.Addresses != null ? de_IPAddresses(output.Addresses, context) : undefined,
4408
- Description: __expectString(output.Description),
4409
- IPAddressVersion: __expectString(output.IPAddressVersion),
4410
- Id: __expectString(output.Id),
4411
- Name: __expectString(output.Name),
4412
- };
4413
- };
4414
- const de_IPSetForwardedIPConfig = (output, context) => {
4415
- return {
4416
- FallbackBehavior: __expectString(output.FallbackBehavior),
4417
- HeaderName: __expectString(output.HeaderName),
4418
- Position: __expectString(output.Position),
4419
- };
4420
- };
4421
- const de_IPSetReferenceStatement = (output, context) => {
4422
- return {
4423
- ARN: __expectString(output.ARN),
4424
- IPSetForwardedIPConfig: output.IPSetForwardedIPConfig != null
4425
- ? de_IPSetForwardedIPConfig(output.IPSetForwardedIPConfig, context)
4426
- : undefined,
4427
- };
4428
- };
4429
- const de_IPSetSummaries = (output, context) => {
4430
- const retVal = (output || [])
4431
- .filter((e) => e != null)
4432
- .map((entry) => {
4433
- if (entry === null) {
4434
- return null;
4435
- }
4436
- return de_IPSetSummary(entry, context);
4437
- });
4438
- return retVal;
4439
- };
4440
- const de_IPSetSummary = (output, context) => {
4441
- return {
4442
- ARN: __expectString(output.ARN),
4443
- Description: __expectString(output.Description),
4444
- Id: __expectString(output.Id),
4445
- LockToken: __expectString(output.LockToken),
4446
- Name: __expectString(output.Name),
4447
- };
4448
- };
4449
- const de_JsonBody = (output, context) => {
4450
- return {
4451
- InvalidFallbackBehavior: __expectString(output.InvalidFallbackBehavior),
4452
- MatchPattern: output.MatchPattern != null ? de_JsonMatchPattern(output.MatchPattern, context) : undefined,
4453
- MatchScope: __expectString(output.MatchScope),
4454
- OversizeHandling: __expectString(output.OversizeHandling),
4455
- };
4456
- };
4457
- const de_JsonMatchPattern = (output, context) => {
4458
- return {
4459
- All: output.All != null ? de_All(output.All, context) : undefined,
4460
- IncludedPaths: output.IncludedPaths != null ? de_JsonPointerPaths(output.IncludedPaths, context) : undefined,
4461
- };
4462
- };
4463
- const de_JsonPointerPaths = (output, context) => {
4464
- const retVal = (output || [])
4465
- .filter((e) => e != null)
4466
- .map((entry) => {
4467
- if (entry === null) {
4468
- return null;
4469
- }
4470
- return __expectString(entry);
4471
- });
4472
- return retVal;
4473
- };
4474
- const de_Label = (output, context) => {
4475
- return {
4476
- Name: __expectString(output.Name),
4477
- };
4478
- };
4479
- const de_LabelMatchStatement = (output, context) => {
4480
- return {
4481
- Key: __expectString(output.Key),
4482
- Scope: __expectString(output.Scope),
4483
- };
4484
- };
4485
- const de_LabelNameCondition = (output, context) => {
4486
- return {
4487
- LabelName: __expectString(output.LabelName),
4488
- };
4489
- };
4490
- const de_Labels = (output, context) => {
4491
- const retVal = (output || [])
4492
- .filter((e) => e != null)
4493
- .map((entry) => {
4494
- if (entry === null) {
4495
- return null;
4496
- }
4497
- return de_Label(entry, context);
4498
- });
4499
- return retVal;
4500
- };
4501
- const de_LabelSummaries = (output, context) => {
4502
- const retVal = (output || [])
4503
- .filter((e) => e != null)
4504
- .map((entry) => {
4505
- if (entry === null) {
4506
- return null;
4507
- }
4508
- return de_LabelSummary(entry, context);
2645
+ const se_AndStatement = (input, context) => {
2646
+ return take(input, {
2647
+ Statements: (_) => se_Statements(_, context),
4509
2648
  });
4510
- return retVal;
4511
- };
4512
- const de_LabelSummary = (output, context) => {
4513
- return {
4514
- Name: __expectString(output.Name),
4515
- };
4516
- };
4517
- const de_ListAvailableManagedRuleGroupsResponse = (output, context) => {
4518
- return {
4519
- ManagedRuleGroups: output.ManagedRuleGroups != null ? de_ManagedRuleGroupSummaries(output.ManagedRuleGroups, context) : undefined,
4520
- NextMarker: __expectString(output.NextMarker),
4521
- };
4522
- };
4523
- const de_ListAvailableManagedRuleGroupVersionsResponse = (output, context) => {
4524
- return {
4525
- CurrentDefaultVersion: __expectString(output.CurrentDefaultVersion),
4526
- NextMarker: __expectString(output.NextMarker),
4527
- Versions: output.Versions != null ? de_ManagedRuleGroupVersions(output.Versions, context) : undefined,
4528
- };
4529
- };
4530
- const de_ListIPSetsResponse = (output, context) => {
4531
- return {
4532
- IPSets: output.IPSets != null ? de_IPSetSummaries(output.IPSets, context) : undefined,
4533
- NextMarker: __expectString(output.NextMarker),
4534
- };
4535
- };
4536
- const de_ListLoggingConfigurationsResponse = (output, context) => {
4537
- return {
4538
- LoggingConfigurations: output.LoggingConfigurations != null
4539
- ? de_LoggingConfigurations(output.LoggingConfigurations, context)
4540
- : undefined,
4541
- NextMarker: __expectString(output.NextMarker),
4542
- };
4543
- };
4544
- const de_ListManagedRuleSetsResponse = (output, context) => {
4545
- return {
4546
- ManagedRuleSets: output.ManagedRuleSets != null ? de_ManagedRuleSetSummaries(output.ManagedRuleSets, context) : undefined,
4547
- NextMarker: __expectString(output.NextMarker),
4548
- };
4549
- };
4550
- const de_ListMobileSdkReleasesResponse = (output, context) => {
4551
- return {
4552
- NextMarker: __expectString(output.NextMarker),
4553
- ReleaseSummaries: output.ReleaseSummaries != null ? de_ReleaseSummaries(output.ReleaseSummaries, context) : undefined,
4554
- };
4555
- };
4556
- const de_ListRegexPatternSetsResponse = (output, context) => {
4557
- return {
4558
- NextMarker: __expectString(output.NextMarker),
4559
- RegexPatternSets: output.RegexPatternSets != null ? de_RegexPatternSetSummaries(output.RegexPatternSets, context) : undefined,
4560
- };
4561
- };
4562
- const de_ListResourcesForWebACLResponse = (output, context) => {
4563
- return {
4564
- ResourceArns: output.ResourceArns != null ? de_ResourceArns(output.ResourceArns, context) : undefined,
4565
- };
4566
- };
4567
- const de_ListRuleGroupsResponse = (output, context) => {
4568
- return {
4569
- NextMarker: __expectString(output.NextMarker),
4570
- RuleGroups: output.RuleGroups != null ? de_RuleGroupSummaries(output.RuleGroups, context) : undefined,
4571
- };
4572
- };
4573
- const de_ListTagsForResourceResponse = (output, context) => {
4574
- return {
4575
- NextMarker: __expectString(output.NextMarker),
4576
- TagInfoForResource: output.TagInfoForResource != null ? de_TagInfoForResource(output.TagInfoForResource, context) : undefined,
4577
- };
4578
2649
  };
4579
- const de_ListWebACLsResponse = (output, context) => {
4580
- return {
4581
- NextMarker: __expectString(output.NextMarker),
4582
- WebACLs: output.WebACLs != null ? de_WebACLSummaries(output.WebACLs, context) : undefined,
4583
- };
4584
- };
4585
- const de_LogDestinationConfigs = (output, context) => {
4586
- const retVal = (output || [])
4587
- .filter((e) => e != null)
4588
- .map((entry) => {
4589
- if (entry === null) {
4590
- return null;
4591
- }
4592
- return __expectString(entry);
2650
+ const se_ByteMatchStatement = (input, context) => {
2651
+ return take(input, {
2652
+ FieldToMatch: _json,
2653
+ PositionalConstraint: [],
2654
+ SearchString: context.base64Encoder,
2655
+ TextTransformations: _json,
4593
2656
  });
4594
- return retVal;
4595
- };
4596
- const de_LoggingConfiguration = (output, context) => {
4597
- return {
4598
- LogDestinationConfigs: output.LogDestinationConfigs != null
4599
- ? de_LogDestinationConfigs(output.LogDestinationConfigs, context)
4600
- : undefined,
4601
- LoggingFilter: output.LoggingFilter != null ? de_LoggingFilter(output.LoggingFilter, context) : undefined,
4602
- ManagedByFirewallManager: __expectBoolean(output.ManagedByFirewallManager),
4603
- RedactedFields: output.RedactedFields != null ? de_RedactedFields(output.RedactedFields, context) : undefined,
4604
- ResourceArn: __expectString(output.ResourceArn),
4605
- };
4606
2657
  };
4607
- const de_LoggingConfigurations = (output, context) => {
4608
- const retVal = (output || [])
4609
- .filter((e) => e != null)
4610
- .map((entry) => {
4611
- if (entry === null) {
4612
- return null;
4613
- }
4614
- return de_LoggingConfiguration(entry, context);
2658
+ const se_CheckCapacityRequest = (input, context) => {
2659
+ return take(input, {
2660
+ Rules: (_) => se_Rules(_, context),
2661
+ Scope: [],
4615
2662
  });
4616
- return retVal;
4617
- };
4618
- const de_LoggingFilter = (output, context) => {
4619
- return {
4620
- DefaultBehavior: __expectString(output.DefaultBehavior),
4621
- Filters: output.Filters != null ? de_Filters(output.Filters, context) : undefined,
4622
- };
4623
- };
4624
- const de_ManagedRuleGroupConfig = (output, context) => {
4625
- return {
4626
- AWSManagedRulesATPRuleSet: output.AWSManagedRulesATPRuleSet != null
4627
- ? de_AWSManagedRulesATPRuleSet(output.AWSManagedRulesATPRuleSet, context)
4628
- : undefined,
4629
- AWSManagedRulesBotControlRuleSet: output.AWSManagedRulesBotControlRuleSet != null
4630
- ? de_AWSManagedRulesBotControlRuleSet(output.AWSManagedRulesBotControlRuleSet, context)
4631
- : undefined,
4632
- LoginPath: __expectString(output.LoginPath),
4633
- PasswordField: output.PasswordField != null ? de_PasswordField(output.PasswordField, context) : undefined,
4634
- PayloadType: __expectString(output.PayloadType),
4635
- UsernameField: output.UsernameField != null ? de_UsernameField(output.UsernameField, context) : undefined,
4636
- };
4637
2663
  };
4638
- const de_ManagedRuleGroupConfigs = (output, context) => {
4639
- const retVal = (output || [])
4640
- .filter((e) => e != null)
4641
- .map((entry) => {
4642
- if (entry === null) {
4643
- return null;
4644
- }
4645
- return de_ManagedRuleGroupConfig(entry, context);
2664
+ const se_CreateRuleGroupRequest = (input, context) => {
2665
+ return take(input, {
2666
+ Capacity: [],
2667
+ CustomResponseBodies: _json,
2668
+ Description: [],
2669
+ Name: [],
2670
+ Rules: (_) => se_Rules(_, context),
2671
+ Scope: [],
2672
+ Tags: _json,
2673
+ VisibilityConfig: _json,
4646
2674
  });
4647
- return retVal;
4648
- };
4649
- const de_ManagedRuleGroupStatement = (output, context) => {
4650
- return {
4651
- ExcludedRules: output.ExcludedRules != null ? de_ExcludedRules(output.ExcludedRules, context) : undefined,
4652
- ManagedRuleGroupConfigs: output.ManagedRuleGroupConfigs != null
4653
- ? de_ManagedRuleGroupConfigs(output.ManagedRuleGroupConfigs, context)
4654
- : undefined,
4655
- Name: __expectString(output.Name),
4656
- RuleActionOverrides: output.RuleActionOverrides != null ? de_RuleActionOverrides(output.RuleActionOverrides, context) : undefined,
4657
- ScopeDownStatement: output.ScopeDownStatement != null ? de_Statement(output.ScopeDownStatement, context) : undefined,
4658
- VendorName: __expectString(output.VendorName),
4659
- Version: __expectString(output.Version),
4660
- };
4661
2675
  };
4662
- const de_ManagedRuleGroupSummaries = (output, context) => {
4663
- const retVal = (output || [])
4664
- .filter((e) => e != null)
4665
- .map((entry) => {
4666
- if (entry === null) {
4667
- return null;
4668
- }
4669
- return de_ManagedRuleGroupSummary(entry, context);
2676
+ const se_CreateWebACLRequest = (input, context) => {
2677
+ return take(input, {
2678
+ AssociationConfig: _json,
2679
+ CaptchaConfig: _json,
2680
+ ChallengeConfig: _json,
2681
+ CustomResponseBodies: _json,
2682
+ DefaultAction: _json,
2683
+ Description: [],
2684
+ Name: [],
2685
+ Rules: (_) => se_Rules(_, context),
2686
+ Scope: [],
2687
+ Tags: _json,
2688
+ TokenDomains: _json,
2689
+ VisibilityConfig: _json,
4670
2690
  });
4671
- return retVal;
4672
2691
  };
4673
- const de_ManagedRuleGroupSummary = (output, context) => {
4674
- return {
4675
- Description: __expectString(output.Description),
4676
- Name: __expectString(output.Name),
4677
- VendorName: __expectString(output.VendorName),
4678
- VersioningSupported: __expectBoolean(output.VersioningSupported),
4679
- };
4680
- };
4681
- const de_ManagedRuleGroupVersion = (output, context) => {
4682
- return {
4683
- LastUpdateTimestamp: output.LastUpdateTimestamp != null
4684
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTimestamp)))
4685
- : undefined,
4686
- Name: __expectString(output.Name),
4687
- };
4688
- };
4689
- const de_ManagedRuleGroupVersions = (output, context) => {
4690
- const retVal = (output || [])
4691
- .filter((e) => e != null)
4692
- .map((entry) => {
4693
- if (entry === null) {
4694
- return null;
4695
- }
4696
- return de_ManagedRuleGroupVersion(entry, context);
2692
+ const se_GetSampledRequestsRequest = (input, context) => {
2693
+ return take(input, {
2694
+ MaxItems: [],
2695
+ RuleMetricName: [],
2696
+ Scope: [],
2697
+ TimeWindow: (_) => se_TimeWindow(_, context),
2698
+ WebAclArn: [],
4697
2699
  });
4698
- return retVal;
4699
- };
4700
- const de_ManagedRuleSet = (output, context) => {
4701
- return {
4702
- ARN: __expectString(output.ARN),
4703
- Description: __expectString(output.Description),
4704
- Id: __expectString(output.Id),
4705
- LabelNamespace: __expectString(output.LabelNamespace),
4706
- Name: __expectString(output.Name),
4707
- PublishedVersions: output.PublishedVersions != null ? de_PublishedVersions(output.PublishedVersions, context) : undefined,
4708
- RecommendedVersion: __expectString(output.RecommendedVersion),
4709
- };
4710
2700
  };
4711
- const de_ManagedRuleSetSummaries = (output, context) => {
4712
- const retVal = (output || [])
4713
- .filter((e) => e != null)
4714
- .map((entry) => {
4715
- if (entry === null) {
4716
- return null;
4717
- }
4718
- return de_ManagedRuleSetSummary(entry, context);
2701
+ const se_ManagedRuleGroupStatement = (input, context) => {
2702
+ return take(input, {
2703
+ ExcludedRules: _json,
2704
+ ManagedRuleGroupConfigs: _json,
2705
+ Name: [],
2706
+ RuleActionOverrides: _json,
2707
+ ScopeDownStatement: (_) => se_Statement(_, context),
2708
+ VendorName: [],
2709
+ Version: [],
4719
2710
  });
4720
- return retVal;
4721
- };
4722
- const de_ManagedRuleSetSummary = (output, context) => {
4723
- return {
4724
- ARN: __expectString(output.ARN),
4725
- Description: __expectString(output.Description),
4726
- Id: __expectString(output.Id),
4727
- LabelNamespace: __expectString(output.LabelNamespace),
4728
- LockToken: __expectString(output.LockToken),
4729
- Name: __expectString(output.Name),
4730
- };
4731
- };
4732
- const de_ManagedRuleSetVersion = (output, context) => {
4733
- return {
4734
- AssociatedRuleGroupArn: __expectString(output.AssociatedRuleGroupArn),
4735
- Capacity: __expectLong(output.Capacity),
4736
- ExpiryTimestamp: output.ExpiryTimestamp != null
4737
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpiryTimestamp)))
4738
- : undefined,
4739
- ForecastedLifetime: __expectInt32(output.ForecastedLifetime),
4740
- LastUpdateTimestamp: output.LastUpdateTimestamp != null
4741
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTimestamp)))
4742
- : undefined,
4743
- PublishTimestamp: output.PublishTimestamp != null
4744
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.PublishTimestamp)))
4745
- : undefined,
4746
- };
4747
- };
4748
- const de_Method = (output, context) => {
4749
- return {};
4750
- };
4751
- const de_MobileSdkRelease = (output, context) => {
4752
- return {
4753
- ReleaseNotes: __expectString(output.ReleaseNotes),
4754
- ReleaseVersion: __expectString(output.ReleaseVersion),
4755
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
4756
- Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
4757
- };
4758
- };
4759
- const de_NoneAction = (output, context) => {
4760
- return {};
4761
- };
4762
- const de_NotStatement = (output, context) => {
4763
- return {
4764
- Statement: output.Statement != null ? de_Statement(output.Statement, context) : undefined,
4765
- };
4766
- };
4767
- const de_OrStatement = (output, context) => {
4768
- return {
4769
- Statements: output.Statements != null ? de_Statements(output.Statements, context) : undefined,
4770
- };
4771
2711
  };
4772
- const de_OverrideAction = (output, context) => {
4773
- return {
4774
- Count: output.Count != null ? de_CountAction(output.Count, context) : undefined,
4775
- None: output.None != null ? de_NoneAction(output.None, context) : undefined,
4776
- };
4777
- };
4778
- const de_PasswordField = (output, context) => {
4779
- return {
4780
- Identifier: __expectString(output.Identifier),
4781
- };
4782
- };
4783
- const de_PublishedVersions = (output, context) => {
4784
- return Object.entries(output).reduce((acc, [key, value]) => {
4785
- if (value === null) {
4786
- return acc;
4787
- }
4788
- acc[key] = de_ManagedRuleSetVersion(value, context);
4789
- return acc;
4790
- }, {});
4791
- };
4792
- const de_PutLoggingConfigurationResponse = (output, context) => {
4793
- return {
4794
- LoggingConfiguration: output.LoggingConfiguration != null ? de_LoggingConfiguration(output.LoggingConfiguration, context) : undefined,
4795
- };
4796
- };
4797
- const de_PutManagedRuleSetVersionsResponse = (output, context) => {
4798
- return {
4799
- NextLockToken: __expectString(output.NextLockToken),
4800
- };
4801
- };
4802
- const de_PutPermissionPolicyResponse = (output, context) => {
4803
- return {};
4804
- };
4805
- const de_QueryString = (output, context) => {
4806
- return {};
4807
- };
4808
- const de_RateBasedStatement = (output, context) => {
4809
- return {
4810
- AggregateKeyType: __expectString(output.AggregateKeyType),
4811
- ForwardedIPConfig: output.ForwardedIPConfig != null ? de_ForwardedIPConfig(output.ForwardedIPConfig, context) : undefined,
4812
- Limit: __expectLong(output.Limit),
4813
- ScopeDownStatement: output.ScopeDownStatement != null ? de_Statement(output.ScopeDownStatement, context) : undefined,
4814
- };
4815
- };
4816
- const de_RateBasedStatementManagedKeysIPSet = (output, context) => {
4817
- return {
4818
- Addresses: output.Addresses != null ? de_IPAddresses(output.Addresses, context) : undefined,
4819
- IPAddressVersion: __expectString(output.IPAddressVersion),
4820
- };
4821
- };
4822
- const de_RedactedFields = (output, context) => {
4823
- const retVal = (output || [])
4824
- .filter((e) => e != null)
4825
- .map((entry) => {
4826
- if (entry === null) {
4827
- return null;
4828
- }
4829
- return de_FieldToMatch(entry, context);
2712
+ const se_NotStatement = (input, context) => {
2713
+ return take(input, {
2714
+ Statement: (_) => se_Statement(_, context),
4830
2715
  });
4831
- return retVal;
4832
- };
4833
- const de_Regex = (output, context) => {
4834
- return {
4835
- RegexString: __expectString(output.RegexString),
4836
- };
4837
- };
4838
- const de_RegexMatchStatement = (output, context) => {
4839
- return {
4840
- FieldToMatch: output.FieldToMatch != null ? de_FieldToMatch(output.FieldToMatch, context) : undefined,
4841
- RegexString: __expectString(output.RegexString),
4842
- TextTransformations: output.TextTransformations != null ? de_TextTransformations(output.TextTransformations, context) : undefined,
4843
- };
4844
- };
4845
- const de_RegexPatternSet = (output, context) => {
4846
- return {
4847
- ARN: __expectString(output.ARN),
4848
- Description: __expectString(output.Description),
4849
- Id: __expectString(output.Id),
4850
- Name: __expectString(output.Name),
4851
- RegularExpressionList: output.RegularExpressionList != null
4852
- ? de_RegularExpressionList(output.RegularExpressionList, context)
4853
- : undefined,
4854
- };
4855
- };
4856
- const de_RegexPatternSetReferenceStatement = (output, context) => {
4857
- return {
4858
- ARN: __expectString(output.ARN),
4859
- FieldToMatch: output.FieldToMatch != null ? de_FieldToMatch(output.FieldToMatch, context) : undefined,
4860
- TextTransformations: output.TextTransformations != null ? de_TextTransformations(output.TextTransformations, context) : undefined,
4861
- };
4862
2716
  };
4863
- const de_RegexPatternSetSummaries = (output, context) => {
4864
- const retVal = (output || [])
4865
- .filter((e) => e != null)
4866
- .map((entry) => {
4867
- if (entry === null) {
4868
- return null;
4869
- }
4870
- return de_RegexPatternSetSummary(entry, context);
2717
+ const se_OrStatement = (input, context) => {
2718
+ return take(input, {
2719
+ Statements: (_) => se_Statements(_, context),
4871
2720
  });
4872
- return retVal;
4873
2721
  };
4874
- const de_RegexPatternSetSummary = (output, context) => {
4875
- return {
4876
- ARN: __expectString(output.ARN),
4877
- Description: __expectString(output.Description),
4878
- Id: __expectString(output.Id),
4879
- LockToken: __expectString(output.LockToken),
4880
- Name: __expectString(output.Name),
4881
- };
4882
- };
4883
- const de_RegularExpressionList = (output, context) => {
4884
- const retVal = (output || [])
4885
- .filter((e) => e != null)
4886
- .map((entry) => {
4887
- if (entry === null) {
4888
- return null;
4889
- }
4890
- return de_Regex(entry, context);
2722
+ const se_RateBasedStatement = (input, context) => {
2723
+ return take(input, {
2724
+ AggregateKeyType: [],
2725
+ ForwardedIPConfig: _json,
2726
+ Limit: [],
2727
+ ScopeDownStatement: (_) => se_Statement(_, context),
4891
2728
  });
4892
- return retVal;
4893
2729
  };
4894
- const de_ReleaseSummaries = (output, context) => {
4895
- const retVal = (output || [])
4896
- .filter((e) => e != null)
4897
- .map((entry) => {
4898
- if (entry === null) {
4899
- return null;
4900
- }
4901
- return de_ReleaseSummary(entry, context);
2730
+ const se_Rule = (input, context) => {
2731
+ return take(input, {
2732
+ Action: _json,
2733
+ CaptchaConfig: _json,
2734
+ ChallengeConfig: _json,
2735
+ Name: [],
2736
+ OverrideAction: _json,
2737
+ Priority: [],
2738
+ RuleLabels: _json,
2739
+ Statement: (_) => se_Statement(_, context),
2740
+ VisibilityConfig: _json,
4902
2741
  });
4903
- return retVal;
4904
- };
4905
- const de_ReleaseSummary = (output, context) => {
4906
- return {
4907
- ReleaseVersion: __expectString(output.ReleaseVersion),
4908
- Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
4909
- };
4910
- };
4911
- const de_RequestBody = (output, context) => {
4912
- return Object.entries(output).reduce((acc, [key, value]) => {
4913
- if (value === null) {
4914
- return acc;
4915
- }
4916
- acc[key] = de_RequestBodyAssociatedResourceTypeConfig(value, context);
4917
- return acc;
4918
- }, {});
4919
- };
4920
- const de_RequestBodyAssociatedResourceTypeConfig = (output, context) => {
4921
- return {
4922
- DefaultSizeInspectionLimit: __expectString(output.DefaultSizeInspectionLimit),
4923
- };
4924
- };
4925
- const de_RequestInspection = (output, context) => {
4926
- return {
4927
- PasswordField: output.PasswordField != null ? de_PasswordField(output.PasswordField, context) : undefined,
4928
- PayloadType: __expectString(output.PayloadType),
4929
- UsernameField: output.UsernameField != null ? de_UsernameField(output.UsernameField, context) : undefined,
4930
- };
4931
2742
  };
4932
- const de_ResourceArns = (output, context) => {
4933
- const retVal = (output || [])
2743
+ const se_Rules = (input, context) => {
2744
+ return input
4934
2745
  .filter((e) => e != null)
4935
2746
  .map((entry) => {
4936
- if (entry === null) {
4937
- return null;
4938
- }
4939
- return __expectString(entry);
2747
+ return se_Rule(entry, context);
4940
2748
  });
4941
- return retVal;
4942
2749
  };
4943
- const de_ResponseInspection = (output, context) => {
4944
- return {
4945
- BodyContains: output.BodyContains != null ? de_ResponseInspectionBodyContains(output.BodyContains, context) : undefined,
4946
- Header: output.Header != null ? de_ResponseInspectionHeader(output.Header, context) : undefined,
4947
- Json: output.Json != null ? de_ResponseInspectionJson(output.Json, context) : undefined,
4948
- StatusCode: output.StatusCode != null ? de_ResponseInspectionStatusCode(output.StatusCode, context) : undefined,
4949
- };
4950
- };
4951
- const de_ResponseInspectionBodyContains = (output, context) => {
4952
- return {
4953
- FailureStrings: output.FailureStrings != null
4954
- ? de_ResponseInspectionBodyContainsFailureStrings(output.FailureStrings, context)
4955
- : undefined,
4956
- SuccessStrings: output.SuccessStrings != null
4957
- ? de_ResponseInspectionBodyContainsSuccessStrings(output.SuccessStrings, context)
4958
- : undefined,
4959
- };
4960
- };
4961
- const de_ResponseInspectionBodyContainsFailureStrings = (output, context) => {
4962
- const retVal = (output || [])
4963
- .filter((e) => e != null)
4964
- .map((entry) => {
4965
- if (entry === null) {
4966
- return null;
4967
- }
4968
- return __expectString(entry);
2750
+ const se_Statement = (input, context) => {
2751
+ return take(input, {
2752
+ AndStatement: (_) => se_AndStatement(_, context),
2753
+ ByteMatchStatement: (_) => se_ByteMatchStatement(_, context),
2754
+ GeoMatchStatement: _json,
2755
+ IPSetReferenceStatement: _json,
2756
+ LabelMatchStatement: _json,
2757
+ ManagedRuleGroupStatement: (_) => se_ManagedRuleGroupStatement(_, context),
2758
+ NotStatement: (_) => se_NotStatement(_, context),
2759
+ OrStatement: (_) => se_OrStatement(_, context),
2760
+ RateBasedStatement: (_) => se_RateBasedStatement(_, context),
2761
+ RegexMatchStatement: _json,
2762
+ RegexPatternSetReferenceStatement: _json,
2763
+ RuleGroupReferenceStatement: _json,
2764
+ SizeConstraintStatement: _json,
2765
+ SqliMatchStatement: _json,
2766
+ XssMatchStatement: _json,
4969
2767
  });
4970
- return retVal;
4971
2768
  };
4972
- const de_ResponseInspectionBodyContainsSuccessStrings = (output, context) => {
4973
- const retVal = (output || [])
2769
+ const se_Statements = (input, context) => {
2770
+ return input
4974
2771
  .filter((e) => e != null)
4975
2772
  .map((entry) => {
4976
- if (entry === null) {
4977
- return null;
4978
- }
4979
- return __expectString(entry);
2773
+ return se_Statement(entry, context);
4980
2774
  });
4981
- return retVal;
4982
2775
  };
4983
- const de_ResponseInspectionHeader = (output, context) => {
4984
- return {
4985
- FailureValues: output.FailureValues != null
4986
- ? de_ResponseInspectionHeaderFailureValues(output.FailureValues, context)
4987
- : undefined,
4988
- Name: __expectString(output.Name),
4989
- SuccessValues: output.SuccessValues != null
4990
- ? de_ResponseInspectionHeaderSuccessValues(output.SuccessValues, context)
4991
- : undefined,
4992
- };
2776
+ const se_TimeWindow = (input, context) => {
2777
+ return take(input, {
2778
+ EndTime: (_) => Math.round(_.getTime() / 1000),
2779
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2780
+ });
4993
2781
  };
4994
- const de_ResponseInspectionHeaderFailureValues = (output, context) => {
4995
- const retVal = (output || [])
4996
- .filter((e) => e != null)
4997
- .map((entry) => {
4998
- if (entry === null) {
4999
- return null;
5000
- }
5001
- return __expectString(entry);
2782
+ const se_UpdateManagedRuleSetVersionExpiryDateRequest = (input, context) => {
2783
+ return take(input, {
2784
+ ExpiryTimestamp: (_) => Math.round(_.getTime() / 1000),
2785
+ Id: [],
2786
+ LockToken: [],
2787
+ Name: [],
2788
+ Scope: [],
2789
+ VersionToExpire: [],
5002
2790
  });
5003
- return retVal;
5004
2791
  };
5005
- const de_ResponseInspectionHeaderSuccessValues = (output, context) => {
5006
- const retVal = (output || [])
5007
- .filter((e) => e != null)
5008
- .map((entry) => {
5009
- if (entry === null) {
5010
- return null;
5011
- }
5012
- return __expectString(entry);
2792
+ const se_UpdateRuleGroupRequest = (input, context) => {
2793
+ return take(input, {
2794
+ CustomResponseBodies: _json,
2795
+ Description: [],
2796
+ Id: [],
2797
+ LockToken: [],
2798
+ Name: [],
2799
+ Rules: (_) => se_Rules(_, context),
2800
+ Scope: [],
2801
+ VisibilityConfig: _json,
5013
2802
  });
5014
- return retVal;
5015
2803
  };
5016
- const de_ResponseInspectionJson = (output, context) => {
5017
- return {
5018
- FailureValues: output.FailureValues != null ? de_ResponseInspectionJsonFailureValues(output.FailureValues, context) : undefined,
5019
- Identifier: __expectString(output.Identifier),
5020
- SuccessValues: output.SuccessValues != null ? de_ResponseInspectionJsonSuccessValues(output.SuccessValues, context) : undefined,
5021
- };
2804
+ const se_UpdateWebACLRequest = (input, context) => {
2805
+ return take(input, {
2806
+ AssociationConfig: _json,
2807
+ CaptchaConfig: _json,
2808
+ ChallengeConfig: _json,
2809
+ CustomResponseBodies: _json,
2810
+ DefaultAction: _json,
2811
+ Description: [],
2812
+ Id: [],
2813
+ LockToken: [],
2814
+ Name: [],
2815
+ Rules: (_) => se_Rules(_, context),
2816
+ Scope: [],
2817
+ TokenDomains: _json,
2818
+ VisibilityConfig: _json,
2819
+ });
5022
2820
  };
5023
- const de_ResponseInspectionJsonFailureValues = (output, context) => {
5024
- const retVal = (output || [])
5025
- .filter((e) => e != null)
5026
- .map((entry) => {
5027
- if (entry === null) {
5028
- return null;
5029
- }
5030
- return __expectString(entry);
2821
+ const de_AndStatement = (output, context) => {
2822
+ return take(output, {
2823
+ Statements: (_) => de_Statements(_, context),
5031
2824
  });
5032
- return retVal;
5033
2825
  };
5034
- const de_ResponseInspectionJsonSuccessValues = (output, context) => {
5035
- const retVal = (output || [])
5036
- .filter((e) => e != null)
5037
- .map((entry) => {
5038
- if (entry === null) {
5039
- return null;
5040
- }
5041
- return __expectString(entry);
2826
+ const de_ByteMatchStatement = (output, context) => {
2827
+ return take(output, {
2828
+ FieldToMatch: _json,
2829
+ PositionalConstraint: __expectString,
2830
+ SearchString: context.base64Decoder,
2831
+ TextTransformations: _json,
5042
2832
  });
5043
- return retVal;
5044
2833
  };
5045
- const de_ResponseInspectionStatusCode = (output, context) => {
5046
- return {
5047
- FailureCodes: output.FailureCodes != null
5048
- ? de_ResponseInspectionStatusCodeFailureCodes(output.FailureCodes, context)
5049
- : undefined,
5050
- SuccessCodes: output.SuccessCodes != null
5051
- ? de_ResponseInspectionStatusCodeSuccessCodes(output.SuccessCodes, context)
5052
- : undefined,
5053
- };
2834
+ const de_FirewallManagerRuleGroup = (output, context) => {
2835
+ return take(output, {
2836
+ FirewallManagerStatement: (_) => de_FirewallManagerStatement(_, context),
2837
+ Name: __expectString,
2838
+ OverrideAction: _json,
2839
+ Priority: __expectInt32,
2840
+ VisibilityConfig: _json,
2841
+ });
5054
2842
  };
5055
- const de_ResponseInspectionStatusCodeFailureCodes = (output, context) => {
2843
+ const de_FirewallManagerRuleGroups = (output, context) => {
5056
2844
  const retVal = (output || [])
5057
2845
  .filter((e) => e != null)
5058
2846
  .map((entry) => {
5059
- if (entry === null) {
5060
- return null;
5061
- }
5062
- return __expectInt32(entry);
2847
+ return de_FirewallManagerRuleGroup(entry, context);
5063
2848
  });
5064
2849
  return retVal;
5065
2850
  };
5066
- const de_ResponseInspectionStatusCodeSuccessCodes = (output, context) => {
5067
- const retVal = (output || [])
5068
- .filter((e) => e != null)
5069
- .map((entry) => {
5070
- if (entry === null) {
5071
- return null;
5072
- }
5073
- return __expectInt32(entry);
2851
+ const de_FirewallManagerStatement = (output, context) => {
2852
+ return take(output, {
2853
+ ManagedRuleGroupStatement: (_) => de_ManagedRuleGroupStatement(_, context),
2854
+ RuleGroupReferenceStatement: _json,
5074
2855
  });
5075
- return retVal;
5076
2856
  };
5077
- const de_Rule = (output, context) => {
5078
- return {
5079
- Action: output.Action != null ? de_RuleAction(output.Action, context) : undefined,
5080
- CaptchaConfig: output.CaptchaConfig != null ? de_CaptchaConfig(output.CaptchaConfig, context) : undefined,
5081
- ChallengeConfig: output.ChallengeConfig != null ? de_ChallengeConfig(output.ChallengeConfig, context) : undefined,
5082
- Name: __expectString(output.Name),
5083
- OverrideAction: output.OverrideAction != null ? de_OverrideAction(output.OverrideAction, context) : undefined,
5084
- Priority: __expectInt32(output.Priority),
5085
- RuleLabels: output.RuleLabels != null ? de_Labels(output.RuleLabels, context) : undefined,
5086
- Statement: output.Statement != null ? de_Statement(output.Statement, context) : undefined,
5087
- VisibilityConfig: output.VisibilityConfig != null ? de_VisibilityConfig(output.VisibilityConfig, context) : undefined,
5088
- };
2857
+ const de_GetManagedRuleSetResponse = (output, context) => {
2858
+ return take(output, {
2859
+ LockToken: __expectString,
2860
+ ManagedRuleSet: (_) => de_ManagedRuleSet(_, context),
2861
+ });
5089
2862
  };
5090
- const de_RuleAction = (output, context) => {
5091
- return {
5092
- Allow: output.Allow != null ? de_AllowAction(output.Allow, context) : undefined,
5093
- Block: output.Block != null ? de_BlockAction(output.Block, context) : undefined,
5094
- Captcha: output.Captcha != null ? de_CaptchaAction(output.Captcha, context) : undefined,
5095
- Challenge: output.Challenge != null ? de_ChallengeAction(output.Challenge, context) : undefined,
5096
- Count: output.Count != null ? de_CountAction(output.Count, context) : undefined,
5097
- };
2863
+ const de_GetMobileSdkReleaseResponse = (output, context) => {
2864
+ return take(output, {
2865
+ MobileSdkRelease: (_) => de_MobileSdkRelease(_, context),
2866
+ });
5098
2867
  };
5099
- const de_RuleActionOverride = (output, context) => {
5100
- return {
5101
- ActionToUse: output.ActionToUse != null ? de_RuleAction(output.ActionToUse, context) : undefined,
5102
- Name: __expectString(output.Name),
5103
- };
2868
+ const de_GetRuleGroupResponse = (output, context) => {
2869
+ return take(output, {
2870
+ LockToken: __expectString,
2871
+ RuleGroup: (_) => de_RuleGroup(_, context),
2872
+ });
5104
2873
  };
5105
- const de_RuleActionOverrides = (output, context) => {
5106
- const retVal = (output || [])
5107
- .filter((e) => e != null)
5108
- .map((entry) => {
5109
- if (entry === null) {
5110
- return null;
5111
- }
5112
- return de_RuleActionOverride(entry, context);
2874
+ const de_GetSampledRequestsResponse = (output, context) => {
2875
+ return take(output, {
2876
+ PopulationSize: __expectLong,
2877
+ SampledRequests: (_) => de_SampledHTTPRequests(_, context),
2878
+ TimeWindow: (_) => de_TimeWindow(_, context),
5113
2879
  });
5114
- return retVal;
5115
2880
  };
5116
- const de_RuleGroup = (output, context) => {
5117
- return {
5118
- ARN: __expectString(output.ARN),
5119
- AvailableLabels: output.AvailableLabels != null ? de_LabelSummaries(output.AvailableLabels, context) : undefined,
5120
- Capacity: __expectLong(output.Capacity),
5121
- ConsumedLabels: output.ConsumedLabels != null ? de_LabelSummaries(output.ConsumedLabels, context) : undefined,
5122
- CustomResponseBodies: output.CustomResponseBodies != null ? de_CustomResponseBodies(output.CustomResponseBodies, context) : undefined,
5123
- Description: __expectString(output.Description),
5124
- Id: __expectString(output.Id),
5125
- LabelNamespace: __expectString(output.LabelNamespace),
5126
- Name: __expectString(output.Name),
5127
- Rules: output.Rules != null ? de_Rules(output.Rules, context) : undefined,
5128
- VisibilityConfig: output.VisibilityConfig != null ? de_VisibilityConfig(output.VisibilityConfig, context) : undefined,
5129
- };
2881
+ const de_GetWebACLForResourceResponse = (output, context) => {
2882
+ return take(output, {
2883
+ WebACL: (_) => de_WebACL(_, context),
2884
+ });
5130
2885
  };
5131
- const de_RuleGroupReferenceStatement = (output, context) => {
5132
- return {
5133
- ARN: __expectString(output.ARN),
5134
- ExcludedRules: output.ExcludedRules != null ? de_ExcludedRules(output.ExcludedRules, context) : undefined,
5135
- RuleActionOverrides: output.RuleActionOverrides != null ? de_RuleActionOverrides(output.RuleActionOverrides, context) : undefined,
5136
- };
2886
+ const de_GetWebACLResponse = (output, context) => {
2887
+ return take(output, {
2888
+ ApplicationIntegrationURL: __expectString,
2889
+ LockToken: __expectString,
2890
+ WebACL: (_) => de_WebACL(_, context),
2891
+ });
5137
2892
  };
5138
- const de_RuleGroupSummaries = (output, context) => {
5139
- const retVal = (output || [])
5140
- .filter((e) => e != null)
5141
- .map((entry) => {
5142
- if (entry === null) {
5143
- return null;
5144
- }
5145
- return de_RuleGroupSummary(entry, context);
2893
+ const de_ListAvailableManagedRuleGroupVersionsResponse = (output, context) => {
2894
+ return take(output, {
2895
+ CurrentDefaultVersion: __expectString,
2896
+ NextMarker: __expectString,
2897
+ Versions: (_) => de_ManagedRuleGroupVersions(_, context),
5146
2898
  });
5147
- return retVal;
5148
2899
  };
5149
- const de_RuleGroupSummary = (output, context) => {
5150
- return {
5151
- ARN: __expectString(output.ARN),
5152
- Description: __expectString(output.Description),
5153
- Id: __expectString(output.Id),
5154
- LockToken: __expectString(output.LockToken),
5155
- Name: __expectString(output.Name),
5156
- };
2900
+ const de_ListMobileSdkReleasesResponse = (output, context) => {
2901
+ return take(output, {
2902
+ NextMarker: __expectString,
2903
+ ReleaseSummaries: (_) => de_ReleaseSummaries(_, context),
2904
+ });
5157
2905
  };
5158
- const de_Rules = (output, context) => {
5159
- const retVal = (output || [])
5160
- .filter((e) => e != null)
5161
- .map((entry) => {
5162
- if (entry === null) {
5163
- return null;
5164
- }
5165
- return de_Rule(entry, context);
2906
+ const de_ManagedRuleGroupStatement = (output, context) => {
2907
+ return take(output, {
2908
+ ExcludedRules: _json,
2909
+ ManagedRuleGroupConfigs: _json,
2910
+ Name: __expectString,
2911
+ RuleActionOverrides: _json,
2912
+ ScopeDownStatement: (_) => de_Statement(_, context),
2913
+ VendorName: __expectString,
2914
+ Version: __expectString,
2915
+ });
2916
+ };
2917
+ const de_ManagedRuleGroupVersion = (output, context) => {
2918
+ return take(output, {
2919
+ LastUpdateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2920
+ Name: __expectString,
5166
2921
  });
5167
- return retVal;
5168
2922
  };
5169
- const de_RuleSummaries = (output, context) => {
2923
+ const de_ManagedRuleGroupVersions = (output, context) => {
5170
2924
  const retVal = (output || [])
5171
2925
  .filter((e) => e != null)
5172
2926
  .map((entry) => {
5173
- if (entry === null) {
5174
- return null;
5175
- }
5176
- return de_RuleSummary(entry, context);
2927
+ return de_ManagedRuleGroupVersion(entry, context);
5177
2928
  });
5178
2929
  return retVal;
5179
2930
  };
5180
- const de_RuleSummary = (output, context) => {
5181
- return {
5182
- Action: output.Action != null ? de_RuleAction(output.Action, context) : undefined,
5183
- Name: __expectString(output.Name),
5184
- };
5185
- };
5186
- const de_SampledHTTPRequest = (output, context) => {
5187
- return {
5188
- Action: __expectString(output.Action),
5189
- CaptchaResponse: output.CaptchaResponse != null ? de_CaptchaResponse(output.CaptchaResponse, context) : undefined,
5190
- ChallengeResponse: output.ChallengeResponse != null ? de_ChallengeResponse(output.ChallengeResponse, context) : undefined,
5191
- Labels: output.Labels != null ? de_Labels(output.Labels, context) : undefined,
5192
- OverriddenAction: __expectString(output.OverriddenAction),
5193
- Request: output.Request != null ? de_HTTPRequest(output.Request, context) : undefined,
5194
- RequestHeadersInserted: output.RequestHeadersInserted != null ? de_HTTPHeaders(output.RequestHeadersInserted, context) : undefined,
5195
- ResponseCodeSent: __expectInt32(output.ResponseCodeSent),
5196
- RuleNameWithinRuleGroup: __expectString(output.RuleNameWithinRuleGroup),
5197
- Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
5198
- Weight: __expectLong(output.Weight),
5199
- };
2931
+ const de_ManagedRuleSet = (output, context) => {
2932
+ return take(output, {
2933
+ ARN: __expectString,
2934
+ Description: __expectString,
2935
+ Id: __expectString,
2936
+ LabelNamespace: __expectString,
2937
+ Name: __expectString,
2938
+ PublishedVersions: (_) => de_PublishedVersions(_, context),
2939
+ RecommendedVersion: __expectString,
2940
+ });
5200
2941
  };
5201
- const de_SampledHTTPRequests = (output, context) => {
5202
- const retVal = (output || [])
5203
- .filter((e) => e != null)
5204
- .map((entry) => {
5205
- if (entry === null) {
5206
- return null;
5207
- }
5208
- return de_SampledHTTPRequest(entry, context);
2942
+ const de_ManagedRuleSetVersion = (output, context) => {
2943
+ return take(output, {
2944
+ AssociatedRuleGroupArn: __expectString,
2945
+ Capacity: __expectLong,
2946
+ ExpiryTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2947
+ ForecastedLifetime: __expectInt32,
2948
+ LastUpdateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2949
+ PublishTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5209
2950
  });
5210
- return retVal;
5211
2951
  };
5212
- const de_SingleHeader = (output, context) => {
5213
- return {
5214
- Name: __expectString(output.Name),
5215
- };
2952
+ const de_MobileSdkRelease = (output, context) => {
2953
+ return take(output, {
2954
+ ReleaseNotes: __expectString,
2955
+ ReleaseVersion: __expectString,
2956
+ Tags: _json,
2957
+ Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2958
+ });
5216
2959
  };
5217
- const de_SingleQueryArgument = (output, context) => {
5218
- return {
5219
- Name: __expectString(output.Name),
5220
- };
2960
+ const de_NotStatement = (output, context) => {
2961
+ return take(output, {
2962
+ Statement: (_) => de_Statement(_, context),
2963
+ });
5221
2964
  };
5222
- const de_SizeConstraintStatement = (output, context) => {
5223
- return {
5224
- ComparisonOperator: __expectString(output.ComparisonOperator),
5225
- FieldToMatch: output.FieldToMatch != null ? de_FieldToMatch(output.FieldToMatch, context) : undefined,
5226
- Size: __expectLong(output.Size),
5227
- TextTransformations: output.TextTransformations != null ? de_TextTransformations(output.TextTransformations, context) : undefined,
5228
- };
2965
+ const de_OrStatement = (output, context) => {
2966
+ return take(output, {
2967
+ Statements: (_) => de_Statements(_, context),
2968
+ });
5229
2969
  };
5230
- const de_SqliMatchStatement = (output, context) => {
5231
- return {
5232
- FieldToMatch: output.FieldToMatch != null ? de_FieldToMatch(output.FieldToMatch, context) : undefined,
5233
- SensitivityLevel: __expectString(output.SensitivityLevel),
5234
- TextTransformations: output.TextTransformations != null ? de_TextTransformations(output.TextTransformations, context) : undefined,
5235
- };
2970
+ const de_PublishedVersions = (output, context) => {
2971
+ return Object.entries(output).reduce((acc, [key, value]) => {
2972
+ if (value === null) {
2973
+ return acc;
2974
+ }
2975
+ acc[key] = de_ManagedRuleSetVersion(value, context);
2976
+ return acc;
2977
+ }, {});
5236
2978
  };
5237
- const de_Statement = (output, context) => {
5238
- return {
5239
- AndStatement: output.AndStatement != null ? de_AndStatement(output.AndStatement, context) : undefined,
5240
- ByteMatchStatement: output.ByteMatchStatement != null ? de_ByteMatchStatement(output.ByteMatchStatement, context) : undefined,
5241
- GeoMatchStatement: output.GeoMatchStatement != null ? de_GeoMatchStatement(output.GeoMatchStatement, context) : undefined,
5242
- IPSetReferenceStatement: output.IPSetReferenceStatement != null
5243
- ? de_IPSetReferenceStatement(output.IPSetReferenceStatement, context)
5244
- : undefined,
5245
- LabelMatchStatement: output.LabelMatchStatement != null ? de_LabelMatchStatement(output.LabelMatchStatement, context) : undefined,
5246
- ManagedRuleGroupStatement: output.ManagedRuleGroupStatement != null
5247
- ? de_ManagedRuleGroupStatement(output.ManagedRuleGroupStatement, context)
5248
- : undefined,
5249
- NotStatement: output.NotStatement != null ? de_NotStatement(output.NotStatement, context) : undefined,
5250
- OrStatement: output.OrStatement != null ? de_OrStatement(output.OrStatement, context) : undefined,
5251
- RateBasedStatement: output.RateBasedStatement != null ? de_RateBasedStatement(output.RateBasedStatement, context) : undefined,
5252
- RegexMatchStatement: output.RegexMatchStatement != null ? de_RegexMatchStatement(output.RegexMatchStatement, context) : undefined,
5253
- RegexPatternSetReferenceStatement: output.RegexPatternSetReferenceStatement != null
5254
- ? de_RegexPatternSetReferenceStatement(output.RegexPatternSetReferenceStatement, context)
5255
- : undefined,
5256
- RuleGroupReferenceStatement: output.RuleGroupReferenceStatement != null
5257
- ? de_RuleGroupReferenceStatement(output.RuleGroupReferenceStatement, context)
5258
- : undefined,
5259
- SizeConstraintStatement: output.SizeConstraintStatement != null
5260
- ? de_SizeConstraintStatement(output.SizeConstraintStatement, context)
5261
- : undefined,
5262
- SqliMatchStatement: output.SqliMatchStatement != null ? de_SqliMatchStatement(output.SqliMatchStatement, context) : undefined,
5263
- XssMatchStatement: output.XssMatchStatement != null ? de_XssMatchStatement(output.XssMatchStatement, context) : undefined,
5264
- };
2979
+ const de_RateBasedStatement = (output, context) => {
2980
+ return take(output, {
2981
+ AggregateKeyType: __expectString,
2982
+ ForwardedIPConfig: _json,
2983
+ Limit: __expectLong,
2984
+ ScopeDownStatement: (_) => de_Statement(_, context),
2985
+ });
5265
2986
  };
5266
- const de_Statements = (output, context) => {
2987
+ const de_ReleaseSummaries = (output, context) => {
5267
2988
  const retVal = (output || [])
5268
2989
  .filter((e) => e != null)
5269
2990
  .map((entry) => {
5270
- if (entry === null) {
5271
- return null;
5272
- }
5273
- return de_Statement(entry, context);
2991
+ return de_ReleaseSummary(entry, context);
5274
2992
  });
5275
2993
  return retVal;
5276
2994
  };
5277
- const de_Tag = (output, context) => {
5278
- return {
5279
- Key: __expectString(output.Key),
5280
- Value: __expectString(output.Value),
5281
- };
2995
+ const de_ReleaseSummary = (output, context) => {
2996
+ return take(output, {
2997
+ ReleaseVersion: __expectString,
2998
+ Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2999
+ });
5282
3000
  };
5283
- const de_TagInfoForResource = (output, context) => {
5284
- return {
5285
- ResourceARN: __expectString(output.ResourceARN),
5286
- TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
5287
- };
3001
+ const de_Rule = (output, context) => {
3002
+ return take(output, {
3003
+ Action: _json,
3004
+ CaptchaConfig: _json,
3005
+ ChallengeConfig: _json,
3006
+ Name: __expectString,
3007
+ OverrideAction: _json,
3008
+ Priority: __expectInt32,
3009
+ RuleLabels: _json,
3010
+ Statement: (_) => de_Statement(_, context),
3011
+ VisibilityConfig: _json,
3012
+ });
3013
+ };
3014
+ const de_RuleGroup = (output, context) => {
3015
+ return take(output, {
3016
+ ARN: __expectString,
3017
+ AvailableLabels: _json,
3018
+ Capacity: __expectLong,
3019
+ ConsumedLabels: _json,
3020
+ CustomResponseBodies: _json,
3021
+ Description: __expectString,
3022
+ Id: __expectString,
3023
+ LabelNamespace: __expectString,
3024
+ Name: __expectString,
3025
+ Rules: (_) => de_Rules(_, context),
3026
+ VisibilityConfig: _json,
3027
+ });
5288
3028
  };
5289
- const de_TagList = (output, context) => {
3029
+ const de_Rules = (output, context) => {
5290
3030
  const retVal = (output || [])
5291
3031
  .filter((e) => e != null)
5292
3032
  .map((entry) => {
5293
- if (entry === null) {
5294
- return null;
5295
- }
5296
- return de_Tag(entry, context);
3033
+ return de_Rule(entry, context);
5297
3034
  });
5298
3035
  return retVal;
5299
3036
  };
5300
- const de_TagResourceResponse = (output, context) => {
5301
- return {};
5302
- };
5303
- const de_TextTransformation = (output, context) => {
5304
- return {
5305
- Priority: __expectInt32(output.Priority),
5306
- Type: __expectString(output.Type),
5307
- };
3037
+ const de_SampledHTTPRequest = (output, context) => {
3038
+ return take(output, {
3039
+ Action: __expectString,
3040
+ CaptchaResponse: _json,
3041
+ ChallengeResponse: _json,
3042
+ Labels: _json,
3043
+ OverriddenAction: __expectString,
3044
+ Request: _json,
3045
+ RequestHeadersInserted: _json,
3046
+ ResponseCodeSent: __expectInt32,
3047
+ RuleNameWithinRuleGroup: __expectString,
3048
+ Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3049
+ Weight: __expectLong,
3050
+ });
5308
3051
  };
5309
- const de_TextTransformations = (output, context) => {
3052
+ const de_SampledHTTPRequests = (output, context) => {
5310
3053
  const retVal = (output || [])
5311
3054
  .filter((e) => e != null)
5312
3055
  .map((entry) => {
5313
- if (entry === null) {
5314
- return null;
5315
- }
5316
- return de_TextTransformation(entry, context);
3056
+ return de_SampledHTTPRequest(entry, context);
5317
3057
  });
5318
3058
  return retVal;
5319
3059
  };
5320
- const de_TimeWindow = (output, context) => {
5321
- return {
5322
- EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
5323
- StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
5324
- };
3060
+ const de_Statement = (output, context) => {
3061
+ return take(output, {
3062
+ AndStatement: (_) => de_AndStatement(_, context),
3063
+ ByteMatchStatement: (_) => de_ByteMatchStatement(_, context),
3064
+ GeoMatchStatement: _json,
3065
+ IPSetReferenceStatement: _json,
3066
+ LabelMatchStatement: _json,
3067
+ ManagedRuleGroupStatement: (_) => de_ManagedRuleGroupStatement(_, context),
3068
+ NotStatement: (_) => de_NotStatement(_, context),
3069
+ OrStatement: (_) => de_OrStatement(_, context),
3070
+ RateBasedStatement: (_) => de_RateBasedStatement(_, context),
3071
+ RegexMatchStatement: _json,
3072
+ RegexPatternSetReferenceStatement: _json,
3073
+ RuleGroupReferenceStatement: _json,
3074
+ SizeConstraintStatement: _json,
3075
+ SqliMatchStatement: _json,
3076
+ XssMatchStatement: _json,
3077
+ });
5325
3078
  };
5326
- const de_TokenDomains = (output, context) => {
3079
+ const de_Statements = (output, context) => {
5327
3080
  const retVal = (output || [])
5328
3081
  .filter((e) => e != null)
5329
3082
  .map((entry) => {
5330
- if (entry === null) {
5331
- return null;
5332
- }
5333
- return __expectString(entry);
3083
+ return de_Statement(entry, context);
5334
3084
  });
5335
3085
  return retVal;
5336
3086
  };
5337
- const de_UntagResourceResponse = (output, context) => {
5338
- return {};
5339
- };
5340
- const de_UpdateIPSetResponse = (output, context) => {
5341
- return {
5342
- NextLockToken: __expectString(output.NextLockToken),
5343
- };
3087
+ const de_TimeWindow = (output, context) => {
3088
+ return take(output, {
3089
+ EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3090
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3091
+ });
5344
3092
  };
5345
3093
  const de_UpdateManagedRuleSetVersionExpiryDateResponse = (output, context) => {
5346
- return {
5347
- ExpiringVersion: __expectString(output.ExpiringVersion),
5348
- ExpiryTimestamp: output.ExpiryTimestamp != null
5349
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpiryTimestamp)))
5350
- : undefined,
5351
- NextLockToken: __expectString(output.NextLockToken),
5352
- };
5353
- };
5354
- const de_UpdateRegexPatternSetResponse = (output, context) => {
5355
- return {
5356
- NextLockToken: __expectString(output.NextLockToken),
5357
- };
5358
- };
5359
- const de_UpdateRuleGroupResponse = (output, context) => {
5360
- return {
5361
- NextLockToken: __expectString(output.NextLockToken),
5362
- };
5363
- };
5364
- const de_UpdateWebACLResponse = (output, context) => {
5365
- return {
5366
- NextLockToken: __expectString(output.NextLockToken),
5367
- };
5368
- };
5369
- const de_UriPath = (output, context) => {
5370
- return {};
5371
- };
5372
- const de_UsernameField = (output, context) => {
5373
- return {
5374
- Identifier: __expectString(output.Identifier),
5375
- };
5376
- };
5377
- const de_VisibilityConfig = (output, context) => {
5378
- return {
5379
- CloudWatchMetricsEnabled: __expectBoolean(output.CloudWatchMetricsEnabled),
5380
- MetricName: __expectString(output.MetricName),
5381
- SampledRequestsEnabled: __expectBoolean(output.SampledRequestsEnabled),
5382
- };
5383
- };
5384
- const de_WAFAssociatedItemException = (output, context) => {
5385
- return {
5386
- Message: __expectString(output.Message),
5387
- };
5388
- };
5389
- const de_WAFConfigurationWarningException = (output, context) => {
5390
- return {
5391
- Message: __expectString(output.Message),
5392
- };
5393
- };
5394
- const de_WAFDuplicateItemException = (output, context) => {
5395
- return {
5396
- Message: __expectString(output.Message),
5397
- };
5398
- };
5399
- const de_WAFExpiredManagedRuleGroupVersionException = (output, context) => {
5400
- return {
5401
- Message: __expectString(output.Message),
5402
- };
5403
- };
5404
- const de_WAFInternalErrorException = (output, context) => {
5405
- return {
5406
- Message: __expectString(output.Message),
5407
- };
5408
- };
5409
- const de_WAFInvalidOperationException = (output, context) => {
5410
- return {
5411
- Message: __expectString(output.Message),
5412
- };
5413
- };
5414
- const de_WAFInvalidParameterException = (output, context) => {
5415
- return {
5416
- Field: __expectString(output.Field),
5417
- Parameter: __expectString(output.Parameter),
5418
- Reason: __expectString(output.Reason),
5419
- message: __expectString(output.message),
5420
- };
5421
- };
5422
- const de_WAFInvalidPermissionPolicyException = (output, context) => {
5423
- return {
5424
- Message: __expectString(output.Message),
5425
- };
5426
- };
5427
- const de_WAFInvalidResourceException = (output, context) => {
5428
- return {
5429
- Message: __expectString(output.Message),
5430
- };
5431
- };
5432
- const de_WAFLimitsExceededException = (output, context) => {
5433
- return {
5434
- Message: __expectString(output.Message),
5435
- };
5436
- };
5437
- const de_WAFLogDestinationPermissionIssueException = (output, context) => {
5438
- return {
5439
- Message: __expectString(output.Message),
5440
- };
5441
- };
5442
- const de_WAFNonexistentItemException = (output, context) => {
5443
- return {
5444
- Message: __expectString(output.Message),
5445
- };
5446
- };
5447
- const de_WAFOptimisticLockException = (output, context) => {
5448
- return {
5449
- Message: __expectString(output.Message),
5450
- };
5451
- };
5452
- const de_WAFServiceLinkedRoleErrorException = (output, context) => {
5453
- return {
5454
- message: __expectString(output.message),
5455
- };
5456
- };
5457
- const de_WAFSubscriptionNotFoundException = (output, context) => {
5458
- return {
5459
- Message: __expectString(output.Message),
5460
- };
5461
- };
5462
- const de_WAFTagOperationException = (output, context) => {
5463
- return {
5464
- Message: __expectString(output.Message),
5465
- };
5466
- };
5467
- const de_WAFTagOperationInternalErrorException = (output, context) => {
5468
- return {
5469
- Message: __expectString(output.Message),
5470
- };
5471
- };
5472
- const de_WAFUnavailableEntityException = (output, context) => {
5473
- return {
5474
- Message: __expectString(output.Message),
5475
- };
3094
+ return take(output, {
3095
+ ExpiringVersion: __expectString,
3096
+ ExpiryTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3097
+ NextLockToken: __expectString,
3098
+ });
5476
3099
  };
5477
3100
  const de_WebACL = (output, context) => {
5478
- return {
5479
- ARN: __expectString(output.ARN),
5480
- AssociationConfig: output.AssociationConfig != null ? de_AssociationConfig(output.AssociationConfig, context) : undefined,
5481
- Capacity: __expectLong(output.Capacity),
5482
- CaptchaConfig: output.CaptchaConfig != null ? de_CaptchaConfig(output.CaptchaConfig, context) : undefined,
5483
- ChallengeConfig: output.ChallengeConfig != null ? de_ChallengeConfig(output.ChallengeConfig, context) : undefined,
5484
- CustomResponseBodies: output.CustomResponseBodies != null ? de_CustomResponseBodies(output.CustomResponseBodies, context) : undefined,
5485
- DefaultAction: output.DefaultAction != null ? de_DefaultAction(output.DefaultAction, context) : undefined,
5486
- Description: __expectString(output.Description),
5487
- Id: __expectString(output.Id),
5488
- LabelNamespace: __expectString(output.LabelNamespace),
5489
- ManagedByFirewallManager: __expectBoolean(output.ManagedByFirewallManager),
5490
- Name: __expectString(output.Name),
5491
- PostProcessFirewallManagerRuleGroups: output.PostProcessFirewallManagerRuleGroups != null
5492
- ? de_FirewallManagerRuleGroups(output.PostProcessFirewallManagerRuleGroups, context)
5493
- : undefined,
5494
- PreProcessFirewallManagerRuleGroups: output.PreProcessFirewallManagerRuleGroups != null
5495
- ? de_FirewallManagerRuleGroups(output.PreProcessFirewallManagerRuleGroups, context)
5496
- : undefined,
5497
- Rules: output.Rules != null ? de_Rules(output.Rules, context) : undefined,
5498
- TokenDomains: output.TokenDomains != null ? de_TokenDomains(output.TokenDomains, context) : undefined,
5499
- VisibilityConfig: output.VisibilityConfig != null ? de_VisibilityConfig(output.VisibilityConfig, context) : undefined,
5500
- };
5501
- };
5502
- const de_WebACLSummaries = (output, context) => {
5503
- const retVal = (output || [])
5504
- .filter((e) => e != null)
5505
- .map((entry) => {
5506
- if (entry === null) {
5507
- return null;
5508
- }
5509
- return de_WebACLSummary(entry, context);
3101
+ return take(output, {
3102
+ ARN: __expectString,
3103
+ AssociationConfig: _json,
3104
+ Capacity: __expectLong,
3105
+ CaptchaConfig: _json,
3106
+ ChallengeConfig: _json,
3107
+ CustomResponseBodies: _json,
3108
+ DefaultAction: _json,
3109
+ Description: __expectString,
3110
+ Id: __expectString,
3111
+ LabelNamespace: __expectString,
3112
+ ManagedByFirewallManager: __expectBoolean,
3113
+ Name: __expectString,
3114
+ PostProcessFirewallManagerRuleGroups: (_) => de_FirewallManagerRuleGroups(_, context),
3115
+ PreProcessFirewallManagerRuleGroups: (_) => de_FirewallManagerRuleGroups(_, context),
3116
+ Rules: (_) => de_Rules(_, context),
3117
+ TokenDomains: _json,
3118
+ VisibilityConfig: _json,
5510
3119
  });
5511
- return retVal;
5512
- };
5513
- const de_WebACLSummary = (output, context) => {
5514
- return {
5515
- ARN: __expectString(output.ARN),
5516
- Description: __expectString(output.Description),
5517
- Id: __expectString(output.Id),
5518
- LockToken: __expectString(output.LockToken),
5519
- Name: __expectString(output.Name),
5520
- };
5521
- };
5522
- const de_XssMatchStatement = (output, context) => {
5523
- return {
5524
- FieldToMatch: output.FieldToMatch != null ? de_FieldToMatch(output.FieldToMatch, context) : undefined,
5525
- TextTransformations: output.TextTransformations != null ? de_TextTransformations(output.TextTransformations, context) : undefined,
5526
- };
5527
3120
  };
5528
3121
  const deserializeMetadata = (output) => ({
5529
3122
  httpStatusCode: output.statusCode,
@@ -5538,6 +3131,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
5538
3131
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5539
3132
  };
5540
3133
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3134
+ const throwDefaultError = withBaseException(__BaseException);
5541
3135
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5542
3136
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5543
3137
  const contents = {