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