@aws-sdk/client-wafv2 3.419.0 → 3.422.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/README.md +7 -7
- package/dist-types/models/models_0.d.ts +26 -6
- package/dist-types/ts3.4/WAFV2.d.ts +438 -918
- package/dist-types/ts3.4/WAFV2Client.d.ts +277 -436
- package/dist-types/ts3.4/commands/AssociateWebACLCommand.d.ts +118 -38
- package/dist-types/ts3.4/commands/CheckCapacityCommand.d.ts +1093 -38
- package/dist-types/ts3.4/commands/CreateAPIKeyCommand.d.ts +115 -35
- package/dist-types/ts3.4/commands/CreateIPSetCommand.d.ts +144 -35
- package/dist-types/ts3.4/commands/CreateRegexPatternSetCommand.d.ts +143 -42
- package/dist-types/ts3.4/commands/CreateRuleGroupCommand.d.ts +1116 -38
- package/dist-types/ts3.4/commands/CreateWebACLCommand.d.ts +1145 -35
- package/dist-types/ts3.4/commands/DeleteFirewallManagerRuleGroupsCommand.d.ts +115 -42
- package/dist-types/ts3.4/commands/DeleteIPSetCommand.d.ts +124 -35
- package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +110 -42
- package/dist-types/ts3.4/commands/DeletePermissionPolicyCommand.d.ts +103 -42
- package/dist-types/ts3.4/commands/DeleteRegexPatternSetCommand.d.ts +124 -42
- package/dist-types/ts3.4/commands/DeleteRuleGroupCommand.d.ts +124 -38
- package/dist-types/ts3.4/commands/DeleteWebACLCommand.d.ts +158 -35
- package/dist-types/ts3.4/commands/DescribeAllManagedProductsCommand.d.ts +92 -42
- package/dist-types/ts3.4/commands/DescribeManagedProductsByVendorCommand.d.ts +114 -42
- package/dist-types/ts3.4/commands/DescribeManagedRuleGroupCommand.d.ts +191 -42
- package/dist-types/ts3.4/commands/DisassociateWebACLCommand.d.ts +109 -39
- package/dist-types/ts3.4/commands/GenerateMobileSdkReleaseUrlCommand.d.ts +110 -42
- package/dist-types/ts3.4/commands/GetDecryptedAPIKeyCommand.d.ts +112 -39
- package/dist-types/ts3.4/commands/GetIPSetCommand.d.ts +119 -35
- package/dist-types/ts3.4/commands/GetLoggingConfigurationCommand.d.ts +192 -42
- package/dist-types/ts3.4/commands/GetManagedRuleSetCommand.d.ts +131 -39
- package/dist-types/ts3.4/commands/GetMobileSdkReleaseCommand.d.ts +121 -39
- package/dist-types/ts3.4/commands/GetPermissionPolicyCommand.d.ts +105 -39
- package/dist-types/ts3.4/commands/GetRateBasedStatementManagedKeysCommand.d.ts +142 -42
- package/dist-types/ts3.4/commands/GetRegexPatternSetCommand.d.ts +120 -39
- package/dist-types/ts3.4/commands/GetRuleGroupCommand.d.ts +1088 -35
- package/dist-types/ts3.4/commands/GetSampledRequestsCommand.d.ts +168 -39
- package/dist-types/ts3.4/commands/GetWebACLCommand.d.ts +1283 -35
- package/dist-types/ts3.4/commands/GetWebACLForResourceCommand.d.ts +1286 -42
- package/dist-types/ts3.4/commands/ListAPIKeysCommand.d.ts +121 -35
- package/dist-types/ts3.4/commands/ListAvailableManagedRuleGroupVersionsCommand.d.ts +118 -42
- package/dist-types/ts3.4/commands/ListAvailableManagedRuleGroupsCommand.d.ts +113 -42
- package/dist-types/ts3.4/commands/ListIPSetsCommand.d.ts +113 -35
- package/dist-types/ts3.4/commands/ListLoggingConfigurationsCommand.d.ts +191 -42
- package/dist-types/ts3.4/commands/ListManagedRuleSetsCommand.d.ts +117 -39
- package/dist-types/ts3.4/commands/ListMobileSdkReleasesCommand.d.ts +112 -42
- package/dist-types/ts3.4/commands/ListRegexPatternSetsCommand.d.ts +113 -42
- package/dist-types/ts3.4/commands/ListResourcesForWebACLCommand.d.ts +112 -42
- package/dist-types/ts3.4/commands/ListRuleGroupsCommand.d.ts +113 -38
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +132 -39
- package/dist-types/ts3.4/commands/ListWebACLsCommand.d.ts +113 -35
- package/dist-types/ts3.4/commands/PutLoggingConfigurationCommand.d.ts +345 -42
- package/dist-types/ts3.4/commands/PutManagedRuleSetVersionsCommand.d.ts +133 -42
- package/dist-types/ts3.4/commands/PutPermissionPolicyCommand.d.ts +145 -39
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +131 -35
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +118 -38
- package/dist-types/ts3.4/commands/UpdateIPSetCommand.d.ts +146 -35
- package/dist-types/ts3.4/commands/UpdateManagedRuleSetVersionExpiryDateCommand.d.ts +125 -42
- package/dist-types/ts3.4/commands/UpdateRegexPatternSetCommand.d.ts +148 -42
- package/dist-types/ts3.4/commands/UpdateRuleGroupCommand.d.ts +1128 -38
- package/dist-types/ts3.4/commands/UpdateWebACLCommand.d.ts +1146 -35
- package/dist-types/ts3.4/commands/index.d.ts +53 -53
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +22 -33
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +5 -8
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
- package/dist-types/ts3.4/extensionConfiguration.d.ts +8 -7
- package/dist-types/ts3.4/index.d.ts +68 -6
- package/dist-types/ts3.4/models/WAFV2ServiceException.d.ts +13 -8
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +7951 -1764
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +479 -641
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +46 -97
- package/dist-types/ts3.4/runtimeConfig.d.ts +46 -97
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +45 -88
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -19
- package/dist-types/ts3.4/runtimeExtensions.d.ts +17 -11
- package/package.json +3 -3
|
@@ -1,35 +1,1146 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { UpdateWebACLRequest, UpdateWebACLResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateWebACLCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateWebACLCommandInput extends UpdateWebACLRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateWebACLCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateWebACLCommandOutput extends UpdateWebACLResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Updates the specified <a>WebACL</a>. While updating a web ACL, WAF provides
|
|
27
|
+
* continuous coverage to the resources that you have associated with the web ACL. </p>
|
|
28
|
+
* <note>
|
|
29
|
+
* <p>This operation completely replaces the mutable specifications that you already have for the web ACL with the ones that you provide to this call. </p>
|
|
30
|
+
* <p>To modify a web ACL, do the following: </p>
|
|
31
|
+
* <ol>
|
|
32
|
+
* <li>
|
|
33
|
+
* <p>Retrieve it by calling <a>GetWebACL</a>
|
|
34
|
+
* </p>
|
|
35
|
+
* </li>
|
|
36
|
+
* <li>
|
|
37
|
+
* <p>Update its settings as needed</p>
|
|
38
|
+
* </li>
|
|
39
|
+
* <li>
|
|
40
|
+
* <p>Provide the complete web ACL specification to this call</p>
|
|
41
|
+
* </li>
|
|
42
|
+
* </ol>
|
|
43
|
+
* </note>
|
|
44
|
+
* <p>When you make changes to web ACLs or web ACL components, like rules and rule groups, WAF propagates the changes everywhere that the web ACL and its components are stored and used. Your changes are applied within seconds, but there might be a brief period of inconsistency when the changes have arrived in some places and not in others. So, for example, if you change a rule action setting, the action might be the old action in one area and the new action in another area. Or if you add an IP address to an IP set used in a blocking rule, the new address might briefly be blocked in one area while still allowed in another. This temporary inconsistency can occur when you first associate a web ACL with an Amazon Web Services resource and when you change a web ACL that is already associated with a resource. Generally, any inconsistencies of this type last only a few seconds.</p>
|
|
45
|
+
* <p> A web ACL defines a collection of rules to use to inspect and control web requests. Each rule has a statement that defines what to look for in web requests and an action that WAF applies to requests that match the statement. In the web ACL, you assign a default action to take (allow, block) for any request that does not match any of the rules. The rules in a web ACL can be a combination of the types <a>Rule</a>, <a>RuleGroup</a>, and managed rule group. You can associate a web ACL with one or more Amazon Web Services resources to protect. The resources can be an Amazon CloudFront distribution, an Amazon API Gateway REST API, an Application Load Balancer, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. </p>
|
|
46
|
+
* @example
|
|
47
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
48
|
+
* ```javascript
|
|
49
|
+
* import { WAFV2Client, UpdateWebACLCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
50
|
+
* // const { WAFV2Client, UpdateWebACLCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
51
|
+
* const client = new WAFV2Client(config);
|
|
52
|
+
* const input = { // UpdateWebACLRequest
|
|
53
|
+
* Name: "STRING_VALUE", // required
|
|
54
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
55
|
+
* Id: "STRING_VALUE", // required
|
|
56
|
+
* DefaultAction: { // DefaultAction
|
|
57
|
+
* Block: { // BlockAction
|
|
58
|
+
* CustomResponse: { // CustomResponse
|
|
59
|
+
* ResponseCode: Number("int"), // required
|
|
60
|
+
* CustomResponseBodyKey: "STRING_VALUE",
|
|
61
|
+
* ResponseHeaders: [ // CustomHTTPHeaders
|
|
62
|
+
* { // CustomHTTPHeader
|
|
63
|
+
* Name: "STRING_VALUE", // required
|
|
64
|
+
* Value: "STRING_VALUE", // required
|
|
65
|
+
* },
|
|
66
|
+
* ],
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* Allow: { // AllowAction
|
|
70
|
+
* CustomRequestHandling: { // CustomRequestHandling
|
|
71
|
+
* InsertHeaders: [ // required
|
|
72
|
+
* {
|
|
73
|
+
* Name: "STRING_VALUE", // required
|
|
74
|
+
* Value: "STRING_VALUE", // required
|
|
75
|
+
* },
|
|
76
|
+
* ],
|
|
77
|
+
* },
|
|
78
|
+
* },
|
|
79
|
+
* },
|
|
80
|
+
* Description: "STRING_VALUE",
|
|
81
|
+
* Rules: [ // Rules
|
|
82
|
+
* { // Rule
|
|
83
|
+
* Name: "STRING_VALUE", // required
|
|
84
|
+
* Priority: Number("int"), // required
|
|
85
|
+
* Statement: { // Statement
|
|
86
|
+
* ByteMatchStatement: { // ByteMatchStatement
|
|
87
|
+
* SearchString: "BLOB_VALUE", // required
|
|
88
|
+
* FieldToMatch: { // FieldToMatch
|
|
89
|
+
* SingleHeader: { // SingleHeader
|
|
90
|
+
* Name: "STRING_VALUE", // required
|
|
91
|
+
* },
|
|
92
|
+
* SingleQueryArgument: { // SingleQueryArgument
|
|
93
|
+
* Name: "STRING_VALUE", // required
|
|
94
|
+
* },
|
|
95
|
+
* AllQueryArguments: {},
|
|
96
|
+
* UriPath: {},
|
|
97
|
+
* QueryString: {},
|
|
98
|
+
* Body: { // Body
|
|
99
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
100
|
+
* },
|
|
101
|
+
* Method: {},
|
|
102
|
+
* JsonBody: { // JsonBody
|
|
103
|
+
* MatchPattern: { // JsonMatchPattern
|
|
104
|
+
* All: {},
|
|
105
|
+
* IncludedPaths: [ // JsonPointerPaths
|
|
106
|
+
* "STRING_VALUE",
|
|
107
|
+
* ],
|
|
108
|
+
* },
|
|
109
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
110
|
+
* InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
|
|
111
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
112
|
+
* },
|
|
113
|
+
* Headers: { // Headers
|
|
114
|
+
* MatchPattern: { // HeaderMatchPattern
|
|
115
|
+
* All: {},
|
|
116
|
+
* IncludedHeaders: [ // HeaderNames
|
|
117
|
+
* "STRING_VALUE",
|
|
118
|
+
* ],
|
|
119
|
+
* ExcludedHeaders: [
|
|
120
|
+
* "STRING_VALUE",
|
|
121
|
+
* ],
|
|
122
|
+
* },
|
|
123
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
124
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
125
|
+
* },
|
|
126
|
+
* Cookies: { // Cookies
|
|
127
|
+
* MatchPattern: { // CookieMatchPattern
|
|
128
|
+
* All: {},
|
|
129
|
+
* IncludedCookies: [ // CookieNames
|
|
130
|
+
* "STRING_VALUE",
|
|
131
|
+
* ],
|
|
132
|
+
* ExcludedCookies: [
|
|
133
|
+
* "STRING_VALUE",
|
|
134
|
+
* ],
|
|
135
|
+
* },
|
|
136
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
137
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
138
|
+
* },
|
|
139
|
+
* HeaderOrder: { // HeaderOrder
|
|
140
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
141
|
+
* },
|
|
142
|
+
* JA3Fingerprint: { // JA3Fingerprint
|
|
143
|
+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
144
|
+
* },
|
|
145
|
+
* },
|
|
146
|
+
* TextTransformations: [ // TextTransformations // required
|
|
147
|
+
* { // TextTransformation
|
|
148
|
+
* Priority: Number("int"), // required
|
|
149
|
+
* Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
|
|
150
|
+
* },
|
|
151
|
+
* ],
|
|
152
|
+
* PositionalConstraint: "EXACTLY" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "CONTAINS_WORD", // required
|
|
153
|
+
* },
|
|
154
|
+
* SqliMatchStatement: { // SqliMatchStatement
|
|
155
|
+
* FieldToMatch: {
|
|
156
|
+
* SingleHeader: {
|
|
157
|
+
* Name: "STRING_VALUE", // required
|
|
158
|
+
* },
|
|
159
|
+
* SingleQueryArgument: {
|
|
160
|
+
* Name: "STRING_VALUE", // required
|
|
161
|
+
* },
|
|
162
|
+
* AllQueryArguments: {},
|
|
163
|
+
* UriPath: {},
|
|
164
|
+
* QueryString: {},
|
|
165
|
+
* Body: {
|
|
166
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
167
|
+
* },
|
|
168
|
+
* Method: {},
|
|
169
|
+
* JsonBody: {
|
|
170
|
+
* MatchPattern: {
|
|
171
|
+
* All: {},
|
|
172
|
+
* IncludedPaths: [
|
|
173
|
+
* "STRING_VALUE",
|
|
174
|
+
* ],
|
|
175
|
+
* },
|
|
176
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
177
|
+
* InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
|
|
178
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
179
|
+
* },
|
|
180
|
+
* Headers: {
|
|
181
|
+
* MatchPattern: {
|
|
182
|
+
* All: {},
|
|
183
|
+
* IncludedHeaders: [
|
|
184
|
+
* "STRING_VALUE",
|
|
185
|
+
* ],
|
|
186
|
+
* ExcludedHeaders: [
|
|
187
|
+
* "STRING_VALUE",
|
|
188
|
+
* ],
|
|
189
|
+
* },
|
|
190
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
191
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
192
|
+
* },
|
|
193
|
+
* Cookies: {
|
|
194
|
+
* MatchPattern: {
|
|
195
|
+
* All: "<All>",
|
|
196
|
+
* IncludedCookies: [
|
|
197
|
+
* "STRING_VALUE",
|
|
198
|
+
* ],
|
|
199
|
+
* ExcludedCookies: [
|
|
200
|
+
* "STRING_VALUE",
|
|
201
|
+
* ],
|
|
202
|
+
* },
|
|
203
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
204
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
205
|
+
* },
|
|
206
|
+
* HeaderOrder: {
|
|
207
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
208
|
+
* },
|
|
209
|
+
* JA3Fingerprint: {
|
|
210
|
+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
211
|
+
* },
|
|
212
|
+
* },
|
|
213
|
+
* TextTransformations: [ // required
|
|
214
|
+
* {
|
|
215
|
+
* Priority: Number("int"), // required
|
|
216
|
+
* Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
|
|
217
|
+
* },
|
|
218
|
+
* ],
|
|
219
|
+
* SensitivityLevel: "LOW" || "HIGH",
|
|
220
|
+
* },
|
|
221
|
+
* XssMatchStatement: { // XssMatchStatement
|
|
222
|
+
* FieldToMatch: {
|
|
223
|
+
* SingleHeader: {
|
|
224
|
+
* Name: "STRING_VALUE", // required
|
|
225
|
+
* },
|
|
226
|
+
* SingleQueryArgument: {
|
|
227
|
+
* Name: "STRING_VALUE", // required
|
|
228
|
+
* },
|
|
229
|
+
* AllQueryArguments: {},
|
|
230
|
+
* UriPath: {},
|
|
231
|
+
* QueryString: {},
|
|
232
|
+
* Body: {
|
|
233
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
234
|
+
* },
|
|
235
|
+
* Method: {},
|
|
236
|
+
* JsonBody: {
|
|
237
|
+
* MatchPattern: {
|
|
238
|
+
* All: "<All>",
|
|
239
|
+
* IncludedPaths: [
|
|
240
|
+
* "STRING_VALUE",
|
|
241
|
+
* ],
|
|
242
|
+
* },
|
|
243
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
244
|
+
* InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
|
|
245
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
246
|
+
* },
|
|
247
|
+
* Headers: {
|
|
248
|
+
* MatchPattern: {
|
|
249
|
+
* All: "<All>",
|
|
250
|
+
* IncludedHeaders: [
|
|
251
|
+
* "STRING_VALUE",
|
|
252
|
+
* ],
|
|
253
|
+
* ExcludedHeaders: "<HeaderNames>",
|
|
254
|
+
* },
|
|
255
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
256
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
257
|
+
* },
|
|
258
|
+
* Cookies: {
|
|
259
|
+
* MatchPattern: {
|
|
260
|
+
* All: "<All>",
|
|
261
|
+
* IncludedCookies: [
|
|
262
|
+
* "STRING_VALUE",
|
|
263
|
+
* ],
|
|
264
|
+
* ExcludedCookies: "<CookieNames>",
|
|
265
|
+
* },
|
|
266
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
267
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
268
|
+
* },
|
|
269
|
+
* HeaderOrder: {
|
|
270
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
271
|
+
* },
|
|
272
|
+
* JA3Fingerprint: {
|
|
273
|
+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
274
|
+
* },
|
|
275
|
+
* },
|
|
276
|
+
* TextTransformations: [ // required
|
|
277
|
+
* {
|
|
278
|
+
* Priority: Number("int"), // required
|
|
279
|
+
* Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
|
|
280
|
+
* },
|
|
281
|
+
* ],
|
|
282
|
+
* },
|
|
283
|
+
* SizeConstraintStatement: { // SizeConstraintStatement
|
|
284
|
+
* FieldToMatch: {
|
|
285
|
+
* SingleHeader: {
|
|
286
|
+
* Name: "STRING_VALUE", // required
|
|
287
|
+
* },
|
|
288
|
+
* SingleQueryArgument: {
|
|
289
|
+
* Name: "STRING_VALUE", // required
|
|
290
|
+
* },
|
|
291
|
+
* AllQueryArguments: {},
|
|
292
|
+
* UriPath: {},
|
|
293
|
+
* QueryString: {},
|
|
294
|
+
* Body: {
|
|
295
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
296
|
+
* },
|
|
297
|
+
* Method: {},
|
|
298
|
+
* JsonBody: {
|
|
299
|
+
* MatchPattern: {
|
|
300
|
+
* All: "<All>",
|
|
301
|
+
* IncludedPaths: [
|
|
302
|
+
* "STRING_VALUE",
|
|
303
|
+
* ],
|
|
304
|
+
* },
|
|
305
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
306
|
+
* InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
|
|
307
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
308
|
+
* },
|
|
309
|
+
* Headers: {
|
|
310
|
+
* MatchPattern: {
|
|
311
|
+
* All: "<All>",
|
|
312
|
+
* IncludedHeaders: "<HeaderNames>",
|
|
313
|
+
* ExcludedHeaders: "<HeaderNames>",
|
|
314
|
+
* },
|
|
315
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
316
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
317
|
+
* },
|
|
318
|
+
* Cookies: {
|
|
319
|
+
* MatchPattern: {
|
|
320
|
+
* All: "<All>",
|
|
321
|
+
* IncludedCookies: "<CookieNames>",
|
|
322
|
+
* ExcludedCookies: "<CookieNames>",
|
|
323
|
+
* },
|
|
324
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
325
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
326
|
+
* },
|
|
327
|
+
* HeaderOrder: {
|
|
328
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
329
|
+
* },
|
|
330
|
+
* JA3Fingerprint: {
|
|
331
|
+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
332
|
+
* },
|
|
333
|
+
* },
|
|
334
|
+
* ComparisonOperator: "EQ" || "NE" || "LE" || "LT" || "GE" || "GT", // required
|
|
335
|
+
* Size: Number("long"), // required
|
|
336
|
+
* TextTransformations: [ // required
|
|
337
|
+
* {
|
|
338
|
+
* Priority: Number("int"), // required
|
|
339
|
+
* Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
|
|
340
|
+
* },
|
|
341
|
+
* ],
|
|
342
|
+
* },
|
|
343
|
+
* GeoMatchStatement: { // GeoMatchStatement
|
|
344
|
+
* CountryCodes: [ // CountryCodes
|
|
345
|
+
* "AF" || "AX" || "AL" || "DZ" || "AS" || "AD" || "AO" || "AI" || "AQ" || "AG" || "AR" || "AM" || "AW" || "AU" || "AT" || "AZ" || "BS" || "BH" || "BD" || "BB" || "BY" || "BE" || "BZ" || "BJ" || "BM" || "BT" || "BO" || "BQ" || "BA" || "BW" || "BV" || "BR" || "IO" || "BN" || "BG" || "BF" || "BI" || "KH" || "CM" || "CA" || "CV" || "KY" || "CF" || "TD" || "CL" || "CN" || "CX" || "CC" || "CO" || "KM" || "CG" || "CD" || "CK" || "CR" || "CI" || "HR" || "CU" || "CW" || "CY" || "CZ" || "DK" || "DJ" || "DM" || "DO" || "EC" || "EG" || "SV" || "GQ" || "ER" || "EE" || "ET" || "FK" || "FO" || "FJ" || "FI" || "FR" || "GF" || "PF" || "TF" || "GA" || "GM" || "GE" || "DE" || "GH" || "GI" || "GR" || "GL" || "GD" || "GP" || "GU" || "GT" || "GG" || "GN" || "GW" || "GY" || "HT" || "HM" || "VA" || "HN" || "HK" || "HU" || "IS" || "IN" || "ID" || "IR" || "IQ" || "IE" || "IM" || "IL" || "IT" || "JM" || "JP" || "JE" || "JO" || "KZ" || "KE" || "KI" || "KP" || "KR" || "KW" || "KG" || "LA" || "LV" || "LB" || "LS" || "LR" || "LY" || "LI" || "LT" || "LU" || "MO" || "MK" || "MG" || "MW" || "MY" || "MV" || "ML" || "MT" || "MH" || "MQ" || "MR" || "MU" || "YT" || "MX" || "FM" || "MD" || "MC" || "MN" || "ME" || "MS" || "MA" || "MZ" || "MM" || "NA" || "NR" || "NP" || "NL" || "NC" || "NZ" || "NI" || "NE" || "NG" || "NU" || "NF" || "MP" || "NO" || "OM" || "PK" || "PW" || "PS" || "PA" || "PG" || "PY" || "PE" || "PH" || "PN" || "PL" || "PT" || "PR" || "QA" || "RE" || "RO" || "RU" || "RW" || "BL" || "SH" || "KN" || "LC" || "MF" || "PM" || "VC" || "WS" || "SM" || "ST" || "SA" || "SN" || "RS" || "SC" || "SL" || "SG" || "SX" || "SK" || "SI" || "SB" || "SO" || "ZA" || "GS" || "SS" || "ES" || "LK" || "SD" || "SR" || "SJ" || "SZ" || "SE" || "CH" || "SY" || "TW" || "TJ" || "TZ" || "TH" || "TL" || "TG" || "TK" || "TO" || "TT" || "TN" || "TR" || "TM" || "TC" || "TV" || "UG" || "UA" || "AE" || "GB" || "US" || "UM" || "UY" || "UZ" || "VU" || "VE" || "VN" || "VG" || "VI" || "WF" || "EH" || "YE" || "ZM" || "ZW" || "XK",
|
|
346
|
+
* ],
|
|
347
|
+
* ForwardedIPConfig: { // ForwardedIPConfig
|
|
348
|
+
* HeaderName: "STRING_VALUE", // required
|
|
349
|
+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
350
|
+
* },
|
|
351
|
+
* },
|
|
352
|
+
* RuleGroupReferenceStatement: { // RuleGroupReferenceStatement
|
|
353
|
+
* ARN: "STRING_VALUE", // required
|
|
354
|
+
* ExcludedRules: [ // ExcludedRules
|
|
355
|
+
* { // ExcludedRule
|
|
356
|
+
* Name: "STRING_VALUE", // required
|
|
357
|
+
* },
|
|
358
|
+
* ],
|
|
359
|
+
* RuleActionOverrides: [ // RuleActionOverrides
|
|
360
|
+
* { // RuleActionOverride
|
|
361
|
+
* Name: "STRING_VALUE", // required
|
|
362
|
+
* ActionToUse: { // RuleAction
|
|
363
|
+
* Block: {
|
|
364
|
+
* CustomResponse: {
|
|
365
|
+
* ResponseCode: Number("int"), // required
|
|
366
|
+
* CustomResponseBodyKey: "STRING_VALUE",
|
|
367
|
+
* ResponseHeaders: [
|
|
368
|
+
* {
|
|
369
|
+
* Name: "STRING_VALUE", // required
|
|
370
|
+
* Value: "STRING_VALUE", // required
|
|
371
|
+
* },
|
|
372
|
+
* ],
|
|
373
|
+
* },
|
|
374
|
+
* },
|
|
375
|
+
* Allow: {
|
|
376
|
+
* CustomRequestHandling: {
|
|
377
|
+
* InsertHeaders: [ // required
|
|
378
|
+
* {
|
|
379
|
+
* Name: "STRING_VALUE", // required
|
|
380
|
+
* Value: "STRING_VALUE", // required
|
|
381
|
+
* },
|
|
382
|
+
* ],
|
|
383
|
+
* },
|
|
384
|
+
* },
|
|
385
|
+
* Count: { // CountAction
|
|
386
|
+
* CustomRequestHandling: {
|
|
387
|
+
* InsertHeaders: [ // required
|
|
388
|
+
* {
|
|
389
|
+
* Name: "STRING_VALUE", // required
|
|
390
|
+
* Value: "STRING_VALUE", // required
|
|
391
|
+
* },
|
|
392
|
+
* ],
|
|
393
|
+
* },
|
|
394
|
+
* },
|
|
395
|
+
* Captcha: { // CaptchaAction
|
|
396
|
+
* CustomRequestHandling: {
|
|
397
|
+
* InsertHeaders: "<CustomHTTPHeaders>", // required
|
|
398
|
+
* },
|
|
399
|
+
* },
|
|
400
|
+
* Challenge: { // ChallengeAction
|
|
401
|
+
* CustomRequestHandling: {
|
|
402
|
+
* InsertHeaders: "<CustomHTTPHeaders>", // required
|
|
403
|
+
* },
|
|
404
|
+
* },
|
|
405
|
+
* },
|
|
406
|
+
* },
|
|
407
|
+
* ],
|
|
408
|
+
* },
|
|
409
|
+
* IPSetReferenceStatement: { // IPSetReferenceStatement
|
|
410
|
+
* ARN: "STRING_VALUE", // required
|
|
411
|
+
* IPSetForwardedIPConfig: { // IPSetForwardedIPConfig
|
|
412
|
+
* HeaderName: "STRING_VALUE", // required
|
|
413
|
+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
414
|
+
* Position: "FIRST" || "LAST" || "ANY", // required
|
|
415
|
+
* },
|
|
416
|
+
* },
|
|
417
|
+
* RegexPatternSetReferenceStatement: { // RegexPatternSetReferenceStatement
|
|
418
|
+
* ARN: "STRING_VALUE", // required
|
|
419
|
+
* FieldToMatch: {
|
|
420
|
+
* SingleHeader: {
|
|
421
|
+
* Name: "STRING_VALUE", // required
|
|
422
|
+
* },
|
|
423
|
+
* SingleQueryArgument: {
|
|
424
|
+
* Name: "STRING_VALUE", // required
|
|
425
|
+
* },
|
|
426
|
+
* AllQueryArguments: {},
|
|
427
|
+
* UriPath: {},
|
|
428
|
+
* QueryString: {},
|
|
429
|
+
* Body: {
|
|
430
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
431
|
+
* },
|
|
432
|
+
* Method: {},
|
|
433
|
+
* JsonBody: {
|
|
434
|
+
* MatchPattern: {
|
|
435
|
+
* All: "<All>",
|
|
436
|
+
* IncludedPaths: [
|
|
437
|
+
* "STRING_VALUE",
|
|
438
|
+
* ],
|
|
439
|
+
* },
|
|
440
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
441
|
+
* InvalidFallbackBehavior: "MATCH" || "NO_MATCH" || "EVALUATE_AS_STRING",
|
|
442
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH",
|
|
443
|
+
* },
|
|
444
|
+
* Headers: {
|
|
445
|
+
* MatchPattern: {
|
|
446
|
+
* All: "<All>",
|
|
447
|
+
* IncludedHeaders: "<HeaderNames>",
|
|
448
|
+
* ExcludedHeaders: "<HeaderNames>",
|
|
449
|
+
* },
|
|
450
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
451
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
452
|
+
* },
|
|
453
|
+
* Cookies: {
|
|
454
|
+
* MatchPattern: {
|
|
455
|
+
* All: "<All>",
|
|
456
|
+
* IncludedCookies: "<CookieNames>",
|
|
457
|
+
* ExcludedCookies: "<CookieNames>",
|
|
458
|
+
* },
|
|
459
|
+
* MatchScope: "ALL" || "KEY" || "VALUE", // required
|
|
460
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
461
|
+
* },
|
|
462
|
+
* HeaderOrder: {
|
|
463
|
+
* OversizeHandling: "CONTINUE" || "MATCH" || "NO_MATCH", // required
|
|
464
|
+
* },
|
|
465
|
+
* JA3Fingerprint: {
|
|
466
|
+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
467
|
+
* },
|
|
468
|
+
* },
|
|
469
|
+
* TextTransformations: [ // required
|
|
470
|
+
* {
|
|
471
|
+
* Priority: Number("int"), // required
|
|
472
|
+
* Type: "NONE" || "COMPRESS_WHITE_SPACE" || "HTML_ENTITY_DECODE" || "LOWERCASE" || "CMD_LINE" || "URL_DECODE" || "BASE64_DECODE" || "HEX_DECODE" || "MD5" || "REPLACE_COMMENTS" || "ESCAPE_SEQ_DECODE" || "SQL_HEX_DECODE" || "CSS_DECODE" || "JS_DECODE" || "NORMALIZE_PATH" || "NORMALIZE_PATH_WIN" || "REMOVE_NULLS" || "REPLACE_NULLS" || "BASE64_DECODE_EXT" || "URL_DECODE_UNI" || "UTF8_TO_UNICODE", // required
|
|
473
|
+
* },
|
|
474
|
+
* ],
|
|
475
|
+
* },
|
|
476
|
+
* RateBasedStatement: { // RateBasedStatement
|
|
477
|
+
* Limit: Number("long"), // required
|
|
478
|
+
* AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
479
|
+
* ScopeDownStatement: {
|
|
480
|
+
* ByteMatchStatement: {
|
|
481
|
+
* SearchString: "BLOB_VALUE", // required
|
|
482
|
+
* FieldToMatch: "<FieldToMatch>", // required
|
|
483
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
484
|
+
* PositionalConstraint: "EXACTLY" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "CONTAINS_WORD", // required
|
|
485
|
+
* },
|
|
486
|
+
* SqliMatchStatement: {
|
|
487
|
+
* FieldToMatch: "<FieldToMatch>", // required
|
|
488
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
489
|
+
* SensitivityLevel: "LOW" || "HIGH",
|
|
490
|
+
* },
|
|
491
|
+
* XssMatchStatement: {
|
|
492
|
+
* FieldToMatch: "<FieldToMatch>", // required
|
|
493
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
494
|
+
* },
|
|
495
|
+
* SizeConstraintStatement: {
|
|
496
|
+
* FieldToMatch: "<FieldToMatch>", // required
|
|
497
|
+
* ComparisonOperator: "EQ" || "NE" || "LE" || "LT" || "GE" || "GT", // required
|
|
498
|
+
* Size: Number("long"), // required
|
|
499
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
500
|
+
* },
|
|
501
|
+
* GeoMatchStatement: {
|
|
502
|
+
* CountryCodes: [
|
|
503
|
+
* "AF" || "AX" || "AL" || "DZ" || "AS" || "AD" || "AO" || "AI" || "AQ" || "AG" || "AR" || "AM" || "AW" || "AU" || "AT" || "AZ" || "BS" || "BH" || "BD" || "BB" || "BY" || "BE" || "BZ" || "BJ" || "BM" || "BT" || "BO" || "BQ" || "BA" || "BW" || "BV" || "BR" || "IO" || "BN" || "BG" || "BF" || "BI" || "KH" || "CM" || "CA" || "CV" || "KY" || "CF" || "TD" || "CL" || "CN" || "CX" || "CC" || "CO" || "KM" || "CG" || "CD" || "CK" || "CR" || "CI" || "HR" || "CU" || "CW" || "CY" || "CZ" || "DK" || "DJ" || "DM" || "DO" || "EC" || "EG" || "SV" || "GQ" || "ER" || "EE" || "ET" || "FK" || "FO" || "FJ" || "FI" || "FR" || "GF" || "PF" || "TF" || "GA" || "GM" || "GE" || "DE" || "GH" || "GI" || "GR" || "GL" || "GD" || "GP" || "GU" || "GT" || "GG" || "GN" || "GW" || "GY" || "HT" || "HM" || "VA" || "HN" || "HK" || "HU" || "IS" || "IN" || "ID" || "IR" || "IQ" || "IE" || "IM" || "IL" || "IT" || "JM" || "JP" || "JE" || "JO" || "KZ" || "KE" || "KI" || "KP" || "KR" || "KW" || "KG" || "LA" || "LV" || "LB" || "LS" || "LR" || "LY" || "LI" || "LT" || "LU" || "MO" || "MK" || "MG" || "MW" || "MY" || "MV" || "ML" || "MT" || "MH" || "MQ" || "MR" || "MU" || "YT" || "MX" || "FM" || "MD" || "MC" || "MN" || "ME" || "MS" || "MA" || "MZ" || "MM" || "NA" || "NR" || "NP" || "NL" || "NC" || "NZ" || "NI" || "NE" || "NG" || "NU" || "NF" || "MP" || "NO" || "OM" || "PK" || "PW" || "PS" || "PA" || "PG" || "PY" || "PE" || "PH" || "PN" || "PL" || "PT" || "PR" || "QA" || "RE" || "RO" || "RU" || "RW" || "BL" || "SH" || "KN" || "LC" || "MF" || "PM" || "VC" || "WS" || "SM" || "ST" || "SA" || "SN" || "RS" || "SC" || "SL" || "SG" || "SX" || "SK" || "SI" || "SB" || "SO" || "ZA" || "GS" || "SS" || "ES" || "LK" || "SD" || "SR" || "SJ" || "SZ" || "SE" || "CH" || "SY" || "TW" || "TJ" || "TZ" || "TH" || "TL" || "TG" || "TK" || "TO" || "TT" || "TN" || "TR" || "TM" || "TC" || "TV" || "UG" || "UA" || "AE" || "GB" || "US" || "UM" || "UY" || "UZ" || "VU" || "VE" || "VN" || "VG" || "VI" || "WF" || "EH" || "YE" || "ZM" || "ZW" || "XK",
|
|
504
|
+
* ],
|
|
505
|
+
* ForwardedIPConfig: {
|
|
506
|
+
* HeaderName: "STRING_VALUE", // required
|
|
507
|
+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
508
|
+
* },
|
|
509
|
+
* },
|
|
510
|
+
* RuleGroupReferenceStatement: {
|
|
511
|
+
* ARN: "STRING_VALUE", // required
|
|
512
|
+
* ExcludedRules: [
|
|
513
|
+
* {
|
|
514
|
+
* Name: "STRING_VALUE", // required
|
|
515
|
+
* },
|
|
516
|
+
* ],
|
|
517
|
+
* RuleActionOverrides: [
|
|
518
|
+
* {
|
|
519
|
+
* Name: "STRING_VALUE", // required
|
|
520
|
+
* ActionToUse: {
|
|
521
|
+
* Block: "<BlockAction>",
|
|
522
|
+
* Allow: "<AllowAction>",
|
|
523
|
+
* Count: {
|
|
524
|
+
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
525
|
+
* },
|
|
526
|
+
* Captcha: {
|
|
527
|
+
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
528
|
+
* },
|
|
529
|
+
* Challenge: {
|
|
530
|
+
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
531
|
+
* },
|
|
532
|
+
* },
|
|
533
|
+
* },
|
|
534
|
+
* ],
|
|
535
|
+
* },
|
|
536
|
+
* IPSetReferenceStatement: {
|
|
537
|
+
* ARN: "STRING_VALUE", // required
|
|
538
|
+
* IPSetForwardedIPConfig: {
|
|
539
|
+
* HeaderName: "STRING_VALUE", // required
|
|
540
|
+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
541
|
+
* Position: "FIRST" || "LAST" || "ANY", // required
|
|
542
|
+
* },
|
|
543
|
+
* },
|
|
544
|
+
* RegexPatternSetReferenceStatement: {
|
|
545
|
+
* ARN: "STRING_VALUE", // required
|
|
546
|
+
* FieldToMatch: "<FieldToMatch>", // required
|
|
547
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
548
|
+
* },
|
|
549
|
+
* RateBasedStatement: {
|
|
550
|
+
* Limit: Number("long"), // required
|
|
551
|
+
* AggregateKeyType: "IP" || "FORWARDED_IP" || "CUSTOM_KEYS" || "CONSTANT", // required
|
|
552
|
+
* ScopeDownStatement: "<Statement>",
|
|
553
|
+
* ForwardedIPConfig: {
|
|
554
|
+
* HeaderName: "STRING_VALUE", // required
|
|
555
|
+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
556
|
+
* },
|
|
557
|
+
* CustomKeys: [ // RateBasedStatementCustomKeys
|
|
558
|
+
* { // RateBasedStatementCustomKey
|
|
559
|
+
* Header: { // RateLimitHeader
|
|
560
|
+
* Name: "STRING_VALUE", // required
|
|
561
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
562
|
+
* },
|
|
563
|
+
* Cookie: { // RateLimitCookie
|
|
564
|
+
* Name: "STRING_VALUE", // required
|
|
565
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
566
|
+
* },
|
|
567
|
+
* QueryArgument: { // RateLimitQueryArgument
|
|
568
|
+
* Name: "STRING_VALUE", // required
|
|
569
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
570
|
+
* },
|
|
571
|
+
* QueryString: { // RateLimitQueryString
|
|
572
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
573
|
+
* },
|
|
574
|
+
* HTTPMethod: {},
|
|
575
|
+
* ForwardedIP: {},
|
|
576
|
+
* IP: {},
|
|
577
|
+
* LabelNamespace: { // RateLimitLabelNamespace
|
|
578
|
+
* Namespace: "STRING_VALUE", // required
|
|
579
|
+
* },
|
|
580
|
+
* UriPath: { // RateLimitUriPath
|
|
581
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
582
|
+
* },
|
|
583
|
+
* },
|
|
584
|
+
* ],
|
|
585
|
+
* },
|
|
586
|
+
* AndStatement: { // AndStatement
|
|
587
|
+
* Statements: [ // Statements // required
|
|
588
|
+
* "<Statement>",
|
|
589
|
+
* ],
|
|
590
|
+
* },
|
|
591
|
+
* OrStatement: { // OrStatement
|
|
592
|
+
* Statements: [ // required
|
|
593
|
+
* "<Statement>",
|
|
594
|
+
* ],
|
|
595
|
+
* },
|
|
596
|
+
* NotStatement: { // NotStatement
|
|
597
|
+
* Statement: "<Statement>", // required
|
|
598
|
+
* },
|
|
599
|
+
* ManagedRuleGroupStatement: { // ManagedRuleGroupStatement
|
|
600
|
+
* VendorName: "STRING_VALUE", // required
|
|
601
|
+
* Name: "STRING_VALUE", // required
|
|
602
|
+
* Version: "STRING_VALUE",
|
|
603
|
+
* ExcludedRules: [
|
|
604
|
+
* {
|
|
605
|
+
* Name: "STRING_VALUE", // required
|
|
606
|
+
* },
|
|
607
|
+
* ],
|
|
608
|
+
* ScopeDownStatement: "<Statement>",
|
|
609
|
+
* ManagedRuleGroupConfigs: [ // ManagedRuleGroupConfigs
|
|
610
|
+
* { // ManagedRuleGroupConfig
|
|
611
|
+
* LoginPath: "STRING_VALUE",
|
|
612
|
+
* PayloadType: "JSON" || "FORM_ENCODED",
|
|
613
|
+
* UsernameField: { // UsernameField
|
|
614
|
+
* Identifier: "STRING_VALUE", // required
|
|
615
|
+
* },
|
|
616
|
+
* PasswordField: { // PasswordField
|
|
617
|
+
* Identifier: "STRING_VALUE", // required
|
|
618
|
+
* },
|
|
619
|
+
* AWSManagedRulesBotControlRuleSet: { // AWSManagedRulesBotControlRuleSet
|
|
620
|
+
* InspectionLevel: "COMMON" || "TARGETED", // required
|
|
621
|
+
* EnableMachineLearning: true || false,
|
|
622
|
+
* },
|
|
623
|
+
* AWSManagedRulesATPRuleSet: { // AWSManagedRulesATPRuleSet
|
|
624
|
+
* LoginPath: "STRING_VALUE", // required
|
|
625
|
+
* RequestInspection: { // RequestInspection
|
|
626
|
+
* PayloadType: "JSON" || "FORM_ENCODED", // required
|
|
627
|
+
* UsernameField: {
|
|
628
|
+
* Identifier: "STRING_VALUE", // required
|
|
629
|
+
* },
|
|
630
|
+
* PasswordField: {
|
|
631
|
+
* Identifier: "STRING_VALUE", // required
|
|
632
|
+
* },
|
|
633
|
+
* },
|
|
634
|
+
* ResponseInspection: { // ResponseInspection
|
|
635
|
+
* StatusCode: { // ResponseInspectionStatusCode
|
|
636
|
+
* SuccessCodes: [ // ResponseInspectionStatusCodeSuccessCodes // required
|
|
637
|
+
* Number("int"),
|
|
638
|
+
* ],
|
|
639
|
+
* FailureCodes: [ // ResponseInspectionStatusCodeFailureCodes // required
|
|
640
|
+
* Number("int"),
|
|
641
|
+
* ],
|
|
642
|
+
* },
|
|
643
|
+
* Header: { // ResponseInspectionHeader
|
|
644
|
+
* Name: "STRING_VALUE", // required
|
|
645
|
+
* SuccessValues: [ // ResponseInspectionHeaderSuccessValues // required
|
|
646
|
+
* "STRING_VALUE",
|
|
647
|
+
* ],
|
|
648
|
+
* FailureValues: [ // ResponseInspectionHeaderFailureValues // required
|
|
649
|
+
* "STRING_VALUE",
|
|
650
|
+
* ],
|
|
651
|
+
* },
|
|
652
|
+
* BodyContains: { // ResponseInspectionBodyContains
|
|
653
|
+
* SuccessStrings: [ // ResponseInspectionBodyContainsSuccessStrings // required
|
|
654
|
+
* "STRING_VALUE",
|
|
655
|
+
* ],
|
|
656
|
+
* FailureStrings: [ // ResponseInspectionBodyContainsFailureStrings // required
|
|
657
|
+
* "STRING_VALUE",
|
|
658
|
+
* ],
|
|
659
|
+
* },
|
|
660
|
+
* Json: { // ResponseInspectionJson
|
|
661
|
+
* Identifier: "STRING_VALUE", // required
|
|
662
|
+
* SuccessValues: [ // ResponseInspectionJsonSuccessValues // required
|
|
663
|
+
* "STRING_VALUE",
|
|
664
|
+
* ],
|
|
665
|
+
* FailureValues: [ // ResponseInspectionJsonFailureValues // required
|
|
666
|
+
* "STRING_VALUE",
|
|
667
|
+
* ],
|
|
668
|
+
* },
|
|
669
|
+
* },
|
|
670
|
+
* EnableRegexInPath: true || false,
|
|
671
|
+
* },
|
|
672
|
+
* AWSManagedRulesACFPRuleSet: { // AWSManagedRulesACFPRuleSet
|
|
673
|
+
* CreationPath: "STRING_VALUE", // required
|
|
674
|
+
* RegistrationPagePath: "STRING_VALUE", // required
|
|
675
|
+
* RequestInspection: { // RequestInspectionACFP
|
|
676
|
+
* PayloadType: "JSON" || "FORM_ENCODED", // required
|
|
677
|
+
* UsernameField: {
|
|
678
|
+
* Identifier: "STRING_VALUE", // required
|
|
679
|
+
* },
|
|
680
|
+
* PasswordField: {
|
|
681
|
+
* Identifier: "STRING_VALUE", // required
|
|
682
|
+
* },
|
|
683
|
+
* EmailField: { // EmailField
|
|
684
|
+
* Identifier: "STRING_VALUE", // required
|
|
685
|
+
* },
|
|
686
|
+
* PhoneNumberFields: [ // PhoneNumberFields
|
|
687
|
+
* { // PhoneNumberField
|
|
688
|
+
* Identifier: "STRING_VALUE", // required
|
|
689
|
+
* },
|
|
690
|
+
* ],
|
|
691
|
+
* AddressFields: [ // AddressFields
|
|
692
|
+
* { // AddressField
|
|
693
|
+
* Identifier: "STRING_VALUE", // required
|
|
694
|
+
* },
|
|
695
|
+
* ],
|
|
696
|
+
* },
|
|
697
|
+
* ResponseInspection: {
|
|
698
|
+
* StatusCode: {
|
|
699
|
+
* SuccessCodes: [ // required
|
|
700
|
+
* Number("int"),
|
|
701
|
+
* ],
|
|
702
|
+
* FailureCodes: [ // required
|
|
703
|
+
* Number("int"),
|
|
704
|
+
* ],
|
|
705
|
+
* },
|
|
706
|
+
* Header: {
|
|
707
|
+
* Name: "STRING_VALUE", // required
|
|
708
|
+
* SuccessValues: [ // required
|
|
709
|
+
* "STRING_VALUE",
|
|
710
|
+
* ],
|
|
711
|
+
* FailureValues: [ // required
|
|
712
|
+
* "STRING_VALUE",
|
|
713
|
+
* ],
|
|
714
|
+
* },
|
|
715
|
+
* BodyContains: {
|
|
716
|
+
* SuccessStrings: [ // required
|
|
717
|
+
* "STRING_VALUE",
|
|
718
|
+
* ],
|
|
719
|
+
* FailureStrings: [ // required
|
|
720
|
+
* "STRING_VALUE",
|
|
721
|
+
* ],
|
|
722
|
+
* },
|
|
723
|
+
* Json: {
|
|
724
|
+
* Identifier: "STRING_VALUE", // required
|
|
725
|
+
* SuccessValues: [ // required
|
|
726
|
+
* "STRING_VALUE",
|
|
727
|
+
* ],
|
|
728
|
+
* FailureValues: [ // required
|
|
729
|
+
* "STRING_VALUE",
|
|
730
|
+
* ],
|
|
731
|
+
* },
|
|
732
|
+
* },
|
|
733
|
+
* EnableRegexInPath: true || false,
|
|
734
|
+
* },
|
|
735
|
+
* },
|
|
736
|
+
* ],
|
|
737
|
+
* RuleActionOverrides: [
|
|
738
|
+
* {
|
|
739
|
+
* Name: "STRING_VALUE", // required
|
|
740
|
+
* ActionToUse: {
|
|
741
|
+
* Block: "<BlockAction>",
|
|
742
|
+
* Allow: "<AllowAction>",
|
|
743
|
+
* Count: {
|
|
744
|
+
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
745
|
+
* },
|
|
746
|
+
* Captcha: {
|
|
747
|
+
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
748
|
+
* },
|
|
749
|
+
* Challenge: {
|
|
750
|
+
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
751
|
+
* },
|
|
752
|
+
* },
|
|
753
|
+
* },
|
|
754
|
+
* ],
|
|
755
|
+
* },
|
|
756
|
+
* LabelMatchStatement: { // LabelMatchStatement
|
|
757
|
+
* Scope: "LABEL" || "NAMESPACE", // required
|
|
758
|
+
* Key: "STRING_VALUE", // required
|
|
759
|
+
* },
|
|
760
|
+
* RegexMatchStatement: { // RegexMatchStatement
|
|
761
|
+
* RegexString: "STRING_VALUE", // required
|
|
762
|
+
* FieldToMatch: "<FieldToMatch>", // required
|
|
763
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
764
|
+
* },
|
|
765
|
+
* },
|
|
766
|
+
* ForwardedIPConfig: {
|
|
767
|
+
* HeaderName: "STRING_VALUE", // required
|
|
768
|
+
* FallbackBehavior: "MATCH" || "NO_MATCH", // required
|
|
769
|
+
* },
|
|
770
|
+
* CustomKeys: [
|
|
771
|
+
* {
|
|
772
|
+
* Header: {
|
|
773
|
+
* Name: "STRING_VALUE", // required
|
|
774
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
775
|
+
* },
|
|
776
|
+
* Cookie: {
|
|
777
|
+
* Name: "STRING_VALUE", // required
|
|
778
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
779
|
+
* },
|
|
780
|
+
* QueryArgument: {
|
|
781
|
+
* Name: "STRING_VALUE", // required
|
|
782
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
783
|
+
* },
|
|
784
|
+
* QueryString: {
|
|
785
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
786
|
+
* },
|
|
787
|
+
* HTTPMethod: {},
|
|
788
|
+
* ForwardedIP: {},
|
|
789
|
+
* IP: {},
|
|
790
|
+
* LabelNamespace: {
|
|
791
|
+
* Namespace: "STRING_VALUE", // required
|
|
792
|
+
* },
|
|
793
|
+
* UriPath: {
|
|
794
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
795
|
+
* },
|
|
796
|
+
* },
|
|
797
|
+
* ],
|
|
798
|
+
* },
|
|
799
|
+
* AndStatement: {
|
|
800
|
+
* Statements: [ // required
|
|
801
|
+
* "<Statement>",
|
|
802
|
+
* ],
|
|
803
|
+
* },
|
|
804
|
+
* OrStatement: {
|
|
805
|
+
* Statements: [ // required
|
|
806
|
+
* "<Statement>",
|
|
807
|
+
* ],
|
|
808
|
+
* },
|
|
809
|
+
* NotStatement: {
|
|
810
|
+
* Statement: "<Statement>", // required
|
|
811
|
+
* },
|
|
812
|
+
* ManagedRuleGroupStatement: {
|
|
813
|
+
* VendorName: "STRING_VALUE", // required
|
|
814
|
+
* Name: "STRING_VALUE", // required
|
|
815
|
+
* Version: "STRING_VALUE",
|
|
816
|
+
* ExcludedRules: [
|
|
817
|
+
* {
|
|
818
|
+
* Name: "STRING_VALUE", // required
|
|
819
|
+
* },
|
|
820
|
+
* ],
|
|
821
|
+
* ScopeDownStatement: "<Statement>",
|
|
822
|
+
* ManagedRuleGroupConfigs: [
|
|
823
|
+
* {
|
|
824
|
+
* LoginPath: "STRING_VALUE",
|
|
825
|
+
* PayloadType: "JSON" || "FORM_ENCODED",
|
|
826
|
+
* UsernameField: "<UsernameField>",
|
|
827
|
+
* PasswordField: "<PasswordField>",
|
|
828
|
+
* AWSManagedRulesBotControlRuleSet: {
|
|
829
|
+
* InspectionLevel: "COMMON" || "TARGETED", // required
|
|
830
|
+
* EnableMachineLearning: true || false,
|
|
831
|
+
* },
|
|
832
|
+
* AWSManagedRulesATPRuleSet: {
|
|
833
|
+
* LoginPath: "STRING_VALUE", // required
|
|
834
|
+
* RequestInspection: {
|
|
835
|
+
* PayloadType: "JSON" || "FORM_ENCODED", // required
|
|
836
|
+
* UsernameField: "<UsernameField>", // required
|
|
837
|
+
* PasswordField: "<PasswordField>", // required
|
|
838
|
+
* },
|
|
839
|
+
* ResponseInspection: {
|
|
840
|
+
* StatusCode: {
|
|
841
|
+
* SuccessCodes: [ // required
|
|
842
|
+
* Number("int"),
|
|
843
|
+
* ],
|
|
844
|
+
* FailureCodes: [ // required
|
|
845
|
+
* Number("int"),
|
|
846
|
+
* ],
|
|
847
|
+
* },
|
|
848
|
+
* Header: {
|
|
849
|
+
* Name: "STRING_VALUE", // required
|
|
850
|
+
* SuccessValues: [ // required
|
|
851
|
+
* "STRING_VALUE",
|
|
852
|
+
* ],
|
|
853
|
+
* FailureValues: [ // required
|
|
854
|
+
* "STRING_VALUE",
|
|
855
|
+
* ],
|
|
856
|
+
* },
|
|
857
|
+
* BodyContains: {
|
|
858
|
+
* SuccessStrings: [ // required
|
|
859
|
+
* "STRING_VALUE",
|
|
860
|
+
* ],
|
|
861
|
+
* FailureStrings: [ // required
|
|
862
|
+
* "STRING_VALUE",
|
|
863
|
+
* ],
|
|
864
|
+
* },
|
|
865
|
+
* Json: {
|
|
866
|
+
* Identifier: "STRING_VALUE", // required
|
|
867
|
+
* SuccessValues: [ // required
|
|
868
|
+
* "STRING_VALUE",
|
|
869
|
+
* ],
|
|
870
|
+
* FailureValues: [ // required
|
|
871
|
+
* "STRING_VALUE",
|
|
872
|
+
* ],
|
|
873
|
+
* },
|
|
874
|
+
* },
|
|
875
|
+
* EnableRegexInPath: true || false,
|
|
876
|
+
* },
|
|
877
|
+
* AWSManagedRulesACFPRuleSet: {
|
|
878
|
+
* CreationPath: "STRING_VALUE", // required
|
|
879
|
+
* RegistrationPagePath: "STRING_VALUE", // required
|
|
880
|
+
* RequestInspection: {
|
|
881
|
+
* PayloadType: "JSON" || "FORM_ENCODED", // required
|
|
882
|
+
* UsernameField: "<UsernameField>",
|
|
883
|
+
* PasswordField: "<PasswordField>",
|
|
884
|
+
* EmailField: {
|
|
885
|
+
* Identifier: "STRING_VALUE", // required
|
|
886
|
+
* },
|
|
887
|
+
* PhoneNumberFields: [
|
|
888
|
+
* {
|
|
889
|
+
* Identifier: "STRING_VALUE", // required
|
|
890
|
+
* },
|
|
891
|
+
* ],
|
|
892
|
+
* AddressFields: [
|
|
893
|
+
* {
|
|
894
|
+
* Identifier: "STRING_VALUE", // required
|
|
895
|
+
* },
|
|
896
|
+
* ],
|
|
897
|
+
* },
|
|
898
|
+
* ResponseInspection: {
|
|
899
|
+
* StatusCode: {
|
|
900
|
+
* SuccessCodes: [ // required
|
|
901
|
+
* Number("int"),
|
|
902
|
+
* ],
|
|
903
|
+
* FailureCodes: [ // required
|
|
904
|
+
* Number("int"),
|
|
905
|
+
* ],
|
|
906
|
+
* },
|
|
907
|
+
* Header: {
|
|
908
|
+
* Name: "STRING_VALUE", // required
|
|
909
|
+
* SuccessValues: [ // required
|
|
910
|
+
* "STRING_VALUE",
|
|
911
|
+
* ],
|
|
912
|
+
* FailureValues: [ // required
|
|
913
|
+
* "STRING_VALUE",
|
|
914
|
+
* ],
|
|
915
|
+
* },
|
|
916
|
+
* BodyContains: {
|
|
917
|
+
* SuccessStrings: [ // required
|
|
918
|
+
* "STRING_VALUE",
|
|
919
|
+
* ],
|
|
920
|
+
* FailureStrings: [ // required
|
|
921
|
+
* "STRING_VALUE",
|
|
922
|
+
* ],
|
|
923
|
+
* },
|
|
924
|
+
* Json: {
|
|
925
|
+
* Identifier: "STRING_VALUE", // required
|
|
926
|
+
* SuccessValues: [ // required
|
|
927
|
+
* "STRING_VALUE",
|
|
928
|
+
* ],
|
|
929
|
+
* FailureValues: [ // required
|
|
930
|
+
* "STRING_VALUE",
|
|
931
|
+
* ],
|
|
932
|
+
* },
|
|
933
|
+
* },
|
|
934
|
+
* EnableRegexInPath: true || false,
|
|
935
|
+
* },
|
|
936
|
+
* },
|
|
937
|
+
* ],
|
|
938
|
+
* RuleActionOverrides: [
|
|
939
|
+
* {
|
|
940
|
+
* Name: "STRING_VALUE", // required
|
|
941
|
+
* ActionToUse: {
|
|
942
|
+
* Block: "<BlockAction>",
|
|
943
|
+
* Allow: "<AllowAction>",
|
|
944
|
+
* Count: {
|
|
945
|
+
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
946
|
+
* },
|
|
947
|
+
* Captcha: {
|
|
948
|
+
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
949
|
+
* },
|
|
950
|
+
* Challenge: {
|
|
951
|
+
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
952
|
+
* },
|
|
953
|
+
* },
|
|
954
|
+
* },
|
|
955
|
+
* ],
|
|
956
|
+
* },
|
|
957
|
+
* LabelMatchStatement: {
|
|
958
|
+
* Scope: "LABEL" || "NAMESPACE", // required
|
|
959
|
+
* Key: "STRING_VALUE", // required
|
|
960
|
+
* },
|
|
961
|
+
* RegexMatchStatement: {
|
|
962
|
+
* RegexString: "STRING_VALUE", // required
|
|
963
|
+
* FieldToMatch: "<FieldToMatch>", // required
|
|
964
|
+
* TextTransformations: "<TextTransformations>", // required
|
|
965
|
+
* },
|
|
966
|
+
* },
|
|
967
|
+
* Action: "<RuleAction>",
|
|
968
|
+
* OverrideAction: { // OverrideAction
|
|
969
|
+
* Count: "<CountAction>",
|
|
970
|
+
* None: {},
|
|
971
|
+
* },
|
|
972
|
+
* RuleLabels: [ // Labels
|
|
973
|
+
* { // Label
|
|
974
|
+
* Name: "STRING_VALUE", // required
|
|
975
|
+
* },
|
|
976
|
+
* ],
|
|
977
|
+
* VisibilityConfig: { // VisibilityConfig
|
|
978
|
+
* SampledRequestsEnabled: true || false, // required
|
|
979
|
+
* CloudWatchMetricsEnabled: true || false, // required
|
|
980
|
+
* MetricName: "STRING_VALUE", // required
|
|
981
|
+
* },
|
|
982
|
+
* CaptchaConfig: { // CaptchaConfig
|
|
983
|
+
* ImmunityTimeProperty: { // ImmunityTimeProperty
|
|
984
|
+
* ImmunityTime: Number("long"), // required
|
|
985
|
+
* },
|
|
986
|
+
* },
|
|
987
|
+
* ChallengeConfig: { // ChallengeConfig
|
|
988
|
+
* ImmunityTimeProperty: {
|
|
989
|
+
* ImmunityTime: Number("long"), // required
|
|
990
|
+
* },
|
|
991
|
+
* },
|
|
992
|
+
* },
|
|
993
|
+
* ],
|
|
994
|
+
* VisibilityConfig: {
|
|
995
|
+
* SampledRequestsEnabled: true || false, // required
|
|
996
|
+
* CloudWatchMetricsEnabled: true || false, // required
|
|
997
|
+
* MetricName: "STRING_VALUE", // required
|
|
998
|
+
* },
|
|
999
|
+
* LockToken: "STRING_VALUE", // required
|
|
1000
|
+
* CustomResponseBodies: { // CustomResponseBodies
|
|
1001
|
+
* "<keys>": { // CustomResponseBody
|
|
1002
|
+
* ContentType: "TEXT_PLAIN" || "TEXT_HTML" || "APPLICATION_JSON", // required
|
|
1003
|
+
* Content: "STRING_VALUE", // required
|
|
1004
|
+
* },
|
|
1005
|
+
* },
|
|
1006
|
+
* CaptchaConfig: {
|
|
1007
|
+
* ImmunityTimeProperty: {
|
|
1008
|
+
* ImmunityTime: Number("long"), // required
|
|
1009
|
+
* },
|
|
1010
|
+
* },
|
|
1011
|
+
* ChallengeConfig: {
|
|
1012
|
+
* ImmunityTimeProperty: {
|
|
1013
|
+
* ImmunityTime: Number("long"), // required
|
|
1014
|
+
* },
|
|
1015
|
+
* },
|
|
1016
|
+
* TokenDomains: [ // TokenDomains
|
|
1017
|
+
* "STRING_VALUE",
|
|
1018
|
+
* ],
|
|
1019
|
+
* AssociationConfig: { // AssociationConfig
|
|
1020
|
+
* RequestBody: { // RequestBody
|
|
1021
|
+
* "<keys>": { // RequestBodyAssociatedResourceTypeConfig
|
|
1022
|
+
* DefaultSizeInspectionLimit: "KB_16" || "KB_32" || "KB_48" || "KB_64", // required
|
|
1023
|
+
* },
|
|
1024
|
+
* },
|
|
1025
|
+
* },
|
|
1026
|
+
* };
|
|
1027
|
+
* const command = new UpdateWebACLCommand(input);
|
|
1028
|
+
* const response = await client.send(command);
|
|
1029
|
+
* // { // UpdateWebACLResponse
|
|
1030
|
+
* // NextLockToken: "STRING_VALUE",
|
|
1031
|
+
* // };
|
|
1032
|
+
*
|
|
1033
|
+
* ```
|
|
1034
|
+
*
|
|
1035
|
+
* @param UpdateWebACLCommandInput - {@link UpdateWebACLCommandInput}
|
|
1036
|
+
* @returns {@link UpdateWebACLCommandOutput}
|
|
1037
|
+
* @see {@link UpdateWebACLCommandInput} for command's `input` shape.
|
|
1038
|
+
* @see {@link UpdateWebACLCommandOutput} for command's `response` shape.
|
|
1039
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
1040
|
+
*
|
|
1041
|
+
* @throws {@link WAFConfigurationWarningException} (client fault)
|
|
1042
|
+
* <p>The operation failed because you are inspecting the web request body, headers, or
|
|
1043
|
+
* cookies without specifying how to handle oversize components. Rules that inspect the body
|
|
1044
|
+
* must either provide an <code>OversizeHandling</code> configuration or they must be preceded
|
|
1045
|
+
* by a <code>SizeConstraintStatement</code> that blocks the body content from being too
|
|
1046
|
+
* large. Rules that inspect the headers or cookies must provide an
|
|
1047
|
+
* <code>OversizeHandling</code> configuration. </p>
|
|
1048
|
+
* <p>Provide the handling configuration and retry your operation.</p>
|
|
1049
|
+
* <p>Alternately, you can suppress this warning by adding the following tag to the resource
|
|
1050
|
+
* that you provide to this operation: <code>Tag</code>
|
|
1051
|
+
* (key:<code>WAF:OversizeFieldsHandlingConstraintOptOut</code>,
|
|
1052
|
+
* value:<code>true</code>).</p>
|
|
1053
|
+
*
|
|
1054
|
+
* @throws {@link WAFDuplicateItemException} (client fault)
|
|
1055
|
+
* <p>WAF couldn’t perform the operation because the resource that you tried to save is
|
|
1056
|
+
* a duplicate of an existing one.</p>
|
|
1057
|
+
*
|
|
1058
|
+
* @throws {@link WAFExpiredManagedRuleGroupVersionException} (client fault)
|
|
1059
|
+
* <p>The operation failed because the specified version for the managed rule group has
|
|
1060
|
+
* expired. You can retrieve the available versions for the managed rule group by calling
|
|
1061
|
+
* <a>ListAvailableManagedRuleGroupVersions</a>.</p>
|
|
1062
|
+
*
|
|
1063
|
+
* @throws {@link WAFInternalErrorException} (server fault)
|
|
1064
|
+
* <p>Your request is valid, but WAF couldn’t perform the operation because of a system
|
|
1065
|
+
* problem. Retry your request. </p>
|
|
1066
|
+
*
|
|
1067
|
+
* @throws {@link WAFInvalidOperationException} (client fault)
|
|
1068
|
+
* <p>The operation isn't valid. </p>
|
|
1069
|
+
*
|
|
1070
|
+
* @throws {@link WAFInvalidParameterException} (client fault)
|
|
1071
|
+
* <p>The operation failed because WAF didn't recognize a parameter in the request. For
|
|
1072
|
+
* example: </p>
|
|
1073
|
+
* <ul>
|
|
1074
|
+
* <li>
|
|
1075
|
+
* <p>You specified a parameter name or value that isn't valid.</p>
|
|
1076
|
+
* </li>
|
|
1077
|
+
* <li>
|
|
1078
|
+
* <p>Your nested statement isn't valid. You might have tried to nest a statement that
|
|
1079
|
+
* can’t be nested. </p>
|
|
1080
|
+
* </li>
|
|
1081
|
+
* <li>
|
|
1082
|
+
* <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
|
|
1083
|
+
* isn't among the types available at <a>DefaultAction</a>.</p>
|
|
1084
|
+
* </li>
|
|
1085
|
+
* <li>
|
|
1086
|
+
* <p>Your request references an ARN that is malformed, or corresponds to a resource
|
|
1087
|
+
* with which a web ACL can't be associated.</p>
|
|
1088
|
+
* </li>
|
|
1089
|
+
* </ul>
|
|
1090
|
+
*
|
|
1091
|
+
* @throws {@link WAFInvalidResourceException} (client fault)
|
|
1092
|
+
* <p>WAF couldn’t perform the operation because the resource that you requested isn’t
|
|
1093
|
+
* valid. Check the resource, and try again.</p>
|
|
1094
|
+
*
|
|
1095
|
+
* @throws {@link WAFLimitsExceededException} (client fault)
|
|
1096
|
+
* <p>WAF couldn’t perform the operation because you exceeded your resource limit. For
|
|
1097
|
+
* example, the maximum number of <code>WebACL</code> objects that you can create for an Amazon Web Services
|
|
1098
|
+
* account. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the
|
|
1099
|
+
* <i>WAF Developer Guide</i>.</p>
|
|
1100
|
+
*
|
|
1101
|
+
* @throws {@link WAFNonexistentItemException} (client fault)
|
|
1102
|
+
* <p>WAF couldn’t perform the operation because your resource doesn't exist.
|
|
1103
|
+
* If you've just created a resource that you're using in this operation, you might
|
|
1104
|
+
* just need to wait a few minutes. It can take from a few seconds to a number of minutes
|
|
1105
|
+
* for changes to propagate. </p>
|
|
1106
|
+
*
|
|
1107
|
+
* @throws {@link WAFOptimisticLockException} (client fault)
|
|
1108
|
+
* <p>WAF couldn’t save your changes because you tried to update or delete a resource
|
|
1109
|
+
* that has changed since you last retrieved it. Get the resource again, make any changes you
|
|
1110
|
+
* need to make to the new copy, and retry your operation. </p>
|
|
1111
|
+
*
|
|
1112
|
+
* @throws {@link WAFSubscriptionNotFoundException} (client fault)
|
|
1113
|
+
* <p>You tried to use a managed rule group that's available by subscription, but you aren't
|
|
1114
|
+
* subscribed to it yet. </p>
|
|
1115
|
+
*
|
|
1116
|
+
* @throws {@link WAFUnavailableEntityException} (client fault)
|
|
1117
|
+
* <p>WAF couldn’t retrieve a resource that you specified for this operation.
|
|
1118
|
+
* If you've just created a resource that you're using in this operation, you might
|
|
1119
|
+
* just need to wait a few minutes. It can take from a few seconds to a number of minutes
|
|
1120
|
+
* for changes to propagate. Verify the resources that you are specifying in your request
|
|
1121
|
+
* parameters and then retry the operation.</p>
|
|
1122
|
+
*
|
|
1123
|
+
* @throws {@link WAFV2ServiceException}
|
|
1124
|
+
* <p>Base exception class for all service exceptions from WAFV2 service.</p>
|
|
1125
|
+
*
|
|
1126
|
+
*/
|
|
1127
|
+
export declare class UpdateWebACLCommand extends $Command<UpdateWebACLCommandInput, UpdateWebACLCommandOutput, WAFV2ClientResolvedConfig> {
|
|
1128
|
+
readonly input: UpdateWebACLCommandInput;
|
|
1129
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
1130
|
+
/**
|
|
1131
|
+
* @public
|
|
1132
|
+
*/
|
|
1133
|
+
constructor(input: UpdateWebACLCommandInput);
|
|
1134
|
+
/**
|
|
1135
|
+
* @internal
|
|
1136
|
+
*/
|
|
1137
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WAFV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateWebACLCommandInput, UpdateWebACLCommandOutput>;
|
|
1138
|
+
/**
|
|
1139
|
+
* @internal
|
|
1140
|
+
*/
|
|
1141
|
+
private serialize;
|
|
1142
|
+
/**
|
|
1143
|
+
* @internal
|
|
1144
|
+
*/
|
|
1145
|
+
private deserialize;
|
|
1146
|
+
}
|