@aws-sdk/client-wafv2 3.332.0 → 3.334.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/models/models_0.js +19 -1
- package/dist-cjs/protocols/Aws_json1_1.js +14 -0
- package/dist-es/models/models_0.js +17 -0
- package/dist-es/protocols/Aws_json1_1.js +15 -1
- package/dist-types/commands/CheckCapacityCommand.d.ts +52 -2
- package/dist-types/commands/CreateRuleGroupCommand.d.ts +52 -2
- package/dist-types/commands/CreateWebACLCommand.d.ts +52 -2
- package/dist-types/commands/GetRateBasedStatementManagedKeysCommand.d.ts +9 -2
- package/dist-types/commands/GetRuleGroupCommand.d.ts +52 -2
- package/dist-types/commands/GetWebACLCommand.d.ts +52 -2
- package/dist-types/commands/GetWebACLForResourceCommand.d.ts +52 -2
- package/dist-types/commands/UpdateRuleGroupCommand.d.ts +52 -2
- package/dist-types/commands/UpdateWebACLCommand.d.ts +52 -2
- package/dist-types/models/models_0.d.ts +353 -48
- package/dist-types/ts3.4/models/models_0.d.ts +47 -0
- package/package.json +1 -1
|
@@ -676,8 +676,8 @@ export type TextTransformationType = (typeof TextTransformationType)[keyof typeo
|
|
|
676
676
|
*/
|
|
677
677
|
export interface TextTransformation {
|
|
678
678
|
/**
|
|
679
|
-
* <p>Sets the relative processing order for multiple transformations
|
|
680
|
-
*
|
|
679
|
+
* <p>Sets the relative processing order for multiple transformations.
|
|
680
|
+
* WAF processes all transformations, from lowest priority to highest,
|
|
681
681
|
* before inspecting the transformed content. The priorities don't need to be consecutive, but
|
|
682
682
|
* they must all be different. </p>
|
|
683
683
|
*/
|
|
@@ -891,9 +891,7 @@ export interface ByteMatchStatement {
|
|
|
891
891
|
*/
|
|
892
892
|
FieldToMatch: FieldToMatch | undefined;
|
|
893
893
|
/**
|
|
894
|
-
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
|
|
895
|
-
* If you specify one or more transformations in a rule statement, WAF performs all transformations on the
|
|
896
|
-
* content of the request component identified by <code>FieldToMatch</code>, starting from the lowest priority setting, before inspecting the content for a match.</p>
|
|
894
|
+
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the <code>FieldToMatch</code> request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the component contents. </p>
|
|
897
895
|
*/
|
|
898
896
|
TextTransformations: TextTransformation[] | undefined;
|
|
899
897
|
/**
|
|
@@ -1963,6 +1961,8 @@ export interface RuleActionOverride {
|
|
|
1963
1961
|
* @enum
|
|
1964
1962
|
*/
|
|
1965
1963
|
export declare const RateBasedStatementAggregateKeyType: {
|
|
1964
|
+
readonly CONSTANT: "CONSTANT";
|
|
1965
|
+
readonly CUSTOM_KEYS: "CUSTOM_KEYS";
|
|
1966
1966
|
readonly FORWARDED_IP: "FORWARDED_IP";
|
|
1967
1967
|
readonly IP: "IP";
|
|
1968
1968
|
};
|
|
@@ -1970,6 +1970,163 @@ export declare const RateBasedStatementAggregateKeyType: {
|
|
|
1970
1970
|
* @public
|
|
1971
1971
|
*/
|
|
1972
1972
|
export type RateBasedStatementAggregateKeyType = (typeof RateBasedStatementAggregateKeyType)[keyof typeof RateBasedStatementAggregateKeyType];
|
|
1973
|
+
/**
|
|
1974
|
+
* @public
|
|
1975
|
+
* <p>Specifies a cookie as an aggregate key for a rate-based rule. Each distinct value in the cookie contributes to the aggregation instance. If you use a single
|
|
1976
|
+
* cookie as your custom key, then each value fully defines an aggregation instance. </p>
|
|
1977
|
+
*/
|
|
1978
|
+
export interface RateLimitCookie {
|
|
1979
|
+
/**
|
|
1980
|
+
* <p>The name of the cookie to use. </p>
|
|
1981
|
+
*/
|
|
1982
|
+
Name: string | undefined;
|
|
1983
|
+
/**
|
|
1984
|
+
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the <code>FieldToMatch</code> request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the component contents. </p>
|
|
1985
|
+
*/
|
|
1986
|
+
TextTransformations: TextTransformation[] | undefined;
|
|
1987
|
+
}
|
|
1988
|
+
/**
|
|
1989
|
+
* @public
|
|
1990
|
+
* <p>Specifies the first IP address in an HTTP header as an aggregate key for a rate-based rule. Each distinct forwarded IP address contributes to the aggregation instance.</p>
|
|
1991
|
+
* <p>This setting is used only in the <code>RateBasedStatementCustomKey</code> specification of a rate-based rule statement.
|
|
1992
|
+
* When you specify an IP or forwarded IP in the custom key settings, you must also specify at least one other key to use.
|
|
1993
|
+
* You can aggregate on only the forwarded IP address by specifying <code>FORWARDED_IP</code> in your rate-based statement's <code>AggregateKeyType</code>. </p>
|
|
1994
|
+
* <p>This data type supports using the forwarded IP address in the web request aggregation for a rate-based rule, in <code>RateBasedStatementCustomKey</code>. The JSON specification for using the forwarded IP address doesn't explicitly use this data type. </p>
|
|
1995
|
+
* <p>JSON specification: <code>"ForwardedIP": \{\}</code>
|
|
1996
|
+
* </p>
|
|
1997
|
+
* <p>When you use this specification, you must also configure the forwarded IP address in the rate-based statement's <code>ForwardedIPConfig</code>. </p>
|
|
1998
|
+
*/
|
|
1999
|
+
export interface RateLimitForwardedIP {
|
|
2000
|
+
}
|
|
2001
|
+
/**
|
|
2002
|
+
* @public
|
|
2003
|
+
* <p>Specifies a header as an aggregate key for a rate-based rule. Each distinct value in the header contributes to the aggregation instance. If you use a single
|
|
2004
|
+
* header as your custom key, then each value fully defines an aggregation instance. </p>
|
|
2005
|
+
*/
|
|
2006
|
+
export interface RateLimitHeader {
|
|
2007
|
+
/**
|
|
2008
|
+
* <p>The name of the header to use. </p>
|
|
2009
|
+
*/
|
|
2010
|
+
Name: string | undefined;
|
|
2011
|
+
/**
|
|
2012
|
+
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the <code>FieldToMatch</code> request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the component contents. </p>
|
|
2013
|
+
*/
|
|
2014
|
+
TextTransformations: TextTransformation[] | undefined;
|
|
2015
|
+
}
|
|
2016
|
+
/**
|
|
2017
|
+
* @public
|
|
2018
|
+
* <p>Specifies the request's HTTP method as an aggregate key for a rate-based rule. Each distinct HTTP method contributes to the aggregation instance. If you use just the HTTP method
|
|
2019
|
+
* as your custom key, then each method fully defines an aggregation instance. </p>
|
|
2020
|
+
* <p>JSON specification: <code>"RateLimitHTTPMethod": \{\}</code>
|
|
2021
|
+
* </p>
|
|
2022
|
+
*/
|
|
2023
|
+
export interface RateLimitHTTPMethod {
|
|
2024
|
+
}
|
|
2025
|
+
/**
|
|
2026
|
+
* @public
|
|
2027
|
+
* <p>Specifies the IP address in the web request as an aggregate key for a rate-based rule. Each distinct IP address contributes to the aggregation instance. </p>
|
|
2028
|
+
* <p>This setting is used only in the <code>RateBasedStatementCustomKey</code> specification of a rate-based rule statement.
|
|
2029
|
+
* To use this in the custom key settings, you must specify at least one other key to use, along with the IP address.
|
|
2030
|
+
* To aggregate on only the IP address, in your rate-based statement's <code>AggregateKeyType</code>, specify <code>IP</code>.</p>
|
|
2031
|
+
* <p>JSON specification: <code>"RateLimitIP": \{\}</code>
|
|
2032
|
+
* </p>
|
|
2033
|
+
*/
|
|
2034
|
+
export interface RateLimitIP {
|
|
2035
|
+
}
|
|
2036
|
+
/**
|
|
2037
|
+
* @public
|
|
2038
|
+
* <p>Specifies a label namespace to use as an aggregate key for a rate-based rule. Each distinct fully qualified label name that has the specified label namespace contributes to the aggregation instance. If you use just one label namespace as your custom key, then each label name fully defines an aggregation instance. </p>
|
|
2039
|
+
* <p>This uses only labels that have been added to the request by rules that are evaluated before this rate-based rule in the web ACL. </p>
|
|
2040
|
+
* <p>For information about label namespaces and names, see
|
|
2041
|
+
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-label-requirements.html">Label syntax and naming requirements</a> in the <i>WAF Developer Guide</i>.</p>
|
|
2042
|
+
*/
|
|
2043
|
+
export interface RateLimitLabelNamespace {
|
|
2044
|
+
/**
|
|
2045
|
+
* <p>The namespace to use for aggregation. </p>
|
|
2046
|
+
*/
|
|
2047
|
+
Namespace: string | undefined;
|
|
2048
|
+
}
|
|
2049
|
+
/**
|
|
2050
|
+
* @public
|
|
2051
|
+
* <p>Specifies a query argument in the request as an aggregate key for a rate-based rule. Each distinct value for the named query argument contributes to the aggregation instance. If you
|
|
2052
|
+
* use a single query argument as your custom key, then each value fully defines an aggregation instance. </p>
|
|
2053
|
+
*/
|
|
2054
|
+
export interface RateLimitQueryArgument {
|
|
2055
|
+
/**
|
|
2056
|
+
* <p>The name of the query argument to use. </p>
|
|
2057
|
+
*/
|
|
2058
|
+
Name: string | undefined;
|
|
2059
|
+
/**
|
|
2060
|
+
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the <code>FieldToMatch</code> request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the component contents. </p>
|
|
2061
|
+
*/
|
|
2062
|
+
TextTransformations: TextTransformation[] | undefined;
|
|
2063
|
+
}
|
|
2064
|
+
/**
|
|
2065
|
+
* @public
|
|
2066
|
+
* <p>Specifies the request's query string as an aggregate key for a rate-based rule. Each distinct string contributes to the aggregation instance. If you use just the
|
|
2067
|
+
* query string as your custom key, then each string fully defines an aggregation instance. </p>
|
|
2068
|
+
*/
|
|
2069
|
+
export interface RateLimitQueryString {
|
|
2070
|
+
/**
|
|
2071
|
+
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the <code>FieldToMatch</code> request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the component contents. </p>
|
|
2072
|
+
*/
|
|
2073
|
+
TextTransformations: TextTransformation[] | undefined;
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* @public
|
|
2077
|
+
* <p>Specifies a single custom aggregate key for a rate-base rule. </p>
|
|
2078
|
+
* <note>
|
|
2079
|
+
* <p>Web requests that are missing any of the components specified in the aggregation keys
|
|
2080
|
+
* are omitted from the rate-based rule evaluation and handling. </p>
|
|
2081
|
+
* </note>
|
|
2082
|
+
*/
|
|
2083
|
+
export interface RateBasedStatementCustomKey {
|
|
2084
|
+
/**
|
|
2085
|
+
* <p>Use the value of a header in the request as an aggregate key. Each distinct value in the header contributes to the aggregation instance. If you use a single
|
|
2086
|
+
* header as your custom key, then each value fully defines an aggregation instance. </p>
|
|
2087
|
+
*/
|
|
2088
|
+
Header?: RateLimitHeader;
|
|
2089
|
+
/**
|
|
2090
|
+
* <p>Use the value of a cookie in the request as an aggregate key. Each distinct value in the cookie contributes to the aggregation instance. If you use a single
|
|
2091
|
+
* cookie as your custom key, then each value fully defines an aggregation instance. </p>
|
|
2092
|
+
*/
|
|
2093
|
+
Cookie?: RateLimitCookie;
|
|
2094
|
+
/**
|
|
2095
|
+
* <p>Use the specified query argument as an aggregate key. Each distinct value for the named query argument contributes to the aggregation instance. If you
|
|
2096
|
+
* use a single query argument as your custom key, then each value fully defines an aggregation instance. </p>
|
|
2097
|
+
*/
|
|
2098
|
+
QueryArgument?: RateLimitQueryArgument;
|
|
2099
|
+
/**
|
|
2100
|
+
* <p>Use the request's query string as an aggregate key. Each distinct string contributes to the aggregation instance. If you use just the
|
|
2101
|
+
* query string as your custom key, then each string fully defines an aggregation instance. </p>
|
|
2102
|
+
*/
|
|
2103
|
+
QueryString?: RateLimitQueryString;
|
|
2104
|
+
/**
|
|
2105
|
+
* <p>Use the request's HTTP method as an aggregate key. Each distinct HTTP method contributes to the aggregation instance. If you use just the HTTP method
|
|
2106
|
+
* as your custom key, then each method fully defines an aggregation instance. </p>
|
|
2107
|
+
*/
|
|
2108
|
+
HTTPMethod?: RateLimitHTTPMethod;
|
|
2109
|
+
/**
|
|
2110
|
+
* <p>Use the first IP address in an HTTP header as an aggregate key. Each distinct forwarded IP address contributes to the aggregation instance.</p>
|
|
2111
|
+
* <p>When you specify an IP or forwarded IP in the custom key settings, you must also specify at least one other key to use.
|
|
2112
|
+
* You can aggregate on only the forwarded IP address by specifying <code>FORWARDED_IP</code> in your rate-based statement's <code>AggregateKeyType</code>. </p>
|
|
2113
|
+
* <p>With this option, you must specify the header to use in the rate-based rule's <code>ForwardedIPConfig</code> property. </p>
|
|
2114
|
+
*/
|
|
2115
|
+
ForwardedIP?: RateLimitForwardedIP;
|
|
2116
|
+
/**
|
|
2117
|
+
* <p>Use the request's originating IP address as an aggregate key. Each distinct IP address contributes to the aggregation instance.</p>
|
|
2118
|
+
* <p>When you specify an IP or forwarded IP in the custom key settings, you must also specify at least one other key to use.
|
|
2119
|
+
* You can aggregate on only the IP address by specifying <code>IP</code> in your rate-based statement's <code>AggregateKeyType</code>. </p>
|
|
2120
|
+
*/
|
|
2121
|
+
IP?: RateLimitIP;
|
|
2122
|
+
/**
|
|
2123
|
+
* <p>Use the specified label namespace as an aggregate key. Each distinct fully qualified label name that has the specified label namespace contributes to the aggregation instance. If you use just one label namespace as your custom key, then each label name fully defines an aggregation instance. </p>
|
|
2124
|
+
* <p>This uses only labels that have been added to the request by rules that are evaluated before this rate-based rule in the web ACL. </p>
|
|
2125
|
+
* <p>For information about label namespaces and names, see
|
|
2126
|
+
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-label-requirements.html">Label syntax and naming requirements</a> in the <i>WAF Developer Guide</i>.</p>
|
|
2127
|
+
*/
|
|
2128
|
+
LabelNamespace?: RateLimitLabelNamespace;
|
|
2129
|
+
}
|
|
1973
2130
|
/**
|
|
1974
2131
|
* @public
|
|
1975
2132
|
* <p>A rule statement used to search web request components for a match against a single regular expression. </p>
|
|
@@ -1984,9 +2141,7 @@ export interface RegexMatchStatement {
|
|
|
1984
2141
|
*/
|
|
1985
2142
|
FieldToMatch: FieldToMatch | undefined;
|
|
1986
2143
|
/**
|
|
1987
|
-
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
|
|
1988
|
-
* If you specify one or more transformations in a rule statement, WAF performs all transformations on the
|
|
1989
|
-
* content of the request component identified by <code>FieldToMatch</code>, starting from the lowest priority setting, before inspecting the content for a match.</p>
|
|
2144
|
+
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the <code>FieldToMatch</code> request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the component contents. </p>
|
|
1990
2145
|
*/
|
|
1991
2146
|
TextTransformations: TextTransformation[] | undefined;
|
|
1992
2147
|
}
|
|
@@ -2006,9 +2161,7 @@ export interface RegexPatternSetReferenceStatement {
|
|
|
2006
2161
|
*/
|
|
2007
2162
|
FieldToMatch: FieldToMatch | undefined;
|
|
2008
2163
|
/**
|
|
2009
|
-
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
|
|
2010
|
-
* If you specify one or more transformations in a rule statement, WAF performs all transformations on the
|
|
2011
|
-
* content of the request component identified by <code>FieldToMatch</code>, starting from the lowest priority setting, before inspecting the content for a match.</p>
|
|
2164
|
+
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the <code>FieldToMatch</code> request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the component contents. </p>
|
|
2012
2165
|
*/
|
|
2013
2166
|
TextTransformations: TextTransformation[] | undefined;
|
|
2014
2167
|
}
|
|
@@ -2072,9 +2225,7 @@ export interface SizeConstraintStatement {
|
|
|
2072
2225
|
*/
|
|
2073
2226
|
Size: number | undefined;
|
|
2074
2227
|
/**
|
|
2075
|
-
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
|
|
2076
|
-
* If you specify one or more transformations in a rule statement, WAF performs all transformations on the
|
|
2077
|
-
* content of the request component identified by <code>FieldToMatch</code>, starting from the lowest priority setting, before inspecting the content for a match.</p>
|
|
2228
|
+
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the <code>FieldToMatch</code> request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the component contents. </p>
|
|
2078
2229
|
*/
|
|
2079
2230
|
TextTransformations: TextTransformation[] | undefined;
|
|
2080
2231
|
}
|
|
@@ -2100,9 +2251,7 @@ export interface SqliMatchStatement {
|
|
|
2100
2251
|
*/
|
|
2101
2252
|
FieldToMatch: FieldToMatch | undefined;
|
|
2102
2253
|
/**
|
|
2103
|
-
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
|
|
2104
|
-
* If you specify one or more transformations in a rule statement, WAF performs all transformations on the
|
|
2105
|
-
* content of the request component identified by <code>FieldToMatch</code>, starting from the lowest priority setting, before inspecting the content for a match.</p>
|
|
2254
|
+
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the <code>FieldToMatch</code> request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the component contents. </p>
|
|
2106
2255
|
*/
|
|
2107
2256
|
TextTransformations: TextTransformation[] | undefined;
|
|
2108
2257
|
/**
|
|
@@ -2132,9 +2281,7 @@ export interface XssMatchStatement {
|
|
|
2132
2281
|
*/
|
|
2133
2282
|
FieldToMatch: FieldToMatch | undefined;
|
|
2134
2283
|
/**
|
|
2135
|
-
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
|
|
2136
|
-
* If you specify one or more transformations in a rule statement, WAF performs all transformations on the
|
|
2137
|
-
* content of the request component identified by <code>FieldToMatch</code>, starting from the lowest priority setting, before inspecting the content for a match.</p>
|
|
2284
|
+
* <p>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the <code>FieldToMatch</code> request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the component contents. </p>
|
|
2138
2285
|
*/
|
|
2139
2286
|
TextTransformations: TextTransformation[] | undefined;
|
|
2140
2287
|
}
|
|
@@ -2267,6 +2414,7 @@ export declare const ParameterExceptionField: {
|
|
|
2267
2414
|
readonly CHALLENGE_CONFIG: "CHALLENGE_CONFIG";
|
|
2268
2415
|
readonly CHANGE_PROPAGATION_STATUS: "CHANGE_PROPAGATION_STATUS";
|
|
2269
2416
|
readonly COOKIE_MATCH_PATTERN: "COOKIE_MATCH_PATTERN";
|
|
2417
|
+
readonly CUSTOM_KEYS: "CUSTOM_KEYS";
|
|
2270
2418
|
readonly CUSTOM_REQUEST_HANDLING: "CUSTOM_REQUEST_HANDLING";
|
|
2271
2419
|
readonly CUSTOM_RESPONSE: "CUSTOM_RESPONSE";
|
|
2272
2420
|
readonly CUSTOM_RESPONSE_BODY: "CUSTOM_RESPONSE_BODY";
|
|
@@ -2313,6 +2461,7 @@ export declare const ParameterExceptionField: {
|
|
|
2313
2461
|
readonly RULE_ACTION: "RULE_ACTION";
|
|
2314
2462
|
readonly RULE_GROUP: "RULE_GROUP";
|
|
2315
2463
|
readonly RULE_GROUP_REFERENCE_STATEMENT: "RULE_GROUP_REFERENCE_STATEMENT";
|
|
2464
|
+
readonly SCOPE_DOWN: "SCOPE_DOWN";
|
|
2316
2465
|
readonly SCOPE_VALUE: "SCOPE_VALUE";
|
|
2317
2466
|
readonly SINGLE_HEADER: "SINGLE_HEADER";
|
|
2318
2467
|
readonly SINGLE_QUERY_ARGUMENT: "SINGLE_QUERY_ARGUMENT";
|
|
@@ -4076,7 +4225,10 @@ export interface GetRateBasedStatementManagedKeysRequest {
|
|
|
4076
4225
|
}
|
|
4077
4226
|
/**
|
|
4078
4227
|
* @public
|
|
4079
|
-
* <p>The set of IP addresses that are currently blocked for a <a>RateBasedStatement</a
|
|
4228
|
+
* <p>The set of IP addresses that are currently blocked for a <a>RateBasedStatement</a>. This is only available for rate-based rules
|
|
4229
|
+
* that aggregate on just the IP address, with the <code>AggregateKeyType</code> set to <code>IP</code> or <code>FORWARDED_IP</code>.</p>
|
|
4230
|
+
* <p>A rate-based rule applies its rule action to requests from IP addresses that are in the rule's managed keys list and that match the rule's scope-down statement. When a rule has no scope-down statement, it applies the action to all requests from the IP addresses that are in the list. The rule applies its rule action to rate limit the matching requests. The action is usually Block but it can be any valid rule action except for Allow. </p>
|
|
4231
|
+
* <p>The maximum number of IP addresses that can be rate limited by a single rate-based rule instance is 10,000. If more than 10,000 addresses exceed the rate limit, WAF limits those with the highest rates. </p>
|
|
4080
4232
|
*/
|
|
4081
4233
|
export interface RateBasedStatementManagedKeysIPSet {
|
|
4082
4234
|
/**
|
|
@@ -4101,6 +4253,20 @@ export interface GetRateBasedStatementManagedKeysResponse {
|
|
|
4101
4253
|
*/
|
|
4102
4254
|
ManagedKeysIPV6?: RateBasedStatementManagedKeysIPSet;
|
|
4103
4255
|
}
|
|
4256
|
+
/**
|
|
4257
|
+
* @public
|
|
4258
|
+
* <p>The rule that you've named doesn't aggregate solely on the IP address or solely on the forwarded IP address. This call
|
|
4259
|
+
* is only available for rate-based rules with an <code>AggregateKeyType</code> setting of <code>IP</code> or <code>FORWARDED_IP</code>.</p>
|
|
4260
|
+
*/
|
|
4261
|
+
export declare class WAFUnsupportedAggregateKeyTypeException extends __BaseException {
|
|
4262
|
+
readonly name: "WAFUnsupportedAggregateKeyTypeException";
|
|
4263
|
+
readonly $fault: "client";
|
|
4264
|
+
Message?: string;
|
|
4265
|
+
/**
|
|
4266
|
+
* @internal
|
|
4267
|
+
*/
|
|
4268
|
+
constructor(opts: __ExceptionOptionType<WAFUnsupportedAggregateKeyTypeException, __BaseException>);
|
|
4269
|
+
}
|
|
4104
4270
|
/**
|
|
4105
4271
|
* @public
|
|
4106
4272
|
*/
|
|
@@ -5720,20 +5886,72 @@ export interface Statement {
|
|
|
5720
5886
|
*/
|
|
5721
5887
|
RegexPatternSetReferenceStatement?: RegexPatternSetReferenceStatement;
|
|
5722
5888
|
/**
|
|
5723
|
-
* <p>A rate-based rule
|
|
5724
|
-
* <p>
|
|
5725
|
-
* <p>
|
|
5726
|
-
* <p>
|
|
5889
|
+
* <p>A rate-based rule counts incoming requests and rate limits requests when they are coming at too fast a rate. The rule categorizes requests according to your aggregation criteria, collects them into aggregation instances, and counts and rate limits the requests for each instance. </p>
|
|
5890
|
+
* <p>You can specify individual aggregation keys, like IP address or HTTP method. You can also specify aggregation key combinations, like IP address and HTTP method, or HTTP method, query argument, and cookie. </p>
|
|
5891
|
+
* <p>Each unique set of values for the aggregation keys that you specify is a separate aggregation instance, with the value from each key contributing to the aggregation instance definition. </p>
|
|
5892
|
+
* <p>For example, assume the rule evaluates web requests with the following IP address and HTTP method values: </p>
|
|
5727
5893
|
* <ul>
|
|
5728
5894
|
* <li>
|
|
5729
|
-
* <p>
|
|
5895
|
+
* <p>IP address 10.1.1.1, HTTP method POST</p>
|
|
5896
|
+
* </li>
|
|
5897
|
+
* <li>
|
|
5898
|
+
* <p>IP address 10.1.1.1, HTTP method GET</p>
|
|
5899
|
+
* </li>
|
|
5900
|
+
* <li>
|
|
5901
|
+
* <p>IP address 127.0.0.0, HTTP method POST</p>
|
|
5902
|
+
* </li>
|
|
5903
|
+
* <li>
|
|
5904
|
+
* <p>IP address 10.1.1.1, HTTP method GET</p>
|
|
5730
5905
|
* </li>
|
|
5906
|
+
* </ul>
|
|
5907
|
+
* <p>The rule would create different aggregation instances according to your aggregation criteria, for example: </p>
|
|
5908
|
+
* <ul>
|
|
5731
5909
|
* <li>
|
|
5732
|
-
* <p>
|
|
5910
|
+
* <p>If the aggregation criteria is just the IP address, then each individual address is an aggregation instance, and WAF counts requests separately for each. The aggregation instances and request counts for our example would be the following: </p>
|
|
5911
|
+
* <ul>
|
|
5912
|
+
* <li>
|
|
5913
|
+
* <p>IP address 10.1.1.1: count 3</p>
|
|
5914
|
+
* </li>
|
|
5915
|
+
* <li>
|
|
5916
|
+
* <p>IP address 127.0.0.0: count 1</p>
|
|
5917
|
+
* </li>
|
|
5918
|
+
* </ul>
|
|
5919
|
+
* </li>
|
|
5920
|
+
* <li>
|
|
5921
|
+
* <p>If the aggregation criteria is HTTP method, then each individual HTTP method is an aggregation instance. The aggregation instances and request counts for our example would be the following: </p>
|
|
5922
|
+
* <ul>
|
|
5923
|
+
* <li>
|
|
5924
|
+
* <p>HTTP method POST: count 2</p>
|
|
5925
|
+
* </li>
|
|
5926
|
+
* <li>
|
|
5927
|
+
* <p>HTTP method GET: count 2</p>
|
|
5928
|
+
* </li>
|
|
5929
|
+
* </ul>
|
|
5930
|
+
* </li>
|
|
5931
|
+
* <li>
|
|
5932
|
+
* <p>If the aggregation criteria is IP address and HTTP method, then each IP address and each HTTP method would contribute to the combined aggregation instance. The aggregation instances and request counts for our example would be the following: </p>
|
|
5933
|
+
* <ul>
|
|
5934
|
+
* <li>
|
|
5935
|
+
* <p>IP address 10.1.1.1, HTTP method POST: count 1</p>
|
|
5936
|
+
* </li>
|
|
5937
|
+
* <li>
|
|
5938
|
+
* <p>IP address 10.1.1.1, HTTP method GET: count 2</p>
|
|
5939
|
+
* </li>
|
|
5940
|
+
* <li>
|
|
5941
|
+
* <p>IP address 127.0.0.0, HTTP method POST: count 1</p>
|
|
5942
|
+
* </li>
|
|
5943
|
+
* </ul>
|
|
5733
5944
|
* </li>
|
|
5734
5945
|
* </ul>
|
|
5735
|
-
* <p>
|
|
5946
|
+
* <p>For any n-tuple of aggregation keys, each unique combination of values for the keys defines a separate aggregation instance, which WAF counts and rate-limits individually. </p>
|
|
5947
|
+
* <p>You can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts and rate limits requests that match the nested statement. You can use this nested scope-down statement in conjunction with your aggregation key specifications or you can just count and rate limit all requests that match the scope-down statement, without additional aggregation. When you choose to just manage all requests that match a scope-down statement, the aggregation instance is singular for the rule. </p>
|
|
5736
5948
|
* <p>You cannot nest a <code>RateBasedStatement</code> inside another statement, for example inside a <code>NotStatement</code> or <code>OrStatement</code>. You can define a <code>RateBasedStatement</code> inside a web ACL and inside a rule group. </p>
|
|
5949
|
+
* <p>For additional information about the options, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-rate-based-rules.html">Rate limiting web requests using rate-based rules</a>
|
|
5950
|
+
* in the <i>WAF Developer Guide</i>. </p>
|
|
5951
|
+
* <p>If you only aggregate on the individual IP address or forwarded IP address, you can retrieve the list of IP addresses that WAF
|
|
5952
|
+
* is currently rate limiting for a rule through the API call <code>GetRateBasedStatementManagedKeys</code>. This option is not available
|
|
5953
|
+
* for other aggregation configurations.</p>
|
|
5954
|
+
* <p>WAF tracks and manages web requests separately for each instance of a rate-based rule that you use. For example, if you provide the same rate-based rule settings in two web ACLs, each of the two rule statements represents a separate instance of the rate-based rule and gets its own tracking and management by WAF. If you define a rate-based rule inside a rule group, and then use that rule group in multiple places, each use creates a separate instance of the rate-based rule that gets its own tracking and management by WAF. </p>
|
|
5737
5955
|
*/
|
|
5738
5956
|
RateBasedStatement?: RateBasedStatement;
|
|
5739
5957
|
/**
|
|
@@ -5830,48 +6048,132 @@ export interface NotStatement {
|
|
|
5830
6048
|
}
|
|
5831
6049
|
/**
|
|
5832
6050
|
* @public
|
|
5833
|
-
* <p>A rate-based rule
|
|
5834
|
-
* <p>
|
|
5835
|
-
* <p>
|
|
5836
|
-
* <p>
|
|
6051
|
+
* <p>A rate-based rule counts incoming requests and rate limits requests when they are coming at too fast a rate. The rule categorizes requests according to your aggregation criteria, collects them into aggregation instances, and counts and rate limits the requests for each instance. </p>
|
|
6052
|
+
* <p>You can specify individual aggregation keys, like IP address or HTTP method. You can also specify aggregation key combinations, like IP address and HTTP method, or HTTP method, query argument, and cookie. </p>
|
|
6053
|
+
* <p>Each unique set of values for the aggregation keys that you specify is a separate aggregation instance, with the value from each key contributing to the aggregation instance definition. </p>
|
|
6054
|
+
* <p>For example, assume the rule evaluates web requests with the following IP address and HTTP method values: </p>
|
|
5837
6055
|
* <ul>
|
|
5838
6056
|
* <li>
|
|
5839
|
-
* <p>
|
|
6057
|
+
* <p>IP address 10.1.1.1, HTTP method POST</p>
|
|
6058
|
+
* </li>
|
|
6059
|
+
* <li>
|
|
6060
|
+
* <p>IP address 10.1.1.1, HTTP method GET</p>
|
|
5840
6061
|
* </li>
|
|
5841
6062
|
* <li>
|
|
5842
|
-
* <p>
|
|
6063
|
+
* <p>IP address 127.0.0.0, HTTP method POST</p>
|
|
6064
|
+
* </li>
|
|
6065
|
+
* <li>
|
|
6066
|
+
* <p>IP address 10.1.1.1, HTTP method GET</p>
|
|
5843
6067
|
* </li>
|
|
5844
6068
|
* </ul>
|
|
5845
|
-
* <p>
|
|
6069
|
+
* <p>The rule would create different aggregation instances according to your aggregation criteria, for example: </p>
|
|
6070
|
+
* <ul>
|
|
6071
|
+
* <li>
|
|
6072
|
+
* <p>If the aggregation criteria is just the IP address, then each individual address is an aggregation instance, and WAF counts requests separately for each. The aggregation instances and request counts for our example would be the following: </p>
|
|
6073
|
+
* <ul>
|
|
6074
|
+
* <li>
|
|
6075
|
+
* <p>IP address 10.1.1.1: count 3</p>
|
|
6076
|
+
* </li>
|
|
6077
|
+
* <li>
|
|
6078
|
+
* <p>IP address 127.0.0.0: count 1</p>
|
|
6079
|
+
* </li>
|
|
6080
|
+
* </ul>
|
|
6081
|
+
* </li>
|
|
6082
|
+
* <li>
|
|
6083
|
+
* <p>If the aggregation criteria is HTTP method, then each individual HTTP method is an aggregation instance. The aggregation instances and request counts for our example would be the following: </p>
|
|
6084
|
+
* <ul>
|
|
6085
|
+
* <li>
|
|
6086
|
+
* <p>HTTP method POST: count 2</p>
|
|
6087
|
+
* </li>
|
|
6088
|
+
* <li>
|
|
6089
|
+
* <p>HTTP method GET: count 2</p>
|
|
6090
|
+
* </li>
|
|
6091
|
+
* </ul>
|
|
6092
|
+
* </li>
|
|
6093
|
+
* <li>
|
|
6094
|
+
* <p>If the aggregation criteria is IP address and HTTP method, then each IP address and each HTTP method would contribute to the combined aggregation instance. The aggregation instances and request counts for our example would be the following: </p>
|
|
6095
|
+
* <ul>
|
|
6096
|
+
* <li>
|
|
6097
|
+
* <p>IP address 10.1.1.1, HTTP method POST: count 1</p>
|
|
6098
|
+
* </li>
|
|
6099
|
+
* <li>
|
|
6100
|
+
* <p>IP address 10.1.1.1, HTTP method GET: count 2</p>
|
|
6101
|
+
* </li>
|
|
6102
|
+
* <li>
|
|
6103
|
+
* <p>IP address 127.0.0.0, HTTP method POST: count 1</p>
|
|
6104
|
+
* </li>
|
|
6105
|
+
* </ul>
|
|
6106
|
+
* </li>
|
|
6107
|
+
* </ul>
|
|
6108
|
+
* <p>For any n-tuple of aggregation keys, each unique combination of values for the keys defines a separate aggregation instance, which WAF counts and rate-limits individually. </p>
|
|
6109
|
+
* <p>You can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts and rate limits requests that match the nested statement. You can use this nested scope-down statement in conjunction with your aggregation key specifications or you can just count and rate limit all requests that match the scope-down statement, without additional aggregation. When you choose to just manage all requests that match a scope-down statement, the aggregation instance is singular for the rule. </p>
|
|
5846
6110
|
* <p>You cannot nest a <code>RateBasedStatement</code> inside another statement, for example inside a <code>NotStatement</code> or <code>OrStatement</code>. You can define a <code>RateBasedStatement</code> inside a web ACL and inside a rule group. </p>
|
|
6111
|
+
* <p>For additional information about the options, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-rate-based-rules.html">Rate limiting web requests using rate-based rules</a>
|
|
6112
|
+
* in the <i>WAF Developer Guide</i>. </p>
|
|
6113
|
+
* <p>If you only aggregate on the individual IP address or forwarded IP address, you can retrieve the list of IP addresses that WAF
|
|
6114
|
+
* is currently rate limiting for a rule through the API call <code>GetRateBasedStatementManagedKeys</code>. This option is not available
|
|
6115
|
+
* for other aggregation configurations.</p>
|
|
6116
|
+
* <p>WAF tracks and manages web requests separately for each instance of a rate-based rule that you use. For example, if you provide the same rate-based rule settings in two web ACLs, each of the two rule statements represents a separate instance of the rate-based rule and gets its own tracking and management by WAF. If you define a rate-based rule inside a rule group, and then use that rule group in multiple places, each use creates a separate instance of the rate-based rule that gets its own tracking and management by WAF. </p>
|
|
5847
6117
|
*/
|
|
5848
6118
|
export interface RateBasedStatement {
|
|
5849
6119
|
/**
|
|
5850
|
-
* <p>The limit on requests per 5-minute period for a single
|
|
5851
|
-
*
|
|
6120
|
+
* <p>The limit on requests per 5-minute period for a single aggregation instance for the rate-based rule.
|
|
6121
|
+
* If the rate-based statement includes a <code>ScopeDownStatement</code>, this limit is applied only to the
|
|
5852
6122
|
* requests that match the statement.</p>
|
|
6123
|
+
* <p>Examples: </p>
|
|
6124
|
+
* <ul>
|
|
6125
|
+
* <li>
|
|
6126
|
+
* <p>If you aggregate on just the IP address, this is the limit on requests from any single IP address. </p>
|
|
6127
|
+
* </li>
|
|
6128
|
+
* <li>
|
|
6129
|
+
* <p>If you aggregate on the HTTP method and the query argument name "city", then this is the limit on
|
|
6130
|
+
* requests for any single method, city pair. </p>
|
|
6131
|
+
* </li>
|
|
6132
|
+
* </ul>
|
|
5853
6133
|
*/
|
|
5854
6134
|
Limit: number | undefined;
|
|
5855
6135
|
/**
|
|
5856
|
-
* <p>Setting that indicates how to aggregate the request counts.
|
|
5857
|
-
*
|
|
6136
|
+
* <p>Setting that indicates how to aggregate the request counts. </p>
|
|
6137
|
+
* <note>
|
|
6138
|
+
* <p>Web requests that are missing any of the components specified in the aggregation keys
|
|
6139
|
+
* are omitted from the rate-based rule evaluation and handling. </p>
|
|
6140
|
+
* </note>
|
|
5858
6141
|
* <ul>
|
|
5859
6142
|
* <li>
|
|
5860
|
-
* <p>
|
|
5861
|
-
*
|
|
6143
|
+
* <p>
|
|
6144
|
+
* <code>CONSTANT</code> - Count and limit the requests that match the rate-based rule's scope-down
|
|
6145
|
+
* statement. With this option, the counted requests aren't further aggregated. The scope-down statement
|
|
6146
|
+
* is the only specification used. When the count of all requests that satisfy the scope-down statement
|
|
6147
|
+
* goes over the limit, WAF applies the rule action to all requests that satisfy the scope-down statement. </p>
|
|
6148
|
+
* <p>With this option, you must configure the <code>ScopeDownStatement</code> property. </p>
|
|
5862
6149
|
* </li>
|
|
5863
6150
|
* <li>
|
|
5864
|
-
* <p>
|
|
5865
|
-
*
|
|
5866
|
-
* specify the
|
|
6151
|
+
* <p>
|
|
6152
|
+
* <code>CUSTOM_KEYS</code> - Aggregate the request counts using one or more web request components as the aggregate keys.</p>
|
|
6153
|
+
* <p>With this option, you must specify the aggregate keys in the <code>CustomKeys</code> property. </p>
|
|
6154
|
+
* <p>To aggregate on only the IP address or only the forwarded IP address, don't use custom keys. Instead, set the aggregate
|
|
6155
|
+
* key type to <code>IP</code> or <code>FORWARDED_IP</code>.</p>
|
|
6156
|
+
* </li>
|
|
6157
|
+
* <li>
|
|
6158
|
+
* <p>
|
|
6159
|
+
* <code>FORWARDED_IP</code> - Aggregate the request counts on the first IP address in an HTTP header. </p>
|
|
6160
|
+
* <p>With this option, you must specify the header to use in the <code>ForwardedIPConfig</code> property. </p>
|
|
6161
|
+
* <p>To aggregate on a combination of the forwarded IP address with other aggregate keys, use <code>CUSTOM_KEYS</code>. </p>
|
|
6162
|
+
* </li>
|
|
6163
|
+
* <li>
|
|
6164
|
+
* <p>
|
|
6165
|
+
* <code>IP</code> - Aggregate the request counts on the IP address from the web request
|
|
6166
|
+
* origin.</p>
|
|
6167
|
+
* <p>To aggregate on a combination of the IP address with other aggregate keys, use <code>CUSTOM_KEYS</code>. </p>
|
|
5867
6168
|
* </li>
|
|
5868
6169
|
* </ul>
|
|
5869
6170
|
*/
|
|
5870
6171
|
AggregateKeyType: RateBasedStatementAggregateKeyType | string | undefined;
|
|
5871
6172
|
/**
|
|
5872
6173
|
* <p>An optional nested statement that narrows the scope of the web requests that are
|
|
5873
|
-
*
|
|
5874
|
-
*
|
|
6174
|
+
* evaluated and managed by the rate-based statement. When you use a scope-down statement,
|
|
6175
|
+
* the rate-based rule only tracks and rate limits
|
|
6176
|
+
* requests that match the scope-down statement. You can use any nestable <a>Statement</a> in the scope-down statement, and you can nest statements at any
|
|
5875
6177
|
* level, the same as you can for a rule statement. </p>
|
|
5876
6178
|
*/
|
|
5877
6179
|
ScopeDownStatement?: Statement;
|
|
@@ -5880,10 +6182,13 @@ export interface RateBasedStatement {
|
|
|
5880
6182
|
* <note>
|
|
5881
6183
|
* <p>If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.</p>
|
|
5882
6184
|
* </note>
|
|
5883
|
-
* <p>This is required if
|
|
5884
|
-
* <code>FORWARDED_IP</code>.</p>
|
|
6185
|
+
* <p>This is required if you specify a forwarded IP in the rule's aggregate key settings. </p>
|
|
5885
6186
|
*/
|
|
5886
6187
|
ForwardedIPConfig?: ForwardedIPConfig;
|
|
6188
|
+
/**
|
|
6189
|
+
* <p>Specifies the aggregate keys to use in a rate-base rule. </p>
|
|
6190
|
+
*/
|
|
6191
|
+
CustomKeys?: RateBasedStatementCustomKey[];
|
|
5887
6192
|
}
|
|
5888
6193
|
/**
|
|
5889
6194
|
* @public
|