@aws-sdk/client-waf-regional 3.926.0 → 3.928.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist-cjs/index.js +2063 -2561
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/WAFRegionalClient.js +2 -0
  4. package/dist-es/commands/AssociateWebACLCommand.js +3 -9
  5. package/dist-es/commands/CreateByteMatchSetCommand.js +3 -9
  6. package/dist-es/commands/CreateGeoMatchSetCommand.js +3 -9
  7. package/dist-es/commands/CreateIPSetCommand.js +3 -9
  8. package/dist-es/commands/CreateRateBasedRuleCommand.js +3 -9
  9. package/dist-es/commands/CreateRegexMatchSetCommand.js +3 -9
  10. package/dist-es/commands/CreateRegexPatternSetCommand.js +3 -9
  11. package/dist-es/commands/CreateRuleCommand.js +3 -9
  12. package/dist-es/commands/CreateRuleGroupCommand.js +3 -9
  13. package/dist-es/commands/CreateSizeConstraintSetCommand.js +3 -9
  14. package/dist-es/commands/CreateSqlInjectionMatchSetCommand.js +3 -9
  15. package/dist-es/commands/CreateWebACLCommand.js +3 -9
  16. package/dist-es/commands/CreateWebACLMigrationStackCommand.js +3 -9
  17. package/dist-es/commands/CreateXssMatchSetCommand.js +3 -9
  18. package/dist-es/commands/DeleteByteMatchSetCommand.js +3 -9
  19. package/dist-es/commands/DeleteGeoMatchSetCommand.js +3 -9
  20. package/dist-es/commands/DeleteIPSetCommand.js +3 -9
  21. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +3 -9
  22. package/dist-es/commands/DeletePermissionPolicyCommand.js +3 -9
  23. package/dist-es/commands/DeleteRateBasedRuleCommand.js +3 -9
  24. package/dist-es/commands/DeleteRegexMatchSetCommand.js +3 -9
  25. package/dist-es/commands/DeleteRegexPatternSetCommand.js +3 -9
  26. package/dist-es/commands/DeleteRuleCommand.js +3 -9
  27. package/dist-es/commands/DeleteRuleGroupCommand.js +3 -9
  28. package/dist-es/commands/DeleteSizeConstraintSetCommand.js +3 -9
  29. package/dist-es/commands/DeleteSqlInjectionMatchSetCommand.js +3 -9
  30. package/dist-es/commands/DeleteWebACLCommand.js +3 -9
  31. package/dist-es/commands/DeleteXssMatchSetCommand.js +3 -9
  32. package/dist-es/commands/DisassociateWebACLCommand.js +3 -9
  33. package/dist-es/commands/GetByteMatchSetCommand.js +3 -9
  34. package/dist-es/commands/GetChangeTokenCommand.js +3 -9
  35. package/dist-es/commands/GetChangeTokenStatusCommand.js +3 -9
  36. package/dist-es/commands/GetGeoMatchSetCommand.js +3 -9
  37. package/dist-es/commands/GetIPSetCommand.js +3 -9
  38. package/dist-es/commands/GetLoggingConfigurationCommand.js +3 -9
  39. package/dist-es/commands/GetPermissionPolicyCommand.js +3 -9
  40. package/dist-es/commands/GetRateBasedRuleCommand.js +3 -9
  41. package/dist-es/commands/GetRateBasedRuleManagedKeysCommand.js +3 -9
  42. package/dist-es/commands/GetRegexMatchSetCommand.js +3 -9
  43. package/dist-es/commands/GetRegexPatternSetCommand.js +3 -9
  44. package/dist-es/commands/GetRuleCommand.js +3 -9
  45. package/dist-es/commands/GetRuleGroupCommand.js +3 -9
  46. package/dist-es/commands/GetSampledRequestsCommand.js +3 -9
  47. package/dist-es/commands/GetSizeConstraintSetCommand.js +3 -9
  48. package/dist-es/commands/GetSqlInjectionMatchSetCommand.js +3 -9
  49. package/dist-es/commands/GetWebACLCommand.js +3 -9
  50. package/dist-es/commands/GetWebACLForResourceCommand.js +3 -9
  51. package/dist-es/commands/GetXssMatchSetCommand.js +3 -9
  52. package/dist-es/commands/ListActivatedRulesInRuleGroupCommand.js +3 -9
  53. package/dist-es/commands/ListByteMatchSetsCommand.js +3 -9
  54. package/dist-es/commands/ListGeoMatchSetsCommand.js +3 -9
  55. package/dist-es/commands/ListIPSetsCommand.js +3 -9
  56. package/dist-es/commands/ListLoggingConfigurationsCommand.js +3 -9
  57. package/dist-es/commands/ListRateBasedRulesCommand.js +3 -9
  58. package/dist-es/commands/ListRegexMatchSetsCommand.js +3 -9
  59. package/dist-es/commands/ListRegexPatternSetsCommand.js +3 -9
  60. package/dist-es/commands/ListResourcesForWebACLCommand.js +3 -9
  61. package/dist-es/commands/ListRuleGroupsCommand.js +3 -9
  62. package/dist-es/commands/ListRulesCommand.js +3 -9
  63. package/dist-es/commands/ListSizeConstraintSetsCommand.js +3 -9
  64. package/dist-es/commands/ListSqlInjectionMatchSetsCommand.js +3 -9
  65. package/dist-es/commands/ListSubscribedRuleGroupsCommand.js +3 -9
  66. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  67. package/dist-es/commands/ListWebACLsCommand.js +3 -9
  68. package/dist-es/commands/ListXssMatchSetsCommand.js +3 -9
  69. package/dist-es/commands/PutLoggingConfigurationCommand.js +3 -9
  70. package/dist-es/commands/PutPermissionPolicyCommand.js +3 -9
  71. package/dist-es/commands/TagResourceCommand.js +3 -9
  72. package/dist-es/commands/UntagResourceCommand.js +3 -9
  73. package/dist-es/commands/UpdateByteMatchSetCommand.js +3 -9
  74. package/dist-es/commands/UpdateGeoMatchSetCommand.js +3 -9
  75. package/dist-es/commands/UpdateIPSetCommand.js +3 -9
  76. package/dist-es/commands/UpdateRateBasedRuleCommand.js +3 -9
  77. package/dist-es/commands/UpdateRegexMatchSetCommand.js +3 -9
  78. package/dist-es/commands/UpdateRegexPatternSetCommand.js +3 -9
  79. package/dist-es/commands/UpdateRuleCommand.js +3 -9
  80. package/dist-es/commands/UpdateRuleGroupCommand.js +3 -9
  81. package/dist-es/commands/UpdateSizeConstraintSetCommand.js +3 -9
  82. package/dist-es/commands/UpdateSqlInjectionMatchSetCommand.js +3 -9
  83. package/dist-es/commands/UpdateWebACLCommand.js +3 -9
  84. package/dist-es/commands/UpdateXssMatchSetCommand.js +3 -9
  85. package/dist-es/runtimeConfig.shared.js +7 -0
  86. package/dist-es/schemas/schemas_0.js +1845 -0
  87. package/dist-types/WAFRegionalClient.d.ts +10 -1
  88. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  89. package/dist-types/runtimeConfig.d.ts +1 -0
  90. package/dist-types/runtimeConfig.native.d.ts +1 -0
  91. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  92. package/dist-types/schemas/schemas_0.d.ts +364 -0
  93. package/dist-types/ts3.4/WAFRegionalClient.d.ts +4 -0
  94. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  95. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  96. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  97. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  98. package/dist-types/ts3.4/schemas/schemas_0.d.ts +369 -0
  99. package/package.json +5 -5
  100. package/dist-es/protocols/Aws_json1_1.js +0 -1938
  101. package/dist-types/protocols/Aws_json1_1.d.ts +0 -731
  102. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -977
@@ -1,1938 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { WAFBadRequestException, WAFDisallowedNameException, WAFEntityMigrationException, WAFInternalErrorException, WAFInvalidAccountException, WAFInvalidOperationException, WAFInvalidParameterException, WAFInvalidPermissionPolicyException, WAFInvalidRegexPatternException, WAFLimitsExceededException, WAFNonEmptyEntityException, WAFNonexistentContainerException, WAFNonexistentItemException, WAFReferencedItemException, WAFServiceLinkedRoleErrorException, WAFStaleDataException, WAFSubscriptionNotFoundException, WAFTagOperationException, WAFTagOperationInternalErrorException, WAFUnavailableEntityException, } from "../models/models_0";
5
- import { WAFRegionalServiceException as __BaseException } from "../models/WAFRegionalServiceException";
6
- export const se_AssociateWebACLCommand = async (input, context) => {
7
- const headers = sharedHeaders("AssociateWebACL");
8
- let body;
9
- body = JSON.stringify(_json(input));
10
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
- };
12
- export const se_CreateByteMatchSetCommand = async (input, context) => {
13
- const headers = sharedHeaders("CreateByteMatchSet");
14
- let body;
15
- body = JSON.stringify(_json(input));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- export const se_CreateGeoMatchSetCommand = async (input, context) => {
19
- const headers = sharedHeaders("CreateGeoMatchSet");
20
- let body;
21
- body = JSON.stringify(_json(input));
22
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
- };
24
- export const se_CreateIPSetCommand = async (input, context) => {
25
- const headers = sharedHeaders("CreateIPSet");
26
- let body;
27
- body = JSON.stringify(_json(input));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- export const se_CreateRateBasedRuleCommand = async (input, context) => {
31
- const headers = sharedHeaders("CreateRateBasedRule");
32
- let body;
33
- body = JSON.stringify(_json(input));
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- export const se_CreateRegexMatchSetCommand = async (input, context) => {
37
- const headers = sharedHeaders("CreateRegexMatchSet");
38
- let body;
39
- body = JSON.stringify(_json(input));
40
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
- };
42
- export const se_CreateRegexPatternSetCommand = async (input, context) => {
43
- const headers = sharedHeaders("CreateRegexPatternSet");
44
- let body;
45
- body = JSON.stringify(_json(input));
46
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
- };
48
- export const se_CreateRuleCommand = async (input, context) => {
49
- const headers = sharedHeaders("CreateRule");
50
- let body;
51
- body = JSON.stringify(_json(input));
52
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
- };
54
- export const se_CreateRuleGroupCommand = async (input, context) => {
55
- const headers = sharedHeaders("CreateRuleGroup");
56
- let body;
57
- body = JSON.stringify(_json(input));
58
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
- };
60
- export const se_CreateSizeConstraintSetCommand = async (input, context) => {
61
- const headers = sharedHeaders("CreateSizeConstraintSet");
62
- let body;
63
- body = JSON.stringify(_json(input));
64
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
- };
66
- export const se_CreateSqlInjectionMatchSetCommand = async (input, context) => {
67
- const headers = sharedHeaders("CreateSqlInjectionMatchSet");
68
- let body;
69
- body = JSON.stringify(_json(input));
70
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
- };
72
- export const se_CreateWebACLCommand = async (input, context) => {
73
- const headers = sharedHeaders("CreateWebACL");
74
- let body;
75
- body = JSON.stringify(_json(input));
76
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
- };
78
- export const se_CreateWebACLMigrationStackCommand = async (input, context) => {
79
- const headers = sharedHeaders("CreateWebACLMigrationStack");
80
- let body;
81
- body = JSON.stringify(_json(input));
82
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
- };
84
- export const se_CreateXssMatchSetCommand = async (input, context) => {
85
- const headers = sharedHeaders("CreateXssMatchSet");
86
- let body;
87
- body = JSON.stringify(_json(input));
88
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
- };
90
- export const se_DeleteByteMatchSetCommand = async (input, context) => {
91
- const headers = sharedHeaders("DeleteByteMatchSet");
92
- let body;
93
- body = JSON.stringify(_json(input));
94
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
- };
96
- export const se_DeleteGeoMatchSetCommand = async (input, context) => {
97
- const headers = sharedHeaders("DeleteGeoMatchSet");
98
- let body;
99
- body = JSON.stringify(_json(input));
100
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
- };
102
- export const se_DeleteIPSetCommand = async (input, context) => {
103
- const headers = sharedHeaders("DeleteIPSet");
104
- let body;
105
- body = JSON.stringify(_json(input));
106
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
- };
108
- export const se_DeleteLoggingConfigurationCommand = async (input, context) => {
109
- const headers = sharedHeaders("DeleteLoggingConfiguration");
110
- let body;
111
- body = JSON.stringify(_json(input));
112
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
- };
114
- export const se_DeletePermissionPolicyCommand = async (input, context) => {
115
- const headers = sharedHeaders("DeletePermissionPolicy");
116
- let body;
117
- body = JSON.stringify(_json(input));
118
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
- };
120
- export const se_DeleteRateBasedRuleCommand = async (input, context) => {
121
- const headers = sharedHeaders("DeleteRateBasedRule");
122
- let body;
123
- body = JSON.stringify(_json(input));
124
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
- };
126
- export const se_DeleteRegexMatchSetCommand = async (input, context) => {
127
- const headers = sharedHeaders("DeleteRegexMatchSet");
128
- let body;
129
- body = JSON.stringify(_json(input));
130
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
- };
132
- export const se_DeleteRegexPatternSetCommand = async (input, context) => {
133
- const headers = sharedHeaders("DeleteRegexPatternSet");
134
- let body;
135
- body = JSON.stringify(_json(input));
136
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
- };
138
- export const se_DeleteRuleCommand = async (input, context) => {
139
- const headers = sharedHeaders("DeleteRule");
140
- let body;
141
- body = JSON.stringify(_json(input));
142
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
- };
144
- export const se_DeleteRuleGroupCommand = async (input, context) => {
145
- const headers = sharedHeaders("DeleteRuleGroup");
146
- let body;
147
- body = JSON.stringify(_json(input));
148
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
- };
150
- export const se_DeleteSizeConstraintSetCommand = async (input, context) => {
151
- const headers = sharedHeaders("DeleteSizeConstraintSet");
152
- let body;
153
- body = JSON.stringify(_json(input));
154
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
- };
156
- export const se_DeleteSqlInjectionMatchSetCommand = async (input, context) => {
157
- const headers = sharedHeaders("DeleteSqlInjectionMatchSet");
158
- let body;
159
- body = JSON.stringify(_json(input));
160
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
- };
162
- export const se_DeleteWebACLCommand = async (input, context) => {
163
- const headers = sharedHeaders("DeleteWebACL");
164
- let body;
165
- body = JSON.stringify(_json(input));
166
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
- };
168
- export const se_DeleteXssMatchSetCommand = async (input, context) => {
169
- const headers = sharedHeaders("DeleteXssMatchSet");
170
- let body;
171
- body = JSON.stringify(_json(input));
172
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
- };
174
- export const se_DisassociateWebACLCommand = async (input, context) => {
175
- const headers = sharedHeaders("DisassociateWebACL");
176
- let body;
177
- body = JSON.stringify(_json(input));
178
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
- };
180
- export const se_GetByteMatchSetCommand = async (input, context) => {
181
- const headers = sharedHeaders("GetByteMatchSet");
182
- let body;
183
- body = JSON.stringify(_json(input));
184
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
- };
186
- export const se_GetChangeTokenCommand = async (input, context) => {
187
- const headers = sharedHeaders("GetChangeToken");
188
- let body;
189
- body = JSON.stringify(_json(input));
190
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
- };
192
- export const se_GetChangeTokenStatusCommand = async (input, context) => {
193
- const headers = sharedHeaders("GetChangeTokenStatus");
194
- let body;
195
- body = JSON.stringify(_json(input));
196
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
- };
198
- export const se_GetGeoMatchSetCommand = async (input, context) => {
199
- const headers = sharedHeaders("GetGeoMatchSet");
200
- let body;
201
- body = JSON.stringify(_json(input));
202
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
- };
204
- export const se_GetIPSetCommand = async (input, context) => {
205
- const headers = sharedHeaders("GetIPSet");
206
- let body;
207
- body = JSON.stringify(_json(input));
208
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
- };
210
- export const se_GetLoggingConfigurationCommand = async (input, context) => {
211
- const headers = sharedHeaders("GetLoggingConfiguration");
212
- let body;
213
- body = JSON.stringify(_json(input));
214
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
- };
216
- export const se_GetPermissionPolicyCommand = async (input, context) => {
217
- const headers = sharedHeaders("GetPermissionPolicy");
218
- let body;
219
- body = JSON.stringify(_json(input));
220
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
- };
222
- export const se_GetRateBasedRuleCommand = async (input, context) => {
223
- const headers = sharedHeaders("GetRateBasedRule");
224
- let body;
225
- body = JSON.stringify(_json(input));
226
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
- };
228
- export const se_GetRateBasedRuleManagedKeysCommand = async (input, context) => {
229
- const headers = sharedHeaders("GetRateBasedRuleManagedKeys");
230
- let body;
231
- body = JSON.stringify(_json(input));
232
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
- };
234
- export const se_GetRegexMatchSetCommand = async (input, context) => {
235
- const headers = sharedHeaders("GetRegexMatchSet");
236
- let body;
237
- body = JSON.stringify(_json(input));
238
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
- };
240
- export const se_GetRegexPatternSetCommand = async (input, context) => {
241
- const headers = sharedHeaders("GetRegexPatternSet");
242
- let body;
243
- body = JSON.stringify(_json(input));
244
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
- };
246
- export const se_GetRuleCommand = async (input, context) => {
247
- const headers = sharedHeaders("GetRule");
248
- let body;
249
- body = JSON.stringify(_json(input));
250
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
251
- };
252
- export const se_GetRuleGroupCommand = async (input, context) => {
253
- const headers = sharedHeaders("GetRuleGroup");
254
- let body;
255
- body = JSON.stringify(_json(input));
256
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
- };
258
- export const se_GetSampledRequestsCommand = async (input, context) => {
259
- const headers = sharedHeaders("GetSampledRequests");
260
- let body;
261
- body = JSON.stringify(se_GetSampledRequestsRequest(input, context));
262
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
263
- };
264
- export const se_GetSizeConstraintSetCommand = async (input, context) => {
265
- const headers = sharedHeaders("GetSizeConstraintSet");
266
- let body;
267
- body = JSON.stringify(_json(input));
268
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
- };
270
- export const se_GetSqlInjectionMatchSetCommand = async (input, context) => {
271
- const headers = sharedHeaders("GetSqlInjectionMatchSet");
272
- let body;
273
- body = JSON.stringify(_json(input));
274
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
- };
276
- export const se_GetWebACLCommand = async (input, context) => {
277
- const headers = sharedHeaders("GetWebACL");
278
- let body;
279
- body = JSON.stringify(_json(input));
280
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
- };
282
- export const se_GetWebACLForResourceCommand = async (input, context) => {
283
- const headers = sharedHeaders("GetWebACLForResource");
284
- let body;
285
- body = JSON.stringify(_json(input));
286
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
- };
288
- export const se_GetXssMatchSetCommand = async (input, context) => {
289
- const headers = sharedHeaders("GetXssMatchSet");
290
- let body;
291
- body = JSON.stringify(_json(input));
292
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
293
- };
294
- export const se_ListActivatedRulesInRuleGroupCommand = async (input, context) => {
295
- const headers = sharedHeaders("ListActivatedRulesInRuleGroup");
296
- let body;
297
- body = JSON.stringify(_json(input));
298
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
- };
300
- export const se_ListByteMatchSetsCommand = async (input, context) => {
301
- const headers = sharedHeaders("ListByteMatchSets");
302
- let body;
303
- body = JSON.stringify(_json(input));
304
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
- };
306
- export const se_ListGeoMatchSetsCommand = async (input, context) => {
307
- const headers = sharedHeaders("ListGeoMatchSets");
308
- let body;
309
- body = JSON.stringify(_json(input));
310
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
- };
312
- export const se_ListIPSetsCommand = async (input, context) => {
313
- const headers = sharedHeaders("ListIPSets");
314
- let body;
315
- body = JSON.stringify(_json(input));
316
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
- };
318
- export const se_ListLoggingConfigurationsCommand = async (input, context) => {
319
- const headers = sharedHeaders("ListLoggingConfigurations");
320
- let body;
321
- body = JSON.stringify(_json(input));
322
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
- };
324
- export const se_ListRateBasedRulesCommand = async (input, context) => {
325
- const headers = sharedHeaders("ListRateBasedRules");
326
- let body;
327
- body = JSON.stringify(_json(input));
328
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
- };
330
- export const se_ListRegexMatchSetsCommand = async (input, context) => {
331
- const headers = sharedHeaders("ListRegexMatchSets");
332
- let body;
333
- body = JSON.stringify(_json(input));
334
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
335
- };
336
- export const se_ListRegexPatternSetsCommand = async (input, context) => {
337
- const headers = sharedHeaders("ListRegexPatternSets");
338
- let body;
339
- body = JSON.stringify(_json(input));
340
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
341
- };
342
- export const se_ListResourcesForWebACLCommand = async (input, context) => {
343
- const headers = sharedHeaders("ListResourcesForWebACL");
344
- let body;
345
- body = JSON.stringify(_json(input));
346
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
- };
348
- export const se_ListRuleGroupsCommand = async (input, context) => {
349
- const headers = sharedHeaders("ListRuleGroups");
350
- let body;
351
- body = JSON.stringify(_json(input));
352
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
- };
354
- export const se_ListRulesCommand = async (input, context) => {
355
- const headers = sharedHeaders("ListRules");
356
- let body;
357
- body = JSON.stringify(_json(input));
358
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
359
- };
360
- export const se_ListSizeConstraintSetsCommand = async (input, context) => {
361
- const headers = sharedHeaders("ListSizeConstraintSets");
362
- let body;
363
- body = JSON.stringify(_json(input));
364
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
- };
366
- export const se_ListSqlInjectionMatchSetsCommand = async (input, context) => {
367
- const headers = sharedHeaders("ListSqlInjectionMatchSets");
368
- let body;
369
- body = JSON.stringify(_json(input));
370
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
371
- };
372
- export const se_ListSubscribedRuleGroupsCommand = async (input, context) => {
373
- const headers = sharedHeaders("ListSubscribedRuleGroups");
374
- let body;
375
- body = JSON.stringify(_json(input));
376
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
- };
378
- export const se_ListTagsForResourceCommand = async (input, context) => {
379
- const headers = sharedHeaders("ListTagsForResource");
380
- let body;
381
- body = JSON.stringify(_json(input));
382
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
383
- };
384
- export const se_ListWebACLsCommand = async (input, context) => {
385
- const headers = sharedHeaders("ListWebACLs");
386
- let body;
387
- body = JSON.stringify(_json(input));
388
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
389
- };
390
- export const se_ListXssMatchSetsCommand = async (input, context) => {
391
- const headers = sharedHeaders("ListXssMatchSets");
392
- let body;
393
- body = JSON.stringify(_json(input));
394
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
395
- };
396
- export const se_PutLoggingConfigurationCommand = async (input, context) => {
397
- const headers = sharedHeaders("PutLoggingConfiguration");
398
- let body;
399
- body = JSON.stringify(_json(input));
400
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
401
- };
402
- export const se_PutPermissionPolicyCommand = async (input, context) => {
403
- const headers = sharedHeaders("PutPermissionPolicy");
404
- let body;
405
- body = JSON.stringify(_json(input));
406
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
- };
408
- export const se_TagResourceCommand = async (input, context) => {
409
- const headers = sharedHeaders("TagResource");
410
- let body;
411
- body = JSON.stringify(_json(input));
412
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
413
- };
414
- export const se_UntagResourceCommand = async (input, context) => {
415
- const headers = sharedHeaders("UntagResource");
416
- let body;
417
- body = JSON.stringify(_json(input));
418
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
419
- };
420
- export const se_UpdateByteMatchSetCommand = async (input, context) => {
421
- const headers = sharedHeaders("UpdateByteMatchSet");
422
- let body;
423
- body = JSON.stringify(se_UpdateByteMatchSetRequest(input, context));
424
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
425
- };
426
- export const se_UpdateGeoMatchSetCommand = async (input, context) => {
427
- const headers = sharedHeaders("UpdateGeoMatchSet");
428
- let body;
429
- body = JSON.stringify(_json(input));
430
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
431
- };
432
- export const se_UpdateIPSetCommand = async (input, context) => {
433
- const headers = sharedHeaders("UpdateIPSet");
434
- let body;
435
- body = JSON.stringify(_json(input));
436
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
- };
438
- export const se_UpdateRateBasedRuleCommand = async (input, context) => {
439
- const headers = sharedHeaders("UpdateRateBasedRule");
440
- let body;
441
- body = JSON.stringify(_json(input));
442
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
443
- };
444
- export const se_UpdateRegexMatchSetCommand = async (input, context) => {
445
- const headers = sharedHeaders("UpdateRegexMatchSet");
446
- let body;
447
- body = JSON.stringify(_json(input));
448
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
- };
450
- export const se_UpdateRegexPatternSetCommand = async (input, context) => {
451
- const headers = sharedHeaders("UpdateRegexPatternSet");
452
- let body;
453
- body = JSON.stringify(_json(input));
454
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
455
- };
456
- export const se_UpdateRuleCommand = async (input, context) => {
457
- const headers = sharedHeaders("UpdateRule");
458
- let body;
459
- body = JSON.stringify(_json(input));
460
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
461
- };
462
- export const se_UpdateRuleGroupCommand = async (input, context) => {
463
- const headers = sharedHeaders("UpdateRuleGroup");
464
- let body;
465
- body = JSON.stringify(_json(input));
466
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
467
- };
468
- export const se_UpdateSizeConstraintSetCommand = async (input, context) => {
469
- const headers = sharedHeaders("UpdateSizeConstraintSet");
470
- let body;
471
- body = JSON.stringify(_json(input));
472
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
473
- };
474
- export const se_UpdateSqlInjectionMatchSetCommand = async (input, context) => {
475
- const headers = sharedHeaders("UpdateSqlInjectionMatchSet");
476
- let body;
477
- body = JSON.stringify(_json(input));
478
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
479
- };
480
- export const se_UpdateWebACLCommand = async (input, context) => {
481
- const headers = sharedHeaders("UpdateWebACL");
482
- let body;
483
- body = JSON.stringify(_json(input));
484
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
485
- };
486
- export const se_UpdateXssMatchSetCommand = async (input, context) => {
487
- const headers = sharedHeaders("UpdateXssMatchSet");
488
- let body;
489
- body = JSON.stringify(_json(input));
490
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
491
- };
492
- export const de_AssociateWebACLCommand = async (output, context) => {
493
- if (output.statusCode >= 300) {
494
- return de_CommandError(output, context);
495
- }
496
- const data = await parseBody(output.body, context);
497
- let contents = {};
498
- contents = _json(data);
499
- const response = {
500
- $metadata: deserializeMetadata(output),
501
- ...contents,
502
- };
503
- return response;
504
- };
505
- export const de_CreateByteMatchSetCommand = async (output, context) => {
506
- if (output.statusCode >= 300) {
507
- return de_CommandError(output, context);
508
- }
509
- const data = await parseBody(output.body, context);
510
- let contents = {};
511
- contents = de_CreateByteMatchSetResponse(data, context);
512
- const response = {
513
- $metadata: deserializeMetadata(output),
514
- ...contents,
515
- };
516
- return response;
517
- };
518
- export const de_CreateGeoMatchSetCommand = async (output, context) => {
519
- if (output.statusCode >= 300) {
520
- return de_CommandError(output, context);
521
- }
522
- const data = await parseBody(output.body, context);
523
- let contents = {};
524
- contents = _json(data);
525
- const response = {
526
- $metadata: deserializeMetadata(output),
527
- ...contents,
528
- };
529
- return response;
530
- };
531
- export const de_CreateIPSetCommand = async (output, context) => {
532
- if (output.statusCode >= 300) {
533
- return de_CommandError(output, context);
534
- }
535
- const data = await parseBody(output.body, context);
536
- let contents = {};
537
- contents = _json(data);
538
- const response = {
539
- $metadata: deserializeMetadata(output),
540
- ...contents,
541
- };
542
- return response;
543
- };
544
- export const de_CreateRateBasedRuleCommand = async (output, context) => {
545
- if (output.statusCode >= 300) {
546
- return de_CommandError(output, context);
547
- }
548
- const data = await parseBody(output.body, context);
549
- let contents = {};
550
- contents = _json(data);
551
- const response = {
552
- $metadata: deserializeMetadata(output),
553
- ...contents,
554
- };
555
- return response;
556
- };
557
- export const de_CreateRegexMatchSetCommand = async (output, context) => {
558
- if (output.statusCode >= 300) {
559
- return de_CommandError(output, context);
560
- }
561
- const data = await parseBody(output.body, context);
562
- let contents = {};
563
- contents = _json(data);
564
- const response = {
565
- $metadata: deserializeMetadata(output),
566
- ...contents,
567
- };
568
- return response;
569
- };
570
- export const de_CreateRegexPatternSetCommand = async (output, context) => {
571
- if (output.statusCode >= 300) {
572
- return de_CommandError(output, context);
573
- }
574
- const data = await parseBody(output.body, context);
575
- let contents = {};
576
- contents = _json(data);
577
- const response = {
578
- $metadata: deserializeMetadata(output),
579
- ...contents,
580
- };
581
- return response;
582
- };
583
- export const de_CreateRuleCommand = async (output, context) => {
584
- if (output.statusCode >= 300) {
585
- return de_CommandError(output, context);
586
- }
587
- const data = await parseBody(output.body, context);
588
- let contents = {};
589
- contents = _json(data);
590
- const response = {
591
- $metadata: deserializeMetadata(output),
592
- ...contents,
593
- };
594
- return response;
595
- };
596
- export const de_CreateRuleGroupCommand = async (output, context) => {
597
- if (output.statusCode >= 300) {
598
- return de_CommandError(output, context);
599
- }
600
- const data = await parseBody(output.body, context);
601
- let contents = {};
602
- contents = _json(data);
603
- const response = {
604
- $metadata: deserializeMetadata(output),
605
- ...contents,
606
- };
607
- return response;
608
- };
609
- export const de_CreateSizeConstraintSetCommand = async (output, context) => {
610
- if (output.statusCode >= 300) {
611
- return de_CommandError(output, context);
612
- }
613
- const data = await parseBody(output.body, context);
614
- let contents = {};
615
- contents = _json(data);
616
- const response = {
617
- $metadata: deserializeMetadata(output),
618
- ...contents,
619
- };
620
- return response;
621
- };
622
- export const de_CreateSqlInjectionMatchSetCommand = async (output, context) => {
623
- if (output.statusCode >= 300) {
624
- return de_CommandError(output, context);
625
- }
626
- const data = await parseBody(output.body, context);
627
- let contents = {};
628
- contents = _json(data);
629
- const response = {
630
- $metadata: deserializeMetadata(output),
631
- ...contents,
632
- };
633
- return response;
634
- };
635
- export const de_CreateWebACLCommand = async (output, context) => {
636
- if (output.statusCode >= 300) {
637
- return de_CommandError(output, context);
638
- }
639
- const data = await parseBody(output.body, context);
640
- let contents = {};
641
- contents = _json(data);
642
- const response = {
643
- $metadata: deserializeMetadata(output),
644
- ...contents,
645
- };
646
- return response;
647
- };
648
- export const de_CreateWebACLMigrationStackCommand = async (output, context) => {
649
- if (output.statusCode >= 300) {
650
- return de_CommandError(output, context);
651
- }
652
- const data = await parseBody(output.body, context);
653
- let contents = {};
654
- contents = _json(data);
655
- const response = {
656
- $metadata: deserializeMetadata(output),
657
- ...contents,
658
- };
659
- return response;
660
- };
661
- export const de_CreateXssMatchSetCommand = async (output, context) => {
662
- if (output.statusCode >= 300) {
663
- return de_CommandError(output, context);
664
- }
665
- const data = await parseBody(output.body, context);
666
- let contents = {};
667
- contents = _json(data);
668
- const response = {
669
- $metadata: deserializeMetadata(output),
670
- ...contents,
671
- };
672
- return response;
673
- };
674
- export const de_DeleteByteMatchSetCommand = async (output, context) => {
675
- if (output.statusCode >= 300) {
676
- return de_CommandError(output, context);
677
- }
678
- const data = await parseBody(output.body, context);
679
- let contents = {};
680
- contents = _json(data);
681
- const response = {
682
- $metadata: deserializeMetadata(output),
683
- ...contents,
684
- };
685
- return response;
686
- };
687
- export const de_DeleteGeoMatchSetCommand = async (output, context) => {
688
- if (output.statusCode >= 300) {
689
- return de_CommandError(output, context);
690
- }
691
- const data = await parseBody(output.body, context);
692
- let contents = {};
693
- contents = _json(data);
694
- const response = {
695
- $metadata: deserializeMetadata(output),
696
- ...contents,
697
- };
698
- return response;
699
- };
700
- export const de_DeleteIPSetCommand = async (output, context) => {
701
- if (output.statusCode >= 300) {
702
- return de_CommandError(output, context);
703
- }
704
- const data = await parseBody(output.body, context);
705
- let contents = {};
706
- contents = _json(data);
707
- const response = {
708
- $metadata: deserializeMetadata(output),
709
- ...contents,
710
- };
711
- return response;
712
- };
713
- export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
714
- if (output.statusCode >= 300) {
715
- return de_CommandError(output, context);
716
- }
717
- const data = await parseBody(output.body, context);
718
- let contents = {};
719
- contents = _json(data);
720
- const response = {
721
- $metadata: deserializeMetadata(output),
722
- ...contents,
723
- };
724
- return response;
725
- };
726
- export const de_DeletePermissionPolicyCommand = async (output, context) => {
727
- if (output.statusCode >= 300) {
728
- return de_CommandError(output, context);
729
- }
730
- const data = await parseBody(output.body, context);
731
- let contents = {};
732
- contents = _json(data);
733
- const response = {
734
- $metadata: deserializeMetadata(output),
735
- ...contents,
736
- };
737
- return response;
738
- };
739
- export const de_DeleteRateBasedRuleCommand = async (output, context) => {
740
- if (output.statusCode >= 300) {
741
- return de_CommandError(output, context);
742
- }
743
- const data = await parseBody(output.body, context);
744
- let contents = {};
745
- contents = _json(data);
746
- const response = {
747
- $metadata: deserializeMetadata(output),
748
- ...contents,
749
- };
750
- return response;
751
- };
752
- export const de_DeleteRegexMatchSetCommand = async (output, context) => {
753
- if (output.statusCode >= 300) {
754
- return de_CommandError(output, context);
755
- }
756
- const data = await parseBody(output.body, context);
757
- let contents = {};
758
- contents = _json(data);
759
- const response = {
760
- $metadata: deserializeMetadata(output),
761
- ...contents,
762
- };
763
- return response;
764
- };
765
- export const de_DeleteRegexPatternSetCommand = async (output, context) => {
766
- if (output.statusCode >= 300) {
767
- return de_CommandError(output, context);
768
- }
769
- const data = await parseBody(output.body, context);
770
- let contents = {};
771
- contents = _json(data);
772
- const response = {
773
- $metadata: deserializeMetadata(output),
774
- ...contents,
775
- };
776
- return response;
777
- };
778
- export const de_DeleteRuleCommand = async (output, context) => {
779
- if (output.statusCode >= 300) {
780
- return de_CommandError(output, context);
781
- }
782
- const data = await parseBody(output.body, context);
783
- let contents = {};
784
- contents = _json(data);
785
- const response = {
786
- $metadata: deserializeMetadata(output),
787
- ...contents,
788
- };
789
- return response;
790
- };
791
- export const de_DeleteRuleGroupCommand = async (output, context) => {
792
- if (output.statusCode >= 300) {
793
- return de_CommandError(output, context);
794
- }
795
- const data = await parseBody(output.body, context);
796
- let contents = {};
797
- contents = _json(data);
798
- const response = {
799
- $metadata: deserializeMetadata(output),
800
- ...contents,
801
- };
802
- return response;
803
- };
804
- export const de_DeleteSizeConstraintSetCommand = async (output, context) => {
805
- if (output.statusCode >= 300) {
806
- return de_CommandError(output, context);
807
- }
808
- const data = await parseBody(output.body, context);
809
- let contents = {};
810
- contents = _json(data);
811
- const response = {
812
- $metadata: deserializeMetadata(output),
813
- ...contents,
814
- };
815
- return response;
816
- };
817
- export const de_DeleteSqlInjectionMatchSetCommand = async (output, context) => {
818
- if (output.statusCode >= 300) {
819
- return de_CommandError(output, context);
820
- }
821
- const data = await parseBody(output.body, context);
822
- let contents = {};
823
- contents = _json(data);
824
- const response = {
825
- $metadata: deserializeMetadata(output),
826
- ...contents,
827
- };
828
- return response;
829
- };
830
- export const de_DeleteWebACLCommand = async (output, context) => {
831
- if (output.statusCode >= 300) {
832
- return de_CommandError(output, context);
833
- }
834
- const data = await parseBody(output.body, context);
835
- let contents = {};
836
- contents = _json(data);
837
- const response = {
838
- $metadata: deserializeMetadata(output),
839
- ...contents,
840
- };
841
- return response;
842
- };
843
- export const de_DeleteXssMatchSetCommand = async (output, context) => {
844
- if (output.statusCode >= 300) {
845
- return de_CommandError(output, context);
846
- }
847
- const data = await parseBody(output.body, context);
848
- let contents = {};
849
- contents = _json(data);
850
- const response = {
851
- $metadata: deserializeMetadata(output),
852
- ...contents,
853
- };
854
- return response;
855
- };
856
- export const de_DisassociateWebACLCommand = async (output, context) => {
857
- if (output.statusCode >= 300) {
858
- return de_CommandError(output, context);
859
- }
860
- const data = await parseBody(output.body, context);
861
- let contents = {};
862
- contents = _json(data);
863
- const response = {
864
- $metadata: deserializeMetadata(output),
865
- ...contents,
866
- };
867
- return response;
868
- };
869
- export const de_GetByteMatchSetCommand = async (output, context) => {
870
- if (output.statusCode >= 300) {
871
- return de_CommandError(output, context);
872
- }
873
- const data = await parseBody(output.body, context);
874
- let contents = {};
875
- contents = de_GetByteMatchSetResponse(data, context);
876
- const response = {
877
- $metadata: deserializeMetadata(output),
878
- ...contents,
879
- };
880
- return response;
881
- };
882
- export const de_GetChangeTokenCommand = async (output, context) => {
883
- if (output.statusCode >= 300) {
884
- return de_CommandError(output, context);
885
- }
886
- const data = await parseBody(output.body, context);
887
- let contents = {};
888
- contents = _json(data);
889
- const response = {
890
- $metadata: deserializeMetadata(output),
891
- ...contents,
892
- };
893
- return response;
894
- };
895
- export const de_GetChangeTokenStatusCommand = async (output, context) => {
896
- if (output.statusCode >= 300) {
897
- return de_CommandError(output, context);
898
- }
899
- const data = await parseBody(output.body, context);
900
- let contents = {};
901
- contents = _json(data);
902
- const response = {
903
- $metadata: deserializeMetadata(output),
904
- ...contents,
905
- };
906
- return response;
907
- };
908
- export const de_GetGeoMatchSetCommand = async (output, context) => {
909
- if (output.statusCode >= 300) {
910
- return de_CommandError(output, context);
911
- }
912
- const data = await parseBody(output.body, context);
913
- let contents = {};
914
- contents = _json(data);
915
- const response = {
916
- $metadata: deserializeMetadata(output),
917
- ...contents,
918
- };
919
- return response;
920
- };
921
- export const de_GetIPSetCommand = async (output, context) => {
922
- if (output.statusCode >= 300) {
923
- return de_CommandError(output, context);
924
- }
925
- const data = await parseBody(output.body, context);
926
- let contents = {};
927
- contents = _json(data);
928
- const response = {
929
- $metadata: deserializeMetadata(output),
930
- ...contents,
931
- };
932
- return response;
933
- };
934
- export const de_GetLoggingConfigurationCommand = async (output, context) => {
935
- if (output.statusCode >= 300) {
936
- return de_CommandError(output, context);
937
- }
938
- const data = await parseBody(output.body, context);
939
- let contents = {};
940
- contents = _json(data);
941
- const response = {
942
- $metadata: deserializeMetadata(output),
943
- ...contents,
944
- };
945
- return response;
946
- };
947
- export const de_GetPermissionPolicyCommand = async (output, context) => {
948
- if (output.statusCode >= 300) {
949
- return de_CommandError(output, context);
950
- }
951
- const data = await parseBody(output.body, context);
952
- let contents = {};
953
- contents = _json(data);
954
- const response = {
955
- $metadata: deserializeMetadata(output),
956
- ...contents,
957
- };
958
- return response;
959
- };
960
- export const de_GetRateBasedRuleCommand = async (output, context) => {
961
- if (output.statusCode >= 300) {
962
- return de_CommandError(output, context);
963
- }
964
- const data = await parseBody(output.body, context);
965
- let contents = {};
966
- contents = _json(data);
967
- const response = {
968
- $metadata: deserializeMetadata(output),
969
- ...contents,
970
- };
971
- return response;
972
- };
973
- export const de_GetRateBasedRuleManagedKeysCommand = async (output, context) => {
974
- if (output.statusCode >= 300) {
975
- return de_CommandError(output, context);
976
- }
977
- const data = await parseBody(output.body, context);
978
- let contents = {};
979
- contents = _json(data);
980
- const response = {
981
- $metadata: deserializeMetadata(output),
982
- ...contents,
983
- };
984
- return response;
985
- };
986
- export const de_GetRegexMatchSetCommand = async (output, context) => {
987
- if (output.statusCode >= 300) {
988
- return de_CommandError(output, context);
989
- }
990
- const data = await parseBody(output.body, context);
991
- let contents = {};
992
- contents = _json(data);
993
- const response = {
994
- $metadata: deserializeMetadata(output),
995
- ...contents,
996
- };
997
- return response;
998
- };
999
- export const de_GetRegexPatternSetCommand = async (output, context) => {
1000
- if (output.statusCode >= 300) {
1001
- return de_CommandError(output, context);
1002
- }
1003
- const data = await parseBody(output.body, context);
1004
- let contents = {};
1005
- contents = _json(data);
1006
- const response = {
1007
- $metadata: deserializeMetadata(output),
1008
- ...contents,
1009
- };
1010
- return response;
1011
- };
1012
- export const de_GetRuleCommand = async (output, context) => {
1013
- if (output.statusCode >= 300) {
1014
- return de_CommandError(output, context);
1015
- }
1016
- const data = await parseBody(output.body, context);
1017
- let contents = {};
1018
- contents = _json(data);
1019
- const response = {
1020
- $metadata: deserializeMetadata(output),
1021
- ...contents,
1022
- };
1023
- return response;
1024
- };
1025
- export const de_GetRuleGroupCommand = async (output, context) => {
1026
- if (output.statusCode >= 300) {
1027
- return de_CommandError(output, context);
1028
- }
1029
- const data = await parseBody(output.body, context);
1030
- let contents = {};
1031
- contents = _json(data);
1032
- const response = {
1033
- $metadata: deserializeMetadata(output),
1034
- ...contents,
1035
- };
1036
- return response;
1037
- };
1038
- export const de_GetSampledRequestsCommand = async (output, context) => {
1039
- if (output.statusCode >= 300) {
1040
- return de_CommandError(output, context);
1041
- }
1042
- const data = await parseBody(output.body, context);
1043
- let contents = {};
1044
- contents = de_GetSampledRequestsResponse(data, context);
1045
- const response = {
1046
- $metadata: deserializeMetadata(output),
1047
- ...contents,
1048
- };
1049
- return response;
1050
- };
1051
- export const de_GetSizeConstraintSetCommand = async (output, context) => {
1052
- if (output.statusCode >= 300) {
1053
- return de_CommandError(output, context);
1054
- }
1055
- const data = await parseBody(output.body, context);
1056
- let contents = {};
1057
- contents = _json(data);
1058
- const response = {
1059
- $metadata: deserializeMetadata(output),
1060
- ...contents,
1061
- };
1062
- return response;
1063
- };
1064
- export const de_GetSqlInjectionMatchSetCommand = async (output, context) => {
1065
- if (output.statusCode >= 300) {
1066
- return de_CommandError(output, context);
1067
- }
1068
- const data = await parseBody(output.body, context);
1069
- let contents = {};
1070
- contents = _json(data);
1071
- const response = {
1072
- $metadata: deserializeMetadata(output),
1073
- ...contents,
1074
- };
1075
- return response;
1076
- };
1077
- export const de_GetWebACLCommand = async (output, context) => {
1078
- if (output.statusCode >= 300) {
1079
- return de_CommandError(output, context);
1080
- }
1081
- const data = await parseBody(output.body, context);
1082
- let contents = {};
1083
- contents = _json(data);
1084
- const response = {
1085
- $metadata: deserializeMetadata(output),
1086
- ...contents,
1087
- };
1088
- return response;
1089
- };
1090
- export const de_GetWebACLForResourceCommand = async (output, context) => {
1091
- if (output.statusCode >= 300) {
1092
- return de_CommandError(output, context);
1093
- }
1094
- const data = await parseBody(output.body, context);
1095
- let contents = {};
1096
- contents = _json(data);
1097
- const response = {
1098
- $metadata: deserializeMetadata(output),
1099
- ...contents,
1100
- };
1101
- return response;
1102
- };
1103
- export const de_GetXssMatchSetCommand = async (output, context) => {
1104
- if (output.statusCode >= 300) {
1105
- return de_CommandError(output, context);
1106
- }
1107
- const data = await parseBody(output.body, context);
1108
- let contents = {};
1109
- contents = _json(data);
1110
- const response = {
1111
- $metadata: deserializeMetadata(output),
1112
- ...contents,
1113
- };
1114
- return response;
1115
- };
1116
- export const de_ListActivatedRulesInRuleGroupCommand = async (output, context) => {
1117
- if (output.statusCode >= 300) {
1118
- return de_CommandError(output, context);
1119
- }
1120
- const data = await parseBody(output.body, context);
1121
- let contents = {};
1122
- contents = _json(data);
1123
- const response = {
1124
- $metadata: deserializeMetadata(output),
1125
- ...contents,
1126
- };
1127
- return response;
1128
- };
1129
- export const de_ListByteMatchSetsCommand = async (output, context) => {
1130
- if (output.statusCode >= 300) {
1131
- return de_CommandError(output, context);
1132
- }
1133
- const data = await parseBody(output.body, context);
1134
- let contents = {};
1135
- contents = _json(data);
1136
- const response = {
1137
- $metadata: deserializeMetadata(output),
1138
- ...contents,
1139
- };
1140
- return response;
1141
- };
1142
- export const de_ListGeoMatchSetsCommand = async (output, context) => {
1143
- if (output.statusCode >= 300) {
1144
- return de_CommandError(output, context);
1145
- }
1146
- const data = await parseBody(output.body, context);
1147
- let contents = {};
1148
- contents = _json(data);
1149
- const response = {
1150
- $metadata: deserializeMetadata(output),
1151
- ...contents,
1152
- };
1153
- return response;
1154
- };
1155
- export const de_ListIPSetsCommand = async (output, context) => {
1156
- if (output.statusCode >= 300) {
1157
- return de_CommandError(output, context);
1158
- }
1159
- const data = await parseBody(output.body, context);
1160
- let contents = {};
1161
- contents = _json(data);
1162
- const response = {
1163
- $metadata: deserializeMetadata(output),
1164
- ...contents,
1165
- };
1166
- return response;
1167
- };
1168
- export const de_ListLoggingConfigurationsCommand = async (output, context) => {
1169
- if (output.statusCode >= 300) {
1170
- return de_CommandError(output, context);
1171
- }
1172
- const data = await parseBody(output.body, context);
1173
- let contents = {};
1174
- contents = _json(data);
1175
- const response = {
1176
- $metadata: deserializeMetadata(output),
1177
- ...contents,
1178
- };
1179
- return response;
1180
- };
1181
- export const de_ListRateBasedRulesCommand = async (output, context) => {
1182
- if (output.statusCode >= 300) {
1183
- return de_CommandError(output, context);
1184
- }
1185
- const data = await parseBody(output.body, context);
1186
- let contents = {};
1187
- contents = _json(data);
1188
- const response = {
1189
- $metadata: deserializeMetadata(output),
1190
- ...contents,
1191
- };
1192
- return response;
1193
- };
1194
- export const de_ListRegexMatchSetsCommand = async (output, context) => {
1195
- if (output.statusCode >= 300) {
1196
- return de_CommandError(output, context);
1197
- }
1198
- const data = await parseBody(output.body, context);
1199
- let contents = {};
1200
- contents = _json(data);
1201
- const response = {
1202
- $metadata: deserializeMetadata(output),
1203
- ...contents,
1204
- };
1205
- return response;
1206
- };
1207
- export const de_ListRegexPatternSetsCommand = async (output, context) => {
1208
- if (output.statusCode >= 300) {
1209
- return de_CommandError(output, context);
1210
- }
1211
- const data = await parseBody(output.body, context);
1212
- let contents = {};
1213
- contents = _json(data);
1214
- const response = {
1215
- $metadata: deserializeMetadata(output),
1216
- ...contents,
1217
- };
1218
- return response;
1219
- };
1220
- export const de_ListResourcesForWebACLCommand = async (output, context) => {
1221
- if (output.statusCode >= 300) {
1222
- return de_CommandError(output, context);
1223
- }
1224
- const data = await parseBody(output.body, context);
1225
- let contents = {};
1226
- contents = _json(data);
1227
- const response = {
1228
- $metadata: deserializeMetadata(output),
1229
- ...contents,
1230
- };
1231
- return response;
1232
- };
1233
- export const de_ListRuleGroupsCommand = async (output, context) => {
1234
- if (output.statusCode >= 300) {
1235
- return de_CommandError(output, context);
1236
- }
1237
- const data = await parseBody(output.body, context);
1238
- let contents = {};
1239
- contents = _json(data);
1240
- const response = {
1241
- $metadata: deserializeMetadata(output),
1242
- ...contents,
1243
- };
1244
- return response;
1245
- };
1246
- export const de_ListRulesCommand = async (output, context) => {
1247
- if (output.statusCode >= 300) {
1248
- return de_CommandError(output, context);
1249
- }
1250
- const data = await parseBody(output.body, context);
1251
- let contents = {};
1252
- contents = _json(data);
1253
- const response = {
1254
- $metadata: deserializeMetadata(output),
1255
- ...contents,
1256
- };
1257
- return response;
1258
- };
1259
- export const de_ListSizeConstraintSetsCommand = async (output, context) => {
1260
- if (output.statusCode >= 300) {
1261
- return de_CommandError(output, context);
1262
- }
1263
- const data = await parseBody(output.body, context);
1264
- let contents = {};
1265
- contents = _json(data);
1266
- const response = {
1267
- $metadata: deserializeMetadata(output),
1268
- ...contents,
1269
- };
1270
- return response;
1271
- };
1272
- export const de_ListSqlInjectionMatchSetsCommand = async (output, context) => {
1273
- if (output.statusCode >= 300) {
1274
- return de_CommandError(output, context);
1275
- }
1276
- const data = await parseBody(output.body, context);
1277
- let contents = {};
1278
- contents = _json(data);
1279
- const response = {
1280
- $metadata: deserializeMetadata(output),
1281
- ...contents,
1282
- };
1283
- return response;
1284
- };
1285
- export const de_ListSubscribedRuleGroupsCommand = async (output, context) => {
1286
- if (output.statusCode >= 300) {
1287
- return de_CommandError(output, context);
1288
- }
1289
- const data = await parseBody(output.body, context);
1290
- let contents = {};
1291
- contents = _json(data);
1292
- const response = {
1293
- $metadata: deserializeMetadata(output),
1294
- ...contents,
1295
- };
1296
- return response;
1297
- };
1298
- export const de_ListTagsForResourceCommand = async (output, context) => {
1299
- if (output.statusCode >= 300) {
1300
- return de_CommandError(output, context);
1301
- }
1302
- const data = await parseBody(output.body, context);
1303
- let contents = {};
1304
- contents = _json(data);
1305
- const response = {
1306
- $metadata: deserializeMetadata(output),
1307
- ...contents,
1308
- };
1309
- return response;
1310
- };
1311
- export const de_ListWebACLsCommand = async (output, context) => {
1312
- if (output.statusCode >= 300) {
1313
- return de_CommandError(output, context);
1314
- }
1315
- const data = await parseBody(output.body, context);
1316
- let contents = {};
1317
- contents = _json(data);
1318
- const response = {
1319
- $metadata: deserializeMetadata(output),
1320
- ...contents,
1321
- };
1322
- return response;
1323
- };
1324
- export const de_ListXssMatchSetsCommand = async (output, context) => {
1325
- if (output.statusCode >= 300) {
1326
- return de_CommandError(output, context);
1327
- }
1328
- const data = await parseBody(output.body, context);
1329
- let contents = {};
1330
- contents = _json(data);
1331
- const response = {
1332
- $metadata: deserializeMetadata(output),
1333
- ...contents,
1334
- };
1335
- return response;
1336
- };
1337
- export const de_PutLoggingConfigurationCommand = async (output, context) => {
1338
- if (output.statusCode >= 300) {
1339
- return de_CommandError(output, context);
1340
- }
1341
- const data = await parseBody(output.body, context);
1342
- let contents = {};
1343
- contents = _json(data);
1344
- const response = {
1345
- $metadata: deserializeMetadata(output),
1346
- ...contents,
1347
- };
1348
- return response;
1349
- };
1350
- export const de_PutPermissionPolicyCommand = async (output, context) => {
1351
- if (output.statusCode >= 300) {
1352
- return de_CommandError(output, context);
1353
- }
1354
- const data = await parseBody(output.body, context);
1355
- let contents = {};
1356
- contents = _json(data);
1357
- const response = {
1358
- $metadata: deserializeMetadata(output),
1359
- ...contents,
1360
- };
1361
- return response;
1362
- };
1363
- export const de_TagResourceCommand = async (output, context) => {
1364
- if (output.statusCode >= 300) {
1365
- return de_CommandError(output, context);
1366
- }
1367
- const data = await parseBody(output.body, context);
1368
- let contents = {};
1369
- contents = _json(data);
1370
- const response = {
1371
- $metadata: deserializeMetadata(output),
1372
- ...contents,
1373
- };
1374
- return response;
1375
- };
1376
- export const de_UntagResourceCommand = async (output, context) => {
1377
- if (output.statusCode >= 300) {
1378
- return de_CommandError(output, context);
1379
- }
1380
- const data = await parseBody(output.body, context);
1381
- let contents = {};
1382
- contents = _json(data);
1383
- const response = {
1384
- $metadata: deserializeMetadata(output),
1385
- ...contents,
1386
- };
1387
- return response;
1388
- };
1389
- export const de_UpdateByteMatchSetCommand = async (output, context) => {
1390
- if (output.statusCode >= 300) {
1391
- return de_CommandError(output, context);
1392
- }
1393
- const data = await parseBody(output.body, context);
1394
- let contents = {};
1395
- contents = _json(data);
1396
- const response = {
1397
- $metadata: deserializeMetadata(output),
1398
- ...contents,
1399
- };
1400
- return response;
1401
- };
1402
- export const de_UpdateGeoMatchSetCommand = async (output, context) => {
1403
- if (output.statusCode >= 300) {
1404
- return de_CommandError(output, context);
1405
- }
1406
- const data = await parseBody(output.body, context);
1407
- let contents = {};
1408
- contents = _json(data);
1409
- const response = {
1410
- $metadata: deserializeMetadata(output),
1411
- ...contents,
1412
- };
1413
- return response;
1414
- };
1415
- export const de_UpdateIPSetCommand = async (output, context) => {
1416
- if (output.statusCode >= 300) {
1417
- return de_CommandError(output, context);
1418
- }
1419
- const data = await parseBody(output.body, context);
1420
- let contents = {};
1421
- contents = _json(data);
1422
- const response = {
1423
- $metadata: deserializeMetadata(output),
1424
- ...contents,
1425
- };
1426
- return response;
1427
- };
1428
- export const de_UpdateRateBasedRuleCommand = async (output, context) => {
1429
- if (output.statusCode >= 300) {
1430
- return de_CommandError(output, context);
1431
- }
1432
- const data = await parseBody(output.body, context);
1433
- let contents = {};
1434
- contents = _json(data);
1435
- const response = {
1436
- $metadata: deserializeMetadata(output),
1437
- ...contents,
1438
- };
1439
- return response;
1440
- };
1441
- export const de_UpdateRegexMatchSetCommand = async (output, context) => {
1442
- if (output.statusCode >= 300) {
1443
- return de_CommandError(output, context);
1444
- }
1445
- const data = await parseBody(output.body, context);
1446
- let contents = {};
1447
- contents = _json(data);
1448
- const response = {
1449
- $metadata: deserializeMetadata(output),
1450
- ...contents,
1451
- };
1452
- return response;
1453
- };
1454
- export const de_UpdateRegexPatternSetCommand = async (output, context) => {
1455
- if (output.statusCode >= 300) {
1456
- return de_CommandError(output, context);
1457
- }
1458
- const data = await parseBody(output.body, context);
1459
- let contents = {};
1460
- contents = _json(data);
1461
- const response = {
1462
- $metadata: deserializeMetadata(output),
1463
- ...contents,
1464
- };
1465
- return response;
1466
- };
1467
- export const de_UpdateRuleCommand = async (output, context) => {
1468
- if (output.statusCode >= 300) {
1469
- return de_CommandError(output, context);
1470
- }
1471
- const data = await parseBody(output.body, context);
1472
- let contents = {};
1473
- contents = _json(data);
1474
- const response = {
1475
- $metadata: deserializeMetadata(output),
1476
- ...contents,
1477
- };
1478
- return response;
1479
- };
1480
- export const de_UpdateRuleGroupCommand = async (output, context) => {
1481
- if (output.statusCode >= 300) {
1482
- return de_CommandError(output, context);
1483
- }
1484
- const data = await parseBody(output.body, context);
1485
- let contents = {};
1486
- contents = _json(data);
1487
- const response = {
1488
- $metadata: deserializeMetadata(output),
1489
- ...contents,
1490
- };
1491
- return response;
1492
- };
1493
- export const de_UpdateSizeConstraintSetCommand = async (output, context) => {
1494
- if (output.statusCode >= 300) {
1495
- return de_CommandError(output, context);
1496
- }
1497
- const data = await parseBody(output.body, context);
1498
- let contents = {};
1499
- contents = _json(data);
1500
- const response = {
1501
- $metadata: deserializeMetadata(output),
1502
- ...contents,
1503
- };
1504
- return response;
1505
- };
1506
- export const de_UpdateSqlInjectionMatchSetCommand = async (output, context) => {
1507
- if (output.statusCode >= 300) {
1508
- return de_CommandError(output, context);
1509
- }
1510
- const data = await parseBody(output.body, context);
1511
- let contents = {};
1512
- contents = _json(data);
1513
- const response = {
1514
- $metadata: deserializeMetadata(output),
1515
- ...contents,
1516
- };
1517
- return response;
1518
- };
1519
- export const de_UpdateWebACLCommand = async (output, context) => {
1520
- if (output.statusCode >= 300) {
1521
- return de_CommandError(output, context);
1522
- }
1523
- const data = await parseBody(output.body, context);
1524
- let contents = {};
1525
- contents = _json(data);
1526
- const response = {
1527
- $metadata: deserializeMetadata(output),
1528
- ...contents,
1529
- };
1530
- return response;
1531
- };
1532
- export const de_UpdateXssMatchSetCommand = async (output, context) => {
1533
- if (output.statusCode >= 300) {
1534
- return de_CommandError(output, context);
1535
- }
1536
- const data = await parseBody(output.body, context);
1537
- let contents = {};
1538
- contents = _json(data);
1539
- const response = {
1540
- $metadata: deserializeMetadata(output),
1541
- ...contents,
1542
- };
1543
- return response;
1544
- };
1545
- const de_CommandError = async (output, context) => {
1546
- const parsedOutput = {
1547
- ...output,
1548
- body: await parseErrorBody(output.body, context),
1549
- };
1550
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1551
- switch (errorCode) {
1552
- case "WAFInternalErrorException":
1553
- case "com.amazonaws.wafregional#WAFInternalErrorException":
1554
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1555
- case "WAFInvalidAccountException":
1556
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
1557
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
1558
- case "WAFInvalidParameterException":
1559
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
1560
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1561
- case "WAFNonexistentItemException":
1562
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
1563
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1564
- case "WAFUnavailableEntityException":
1565
- case "com.amazonaws.wafregional#WAFUnavailableEntityException":
1566
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
1567
- case "WAFDisallowedNameException":
1568
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
1569
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
1570
- case "WAFLimitsExceededException":
1571
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
1572
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1573
- case "WAFStaleDataException":
1574
- case "com.amazonaws.wafregional#WAFStaleDataException":
1575
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
1576
- case "WAFBadRequestException":
1577
- case "com.amazonaws.wafregional#WAFBadRequestException":
1578
- throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
1579
- case "WAFTagOperationException":
1580
- case "com.amazonaws.wafregional#WAFTagOperationException":
1581
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
1582
- case "WAFTagOperationInternalErrorException":
1583
- case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
1584
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1585
- case "WAFEntityMigrationException":
1586
- case "com.amazonaws.wafregional#WAFEntityMigrationException":
1587
- throw await de_WAFEntityMigrationExceptionRes(parsedOutput, context);
1588
- case "WAFInvalidOperationException":
1589
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
1590
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1591
- case "WAFNonEmptyEntityException":
1592
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
1593
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
1594
- case "WAFReferencedItemException":
1595
- case "com.amazonaws.wafregional#WAFReferencedItemException":
1596
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
1597
- case "WAFServiceLinkedRoleErrorException":
1598
- case "com.amazonaws.wafregional#WAFServiceLinkedRoleErrorException":
1599
- throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
1600
- case "WAFInvalidPermissionPolicyException":
1601
- case "com.amazonaws.wafregional#WAFInvalidPermissionPolicyException":
1602
- throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
1603
- case "WAFNonexistentContainerException":
1604
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
1605
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
1606
- case "WAFInvalidRegexPatternException":
1607
- case "com.amazonaws.wafregional#WAFInvalidRegexPatternException":
1608
- throw await de_WAFInvalidRegexPatternExceptionRes(parsedOutput, context);
1609
- case "WAFSubscriptionNotFoundException":
1610
- case "com.amazonaws.wafregional#WAFSubscriptionNotFoundException":
1611
- throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
1612
- default:
1613
- const parsedBody = parsedOutput.body;
1614
- return throwDefaultError({
1615
- output,
1616
- parsedBody,
1617
- errorCode,
1618
- });
1619
- }
1620
- };
1621
- const de_WAFBadRequestExceptionRes = async (parsedOutput, context) => {
1622
- const body = parsedOutput.body;
1623
- const deserialized = _json(body);
1624
- const exception = new WAFBadRequestException({
1625
- $metadata: deserializeMetadata(parsedOutput),
1626
- ...deserialized,
1627
- });
1628
- return __decorateServiceException(exception, body);
1629
- };
1630
- const de_WAFDisallowedNameExceptionRes = async (parsedOutput, context) => {
1631
- const body = parsedOutput.body;
1632
- const deserialized = _json(body);
1633
- const exception = new WAFDisallowedNameException({
1634
- $metadata: deserializeMetadata(parsedOutput),
1635
- ...deserialized,
1636
- });
1637
- return __decorateServiceException(exception, body);
1638
- };
1639
- const de_WAFEntityMigrationExceptionRes = async (parsedOutput, context) => {
1640
- const body = parsedOutput.body;
1641
- const deserialized = _json(body);
1642
- const exception = new WAFEntityMigrationException({
1643
- $metadata: deserializeMetadata(parsedOutput),
1644
- ...deserialized,
1645
- });
1646
- return __decorateServiceException(exception, body);
1647
- };
1648
- const de_WAFInternalErrorExceptionRes = async (parsedOutput, context) => {
1649
- const body = parsedOutput.body;
1650
- const deserialized = _json(body);
1651
- const exception = new WAFInternalErrorException({
1652
- $metadata: deserializeMetadata(parsedOutput),
1653
- ...deserialized,
1654
- });
1655
- return __decorateServiceException(exception, body);
1656
- };
1657
- const de_WAFInvalidAccountExceptionRes = async (parsedOutput, context) => {
1658
- const body = parsedOutput.body;
1659
- const deserialized = _json(body);
1660
- const exception = new WAFInvalidAccountException({
1661
- $metadata: deserializeMetadata(parsedOutput),
1662
- ...deserialized,
1663
- });
1664
- return __decorateServiceException(exception, body);
1665
- };
1666
- const de_WAFInvalidOperationExceptionRes = async (parsedOutput, context) => {
1667
- const body = parsedOutput.body;
1668
- const deserialized = _json(body);
1669
- const exception = new WAFInvalidOperationException({
1670
- $metadata: deserializeMetadata(parsedOutput),
1671
- ...deserialized,
1672
- });
1673
- return __decorateServiceException(exception, body);
1674
- };
1675
- const de_WAFInvalidParameterExceptionRes = async (parsedOutput, context) => {
1676
- const body = parsedOutput.body;
1677
- const deserialized = _json(body);
1678
- const exception = new WAFInvalidParameterException({
1679
- $metadata: deserializeMetadata(parsedOutput),
1680
- ...deserialized,
1681
- });
1682
- return __decorateServiceException(exception, body);
1683
- };
1684
- const de_WAFInvalidPermissionPolicyExceptionRes = async (parsedOutput, context) => {
1685
- const body = parsedOutput.body;
1686
- const deserialized = _json(body);
1687
- const exception = new WAFInvalidPermissionPolicyException({
1688
- $metadata: deserializeMetadata(parsedOutput),
1689
- ...deserialized,
1690
- });
1691
- return __decorateServiceException(exception, body);
1692
- };
1693
- const de_WAFInvalidRegexPatternExceptionRes = async (parsedOutput, context) => {
1694
- const body = parsedOutput.body;
1695
- const deserialized = _json(body);
1696
- const exception = new WAFInvalidRegexPatternException({
1697
- $metadata: deserializeMetadata(parsedOutput),
1698
- ...deserialized,
1699
- });
1700
- return __decorateServiceException(exception, body);
1701
- };
1702
- const de_WAFLimitsExceededExceptionRes = async (parsedOutput, context) => {
1703
- const body = parsedOutput.body;
1704
- const deserialized = _json(body);
1705
- const exception = new WAFLimitsExceededException({
1706
- $metadata: deserializeMetadata(parsedOutput),
1707
- ...deserialized,
1708
- });
1709
- return __decorateServiceException(exception, body);
1710
- };
1711
- const de_WAFNonEmptyEntityExceptionRes = async (parsedOutput, context) => {
1712
- const body = parsedOutput.body;
1713
- const deserialized = _json(body);
1714
- const exception = new WAFNonEmptyEntityException({
1715
- $metadata: deserializeMetadata(parsedOutput),
1716
- ...deserialized,
1717
- });
1718
- return __decorateServiceException(exception, body);
1719
- };
1720
- const de_WAFNonexistentContainerExceptionRes = async (parsedOutput, context) => {
1721
- const body = parsedOutput.body;
1722
- const deserialized = _json(body);
1723
- const exception = new WAFNonexistentContainerException({
1724
- $metadata: deserializeMetadata(parsedOutput),
1725
- ...deserialized,
1726
- });
1727
- return __decorateServiceException(exception, body);
1728
- };
1729
- const de_WAFNonexistentItemExceptionRes = async (parsedOutput, context) => {
1730
- const body = parsedOutput.body;
1731
- const deserialized = _json(body);
1732
- const exception = new WAFNonexistentItemException({
1733
- $metadata: deserializeMetadata(parsedOutput),
1734
- ...deserialized,
1735
- });
1736
- return __decorateServiceException(exception, body);
1737
- };
1738
- const de_WAFReferencedItemExceptionRes = async (parsedOutput, context) => {
1739
- const body = parsedOutput.body;
1740
- const deserialized = _json(body);
1741
- const exception = new WAFReferencedItemException({
1742
- $metadata: deserializeMetadata(parsedOutput),
1743
- ...deserialized,
1744
- });
1745
- return __decorateServiceException(exception, body);
1746
- };
1747
- const de_WAFServiceLinkedRoleErrorExceptionRes = async (parsedOutput, context) => {
1748
- const body = parsedOutput.body;
1749
- const deserialized = _json(body);
1750
- const exception = new WAFServiceLinkedRoleErrorException({
1751
- $metadata: deserializeMetadata(parsedOutput),
1752
- ...deserialized,
1753
- });
1754
- return __decorateServiceException(exception, body);
1755
- };
1756
- const de_WAFStaleDataExceptionRes = async (parsedOutput, context) => {
1757
- const body = parsedOutput.body;
1758
- const deserialized = _json(body);
1759
- const exception = new WAFStaleDataException({
1760
- $metadata: deserializeMetadata(parsedOutput),
1761
- ...deserialized,
1762
- });
1763
- return __decorateServiceException(exception, body);
1764
- };
1765
- const de_WAFSubscriptionNotFoundExceptionRes = async (parsedOutput, context) => {
1766
- const body = parsedOutput.body;
1767
- const deserialized = _json(body);
1768
- const exception = new WAFSubscriptionNotFoundException({
1769
- $metadata: deserializeMetadata(parsedOutput),
1770
- ...deserialized,
1771
- });
1772
- return __decorateServiceException(exception, body);
1773
- };
1774
- const de_WAFTagOperationExceptionRes = async (parsedOutput, context) => {
1775
- const body = parsedOutput.body;
1776
- const deserialized = _json(body);
1777
- const exception = new WAFTagOperationException({
1778
- $metadata: deserializeMetadata(parsedOutput),
1779
- ...deserialized,
1780
- });
1781
- return __decorateServiceException(exception, body);
1782
- };
1783
- const de_WAFTagOperationInternalErrorExceptionRes = async (parsedOutput, context) => {
1784
- const body = parsedOutput.body;
1785
- const deserialized = _json(body);
1786
- const exception = new WAFTagOperationInternalErrorException({
1787
- $metadata: deserializeMetadata(parsedOutput),
1788
- ...deserialized,
1789
- });
1790
- return __decorateServiceException(exception, body);
1791
- };
1792
- const de_WAFUnavailableEntityExceptionRes = async (parsedOutput, context) => {
1793
- const body = parsedOutput.body;
1794
- const deserialized = _json(body);
1795
- const exception = new WAFUnavailableEntityException({
1796
- $metadata: deserializeMetadata(parsedOutput),
1797
- ...deserialized,
1798
- });
1799
- return __decorateServiceException(exception, body);
1800
- };
1801
- const se_ByteMatchSetUpdate = (input, context) => {
1802
- return take(input, {
1803
- Action: [],
1804
- ByteMatchTuple: (_) => se_ByteMatchTuple(_, context),
1805
- });
1806
- };
1807
- const se_ByteMatchSetUpdates = (input, context) => {
1808
- return input
1809
- .filter((e) => e != null)
1810
- .map((entry) => {
1811
- return se_ByteMatchSetUpdate(entry, context);
1812
- });
1813
- };
1814
- const se_ByteMatchTuple = (input, context) => {
1815
- return take(input, {
1816
- FieldToMatch: _json,
1817
- PositionalConstraint: [],
1818
- TargetString: context.base64Encoder,
1819
- TextTransformation: [],
1820
- });
1821
- };
1822
- const se_GetSampledRequestsRequest = (input, context) => {
1823
- return take(input, {
1824
- MaxItems: [],
1825
- RuleId: [],
1826
- TimeWindow: (_) => se_TimeWindow(_, context),
1827
- WebAclId: [],
1828
- });
1829
- };
1830
- const se_TimeWindow = (input, context) => {
1831
- return take(input, {
1832
- EndTime: (_) => _.getTime() / 1_000,
1833
- StartTime: (_) => _.getTime() / 1_000,
1834
- });
1835
- };
1836
- const se_UpdateByteMatchSetRequest = (input, context) => {
1837
- return take(input, {
1838
- ByteMatchSetId: [],
1839
- ChangeToken: [],
1840
- Updates: (_) => se_ByteMatchSetUpdates(_, context),
1841
- });
1842
- };
1843
- const de_ByteMatchSet = (output, context) => {
1844
- return take(output, {
1845
- ByteMatchSetId: __expectString,
1846
- ByteMatchTuples: (_) => de_ByteMatchTuples(_, context),
1847
- Name: __expectString,
1848
- });
1849
- };
1850
- const de_ByteMatchTuple = (output, context) => {
1851
- return take(output, {
1852
- FieldToMatch: _json,
1853
- PositionalConstraint: __expectString,
1854
- TargetString: context.base64Decoder,
1855
- TextTransformation: __expectString,
1856
- });
1857
- };
1858
- const de_ByteMatchTuples = (output, context) => {
1859
- const retVal = (output || [])
1860
- .filter((e) => e != null)
1861
- .map((entry) => {
1862
- return de_ByteMatchTuple(entry, context);
1863
- });
1864
- return retVal;
1865
- };
1866
- const de_CreateByteMatchSetResponse = (output, context) => {
1867
- return take(output, {
1868
- ByteMatchSet: (_) => de_ByteMatchSet(_, context),
1869
- ChangeToken: __expectString,
1870
- });
1871
- };
1872
- const de_GetByteMatchSetResponse = (output, context) => {
1873
- return take(output, {
1874
- ByteMatchSet: (_) => de_ByteMatchSet(_, context),
1875
- });
1876
- };
1877
- const de_GetSampledRequestsResponse = (output, context) => {
1878
- return take(output, {
1879
- PopulationSize: __expectLong,
1880
- SampledRequests: (_) => de_SampledHTTPRequests(_, context),
1881
- TimeWindow: (_) => de_TimeWindow(_, context),
1882
- });
1883
- };
1884
- const de_SampledHTTPRequest = (output, context) => {
1885
- return take(output, {
1886
- Action: __expectString,
1887
- Request: _json,
1888
- RuleWithinRuleGroup: __expectString,
1889
- Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1890
- Weight: __expectLong,
1891
- });
1892
- };
1893
- const de_SampledHTTPRequests = (output, context) => {
1894
- const retVal = (output || [])
1895
- .filter((e) => e != null)
1896
- .map((entry) => {
1897
- return de_SampledHTTPRequest(entry, context);
1898
- });
1899
- return retVal;
1900
- };
1901
- const de_TimeWindow = (output, context) => {
1902
- return take(output, {
1903
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1904
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1905
- });
1906
- };
1907
- const deserializeMetadata = (output) => ({
1908
- httpStatusCode: output.statusCode,
1909
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1910
- extendedRequestId: output.headers["x-amz-id-2"],
1911
- cfId: output.headers["x-amz-cf-id"],
1912
- });
1913
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1914
- const throwDefaultError = withBaseException(__BaseException);
1915
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1916
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1917
- const contents = {
1918
- protocol,
1919
- hostname,
1920
- port,
1921
- method: "POST",
1922
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1923
- headers,
1924
- };
1925
- if (resolvedHostname !== undefined) {
1926
- contents.hostname = resolvedHostname;
1927
- }
1928
- if (body !== undefined) {
1929
- contents.body = body;
1930
- }
1931
- return new __HttpRequest(contents);
1932
- };
1933
- function sharedHeaders(operation) {
1934
- return {
1935
- "content-type": "application/x-amz-json-1.1",
1936
- "x-amz-target": `AWSWAF_Regional_20161128.${operation}`,
1937
- };
1938
- }