@aws-sdk/client-wafv2 3.490.0 → 3.496.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 (65) hide show
  1. package/dist-cjs/WAFV2.js +1 -117
  2. package/dist-cjs/WAFV2Client.js +1 -43
  3. package/dist-cjs/commands/AssociateWebACLCommand.js +1 -28
  4. package/dist-cjs/commands/CheckCapacityCommand.js +1 -28
  5. package/dist-cjs/commands/CreateAPIKeyCommand.js +1 -28
  6. package/dist-cjs/commands/CreateIPSetCommand.js +1 -28
  7. package/dist-cjs/commands/CreateRegexPatternSetCommand.js +1 -28
  8. package/dist-cjs/commands/CreateRuleGroupCommand.js +1 -28
  9. package/dist-cjs/commands/CreateWebACLCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteFirewallManagerRuleGroupsCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteIPSetCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +1 -28
  13. package/dist-cjs/commands/DeletePermissionPolicyCommand.js +1 -28
  14. package/dist-cjs/commands/DeleteRegexPatternSetCommand.js +1 -28
  15. package/dist-cjs/commands/DeleteRuleGroupCommand.js +1 -28
  16. package/dist-cjs/commands/DeleteWebACLCommand.js +1 -28
  17. package/dist-cjs/commands/DescribeAllManagedProductsCommand.js +1 -28
  18. package/dist-cjs/commands/DescribeManagedProductsByVendorCommand.js +1 -28
  19. package/dist-cjs/commands/DescribeManagedRuleGroupCommand.js +1 -28
  20. package/dist-cjs/commands/DisassociateWebACLCommand.js +1 -28
  21. package/dist-cjs/commands/GenerateMobileSdkReleaseUrlCommand.js +1 -28
  22. package/dist-cjs/commands/GetDecryptedAPIKeyCommand.js +1 -28
  23. package/dist-cjs/commands/GetIPSetCommand.js +1 -28
  24. package/dist-cjs/commands/GetLoggingConfigurationCommand.js +1 -28
  25. package/dist-cjs/commands/GetManagedRuleSetCommand.js +1 -28
  26. package/dist-cjs/commands/GetMobileSdkReleaseCommand.js +1 -28
  27. package/dist-cjs/commands/GetPermissionPolicyCommand.js +1 -28
  28. package/dist-cjs/commands/GetRateBasedStatementManagedKeysCommand.js +1 -28
  29. package/dist-cjs/commands/GetRegexPatternSetCommand.js +1 -28
  30. package/dist-cjs/commands/GetRuleGroupCommand.js +1 -28
  31. package/dist-cjs/commands/GetSampledRequestsCommand.js +1 -28
  32. package/dist-cjs/commands/GetWebACLCommand.js +1 -28
  33. package/dist-cjs/commands/GetWebACLForResourceCommand.js +1 -28
  34. package/dist-cjs/commands/ListAPIKeysCommand.js +1 -28
  35. package/dist-cjs/commands/ListAvailableManagedRuleGroupVersionsCommand.js +1 -28
  36. package/dist-cjs/commands/ListAvailableManagedRuleGroupsCommand.js +1 -28
  37. package/dist-cjs/commands/ListIPSetsCommand.js +1 -28
  38. package/dist-cjs/commands/ListLoggingConfigurationsCommand.js +1 -28
  39. package/dist-cjs/commands/ListManagedRuleSetsCommand.js +1 -28
  40. package/dist-cjs/commands/ListMobileSdkReleasesCommand.js +1 -28
  41. package/dist-cjs/commands/ListRegexPatternSetsCommand.js +1 -28
  42. package/dist-cjs/commands/ListResourcesForWebACLCommand.js +1 -28
  43. package/dist-cjs/commands/ListRuleGroupsCommand.js +1 -28
  44. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  45. package/dist-cjs/commands/ListWebACLsCommand.js +1 -28
  46. package/dist-cjs/commands/PutLoggingConfigurationCommand.js +1 -28
  47. package/dist-cjs/commands/PutManagedRuleSetVersionsCommand.js +1 -28
  48. package/dist-cjs/commands/PutPermissionPolicyCommand.js +1 -28
  49. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  50. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  51. package/dist-cjs/commands/UpdateIPSetCommand.js +1 -28
  52. package/dist-cjs/commands/UpdateManagedRuleSetVersionExpiryDateCommand.js +1 -28
  53. package/dist-cjs/commands/UpdateRegexPatternSetCommand.js +1 -28
  54. package/dist-cjs/commands/UpdateRuleGroupCommand.js +1 -28
  55. package/dist-cjs/commands/UpdateWebACLCommand.js +1 -28
  56. package/dist-cjs/commands/index.js +1 -56
  57. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  58. package/dist-cjs/extensionConfiguration.js +1 -2
  59. package/dist-cjs/index.js +5565 -10
  60. package/dist-cjs/models/WAFV2ServiceException.js +1 -12
  61. package/dist-cjs/models/index.js +1 -4
  62. package/dist-cjs/models/models_0.js +1 -740
  63. package/dist-cjs/protocols/Aws_json1_1.js +1 -3572
  64. package/dist-cjs/runtimeExtensions.js +1 -22
  65. package/package.json +39 -39
@@ -1,3572 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateManagedRuleSetVersionExpiryDateCommand = exports.se_UpdateIPSetCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutPermissionPolicyCommand = exports.se_PutManagedRuleSetVersionsCommand = exports.se_PutLoggingConfigurationCommand = exports.se_ListWebACLsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRuleGroupsCommand = exports.se_ListResourcesForWebACLCommand = exports.se_ListRegexPatternSetsCommand = exports.se_ListMobileSdkReleasesCommand = exports.se_ListManagedRuleSetsCommand = exports.se_ListLoggingConfigurationsCommand = exports.se_ListIPSetsCommand = exports.se_ListAvailableManagedRuleGroupVersionsCommand = exports.se_ListAvailableManagedRuleGroupsCommand = exports.se_ListAPIKeysCommand = exports.se_GetWebACLForResourceCommand = exports.se_GetWebACLCommand = exports.se_GetSampledRequestsCommand = exports.se_GetRuleGroupCommand = exports.se_GetRegexPatternSetCommand = exports.se_GetRateBasedStatementManagedKeysCommand = exports.se_GetPermissionPolicyCommand = exports.se_GetMobileSdkReleaseCommand = exports.se_GetManagedRuleSetCommand = exports.se_GetLoggingConfigurationCommand = exports.se_GetIPSetCommand = exports.se_GetDecryptedAPIKeyCommand = exports.se_GenerateMobileSdkReleaseUrlCommand = exports.se_DisassociateWebACLCommand = exports.se_DescribeManagedRuleGroupCommand = exports.se_DescribeManagedProductsByVendorCommand = exports.se_DescribeAllManagedProductsCommand = exports.se_DeleteWebACLCommand = exports.se_DeleteRuleGroupCommand = exports.se_DeleteRegexPatternSetCommand = exports.se_DeletePermissionPolicyCommand = exports.se_DeleteLoggingConfigurationCommand = exports.se_DeleteIPSetCommand = exports.se_DeleteFirewallManagerRuleGroupsCommand = exports.se_CreateWebACLCommand = exports.se_CreateRuleGroupCommand = exports.se_CreateRegexPatternSetCommand = exports.se_CreateIPSetCommand = exports.se_CreateAPIKeyCommand = exports.se_CheckCapacityCommand = exports.se_AssociateWebACLCommand = void 0;
4
- exports.de_TagResourceCommand = exports.de_PutPermissionPolicyCommand = exports.de_PutManagedRuleSetVersionsCommand = exports.de_PutLoggingConfigurationCommand = exports.de_ListWebACLsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRuleGroupsCommand = exports.de_ListResourcesForWebACLCommand = exports.de_ListRegexPatternSetsCommand = exports.de_ListMobileSdkReleasesCommand = exports.de_ListManagedRuleSetsCommand = exports.de_ListLoggingConfigurationsCommand = exports.de_ListIPSetsCommand = exports.de_ListAvailableManagedRuleGroupVersionsCommand = exports.de_ListAvailableManagedRuleGroupsCommand = exports.de_ListAPIKeysCommand = exports.de_GetWebACLForResourceCommand = exports.de_GetWebACLCommand = exports.de_GetSampledRequestsCommand = exports.de_GetRuleGroupCommand = exports.de_GetRegexPatternSetCommand = exports.de_GetRateBasedStatementManagedKeysCommand = exports.de_GetPermissionPolicyCommand = exports.de_GetMobileSdkReleaseCommand = exports.de_GetManagedRuleSetCommand = exports.de_GetLoggingConfigurationCommand = exports.de_GetIPSetCommand = exports.de_GetDecryptedAPIKeyCommand = exports.de_GenerateMobileSdkReleaseUrlCommand = exports.de_DisassociateWebACLCommand = exports.de_DescribeManagedRuleGroupCommand = exports.de_DescribeManagedProductsByVendorCommand = exports.de_DescribeAllManagedProductsCommand = exports.de_DeleteWebACLCommand = exports.de_DeleteRuleGroupCommand = exports.de_DeleteRegexPatternSetCommand = exports.de_DeletePermissionPolicyCommand = exports.de_DeleteLoggingConfigurationCommand = exports.de_DeleteIPSetCommand = exports.de_DeleteFirewallManagerRuleGroupsCommand = exports.de_CreateWebACLCommand = exports.de_CreateRuleGroupCommand = exports.de_CreateRegexPatternSetCommand = exports.de_CreateIPSetCommand = exports.de_CreateAPIKeyCommand = exports.de_CheckCapacityCommand = exports.de_AssociateWebACLCommand = exports.se_UpdateWebACLCommand = exports.se_UpdateRuleGroupCommand = exports.se_UpdateRegexPatternSetCommand = void 0;
5
- exports.de_UpdateWebACLCommand = exports.de_UpdateRuleGroupCommand = exports.de_UpdateRegexPatternSetCommand = exports.de_UpdateManagedRuleSetVersionExpiryDateCommand = exports.de_UpdateIPSetCommand = exports.de_UntagResourceCommand = void 0;
6
- const protocol_http_1 = require("@smithy/protocol-http");
7
- const smithy_client_1 = require("@smithy/smithy-client");
8
- const models_0_1 = require("../models/models_0");
9
- const WAFV2ServiceException_1 = require("../models/WAFV2ServiceException");
10
- const se_AssociateWebACLCommand = async (input, context) => {
11
- const headers = sharedHeaders("AssociateWebACL");
12
- let body;
13
- body = JSON.stringify((0, smithy_client_1._json)(input));
14
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
15
- };
16
- exports.se_AssociateWebACLCommand = se_AssociateWebACLCommand;
17
- const se_CheckCapacityCommand = async (input, context) => {
18
- const headers = sharedHeaders("CheckCapacity");
19
- let body;
20
- body = JSON.stringify(se_CheckCapacityRequest(input, context));
21
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
- };
23
- exports.se_CheckCapacityCommand = se_CheckCapacityCommand;
24
- const se_CreateAPIKeyCommand = async (input, context) => {
25
- const headers = sharedHeaders("CreateAPIKey");
26
- let body;
27
- body = JSON.stringify((0, smithy_client_1._json)(input));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- exports.se_CreateAPIKeyCommand = se_CreateAPIKeyCommand;
31
- const se_CreateIPSetCommand = async (input, context) => {
32
- const headers = sharedHeaders("CreateIPSet");
33
- let body;
34
- body = JSON.stringify((0, smithy_client_1._json)(input));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- exports.se_CreateIPSetCommand = se_CreateIPSetCommand;
38
- const se_CreateRegexPatternSetCommand = async (input, context) => {
39
- const headers = sharedHeaders("CreateRegexPatternSet");
40
- let body;
41
- body = JSON.stringify((0, smithy_client_1._json)(input));
42
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
43
- };
44
- exports.se_CreateRegexPatternSetCommand = se_CreateRegexPatternSetCommand;
45
- const se_CreateRuleGroupCommand = async (input, context) => {
46
- const headers = sharedHeaders("CreateRuleGroup");
47
- let body;
48
- body = JSON.stringify(se_CreateRuleGroupRequest(input, context));
49
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
- };
51
- exports.se_CreateRuleGroupCommand = se_CreateRuleGroupCommand;
52
- const se_CreateWebACLCommand = async (input, context) => {
53
- const headers = sharedHeaders("CreateWebACL");
54
- let body;
55
- body = JSON.stringify(se_CreateWebACLRequest(input, context));
56
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
- };
58
- exports.se_CreateWebACLCommand = se_CreateWebACLCommand;
59
- const se_DeleteFirewallManagerRuleGroupsCommand = async (input, context) => {
60
- const headers = sharedHeaders("DeleteFirewallManagerRuleGroups");
61
- let body;
62
- body = JSON.stringify((0, smithy_client_1._json)(input));
63
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
- };
65
- exports.se_DeleteFirewallManagerRuleGroupsCommand = se_DeleteFirewallManagerRuleGroupsCommand;
66
- const se_DeleteIPSetCommand = async (input, context) => {
67
- const headers = sharedHeaders("DeleteIPSet");
68
- let body;
69
- body = JSON.stringify((0, smithy_client_1._json)(input));
70
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
- };
72
- exports.se_DeleteIPSetCommand = se_DeleteIPSetCommand;
73
- const se_DeleteLoggingConfigurationCommand = async (input, context) => {
74
- const headers = sharedHeaders("DeleteLoggingConfiguration");
75
- let body;
76
- body = JSON.stringify((0, smithy_client_1._json)(input));
77
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
- };
79
- exports.se_DeleteLoggingConfigurationCommand = se_DeleteLoggingConfigurationCommand;
80
- const se_DeletePermissionPolicyCommand = async (input, context) => {
81
- const headers = sharedHeaders("DeletePermissionPolicy");
82
- let body;
83
- body = JSON.stringify((0, smithy_client_1._json)(input));
84
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
- };
86
- exports.se_DeletePermissionPolicyCommand = se_DeletePermissionPolicyCommand;
87
- const se_DeleteRegexPatternSetCommand = async (input, context) => {
88
- const headers = sharedHeaders("DeleteRegexPatternSet");
89
- let body;
90
- body = JSON.stringify((0, smithy_client_1._json)(input));
91
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
92
- };
93
- exports.se_DeleteRegexPatternSetCommand = se_DeleteRegexPatternSetCommand;
94
- const se_DeleteRuleGroupCommand = async (input, context) => {
95
- const headers = sharedHeaders("DeleteRuleGroup");
96
- let body;
97
- body = JSON.stringify((0, smithy_client_1._json)(input));
98
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
99
- };
100
- exports.se_DeleteRuleGroupCommand = se_DeleteRuleGroupCommand;
101
- const se_DeleteWebACLCommand = async (input, context) => {
102
- const headers = sharedHeaders("DeleteWebACL");
103
- let body;
104
- body = JSON.stringify((0, smithy_client_1._json)(input));
105
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
- };
107
- exports.se_DeleteWebACLCommand = se_DeleteWebACLCommand;
108
- const se_DescribeAllManagedProductsCommand = async (input, context) => {
109
- const headers = sharedHeaders("DescribeAllManagedProducts");
110
- let body;
111
- body = JSON.stringify((0, smithy_client_1._json)(input));
112
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
- };
114
- exports.se_DescribeAllManagedProductsCommand = se_DescribeAllManagedProductsCommand;
115
- const se_DescribeManagedProductsByVendorCommand = async (input, context) => {
116
- const headers = sharedHeaders("DescribeManagedProductsByVendor");
117
- let body;
118
- body = JSON.stringify((0, smithy_client_1._json)(input));
119
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
- };
121
- exports.se_DescribeManagedProductsByVendorCommand = se_DescribeManagedProductsByVendorCommand;
122
- const se_DescribeManagedRuleGroupCommand = async (input, context) => {
123
- const headers = sharedHeaders("DescribeManagedRuleGroup");
124
- let body;
125
- body = JSON.stringify((0, smithy_client_1._json)(input));
126
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
- };
128
- exports.se_DescribeManagedRuleGroupCommand = se_DescribeManagedRuleGroupCommand;
129
- const se_DisassociateWebACLCommand = async (input, context) => {
130
- const headers = sharedHeaders("DisassociateWebACL");
131
- let body;
132
- body = JSON.stringify((0, smithy_client_1._json)(input));
133
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
134
- };
135
- exports.se_DisassociateWebACLCommand = se_DisassociateWebACLCommand;
136
- const se_GenerateMobileSdkReleaseUrlCommand = async (input, context) => {
137
- const headers = sharedHeaders("GenerateMobileSdkReleaseUrl");
138
- let body;
139
- body = JSON.stringify((0, smithy_client_1._json)(input));
140
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
141
- };
142
- exports.se_GenerateMobileSdkReleaseUrlCommand = se_GenerateMobileSdkReleaseUrlCommand;
143
- const se_GetDecryptedAPIKeyCommand = async (input, context) => {
144
- const headers = sharedHeaders("GetDecryptedAPIKey");
145
- let body;
146
- body = JSON.stringify((0, smithy_client_1._json)(input));
147
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
- };
149
- exports.se_GetDecryptedAPIKeyCommand = se_GetDecryptedAPIKeyCommand;
150
- const se_GetIPSetCommand = async (input, context) => {
151
- const headers = sharedHeaders("GetIPSet");
152
- let body;
153
- body = JSON.stringify((0, smithy_client_1._json)(input));
154
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
- };
156
- exports.se_GetIPSetCommand = se_GetIPSetCommand;
157
- const se_GetLoggingConfigurationCommand = async (input, context) => {
158
- const headers = sharedHeaders("GetLoggingConfiguration");
159
- let body;
160
- body = JSON.stringify((0, smithy_client_1._json)(input));
161
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
- };
163
- exports.se_GetLoggingConfigurationCommand = se_GetLoggingConfigurationCommand;
164
- const se_GetManagedRuleSetCommand = async (input, context) => {
165
- const headers = sharedHeaders("GetManagedRuleSet");
166
- let body;
167
- body = JSON.stringify((0, smithy_client_1._json)(input));
168
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
169
- };
170
- exports.se_GetManagedRuleSetCommand = se_GetManagedRuleSetCommand;
171
- const se_GetMobileSdkReleaseCommand = async (input, context) => {
172
- const headers = sharedHeaders("GetMobileSdkRelease");
173
- let body;
174
- body = JSON.stringify((0, smithy_client_1._json)(input));
175
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
- };
177
- exports.se_GetMobileSdkReleaseCommand = se_GetMobileSdkReleaseCommand;
178
- const se_GetPermissionPolicyCommand = async (input, context) => {
179
- const headers = sharedHeaders("GetPermissionPolicy");
180
- let body;
181
- body = JSON.stringify((0, smithy_client_1._json)(input));
182
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
183
- };
184
- exports.se_GetPermissionPolicyCommand = se_GetPermissionPolicyCommand;
185
- const se_GetRateBasedStatementManagedKeysCommand = async (input, context) => {
186
- const headers = sharedHeaders("GetRateBasedStatementManagedKeys");
187
- let body;
188
- body = JSON.stringify((0, smithy_client_1._json)(input));
189
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
- };
191
- exports.se_GetRateBasedStatementManagedKeysCommand = se_GetRateBasedStatementManagedKeysCommand;
192
- const se_GetRegexPatternSetCommand = async (input, context) => {
193
- const headers = sharedHeaders("GetRegexPatternSet");
194
- let body;
195
- body = JSON.stringify((0, smithy_client_1._json)(input));
196
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
- };
198
- exports.se_GetRegexPatternSetCommand = se_GetRegexPatternSetCommand;
199
- const se_GetRuleGroupCommand = async (input, context) => {
200
- const headers = sharedHeaders("GetRuleGroup");
201
- let body;
202
- body = JSON.stringify((0, smithy_client_1._json)(input));
203
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
- };
205
- exports.se_GetRuleGroupCommand = se_GetRuleGroupCommand;
206
- const se_GetSampledRequestsCommand = async (input, context) => {
207
- const headers = sharedHeaders("GetSampledRequests");
208
- let body;
209
- body = JSON.stringify(se_GetSampledRequestsRequest(input, context));
210
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
- };
212
- exports.se_GetSampledRequestsCommand = se_GetSampledRequestsCommand;
213
- const se_GetWebACLCommand = async (input, context) => {
214
- const headers = sharedHeaders("GetWebACL");
215
- let body;
216
- body = JSON.stringify((0, smithy_client_1._json)(input));
217
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
- };
219
- exports.se_GetWebACLCommand = se_GetWebACLCommand;
220
- const se_GetWebACLForResourceCommand = async (input, context) => {
221
- const headers = sharedHeaders("GetWebACLForResource");
222
- let body;
223
- body = JSON.stringify((0, smithy_client_1._json)(input));
224
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
- };
226
- exports.se_GetWebACLForResourceCommand = se_GetWebACLForResourceCommand;
227
- const se_ListAPIKeysCommand = async (input, context) => {
228
- const headers = sharedHeaders("ListAPIKeys");
229
- let body;
230
- body = JSON.stringify((0, smithy_client_1._json)(input));
231
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
- };
233
- exports.se_ListAPIKeysCommand = se_ListAPIKeysCommand;
234
- const se_ListAvailableManagedRuleGroupsCommand = async (input, context) => {
235
- const headers = sharedHeaders("ListAvailableManagedRuleGroups");
236
- let body;
237
- body = JSON.stringify((0, smithy_client_1._json)(input));
238
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
- };
240
- exports.se_ListAvailableManagedRuleGroupsCommand = se_ListAvailableManagedRuleGroupsCommand;
241
- const se_ListAvailableManagedRuleGroupVersionsCommand = async (input, context) => {
242
- const headers = sharedHeaders("ListAvailableManagedRuleGroupVersions");
243
- let body;
244
- body = JSON.stringify((0, smithy_client_1._json)(input));
245
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
- };
247
- exports.se_ListAvailableManagedRuleGroupVersionsCommand = se_ListAvailableManagedRuleGroupVersionsCommand;
248
- const se_ListIPSetsCommand = async (input, context) => {
249
- const headers = sharedHeaders("ListIPSets");
250
- let body;
251
- body = JSON.stringify((0, smithy_client_1._json)(input));
252
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
- };
254
- exports.se_ListIPSetsCommand = se_ListIPSetsCommand;
255
- const se_ListLoggingConfigurationsCommand = async (input, context) => {
256
- const headers = sharedHeaders("ListLoggingConfigurations");
257
- let body;
258
- body = JSON.stringify((0, smithy_client_1._json)(input));
259
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
260
- };
261
- exports.se_ListLoggingConfigurationsCommand = se_ListLoggingConfigurationsCommand;
262
- const se_ListManagedRuleSetsCommand = async (input, context) => {
263
- const headers = sharedHeaders("ListManagedRuleSets");
264
- let body;
265
- body = JSON.stringify((0, smithy_client_1._json)(input));
266
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
- };
268
- exports.se_ListManagedRuleSetsCommand = se_ListManagedRuleSetsCommand;
269
- const se_ListMobileSdkReleasesCommand = async (input, context) => {
270
- const headers = sharedHeaders("ListMobileSdkReleases");
271
- let body;
272
- body = JSON.stringify((0, smithy_client_1._json)(input));
273
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
- };
275
- exports.se_ListMobileSdkReleasesCommand = se_ListMobileSdkReleasesCommand;
276
- const se_ListRegexPatternSetsCommand = async (input, context) => {
277
- const headers = sharedHeaders("ListRegexPatternSets");
278
- let body;
279
- body = JSON.stringify((0, smithy_client_1._json)(input));
280
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
- };
282
- exports.se_ListRegexPatternSetsCommand = se_ListRegexPatternSetsCommand;
283
- const se_ListResourcesForWebACLCommand = async (input, context) => {
284
- const headers = sharedHeaders("ListResourcesForWebACL");
285
- let body;
286
- body = JSON.stringify((0, smithy_client_1._json)(input));
287
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
- };
289
- exports.se_ListResourcesForWebACLCommand = se_ListResourcesForWebACLCommand;
290
- const se_ListRuleGroupsCommand = async (input, context) => {
291
- const headers = sharedHeaders("ListRuleGroups");
292
- let body;
293
- body = JSON.stringify((0, smithy_client_1._json)(input));
294
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
- };
296
- exports.se_ListRuleGroupsCommand = se_ListRuleGroupsCommand;
297
- const se_ListTagsForResourceCommand = async (input, context) => {
298
- const headers = sharedHeaders("ListTagsForResource");
299
- let body;
300
- body = JSON.stringify((0, smithy_client_1._json)(input));
301
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
302
- };
303
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
304
- const se_ListWebACLsCommand = async (input, context) => {
305
- const headers = sharedHeaders("ListWebACLs");
306
- let body;
307
- body = JSON.stringify((0, smithy_client_1._json)(input));
308
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
- };
310
- exports.se_ListWebACLsCommand = se_ListWebACLsCommand;
311
- const se_PutLoggingConfigurationCommand = async (input, context) => {
312
- const headers = sharedHeaders("PutLoggingConfiguration");
313
- let body;
314
- body = JSON.stringify((0, smithy_client_1._json)(input));
315
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
- };
317
- exports.se_PutLoggingConfigurationCommand = se_PutLoggingConfigurationCommand;
318
- const se_PutManagedRuleSetVersionsCommand = async (input, context) => {
319
- const headers = sharedHeaders("PutManagedRuleSetVersions");
320
- let body;
321
- body = JSON.stringify((0, smithy_client_1._json)(input));
322
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
- };
324
- exports.se_PutManagedRuleSetVersionsCommand = se_PutManagedRuleSetVersionsCommand;
325
- const se_PutPermissionPolicyCommand = async (input, context) => {
326
- const headers = sharedHeaders("PutPermissionPolicy");
327
- let body;
328
- body = JSON.stringify((0, smithy_client_1._json)(input));
329
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
- };
331
- exports.se_PutPermissionPolicyCommand = se_PutPermissionPolicyCommand;
332
- const se_TagResourceCommand = async (input, context) => {
333
- const headers = sharedHeaders("TagResource");
334
- let body;
335
- body = JSON.stringify((0, smithy_client_1._json)(input));
336
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
- };
338
- exports.se_TagResourceCommand = se_TagResourceCommand;
339
- const se_UntagResourceCommand = async (input, context) => {
340
- const headers = sharedHeaders("UntagResource");
341
- let body;
342
- body = JSON.stringify((0, smithy_client_1._json)(input));
343
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
344
- };
345
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
346
- const se_UpdateIPSetCommand = async (input, context) => {
347
- const headers = sharedHeaders("UpdateIPSet");
348
- let body;
349
- body = JSON.stringify((0, smithy_client_1._json)(input));
350
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
351
- };
352
- exports.se_UpdateIPSetCommand = se_UpdateIPSetCommand;
353
- const se_UpdateManagedRuleSetVersionExpiryDateCommand = async (input, context) => {
354
- const headers = sharedHeaders("UpdateManagedRuleSetVersionExpiryDate");
355
- let body;
356
- body = JSON.stringify(se_UpdateManagedRuleSetVersionExpiryDateRequest(input, context));
357
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
- };
359
- exports.se_UpdateManagedRuleSetVersionExpiryDateCommand = se_UpdateManagedRuleSetVersionExpiryDateCommand;
360
- const se_UpdateRegexPatternSetCommand = async (input, context) => {
361
- const headers = sharedHeaders("UpdateRegexPatternSet");
362
- let body;
363
- body = JSON.stringify((0, smithy_client_1._json)(input));
364
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
- };
366
- exports.se_UpdateRegexPatternSetCommand = se_UpdateRegexPatternSetCommand;
367
- const se_UpdateRuleGroupCommand = async (input, context) => {
368
- const headers = sharedHeaders("UpdateRuleGroup");
369
- let body;
370
- body = JSON.stringify(se_UpdateRuleGroupRequest(input, context));
371
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
- };
373
- exports.se_UpdateRuleGroupCommand = se_UpdateRuleGroupCommand;
374
- const se_UpdateWebACLCommand = async (input, context) => {
375
- const headers = sharedHeaders("UpdateWebACL");
376
- let body;
377
- body = JSON.stringify(se_UpdateWebACLRequest(input, context));
378
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
379
- };
380
- exports.se_UpdateWebACLCommand = se_UpdateWebACLCommand;
381
- const de_AssociateWebACLCommand = async (output, context) => {
382
- if (output.statusCode >= 300) {
383
- return de_AssociateWebACLCommandError(output, context);
384
- }
385
- const data = await parseBody(output.body, context);
386
- let contents = {};
387
- contents = (0, smithy_client_1._json)(data);
388
- const response = {
389
- $metadata: deserializeMetadata(output),
390
- ...contents,
391
- };
392
- return response;
393
- };
394
- exports.de_AssociateWebACLCommand = de_AssociateWebACLCommand;
395
- const de_AssociateWebACLCommandError = async (output, context) => {
396
- const parsedOutput = {
397
- ...output,
398
- body: await parseErrorBody(output.body, context),
399
- };
400
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
401
- switch (errorCode) {
402
- case "WAFInternalErrorException":
403
- case "com.amazonaws.wafv2#WAFInternalErrorException":
404
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
405
- case "WAFInvalidOperationException":
406
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
407
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
408
- case "WAFInvalidParameterException":
409
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
410
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
411
- case "WAFNonexistentItemException":
412
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
413
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
414
- case "WAFUnavailableEntityException":
415
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
416
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
417
- default:
418
- const parsedBody = parsedOutput.body;
419
- return throwDefaultError({
420
- output,
421
- parsedBody,
422
- errorCode,
423
- });
424
- }
425
- };
426
- const de_CheckCapacityCommand = async (output, context) => {
427
- if (output.statusCode >= 300) {
428
- return de_CheckCapacityCommandError(output, context);
429
- }
430
- const data = await parseBody(output.body, context);
431
- let contents = {};
432
- contents = (0, smithy_client_1._json)(data);
433
- const response = {
434
- $metadata: deserializeMetadata(output),
435
- ...contents,
436
- };
437
- return response;
438
- };
439
- exports.de_CheckCapacityCommand = de_CheckCapacityCommand;
440
- const de_CheckCapacityCommandError = async (output, context) => {
441
- const parsedOutput = {
442
- ...output,
443
- body: await parseErrorBody(output.body, context),
444
- };
445
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
446
- switch (errorCode) {
447
- case "WAFExpiredManagedRuleGroupVersionException":
448
- case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
449
- throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
450
- case "WAFInternalErrorException":
451
- case "com.amazonaws.wafv2#WAFInternalErrorException":
452
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
453
- case "WAFInvalidOperationException":
454
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
455
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
456
- case "WAFInvalidParameterException":
457
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
458
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
459
- case "WAFInvalidResourceException":
460
- case "com.amazonaws.wafv2#WAFInvalidResourceException":
461
- throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
462
- case "WAFLimitsExceededException":
463
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
464
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
465
- case "WAFNonexistentItemException":
466
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
467
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
468
- case "WAFSubscriptionNotFoundException":
469
- case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
470
- throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
471
- case "WAFUnavailableEntityException":
472
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
473
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
474
- default:
475
- const parsedBody = parsedOutput.body;
476
- return throwDefaultError({
477
- output,
478
- parsedBody,
479
- errorCode,
480
- });
481
- }
482
- };
483
- const de_CreateAPIKeyCommand = async (output, context) => {
484
- if (output.statusCode >= 300) {
485
- return de_CreateAPIKeyCommandError(output, context);
486
- }
487
- const data = await parseBody(output.body, context);
488
- let contents = {};
489
- contents = (0, smithy_client_1._json)(data);
490
- const response = {
491
- $metadata: deserializeMetadata(output),
492
- ...contents,
493
- };
494
- return response;
495
- };
496
- exports.de_CreateAPIKeyCommand = de_CreateAPIKeyCommand;
497
- const de_CreateAPIKeyCommandError = async (output, context) => {
498
- const parsedOutput = {
499
- ...output,
500
- body: await parseErrorBody(output.body, context),
501
- };
502
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
503
- switch (errorCode) {
504
- case "WAFInternalErrorException":
505
- case "com.amazonaws.wafv2#WAFInternalErrorException":
506
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
507
- case "WAFInvalidOperationException":
508
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
509
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
510
- case "WAFInvalidParameterException":
511
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
512
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
513
- case "WAFLimitsExceededException":
514
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
515
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
516
- default:
517
- const parsedBody = parsedOutput.body;
518
- return throwDefaultError({
519
- output,
520
- parsedBody,
521
- errorCode,
522
- });
523
- }
524
- };
525
- const de_CreateIPSetCommand = async (output, context) => {
526
- if (output.statusCode >= 300) {
527
- return de_CreateIPSetCommandError(output, context);
528
- }
529
- const data = await parseBody(output.body, context);
530
- let contents = {};
531
- contents = (0, smithy_client_1._json)(data);
532
- const response = {
533
- $metadata: deserializeMetadata(output),
534
- ...contents,
535
- };
536
- return response;
537
- };
538
- exports.de_CreateIPSetCommand = de_CreateIPSetCommand;
539
- const de_CreateIPSetCommandError = async (output, context) => {
540
- const parsedOutput = {
541
- ...output,
542
- body: await parseErrorBody(output.body, context),
543
- };
544
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
545
- switch (errorCode) {
546
- case "WAFDuplicateItemException":
547
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
548
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
549
- case "WAFInternalErrorException":
550
- case "com.amazonaws.wafv2#WAFInternalErrorException":
551
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
552
- case "WAFInvalidOperationException":
553
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
554
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
555
- case "WAFInvalidParameterException":
556
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
557
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
558
- case "WAFLimitsExceededException":
559
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
560
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
561
- case "WAFOptimisticLockException":
562
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
563
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
564
- case "WAFTagOperationException":
565
- case "com.amazonaws.wafv2#WAFTagOperationException":
566
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
567
- case "WAFTagOperationInternalErrorException":
568
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
569
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
570
- default:
571
- const parsedBody = parsedOutput.body;
572
- return throwDefaultError({
573
- output,
574
- parsedBody,
575
- errorCode,
576
- });
577
- }
578
- };
579
- const de_CreateRegexPatternSetCommand = async (output, context) => {
580
- if (output.statusCode >= 300) {
581
- return de_CreateRegexPatternSetCommandError(output, context);
582
- }
583
- const data = await parseBody(output.body, context);
584
- let contents = {};
585
- contents = (0, smithy_client_1._json)(data);
586
- const response = {
587
- $metadata: deserializeMetadata(output),
588
- ...contents,
589
- };
590
- return response;
591
- };
592
- exports.de_CreateRegexPatternSetCommand = de_CreateRegexPatternSetCommand;
593
- const de_CreateRegexPatternSetCommandError = async (output, context) => {
594
- const parsedOutput = {
595
- ...output,
596
- body: await parseErrorBody(output.body, context),
597
- };
598
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
599
- switch (errorCode) {
600
- case "WAFDuplicateItemException":
601
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
602
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
603
- case "WAFInternalErrorException":
604
- case "com.amazonaws.wafv2#WAFInternalErrorException":
605
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
606
- case "WAFInvalidOperationException":
607
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
608
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
609
- case "WAFInvalidParameterException":
610
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
611
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
612
- case "WAFLimitsExceededException":
613
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
614
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
615
- case "WAFOptimisticLockException":
616
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
617
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
618
- case "WAFTagOperationException":
619
- case "com.amazonaws.wafv2#WAFTagOperationException":
620
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
621
- case "WAFTagOperationInternalErrorException":
622
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
623
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
624
- default:
625
- const parsedBody = parsedOutput.body;
626
- return throwDefaultError({
627
- output,
628
- parsedBody,
629
- errorCode,
630
- });
631
- }
632
- };
633
- const de_CreateRuleGroupCommand = async (output, context) => {
634
- if (output.statusCode >= 300) {
635
- return de_CreateRuleGroupCommandError(output, context);
636
- }
637
- const data = await parseBody(output.body, context);
638
- let contents = {};
639
- contents = (0, smithy_client_1._json)(data);
640
- const response = {
641
- $metadata: deserializeMetadata(output),
642
- ...contents,
643
- };
644
- return response;
645
- };
646
- exports.de_CreateRuleGroupCommand = de_CreateRuleGroupCommand;
647
- const de_CreateRuleGroupCommandError = async (output, context) => {
648
- const parsedOutput = {
649
- ...output,
650
- body: await parseErrorBody(output.body, context),
651
- };
652
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
653
- switch (errorCode) {
654
- case "WAFDuplicateItemException":
655
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
656
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
657
- case "WAFInternalErrorException":
658
- case "com.amazonaws.wafv2#WAFInternalErrorException":
659
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
660
- case "WAFInvalidOperationException":
661
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
662
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
663
- case "WAFInvalidParameterException":
664
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
665
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
666
- case "WAFLimitsExceededException":
667
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
668
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
669
- case "WAFNonexistentItemException":
670
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
671
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
672
- case "WAFOptimisticLockException":
673
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
674
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
675
- case "WAFSubscriptionNotFoundException":
676
- case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
677
- throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
678
- case "WAFTagOperationException":
679
- case "com.amazonaws.wafv2#WAFTagOperationException":
680
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
681
- case "WAFTagOperationInternalErrorException":
682
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
683
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
684
- case "WAFUnavailableEntityException":
685
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
686
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
687
- default:
688
- const parsedBody = parsedOutput.body;
689
- return throwDefaultError({
690
- output,
691
- parsedBody,
692
- errorCode,
693
- });
694
- }
695
- };
696
- const de_CreateWebACLCommand = async (output, context) => {
697
- if (output.statusCode >= 300) {
698
- return de_CreateWebACLCommandError(output, context);
699
- }
700
- const data = await parseBody(output.body, context);
701
- let contents = {};
702
- contents = (0, smithy_client_1._json)(data);
703
- const response = {
704
- $metadata: deserializeMetadata(output),
705
- ...contents,
706
- };
707
- return response;
708
- };
709
- exports.de_CreateWebACLCommand = de_CreateWebACLCommand;
710
- const de_CreateWebACLCommandError = async (output, context) => {
711
- const parsedOutput = {
712
- ...output,
713
- body: await parseErrorBody(output.body, context),
714
- };
715
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
716
- switch (errorCode) {
717
- case "WAFConfigurationWarningException":
718
- case "com.amazonaws.wafv2#WAFConfigurationWarningException":
719
- throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
720
- case "WAFDuplicateItemException":
721
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
722
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
723
- case "WAFExpiredManagedRuleGroupVersionException":
724
- case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
725
- throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
726
- case "WAFInternalErrorException":
727
- case "com.amazonaws.wafv2#WAFInternalErrorException":
728
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
729
- case "WAFInvalidOperationException":
730
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
731
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
732
- case "WAFInvalidParameterException":
733
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
734
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
735
- case "WAFInvalidResourceException":
736
- case "com.amazonaws.wafv2#WAFInvalidResourceException":
737
- throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
738
- case "WAFLimitsExceededException":
739
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
740
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
741
- case "WAFNonexistentItemException":
742
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
743
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
744
- case "WAFOptimisticLockException":
745
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
746
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
747
- case "WAFSubscriptionNotFoundException":
748
- case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
749
- throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
750
- case "WAFTagOperationException":
751
- case "com.amazonaws.wafv2#WAFTagOperationException":
752
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
753
- case "WAFTagOperationInternalErrorException":
754
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
755
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
756
- case "WAFUnavailableEntityException":
757
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
758
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
759
- default:
760
- const parsedBody = parsedOutput.body;
761
- return throwDefaultError({
762
- output,
763
- parsedBody,
764
- errorCode,
765
- });
766
- }
767
- };
768
- const de_DeleteFirewallManagerRuleGroupsCommand = async (output, context) => {
769
- if (output.statusCode >= 300) {
770
- return de_DeleteFirewallManagerRuleGroupsCommandError(output, context);
771
- }
772
- const data = await parseBody(output.body, context);
773
- let contents = {};
774
- contents = (0, smithy_client_1._json)(data);
775
- const response = {
776
- $metadata: deserializeMetadata(output),
777
- ...contents,
778
- };
779
- return response;
780
- };
781
- exports.de_DeleteFirewallManagerRuleGroupsCommand = de_DeleteFirewallManagerRuleGroupsCommand;
782
- const de_DeleteFirewallManagerRuleGroupsCommandError = async (output, context) => {
783
- const parsedOutput = {
784
- ...output,
785
- body: await parseErrorBody(output.body, context),
786
- };
787
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
788
- switch (errorCode) {
789
- case "WAFInternalErrorException":
790
- case "com.amazonaws.wafv2#WAFInternalErrorException":
791
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
792
- case "WAFInvalidOperationException":
793
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
794
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
795
- case "WAFInvalidParameterException":
796
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
797
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
798
- case "WAFNonexistentItemException":
799
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
800
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
801
- case "WAFOptimisticLockException":
802
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
803
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
804
- default:
805
- const parsedBody = parsedOutput.body;
806
- return throwDefaultError({
807
- output,
808
- parsedBody,
809
- errorCode,
810
- });
811
- }
812
- };
813
- const de_DeleteIPSetCommand = async (output, context) => {
814
- if (output.statusCode >= 300) {
815
- return de_DeleteIPSetCommandError(output, context);
816
- }
817
- const data = await parseBody(output.body, context);
818
- let contents = {};
819
- contents = (0, smithy_client_1._json)(data);
820
- const response = {
821
- $metadata: deserializeMetadata(output),
822
- ...contents,
823
- };
824
- return response;
825
- };
826
- exports.de_DeleteIPSetCommand = de_DeleteIPSetCommand;
827
- const de_DeleteIPSetCommandError = async (output, context) => {
828
- const parsedOutput = {
829
- ...output,
830
- body: await parseErrorBody(output.body, context),
831
- };
832
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
833
- switch (errorCode) {
834
- case "WAFAssociatedItemException":
835
- case "com.amazonaws.wafv2#WAFAssociatedItemException":
836
- throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
837
- case "WAFInternalErrorException":
838
- case "com.amazonaws.wafv2#WAFInternalErrorException":
839
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
840
- case "WAFInvalidOperationException":
841
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
842
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
843
- case "WAFInvalidParameterException":
844
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
845
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
846
- case "WAFNonexistentItemException":
847
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
848
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
849
- case "WAFOptimisticLockException":
850
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
851
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
852
- case "WAFTagOperationException":
853
- case "com.amazonaws.wafv2#WAFTagOperationException":
854
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
855
- case "WAFTagOperationInternalErrorException":
856
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
857
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
858
- default:
859
- const parsedBody = parsedOutput.body;
860
- return throwDefaultError({
861
- output,
862
- parsedBody,
863
- errorCode,
864
- });
865
- }
866
- };
867
- const de_DeleteLoggingConfigurationCommand = async (output, context) => {
868
- if (output.statusCode >= 300) {
869
- return de_DeleteLoggingConfigurationCommandError(output, context);
870
- }
871
- const data = await parseBody(output.body, context);
872
- let contents = {};
873
- contents = (0, smithy_client_1._json)(data);
874
- const response = {
875
- $metadata: deserializeMetadata(output),
876
- ...contents,
877
- };
878
- return response;
879
- };
880
- exports.de_DeleteLoggingConfigurationCommand = de_DeleteLoggingConfigurationCommand;
881
- const de_DeleteLoggingConfigurationCommandError = async (output, context) => {
882
- const parsedOutput = {
883
- ...output,
884
- body: await parseErrorBody(output.body, context),
885
- };
886
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
887
- switch (errorCode) {
888
- case "WAFInternalErrorException":
889
- case "com.amazonaws.wafv2#WAFInternalErrorException":
890
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
891
- case "WAFInvalidOperationException":
892
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
893
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
894
- case "WAFInvalidParameterException":
895
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
896
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
897
- case "WAFNonexistentItemException":
898
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
899
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
900
- case "WAFOptimisticLockException":
901
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
902
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
903
- default:
904
- const parsedBody = parsedOutput.body;
905
- return throwDefaultError({
906
- output,
907
- parsedBody,
908
- errorCode,
909
- });
910
- }
911
- };
912
- const de_DeletePermissionPolicyCommand = async (output, context) => {
913
- if (output.statusCode >= 300) {
914
- return de_DeletePermissionPolicyCommandError(output, context);
915
- }
916
- const data = await parseBody(output.body, context);
917
- let contents = {};
918
- contents = (0, smithy_client_1._json)(data);
919
- const response = {
920
- $metadata: deserializeMetadata(output),
921
- ...contents,
922
- };
923
- return response;
924
- };
925
- exports.de_DeletePermissionPolicyCommand = de_DeletePermissionPolicyCommand;
926
- const de_DeletePermissionPolicyCommandError = async (output, context) => {
927
- const parsedOutput = {
928
- ...output,
929
- body: await parseErrorBody(output.body, context),
930
- };
931
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
932
- switch (errorCode) {
933
- case "WAFInternalErrorException":
934
- case "com.amazonaws.wafv2#WAFInternalErrorException":
935
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
936
- case "WAFInvalidParameterException":
937
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
938
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
939
- case "WAFNonexistentItemException":
940
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
941
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
942
- default:
943
- const parsedBody = parsedOutput.body;
944
- return throwDefaultError({
945
- output,
946
- parsedBody,
947
- errorCode,
948
- });
949
- }
950
- };
951
- const de_DeleteRegexPatternSetCommand = async (output, context) => {
952
- if (output.statusCode >= 300) {
953
- return de_DeleteRegexPatternSetCommandError(output, context);
954
- }
955
- const data = await parseBody(output.body, context);
956
- let contents = {};
957
- contents = (0, smithy_client_1._json)(data);
958
- const response = {
959
- $metadata: deserializeMetadata(output),
960
- ...contents,
961
- };
962
- return response;
963
- };
964
- exports.de_DeleteRegexPatternSetCommand = de_DeleteRegexPatternSetCommand;
965
- const de_DeleteRegexPatternSetCommandError = async (output, context) => {
966
- const parsedOutput = {
967
- ...output,
968
- body: await parseErrorBody(output.body, context),
969
- };
970
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
971
- switch (errorCode) {
972
- case "WAFAssociatedItemException":
973
- case "com.amazonaws.wafv2#WAFAssociatedItemException":
974
- throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
975
- case "WAFInternalErrorException":
976
- case "com.amazonaws.wafv2#WAFInternalErrorException":
977
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
978
- case "WAFInvalidOperationException":
979
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
980
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
981
- case "WAFInvalidParameterException":
982
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
983
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
984
- case "WAFNonexistentItemException":
985
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
986
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
987
- case "WAFOptimisticLockException":
988
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
989
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
990
- case "WAFTagOperationException":
991
- case "com.amazonaws.wafv2#WAFTagOperationException":
992
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
993
- case "WAFTagOperationInternalErrorException":
994
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
995
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
996
- default:
997
- const parsedBody = parsedOutput.body;
998
- return throwDefaultError({
999
- output,
1000
- parsedBody,
1001
- errorCode,
1002
- });
1003
- }
1004
- };
1005
- const de_DeleteRuleGroupCommand = async (output, context) => {
1006
- if (output.statusCode >= 300) {
1007
- return de_DeleteRuleGroupCommandError(output, context);
1008
- }
1009
- const data = await parseBody(output.body, context);
1010
- let contents = {};
1011
- contents = (0, smithy_client_1._json)(data);
1012
- const response = {
1013
- $metadata: deserializeMetadata(output),
1014
- ...contents,
1015
- };
1016
- return response;
1017
- };
1018
- exports.de_DeleteRuleGroupCommand = de_DeleteRuleGroupCommand;
1019
- const de_DeleteRuleGroupCommandError = async (output, context) => {
1020
- const parsedOutput = {
1021
- ...output,
1022
- body: await parseErrorBody(output.body, context),
1023
- };
1024
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1025
- switch (errorCode) {
1026
- case "WAFAssociatedItemException":
1027
- case "com.amazonaws.wafv2#WAFAssociatedItemException":
1028
- throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
1029
- case "WAFInternalErrorException":
1030
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1031
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1032
- case "WAFInvalidOperationException":
1033
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1034
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1035
- case "WAFInvalidParameterException":
1036
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1037
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1038
- case "WAFNonexistentItemException":
1039
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1040
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1041
- case "WAFOptimisticLockException":
1042
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
1043
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
1044
- case "WAFTagOperationException":
1045
- case "com.amazonaws.wafv2#WAFTagOperationException":
1046
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
1047
- case "WAFTagOperationInternalErrorException":
1048
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
1049
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1050
- default:
1051
- const parsedBody = parsedOutput.body;
1052
- return throwDefaultError({
1053
- output,
1054
- parsedBody,
1055
- errorCode,
1056
- });
1057
- }
1058
- };
1059
- const de_DeleteWebACLCommand = async (output, context) => {
1060
- if (output.statusCode >= 300) {
1061
- return de_DeleteWebACLCommandError(output, context);
1062
- }
1063
- const data = await parseBody(output.body, context);
1064
- let contents = {};
1065
- contents = (0, smithy_client_1._json)(data);
1066
- const response = {
1067
- $metadata: deserializeMetadata(output),
1068
- ...contents,
1069
- };
1070
- return response;
1071
- };
1072
- exports.de_DeleteWebACLCommand = de_DeleteWebACLCommand;
1073
- const de_DeleteWebACLCommandError = async (output, context) => {
1074
- const parsedOutput = {
1075
- ...output,
1076
- body: await parseErrorBody(output.body, context),
1077
- };
1078
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1079
- switch (errorCode) {
1080
- case "WAFAssociatedItemException":
1081
- case "com.amazonaws.wafv2#WAFAssociatedItemException":
1082
- throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
1083
- case "WAFInternalErrorException":
1084
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1085
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1086
- case "WAFInvalidOperationException":
1087
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1088
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1089
- case "WAFInvalidParameterException":
1090
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1091
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1092
- case "WAFNonexistentItemException":
1093
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1094
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1095
- case "WAFOptimisticLockException":
1096
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
1097
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
1098
- case "WAFTagOperationException":
1099
- case "com.amazonaws.wafv2#WAFTagOperationException":
1100
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
1101
- case "WAFTagOperationInternalErrorException":
1102
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
1103
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1104
- default:
1105
- const parsedBody = parsedOutput.body;
1106
- return throwDefaultError({
1107
- output,
1108
- parsedBody,
1109
- errorCode,
1110
- });
1111
- }
1112
- };
1113
- const de_DescribeAllManagedProductsCommand = async (output, context) => {
1114
- if (output.statusCode >= 300) {
1115
- return de_DescribeAllManagedProductsCommandError(output, context);
1116
- }
1117
- const data = await parseBody(output.body, context);
1118
- let contents = {};
1119
- contents = (0, smithy_client_1._json)(data);
1120
- const response = {
1121
- $metadata: deserializeMetadata(output),
1122
- ...contents,
1123
- };
1124
- return response;
1125
- };
1126
- exports.de_DescribeAllManagedProductsCommand = de_DescribeAllManagedProductsCommand;
1127
- const de_DescribeAllManagedProductsCommandError = async (output, context) => {
1128
- const parsedOutput = {
1129
- ...output,
1130
- body: await parseErrorBody(output.body, context),
1131
- };
1132
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1133
- switch (errorCode) {
1134
- case "WAFInternalErrorException":
1135
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1136
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1137
- case "WAFInvalidOperationException":
1138
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1139
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1140
- default:
1141
- const parsedBody = parsedOutput.body;
1142
- return throwDefaultError({
1143
- output,
1144
- parsedBody,
1145
- errorCode,
1146
- });
1147
- }
1148
- };
1149
- const de_DescribeManagedProductsByVendorCommand = async (output, context) => {
1150
- if (output.statusCode >= 300) {
1151
- return de_DescribeManagedProductsByVendorCommandError(output, context);
1152
- }
1153
- const data = await parseBody(output.body, context);
1154
- let contents = {};
1155
- contents = (0, smithy_client_1._json)(data);
1156
- const response = {
1157
- $metadata: deserializeMetadata(output),
1158
- ...contents,
1159
- };
1160
- return response;
1161
- };
1162
- exports.de_DescribeManagedProductsByVendorCommand = de_DescribeManagedProductsByVendorCommand;
1163
- const de_DescribeManagedProductsByVendorCommandError = async (output, context) => {
1164
- const parsedOutput = {
1165
- ...output,
1166
- body: await parseErrorBody(output.body, context),
1167
- };
1168
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1169
- switch (errorCode) {
1170
- case "WAFInternalErrorException":
1171
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1172
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1173
- case "WAFInvalidOperationException":
1174
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1175
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1176
- case "WAFInvalidParameterException":
1177
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1178
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1179
- default:
1180
- const parsedBody = parsedOutput.body;
1181
- return throwDefaultError({
1182
- output,
1183
- parsedBody,
1184
- errorCode,
1185
- });
1186
- }
1187
- };
1188
- const de_DescribeManagedRuleGroupCommand = async (output, context) => {
1189
- if (output.statusCode >= 300) {
1190
- return de_DescribeManagedRuleGroupCommandError(output, context);
1191
- }
1192
- const data = await parseBody(output.body, context);
1193
- let contents = {};
1194
- contents = (0, smithy_client_1._json)(data);
1195
- const response = {
1196
- $metadata: deserializeMetadata(output),
1197
- ...contents,
1198
- };
1199
- return response;
1200
- };
1201
- exports.de_DescribeManagedRuleGroupCommand = de_DescribeManagedRuleGroupCommand;
1202
- const de_DescribeManagedRuleGroupCommandError = async (output, context) => {
1203
- const parsedOutput = {
1204
- ...output,
1205
- body: await parseErrorBody(output.body, context),
1206
- };
1207
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1208
- switch (errorCode) {
1209
- case "WAFExpiredManagedRuleGroupVersionException":
1210
- case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
1211
- throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
1212
- case "WAFInternalErrorException":
1213
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1214
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1215
- case "WAFInvalidOperationException":
1216
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1217
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1218
- case "WAFInvalidParameterException":
1219
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1220
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1221
- case "WAFInvalidResourceException":
1222
- case "com.amazonaws.wafv2#WAFInvalidResourceException":
1223
- throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
1224
- case "WAFNonexistentItemException":
1225
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1226
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1227
- default:
1228
- const parsedBody = parsedOutput.body;
1229
- return throwDefaultError({
1230
- output,
1231
- parsedBody,
1232
- errorCode,
1233
- });
1234
- }
1235
- };
1236
- const de_DisassociateWebACLCommand = async (output, context) => {
1237
- if (output.statusCode >= 300) {
1238
- return de_DisassociateWebACLCommandError(output, context);
1239
- }
1240
- const data = await parseBody(output.body, context);
1241
- let contents = {};
1242
- contents = (0, smithy_client_1._json)(data);
1243
- const response = {
1244
- $metadata: deserializeMetadata(output),
1245
- ...contents,
1246
- };
1247
- return response;
1248
- };
1249
- exports.de_DisassociateWebACLCommand = de_DisassociateWebACLCommand;
1250
- const de_DisassociateWebACLCommandError = async (output, context) => {
1251
- const parsedOutput = {
1252
- ...output,
1253
- body: await parseErrorBody(output.body, context),
1254
- };
1255
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1256
- switch (errorCode) {
1257
- case "WAFInternalErrorException":
1258
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1259
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1260
- case "WAFInvalidOperationException":
1261
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1262
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1263
- case "WAFInvalidParameterException":
1264
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1265
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1266
- case "WAFNonexistentItemException":
1267
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1268
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1269
- default:
1270
- const parsedBody = parsedOutput.body;
1271
- return throwDefaultError({
1272
- output,
1273
- parsedBody,
1274
- errorCode,
1275
- });
1276
- }
1277
- };
1278
- const de_GenerateMobileSdkReleaseUrlCommand = async (output, context) => {
1279
- if (output.statusCode >= 300) {
1280
- return de_GenerateMobileSdkReleaseUrlCommandError(output, context);
1281
- }
1282
- const data = await parseBody(output.body, context);
1283
- let contents = {};
1284
- contents = (0, smithy_client_1._json)(data);
1285
- const response = {
1286
- $metadata: deserializeMetadata(output),
1287
- ...contents,
1288
- };
1289
- return response;
1290
- };
1291
- exports.de_GenerateMobileSdkReleaseUrlCommand = de_GenerateMobileSdkReleaseUrlCommand;
1292
- const de_GenerateMobileSdkReleaseUrlCommandError = async (output, context) => {
1293
- const parsedOutput = {
1294
- ...output,
1295
- body: await parseErrorBody(output.body, context),
1296
- };
1297
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1298
- switch (errorCode) {
1299
- case "WAFInternalErrorException":
1300
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1301
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1302
- case "WAFInvalidOperationException":
1303
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1304
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1305
- case "WAFInvalidParameterException":
1306
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1307
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1308
- case "WAFNonexistentItemException":
1309
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1310
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1311
- default:
1312
- const parsedBody = parsedOutput.body;
1313
- return throwDefaultError({
1314
- output,
1315
- parsedBody,
1316
- errorCode,
1317
- });
1318
- }
1319
- };
1320
- const de_GetDecryptedAPIKeyCommand = async (output, context) => {
1321
- if (output.statusCode >= 300) {
1322
- return de_GetDecryptedAPIKeyCommandError(output, context);
1323
- }
1324
- const data = await parseBody(output.body, context);
1325
- let contents = {};
1326
- contents = de_GetDecryptedAPIKeyResponse(data, context);
1327
- const response = {
1328
- $metadata: deserializeMetadata(output),
1329
- ...contents,
1330
- };
1331
- return response;
1332
- };
1333
- exports.de_GetDecryptedAPIKeyCommand = de_GetDecryptedAPIKeyCommand;
1334
- const de_GetDecryptedAPIKeyCommandError = async (output, context) => {
1335
- const parsedOutput = {
1336
- ...output,
1337
- body: await parseErrorBody(output.body, context),
1338
- };
1339
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1340
- switch (errorCode) {
1341
- case "WAFInternalErrorException":
1342
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1343
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1344
- case "WAFInvalidOperationException":
1345
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1346
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1347
- case "WAFInvalidParameterException":
1348
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1349
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1350
- case "WAFInvalidResourceException":
1351
- case "com.amazonaws.wafv2#WAFInvalidResourceException":
1352
- throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
1353
- default:
1354
- const parsedBody = parsedOutput.body;
1355
- return throwDefaultError({
1356
- output,
1357
- parsedBody,
1358
- errorCode,
1359
- });
1360
- }
1361
- };
1362
- const de_GetIPSetCommand = async (output, context) => {
1363
- if (output.statusCode >= 300) {
1364
- return de_GetIPSetCommandError(output, context);
1365
- }
1366
- const data = await parseBody(output.body, context);
1367
- let contents = {};
1368
- contents = (0, smithy_client_1._json)(data);
1369
- const response = {
1370
- $metadata: deserializeMetadata(output),
1371
- ...contents,
1372
- };
1373
- return response;
1374
- };
1375
- exports.de_GetIPSetCommand = de_GetIPSetCommand;
1376
- const de_GetIPSetCommandError = async (output, context) => {
1377
- const parsedOutput = {
1378
- ...output,
1379
- body: await parseErrorBody(output.body, context),
1380
- };
1381
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1382
- switch (errorCode) {
1383
- case "WAFInternalErrorException":
1384
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1385
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1386
- case "WAFInvalidOperationException":
1387
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1388
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1389
- case "WAFInvalidParameterException":
1390
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1391
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1392
- case "WAFNonexistentItemException":
1393
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1394
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1395
- default:
1396
- const parsedBody = parsedOutput.body;
1397
- return throwDefaultError({
1398
- output,
1399
- parsedBody,
1400
- errorCode,
1401
- });
1402
- }
1403
- };
1404
- const de_GetLoggingConfigurationCommand = async (output, context) => {
1405
- if (output.statusCode >= 300) {
1406
- return de_GetLoggingConfigurationCommandError(output, context);
1407
- }
1408
- const data = await parseBody(output.body, context);
1409
- let contents = {};
1410
- contents = (0, smithy_client_1._json)(data);
1411
- const response = {
1412
- $metadata: deserializeMetadata(output),
1413
- ...contents,
1414
- };
1415
- return response;
1416
- };
1417
- exports.de_GetLoggingConfigurationCommand = de_GetLoggingConfigurationCommand;
1418
- const de_GetLoggingConfigurationCommandError = async (output, context) => {
1419
- const parsedOutput = {
1420
- ...output,
1421
- body: await parseErrorBody(output.body, context),
1422
- };
1423
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1424
- switch (errorCode) {
1425
- case "WAFInternalErrorException":
1426
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1427
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1428
- case "WAFInvalidOperationException":
1429
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1430
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1431
- case "WAFInvalidParameterException":
1432
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1433
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1434
- case "WAFNonexistentItemException":
1435
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1436
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1437
- default:
1438
- const parsedBody = parsedOutput.body;
1439
- return throwDefaultError({
1440
- output,
1441
- parsedBody,
1442
- errorCode,
1443
- });
1444
- }
1445
- };
1446
- const de_GetManagedRuleSetCommand = async (output, context) => {
1447
- if (output.statusCode >= 300) {
1448
- return de_GetManagedRuleSetCommandError(output, context);
1449
- }
1450
- const data = await parseBody(output.body, context);
1451
- let contents = {};
1452
- contents = de_GetManagedRuleSetResponse(data, context);
1453
- const response = {
1454
- $metadata: deserializeMetadata(output),
1455
- ...contents,
1456
- };
1457
- return response;
1458
- };
1459
- exports.de_GetManagedRuleSetCommand = de_GetManagedRuleSetCommand;
1460
- const de_GetManagedRuleSetCommandError = async (output, context) => {
1461
- const parsedOutput = {
1462
- ...output,
1463
- body: await parseErrorBody(output.body, context),
1464
- };
1465
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1466
- switch (errorCode) {
1467
- case "WAFInternalErrorException":
1468
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1469
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1470
- case "WAFInvalidOperationException":
1471
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1472
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1473
- case "WAFInvalidParameterException":
1474
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1475
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1476
- case "WAFNonexistentItemException":
1477
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1478
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1479
- default:
1480
- const parsedBody = parsedOutput.body;
1481
- return throwDefaultError({
1482
- output,
1483
- parsedBody,
1484
- errorCode,
1485
- });
1486
- }
1487
- };
1488
- const de_GetMobileSdkReleaseCommand = async (output, context) => {
1489
- if (output.statusCode >= 300) {
1490
- return de_GetMobileSdkReleaseCommandError(output, context);
1491
- }
1492
- const data = await parseBody(output.body, context);
1493
- let contents = {};
1494
- contents = de_GetMobileSdkReleaseResponse(data, context);
1495
- const response = {
1496
- $metadata: deserializeMetadata(output),
1497
- ...contents,
1498
- };
1499
- return response;
1500
- };
1501
- exports.de_GetMobileSdkReleaseCommand = de_GetMobileSdkReleaseCommand;
1502
- const de_GetMobileSdkReleaseCommandError = async (output, context) => {
1503
- const parsedOutput = {
1504
- ...output,
1505
- body: await parseErrorBody(output.body, context),
1506
- };
1507
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1508
- switch (errorCode) {
1509
- case "WAFInternalErrorException":
1510
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1511
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1512
- case "WAFInvalidOperationException":
1513
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1514
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1515
- case "WAFInvalidParameterException":
1516
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1517
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1518
- case "WAFNonexistentItemException":
1519
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1520
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1521
- default:
1522
- const parsedBody = parsedOutput.body;
1523
- return throwDefaultError({
1524
- output,
1525
- parsedBody,
1526
- errorCode,
1527
- });
1528
- }
1529
- };
1530
- const de_GetPermissionPolicyCommand = async (output, context) => {
1531
- if (output.statusCode >= 300) {
1532
- return de_GetPermissionPolicyCommandError(output, context);
1533
- }
1534
- const data = await parseBody(output.body, context);
1535
- let contents = {};
1536
- contents = (0, smithy_client_1._json)(data);
1537
- const response = {
1538
- $metadata: deserializeMetadata(output),
1539
- ...contents,
1540
- };
1541
- return response;
1542
- };
1543
- exports.de_GetPermissionPolicyCommand = de_GetPermissionPolicyCommand;
1544
- const de_GetPermissionPolicyCommandError = async (output, context) => {
1545
- const parsedOutput = {
1546
- ...output,
1547
- body: await parseErrorBody(output.body, context),
1548
- };
1549
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1550
- switch (errorCode) {
1551
- case "WAFInternalErrorException":
1552
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1553
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1554
- case "WAFInvalidParameterException":
1555
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1556
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1557
- case "WAFNonexistentItemException":
1558
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1559
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1560
- default:
1561
- const parsedBody = parsedOutput.body;
1562
- return throwDefaultError({
1563
- output,
1564
- parsedBody,
1565
- errorCode,
1566
- });
1567
- }
1568
- };
1569
- const de_GetRateBasedStatementManagedKeysCommand = async (output, context) => {
1570
- if (output.statusCode >= 300) {
1571
- return de_GetRateBasedStatementManagedKeysCommandError(output, context);
1572
- }
1573
- const data = await parseBody(output.body, context);
1574
- let contents = {};
1575
- contents = (0, smithy_client_1._json)(data);
1576
- const response = {
1577
- $metadata: deserializeMetadata(output),
1578
- ...contents,
1579
- };
1580
- return response;
1581
- };
1582
- exports.de_GetRateBasedStatementManagedKeysCommand = de_GetRateBasedStatementManagedKeysCommand;
1583
- const de_GetRateBasedStatementManagedKeysCommandError = async (output, context) => {
1584
- const parsedOutput = {
1585
- ...output,
1586
- body: await parseErrorBody(output.body, context),
1587
- };
1588
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1589
- switch (errorCode) {
1590
- case "WAFInternalErrorException":
1591
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1592
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1593
- case "WAFInvalidOperationException":
1594
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1595
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1596
- case "WAFInvalidParameterException":
1597
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1598
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1599
- case "WAFNonexistentItemException":
1600
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1601
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1602
- case "WAFUnsupportedAggregateKeyTypeException":
1603
- case "com.amazonaws.wafv2#WAFUnsupportedAggregateKeyTypeException":
1604
- throw await de_WAFUnsupportedAggregateKeyTypeExceptionRes(parsedOutput, context);
1605
- default:
1606
- const parsedBody = parsedOutput.body;
1607
- return throwDefaultError({
1608
- output,
1609
- parsedBody,
1610
- errorCode,
1611
- });
1612
- }
1613
- };
1614
- const de_GetRegexPatternSetCommand = async (output, context) => {
1615
- if (output.statusCode >= 300) {
1616
- return de_GetRegexPatternSetCommandError(output, context);
1617
- }
1618
- const data = await parseBody(output.body, context);
1619
- let contents = {};
1620
- contents = (0, smithy_client_1._json)(data);
1621
- const response = {
1622
- $metadata: deserializeMetadata(output),
1623
- ...contents,
1624
- };
1625
- return response;
1626
- };
1627
- exports.de_GetRegexPatternSetCommand = de_GetRegexPatternSetCommand;
1628
- const de_GetRegexPatternSetCommandError = async (output, context) => {
1629
- const parsedOutput = {
1630
- ...output,
1631
- body: await parseErrorBody(output.body, context),
1632
- };
1633
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1634
- switch (errorCode) {
1635
- case "WAFInternalErrorException":
1636
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1637
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1638
- case "WAFInvalidOperationException":
1639
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1640
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1641
- case "WAFInvalidParameterException":
1642
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1643
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1644
- case "WAFNonexistentItemException":
1645
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1646
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1647
- default:
1648
- const parsedBody = parsedOutput.body;
1649
- return throwDefaultError({
1650
- output,
1651
- parsedBody,
1652
- errorCode,
1653
- });
1654
- }
1655
- };
1656
- const de_GetRuleGroupCommand = async (output, context) => {
1657
- if (output.statusCode >= 300) {
1658
- return de_GetRuleGroupCommandError(output, context);
1659
- }
1660
- const data = await parseBody(output.body, context);
1661
- let contents = {};
1662
- contents = de_GetRuleGroupResponse(data, context);
1663
- const response = {
1664
- $metadata: deserializeMetadata(output),
1665
- ...contents,
1666
- };
1667
- return response;
1668
- };
1669
- exports.de_GetRuleGroupCommand = de_GetRuleGroupCommand;
1670
- const de_GetRuleGroupCommandError = async (output, context) => {
1671
- const parsedOutput = {
1672
- ...output,
1673
- body: await parseErrorBody(output.body, context),
1674
- };
1675
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1676
- switch (errorCode) {
1677
- case "WAFInternalErrorException":
1678
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1679
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1680
- case "WAFInvalidOperationException":
1681
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1682
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1683
- case "WAFInvalidParameterException":
1684
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1685
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1686
- case "WAFNonexistentItemException":
1687
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1688
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1689
- default:
1690
- const parsedBody = parsedOutput.body;
1691
- return throwDefaultError({
1692
- output,
1693
- parsedBody,
1694
- errorCode,
1695
- });
1696
- }
1697
- };
1698
- const de_GetSampledRequestsCommand = async (output, context) => {
1699
- if (output.statusCode >= 300) {
1700
- return de_GetSampledRequestsCommandError(output, context);
1701
- }
1702
- const data = await parseBody(output.body, context);
1703
- let contents = {};
1704
- contents = de_GetSampledRequestsResponse(data, context);
1705
- const response = {
1706
- $metadata: deserializeMetadata(output),
1707
- ...contents,
1708
- };
1709
- return response;
1710
- };
1711
- exports.de_GetSampledRequestsCommand = de_GetSampledRequestsCommand;
1712
- const de_GetSampledRequestsCommandError = async (output, context) => {
1713
- const parsedOutput = {
1714
- ...output,
1715
- body: await parseErrorBody(output.body, context),
1716
- };
1717
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1718
- switch (errorCode) {
1719
- case "WAFInternalErrorException":
1720
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1721
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1722
- case "WAFInvalidParameterException":
1723
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1724
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1725
- case "WAFNonexistentItemException":
1726
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1727
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1728
- default:
1729
- const parsedBody = parsedOutput.body;
1730
- return throwDefaultError({
1731
- output,
1732
- parsedBody,
1733
- errorCode,
1734
- });
1735
- }
1736
- };
1737
- const de_GetWebACLCommand = async (output, context) => {
1738
- if (output.statusCode >= 300) {
1739
- return de_GetWebACLCommandError(output, context);
1740
- }
1741
- const data = await parseBody(output.body, context);
1742
- let contents = {};
1743
- contents = de_GetWebACLResponse(data, context);
1744
- const response = {
1745
- $metadata: deserializeMetadata(output),
1746
- ...contents,
1747
- };
1748
- return response;
1749
- };
1750
- exports.de_GetWebACLCommand = de_GetWebACLCommand;
1751
- const de_GetWebACLCommandError = async (output, context) => {
1752
- const parsedOutput = {
1753
- ...output,
1754
- body: await parseErrorBody(output.body, context),
1755
- };
1756
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1757
- switch (errorCode) {
1758
- case "WAFInternalErrorException":
1759
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1760
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1761
- case "WAFInvalidOperationException":
1762
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1763
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1764
- case "WAFInvalidParameterException":
1765
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1766
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1767
- case "WAFNonexistentItemException":
1768
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1769
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1770
- default:
1771
- const parsedBody = parsedOutput.body;
1772
- return throwDefaultError({
1773
- output,
1774
- parsedBody,
1775
- errorCode,
1776
- });
1777
- }
1778
- };
1779
- const de_GetWebACLForResourceCommand = async (output, context) => {
1780
- if (output.statusCode >= 300) {
1781
- return de_GetWebACLForResourceCommandError(output, context);
1782
- }
1783
- const data = await parseBody(output.body, context);
1784
- let contents = {};
1785
- contents = de_GetWebACLForResourceResponse(data, context);
1786
- const response = {
1787
- $metadata: deserializeMetadata(output),
1788
- ...contents,
1789
- };
1790
- return response;
1791
- };
1792
- exports.de_GetWebACLForResourceCommand = de_GetWebACLForResourceCommand;
1793
- const de_GetWebACLForResourceCommandError = async (output, context) => {
1794
- const parsedOutput = {
1795
- ...output,
1796
- body: await parseErrorBody(output.body, context),
1797
- };
1798
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1799
- switch (errorCode) {
1800
- case "WAFInternalErrorException":
1801
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1802
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1803
- case "WAFInvalidOperationException":
1804
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1805
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1806
- case "WAFInvalidParameterException":
1807
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1808
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1809
- case "WAFNonexistentItemException":
1810
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1811
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1812
- case "WAFUnavailableEntityException":
1813
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
1814
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
1815
- default:
1816
- const parsedBody = parsedOutput.body;
1817
- return throwDefaultError({
1818
- output,
1819
- parsedBody,
1820
- errorCode,
1821
- });
1822
- }
1823
- };
1824
- const de_ListAPIKeysCommand = async (output, context) => {
1825
- if (output.statusCode >= 300) {
1826
- return de_ListAPIKeysCommandError(output, context);
1827
- }
1828
- const data = await parseBody(output.body, context);
1829
- let contents = {};
1830
- contents = de_ListAPIKeysResponse(data, context);
1831
- const response = {
1832
- $metadata: deserializeMetadata(output),
1833
- ...contents,
1834
- };
1835
- return response;
1836
- };
1837
- exports.de_ListAPIKeysCommand = de_ListAPIKeysCommand;
1838
- const de_ListAPIKeysCommandError = async (output, context) => {
1839
- const parsedOutput = {
1840
- ...output,
1841
- body: await parseErrorBody(output.body, context),
1842
- };
1843
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1844
- switch (errorCode) {
1845
- case "WAFInternalErrorException":
1846
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1847
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1848
- case "WAFInvalidOperationException":
1849
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1850
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1851
- case "WAFInvalidParameterException":
1852
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1853
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1854
- case "WAFInvalidResourceException":
1855
- case "com.amazonaws.wafv2#WAFInvalidResourceException":
1856
- throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
1857
- default:
1858
- const parsedBody = parsedOutput.body;
1859
- return throwDefaultError({
1860
- output,
1861
- parsedBody,
1862
- errorCode,
1863
- });
1864
- }
1865
- };
1866
- const de_ListAvailableManagedRuleGroupsCommand = async (output, context) => {
1867
- if (output.statusCode >= 300) {
1868
- return de_ListAvailableManagedRuleGroupsCommandError(output, context);
1869
- }
1870
- const data = await parseBody(output.body, context);
1871
- let contents = {};
1872
- contents = (0, smithy_client_1._json)(data);
1873
- const response = {
1874
- $metadata: deserializeMetadata(output),
1875
- ...contents,
1876
- };
1877
- return response;
1878
- };
1879
- exports.de_ListAvailableManagedRuleGroupsCommand = de_ListAvailableManagedRuleGroupsCommand;
1880
- const de_ListAvailableManagedRuleGroupsCommandError = async (output, context) => {
1881
- const parsedOutput = {
1882
- ...output,
1883
- body: await parseErrorBody(output.body, context),
1884
- };
1885
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1886
- switch (errorCode) {
1887
- case "WAFInternalErrorException":
1888
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1889
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1890
- case "WAFInvalidOperationException":
1891
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1892
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1893
- case "WAFInvalidParameterException":
1894
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1895
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1896
- default:
1897
- const parsedBody = parsedOutput.body;
1898
- return throwDefaultError({
1899
- output,
1900
- parsedBody,
1901
- errorCode,
1902
- });
1903
- }
1904
- };
1905
- const de_ListAvailableManagedRuleGroupVersionsCommand = async (output, context) => {
1906
- if (output.statusCode >= 300) {
1907
- return de_ListAvailableManagedRuleGroupVersionsCommandError(output, context);
1908
- }
1909
- const data = await parseBody(output.body, context);
1910
- let contents = {};
1911
- contents = de_ListAvailableManagedRuleGroupVersionsResponse(data, context);
1912
- const response = {
1913
- $metadata: deserializeMetadata(output),
1914
- ...contents,
1915
- };
1916
- return response;
1917
- };
1918
- exports.de_ListAvailableManagedRuleGroupVersionsCommand = de_ListAvailableManagedRuleGroupVersionsCommand;
1919
- const de_ListAvailableManagedRuleGroupVersionsCommandError = async (output, context) => {
1920
- const parsedOutput = {
1921
- ...output,
1922
- body: await parseErrorBody(output.body, context),
1923
- };
1924
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1925
- switch (errorCode) {
1926
- case "WAFInternalErrorException":
1927
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1928
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1929
- case "WAFInvalidOperationException":
1930
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1931
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1932
- case "WAFInvalidParameterException":
1933
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1934
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1935
- case "WAFNonexistentItemException":
1936
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1937
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1938
- default:
1939
- const parsedBody = parsedOutput.body;
1940
- return throwDefaultError({
1941
- output,
1942
- parsedBody,
1943
- errorCode,
1944
- });
1945
- }
1946
- };
1947
- const de_ListIPSetsCommand = async (output, context) => {
1948
- if (output.statusCode >= 300) {
1949
- return de_ListIPSetsCommandError(output, context);
1950
- }
1951
- const data = await parseBody(output.body, context);
1952
- let contents = {};
1953
- contents = (0, smithy_client_1._json)(data);
1954
- const response = {
1955
- $metadata: deserializeMetadata(output),
1956
- ...contents,
1957
- };
1958
- return response;
1959
- };
1960
- exports.de_ListIPSetsCommand = de_ListIPSetsCommand;
1961
- const de_ListIPSetsCommandError = async (output, context) => {
1962
- const parsedOutput = {
1963
- ...output,
1964
- body: await parseErrorBody(output.body, context),
1965
- };
1966
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1967
- switch (errorCode) {
1968
- case "WAFInternalErrorException":
1969
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1970
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1971
- case "WAFInvalidOperationException":
1972
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1973
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1974
- case "WAFInvalidParameterException":
1975
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1976
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1977
- default:
1978
- const parsedBody = parsedOutput.body;
1979
- return throwDefaultError({
1980
- output,
1981
- parsedBody,
1982
- errorCode,
1983
- });
1984
- }
1985
- };
1986
- const de_ListLoggingConfigurationsCommand = async (output, context) => {
1987
- if (output.statusCode >= 300) {
1988
- return de_ListLoggingConfigurationsCommandError(output, context);
1989
- }
1990
- const data = await parseBody(output.body, context);
1991
- let contents = {};
1992
- contents = (0, smithy_client_1._json)(data);
1993
- const response = {
1994
- $metadata: deserializeMetadata(output),
1995
- ...contents,
1996
- };
1997
- return response;
1998
- };
1999
- exports.de_ListLoggingConfigurationsCommand = de_ListLoggingConfigurationsCommand;
2000
- const de_ListLoggingConfigurationsCommandError = async (output, context) => {
2001
- const parsedOutput = {
2002
- ...output,
2003
- body: await parseErrorBody(output.body, context),
2004
- };
2005
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2006
- switch (errorCode) {
2007
- case "WAFInternalErrorException":
2008
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2009
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2010
- case "WAFInvalidOperationException":
2011
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2012
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2013
- case "WAFInvalidParameterException":
2014
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2015
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2016
- default:
2017
- const parsedBody = parsedOutput.body;
2018
- return throwDefaultError({
2019
- output,
2020
- parsedBody,
2021
- errorCode,
2022
- });
2023
- }
2024
- };
2025
- const de_ListManagedRuleSetsCommand = async (output, context) => {
2026
- if (output.statusCode >= 300) {
2027
- return de_ListManagedRuleSetsCommandError(output, context);
2028
- }
2029
- const data = await parseBody(output.body, context);
2030
- let contents = {};
2031
- contents = (0, smithy_client_1._json)(data);
2032
- const response = {
2033
- $metadata: deserializeMetadata(output),
2034
- ...contents,
2035
- };
2036
- return response;
2037
- };
2038
- exports.de_ListManagedRuleSetsCommand = de_ListManagedRuleSetsCommand;
2039
- const de_ListManagedRuleSetsCommandError = async (output, context) => {
2040
- const parsedOutput = {
2041
- ...output,
2042
- body: await parseErrorBody(output.body, context),
2043
- };
2044
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2045
- switch (errorCode) {
2046
- case "WAFInternalErrorException":
2047
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2048
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2049
- case "WAFInvalidOperationException":
2050
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2051
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2052
- case "WAFInvalidParameterException":
2053
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2054
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2055
- default:
2056
- const parsedBody = parsedOutput.body;
2057
- return throwDefaultError({
2058
- output,
2059
- parsedBody,
2060
- errorCode,
2061
- });
2062
- }
2063
- };
2064
- const de_ListMobileSdkReleasesCommand = async (output, context) => {
2065
- if (output.statusCode >= 300) {
2066
- return de_ListMobileSdkReleasesCommandError(output, context);
2067
- }
2068
- const data = await parseBody(output.body, context);
2069
- let contents = {};
2070
- contents = de_ListMobileSdkReleasesResponse(data, context);
2071
- const response = {
2072
- $metadata: deserializeMetadata(output),
2073
- ...contents,
2074
- };
2075
- return response;
2076
- };
2077
- exports.de_ListMobileSdkReleasesCommand = de_ListMobileSdkReleasesCommand;
2078
- const de_ListMobileSdkReleasesCommandError = async (output, context) => {
2079
- const parsedOutput = {
2080
- ...output,
2081
- body: await parseErrorBody(output.body, context),
2082
- };
2083
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2084
- switch (errorCode) {
2085
- case "WAFInternalErrorException":
2086
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2087
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2088
- case "WAFInvalidOperationException":
2089
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2090
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2091
- case "WAFInvalidParameterException":
2092
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2093
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2094
- default:
2095
- const parsedBody = parsedOutput.body;
2096
- return throwDefaultError({
2097
- output,
2098
- parsedBody,
2099
- errorCode,
2100
- });
2101
- }
2102
- };
2103
- const de_ListRegexPatternSetsCommand = async (output, context) => {
2104
- if (output.statusCode >= 300) {
2105
- return de_ListRegexPatternSetsCommandError(output, context);
2106
- }
2107
- const data = await parseBody(output.body, context);
2108
- let contents = {};
2109
- contents = (0, smithy_client_1._json)(data);
2110
- const response = {
2111
- $metadata: deserializeMetadata(output),
2112
- ...contents,
2113
- };
2114
- return response;
2115
- };
2116
- exports.de_ListRegexPatternSetsCommand = de_ListRegexPatternSetsCommand;
2117
- const de_ListRegexPatternSetsCommandError = async (output, context) => {
2118
- const parsedOutput = {
2119
- ...output,
2120
- body: await parseErrorBody(output.body, context),
2121
- };
2122
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2123
- switch (errorCode) {
2124
- case "WAFInternalErrorException":
2125
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2126
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2127
- case "WAFInvalidOperationException":
2128
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2129
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2130
- case "WAFInvalidParameterException":
2131
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2132
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2133
- default:
2134
- const parsedBody = parsedOutput.body;
2135
- return throwDefaultError({
2136
- output,
2137
- parsedBody,
2138
- errorCode,
2139
- });
2140
- }
2141
- };
2142
- const de_ListResourcesForWebACLCommand = async (output, context) => {
2143
- if (output.statusCode >= 300) {
2144
- return de_ListResourcesForWebACLCommandError(output, context);
2145
- }
2146
- const data = await parseBody(output.body, context);
2147
- let contents = {};
2148
- contents = (0, smithy_client_1._json)(data);
2149
- const response = {
2150
- $metadata: deserializeMetadata(output),
2151
- ...contents,
2152
- };
2153
- return response;
2154
- };
2155
- exports.de_ListResourcesForWebACLCommand = de_ListResourcesForWebACLCommand;
2156
- const de_ListResourcesForWebACLCommandError = async (output, context) => {
2157
- const parsedOutput = {
2158
- ...output,
2159
- body: await parseErrorBody(output.body, context),
2160
- };
2161
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2162
- switch (errorCode) {
2163
- case "WAFInternalErrorException":
2164
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2165
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2166
- case "WAFInvalidOperationException":
2167
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2168
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2169
- case "WAFInvalidParameterException":
2170
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2171
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2172
- case "WAFNonexistentItemException":
2173
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2174
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2175
- default:
2176
- const parsedBody = parsedOutput.body;
2177
- return throwDefaultError({
2178
- output,
2179
- parsedBody,
2180
- errorCode,
2181
- });
2182
- }
2183
- };
2184
- const de_ListRuleGroupsCommand = async (output, context) => {
2185
- if (output.statusCode >= 300) {
2186
- return de_ListRuleGroupsCommandError(output, context);
2187
- }
2188
- const data = await parseBody(output.body, context);
2189
- let contents = {};
2190
- contents = (0, smithy_client_1._json)(data);
2191
- const response = {
2192
- $metadata: deserializeMetadata(output),
2193
- ...contents,
2194
- };
2195
- return response;
2196
- };
2197
- exports.de_ListRuleGroupsCommand = de_ListRuleGroupsCommand;
2198
- const de_ListRuleGroupsCommandError = async (output, context) => {
2199
- const parsedOutput = {
2200
- ...output,
2201
- body: await parseErrorBody(output.body, context),
2202
- };
2203
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2204
- switch (errorCode) {
2205
- case "WAFInternalErrorException":
2206
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2207
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2208
- case "WAFInvalidOperationException":
2209
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2210
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2211
- case "WAFInvalidParameterException":
2212
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2213
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2214
- default:
2215
- const parsedBody = parsedOutput.body;
2216
- return throwDefaultError({
2217
- output,
2218
- parsedBody,
2219
- errorCode,
2220
- });
2221
- }
2222
- };
2223
- const de_ListTagsForResourceCommand = async (output, context) => {
2224
- if (output.statusCode >= 300) {
2225
- return de_ListTagsForResourceCommandError(output, context);
2226
- }
2227
- const data = await parseBody(output.body, context);
2228
- let contents = {};
2229
- contents = (0, smithy_client_1._json)(data);
2230
- const response = {
2231
- $metadata: deserializeMetadata(output),
2232
- ...contents,
2233
- };
2234
- return response;
2235
- };
2236
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2237
- const de_ListTagsForResourceCommandError = async (output, context) => {
2238
- const parsedOutput = {
2239
- ...output,
2240
- body: await parseErrorBody(output.body, context),
2241
- };
2242
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2243
- switch (errorCode) {
2244
- case "WAFInternalErrorException":
2245
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2246
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2247
- case "WAFInvalidOperationException":
2248
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2249
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2250
- case "WAFInvalidParameterException":
2251
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2252
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2253
- case "WAFNonexistentItemException":
2254
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2255
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2256
- case "WAFTagOperationException":
2257
- case "com.amazonaws.wafv2#WAFTagOperationException":
2258
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
2259
- case "WAFTagOperationInternalErrorException":
2260
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
2261
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2262
- default:
2263
- const parsedBody = parsedOutput.body;
2264
- return throwDefaultError({
2265
- output,
2266
- parsedBody,
2267
- errorCode,
2268
- });
2269
- }
2270
- };
2271
- const de_ListWebACLsCommand = async (output, context) => {
2272
- if (output.statusCode >= 300) {
2273
- return de_ListWebACLsCommandError(output, context);
2274
- }
2275
- const data = await parseBody(output.body, context);
2276
- let contents = {};
2277
- contents = (0, smithy_client_1._json)(data);
2278
- const response = {
2279
- $metadata: deserializeMetadata(output),
2280
- ...contents,
2281
- };
2282
- return response;
2283
- };
2284
- exports.de_ListWebACLsCommand = de_ListWebACLsCommand;
2285
- const de_ListWebACLsCommandError = async (output, context) => {
2286
- const parsedOutput = {
2287
- ...output,
2288
- body: await parseErrorBody(output.body, context),
2289
- };
2290
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2291
- switch (errorCode) {
2292
- case "WAFInternalErrorException":
2293
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2294
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2295
- case "WAFInvalidOperationException":
2296
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2297
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2298
- case "WAFInvalidParameterException":
2299
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2300
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2301
- default:
2302
- const parsedBody = parsedOutput.body;
2303
- return throwDefaultError({
2304
- output,
2305
- parsedBody,
2306
- errorCode,
2307
- });
2308
- }
2309
- };
2310
- const de_PutLoggingConfigurationCommand = async (output, context) => {
2311
- if (output.statusCode >= 300) {
2312
- return de_PutLoggingConfigurationCommandError(output, context);
2313
- }
2314
- const data = await parseBody(output.body, context);
2315
- let contents = {};
2316
- contents = (0, smithy_client_1._json)(data);
2317
- const response = {
2318
- $metadata: deserializeMetadata(output),
2319
- ...contents,
2320
- };
2321
- return response;
2322
- };
2323
- exports.de_PutLoggingConfigurationCommand = de_PutLoggingConfigurationCommand;
2324
- const de_PutLoggingConfigurationCommandError = async (output, context) => {
2325
- const parsedOutput = {
2326
- ...output,
2327
- body: await parseErrorBody(output.body, context),
2328
- };
2329
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2330
- switch (errorCode) {
2331
- case "WAFInternalErrorException":
2332
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2333
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2334
- case "WAFInvalidOperationException":
2335
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2336
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2337
- case "WAFInvalidParameterException":
2338
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2339
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2340
- case "WAFLimitsExceededException":
2341
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
2342
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
2343
- case "WAFLogDestinationPermissionIssueException":
2344
- case "com.amazonaws.wafv2#WAFLogDestinationPermissionIssueException":
2345
- throw await de_WAFLogDestinationPermissionIssueExceptionRes(parsedOutput, context);
2346
- case "WAFNonexistentItemException":
2347
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2348
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2349
- case "WAFOptimisticLockException":
2350
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
2351
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2352
- case "WAFServiceLinkedRoleErrorException":
2353
- case "com.amazonaws.wafv2#WAFServiceLinkedRoleErrorException":
2354
- throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
2355
- default:
2356
- const parsedBody = parsedOutput.body;
2357
- return throwDefaultError({
2358
- output,
2359
- parsedBody,
2360
- errorCode,
2361
- });
2362
- }
2363
- };
2364
- const de_PutManagedRuleSetVersionsCommand = async (output, context) => {
2365
- if (output.statusCode >= 300) {
2366
- return de_PutManagedRuleSetVersionsCommandError(output, context);
2367
- }
2368
- const data = await parseBody(output.body, context);
2369
- let contents = {};
2370
- contents = (0, smithy_client_1._json)(data);
2371
- const response = {
2372
- $metadata: deserializeMetadata(output),
2373
- ...contents,
2374
- };
2375
- return response;
2376
- };
2377
- exports.de_PutManagedRuleSetVersionsCommand = de_PutManagedRuleSetVersionsCommand;
2378
- const de_PutManagedRuleSetVersionsCommandError = async (output, context) => {
2379
- const parsedOutput = {
2380
- ...output,
2381
- body: await parseErrorBody(output.body, context),
2382
- };
2383
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2384
- switch (errorCode) {
2385
- case "WAFInternalErrorException":
2386
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2387
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2388
- case "WAFInvalidOperationException":
2389
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2390
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2391
- case "WAFInvalidParameterException":
2392
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2393
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2394
- case "WAFNonexistentItemException":
2395
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2396
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2397
- case "WAFOptimisticLockException":
2398
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
2399
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2400
- default:
2401
- const parsedBody = parsedOutput.body;
2402
- return throwDefaultError({
2403
- output,
2404
- parsedBody,
2405
- errorCode,
2406
- });
2407
- }
2408
- };
2409
- const de_PutPermissionPolicyCommand = async (output, context) => {
2410
- if (output.statusCode >= 300) {
2411
- return de_PutPermissionPolicyCommandError(output, context);
2412
- }
2413
- const data = await parseBody(output.body, context);
2414
- let contents = {};
2415
- contents = (0, smithy_client_1._json)(data);
2416
- const response = {
2417
- $metadata: deserializeMetadata(output),
2418
- ...contents,
2419
- };
2420
- return response;
2421
- };
2422
- exports.de_PutPermissionPolicyCommand = de_PutPermissionPolicyCommand;
2423
- const de_PutPermissionPolicyCommandError = async (output, context) => {
2424
- const parsedOutput = {
2425
- ...output,
2426
- body: await parseErrorBody(output.body, context),
2427
- };
2428
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2429
- switch (errorCode) {
2430
- case "WAFInternalErrorException":
2431
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2432
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2433
- case "WAFInvalidParameterException":
2434
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2435
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2436
- case "WAFInvalidPermissionPolicyException":
2437
- case "com.amazonaws.wafv2#WAFInvalidPermissionPolicyException":
2438
- throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
2439
- case "WAFNonexistentItemException":
2440
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2441
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2442
- default:
2443
- const parsedBody = parsedOutput.body;
2444
- return throwDefaultError({
2445
- output,
2446
- parsedBody,
2447
- errorCode,
2448
- });
2449
- }
2450
- };
2451
- const de_TagResourceCommand = async (output, context) => {
2452
- if (output.statusCode >= 300) {
2453
- return de_TagResourceCommandError(output, context);
2454
- }
2455
- const data = await parseBody(output.body, context);
2456
- let contents = {};
2457
- contents = (0, smithy_client_1._json)(data);
2458
- const response = {
2459
- $metadata: deserializeMetadata(output),
2460
- ...contents,
2461
- };
2462
- return response;
2463
- };
2464
- exports.de_TagResourceCommand = de_TagResourceCommand;
2465
- const de_TagResourceCommandError = async (output, context) => {
2466
- const parsedOutput = {
2467
- ...output,
2468
- body: await parseErrorBody(output.body, context),
2469
- };
2470
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2471
- switch (errorCode) {
2472
- case "WAFInternalErrorException":
2473
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2474
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2475
- case "WAFInvalidOperationException":
2476
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2477
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2478
- case "WAFInvalidParameterException":
2479
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2480
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2481
- case "WAFLimitsExceededException":
2482
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
2483
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
2484
- case "WAFNonexistentItemException":
2485
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2486
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2487
- case "WAFTagOperationException":
2488
- case "com.amazonaws.wafv2#WAFTagOperationException":
2489
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
2490
- case "WAFTagOperationInternalErrorException":
2491
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
2492
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2493
- default:
2494
- const parsedBody = parsedOutput.body;
2495
- return throwDefaultError({
2496
- output,
2497
- parsedBody,
2498
- errorCode,
2499
- });
2500
- }
2501
- };
2502
- const de_UntagResourceCommand = async (output, context) => {
2503
- if (output.statusCode >= 300) {
2504
- return de_UntagResourceCommandError(output, context);
2505
- }
2506
- const data = await parseBody(output.body, context);
2507
- let contents = {};
2508
- contents = (0, smithy_client_1._json)(data);
2509
- const response = {
2510
- $metadata: deserializeMetadata(output),
2511
- ...contents,
2512
- };
2513
- return response;
2514
- };
2515
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
2516
- const de_UntagResourceCommandError = async (output, context) => {
2517
- const parsedOutput = {
2518
- ...output,
2519
- body: await parseErrorBody(output.body, context),
2520
- };
2521
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2522
- switch (errorCode) {
2523
- case "WAFInternalErrorException":
2524
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2525
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2526
- case "WAFInvalidOperationException":
2527
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2528
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2529
- case "WAFInvalidParameterException":
2530
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2531
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2532
- case "WAFNonexistentItemException":
2533
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2534
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2535
- case "WAFTagOperationException":
2536
- case "com.amazonaws.wafv2#WAFTagOperationException":
2537
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
2538
- case "WAFTagOperationInternalErrorException":
2539
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
2540
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2541
- default:
2542
- const parsedBody = parsedOutput.body;
2543
- return throwDefaultError({
2544
- output,
2545
- parsedBody,
2546
- errorCode,
2547
- });
2548
- }
2549
- };
2550
- const de_UpdateIPSetCommand = async (output, context) => {
2551
- if (output.statusCode >= 300) {
2552
- return de_UpdateIPSetCommandError(output, context);
2553
- }
2554
- const data = await parseBody(output.body, context);
2555
- let contents = {};
2556
- contents = (0, smithy_client_1._json)(data);
2557
- const response = {
2558
- $metadata: deserializeMetadata(output),
2559
- ...contents,
2560
- };
2561
- return response;
2562
- };
2563
- exports.de_UpdateIPSetCommand = de_UpdateIPSetCommand;
2564
- const de_UpdateIPSetCommandError = async (output, context) => {
2565
- const parsedOutput = {
2566
- ...output,
2567
- body: await parseErrorBody(output.body, context),
2568
- };
2569
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2570
- switch (errorCode) {
2571
- case "WAFDuplicateItemException":
2572
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
2573
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
2574
- case "WAFInternalErrorException":
2575
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2576
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2577
- case "WAFInvalidOperationException":
2578
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2579
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2580
- case "WAFInvalidParameterException":
2581
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2582
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2583
- case "WAFLimitsExceededException":
2584
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
2585
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
2586
- case "WAFNonexistentItemException":
2587
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2588
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2589
- case "WAFOptimisticLockException":
2590
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
2591
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2592
- default:
2593
- const parsedBody = parsedOutput.body;
2594
- return throwDefaultError({
2595
- output,
2596
- parsedBody,
2597
- errorCode,
2598
- });
2599
- }
2600
- };
2601
- const de_UpdateManagedRuleSetVersionExpiryDateCommand = async (output, context) => {
2602
- if (output.statusCode >= 300) {
2603
- return de_UpdateManagedRuleSetVersionExpiryDateCommandError(output, context);
2604
- }
2605
- const data = await parseBody(output.body, context);
2606
- let contents = {};
2607
- contents = de_UpdateManagedRuleSetVersionExpiryDateResponse(data, context);
2608
- const response = {
2609
- $metadata: deserializeMetadata(output),
2610
- ...contents,
2611
- };
2612
- return response;
2613
- };
2614
- exports.de_UpdateManagedRuleSetVersionExpiryDateCommand = de_UpdateManagedRuleSetVersionExpiryDateCommand;
2615
- const de_UpdateManagedRuleSetVersionExpiryDateCommandError = async (output, context) => {
2616
- const parsedOutput = {
2617
- ...output,
2618
- body: await parseErrorBody(output.body, context),
2619
- };
2620
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2621
- switch (errorCode) {
2622
- case "WAFInternalErrorException":
2623
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2624
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2625
- case "WAFInvalidOperationException":
2626
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2627
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2628
- case "WAFInvalidParameterException":
2629
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2630
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2631
- case "WAFNonexistentItemException":
2632
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2633
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2634
- case "WAFOptimisticLockException":
2635
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
2636
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2637
- default:
2638
- const parsedBody = parsedOutput.body;
2639
- return throwDefaultError({
2640
- output,
2641
- parsedBody,
2642
- errorCode,
2643
- });
2644
- }
2645
- };
2646
- const de_UpdateRegexPatternSetCommand = async (output, context) => {
2647
- if (output.statusCode >= 300) {
2648
- return de_UpdateRegexPatternSetCommandError(output, context);
2649
- }
2650
- const data = await parseBody(output.body, context);
2651
- let contents = {};
2652
- contents = (0, smithy_client_1._json)(data);
2653
- const response = {
2654
- $metadata: deserializeMetadata(output),
2655
- ...contents,
2656
- };
2657
- return response;
2658
- };
2659
- exports.de_UpdateRegexPatternSetCommand = de_UpdateRegexPatternSetCommand;
2660
- const de_UpdateRegexPatternSetCommandError = async (output, context) => {
2661
- const parsedOutput = {
2662
- ...output,
2663
- body: await parseErrorBody(output.body, context),
2664
- };
2665
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2666
- switch (errorCode) {
2667
- case "WAFDuplicateItemException":
2668
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
2669
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
2670
- case "WAFInternalErrorException":
2671
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2672
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2673
- case "WAFInvalidOperationException":
2674
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2675
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2676
- case "WAFInvalidParameterException":
2677
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2678
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2679
- case "WAFLimitsExceededException":
2680
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
2681
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
2682
- case "WAFNonexistentItemException":
2683
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2684
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2685
- case "WAFOptimisticLockException":
2686
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
2687
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2688
- default:
2689
- const parsedBody = parsedOutput.body;
2690
- return throwDefaultError({
2691
- output,
2692
- parsedBody,
2693
- errorCode,
2694
- });
2695
- }
2696
- };
2697
- const de_UpdateRuleGroupCommand = async (output, context) => {
2698
- if (output.statusCode >= 300) {
2699
- return de_UpdateRuleGroupCommandError(output, context);
2700
- }
2701
- const data = await parseBody(output.body, context);
2702
- let contents = {};
2703
- contents = (0, smithy_client_1._json)(data);
2704
- const response = {
2705
- $metadata: deserializeMetadata(output),
2706
- ...contents,
2707
- };
2708
- return response;
2709
- };
2710
- exports.de_UpdateRuleGroupCommand = de_UpdateRuleGroupCommand;
2711
- const de_UpdateRuleGroupCommandError = async (output, context) => {
2712
- const parsedOutput = {
2713
- ...output,
2714
- body: await parseErrorBody(output.body, context),
2715
- };
2716
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2717
- switch (errorCode) {
2718
- case "WAFConfigurationWarningException":
2719
- case "com.amazonaws.wafv2#WAFConfigurationWarningException":
2720
- throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
2721
- case "WAFDuplicateItemException":
2722
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
2723
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
2724
- case "WAFInternalErrorException":
2725
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2726
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2727
- case "WAFInvalidOperationException":
2728
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2729
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2730
- case "WAFInvalidParameterException":
2731
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2732
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2733
- case "WAFLimitsExceededException":
2734
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
2735
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
2736
- case "WAFNonexistentItemException":
2737
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2738
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2739
- case "WAFOptimisticLockException":
2740
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
2741
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2742
- case "WAFSubscriptionNotFoundException":
2743
- case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
2744
- throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
2745
- case "WAFUnavailableEntityException":
2746
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
2747
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
2748
- default:
2749
- const parsedBody = parsedOutput.body;
2750
- return throwDefaultError({
2751
- output,
2752
- parsedBody,
2753
- errorCode,
2754
- });
2755
- }
2756
- };
2757
- const de_UpdateWebACLCommand = async (output, context) => {
2758
- if (output.statusCode >= 300) {
2759
- return de_UpdateWebACLCommandError(output, context);
2760
- }
2761
- const data = await parseBody(output.body, context);
2762
- let contents = {};
2763
- contents = (0, smithy_client_1._json)(data);
2764
- const response = {
2765
- $metadata: deserializeMetadata(output),
2766
- ...contents,
2767
- };
2768
- return response;
2769
- };
2770
- exports.de_UpdateWebACLCommand = de_UpdateWebACLCommand;
2771
- const de_UpdateWebACLCommandError = async (output, context) => {
2772
- const parsedOutput = {
2773
- ...output,
2774
- body: await parseErrorBody(output.body, context),
2775
- };
2776
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2777
- switch (errorCode) {
2778
- case "WAFConfigurationWarningException":
2779
- case "com.amazonaws.wafv2#WAFConfigurationWarningException":
2780
- throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
2781
- case "WAFDuplicateItemException":
2782
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
2783
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
2784
- case "WAFExpiredManagedRuleGroupVersionException":
2785
- case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
2786
- throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
2787
- case "WAFInternalErrorException":
2788
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2789
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2790
- case "WAFInvalidOperationException":
2791
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2792
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2793
- case "WAFInvalidParameterException":
2794
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2795
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2796
- case "WAFInvalidResourceException":
2797
- case "com.amazonaws.wafv2#WAFInvalidResourceException":
2798
- throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
2799
- case "WAFLimitsExceededException":
2800
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
2801
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
2802
- case "WAFNonexistentItemException":
2803
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2804
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2805
- case "WAFOptimisticLockException":
2806
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
2807
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2808
- case "WAFSubscriptionNotFoundException":
2809
- case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
2810
- throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
2811
- case "WAFUnavailableEntityException":
2812
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
2813
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
2814
- default:
2815
- const parsedBody = parsedOutput.body;
2816
- return throwDefaultError({
2817
- output,
2818
- parsedBody,
2819
- errorCode,
2820
- });
2821
- }
2822
- };
2823
- const de_WAFAssociatedItemExceptionRes = async (parsedOutput, context) => {
2824
- const body = parsedOutput.body;
2825
- const deserialized = (0, smithy_client_1._json)(body);
2826
- const exception = new models_0_1.WAFAssociatedItemException({
2827
- $metadata: deserializeMetadata(parsedOutput),
2828
- ...deserialized,
2829
- });
2830
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2831
- };
2832
- const de_WAFConfigurationWarningExceptionRes = async (parsedOutput, context) => {
2833
- const body = parsedOutput.body;
2834
- const deserialized = (0, smithy_client_1._json)(body);
2835
- const exception = new models_0_1.WAFConfigurationWarningException({
2836
- $metadata: deserializeMetadata(parsedOutput),
2837
- ...deserialized,
2838
- });
2839
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2840
- };
2841
- const de_WAFDuplicateItemExceptionRes = async (parsedOutput, context) => {
2842
- const body = parsedOutput.body;
2843
- const deserialized = (0, smithy_client_1._json)(body);
2844
- const exception = new models_0_1.WAFDuplicateItemException({
2845
- $metadata: deserializeMetadata(parsedOutput),
2846
- ...deserialized,
2847
- });
2848
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2849
- };
2850
- const de_WAFExpiredManagedRuleGroupVersionExceptionRes = async (parsedOutput, context) => {
2851
- const body = parsedOutput.body;
2852
- const deserialized = (0, smithy_client_1._json)(body);
2853
- const exception = new models_0_1.WAFExpiredManagedRuleGroupVersionException({
2854
- $metadata: deserializeMetadata(parsedOutput),
2855
- ...deserialized,
2856
- });
2857
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2858
- };
2859
- const de_WAFInternalErrorExceptionRes = async (parsedOutput, context) => {
2860
- const body = parsedOutput.body;
2861
- const deserialized = (0, smithy_client_1._json)(body);
2862
- const exception = new models_0_1.WAFInternalErrorException({
2863
- $metadata: deserializeMetadata(parsedOutput),
2864
- ...deserialized,
2865
- });
2866
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2867
- };
2868
- const de_WAFInvalidOperationExceptionRes = async (parsedOutput, context) => {
2869
- const body = parsedOutput.body;
2870
- const deserialized = (0, smithy_client_1._json)(body);
2871
- const exception = new models_0_1.WAFInvalidOperationException({
2872
- $metadata: deserializeMetadata(parsedOutput),
2873
- ...deserialized,
2874
- });
2875
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2876
- };
2877
- const de_WAFInvalidParameterExceptionRes = async (parsedOutput, context) => {
2878
- const body = parsedOutput.body;
2879
- const deserialized = (0, smithy_client_1._json)(body);
2880
- const exception = new models_0_1.WAFInvalidParameterException({
2881
- $metadata: deserializeMetadata(parsedOutput),
2882
- ...deserialized,
2883
- });
2884
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2885
- };
2886
- const de_WAFInvalidPermissionPolicyExceptionRes = async (parsedOutput, context) => {
2887
- const body = parsedOutput.body;
2888
- const deserialized = (0, smithy_client_1._json)(body);
2889
- const exception = new models_0_1.WAFInvalidPermissionPolicyException({
2890
- $metadata: deserializeMetadata(parsedOutput),
2891
- ...deserialized,
2892
- });
2893
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2894
- };
2895
- const de_WAFInvalidResourceExceptionRes = async (parsedOutput, context) => {
2896
- const body = parsedOutput.body;
2897
- const deserialized = (0, smithy_client_1._json)(body);
2898
- const exception = new models_0_1.WAFInvalidResourceException({
2899
- $metadata: deserializeMetadata(parsedOutput),
2900
- ...deserialized,
2901
- });
2902
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2903
- };
2904
- const de_WAFLimitsExceededExceptionRes = async (parsedOutput, context) => {
2905
- const body = parsedOutput.body;
2906
- const deserialized = (0, smithy_client_1._json)(body);
2907
- const exception = new models_0_1.WAFLimitsExceededException({
2908
- $metadata: deserializeMetadata(parsedOutput),
2909
- ...deserialized,
2910
- });
2911
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2912
- };
2913
- const de_WAFLogDestinationPermissionIssueExceptionRes = async (parsedOutput, context) => {
2914
- const body = parsedOutput.body;
2915
- const deserialized = (0, smithy_client_1._json)(body);
2916
- const exception = new models_0_1.WAFLogDestinationPermissionIssueException({
2917
- $metadata: deserializeMetadata(parsedOutput),
2918
- ...deserialized,
2919
- });
2920
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2921
- };
2922
- const de_WAFNonexistentItemExceptionRes = async (parsedOutput, context) => {
2923
- const body = parsedOutput.body;
2924
- const deserialized = (0, smithy_client_1._json)(body);
2925
- const exception = new models_0_1.WAFNonexistentItemException({
2926
- $metadata: deserializeMetadata(parsedOutput),
2927
- ...deserialized,
2928
- });
2929
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2930
- };
2931
- const de_WAFOptimisticLockExceptionRes = async (parsedOutput, context) => {
2932
- const body = parsedOutput.body;
2933
- const deserialized = (0, smithy_client_1._json)(body);
2934
- const exception = new models_0_1.WAFOptimisticLockException({
2935
- $metadata: deserializeMetadata(parsedOutput),
2936
- ...deserialized,
2937
- });
2938
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2939
- };
2940
- const de_WAFServiceLinkedRoleErrorExceptionRes = async (parsedOutput, context) => {
2941
- const body = parsedOutput.body;
2942
- const deserialized = (0, smithy_client_1._json)(body);
2943
- const exception = new models_0_1.WAFServiceLinkedRoleErrorException({
2944
- $metadata: deserializeMetadata(parsedOutput),
2945
- ...deserialized,
2946
- });
2947
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2948
- };
2949
- const de_WAFSubscriptionNotFoundExceptionRes = async (parsedOutput, context) => {
2950
- const body = parsedOutput.body;
2951
- const deserialized = (0, smithy_client_1._json)(body);
2952
- const exception = new models_0_1.WAFSubscriptionNotFoundException({
2953
- $metadata: deserializeMetadata(parsedOutput),
2954
- ...deserialized,
2955
- });
2956
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2957
- };
2958
- const de_WAFTagOperationExceptionRes = async (parsedOutput, context) => {
2959
- const body = parsedOutput.body;
2960
- const deserialized = (0, smithy_client_1._json)(body);
2961
- const exception = new models_0_1.WAFTagOperationException({
2962
- $metadata: deserializeMetadata(parsedOutput),
2963
- ...deserialized,
2964
- });
2965
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2966
- };
2967
- const de_WAFTagOperationInternalErrorExceptionRes = async (parsedOutput, context) => {
2968
- const body = parsedOutput.body;
2969
- const deserialized = (0, smithy_client_1._json)(body);
2970
- const exception = new models_0_1.WAFTagOperationInternalErrorException({
2971
- $metadata: deserializeMetadata(parsedOutput),
2972
- ...deserialized,
2973
- });
2974
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2975
- };
2976
- const de_WAFUnavailableEntityExceptionRes = async (parsedOutput, context) => {
2977
- const body = parsedOutput.body;
2978
- const deserialized = (0, smithy_client_1._json)(body);
2979
- const exception = new models_0_1.WAFUnavailableEntityException({
2980
- $metadata: deserializeMetadata(parsedOutput),
2981
- ...deserialized,
2982
- });
2983
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2984
- };
2985
- const de_WAFUnsupportedAggregateKeyTypeExceptionRes = async (parsedOutput, context) => {
2986
- const body = parsedOutput.body;
2987
- const deserialized = (0, smithy_client_1._json)(body);
2988
- const exception = new models_0_1.WAFUnsupportedAggregateKeyTypeException({
2989
- $metadata: deserializeMetadata(parsedOutput),
2990
- ...deserialized,
2991
- });
2992
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2993
- };
2994
- const se_AndStatement = (input, context) => {
2995
- return (0, smithy_client_1.take)(input, {
2996
- Statements: (_) => se_Statements(_, context),
2997
- });
2998
- };
2999
- const se_ByteMatchStatement = (input, context) => {
3000
- return (0, smithy_client_1.take)(input, {
3001
- FieldToMatch: smithy_client_1._json,
3002
- PositionalConstraint: [],
3003
- SearchString: context.base64Encoder,
3004
- TextTransformations: smithy_client_1._json,
3005
- });
3006
- };
3007
- const se_CheckCapacityRequest = (input, context) => {
3008
- return (0, smithy_client_1.take)(input, {
3009
- Rules: (_) => se_Rules(_, context),
3010
- Scope: [],
3011
- });
3012
- };
3013
- const se_CreateRuleGroupRequest = (input, context) => {
3014
- return (0, smithy_client_1.take)(input, {
3015
- Capacity: [],
3016
- CustomResponseBodies: smithy_client_1._json,
3017
- Description: [],
3018
- Name: [],
3019
- Rules: (_) => se_Rules(_, context),
3020
- Scope: [],
3021
- Tags: smithy_client_1._json,
3022
- VisibilityConfig: smithy_client_1._json,
3023
- });
3024
- };
3025
- const se_CreateWebACLRequest = (input, context) => {
3026
- return (0, smithy_client_1.take)(input, {
3027
- AssociationConfig: smithy_client_1._json,
3028
- CaptchaConfig: smithy_client_1._json,
3029
- ChallengeConfig: smithy_client_1._json,
3030
- CustomResponseBodies: smithy_client_1._json,
3031
- DefaultAction: smithy_client_1._json,
3032
- Description: [],
3033
- Name: [],
3034
- Rules: (_) => se_Rules(_, context),
3035
- Scope: [],
3036
- Tags: smithy_client_1._json,
3037
- TokenDomains: smithy_client_1._json,
3038
- VisibilityConfig: smithy_client_1._json,
3039
- });
3040
- };
3041
- const se_GetSampledRequestsRequest = (input, context) => {
3042
- return (0, smithy_client_1.take)(input, {
3043
- MaxItems: [],
3044
- RuleMetricName: [],
3045
- Scope: [],
3046
- TimeWindow: (_) => se_TimeWindow(_, context),
3047
- WebAclArn: [],
3048
- });
3049
- };
3050
- const se_ManagedRuleGroupStatement = (input, context) => {
3051
- return (0, smithy_client_1.take)(input, {
3052
- ExcludedRules: smithy_client_1._json,
3053
- ManagedRuleGroupConfigs: smithy_client_1._json,
3054
- Name: [],
3055
- RuleActionOverrides: smithy_client_1._json,
3056
- ScopeDownStatement: (_) => se_Statement(_, context),
3057
- VendorName: [],
3058
- Version: [],
3059
- });
3060
- };
3061
- const se_NotStatement = (input, context) => {
3062
- return (0, smithy_client_1.take)(input, {
3063
- Statement: (_) => se_Statement(_, context),
3064
- });
3065
- };
3066
- const se_OrStatement = (input, context) => {
3067
- return (0, smithy_client_1.take)(input, {
3068
- Statements: (_) => se_Statements(_, context),
3069
- });
3070
- };
3071
- const se_RateBasedStatement = (input, context) => {
3072
- return (0, smithy_client_1.take)(input, {
3073
- AggregateKeyType: [],
3074
- CustomKeys: smithy_client_1._json,
3075
- ForwardedIPConfig: smithy_client_1._json,
3076
- Limit: [],
3077
- ScopeDownStatement: (_) => se_Statement(_, context),
3078
- });
3079
- };
3080
- const se_Rule = (input, context) => {
3081
- return (0, smithy_client_1.take)(input, {
3082
- Action: smithy_client_1._json,
3083
- CaptchaConfig: smithy_client_1._json,
3084
- ChallengeConfig: smithy_client_1._json,
3085
- Name: [],
3086
- OverrideAction: smithy_client_1._json,
3087
- Priority: [],
3088
- RuleLabels: smithy_client_1._json,
3089
- Statement: (_) => se_Statement(_, context),
3090
- VisibilityConfig: smithy_client_1._json,
3091
- });
3092
- };
3093
- const se_Rules = (input, context) => {
3094
- return input
3095
- .filter((e) => e != null)
3096
- .map((entry) => {
3097
- return se_Rule(entry, context);
3098
- });
3099
- };
3100
- const se_Statement = (input, context) => {
3101
- return (0, smithy_client_1.take)(input, {
3102
- AndStatement: (_) => se_AndStatement(_, context),
3103
- ByteMatchStatement: (_) => se_ByteMatchStatement(_, context),
3104
- GeoMatchStatement: smithy_client_1._json,
3105
- IPSetReferenceStatement: smithy_client_1._json,
3106
- LabelMatchStatement: smithy_client_1._json,
3107
- ManagedRuleGroupStatement: (_) => se_ManagedRuleGroupStatement(_, context),
3108
- NotStatement: (_) => se_NotStatement(_, context),
3109
- OrStatement: (_) => se_OrStatement(_, context),
3110
- RateBasedStatement: (_) => se_RateBasedStatement(_, context),
3111
- RegexMatchStatement: smithy_client_1._json,
3112
- RegexPatternSetReferenceStatement: smithy_client_1._json,
3113
- RuleGroupReferenceStatement: smithy_client_1._json,
3114
- SizeConstraintStatement: smithy_client_1._json,
3115
- SqliMatchStatement: smithy_client_1._json,
3116
- XssMatchStatement: smithy_client_1._json,
3117
- });
3118
- };
3119
- const se_Statements = (input, context) => {
3120
- return input
3121
- .filter((e) => e != null)
3122
- .map((entry) => {
3123
- return se_Statement(entry, context);
3124
- });
3125
- };
3126
- const se_TimeWindow = (input, context) => {
3127
- return (0, smithy_client_1.take)(input, {
3128
- EndTime: (_) => Math.round(_.getTime() / 1000),
3129
- StartTime: (_) => Math.round(_.getTime() / 1000),
3130
- });
3131
- };
3132
- const se_UpdateManagedRuleSetVersionExpiryDateRequest = (input, context) => {
3133
- return (0, smithy_client_1.take)(input, {
3134
- ExpiryTimestamp: (_) => Math.round(_.getTime() / 1000),
3135
- Id: [],
3136
- LockToken: [],
3137
- Name: [],
3138
- Scope: [],
3139
- VersionToExpire: [],
3140
- });
3141
- };
3142
- const se_UpdateRuleGroupRequest = (input, context) => {
3143
- return (0, smithy_client_1.take)(input, {
3144
- CustomResponseBodies: smithy_client_1._json,
3145
- Description: [],
3146
- Id: [],
3147
- LockToken: [],
3148
- Name: [],
3149
- Rules: (_) => se_Rules(_, context),
3150
- Scope: [],
3151
- VisibilityConfig: smithy_client_1._json,
3152
- });
3153
- };
3154
- const se_UpdateWebACLRequest = (input, context) => {
3155
- return (0, smithy_client_1.take)(input, {
3156
- AssociationConfig: smithy_client_1._json,
3157
- CaptchaConfig: smithy_client_1._json,
3158
- ChallengeConfig: smithy_client_1._json,
3159
- CustomResponseBodies: smithy_client_1._json,
3160
- DefaultAction: smithy_client_1._json,
3161
- Description: [],
3162
- Id: [],
3163
- LockToken: [],
3164
- Name: [],
3165
- Rules: (_) => se_Rules(_, context),
3166
- Scope: [],
3167
- TokenDomains: smithy_client_1._json,
3168
- VisibilityConfig: smithy_client_1._json,
3169
- });
3170
- };
3171
- const de_AndStatement = (output, context) => {
3172
- return (0, smithy_client_1.take)(output, {
3173
- Statements: (_) => de_Statements(_, context),
3174
- });
3175
- };
3176
- const de_APIKeySummaries = (output, context) => {
3177
- const retVal = (output || [])
3178
- .filter((e) => e != null)
3179
- .map((entry) => {
3180
- return de_APIKeySummary(entry, context);
3181
- });
3182
- return retVal;
3183
- };
3184
- const de_APIKeySummary = (output, context) => {
3185
- return (0, smithy_client_1.take)(output, {
3186
- APIKey: smithy_client_1.expectString,
3187
- CreationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3188
- TokenDomains: smithy_client_1._json,
3189
- Version: smithy_client_1.expectInt32,
3190
- });
3191
- };
3192
- const de_ByteMatchStatement = (output, context) => {
3193
- return (0, smithy_client_1.take)(output, {
3194
- FieldToMatch: smithy_client_1._json,
3195
- PositionalConstraint: smithy_client_1.expectString,
3196
- SearchString: context.base64Decoder,
3197
- TextTransformations: smithy_client_1._json,
3198
- });
3199
- };
3200
- const de_FirewallManagerRuleGroup = (output, context) => {
3201
- return (0, smithy_client_1.take)(output, {
3202
- FirewallManagerStatement: (_) => de_FirewallManagerStatement(_, context),
3203
- Name: smithy_client_1.expectString,
3204
- OverrideAction: smithy_client_1._json,
3205
- Priority: smithy_client_1.expectInt32,
3206
- VisibilityConfig: smithy_client_1._json,
3207
- });
3208
- };
3209
- const de_FirewallManagerRuleGroups = (output, context) => {
3210
- const retVal = (output || [])
3211
- .filter((e) => e != null)
3212
- .map((entry) => {
3213
- return de_FirewallManagerRuleGroup(entry, context);
3214
- });
3215
- return retVal;
3216
- };
3217
- const de_FirewallManagerStatement = (output, context) => {
3218
- return (0, smithy_client_1.take)(output, {
3219
- ManagedRuleGroupStatement: (_) => de_ManagedRuleGroupStatement(_, context),
3220
- RuleGroupReferenceStatement: smithy_client_1._json,
3221
- });
3222
- };
3223
- const de_GetDecryptedAPIKeyResponse = (output, context) => {
3224
- return (0, smithy_client_1.take)(output, {
3225
- CreationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3226
- TokenDomains: smithy_client_1._json,
3227
- });
3228
- };
3229
- const de_GetManagedRuleSetResponse = (output, context) => {
3230
- return (0, smithy_client_1.take)(output, {
3231
- LockToken: smithy_client_1.expectString,
3232
- ManagedRuleSet: (_) => de_ManagedRuleSet(_, context),
3233
- });
3234
- };
3235
- const de_GetMobileSdkReleaseResponse = (output, context) => {
3236
- return (0, smithy_client_1.take)(output, {
3237
- MobileSdkRelease: (_) => de_MobileSdkRelease(_, context),
3238
- });
3239
- };
3240
- const de_GetRuleGroupResponse = (output, context) => {
3241
- return (0, smithy_client_1.take)(output, {
3242
- LockToken: smithy_client_1.expectString,
3243
- RuleGroup: (_) => de_RuleGroup(_, context),
3244
- });
3245
- };
3246
- const de_GetSampledRequestsResponse = (output, context) => {
3247
- return (0, smithy_client_1.take)(output, {
3248
- PopulationSize: smithy_client_1.expectLong,
3249
- SampledRequests: (_) => de_SampledHTTPRequests(_, context),
3250
- TimeWindow: (_) => de_TimeWindow(_, context),
3251
- });
3252
- };
3253
- const de_GetWebACLForResourceResponse = (output, context) => {
3254
- return (0, smithy_client_1.take)(output, {
3255
- WebACL: (_) => de_WebACL(_, context),
3256
- });
3257
- };
3258
- const de_GetWebACLResponse = (output, context) => {
3259
- return (0, smithy_client_1.take)(output, {
3260
- ApplicationIntegrationURL: smithy_client_1.expectString,
3261
- LockToken: smithy_client_1.expectString,
3262
- WebACL: (_) => de_WebACL(_, context),
3263
- });
3264
- };
3265
- const de_ListAPIKeysResponse = (output, context) => {
3266
- return (0, smithy_client_1.take)(output, {
3267
- APIKeySummaries: (_) => de_APIKeySummaries(_, context),
3268
- ApplicationIntegrationURL: smithy_client_1.expectString,
3269
- NextMarker: smithy_client_1.expectString,
3270
- });
3271
- };
3272
- const de_ListAvailableManagedRuleGroupVersionsResponse = (output, context) => {
3273
- return (0, smithy_client_1.take)(output, {
3274
- CurrentDefaultVersion: smithy_client_1.expectString,
3275
- NextMarker: smithy_client_1.expectString,
3276
- Versions: (_) => de_ManagedRuleGroupVersions(_, context),
3277
- });
3278
- };
3279
- const de_ListMobileSdkReleasesResponse = (output, context) => {
3280
- return (0, smithy_client_1.take)(output, {
3281
- NextMarker: smithy_client_1.expectString,
3282
- ReleaseSummaries: (_) => de_ReleaseSummaries(_, context),
3283
- });
3284
- };
3285
- const de_ManagedRuleGroupStatement = (output, context) => {
3286
- return (0, smithy_client_1.take)(output, {
3287
- ExcludedRules: smithy_client_1._json,
3288
- ManagedRuleGroupConfigs: smithy_client_1._json,
3289
- Name: smithy_client_1.expectString,
3290
- RuleActionOverrides: smithy_client_1._json,
3291
- ScopeDownStatement: (_) => de_Statement(_, context),
3292
- VendorName: smithy_client_1.expectString,
3293
- Version: smithy_client_1.expectString,
3294
- });
3295
- };
3296
- const de_ManagedRuleGroupVersion = (output, context) => {
3297
- return (0, smithy_client_1.take)(output, {
3298
- LastUpdateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3299
- Name: smithy_client_1.expectString,
3300
- });
3301
- };
3302
- const de_ManagedRuleGroupVersions = (output, context) => {
3303
- const retVal = (output || [])
3304
- .filter((e) => e != null)
3305
- .map((entry) => {
3306
- return de_ManagedRuleGroupVersion(entry, context);
3307
- });
3308
- return retVal;
3309
- };
3310
- const de_ManagedRuleSet = (output, context) => {
3311
- return (0, smithy_client_1.take)(output, {
3312
- ARN: smithy_client_1.expectString,
3313
- Description: smithy_client_1.expectString,
3314
- Id: smithy_client_1.expectString,
3315
- LabelNamespace: smithy_client_1.expectString,
3316
- Name: smithy_client_1.expectString,
3317
- PublishedVersions: (_) => de_PublishedVersions(_, context),
3318
- RecommendedVersion: smithy_client_1.expectString,
3319
- });
3320
- };
3321
- const de_ManagedRuleSetVersion = (output, context) => {
3322
- return (0, smithy_client_1.take)(output, {
3323
- AssociatedRuleGroupArn: smithy_client_1.expectString,
3324
- Capacity: smithy_client_1.expectLong,
3325
- ExpiryTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3326
- ForecastedLifetime: smithy_client_1.expectInt32,
3327
- LastUpdateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3328
- PublishTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3329
- });
3330
- };
3331
- const de_MobileSdkRelease = (output, context) => {
3332
- return (0, smithy_client_1.take)(output, {
3333
- ReleaseNotes: smithy_client_1.expectString,
3334
- ReleaseVersion: smithy_client_1.expectString,
3335
- Tags: smithy_client_1._json,
3336
- Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3337
- });
3338
- };
3339
- const de_NotStatement = (output, context) => {
3340
- return (0, smithy_client_1.take)(output, {
3341
- Statement: (_) => de_Statement(_, context),
3342
- });
3343
- };
3344
- const de_OrStatement = (output, context) => {
3345
- return (0, smithy_client_1.take)(output, {
3346
- Statements: (_) => de_Statements(_, context),
3347
- });
3348
- };
3349
- const de_PublishedVersions = (output, context) => {
3350
- return Object.entries(output).reduce((acc, [key, value]) => {
3351
- if (value === null) {
3352
- return acc;
3353
- }
3354
- acc[key] = de_ManagedRuleSetVersion(value, context);
3355
- return acc;
3356
- }, {});
3357
- };
3358
- const de_RateBasedStatement = (output, context) => {
3359
- return (0, smithy_client_1.take)(output, {
3360
- AggregateKeyType: smithy_client_1.expectString,
3361
- CustomKeys: smithy_client_1._json,
3362
- ForwardedIPConfig: smithy_client_1._json,
3363
- Limit: smithy_client_1.expectLong,
3364
- ScopeDownStatement: (_) => de_Statement(_, context),
3365
- });
3366
- };
3367
- const de_ReleaseSummaries = (output, context) => {
3368
- const retVal = (output || [])
3369
- .filter((e) => e != null)
3370
- .map((entry) => {
3371
- return de_ReleaseSummary(entry, context);
3372
- });
3373
- return retVal;
3374
- };
3375
- const de_ReleaseSummary = (output, context) => {
3376
- return (0, smithy_client_1.take)(output, {
3377
- ReleaseVersion: smithy_client_1.expectString,
3378
- Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3379
- });
3380
- };
3381
- const de_Rule = (output, context) => {
3382
- return (0, smithy_client_1.take)(output, {
3383
- Action: smithy_client_1._json,
3384
- CaptchaConfig: smithy_client_1._json,
3385
- ChallengeConfig: smithy_client_1._json,
3386
- Name: smithy_client_1.expectString,
3387
- OverrideAction: smithy_client_1._json,
3388
- Priority: smithy_client_1.expectInt32,
3389
- RuleLabels: smithy_client_1._json,
3390
- Statement: (_) => de_Statement(_, context),
3391
- VisibilityConfig: smithy_client_1._json,
3392
- });
3393
- };
3394
- const de_RuleGroup = (output, context) => {
3395
- return (0, smithy_client_1.take)(output, {
3396
- ARN: smithy_client_1.expectString,
3397
- AvailableLabels: smithy_client_1._json,
3398
- Capacity: smithy_client_1.expectLong,
3399
- ConsumedLabels: smithy_client_1._json,
3400
- CustomResponseBodies: smithy_client_1._json,
3401
- Description: smithy_client_1.expectString,
3402
- Id: smithy_client_1.expectString,
3403
- LabelNamespace: smithy_client_1.expectString,
3404
- Name: smithy_client_1.expectString,
3405
- Rules: (_) => de_Rules(_, context),
3406
- VisibilityConfig: smithy_client_1._json,
3407
- });
3408
- };
3409
- const de_Rules = (output, context) => {
3410
- const retVal = (output || [])
3411
- .filter((e) => e != null)
3412
- .map((entry) => {
3413
- return de_Rule(entry, context);
3414
- });
3415
- return retVal;
3416
- };
3417
- const de_SampledHTTPRequest = (output, context) => {
3418
- return (0, smithy_client_1.take)(output, {
3419
- Action: smithy_client_1.expectString,
3420
- CaptchaResponse: smithy_client_1._json,
3421
- ChallengeResponse: smithy_client_1._json,
3422
- Labels: smithy_client_1._json,
3423
- OverriddenAction: smithy_client_1.expectString,
3424
- Request: smithy_client_1._json,
3425
- RequestHeadersInserted: smithy_client_1._json,
3426
- ResponseCodeSent: smithy_client_1.expectInt32,
3427
- RuleNameWithinRuleGroup: smithy_client_1.expectString,
3428
- Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3429
- Weight: smithy_client_1.expectLong,
3430
- });
3431
- };
3432
- const de_SampledHTTPRequests = (output, context) => {
3433
- const retVal = (output || [])
3434
- .filter((e) => e != null)
3435
- .map((entry) => {
3436
- return de_SampledHTTPRequest(entry, context);
3437
- });
3438
- return retVal;
3439
- };
3440
- const de_Statement = (output, context) => {
3441
- return (0, smithy_client_1.take)(output, {
3442
- AndStatement: (_) => de_AndStatement(_, context),
3443
- ByteMatchStatement: (_) => de_ByteMatchStatement(_, context),
3444
- GeoMatchStatement: smithy_client_1._json,
3445
- IPSetReferenceStatement: smithy_client_1._json,
3446
- LabelMatchStatement: smithy_client_1._json,
3447
- ManagedRuleGroupStatement: (_) => de_ManagedRuleGroupStatement(_, context),
3448
- NotStatement: (_) => de_NotStatement(_, context),
3449
- OrStatement: (_) => de_OrStatement(_, context),
3450
- RateBasedStatement: (_) => de_RateBasedStatement(_, context),
3451
- RegexMatchStatement: smithy_client_1._json,
3452
- RegexPatternSetReferenceStatement: smithy_client_1._json,
3453
- RuleGroupReferenceStatement: smithy_client_1._json,
3454
- SizeConstraintStatement: smithy_client_1._json,
3455
- SqliMatchStatement: smithy_client_1._json,
3456
- XssMatchStatement: smithy_client_1._json,
3457
- });
3458
- };
3459
- const de_Statements = (output, context) => {
3460
- const retVal = (output || [])
3461
- .filter((e) => e != null)
3462
- .map((entry) => {
3463
- return de_Statement(entry, context);
3464
- });
3465
- return retVal;
3466
- };
3467
- const de_TimeWindow = (output, context) => {
3468
- return (0, smithy_client_1.take)(output, {
3469
- EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3470
- StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3471
- });
3472
- };
3473
- const de_UpdateManagedRuleSetVersionExpiryDateResponse = (output, context) => {
3474
- return (0, smithy_client_1.take)(output, {
3475
- ExpiringVersion: smithy_client_1.expectString,
3476
- ExpiryTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3477
- NextLockToken: smithy_client_1.expectString,
3478
- });
3479
- };
3480
- const de_WebACL = (output, context) => {
3481
- return (0, smithy_client_1.take)(output, {
3482
- ARN: smithy_client_1.expectString,
3483
- AssociationConfig: smithy_client_1._json,
3484
- Capacity: smithy_client_1.expectLong,
3485
- CaptchaConfig: smithy_client_1._json,
3486
- ChallengeConfig: smithy_client_1._json,
3487
- CustomResponseBodies: smithy_client_1._json,
3488
- DefaultAction: smithy_client_1._json,
3489
- Description: smithy_client_1.expectString,
3490
- Id: smithy_client_1.expectString,
3491
- LabelNamespace: smithy_client_1.expectString,
3492
- ManagedByFirewallManager: smithy_client_1.expectBoolean,
3493
- Name: smithy_client_1.expectString,
3494
- PostProcessFirewallManagerRuleGroups: (_) => de_FirewallManagerRuleGroups(_, context),
3495
- PreProcessFirewallManagerRuleGroups: (_) => de_FirewallManagerRuleGroups(_, context),
3496
- Rules: (_) => de_Rules(_, context),
3497
- TokenDomains: smithy_client_1._json,
3498
- VisibilityConfig: smithy_client_1._json,
3499
- });
3500
- };
3501
- const deserializeMetadata = (output) => ({
3502
- httpStatusCode: output.statusCode,
3503
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3504
- extendedRequestId: output.headers["x-amz-id-2"],
3505
- cfId: output.headers["x-amz-cf-id"],
3506
- });
3507
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
3508
- const throwDefaultError = (0, smithy_client_1.withBaseException)(WAFV2ServiceException_1.WAFV2ServiceException);
3509
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3510
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3511
- const contents = {
3512
- protocol,
3513
- hostname,
3514
- port,
3515
- method: "POST",
3516
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
3517
- headers,
3518
- };
3519
- if (resolvedHostname !== undefined) {
3520
- contents.hostname = resolvedHostname;
3521
- }
3522
- if (body !== undefined) {
3523
- contents.body = body;
3524
- }
3525
- return new protocol_http_1.HttpRequest(contents);
3526
- };
3527
- function sharedHeaders(operation) {
3528
- return {
3529
- "content-type": "application/x-amz-json-1.1",
3530
- "x-amz-target": `AWSWAF_20190729.${operation}`,
3531
- };
3532
- }
3533
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3534
- if (encoded.length) {
3535
- return JSON.parse(encoded);
3536
- }
3537
- return {};
3538
- });
3539
- const parseErrorBody = async (errorBody, context) => {
3540
- const value = await parseBody(errorBody, context);
3541
- value.message = value.message ?? value.Message;
3542
- return value;
3543
- };
3544
- const loadRestJsonErrorCode = (output, data) => {
3545
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3546
- const sanitizeErrorCode = (rawValue) => {
3547
- let cleanValue = rawValue;
3548
- if (typeof cleanValue === "number") {
3549
- cleanValue = cleanValue.toString();
3550
- }
3551
- if (cleanValue.indexOf(",") >= 0) {
3552
- cleanValue = cleanValue.split(",")[0];
3553
- }
3554
- if (cleanValue.indexOf(":") >= 0) {
3555
- cleanValue = cleanValue.split(":")[0];
3556
- }
3557
- if (cleanValue.indexOf("#") >= 0) {
3558
- cleanValue = cleanValue.split("#")[1];
3559
- }
3560
- return cleanValue;
3561
- };
3562
- const headerKey = findKey(output.headers, "x-amzn-errortype");
3563
- if (headerKey !== undefined) {
3564
- return sanitizeErrorCode(output.headers[headerKey]);
3565
- }
3566
- if (data.code !== undefined) {
3567
- return sanitizeErrorCode(data.code);
3568
- }
3569
- if (data["__type"] !== undefined) {
3570
- return sanitizeErrorCode(data["__type"]);
3571
- }
3572
- };
1
+ module.exports = require("../index.js");