@aws-sdk/client-waf-regional 3.309.0 → 3.312.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 +87 -324
- package/dist-es/protocols/Aws_json1_1.js +87 -324
- package/package.json +35 -35
|
@@ -9,810 +9,567 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const WAFRegionalServiceException_1 = require("../models/WAFRegionalServiceException");
|
|
11
11
|
const se_AssociateWebACLCommand = async (input, context) => {
|
|
12
|
-
const headers =
|
|
13
|
-
"content-type": "application/x-amz-json-1.1",
|
|
14
|
-
"x-amz-target": "AWSWAF_Regional_20161128.AssociateWebACL",
|
|
15
|
-
};
|
|
12
|
+
const headers = sharedHeaders("AssociateWebACL");
|
|
16
13
|
let body;
|
|
17
14
|
body = JSON.stringify(se_AssociateWebACLRequest(input, context));
|
|
18
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
19
16
|
};
|
|
20
17
|
exports.se_AssociateWebACLCommand = se_AssociateWebACLCommand;
|
|
21
18
|
const se_CreateByteMatchSetCommand = async (input, context) => {
|
|
22
|
-
const headers =
|
|
23
|
-
"content-type": "application/x-amz-json-1.1",
|
|
24
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateByteMatchSet",
|
|
25
|
-
};
|
|
19
|
+
const headers = sharedHeaders("CreateByteMatchSet");
|
|
26
20
|
let body;
|
|
27
21
|
body = JSON.stringify(se_CreateByteMatchSetRequest(input, context));
|
|
28
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
23
|
};
|
|
30
24
|
exports.se_CreateByteMatchSetCommand = se_CreateByteMatchSetCommand;
|
|
31
25
|
const se_CreateGeoMatchSetCommand = async (input, context) => {
|
|
32
|
-
const headers =
|
|
33
|
-
"content-type": "application/x-amz-json-1.1",
|
|
34
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateGeoMatchSet",
|
|
35
|
-
};
|
|
26
|
+
const headers = sharedHeaders("CreateGeoMatchSet");
|
|
36
27
|
let body;
|
|
37
28
|
body = JSON.stringify(se_CreateGeoMatchSetRequest(input, context));
|
|
38
29
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
39
30
|
};
|
|
40
31
|
exports.se_CreateGeoMatchSetCommand = se_CreateGeoMatchSetCommand;
|
|
41
32
|
const se_CreateIPSetCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateIPSet",
|
|
45
|
-
};
|
|
33
|
+
const headers = sharedHeaders("CreateIPSet");
|
|
46
34
|
let body;
|
|
47
35
|
body = JSON.stringify(se_CreateIPSetRequest(input, context));
|
|
48
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
37
|
};
|
|
50
38
|
exports.se_CreateIPSetCommand = se_CreateIPSetCommand;
|
|
51
39
|
const se_CreateRateBasedRuleCommand = async (input, context) => {
|
|
52
|
-
const headers =
|
|
53
|
-
"content-type": "application/x-amz-json-1.1",
|
|
54
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateRateBasedRule",
|
|
55
|
-
};
|
|
40
|
+
const headers = sharedHeaders("CreateRateBasedRule");
|
|
56
41
|
let body;
|
|
57
42
|
body = JSON.stringify(se_CreateRateBasedRuleRequest(input, context));
|
|
58
43
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
44
|
};
|
|
60
45
|
exports.se_CreateRateBasedRuleCommand = se_CreateRateBasedRuleCommand;
|
|
61
46
|
const se_CreateRegexMatchSetCommand = async (input, context) => {
|
|
62
|
-
const headers =
|
|
63
|
-
"content-type": "application/x-amz-json-1.1",
|
|
64
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateRegexMatchSet",
|
|
65
|
-
};
|
|
47
|
+
const headers = sharedHeaders("CreateRegexMatchSet");
|
|
66
48
|
let body;
|
|
67
49
|
body = JSON.stringify(se_CreateRegexMatchSetRequest(input, context));
|
|
68
50
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
51
|
};
|
|
70
52
|
exports.se_CreateRegexMatchSetCommand = se_CreateRegexMatchSetCommand;
|
|
71
53
|
const se_CreateRegexPatternSetCommand = async (input, context) => {
|
|
72
|
-
const headers =
|
|
73
|
-
"content-type": "application/x-amz-json-1.1",
|
|
74
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateRegexPatternSet",
|
|
75
|
-
};
|
|
54
|
+
const headers = sharedHeaders("CreateRegexPatternSet");
|
|
76
55
|
let body;
|
|
77
56
|
body = JSON.stringify(se_CreateRegexPatternSetRequest(input, context));
|
|
78
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
58
|
};
|
|
80
59
|
exports.se_CreateRegexPatternSetCommand = se_CreateRegexPatternSetCommand;
|
|
81
60
|
const se_CreateRuleCommand = async (input, context) => {
|
|
82
|
-
const headers =
|
|
83
|
-
"content-type": "application/x-amz-json-1.1",
|
|
84
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateRule",
|
|
85
|
-
};
|
|
61
|
+
const headers = sharedHeaders("CreateRule");
|
|
86
62
|
let body;
|
|
87
63
|
body = JSON.stringify(se_CreateRuleRequest(input, context));
|
|
88
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
65
|
};
|
|
90
66
|
exports.se_CreateRuleCommand = se_CreateRuleCommand;
|
|
91
67
|
const se_CreateRuleGroupCommand = async (input, context) => {
|
|
92
|
-
const headers =
|
|
93
|
-
"content-type": "application/x-amz-json-1.1",
|
|
94
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateRuleGroup",
|
|
95
|
-
};
|
|
68
|
+
const headers = sharedHeaders("CreateRuleGroup");
|
|
96
69
|
let body;
|
|
97
70
|
body = JSON.stringify(se_CreateRuleGroupRequest(input, context));
|
|
98
71
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
72
|
};
|
|
100
73
|
exports.se_CreateRuleGroupCommand = se_CreateRuleGroupCommand;
|
|
101
74
|
const se_CreateSizeConstraintSetCommand = async (input, context) => {
|
|
102
|
-
const headers =
|
|
103
|
-
"content-type": "application/x-amz-json-1.1",
|
|
104
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateSizeConstraintSet",
|
|
105
|
-
};
|
|
75
|
+
const headers = sharedHeaders("CreateSizeConstraintSet");
|
|
106
76
|
let body;
|
|
107
77
|
body = JSON.stringify(se_CreateSizeConstraintSetRequest(input, context));
|
|
108
78
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
109
79
|
};
|
|
110
80
|
exports.se_CreateSizeConstraintSetCommand = se_CreateSizeConstraintSetCommand;
|
|
111
81
|
const se_CreateSqlInjectionMatchSetCommand = async (input, context) => {
|
|
112
|
-
const headers =
|
|
113
|
-
"content-type": "application/x-amz-json-1.1",
|
|
114
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateSqlInjectionMatchSet",
|
|
115
|
-
};
|
|
82
|
+
const headers = sharedHeaders("CreateSqlInjectionMatchSet");
|
|
116
83
|
let body;
|
|
117
84
|
body = JSON.stringify(se_CreateSqlInjectionMatchSetRequest(input, context));
|
|
118
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
86
|
};
|
|
120
87
|
exports.se_CreateSqlInjectionMatchSetCommand = se_CreateSqlInjectionMatchSetCommand;
|
|
121
88
|
const se_CreateWebACLCommand = async (input, context) => {
|
|
122
|
-
const headers =
|
|
123
|
-
"content-type": "application/x-amz-json-1.1",
|
|
124
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateWebACL",
|
|
125
|
-
};
|
|
89
|
+
const headers = sharedHeaders("CreateWebACL");
|
|
126
90
|
let body;
|
|
127
91
|
body = JSON.stringify(se_CreateWebACLRequest(input, context));
|
|
128
92
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
129
93
|
};
|
|
130
94
|
exports.se_CreateWebACLCommand = se_CreateWebACLCommand;
|
|
131
95
|
const se_CreateWebACLMigrationStackCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateWebACLMigrationStack",
|
|
135
|
-
};
|
|
96
|
+
const headers = sharedHeaders("CreateWebACLMigrationStack");
|
|
136
97
|
let body;
|
|
137
98
|
body = JSON.stringify(se_CreateWebACLMigrationStackRequest(input, context));
|
|
138
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
100
|
};
|
|
140
101
|
exports.se_CreateWebACLMigrationStackCommand = se_CreateWebACLMigrationStackCommand;
|
|
141
102
|
const se_CreateXssMatchSetCommand = async (input, context) => {
|
|
142
|
-
const headers =
|
|
143
|
-
"content-type": "application/x-amz-json-1.1",
|
|
144
|
-
"x-amz-target": "AWSWAF_Regional_20161128.CreateXssMatchSet",
|
|
145
|
-
};
|
|
103
|
+
const headers = sharedHeaders("CreateXssMatchSet");
|
|
146
104
|
let body;
|
|
147
105
|
body = JSON.stringify(se_CreateXssMatchSetRequest(input, context));
|
|
148
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
107
|
};
|
|
150
108
|
exports.se_CreateXssMatchSetCommand = se_CreateXssMatchSetCommand;
|
|
151
109
|
const se_DeleteByteMatchSetCommand = async (input, context) => {
|
|
152
|
-
const headers =
|
|
153
|
-
"content-type": "application/x-amz-json-1.1",
|
|
154
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteByteMatchSet",
|
|
155
|
-
};
|
|
110
|
+
const headers = sharedHeaders("DeleteByteMatchSet");
|
|
156
111
|
let body;
|
|
157
112
|
body = JSON.stringify(se_DeleteByteMatchSetRequest(input, context));
|
|
158
113
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
159
114
|
};
|
|
160
115
|
exports.se_DeleteByteMatchSetCommand = se_DeleteByteMatchSetCommand;
|
|
161
116
|
const se_DeleteGeoMatchSetCommand = async (input, context) => {
|
|
162
|
-
const headers =
|
|
163
|
-
"content-type": "application/x-amz-json-1.1",
|
|
164
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteGeoMatchSet",
|
|
165
|
-
};
|
|
117
|
+
const headers = sharedHeaders("DeleteGeoMatchSet");
|
|
166
118
|
let body;
|
|
167
119
|
body = JSON.stringify(se_DeleteGeoMatchSetRequest(input, context));
|
|
168
120
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
121
|
};
|
|
170
122
|
exports.se_DeleteGeoMatchSetCommand = se_DeleteGeoMatchSetCommand;
|
|
171
123
|
const se_DeleteIPSetCommand = async (input, context) => {
|
|
172
|
-
const headers =
|
|
173
|
-
"content-type": "application/x-amz-json-1.1",
|
|
174
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteIPSet",
|
|
175
|
-
};
|
|
124
|
+
const headers = sharedHeaders("DeleteIPSet");
|
|
176
125
|
let body;
|
|
177
126
|
body = JSON.stringify(se_DeleteIPSetRequest(input, context));
|
|
178
127
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
128
|
};
|
|
180
129
|
exports.se_DeleteIPSetCommand = se_DeleteIPSetCommand;
|
|
181
130
|
const se_DeleteLoggingConfigurationCommand = async (input, context) => {
|
|
182
|
-
const headers =
|
|
183
|
-
"content-type": "application/x-amz-json-1.1",
|
|
184
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteLoggingConfiguration",
|
|
185
|
-
};
|
|
131
|
+
const headers = sharedHeaders("DeleteLoggingConfiguration");
|
|
186
132
|
let body;
|
|
187
133
|
body = JSON.stringify(se_DeleteLoggingConfigurationRequest(input, context));
|
|
188
134
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
135
|
};
|
|
190
136
|
exports.se_DeleteLoggingConfigurationCommand = se_DeleteLoggingConfigurationCommand;
|
|
191
137
|
const se_DeletePermissionPolicyCommand = async (input, context) => {
|
|
192
|
-
const headers =
|
|
193
|
-
"content-type": "application/x-amz-json-1.1",
|
|
194
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeletePermissionPolicy",
|
|
195
|
-
};
|
|
138
|
+
const headers = sharedHeaders("DeletePermissionPolicy");
|
|
196
139
|
let body;
|
|
197
140
|
body = JSON.stringify(se_DeletePermissionPolicyRequest(input, context));
|
|
198
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
199
142
|
};
|
|
200
143
|
exports.se_DeletePermissionPolicyCommand = se_DeletePermissionPolicyCommand;
|
|
201
144
|
const se_DeleteRateBasedRuleCommand = async (input, context) => {
|
|
202
|
-
const headers =
|
|
203
|
-
"content-type": "application/x-amz-json-1.1",
|
|
204
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteRateBasedRule",
|
|
205
|
-
};
|
|
145
|
+
const headers = sharedHeaders("DeleteRateBasedRule");
|
|
206
146
|
let body;
|
|
207
147
|
body = JSON.stringify(se_DeleteRateBasedRuleRequest(input, context));
|
|
208
148
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
149
|
};
|
|
210
150
|
exports.se_DeleteRateBasedRuleCommand = se_DeleteRateBasedRuleCommand;
|
|
211
151
|
const se_DeleteRegexMatchSetCommand = async (input, context) => {
|
|
212
|
-
const headers =
|
|
213
|
-
"content-type": "application/x-amz-json-1.1",
|
|
214
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteRegexMatchSet",
|
|
215
|
-
};
|
|
152
|
+
const headers = sharedHeaders("DeleteRegexMatchSet");
|
|
216
153
|
let body;
|
|
217
154
|
body = JSON.stringify(se_DeleteRegexMatchSetRequest(input, context));
|
|
218
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
156
|
};
|
|
220
157
|
exports.se_DeleteRegexMatchSetCommand = se_DeleteRegexMatchSetCommand;
|
|
221
158
|
const se_DeleteRegexPatternSetCommand = async (input, context) => {
|
|
222
|
-
const headers =
|
|
223
|
-
"content-type": "application/x-amz-json-1.1",
|
|
224
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteRegexPatternSet",
|
|
225
|
-
};
|
|
159
|
+
const headers = sharedHeaders("DeleteRegexPatternSet");
|
|
226
160
|
let body;
|
|
227
161
|
body = JSON.stringify(se_DeleteRegexPatternSetRequest(input, context));
|
|
228
162
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
163
|
};
|
|
230
164
|
exports.se_DeleteRegexPatternSetCommand = se_DeleteRegexPatternSetCommand;
|
|
231
165
|
const se_DeleteRuleCommand = async (input, context) => {
|
|
232
|
-
const headers =
|
|
233
|
-
"content-type": "application/x-amz-json-1.1",
|
|
234
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteRule",
|
|
235
|
-
};
|
|
166
|
+
const headers = sharedHeaders("DeleteRule");
|
|
236
167
|
let body;
|
|
237
168
|
body = JSON.stringify(se_DeleteRuleRequest(input, context));
|
|
238
169
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
170
|
};
|
|
240
171
|
exports.se_DeleteRuleCommand = se_DeleteRuleCommand;
|
|
241
172
|
const se_DeleteRuleGroupCommand = async (input, context) => {
|
|
242
|
-
const headers =
|
|
243
|
-
"content-type": "application/x-amz-json-1.1",
|
|
244
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteRuleGroup",
|
|
245
|
-
};
|
|
173
|
+
const headers = sharedHeaders("DeleteRuleGroup");
|
|
246
174
|
let body;
|
|
247
175
|
body = JSON.stringify(se_DeleteRuleGroupRequest(input, context));
|
|
248
176
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
249
177
|
};
|
|
250
178
|
exports.se_DeleteRuleGroupCommand = se_DeleteRuleGroupCommand;
|
|
251
179
|
const se_DeleteSizeConstraintSetCommand = async (input, context) => {
|
|
252
|
-
const headers =
|
|
253
|
-
"content-type": "application/x-amz-json-1.1",
|
|
254
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteSizeConstraintSet",
|
|
255
|
-
};
|
|
180
|
+
const headers = sharedHeaders("DeleteSizeConstraintSet");
|
|
256
181
|
let body;
|
|
257
182
|
body = JSON.stringify(se_DeleteSizeConstraintSetRequest(input, context));
|
|
258
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
184
|
};
|
|
260
185
|
exports.se_DeleteSizeConstraintSetCommand = se_DeleteSizeConstraintSetCommand;
|
|
261
186
|
const se_DeleteSqlInjectionMatchSetCommand = async (input, context) => {
|
|
262
|
-
const headers =
|
|
263
|
-
"content-type": "application/x-amz-json-1.1",
|
|
264
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteSqlInjectionMatchSet",
|
|
265
|
-
};
|
|
187
|
+
const headers = sharedHeaders("DeleteSqlInjectionMatchSet");
|
|
266
188
|
let body;
|
|
267
189
|
body = JSON.stringify(se_DeleteSqlInjectionMatchSetRequest(input, context));
|
|
268
190
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
191
|
};
|
|
270
192
|
exports.se_DeleteSqlInjectionMatchSetCommand = se_DeleteSqlInjectionMatchSetCommand;
|
|
271
193
|
const se_DeleteWebACLCommand = async (input, context) => {
|
|
272
|
-
const headers =
|
|
273
|
-
"content-type": "application/x-amz-json-1.1",
|
|
274
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteWebACL",
|
|
275
|
-
};
|
|
194
|
+
const headers = sharedHeaders("DeleteWebACL");
|
|
276
195
|
let body;
|
|
277
196
|
body = JSON.stringify(se_DeleteWebACLRequest(input, context));
|
|
278
197
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
279
198
|
};
|
|
280
199
|
exports.se_DeleteWebACLCommand = se_DeleteWebACLCommand;
|
|
281
200
|
const se_DeleteXssMatchSetCommand = async (input, context) => {
|
|
282
|
-
const headers =
|
|
283
|
-
"content-type": "application/x-amz-json-1.1",
|
|
284
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DeleteXssMatchSet",
|
|
285
|
-
};
|
|
201
|
+
const headers = sharedHeaders("DeleteXssMatchSet");
|
|
286
202
|
let body;
|
|
287
203
|
body = JSON.stringify(se_DeleteXssMatchSetRequest(input, context));
|
|
288
204
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
205
|
};
|
|
290
206
|
exports.se_DeleteXssMatchSetCommand = se_DeleteXssMatchSetCommand;
|
|
291
207
|
const se_DisassociateWebACLCommand = async (input, context) => {
|
|
292
|
-
const headers =
|
|
293
|
-
"content-type": "application/x-amz-json-1.1",
|
|
294
|
-
"x-amz-target": "AWSWAF_Regional_20161128.DisassociateWebACL",
|
|
295
|
-
};
|
|
208
|
+
const headers = sharedHeaders("DisassociateWebACL");
|
|
296
209
|
let body;
|
|
297
210
|
body = JSON.stringify(se_DisassociateWebACLRequest(input, context));
|
|
298
211
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
212
|
};
|
|
300
213
|
exports.se_DisassociateWebACLCommand = se_DisassociateWebACLCommand;
|
|
301
214
|
const se_GetByteMatchSetCommand = async (input, context) => {
|
|
302
|
-
const headers =
|
|
303
|
-
"content-type": "application/x-amz-json-1.1",
|
|
304
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetByteMatchSet",
|
|
305
|
-
};
|
|
215
|
+
const headers = sharedHeaders("GetByteMatchSet");
|
|
306
216
|
let body;
|
|
307
217
|
body = JSON.stringify(se_GetByteMatchSetRequest(input, context));
|
|
308
218
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
309
219
|
};
|
|
310
220
|
exports.se_GetByteMatchSetCommand = se_GetByteMatchSetCommand;
|
|
311
221
|
const se_GetChangeTokenCommand = async (input, context) => {
|
|
312
|
-
const headers =
|
|
313
|
-
"content-type": "application/x-amz-json-1.1",
|
|
314
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetChangeToken",
|
|
315
|
-
};
|
|
222
|
+
const headers = sharedHeaders("GetChangeToken");
|
|
316
223
|
let body;
|
|
317
224
|
body = JSON.stringify(se_GetChangeTokenRequest(input, context));
|
|
318
225
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
226
|
};
|
|
320
227
|
exports.se_GetChangeTokenCommand = se_GetChangeTokenCommand;
|
|
321
228
|
const se_GetChangeTokenStatusCommand = async (input, context) => {
|
|
322
|
-
const headers =
|
|
323
|
-
"content-type": "application/x-amz-json-1.1",
|
|
324
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetChangeTokenStatus",
|
|
325
|
-
};
|
|
229
|
+
const headers = sharedHeaders("GetChangeTokenStatus");
|
|
326
230
|
let body;
|
|
327
231
|
body = JSON.stringify(se_GetChangeTokenStatusRequest(input, context));
|
|
328
232
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
233
|
};
|
|
330
234
|
exports.se_GetChangeTokenStatusCommand = se_GetChangeTokenStatusCommand;
|
|
331
235
|
const se_GetGeoMatchSetCommand = async (input, context) => {
|
|
332
|
-
const headers =
|
|
333
|
-
"content-type": "application/x-amz-json-1.1",
|
|
334
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetGeoMatchSet",
|
|
335
|
-
};
|
|
236
|
+
const headers = sharedHeaders("GetGeoMatchSet");
|
|
336
237
|
let body;
|
|
337
238
|
body = JSON.stringify(se_GetGeoMatchSetRequest(input, context));
|
|
338
239
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
339
240
|
};
|
|
340
241
|
exports.se_GetGeoMatchSetCommand = se_GetGeoMatchSetCommand;
|
|
341
242
|
const se_GetIPSetCommand = async (input, context) => {
|
|
342
|
-
const headers =
|
|
343
|
-
"content-type": "application/x-amz-json-1.1",
|
|
344
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetIPSet",
|
|
345
|
-
};
|
|
243
|
+
const headers = sharedHeaders("GetIPSet");
|
|
346
244
|
let body;
|
|
347
245
|
body = JSON.stringify(se_GetIPSetRequest(input, context));
|
|
348
246
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
349
247
|
};
|
|
350
248
|
exports.se_GetIPSetCommand = se_GetIPSetCommand;
|
|
351
249
|
const se_GetLoggingConfigurationCommand = async (input, context) => {
|
|
352
|
-
const headers =
|
|
353
|
-
"content-type": "application/x-amz-json-1.1",
|
|
354
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetLoggingConfiguration",
|
|
355
|
-
};
|
|
250
|
+
const headers = sharedHeaders("GetLoggingConfiguration");
|
|
356
251
|
let body;
|
|
357
252
|
body = JSON.stringify(se_GetLoggingConfigurationRequest(input, context));
|
|
358
253
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
254
|
};
|
|
360
255
|
exports.se_GetLoggingConfigurationCommand = se_GetLoggingConfigurationCommand;
|
|
361
256
|
const se_GetPermissionPolicyCommand = async (input, context) => {
|
|
362
|
-
const headers =
|
|
363
|
-
"content-type": "application/x-amz-json-1.1",
|
|
364
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetPermissionPolicy",
|
|
365
|
-
};
|
|
257
|
+
const headers = sharedHeaders("GetPermissionPolicy");
|
|
366
258
|
let body;
|
|
367
259
|
body = JSON.stringify(se_GetPermissionPolicyRequest(input, context));
|
|
368
260
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
369
261
|
};
|
|
370
262
|
exports.se_GetPermissionPolicyCommand = se_GetPermissionPolicyCommand;
|
|
371
263
|
const se_GetRateBasedRuleCommand = async (input, context) => {
|
|
372
|
-
const headers =
|
|
373
|
-
"content-type": "application/x-amz-json-1.1",
|
|
374
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetRateBasedRule",
|
|
375
|
-
};
|
|
264
|
+
const headers = sharedHeaders("GetRateBasedRule");
|
|
376
265
|
let body;
|
|
377
266
|
body = JSON.stringify(se_GetRateBasedRuleRequest(input, context));
|
|
378
267
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
379
268
|
};
|
|
380
269
|
exports.se_GetRateBasedRuleCommand = se_GetRateBasedRuleCommand;
|
|
381
270
|
const se_GetRateBasedRuleManagedKeysCommand = async (input, context) => {
|
|
382
|
-
const headers =
|
|
383
|
-
"content-type": "application/x-amz-json-1.1",
|
|
384
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetRateBasedRuleManagedKeys",
|
|
385
|
-
};
|
|
271
|
+
const headers = sharedHeaders("GetRateBasedRuleManagedKeys");
|
|
386
272
|
let body;
|
|
387
273
|
body = JSON.stringify(se_GetRateBasedRuleManagedKeysRequest(input, context));
|
|
388
274
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
389
275
|
};
|
|
390
276
|
exports.se_GetRateBasedRuleManagedKeysCommand = se_GetRateBasedRuleManagedKeysCommand;
|
|
391
277
|
const se_GetRegexMatchSetCommand = async (input, context) => {
|
|
392
|
-
const headers =
|
|
393
|
-
"content-type": "application/x-amz-json-1.1",
|
|
394
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetRegexMatchSet",
|
|
395
|
-
};
|
|
278
|
+
const headers = sharedHeaders("GetRegexMatchSet");
|
|
396
279
|
let body;
|
|
397
280
|
body = JSON.stringify(se_GetRegexMatchSetRequest(input, context));
|
|
398
281
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
399
282
|
};
|
|
400
283
|
exports.se_GetRegexMatchSetCommand = se_GetRegexMatchSetCommand;
|
|
401
284
|
const se_GetRegexPatternSetCommand = async (input, context) => {
|
|
402
|
-
const headers =
|
|
403
|
-
"content-type": "application/x-amz-json-1.1",
|
|
404
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetRegexPatternSet",
|
|
405
|
-
};
|
|
285
|
+
const headers = sharedHeaders("GetRegexPatternSet");
|
|
406
286
|
let body;
|
|
407
287
|
body = JSON.stringify(se_GetRegexPatternSetRequest(input, context));
|
|
408
288
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
409
289
|
};
|
|
410
290
|
exports.se_GetRegexPatternSetCommand = se_GetRegexPatternSetCommand;
|
|
411
291
|
const se_GetRuleCommand = async (input, context) => {
|
|
412
|
-
const headers =
|
|
413
|
-
"content-type": "application/x-amz-json-1.1",
|
|
414
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetRule",
|
|
415
|
-
};
|
|
292
|
+
const headers = sharedHeaders("GetRule");
|
|
416
293
|
let body;
|
|
417
294
|
body = JSON.stringify(se_GetRuleRequest(input, context));
|
|
418
295
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
419
296
|
};
|
|
420
297
|
exports.se_GetRuleCommand = se_GetRuleCommand;
|
|
421
298
|
const se_GetRuleGroupCommand = async (input, context) => {
|
|
422
|
-
const headers =
|
|
423
|
-
"content-type": "application/x-amz-json-1.1",
|
|
424
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetRuleGroup",
|
|
425
|
-
};
|
|
299
|
+
const headers = sharedHeaders("GetRuleGroup");
|
|
426
300
|
let body;
|
|
427
301
|
body = JSON.stringify(se_GetRuleGroupRequest(input, context));
|
|
428
302
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
303
|
};
|
|
430
304
|
exports.se_GetRuleGroupCommand = se_GetRuleGroupCommand;
|
|
431
305
|
const se_GetSampledRequestsCommand = async (input, context) => {
|
|
432
|
-
const headers =
|
|
433
|
-
"content-type": "application/x-amz-json-1.1",
|
|
434
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetSampledRequests",
|
|
435
|
-
};
|
|
306
|
+
const headers = sharedHeaders("GetSampledRequests");
|
|
436
307
|
let body;
|
|
437
308
|
body = JSON.stringify(se_GetSampledRequestsRequest(input, context));
|
|
438
309
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
439
310
|
};
|
|
440
311
|
exports.se_GetSampledRequestsCommand = se_GetSampledRequestsCommand;
|
|
441
312
|
const se_GetSizeConstraintSetCommand = async (input, context) => {
|
|
442
|
-
const headers =
|
|
443
|
-
"content-type": "application/x-amz-json-1.1",
|
|
444
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetSizeConstraintSet",
|
|
445
|
-
};
|
|
313
|
+
const headers = sharedHeaders("GetSizeConstraintSet");
|
|
446
314
|
let body;
|
|
447
315
|
body = JSON.stringify(se_GetSizeConstraintSetRequest(input, context));
|
|
448
316
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
449
317
|
};
|
|
450
318
|
exports.se_GetSizeConstraintSetCommand = se_GetSizeConstraintSetCommand;
|
|
451
319
|
const se_GetSqlInjectionMatchSetCommand = async (input, context) => {
|
|
452
|
-
const headers =
|
|
453
|
-
"content-type": "application/x-amz-json-1.1",
|
|
454
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetSqlInjectionMatchSet",
|
|
455
|
-
};
|
|
320
|
+
const headers = sharedHeaders("GetSqlInjectionMatchSet");
|
|
456
321
|
let body;
|
|
457
322
|
body = JSON.stringify(se_GetSqlInjectionMatchSetRequest(input, context));
|
|
458
323
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
459
324
|
};
|
|
460
325
|
exports.se_GetSqlInjectionMatchSetCommand = se_GetSqlInjectionMatchSetCommand;
|
|
461
326
|
const se_GetWebACLCommand = async (input, context) => {
|
|
462
|
-
const headers =
|
|
463
|
-
"content-type": "application/x-amz-json-1.1",
|
|
464
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetWebACL",
|
|
465
|
-
};
|
|
327
|
+
const headers = sharedHeaders("GetWebACL");
|
|
466
328
|
let body;
|
|
467
329
|
body = JSON.stringify(se_GetWebACLRequest(input, context));
|
|
468
330
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
469
331
|
};
|
|
470
332
|
exports.se_GetWebACLCommand = se_GetWebACLCommand;
|
|
471
333
|
const se_GetWebACLForResourceCommand = async (input, context) => {
|
|
472
|
-
const headers =
|
|
473
|
-
"content-type": "application/x-amz-json-1.1",
|
|
474
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetWebACLForResource",
|
|
475
|
-
};
|
|
334
|
+
const headers = sharedHeaders("GetWebACLForResource");
|
|
476
335
|
let body;
|
|
477
336
|
body = JSON.stringify(se_GetWebACLForResourceRequest(input, context));
|
|
478
337
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
479
338
|
};
|
|
480
339
|
exports.se_GetWebACLForResourceCommand = se_GetWebACLForResourceCommand;
|
|
481
340
|
const se_GetXssMatchSetCommand = async (input, context) => {
|
|
482
|
-
const headers =
|
|
483
|
-
"content-type": "application/x-amz-json-1.1",
|
|
484
|
-
"x-amz-target": "AWSWAF_Regional_20161128.GetXssMatchSet",
|
|
485
|
-
};
|
|
341
|
+
const headers = sharedHeaders("GetXssMatchSet");
|
|
486
342
|
let body;
|
|
487
343
|
body = JSON.stringify(se_GetXssMatchSetRequest(input, context));
|
|
488
344
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
489
345
|
};
|
|
490
346
|
exports.se_GetXssMatchSetCommand = se_GetXssMatchSetCommand;
|
|
491
347
|
const se_ListActivatedRulesInRuleGroupCommand = async (input, context) => {
|
|
492
|
-
const headers =
|
|
493
|
-
"content-type": "application/x-amz-json-1.1",
|
|
494
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListActivatedRulesInRuleGroup",
|
|
495
|
-
};
|
|
348
|
+
const headers = sharedHeaders("ListActivatedRulesInRuleGroup");
|
|
496
349
|
let body;
|
|
497
350
|
body = JSON.stringify(se_ListActivatedRulesInRuleGroupRequest(input, context));
|
|
498
351
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
499
352
|
};
|
|
500
353
|
exports.se_ListActivatedRulesInRuleGroupCommand = se_ListActivatedRulesInRuleGroupCommand;
|
|
501
354
|
const se_ListByteMatchSetsCommand = async (input, context) => {
|
|
502
|
-
const headers =
|
|
503
|
-
"content-type": "application/x-amz-json-1.1",
|
|
504
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListByteMatchSets",
|
|
505
|
-
};
|
|
355
|
+
const headers = sharedHeaders("ListByteMatchSets");
|
|
506
356
|
let body;
|
|
507
357
|
body = JSON.stringify(se_ListByteMatchSetsRequest(input, context));
|
|
508
358
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
509
359
|
};
|
|
510
360
|
exports.se_ListByteMatchSetsCommand = se_ListByteMatchSetsCommand;
|
|
511
361
|
const se_ListGeoMatchSetsCommand = async (input, context) => {
|
|
512
|
-
const headers =
|
|
513
|
-
"content-type": "application/x-amz-json-1.1",
|
|
514
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListGeoMatchSets",
|
|
515
|
-
};
|
|
362
|
+
const headers = sharedHeaders("ListGeoMatchSets");
|
|
516
363
|
let body;
|
|
517
364
|
body = JSON.stringify(se_ListGeoMatchSetsRequest(input, context));
|
|
518
365
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
519
366
|
};
|
|
520
367
|
exports.se_ListGeoMatchSetsCommand = se_ListGeoMatchSetsCommand;
|
|
521
368
|
const se_ListIPSetsCommand = async (input, context) => {
|
|
522
|
-
const headers =
|
|
523
|
-
"content-type": "application/x-amz-json-1.1",
|
|
524
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListIPSets",
|
|
525
|
-
};
|
|
369
|
+
const headers = sharedHeaders("ListIPSets");
|
|
526
370
|
let body;
|
|
527
371
|
body = JSON.stringify(se_ListIPSetsRequest(input, context));
|
|
528
372
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
529
373
|
};
|
|
530
374
|
exports.se_ListIPSetsCommand = se_ListIPSetsCommand;
|
|
531
375
|
const se_ListLoggingConfigurationsCommand = async (input, context) => {
|
|
532
|
-
const headers =
|
|
533
|
-
"content-type": "application/x-amz-json-1.1",
|
|
534
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListLoggingConfigurations",
|
|
535
|
-
};
|
|
376
|
+
const headers = sharedHeaders("ListLoggingConfigurations");
|
|
536
377
|
let body;
|
|
537
378
|
body = JSON.stringify(se_ListLoggingConfigurationsRequest(input, context));
|
|
538
379
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
539
380
|
};
|
|
540
381
|
exports.se_ListLoggingConfigurationsCommand = se_ListLoggingConfigurationsCommand;
|
|
541
382
|
const se_ListRateBasedRulesCommand = async (input, context) => {
|
|
542
|
-
const headers =
|
|
543
|
-
"content-type": "application/x-amz-json-1.1",
|
|
544
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListRateBasedRules",
|
|
545
|
-
};
|
|
383
|
+
const headers = sharedHeaders("ListRateBasedRules");
|
|
546
384
|
let body;
|
|
547
385
|
body = JSON.stringify(se_ListRateBasedRulesRequest(input, context));
|
|
548
386
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
549
387
|
};
|
|
550
388
|
exports.se_ListRateBasedRulesCommand = se_ListRateBasedRulesCommand;
|
|
551
389
|
const se_ListRegexMatchSetsCommand = async (input, context) => {
|
|
552
|
-
const headers =
|
|
553
|
-
"content-type": "application/x-amz-json-1.1",
|
|
554
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListRegexMatchSets",
|
|
555
|
-
};
|
|
390
|
+
const headers = sharedHeaders("ListRegexMatchSets");
|
|
556
391
|
let body;
|
|
557
392
|
body = JSON.stringify(se_ListRegexMatchSetsRequest(input, context));
|
|
558
393
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
559
394
|
};
|
|
560
395
|
exports.se_ListRegexMatchSetsCommand = se_ListRegexMatchSetsCommand;
|
|
561
396
|
const se_ListRegexPatternSetsCommand = async (input, context) => {
|
|
562
|
-
const headers =
|
|
563
|
-
"content-type": "application/x-amz-json-1.1",
|
|
564
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListRegexPatternSets",
|
|
565
|
-
};
|
|
397
|
+
const headers = sharedHeaders("ListRegexPatternSets");
|
|
566
398
|
let body;
|
|
567
399
|
body = JSON.stringify(se_ListRegexPatternSetsRequest(input, context));
|
|
568
400
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
569
401
|
};
|
|
570
402
|
exports.se_ListRegexPatternSetsCommand = se_ListRegexPatternSetsCommand;
|
|
571
403
|
const se_ListResourcesForWebACLCommand = async (input, context) => {
|
|
572
|
-
const headers =
|
|
573
|
-
"content-type": "application/x-amz-json-1.1",
|
|
574
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListResourcesForWebACL",
|
|
575
|
-
};
|
|
404
|
+
const headers = sharedHeaders("ListResourcesForWebACL");
|
|
576
405
|
let body;
|
|
577
406
|
body = JSON.stringify(se_ListResourcesForWebACLRequest(input, context));
|
|
578
407
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
579
408
|
};
|
|
580
409
|
exports.se_ListResourcesForWebACLCommand = se_ListResourcesForWebACLCommand;
|
|
581
410
|
const se_ListRuleGroupsCommand = async (input, context) => {
|
|
582
|
-
const headers =
|
|
583
|
-
"content-type": "application/x-amz-json-1.1",
|
|
584
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListRuleGroups",
|
|
585
|
-
};
|
|
411
|
+
const headers = sharedHeaders("ListRuleGroups");
|
|
586
412
|
let body;
|
|
587
413
|
body = JSON.stringify(se_ListRuleGroupsRequest(input, context));
|
|
588
414
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
589
415
|
};
|
|
590
416
|
exports.se_ListRuleGroupsCommand = se_ListRuleGroupsCommand;
|
|
591
417
|
const se_ListRulesCommand = async (input, context) => {
|
|
592
|
-
const headers =
|
|
593
|
-
"content-type": "application/x-amz-json-1.1",
|
|
594
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListRules",
|
|
595
|
-
};
|
|
418
|
+
const headers = sharedHeaders("ListRules");
|
|
596
419
|
let body;
|
|
597
420
|
body = JSON.stringify(se_ListRulesRequest(input, context));
|
|
598
421
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
599
422
|
};
|
|
600
423
|
exports.se_ListRulesCommand = se_ListRulesCommand;
|
|
601
424
|
const se_ListSizeConstraintSetsCommand = async (input, context) => {
|
|
602
|
-
const headers =
|
|
603
|
-
"content-type": "application/x-amz-json-1.1",
|
|
604
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListSizeConstraintSets",
|
|
605
|
-
};
|
|
425
|
+
const headers = sharedHeaders("ListSizeConstraintSets");
|
|
606
426
|
let body;
|
|
607
427
|
body = JSON.stringify(se_ListSizeConstraintSetsRequest(input, context));
|
|
608
428
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
609
429
|
};
|
|
610
430
|
exports.se_ListSizeConstraintSetsCommand = se_ListSizeConstraintSetsCommand;
|
|
611
431
|
const se_ListSqlInjectionMatchSetsCommand = async (input, context) => {
|
|
612
|
-
const headers =
|
|
613
|
-
"content-type": "application/x-amz-json-1.1",
|
|
614
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListSqlInjectionMatchSets",
|
|
615
|
-
};
|
|
432
|
+
const headers = sharedHeaders("ListSqlInjectionMatchSets");
|
|
616
433
|
let body;
|
|
617
434
|
body = JSON.stringify(se_ListSqlInjectionMatchSetsRequest(input, context));
|
|
618
435
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
619
436
|
};
|
|
620
437
|
exports.se_ListSqlInjectionMatchSetsCommand = se_ListSqlInjectionMatchSetsCommand;
|
|
621
438
|
const se_ListSubscribedRuleGroupsCommand = async (input, context) => {
|
|
622
|
-
const headers =
|
|
623
|
-
"content-type": "application/x-amz-json-1.1",
|
|
624
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListSubscribedRuleGroups",
|
|
625
|
-
};
|
|
439
|
+
const headers = sharedHeaders("ListSubscribedRuleGroups");
|
|
626
440
|
let body;
|
|
627
441
|
body = JSON.stringify(se_ListSubscribedRuleGroupsRequest(input, context));
|
|
628
442
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
629
443
|
};
|
|
630
444
|
exports.se_ListSubscribedRuleGroupsCommand = se_ListSubscribedRuleGroupsCommand;
|
|
631
445
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
632
|
-
const headers =
|
|
633
|
-
"content-type": "application/x-amz-json-1.1",
|
|
634
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListTagsForResource",
|
|
635
|
-
};
|
|
446
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
636
447
|
let body;
|
|
637
448
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
638
449
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
639
450
|
};
|
|
640
451
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
641
452
|
const se_ListWebACLsCommand = async (input, context) => {
|
|
642
|
-
const headers =
|
|
643
|
-
"content-type": "application/x-amz-json-1.1",
|
|
644
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListWebACLs",
|
|
645
|
-
};
|
|
453
|
+
const headers = sharedHeaders("ListWebACLs");
|
|
646
454
|
let body;
|
|
647
455
|
body = JSON.stringify(se_ListWebACLsRequest(input, context));
|
|
648
456
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
649
457
|
};
|
|
650
458
|
exports.se_ListWebACLsCommand = se_ListWebACLsCommand;
|
|
651
459
|
const se_ListXssMatchSetsCommand = async (input, context) => {
|
|
652
|
-
const headers =
|
|
653
|
-
"content-type": "application/x-amz-json-1.1",
|
|
654
|
-
"x-amz-target": "AWSWAF_Regional_20161128.ListXssMatchSets",
|
|
655
|
-
};
|
|
460
|
+
const headers = sharedHeaders("ListXssMatchSets");
|
|
656
461
|
let body;
|
|
657
462
|
body = JSON.stringify(se_ListXssMatchSetsRequest(input, context));
|
|
658
463
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
659
464
|
};
|
|
660
465
|
exports.se_ListXssMatchSetsCommand = se_ListXssMatchSetsCommand;
|
|
661
466
|
const se_PutLoggingConfigurationCommand = async (input, context) => {
|
|
662
|
-
const headers =
|
|
663
|
-
"content-type": "application/x-amz-json-1.1",
|
|
664
|
-
"x-amz-target": "AWSWAF_Regional_20161128.PutLoggingConfiguration",
|
|
665
|
-
};
|
|
467
|
+
const headers = sharedHeaders("PutLoggingConfiguration");
|
|
666
468
|
let body;
|
|
667
469
|
body = JSON.stringify(se_PutLoggingConfigurationRequest(input, context));
|
|
668
470
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
669
471
|
};
|
|
670
472
|
exports.se_PutLoggingConfigurationCommand = se_PutLoggingConfigurationCommand;
|
|
671
473
|
const se_PutPermissionPolicyCommand = async (input, context) => {
|
|
672
|
-
const headers =
|
|
673
|
-
"content-type": "application/x-amz-json-1.1",
|
|
674
|
-
"x-amz-target": "AWSWAF_Regional_20161128.PutPermissionPolicy",
|
|
675
|
-
};
|
|
474
|
+
const headers = sharedHeaders("PutPermissionPolicy");
|
|
676
475
|
let body;
|
|
677
476
|
body = JSON.stringify(se_PutPermissionPolicyRequest(input, context));
|
|
678
477
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
679
478
|
};
|
|
680
479
|
exports.se_PutPermissionPolicyCommand = se_PutPermissionPolicyCommand;
|
|
681
480
|
const se_TagResourceCommand = async (input, context) => {
|
|
682
|
-
const headers =
|
|
683
|
-
"content-type": "application/x-amz-json-1.1",
|
|
684
|
-
"x-amz-target": "AWSWAF_Regional_20161128.TagResource",
|
|
685
|
-
};
|
|
481
|
+
const headers = sharedHeaders("TagResource");
|
|
686
482
|
let body;
|
|
687
483
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
688
484
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
689
485
|
};
|
|
690
486
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
691
487
|
const se_UntagResourceCommand = async (input, context) => {
|
|
692
|
-
const headers =
|
|
693
|
-
"content-type": "application/x-amz-json-1.1",
|
|
694
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UntagResource",
|
|
695
|
-
};
|
|
488
|
+
const headers = sharedHeaders("UntagResource");
|
|
696
489
|
let body;
|
|
697
490
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
698
491
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
699
492
|
};
|
|
700
493
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
701
494
|
const se_UpdateByteMatchSetCommand = async (input, context) => {
|
|
702
|
-
const headers =
|
|
703
|
-
"content-type": "application/x-amz-json-1.1",
|
|
704
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UpdateByteMatchSet",
|
|
705
|
-
};
|
|
495
|
+
const headers = sharedHeaders("UpdateByteMatchSet");
|
|
706
496
|
let body;
|
|
707
497
|
body = JSON.stringify(se_UpdateByteMatchSetRequest(input, context));
|
|
708
498
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
709
499
|
};
|
|
710
500
|
exports.se_UpdateByteMatchSetCommand = se_UpdateByteMatchSetCommand;
|
|
711
501
|
const se_UpdateGeoMatchSetCommand = async (input, context) => {
|
|
712
|
-
const headers =
|
|
713
|
-
"content-type": "application/x-amz-json-1.1",
|
|
714
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UpdateGeoMatchSet",
|
|
715
|
-
};
|
|
502
|
+
const headers = sharedHeaders("UpdateGeoMatchSet");
|
|
716
503
|
let body;
|
|
717
504
|
body = JSON.stringify(se_UpdateGeoMatchSetRequest(input, context));
|
|
718
505
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
719
506
|
};
|
|
720
507
|
exports.se_UpdateGeoMatchSetCommand = se_UpdateGeoMatchSetCommand;
|
|
721
508
|
const se_UpdateIPSetCommand = async (input, context) => {
|
|
722
|
-
const headers =
|
|
723
|
-
"content-type": "application/x-amz-json-1.1",
|
|
724
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UpdateIPSet",
|
|
725
|
-
};
|
|
509
|
+
const headers = sharedHeaders("UpdateIPSet");
|
|
726
510
|
let body;
|
|
727
511
|
body = JSON.stringify(se_UpdateIPSetRequest(input, context));
|
|
728
512
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
729
513
|
};
|
|
730
514
|
exports.se_UpdateIPSetCommand = se_UpdateIPSetCommand;
|
|
731
515
|
const se_UpdateRateBasedRuleCommand = async (input, context) => {
|
|
732
|
-
const headers =
|
|
733
|
-
"content-type": "application/x-amz-json-1.1",
|
|
734
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UpdateRateBasedRule",
|
|
735
|
-
};
|
|
516
|
+
const headers = sharedHeaders("UpdateRateBasedRule");
|
|
736
517
|
let body;
|
|
737
518
|
body = JSON.stringify(se_UpdateRateBasedRuleRequest(input, context));
|
|
738
519
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
739
520
|
};
|
|
740
521
|
exports.se_UpdateRateBasedRuleCommand = se_UpdateRateBasedRuleCommand;
|
|
741
522
|
const se_UpdateRegexMatchSetCommand = async (input, context) => {
|
|
742
|
-
const headers =
|
|
743
|
-
"content-type": "application/x-amz-json-1.1",
|
|
744
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UpdateRegexMatchSet",
|
|
745
|
-
};
|
|
523
|
+
const headers = sharedHeaders("UpdateRegexMatchSet");
|
|
746
524
|
let body;
|
|
747
525
|
body = JSON.stringify(se_UpdateRegexMatchSetRequest(input, context));
|
|
748
526
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
749
527
|
};
|
|
750
528
|
exports.se_UpdateRegexMatchSetCommand = se_UpdateRegexMatchSetCommand;
|
|
751
529
|
const se_UpdateRegexPatternSetCommand = async (input, context) => {
|
|
752
|
-
const headers =
|
|
753
|
-
"content-type": "application/x-amz-json-1.1",
|
|
754
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UpdateRegexPatternSet",
|
|
755
|
-
};
|
|
530
|
+
const headers = sharedHeaders("UpdateRegexPatternSet");
|
|
756
531
|
let body;
|
|
757
532
|
body = JSON.stringify(se_UpdateRegexPatternSetRequest(input, context));
|
|
758
533
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
759
534
|
};
|
|
760
535
|
exports.se_UpdateRegexPatternSetCommand = se_UpdateRegexPatternSetCommand;
|
|
761
536
|
const se_UpdateRuleCommand = async (input, context) => {
|
|
762
|
-
const headers =
|
|
763
|
-
"content-type": "application/x-amz-json-1.1",
|
|
764
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UpdateRule",
|
|
765
|
-
};
|
|
537
|
+
const headers = sharedHeaders("UpdateRule");
|
|
766
538
|
let body;
|
|
767
539
|
body = JSON.stringify(se_UpdateRuleRequest(input, context));
|
|
768
540
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
769
541
|
};
|
|
770
542
|
exports.se_UpdateRuleCommand = se_UpdateRuleCommand;
|
|
771
543
|
const se_UpdateRuleGroupCommand = async (input, context) => {
|
|
772
|
-
const headers =
|
|
773
|
-
"content-type": "application/x-amz-json-1.1",
|
|
774
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UpdateRuleGroup",
|
|
775
|
-
};
|
|
544
|
+
const headers = sharedHeaders("UpdateRuleGroup");
|
|
776
545
|
let body;
|
|
777
546
|
body = JSON.stringify(se_UpdateRuleGroupRequest(input, context));
|
|
778
547
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
779
548
|
};
|
|
780
549
|
exports.se_UpdateRuleGroupCommand = se_UpdateRuleGroupCommand;
|
|
781
550
|
const se_UpdateSizeConstraintSetCommand = async (input, context) => {
|
|
782
|
-
const headers =
|
|
783
|
-
"content-type": "application/x-amz-json-1.1",
|
|
784
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UpdateSizeConstraintSet",
|
|
785
|
-
};
|
|
551
|
+
const headers = sharedHeaders("UpdateSizeConstraintSet");
|
|
786
552
|
let body;
|
|
787
553
|
body = JSON.stringify(se_UpdateSizeConstraintSetRequest(input, context));
|
|
788
554
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
789
555
|
};
|
|
790
556
|
exports.se_UpdateSizeConstraintSetCommand = se_UpdateSizeConstraintSetCommand;
|
|
791
557
|
const se_UpdateSqlInjectionMatchSetCommand = async (input, context) => {
|
|
792
|
-
const headers =
|
|
793
|
-
"content-type": "application/x-amz-json-1.1",
|
|
794
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UpdateSqlInjectionMatchSet",
|
|
795
|
-
};
|
|
558
|
+
const headers = sharedHeaders("UpdateSqlInjectionMatchSet");
|
|
796
559
|
let body;
|
|
797
560
|
body = JSON.stringify(se_UpdateSqlInjectionMatchSetRequest(input, context));
|
|
798
561
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
799
562
|
};
|
|
800
563
|
exports.se_UpdateSqlInjectionMatchSetCommand = se_UpdateSqlInjectionMatchSetCommand;
|
|
801
564
|
const se_UpdateWebACLCommand = async (input, context) => {
|
|
802
|
-
const headers =
|
|
803
|
-
"content-type": "application/x-amz-json-1.1",
|
|
804
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UpdateWebACL",
|
|
805
|
-
};
|
|
565
|
+
const headers = sharedHeaders("UpdateWebACL");
|
|
806
566
|
let body;
|
|
807
567
|
body = JSON.stringify(se_UpdateWebACLRequest(input, context));
|
|
808
568
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
809
569
|
};
|
|
810
570
|
exports.se_UpdateWebACLCommand = se_UpdateWebACLCommand;
|
|
811
571
|
const se_UpdateXssMatchSetCommand = async (input, context) => {
|
|
812
|
-
const headers =
|
|
813
|
-
"content-type": "application/x-amz-json-1.1",
|
|
814
|
-
"x-amz-target": "AWSWAF_Regional_20161128.UpdateXssMatchSet",
|
|
815
|
-
};
|
|
572
|
+
const headers = sharedHeaders("UpdateXssMatchSet");
|
|
816
573
|
let body;
|
|
817
574
|
body = JSON.stringify(se_UpdateXssMatchSetRequest(input, context));
|
|
818
575
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -6674,6 +6431,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
6674
6431
|
}
|
|
6675
6432
|
return new protocol_http_1.HttpRequest(contents);
|
|
6676
6433
|
};
|
|
6434
|
+
function sharedHeaders(operation) {
|
|
6435
|
+
return {
|
|
6436
|
+
"content-type": "application/x-amz-json-1.1",
|
|
6437
|
+
"x-amz-target": `AWSWAF_Regional_20161128.${operation}`,
|
|
6438
|
+
};
|
|
6439
|
+
}
|
|
6677
6440
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
6678
6441
|
if (encoded.length) {
|
|
6679
6442
|
return JSON.parse(encoded);
|