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