@aws-sdk/client-wafv2 3.311.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 +54 -192
- package/dist-es/protocols/Aws_json1_1.js +54 -192
- package/package.json +2 -2
|
@@ -7,480 +7,336 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const WAFV2ServiceException_1 = require("../models/WAFV2ServiceException");
|
|
9
9
|
const se_AssociateWebACLCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.1",
|
|
12
|
-
"x-amz-target": "AWSWAF_20190729.AssociateWebACL",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("AssociateWebACL");
|
|
14
11
|
let body;
|
|
15
12
|
body = JSON.stringify(se_AssociateWebACLRequest(input, context));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_AssociateWebACLCommand = se_AssociateWebACLCommand;
|
|
19
16
|
const se_CheckCapacityCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.1",
|
|
22
|
-
"x-amz-target": "AWSWAF_20190729.CheckCapacity",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("CheckCapacity");
|
|
24
18
|
let body;
|
|
25
19
|
body = JSON.stringify(se_CheckCapacityRequest(input, context));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_CheckCapacityCommand = se_CheckCapacityCommand;
|
|
29
23
|
const se_CreateIPSetCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.1",
|
|
32
|
-
"x-amz-target": "AWSWAF_20190729.CreateIPSet",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateIPSet");
|
|
34
25
|
let body;
|
|
35
26
|
body = JSON.stringify(se_CreateIPSetRequest(input, context));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_CreateIPSetCommand = se_CreateIPSetCommand;
|
|
39
30
|
const se_CreateRegexPatternSetCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.1",
|
|
42
|
-
"x-amz-target": "AWSWAF_20190729.CreateRegexPatternSet",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("CreateRegexPatternSet");
|
|
44
32
|
let body;
|
|
45
33
|
body = JSON.stringify(se_CreateRegexPatternSetRequest(input, context));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_CreateRegexPatternSetCommand = se_CreateRegexPatternSetCommand;
|
|
49
37
|
const se_CreateRuleGroupCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.1",
|
|
52
|
-
"x-amz-target": "AWSWAF_20190729.CreateRuleGroup",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("CreateRuleGroup");
|
|
54
39
|
let body;
|
|
55
40
|
body = JSON.stringify(se_CreateRuleGroupRequest(input, context));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_CreateRuleGroupCommand = se_CreateRuleGroupCommand;
|
|
59
44
|
const se_CreateWebACLCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AWSWAF_20190729.CreateWebACL",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("CreateWebACL");
|
|
64
46
|
let body;
|
|
65
47
|
body = JSON.stringify(se_CreateWebACLRequest(input, context));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_CreateWebACLCommand = se_CreateWebACLCommand;
|
|
69
51
|
const se_DeleteFirewallManagerRuleGroupsCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "AWSWAF_20190729.DeleteFirewallManagerRuleGroups",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("DeleteFirewallManagerRuleGroups");
|
|
74
53
|
let body;
|
|
75
54
|
body = JSON.stringify(se_DeleteFirewallManagerRuleGroupsRequest(input, context));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_DeleteFirewallManagerRuleGroupsCommand = se_DeleteFirewallManagerRuleGroupsCommand;
|
|
79
58
|
const se_DeleteIPSetCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "AWSWAF_20190729.DeleteIPSet",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("DeleteIPSet");
|
|
84
60
|
let body;
|
|
85
61
|
body = JSON.stringify(se_DeleteIPSetRequest(input, context));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_DeleteIPSetCommand = se_DeleteIPSetCommand;
|
|
89
65
|
const se_DeleteLoggingConfigurationCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.1",
|
|
92
|
-
"x-amz-target": "AWSWAF_20190729.DeleteLoggingConfiguration",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DeleteLoggingConfiguration");
|
|
94
67
|
let body;
|
|
95
68
|
body = JSON.stringify(se_DeleteLoggingConfigurationRequest(input, context));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_DeleteLoggingConfigurationCommand = se_DeleteLoggingConfigurationCommand;
|
|
99
72
|
const se_DeletePermissionPolicyCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.1",
|
|
102
|
-
"x-amz-target": "AWSWAF_20190729.DeletePermissionPolicy",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("DeletePermissionPolicy");
|
|
104
74
|
let body;
|
|
105
75
|
body = JSON.stringify(se_DeletePermissionPolicyRequest(input, context));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_DeletePermissionPolicyCommand = se_DeletePermissionPolicyCommand;
|
|
109
79
|
const se_DeleteRegexPatternSetCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.1",
|
|
112
|
-
"x-amz-target": "AWSWAF_20190729.DeleteRegexPatternSet",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("DeleteRegexPatternSet");
|
|
114
81
|
let body;
|
|
115
82
|
body = JSON.stringify(se_DeleteRegexPatternSetRequest(input, context));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_DeleteRegexPatternSetCommand = se_DeleteRegexPatternSetCommand;
|
|
119
86
|
const se_DeleteRuleGroupCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.1",
|
|
122
|
-
"x-amz-target": "AWSWAF_20190729.DeleteRuleGroup",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("DeleteRuleGroup");
|
|
124
88
|
let body;
|
|
125
89
|
body = JSON.stringify(se_DeleteRuleGroupRequest(input, context));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_DeleteRuleGroupCommand = se_DeleteRuleGroupCommand;
|
|
129
93
|
const se_DeleteWebACLCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "AWSWAF_20190729.DeleteWebACL",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("DeleteWebACL");
|
|
134
95
|
let body;
|
|
135
96
|
body = JSON.stringify(se_DeleteWebACLRequest(input, context));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_DeleteWebACLCommand = se_DeleteWebACLCommand;
|
|
139
100
|
const se_DescribeManagedRuleGroupCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "AWSWAF_20190729.DescribeManagedRuleGroup",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("DescribeManagedRuleGroup");
|
|
144
102
|
let body;
|
|
145
103
|
body = JSON.stringify(se_DescribeManagedRuleGroupRequest(input, context));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_DescribeManagedRuleGroupCommand = se_DescribeManagedRuleGroupCommand;
|
|
149
107
|
const se_DisassociateWebACLCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "AWSWAF_20190729.DisassociateWebACL",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("DisassociateWebACL");
|
|
154
109
|
let body;
|
|
155
110
|
body = JSON.stringify(se_DisassociateWebACLRequest(input, context));
|
|
156
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
112
|
};
|
|
158
113
|
exports.se_DisassociateWebACLCommand = se_DisassociateWebACLCommand;
|
|
159
114
|
const se_GenerateMobileSdkReleaseUrlCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.1",
|
|
162
|
-
"x-amz-target": "AWSWAF_20190729.GenerateMobileSdkReleaseUrl",
|
|
163
|
-
};
|
|
115
|
+
const headers = sharedHeaders("GenerateMobileSdkReleaseUrl");
|
|
164
116
|
let body;
|
|
165
117
|
body = JSON.stringify(se_GenerateMobileSdkReleaseUrlRequest(input, context));
|
|
166
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
119
|
};
|
|
168
120
|
exports.se_GenerateMobileSdkReleaseUrlCommand = se_GenerateMobileSdkReleaseUrlCommand;
|
|
169
121
|
const se_GetIPSetCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.1",
|
|
172
|
-
"x-amz-target": "AWSWAF_20190729.GetIPSet",
|
|
173
|
-
};
|
|
122
|
+
const headers = sharedHeaders("GetIPSet");
|
|
174
123
|
let body;
|
|
175
124
|
body = JSON.stringify(se_GetIPSetRequest(input, context));
|
|
176
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
126
|
};
|
|
178
127
|
exports.se_GetIPSetCommand = se_GetIPSetCommand;
|
|
179
128
|
const se_GetLoggingConfigurationCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-amz-json-1.1",
|
|
182
|
-
"x-amz-target": "AWSWAF_20190729.GetLoggingConfiguration",
|
|
183
|
-
};
|
|
129
|
+
const headers = sharedHeaders("GetLoggingConfiguration");
|
|
184
130
|
let body;
|
|
185
131
|
body = JSON.stringify(se_GetLoggingConfigurationRequest(input, context));
|
|
186
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
133
|
};
|
|
188
134
|
exports.se_GetLoggingConfigurationCommand = se_GetLoggingConfigurationCommand;
|
|
189
135
|
const se_GetManagedRuleSetCommand = async (input, context) => {
|
|
190
|
-
const headers =
|
|
191
|
-
"content-type": "application/x-amz-json-1.1",
|
|
192
|
-
"x-amz-target": "AWSWAF_20190729.GetManagedRuleSet",
|
|
193
|
-
};
|
|
136
|
+
const headers = sharedHeaders("GetManagedRuleSet");
|
|
194
137
|
let body;
|
|
195
138
|
body = JSON.stringify(se_GetManagedRuleSetRequest(input, context));
|
|
196
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
140
|
};
|
|
198
141
|
exports.se_GetManagedRuleSetCommand = se_GetManagedRuleSetCommand;
|
|
199
142
|
const se_GetMobileSdkReleaseCommand = async (input, context) => {
|
|
200
|
-
const headers =
|
|
201
|
-
"content-type": "application/x-amz-json-1.1",
|
|
202
|
-
"x-amz-target": "AWSWAF_20190729.GetMobileSdkRelease",
|
|
203
|
-
};
|
|
143
|
+
const headers = sharedHeaders("GetMobileSdkRelease");
|
|
204
144
|
let body;
|
|
205
145
|
body = JSON.stringify(se_GetMobileSdkReleaseRequest(input, context));
|
|
206
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
147
|
};
|
|
208
148
|
exports.se_GetMobileSdkReleaseCommand = se_GetMobileSdkReleaseCommand;
|
|
209
149
|
const se_GetPermissionPolicyCommand = async (input, context) => {
|
|
210
|
-
const headers =
|
|
211
|
-
"content-type": "application/x-amz-json-1.1",
|
|
212
|
-
"x-amz-target": "AWSWAF_20190729.GetPermissionPolicy",
|
|
213
|
-
};
|
|
150
|
+
const headers = sharedHeaders("GetPermissionPolicy");
|
|
214
151
|
let body;
|
|
215
152
|
body = JSON.stringify(se_GetPermissionPolicyRequest(input, context));
|
|
216
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
154
|
};
|
|
218
155
|
exports.se_GetPermissionPolicyCommand = se_GetPermissionPolicyCommand;
|
|
219
156
|
const se_GetRateBasedStatementManagedKeysCommand = async (input, context) => {
|
|
220
|
-
const headers =
|
|
221
|
-
"content-type": "application/x-amz-json-1.1",
|
|
222
|
-
"x-amz-target": "AWSWAF_20190729.GetRateBasedStatementManagedKeys",
|
|
223
|
-
};
|
|
157
|
+
const headers = sharedHeaders("GetRateBasedStatementManagedKeys");
|
|
224
158
|
let body;
|
|
225
159
|
body = JSON.stringify(se_GetRateBasedStatementManagedKeysRequest(input, context));
|
|
226
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
161
|
};
|
|
228
162
|
exports.se_GetRateBasedStatementManagedKeysCommand = se_GetRateBasedStatementManagedKeysCommand;
|
|
229
163
|
const se_GetRegexPatternSetCommand = async (input, context) => {
|
|
230
|
-
const headers =
|
|
231
|
-
"content-type": "application/x-amz-json-1.1",
|
|
232
|
-
"x-amz-target": "AWSWAF_20190729.GetRegexPatternSet",
|
|
233
|
-
};
|
|
164
|
+
const headers = sharedHeaders("GetRegexPatternSet");
|
|
234
165
|
let body;
|
|
235
166
|
body = JSON.stringify(se_GetRegexPatternSetRequest(input, context));
|
|
236
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
168
|
};
|
|
238
169
|
exports.se_GetRegexPatternSetCommand = se_GetRegexPatternSetCommand;
|
|
239
170
|
const se_GetRuleGroupCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "AWSWAF_20190729.GetRuleGroup",
|
|
243
|
-
};
|
|
171
|
+
const headers = sharedHeaders("GetRuleGroup");
|
|
244
172
|
let body;
|
|
245
173
|
body = JSON.stringify(se_GetRuleGroupRequest(input, context));
|
|
246
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
175
|
};
|
|
248
176
|
exports.se_GetRuleGroupCommand = se_GetRuleGroupCommand;
|
|
249
177
|
const se_GetSampledRequestsCommand = async (input, context) => {
|
|
250
|
-
const headers =
|
|
251
|
-
"content-type": "application/x-amz-json-1.1",
|
|
252
|
-
"x-amz-target": "AWSWAF_20190729.GetSampledRequests",
|
|
253
|
-
};
|
|
178
|
+
const headers = sharedHeaders("GetSampledRequests");
|
|
254
179
|
let body;
|
|
255
180
|
body = JSON.stringify(se_GetSampledRequestsRequest(input, context));
|
|
256
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
182
|
};
|
|
258
183
|
exports.se_GetSampledRequestsCommand = se_GetSampledRequestsCommand;
|
|
259
184
|
const se_GetWebACLCommand = async (input, context) => {
|
|
260
|
-
const headers =
|
|
261
|
-
"content-type": "application/x-amz-json-1.1",
|
|
262
|
-
"x-amz-target": "AWSWAF_20190729.GetWebACL",
|
|
263
|
-
};
|
|
185
|
+
const headers = sharedHeaders("GetWebACL");
|
|
264
186
|
let body;
|
|
265
187
|
body = JSON.stringify(se_GetWebACLRequest(input, context));
|
|
266
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
189
|
};
|
|
268
190
|
exports.se_GetWebACLCommand = se_GetWebACLCommand;
|
|
269
191
|
const se_GetWebACLForResourceCommand = async (input, context) => {
|
|
270
|
-
const headers =
|
|
271
|
-
"content-type": "application/x-amz-json-1.1",
|
|
272
|
-
"x-amz-target": "AWSWAF_20190729.GetWebACLForResource",
|
|
273
|
-
};
|
|
192
|
+
const headers = sharedHeaders("GetWebACLForResource");
|
|
274
193
|
let body;
|
|
275
194
|
body = JSON.stringify(se_GetWebACLForResourceRequest(input, context));
|
|
276
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
196
|
};
|
|
278
197
|
exports.se_GetWebACLForResourceCommand = se_GetWebACLForResourceCommand;
|
|
279
198
|
const se_ListAvailableManagedRuleGroupsCommand = async (input, context) => {
|
|
280
|
-
const headers =
|
|
281
|
-
"content-type": "application/x-amz-json-1.1",
|
|
282
|
-
"x-amz-target": "AWSWAF_20190729.ListAvailableManagedRuleGroups",
|
|
283
|
-
};
|
|
199
|
+
const headers = sharedHeaders("ListAvailableManagedRuleGroups");
|
|
284
200
|
let body;
|
|
285
201
|
body = JSON.stringify(se_ListAvailableManagedRuleGroupsRequest(input, context));
|
|
286
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
203
|
};
|
|
288
204
|
exports.se_ListAvailableManagedRuleGroupsCommand = se_ListAvailableManagedRuleGroupsCommand;
|
|
289
205
|
const se_ListAvailableManagedRuleGroupVersionsCommand = async (input, context) => {
|
|
290
|
-
const headers =
|
|
291
|
-
"content-type": "application/x-amz-json-1.1",
|
|
292
|
-
"x-amz-target": "AWSWAF_20190729.ListAvailableManagedRuleGroupVersions",
|
|
293
|
-
};
|
|
206
|
+
const headers = sharedHeaders("ListAvailableManagedRuleGroupVersions");
|
|
294
207
|
let body;
|
|
295
208
|
body = JSON.stringify(se_ListAvailableManagedRuleGroupVersionsRequest(input, context));
|
|
296
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
210
|
};
|
|
298
211
|
exports.se_ListAvailableManagedRuleGroupVersionsCommand = se_ListAvailableManagedRuleGroupVersionsCommand;
|
|
299
212
|
const se_ListIPSetsCommand = async (input, context) => {
|
|
300
|
-
const headers =
|
|
301
|
-
"content-type": "application/x-amz-json-1.1",
|
|
302
|
-
"x-amz-target": "AWSWAF_20190729.ListIPSets",
|
|
303
|
-
};
|
|
213
|
+
const headers = sharedHeaders("ListIPSets");
|
|
304
214
|
let body;
|
|
305
215
|
body = JSON.stringify(se_ListIPSetsRequest(input, context));
|
|
306
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
217
|
};
|
|
308
218
|
exports.se_ListIPSetsCommand = se_ListIPSetsCommand;
|
|
309
219
|
const se_ListLoggingConfigurationsCommand = async (input, context) => {
|
|
310
|
-
const headers =
|
|
311
|
-
"content-type": "application/x-amz-json-1.1",
|
|
312
|
-
"x-amz-target": "AWSWAF_20190729.ListLoggingConfigurations",
|
|
313
|
-
};
|
|
220
|
+
const headers = sharedHeaders("ListLoggingConfigurations");
|
|
314
221
|
let body;
|
|
315
222
|
body = JSON.stringify(se_ListLoggingConfigurationsRequest(input, context));
|
|
316
223
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
224
|
};
|
|
318
225
|
exports.se_ListLoggingConfigurationsCommand = se_ListLoggingConfigurationsCommand;
|
|
319
226
|
const se_ListManagedRuleSetsCommand = async (input, context) => {
|
|
320
|
-
const headers =
|
|
321
|
-
"content-type": "application/x-amz-json-1.1",
|
|
322
|
-
"x-amz-target": "AWSWAF_20190729.ListManagedRuleSets",
|
|
323
|
-
};
|
|
227
|
+
const headers = sharedHeaders("ListManagedRuleSets");
|
|
324
228
|
let body;
|
|
325
229
|
body = JSON.stringify(se_ListManagedRuleSetsRequest(input, context));
|
|
326
230
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
231
|
};
|
|
328
232
|
exports.se_ListManagedRuleSetsCommand = se_ListManagedRuleSetsCommand;
|
|
329
233
|
const se_ListMobileSdkReleasesCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.1",
|
|
332
|
-
"x-amz-target": "AWSWAF_20190729.ListMobileSdkReleases",
|
|
333
|
-
};
|
|
234
|
+
const headers = sharedHeaders("ListMobileSdkReleases");
|
|
334
235
|
let body;
|
|
335
236
|
body = JSON.stringify(se_ListMobileSdkReleasesRequest(input, context));
|
|
336
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
238
|
};
|
|
338
239
|
exports.se_ListMobileSdkReleasesCommand = se_ListMobileSdkReleasesCommand;
|
|
339
240
|
const se_ListRegexPatternSetsCommand = async (input, context) => {
|
|
340
|
-
const headers =
|
|
341
|
-
"content-type": "application/x-amz-json-1.1",
|
|
342
|
-
"x-amz-target": "AWSWAF_20190729.ListRegexPatternSets",
|
|
343
|
-
};
|
|
241
|
+
const headers = sharedHeaders("ListRegexPatternSets");
|
|
344
242
|
let body;
|
|
345
243
|
body = JSON.stringify(se_ListRegexPatternSetsRequest(input, context));
|
|
346
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
245
|
};
|
|
348
246
|
exports.se_ListRegexPatternSetsCommand = se_ListRegexPatternSetsCommand;
|
|
349
247
|
const se_ListResourcesForWebACLCommand = async (input, context) => {
|
|
350
|
-
const headers =
|
|
351
|
-
"content-type": "application/x-amz-json-1.1",
|
|
352
|
-
"x-amz-target": "AWSWAF_20190729.ListResourcesForWebACL",
|
|
353
|
-
};
|
|
248
|
+
const headers = sharedHeaders("ListResourcesForWebACL");
|
|
354
249
|
let body;
|
|
355
250
|
body = JSON.stringify(se_ListResourcesForWebACLRequest(input, context));
|
|
356
251
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
252
|
};
|
|
358
253
|
exports.se_ListResourcesForWebACLCommand = se_ListResourcesForWebACLCommand;
|
|
359
254
|
const se_ListRuleGroupsCommand = async (input, context) => {
|
|
360
|
-
const headers =
|
|
361
|
-
"content-type": "application/x-amz-json-1.1",
|
|
362
|
-
"x-amz-target": "AWSWAF_20190729.ListRuleGroups",
|
|
363
|
-
};
|
|
255
|
+
const headers = sharedHeaders("ListRuleGroups");
|
|
364
256
|
let body;
|
|
365
257
|
body = JSON.stringify(se_ListRuleGroupsRequest(input, context));
|
|
366
258
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
259
|
};
|
|
368
260
|
exports.se_ListRuleGroupsCommand = se_ListRuleGroupsCommand;
|
|
369
261
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
370
|
-
const headers =
|
|
371
|
-
"content-type": "application/x-amz-json-1.1",
|
|
372
|
-
"x-amz-target": "AWSWAF_20190729.ListTagsForResource",
|
|
373
|
-
};
|
|
262
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
374
263
|
let body;
|
|
375
264
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
376
265
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
266
|
};
|
|
378
267
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
379
268
|
const se_ListWebACLsCommand = async (input, context) => {
|
|
380
|
-
const headers =
|
|
381
|
-
"content-type": "application/x-amz-json-1.1",
|
|
382
|
-
"x-amz-target": "AWSWAF_20190729.ListWebACLs",
|
|
383
|
-
};
|
|
269
|
+
const headers = sharedHeaders("ListWebACLs");
|
|
384
270
|
let body;
|
|
385
271
|
body = JSON.stringify(se_ListWebACLsRequest(input, context));
|
|
386
272
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
273
|
};
|
|
388
274
|
exports.se_ListWebACLsCommand = se_ListWebACLsCommand;
|
|
389
275
|
const se_PutLoggingConfigurationCommand = async (input, context) => {
|
|
390
|
-
const headers =
|
|
391
|
-
"content-type": "application/x-amz-json-1.1",
|
|
392
|
-
"x-amz-target": "AWSWAF_20190729.PutLoggingConfiguration",
|
|
393
|
-
};
|
|
276
|
+
const headers = sharedHeaders("PutLoggingConfiguration");
|
|
394
277
|
let body;
|
|
395
278
|
body = JSON.stringify(se_PutLoggingConfigurationRequest(input, context));
|
|
396
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
397
280
|
};
|
|
398
281
|
exports.se_PutLoggingConfigurationCommand = se_PutLoggingConfigurationCommand;
|
|
399
282
|
const se_PutManagedRuleSetVersionsCommand = async (input, context) => {
|
|
400
|
-
const headers =
|
|
401
|
-
"content-type": "application/x-amz-json-1.1",
|
|
402
|
-
"x-amz-target": "AWSWAF_20190729.PutManagedRuleSetVersions",
|
|
403
|
-
};
|
|
283
|
+
const headers = sharedHeaders("PutManagedRuleSetVersions");
|
|
404
284
|
let body;
|
|
405
285
|
body = JSON.stringify(se_PutManagedRuleSetVersionsRequest(input, context));
|
|
406
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
407
287
|
};
|
|
408
288
|
exports.se_PutManagedRuleSetVersionsCommand = se_PutManagedRuleSetVersionsCommand;
|
|
409
289
|
const se_PutPermissionPolicyCommand = async (input, context) => {
|
|
410
|
-
const headers =
|
|
411
|
-
"content-type": "application/x-amz-json-1.1",
|
|
412
|
-
"x-amz-target": "AWSWAF_20190729.PutPermissionPolicy",
|
|
413
|
-
};
|
|
290
|
+
const headers = sharedHeaders("PutPermissionPolicy");
|
|
414
291
|
let body;
|
|
415
292
|
body = JSON.stringify(se_PutPermissionPolicyRequest(input, context));
|
|
416
293
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
417
294
|
};
|
|
418
295
|
exports.se_PutPermissionPolicyCommand = se_PutPermissionPolicyCommand;
|
|
419
296
|
const se_TagResourceCommand = async (input, context) => {
|
|
420
|
-
const headers =
|
|
421
|
-
"content-type": "application/x-amz-json-1.1",
|
|
422
|
-
"x-amz-target": "AWSWAF_20190729.TagResource",
|
|
423
|
-
};
|
|
297
|
+
const headers = sharedHeaders("TagResource");
|
|
424
298
|
let body;
|
|
425
299
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
426
300
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
301
|
};
|
|
428
302
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
429
303
|
const se_UntagResourceCommand = async (input, context) => {
|
|
430
|
-
const headers =
|
|
431
|
-
"content-type": "application/x-amz-json-1.1",
|
|
432
|
-
"x-amz-target": "AWSWAF_20190729.UntagResource",
|
|
433
|
-
};
|
|
304
|
+
const headers = sharedHeaders("UntagResource");
|
|
434
305
|
let body;
|
|
435
306
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
436
307
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
308
|
};
|
|
438
309
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
439
310
|
const se_UpdateIPSetCommand = async (input, context) => {
|
|
440
|
-
const headers =
|
|
441
|
-
"content-type": "application/x-amz-json-1.1",
|
|
442
|
-
"x-amz-target": "AWSWAF_20190729.UpdateIPSet",
|
|
443
|
-
};
|
|
311
|
+
const headers = sharedHeaders("UpdateIPSet");
|
|
444
312
|
let body;
|
|
445
313
|
body = JSON.stringify(se_UpdateIPSetRequest(input, context));
|
|
446
314
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
447
315
|
};
|
|
448
316
|
exports.se_UpdateIPSetCommand = se_UpdateIPSetCommand;
|
|
449
317
|
const se_UpdateManagedRuleSetVersionExpiryDateCommand = async (input, context) => {
|
|
450
|
-
const headers =
|
|
451
|
-
"content-type": "application/x-amz-json-1.1",
|
|
452
|
-
"x-amz-target": "AWSWAF_20190729.UpdateManagedRuleSetVersionExpiryDate",
|
|
453
|
-
};
|
|
318
|
+
const headers = sharedHeaders("UpdateManagedRuleSetVersionExpiryDate");
|
|
454
319
|
let body;
|
|
455
320
|
body = JSON.stringify(se_UpdateManagedRuleSetVersionExpiryDateRequest(input, context));
|
|
456
321
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
322
|
};
|
|
458
323
|
exports.se_UpdateManagedRuleSetVersionExpiryDateCommand = se_UpdateManagedRuleSetVersionExpiryDateCommand;
|
|
459
324
|
const se_UpdateRegexPatternSetCommand = async (input, context) => {
|
|
460
|
-
const headers =
|
|
461
|
-
"content-type": "application/x-amz-json-1.1",
|
|
462
|
-
"x-amz-target": "AWSWAF_20190729.UpdateRegexPatternSet",
|
|
463
|
-
};
|
|
325
|
+
const headers = sharedHeaders("UpdateRegexPatternSet");
|
|
464
326
|
let body;
|
|
465
327
|
body = JSON.stringify(se_UpdateRegexPatternSetRequest(input, context));
|
|
466
328
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
467
329
|
};
|
|
468
330
|
exports.se_UpdateRegexPatternSetCommand = se_UpdateRegexPatternSetCommand;
|
|
469
331
|
const se_UpdateRuleGroupCommand = async (input, context) => {
|
|
470
|
-
const headers =
|
|
471
|
-
"content-type": "application/x-amz-json-1.1",
|
|
472
|
-
"x-amz-target": "AWSWAF_20190729.UpdateRuleGroup",
|
|
473
|
-
};
|
|
332
|
+
const headers = sharedHeaders("UpdateRuleGroup");
|
|
474
333
|
let body;
|
|
475
334
|
body = JSON.stringify(se_UpdateRuleGroupRequest(input, context));
|
|
476
335
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
477
336
|
};
|
|
478
337
|
exports.se_UpdateRuleGroupCommand = se_UpdateRuleGroupCommand;
|
|
479
338
|
const se_UpdateWebACLCommand = async (input, context) => {
|
|
480
|
-
const headers =
|
|
481
|
-
"content-type": "application/x-amz-json-1.1",
|
|
482
|
-
"x-amz-target": "AWSWAF_20190729.UpdateWebACL",
|
|
483
|
-
};
|
|
339
|
+
const headers = sharedHeaders("UpdateWebACL");
|
|
484
340
|
let body;
|
|
485
341
|
body = JSON.stringify(se_UpdateWebACLRequest(input, context));
|
|
486
342
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -5800,6 +5656,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
5800
5656
|
}
|
|
5801
5657
|
return new protocol_http_1.HttpRequest(contents);
|
|
5802
5658
|
};
|
|
5659
|
+
function sharedHeaders(operation) {
|
|
5660
|
+
return {
|
|
5661
|
+
"content-type": "application/x-amz-json-1.1",
|
|
5662
|
+
"x-amz-target": `AWSWAF_20190729.${operation}`,
|
|
5663
|
+
};
|
|
5664
|
+
}
|
|
5803
5665
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5804
5666
|
if (encoded.length) {
|
|
5805
5667
|
return JSON.parse(encoded);
|
|
@@ -3,433 +3,289 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { WAFAssociatedItemException, WAFConfigurationWarningException, WAFDuplicateItemException, WAFExpiredManagedRuleGroupVersionException, WAFInternalErrorException, WAFInvalidOperationException, WAFInvalidParameterException, WAFInvalidPermissionPolicyException, WAFInvalidResourceException, WAFLimitsExceededException, WAFLogDestinationPermissionIssueException, WAFNonexistentItemException, WAFOptimisticLockException, WAFServiceLinkedRoleErrorException, WAFSubscriptionNotFoundException, WAFTagOperationException, WAFTagOperationInternalErrorException, WAFUnavailableEntityException, } from "../models/models_0";
|
|
4
4
|
import { WAFV2ServiceException as __BaseException } from "../models/WAFV2ServiceException";
|
|
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_20190729.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_CheckCapacityCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "AWSWAF_20190729.CheckCapacity",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("CheckCapacity");
|
|
19
13
|
let body;
|
|
20
14
|
body = JSON.stringify(se_CheckCapacityRequest(input, context));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_CreateIPSetCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "AWSWAF_20190729.CreateIPSet",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CreateIPSet");
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify(se_CreateIPSetRequest(input, context));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_CreateRegexPatternSetCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "AWSWAF_20190729.CreateRegexPatternSet",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateRegexPatternSet");
|
|
37
25
|
let body;
|
|
38
26
|
body = JSON.stringify(se_CreateRegexPatternSetRequest(input, context));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_CreateRuleGroupCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "AWSWAF_20190729.CreateRuleGroup",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("CreateRuleGroup");
|
|
46
31
|
let body;
|
|
47
32
|
body = JSON.stringify(se_CreateRuleGroupRequest(input, context));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_CreateWebACLCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "AWSWAF_20190729.CreateWebACL",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("CreateWebACL");
|
|
55
37
|
let body;
|
|
56
38
|
body = JSON.stringify(se_CreateWebACLRequest(input, context));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_DeleteFirewallManagerRuleGroupsCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AWSWAF_20190729.DeleteFirewallManagerRuleGroups",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("DeleteFirewallManagerRuleGroups");
|
|
64
43
|
let body;
|
|
65
44
|
body = JSON.stringify(se_DeleteFirewallManagerRuleGroupsRequest(input, context));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_DeleteIPSetCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSWAF_20190729.DeleteIPSet",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("DeleteIPSet");
|
|
73
49
|
let body;
|
|
74
50
|
body = JSON.stringify(se_DeleteIPSetRequest(input, context));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_DeleteLoggingConfigurationCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "AWSWAF_20190729.DeleteLoggingConfiguration",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("DeleteLoggingConfiguration");
|
|
82
55
|
let body;
|
|
83
56
|
body = JSON.stringify(se_DeleteLoggingConfigurationRequest(input, context));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_DeletePermissionPolicyCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "AWSWAF_20190729.DeletePermissionPolicy",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DeletePermissionPolicy");
|
|
91
61
|
let body;
|
|
92
62
|
body = JSON.stringify(se_DeletePermissionPolicyRequest(input, context));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_DeleteRegexPatternSetCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "AWSWAF_20190729.DeleteRegexPatternSet",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DeleteRegexPatternSet");
|
|
100
67
|
let body;
|
|
101
68
|
body = JSON.stringify(se_DeleteRegexPatternSetRequest(input, context));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_DeleteRuleGroupCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "AWSWAF_20190729.DeleteRuleGroup",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("DeleteRuleGroup");
|
|
109
73
|
let body;
|
|
110
74
|
body = JSON.stringify(se_DeleteRuleGroupRequest(input, context));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_DeleteWebACLCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "AWSWAF_20190729.DeleteWebACL",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("DeleteWebACL");
|
|
118
79
|
let body;
|
|
119
80
|
body = JSON.stringify(se_DeleteWebACLRequest(input, context));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_DescribeManagedRuleGroupCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "AWSWAF_20190729.DescribeManagedRuleGroup",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("DescribeManagedRuleGroup");
|
|
127
85
|
let body;
|
|
128
86
|
body = JSON.stringify(se_DescribeManagedRuleGroupRequest(input, context));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_DisassociateWebACLCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "AWSWAF_20190729.DisassociateWebACL",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("DisassociateWebACL");
|
|
136
91
|
let body;
|
|
137
92
|
body = JSON.stringify(se_DisassociateWebACLRequest(input, context));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_GenerateMobileSdkReleaseUrlCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "AWSWAF_20190729.GenerateMobileSdkReleaseUrl",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("GenerateMobileSdkReleaseUrl");
|
|
145
97
|
let body;
|
|
146
98
|
body = JSON.stringify(se_GenerateMobileSdkReleaseUrlRequest(input, context));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_GetIPSetCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "AWSWAF_20190729.GetIPSet",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("GetIPSet");
|
|
154
103
|
let body;
|
|
155
104
|
body = JSON.stringify(se_GetIPSetRequest(input, context));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_GetLoggingConfigurationCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AWSWAF_20190729.GetLoggingConfiguration",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("GetLoggingConfiguration");
|
|
163
109
|
let body;
|
|
164
110
|
body = JSON.stringify(se_GetLoggingConfigurationRequest(input, context));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_GetManagedRuleSetCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "AWSWAF_20190729.GetManagedRuleSet",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("GetManagedRuleSet");
|
|
172
115
|
let body;
|
|
173
116
|
body = JSON.stringify(se_GetManagedRuleSetRequest(input, context));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_GetMobileSdkReleaseCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "AWSWAF_20190729.GetMobileSdkRelease",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("GetMobileSdkRelease");
|
|
181
121
|
let body;
|
|
182
122
|
body = JSON.stringify(se_GetMobileSdkReleaseRequest(input, context));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_GetPermissionPolicyCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "AWSWAF_20190729.GetPermissionPolicy",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("GetPermissionPolicy");
|
|
190
127
|
let body;
|
|
191
128
|
body = JSON.stringify(se_GetPermissionPolicyRequest(input, context));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_GetRateBasedStatementManagedKeysCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.1",
|
|
197
|
-
"x-amz-target": "AWSWAF_20190729.GetRateBasedStatementManagedKeys",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("GetRateBasedStatementManagedKeys");
|
|
199
133
|
let body;
|
|
200
134
|
body = JSON.stringify(se_GetRateBasedStatementManagedKeysRequest(input, context));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_GetRegexPatternSetCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "AWSWAF_20190729.GetRegexPatternSet",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("GetRegexPatternSet");
|
|
208
139
|
let body;
|
|
209
140
|
body = JSON.stringify(se_GetRegexPatternSetRequest(input, context));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
142
|
};
|
|
212
143
|
export const se_GetRuleGroupCommand = async (input, context) => {
|
|
213
|
-
const headers =
|
|
214
|
-
"content-type": "application/x-amz-json-1.1",
|
|
215
|
-
"x-amz-target": "AWSWAF_20190729.GetRuleGroup",
|
|
216
|
-
};
|
|
144
|
+
const headers = sharedHeaders("GetRuleGroup");
|
|
217
145
|
let body;
|
|
218
146
|
body = JSON.stringify(se_GetRuleGroupRequest(input, context));
|
|
219
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
148
|
};
|
|
221
149
|
export const se_GetSampledRequestsCommand = async (input, context) => {
|
|
222
|
-
const headers =
|
|
223
|
-
"content-type": "application/x-amz-json-1.1",
|
|
224
|
-
"x-amz-target": "AWSWAF_20190729.GetSampledRequests",
|
|
225
|
-
};
|
|
150
|
+
const headers = sharedHeaders("GetSampledRequests");
|
|
226
151
|
let body;
|
|
227
152
|
body = JSON.stringify(se_GetSampledRequestsRequest(input, context));
|
|
228
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
154
|
};
|
|
230
155
|
export const se_GetWebACLCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "AWSWAF_20190729.GetWebACL",
|
|
234
|
-
};
|
|
156
|
+
const headers = sharedHeaders("GetWebACL");
|
|
235
157
|
let body;
|
|
236
158
|
body = JSON.stringify(se_GetWebACLRequest(input, context));
|
|
237
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
160
|
};
|
|
239
161
|
export const se_GetWebACLForResourceCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "AWSWAF_20190729.GetWebACLForResource",
|
|
243
|
-
};
|
|
162
|
+
const headers = sharedHeaders("GetWebACLForResource");
|
|
244
163
|
let body;
|
|
245
164
|
body = JSON.stringify(se_GetWebACLForResourceRequest(input, context));
|
|
246
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
166
|
};
|
|
248
167
|
export const se_ListAvailableManagedRuleGroupsCommand = async (input, context) => {
|
|
249
|
-
const headers =
|
|
250
|
-
"content-type": "application/x-amz-json-1.1",
|
|
251
|
-
"x-amz-target": "AWSWAF_20190729.ListAvailableManagedRuleGroups",
|
|
252
|
-
};
|
|
168
|
+
const headers = sharedHeaders("ListAvailableManagedRuleGroups");
|
|
253
169
|
let body;
|
|
254
170
|
body = JSON.stringify(se_ListAvailableManagedRuleGroupsRequest(input, context));
|
|
255
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
172
|
};
|
|
257
173
|
export const se_ListAvailableManagedRuleGroupVersionsCommand = async (input, context) => {
|
|
258
|
-
const headers =
|
|
259
|
-
"content-type": "application/x-amz-json-1.1",
|
|
260
|
-
"x-amz-target": "AWSWAF_20190729.ListAvailableManagedRuleGroupVersions",
|
|
261
|
-
};
|
|
174
|
+
const headers = sharedHeaders("ListAvailableManagedRuleGroupVersions");
|
|
262
175
|
let body;
|
|
263
176
|
body = JSON.stringify(se_ListAvailableManagedRuleGroupVersionsRequest(input, context));
|
|
264
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
178
|
};
|
|
266
179
|
export const se_ListIPSetsCommand = async (input, context) => {
|
|
267
|
-
const headers =
|
|
268
|
-
"content-type": "application/x-amz-json-1.1",
|
|
269
|
-
"x-amz-target": "AWSWAF_20190729.ListIPSets",
|
|
270
|
-
};
|
|
180
|
+
const headers = sharedHeaders("ListIPSets");
|
|
271
181
|
let body;
|
|
272
182
|
body = JSON.stringify(se_ListIPSetsRequest(input, context));
|
|
273
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
184
|
};
|
|
275
185
|
export const se_ListLoggingConfigurationsCommand = async (input, context) => {
|
|
276
|
-
const headers =
|
|
277
|
-
"content-type": "application/x-amz-json-1.1",
|
|
278
|
-
"x-amz-target": "AWSWAF_20190729.ListLoggingConfigurations",
|
|
279
|
-
};
|
|
186
|
+
const headers = sharedHeaders("ListLoggingConfigurations");
|
|
280
187
|
let body;
|
|
281
188
|
body = JSON.stringify(se_ListLoggingConfigurationsRequest(input, context));
|
|
282
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
190
|
};
|
|
284
191
|
export const se_ListManagedRuleSetsCommand = async (input, context) => {
|
|
285
|
-
const headers =
|
|
286
|
-
"content-type": "application/x-amz-json-1.1",
|
|
287
|
-
"x-amz-target": "AWSWAF_20190729.ListManagedRuleSets",
|
|
288
|
-
};
|
|
192
|
+
const headers = sharedHeaders("ListManagedRuleSets");
|
|
289
193
|
let body;
|
|
290
194
|
body = JSON.stringify(se_ListManagedRuleSetsRequest(input, context));
|
|
291
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
196
|
};
|
|
293
197
|
export const se_ListMobileSdkReleasesCommand = async (input, context) => {
|
|
294
|
-
const headers =
|
|
295
|
-
"content-type": "application/x-amz-json-1.1",
|
|
296
|
-
"x-amz-target": "AWSWAF_20190729.ListMobileSdkReleases",
|
|
297
|
-
};
|
|
198
|
+
const headers = sharedHeaders("ListMobileSdkReleases");
|
|
298
199
|
let body;
|
|
299
200
|
body = JSON.stringify(se_ListMobileSdkReleasesRequest(input, context));
|
|
300
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
202
|
};
|
|
302
203
|
export const se_ListRegexPatternSetsCommand = async (input, context) => {
|
|
303
|
-
const headers =
|
|
304
|
-
"content-type": "application/x-amz-json-1.1",
|
|
305
|
-
"x-amz-target": "AWSWAF_20190729.ListRegexPatternSets",
|
|
306
|
-
};
|
|
204
|
+
const headers = sharedHeaders("ListRegexPatternSets");
|
|
307
205
|
let body;
|
|
308
206
|
body = JSON.stringify(se_ListRegexPatternSetsRequest(input, context));
|
|
309
207
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
208
|
};
|
|
311
209
|
export const se_ListResourcesForWebACLCommand = async (input, context) => {
|
|
312
|
-
const headers =
|
|
313
|
-
"content-type": "application/x-amz-json-1.1",
|
|
314
|
-
"x-amz-target": "AWSWAF_20190729.ListResourcesForWebACL",
|
|
315
|
-
};
|
|
210
|
+
const headers = sharedHeaders("ListResourcesForWebACL");
|
|
316
211
|
let body;
|
|
317
212
|
body = JSON.stringify(se_ListResourcesForWebACLRequest(input, context));
|
|
318
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
214
|
};
|
|
320
215
|
export const se_ListRuleGroupsCommand = async (input, context) => {
|
|
321
|
-
const headers =
|
|
322
|
-
"content-type": "application/x-amz-json-1.1",
|
|
323
|
-
"x-amz-target": "AWSWAF_20190729.ListRuleGroups",
|
|
324
|
-
};
|
|
216
|
+
const headers = sharedHeaders("ListRuleGroups");
|
|
325
217
|
let body;
|
|
326
218
|
body = JSON.stringify(se_ListRuleGroupsRequest(input, context));
|
|
327
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
220
|
};
|
|
329
221
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.1",
|
|
332
|
-
"x-amz-target": "AWSWAF_20190729.ListTagsForResource",
|
|
333
|
-
};
|
|
222
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
334
223
|
let body;
|
|
335
224
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
336
225
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
226
|
};
|
|
338
227
|
export const se_ListWebACLsCommand = async (input, context) => {
|
|
339
|
-
const headers =
|
|
340
|
-
"content-type": "application/x-amz-json-1.1",
|
|
341
|
-
"x-amz-target": "AWSWAF_20190729.ListWebACLs",
|
|
342
|
-
};
|
|
228
|
+
const headers = sharedHeaders("ListWebACLs");
|
|
343
229
|
let body;
|
|
344
230
|
body = JSON.stringify(se_ListWebACLsRequest(input, context));
|
|
345
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
232
|
};
|
|
347
233
|
export const se_PutLoggingConfigurationCommand = async (input, context) => {
|
|
348
|
-
const headers =
|
|
349
|
-
"content-type": "application/x-amz-json-1.1",
|
|
350
|
-
"x-amz-target": "AWSWAF_20190729.PutLoggingConfiguration",
|
|
351
|
-
};
|
|
234
|
+
const headers = sharedHeaders("PutLoggingConfiguration");
|
|
352
235
|
let body;
|
|
353
236
|
body = JSON.stringify(se_PutLoggingConfigurationRequest(input, context));
|
|
354
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
355
238
|
};
|
|
356
239
|
export const se_PutManagedRuleSetVersionsCommand = async (input, context) => {
|
|
357
|
-
const headers =
|
|
358
|
-
"content-type": "application/x-amz-json-1.1",
|
|
359
|
-
"x-amz-target": "AWSWAF_20190729.PutManagedRuleSetVersions",
|
|
360
|
-
};
|
|
240
|
+
const headers = sharedHeaders("PutManagedRuleSetVersions");
|
|
361
241
|
let body;
|
|
362
242
|
body = JSON.stringify(se_PutManagedRuleSetVersionsRequest(input, context));
|
|
363
243
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
364
244
|
};
|
|
365
245
|
export const se_PutPermissionPolicyCommand = async (input, context) => {
|
|
366
|
-
const headers =
|
|
367
|
-
"content-type": "application/x-amz-json-1.1",
|
|
368
|
-
"x-amz-target": "AWSWAF_20190729.PutPermissionPolicy",
|
|
369
|
-
};
|
|
246
|
+
const headers = sharedHeaders("PutPermissionPolicy");
|
|
370
247
|
let body;
|
|
371
248
|
body = JSON.stringify(se_PutPermissionPolicyRequest(input, context));
|
|
372
249
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
250
|
};
|
|
374
251
|
export const se_TagResourceCommand = async (input, context) => {
|
|
375
|
-
const headers =
|
|
376
|
-
"content-type": "application/x-amz-json-1.1",
|
|
377
|
-
"x-amz-target": "AWSWAF_20190729.TagResource",
|
|
378
|
-
};
|
|
252
|
+
const headers = sharedHeaders("TagResource");
|
|
379
253
|
let body;
|
|
380
254
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
381
255
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
382
256
|
};
|
|
383
257
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
384
|
-
const headers =
|
|
385
|
-
"content-type": "application/x-amz-json-1.1",
|
|
386
|
-
"x-amz-target": "AWSWAF_20190729.UntagResource",
|
|
387
|
-
};
|
|
258
|
+
const headers = sharedHeaders("UntagResource");
|
|
388
259
|
let body;
|
|
389
260
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
390
261
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
391
262
|
};
|
|
392
263
|
export const se_UpdateIPSetCommand = async (input, context) => {
|
|
393
|
-
const headers =
|
|
394
|
-
"content-type": "application/x-amz-json-1.1",
|
|
395
|
-
"x-amz-target": "AWSWAF_20190729.UpdateIPSet",
|
|
396
|
-
};
|
|
264
|
+
const headers = sharedHeaders("UpdateIPSet");
|
|
397
265
|
let body;
|
|
398
266
|
body = JSON.stringify(se_UpdateIPSetRequest(input, context));
|
|
399
267
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
400
268
|
};
|
|
401
269
|
export const se_UpdateManagedRuleSetVersionExpiryDateCommand = async (input, context) => {
|
|
402
|
-
const headers =
|
|
403
|
-
"content-type": "application/x-amz-json-1.1",
|
|
404
|
-
"x-amz-target": "AWSWAF_20190729.UpdateManagedRuleSetVersionExpiryDate",
|
|
405
|
-
};
|
|
270
|
+
const headers = sharedHeaders("UpdateManagedRuleSetVersionExpiryDate");
|
|
406
271
|
let body;
|
|
407
272
|
body = JSON.stringify(se_UpdateManagedRuleSetVersionExpiryDateRequest(input, context));
|
|
408
273
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
409
274
|
};
|
|
410
275
|
export const se_UpdateRegexPatternSetCommand = async (input, context) => {
|
|
411
|
-
const headers =
|
|
412
|
-
"content-type": "application/x-amz-json-1.1",
|
|
413
|
-
"x-amz-target": "AWSWAF_20190729.UpdateRegexPatternSet",
|
|
414
|
-
};
|
|
276
|
+
const headers = sharedHeaders("UpdateRegexPatternSet");
|
|
415
277
|
let body;
|
|
416
278
|
body = JSON.stringify(se_UpdateRegexPatternSetRequest(input, context));
|
|
417
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
418
280
|
};
|
|
419
281
|
export const se_UpdateRuleGroupCommand = async (input, context) => {
|
|
420
|
-
const headers =
|
|
421
|
-
"content-type": "application/x-amz-json-1.1",
|
|
422
|
-
"x-amz-target": "AWSWAF_20190729.UpdateRuleGroup",
|
|
423
|
-
};
|
|
282
|
+
const headers = sharedHeaders("UpdateRuleGroup");
|
|
424
283
|
let body;
|
|
425
284
|
body = JSON.stringify(se_UpdateRuleGroupRequest(input, context));
|
|
426
285
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
286
|
};
|
|
428
287
|
export const se_UpdateWebACLCommand = async (input, context) => {
|
|
429
|
-
const headers =
|
|
430
|
-
"content-type": "application/x-amz-json-1.1",
|
|
431
|
-
"x-amz-target": "AWSWAF_20190729.UpdateWebACL",
|
|
432
|
-
};
|
|
288
|
+
const headers = sharedHeaders("UpdateWebACL");
|
|
433
289
|
let body;
|
|
434
290
|
body = JSON.stringify(se_UpdateWebACLRequest(input, context));
|
|
435
291
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -5700,6 +5556,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
5700
5556
|
}
|
|
5701
5557
|
return new __HttpRequest(contents);
|
|
5702
5558
|
};
|
|
5559
|
+
function sharedHeaders(operation) {
|
|
5560
|
+
return {
|
|
5561
|
+
"content-type": "application/x-amz-json-1.1",
|
|
5562
|
+
"x-amz-target": `AWSWAF_20190729.${operation}`,
|
|
5563
|
+
};
|
|
5564
|
+
}
|
|
5703
5565
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5704
5566
|
if (encoded.length) {
|
|
5705
5567
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-wafv2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Wafv2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.312.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.312.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
26
|
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|