aws-sdk-wafv2 1.152.0 → 1.153.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-wafv2/client.rb +605 -1011
- data/lib/aws-sdk-wafv2/client_api.rb +309 -0
- data/lib/aws-sdk-wafv2/types.rb +1113 -64
- data/lib/aws-sdk-wafv2.rb +1 -1
- data/sig/client.rbs +116 -6
- data/sig/params.rbs +17 -1
- data/sig/types.rbs +218 -4
- metadata +1 -1
data/lib/aws-sdk-wafv2/client.rb
CHANGED
|
@@ -1317,6 +1317,18 @@ module Aws::WAFV2
|
|
|
1317
1317
|
# },
|
|
1318
1318
|
# sensitivity_to_block: "LOW", # accepts LOW, MEDIUM, HIGH
|
|
1319
1319
|
# },
|
|
1320
|
+
# aws_managed_rules_ai_security_rule_set: {
|
|
1321
|
+
# bedrock_guardrails: { # required
|
|
1322
|
+
# disable: {
|
|
1323
|
+
# },
|
|
1324
|
+
# protect_request_only: {
|
|
1325
|
+
# role_arn: "IAMRoleArn", # required
|
|
1326
|
+
# },
|
|
1327
|
+
# protect_request_and_response: {
|
|
1328
|
+
# role_arn: "IAMRoleArn", # required
|
|
1329
|
+
# },
|
|
1330
|
+
# },
|
|
1331
|
+
# },
|
|
1320
1332
|
# },
|
|
1321
1333
|
# ],
|
|
1322
1334
|
# rule_action_overrides: [
|
|
@@ -1895,1006 +1907,15 @@ module Aws::WAFV2
|
|
|
1895
1907
|
#
|
|
1896
1908
|
#
|
|
1897
1909
|
# [1]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html
|
|
1898
|
-
# [2]: https://docs.aws.amazon.com/waf/latest/developerguide/limits.html
|
|
1899
|
-
#
|
|
1900
|
-
# @option params [Types::MonetizationConfig] :monetization_config
|
|
1901
|
-
# The monetization configuration for the rule group. Provide this when
|
|
1902
|
-
# any rule in the rule group uses the `Monetize` action.
|
|
1903
|
-
#
|
|
1904
|
-
# @return [Types::CreateRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1905
|
-
#
|
|
1906
|
-
# * {Types::CreateRuleGroupResponse#summary #summary} => Types::RuleGroupSummary
|
|
1907
|
-
#
|
|
1908
|
-
# @example Request syntax with placeholder values
|
|
1909
|
-
#
|
|
1910
|
-
# resp = client.create_rule_group({
|
|
1911
|
-
# name: "EntityName", # required
|
|
1912
|
-
# scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
|
|
1913
|
-
# capacity: 1, # required
|
|
1914
|
-
# description: "EntityDescription",
|
|
1915
|
-
# rules: [
|
|
1916
|
-
# {
|
|
1917
|
-
# name: "EntityName", # required
|
|
1918
|
-
# priority: 1, # required
|
|
1919
|
-
# statement: { # required
|
|
1920
|
-
# byte_match_statement: {
|
|
1921
|
-
# search_string: "data", # required
|
|
1922
|
-
# field_to_match: { # required
|
|
1923
|
-
# single_header: {
|
|
1924
|
-
# name: "FieldToMatchData", # required
|
|
1925
|
-
# },
|
|
1926
|
-
# single_query_argument: {
|
|
1927
|
-
# name: "FieldToMatchData", # required
|
|
1928
|
-
# },
|
|
1929
|
-
# all_query_arguments: {
|
|
1930
|
-
# },
|
|
1931
|
-
# uri_path: {
|
|
1932
|
-
# },
|
|
1933
|
-
# query_string: {
|
|
1934
|
-
# },
|
|
1935
|
-
# body: {
|
|
1936
|
-
# oversize_handling: "CONTINUE", # accepts CONTINUE, MATCH, NO_MATCH
|
|
1937
|
-
# },
|
|
1938
|
-
# method: {
|
|
1939
|
-
# },
|
|
1940
|
-
# json_body: {
|
|
1941
|
-
# match_pattern: { # required
|
|
1942
|
-
# all: {
|
|
1943
|
-
# },
|
|
1944
|
-
# included_paths: ["JsonPointerPath"],
|
|
1945
|
-
# },
|
|
1946
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
1947
|
-
# invalid_fallback_behavior: "MATCH", # accepts MATCH, NO_MATCH, EVALUATE_AS_STRING
|
|
1948
|
-
# oversize_handling: "CONTINUE", # accepts CONTINUE, MATCH, NO_MATCH
|
|
1949
|
-
# },
|
|
1950
|
-
# headers: {
|
|
1951
|
-
# match_pattern: { # required
|
|
1952
|
-
# all: {
|
|
1953
|
-
# },
|
|
1954
|
-
# included_headers: ["FieldToMatchData"],
|
|
1955
|
-
# excluded_headers: ["FieldToMatchData"],
|
|
1956
|
-
# },
|
|
1957
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
1958
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
1959
|
-
# },
|
|
1960
|
-
# cookies: {
|
|
1961
|
-
# match_pattern: { # required
|
|
1962
|
-
# all: {
|
|
1963
|
-
# },
|
|
1964
|
-
# included_cookies: ["SingleCookieName"],
|
|
1965
|
-
# excluded_cookies: ["SingleCookieName"],
|
|
1966
|
-
# },
|
|
1967
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
1968
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
1969
|
-
# },
|
|
1970
|
-
# header_order: {
|
|
1971
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
1972
|
-
# },
|
|
1973
|
-
# ja3_fingerprint: {
|
|
1974
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
1975
|
-
# },
|
|
1976
|
-
# ja4_fingerprint: {
|
|
1977
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
1978
|
-
# },
|
|
1979
|
-
# uri_fragment: {
|
|
1980
|
-
# fallback_behavior: "MATCH", # accepts MATCH, NO_MATCH
|
|
1981
|
-
# },
|
|
1982
|
-
# },
|
|
1983
|
-
# text_transformations: [ # required
|
|
1984
|
-
# {
|
|
1985
|
-
# priority: 1, # required
|
|
1986
|
-
# type: "NONE", # required, accepts 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, REMOVE_WHITESPACE, TRIM, TRIM_LEFT, TRIM_RIGHT, REMOVE_COMMENTS_CHAR, UPPERCASE, CMD_LINE_WIN, CMD_LINE_UNIX, JS_DECODE_EXT, SHA256
|
|
1987
|
-
# },
|
|
1988
|
-
# ],
|
|
1989
|
-
# pre_parse_text_transformations: [
|
|
1990
|
-
# {
|
|
1991
|
-
# priority: 1, # required
|
|
1992
|
-
# type: "NONE", # required, accepts NONE, URL_DECODE, URL_DECODE_UNI, COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA, REPLACE_SEMICOLONS_WITH_AMPERSANDS
|
|
1993
|
-
# },
|
|
1994
|
-
# ],
|
|
1995
|
-
# positional_constraint: "EXACTLY", # required, accepts EXACTLY, STARTS_WITH, ENDS_WITH, CONTAINS, CONTAINS_WORD
|
|
1996
|
-
# },
|
|
1997
|
-
# sqli_match_statement: {
|
|
1998
|
-
# field_to_match: { # required
|
|
1999
|
-
# single_header: {
|
|
2000
|
-
# name: "FieldToMatchData", # required
|
|
2001
|
-
# },
|
|
2002
|
-
# single_query_argument: {
|
|
2003
|
-
# name: "FieldToMatchData", # required
|
|
2004
|
-
# },
|
|
2005
|
-
# all_query_arguments: {
|
|
2006
|
-
# },
|
|
2007
|
-
# uri_path: {
|
|
2008
|
-
# },
|
|
2009
|
-
# query_string: {
|
|
2010
|
-
# },
|
|
2011
|
-
# body: {
|
|
2012
|
-
# oversize_handling: "CONTINUE", # accepts CONTINUE, MATCH, NO_MATCH
|
|
2013
|
-
# },
|
|
2014
|
-
# method: {
|
|
2015
|
-
# },
|
|
2016
|
-
# json_body: {
|
|
2017
|
-
# match_pattern: { # required
|
|
2018
|
-
# all: {
|
|
2019
|
-
# },
|
|
2020
|
-
# included_paths: ["JsonPointerPath"],
|
|
2021
|
-
# },
|
|
2022
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2023
|
-
# invalid_fallback_behavior: "MATCH", # accepts MATCH, NO_MATCH, EVALUATE_AS_STRING
|
|
2024
|
-
# oversize_handling: "CONTINUE", # accepts CONTINUE, MATCH, NO_MATCH
|
|
2025
|
-
# },
|
|
2026
|
-
# headers: {
|
|
2027
|
-
# match_pattern: { # required
|
|
2028
|
-
# all: {
|
|
2029
|
-
# },
|
|
2030
|
-
# included_headers: ["FieldToMatchData"],
|
|
2031
|
-
# excluded_headers: ["FieldToMatchData"],
|
|
2032
|
-
# },
|
|
2033
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2034
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2035
|
-
# },
|
|
2036
|
-
# cookies: {
|
|
2037
|
-
# match_pattern: { # required
|
|
2038
|
-
# all: {
|
|
2039
|
-
# },
|
|
2040
|
-
# included_cookies: ["SingleCookieName"],
|
|
2041
|
-
# excluded_cookies: ["SingleCookieName"],
|
|
2042
|
-
# },
|
|
2043
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2044
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2045
|
-
# },
|
|
2046
|
-
# header_order: {
|
|
2047
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2048
|
-
# },
|
|
2049
|
-
# ja3_fingerprint: {
|
|
2050
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2051
|
-
# },
|
|
2052
|
-
# ja4_fingerprint: {
|
|
2053
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2054
|
-
# },
|
|
2055
|
-
# uri_fragment: {
|
|
2056
|
-
# fallback_behavior: "MATCH", # accepts MATCH, NO_MATCH
|
|
2057
|
-
# },
|
|
2058
|
-
# },
|
|
2059
|
-
# text_transformations: [ # required
|
|
2060
|
-
# {
|
|
2061
|
-
# priority: 1, # required
|
|
2062
|
-
# type: "NONE", # required, accepts 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, REMOVE_WHITESPACE, TRIM, TRIM_LEFT, TRIM_RIGHT, REMOVE_COMMENTS_CHAR, UPPERCASE, CMD_LINE_WIN, CMD_LINE_UNIX, JS_DECODE_EXT, SHA256
|
|
2063
|
-
# },
|
|
2064
|
-
# ],
|
|
2065
|
-
# pre_parse_text_transformations: [
|
|
2066
|
-
# {
|
|
2067
|
-
# priority: 1, # required
|
|
2068
|
-
# type: "NONE", # required, accepts NONE, URL_DECODE, URL_DECODE_UNI, COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA, REPLACE_SEMICOLONS_WITH_AMPERSANDS
|
|
2069
|
-
# },
|
|
2070
|
-
# ],
|
|
2071
|
-
# sensitivity_level: "LOW", # accepts LOW, HIGH
|
|
2072
|
-
# },
|
|
2073
|
-
# xss_match_statement: {
|
|
2074
|
-
# field_to_match: { # required
|
|
2075
|
-
# single_header: {
|
|
2076
|
-
# name: "FieldToMatchData", # required
|
|
2077
|
-
# },
|
|
2078
|
-
# single_query_argument: {
|
|
2079
|
-
# name: "FieldToMatchData", # required
|
|
2080
|
-
# },
|
|
2081
|
-
# all_query_arguments: {
|
|
2082
|
-
# },
|
|
2083
|
-
# uri_path: {
|
|
2084
|
-
# },
|
|
2085
|
-
# query_string: {
|
|
2086
|
-
# },
|
|
2087
|
-
# body: {
|
|
2088
|
-
# oversize_handling: "CONTINUE", # accepts CONTINUE, MATCH, NO_MATCH
|
|
2089
|
-
# },
|
|
2090
|
-
# method: {
|
|
2091
|
-
# },
|
|
2092
|
-
# json_body: {
|
|
2093
|
-
# match_pattern: { # required
|
|
2094
|
-
# all: {
|
|
2095
|
-
# },
|
|
2096
|
-
# included_paths: ["JsonPointerPath"],
|
|
2097
|
-
# },
|
|
2098
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2099
|
-
# invalid_fallback_behavior: "MATCH", # accepts MATCH, NO_MATCH, EVALUATE_AS_STRING
|
|
2100
|
-
# oversize_handling: "CONTINUE", # accepts CONTINUE, MATCH, NO_MATCH
|
|
2101
|
-
# },
|
|
2102
|
-
# headers: {
|
|
2103
|
-
# match_pattern: { # required
|
|
2104
|
-
# all: {
|
|
2105
|
-
# },
|
|
2106
|
-
# included_headers: ["FieldToMatchData"],
|
|
2107
|
-
# excluded_headers: ["FieldToMatchData"],
|
|
2108
|
-
# },
|
|
2109
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2110
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2111
|
-
# },
|
|
2112
|
-
# cookies: {
|
|
2113
|
-
# match_pattern: { # required
|
|
2114
|
-
# all: {
|
|
2115
|
-
# },
|
|
2116
|
-
# included_cookies: ["SingleCookieName"],
|
|
2117
|
-
# excluded_cookies: ["SingleCookieName"],
|
|
2118
|
-
# },
|
|
2119
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2120
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2121
|
-
# },
|
|
2122
|
-
# header_order: {
|
|
2123
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2124
|
-
# },
|
|
2125
|
-
# ja3_fingerprint: {
|
|
2126
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2127
|
-
# },
|
|
2128
|
-
# ja4_fingerprint: {
|
|
2129
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2130
|
-
# },
|
|
2131
|
-
# uri_fragment: {
|
|
2132
|
-
# fallback_behavior: "MATCH", # accepts MATCH, NO_MATCH
|
|
2133
|
-
# },
|
|
2134
|
-
# },
|
|
2135
|
-
# text_transformations: [ # required
|
|
2136
|
-
# {
|
|
2137
|
-
# priority: 1, # required
|
|
2138
|
-
# type: "NONE", # required, accepts 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, REMOVE_WHITESPACE, TRIM, TRIM_LEFT, TRIM_RIGHT, REMOVE_COMMENTS_CHAR, UPPERCASE, CMD_LINE_WIN, CMD_LINE_UNIX, JS_DECODE_EXT, SHA256
|
|
2139
|
-
# },
|
|
2140
|
-
# ],
|
|
2141
|
-
# pre_parse_text_transformations: [
|
|
2142
|
-
# {
|
|
2143
|
-
# priority: 1, # required
|
|
2144
|
-
# type: "NONE", # required, accepts NONE, URL_DECODE, URL_DECODE_UNI, COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA, REPLACE_SEMICOLONS_WITH_AMPERSANDS
|
|
2145
|
-
# },
|
|
2146
|
-
# ],
|
|
2147
|
-
# },
|
|
2148
|
-
# size_constraint_statement: {
|
|
2149
|
-
# field_to_match: { # required
|
|
2150
|
-
# single_header: {
|
|
2151
|
-
# name: "FieldToMatchData", # required
|
|
2152
|
-
# },
|
|
2153
|
-
# single_query_argument: {
|
|
2154
|
-
# name: "FieldToMatchData", # required
|
|
2155
|
-
# },
|
|
2156
|
-
# all_query_arguments: {
|
|
2157
|
-
# },
|
|
2158
|
-
# uri_path: {
|
|
2159
|
-
# },
|
|
2160
|
-
# query_string: {
|
|
2161
|
-
# },
|
|
2162
|
-
# body: {
|
|
2163
|
-
# oversize_handling: "CONTINUE", # accepts CONTINUE, MATCH, NO_MATCH
|
|
2164
|
-
# },
|
|
2165
|
-
# method: {
|
|
2166
|
-
# },
|
|
2167
|
-
# json_body: {
|
|
2168
|
-
# match_pattern: { # required
|
|
2169
|
-
# all: {
|
|
2170
|
-
# },
|
|
2171
|
-
# included_paths: ["JsonPointerPath"],
|
|
2172
|
-
# },
|
|
2173
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2174
|
-
# invalid_fallback_behavior: "MATCH", # accepts MATCH, NO_MATCH, EVALUATE_AS_STRING
|
|
2175
|
-
# oversize_handling: "CONTINUE", # accepts CONTINUE, MATCH, NO_MATCH
|
|
2176
|
-
# },
|
|
2177
|
-
# headers: {
|
|
2178
|
-
# match_pattern: { # required
|
|
2179
|
-
# all: {
|
|
2180
|
-
# },
|
|
2181
|
-
# included_headers: ["FieldToMatchData"],
|
|
2182
|
-
# excluded_headers: ["FieldToMatchData"],
|
|
2183
|
-
# },
|
|
2184
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2185
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2186
|
-
# },
|
|
2187
|
-
# cookies: {
|
|
2188
|
-
# match_pattern: { # required
|
|
2189
|
-
# all: {
|
|
2190
|
-
# },
|
|
2191
|
-
# included_cookies: ["SingleCookieName"],
|
|
2192
|
-
# excluded_cookies: ["SingleCookieName"],
|
|
2193
|
-
# },
|
|
2194
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2195
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2196
|
-
# },
|
|
2197
|
-
# header_order: {
|
|
2198
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2199
|
-
# },
|
|
2200
|
-
# ja3_fingerprint: {
|
|
2201
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2202
|
-
# },
|
|
2203
|
-
# ja4_fingerprint: {
|
|
2204
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2205
|
-
# },
|
|
2206
|
-
# uri_fragment: {
|
|
2207
|
-
# fallback_behavior: "MATCH", # accepts MATCH, NO_MATCH
|
|
2208
|
-
# },
|
|
2209
|
-
# },
|
|
2210
|
-
# comparison_operator: "EQ", # required, accepts EQ, NE, LE, LT, GE, GT
|
|
2211
|
-
# size: 1, # required
|
|
2212
|
-
# text_transformations: [ # required
|
|
2213
|
-
# {
|
|
2214
|
-
# priority: 1, # required
|
|
2215
|
-
# type: "NONE", # required, accepts 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, REMOVE_WHITESPACE, TRIM, TRIM_LEFT, TRIM_RIGHT, REMOVE_COMMENTS_CHAR, UPPERCASE, CMD_LINE_WIN, CMD_LINE_UNIX, JS_DECODE_EXT, SHA256
|
|
2216
|
-
# },
|
|
2217
|
-
# ],
|
|
2218
|
-
# pre_parse_text_transformations: [
|
|
2219
|
-
# {
|
|
2220
|
-
# priority: 1, # required
|
|
2221
|
-
# type: "NONE", # required, accepts NONE, URL_DECODE, URL_DECODE_UNI, COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA, REPLACE_SEMICOLONS_WITH_AMPERSANDS
|
|
2222
|
-
# },
|
|
2223
|
-
# ],
|
|
2224
|
-
# },
|
|
2225
|
-
# geo_match_statement: {
|
|
2226
|
-
# country_codes: ["AF"], # accepts 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
|
|
2227
|
-
# forwarded_ip_config: {
|
|
2228
|
-
# header_name: "ForwardedIPHeaderName", # required
|
|
2229
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2230
|
-
# },
|
|
2231
|
-
# },
|
|
2232
|
-
# rule_group_reference_statement: {
|
|
2233
|
-
# arn: "ResourceArn", # required
|
|
2234
|
-
# excluded_rules: [
|
|
2235
|
-
# {
|
|
2236
|
-
# name: "EntityName", # required
|
|
2237
|
-
# },
|
|
2238
|
-
# ],
|
|
2239
|
-
# rule_action_overrides: [
|
|
2240
|
-
# {
|
|
2241
|
-
# name: "EntityName", # required
|
|
2242
|
-
# action_to_use: { # required
|
|
2243
|
-
# block: {
|
|
2244
|
-
# custom_response: {
|
|
2245
|
-
# response_code: 1, # required
|
|
2246
|
-
# custom_response_body_key: "EntityName",
|
|
2247
|
-
# response_headers: [
|
|
2248
|
-
# {
|
|
2249
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2250
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2251
|
-
# },
|
|
2252
|
-
# ],
|
|
2253
|
-
# },
|
|
2254
|
-
# },
|
|
2255
|
-
# allow: {
|
|
2256
|
-
# custom_request_handling: {
|
|
2257
|
-
# insert_headers: [ # required
|
|
2258
|
-
# {
|
|
2259
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2260
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2261
|
-
# },
|
|
2262
|
-
# ],
|
|
2263
|
-
# },
|
|
2264
|
-
# },
|
|
2265
|
-
# count: {
|
|
2266
|
-
# custom_request_handling: {
|
|
2267
|
-
# insert_headers: [ # required
|
|
2268
|
-
# {
|
|
2269
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2270
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2271
|
-
# },
|
|
2272
|
-
# ],
|
|
2273
|
-
# },
|
|
2274
|
-
# },
|
|
2275
|
-
# captcha: {
|
|
2276
|
-
# custom_request_handling: {
|
|
2277
|
-
# insert_headers: [ # required
|
|
2278
|
-
# {
|
|
2279
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2280
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2281
|
-
# },
|
|
2282
|
-
# ],
|
|
2283
|
-
# },
|
|
2284
|
-
# },
|
|
2285
|
-
# challenge: {
|
|
2286
|
-
# custom_request_handling: {
|
|
2287
|
-
# insert_headers: [ # required
|
|
2288
|
-
# {
|
|
2289
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2290
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2291
|
-
# },
|
|
2292
|
-
# ],
|
|
2293
|
-
# },
|
|
2294
|
-
# },
|
|
2295
|
-
# monetize: {
|
|
2296
|
-
# price_multiplier: "PriceMultiplier",
|
|
2297
|
-
# },
|
|
2298
|
-
# },
|
|
2299
|
-
# },
|
|
2300
|
-
# ],
|
|
2301
|
-
# },
|
|
2302
|
-
# ip_set_reference_statement: {
|
|
2303
|
-
# arn: "ResourceArn", # required
|
|
2304
|
-
# ip_set_forwarded_ip_config: {
|
|
2305
|
-
# header_name: "ForwardedIPHeaderName", # required
|
|
2306
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2307
|
-
# position: "FIRST", # required, accepts FIRST, LAST, ANY
|
|
2308
|
-
# },
|
|
2309
|
-
# },
|
|
2310
|
-
# regex_pattern_set_reference_statement: {
|
|
2311
|
-
# arn: "ResourceArn", # required
|
|
2312
|
-
# field_to_match: { # required
|
|
2313
|
-
# single_header: {
|
|
2314
|
-
# name: "FieldToMatchData", # required
|
|
2315
|
-
# },
|
|
2316
|
-
# single_query_argument: {
|
|
2317
|
-
# name: "FieldToMatchData", # required
|
|
2318
|
-
# },
|
|
2319
|
-
# all_query_arguments: {
|
|
2320
|
-
# },
|
|
2321
|
-
# uri_path: {
|
|
2322
|
-
# },
|
|
2323
|
-
# query_string: {
|
|
2324
|
-
# },
|
|
2325
|
-
# body: {
|
|
2326
|
-
# oversize_handling: "CONTINUE", # accepts CONTINUE, MATCH, NO_MATCH
|
|
2327
|
-
# },
|
|
2328
|
-
# method: {
|
|
2329
|
-
# },
|
|
2330
|
-
# json_body: {
|
|
2331
|
-
# match_pattern: { # required
|
|
2332
|
-
# all: {
|
|
2333
|
-
# },
|
|
2334
|
-
# included_paths: ["JsonPointerPath"],
|
|
2335
|
-
# },
|
|
2336
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2337
|
-
# invalid_fallback_behavior: "MATCH", # accepts MATCH, NO_MATCH, EVALUATE_AS_STRING
|
|
2338
|
-
# oversize_handling: "CONTINUE", # accepts CONTINUE, MATCH, NO_MATCH
|
|
2339
|
-
# },
|
|
2340
|
-
# headers: {
|
|
2341
|
-
# match_pattern: { # required
|
|
2342
|
-
# all: {
|
|
2343
|
-
# },
|
|
2344
|
-
# included_headers: ["FieldToMatchData"],
|
|
2345
|
-
# excluded_headers: ["FieldToMatchData"],
|
|
2346
|
-
# },
|
|
2347
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2348
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2349
|
-
# },
|
|
2350
|
-
# cookies: {
|
|
2351
|
-
# match_pattern: { # required
|
|
2352
|
-
# all: {
|
|
2353
|
-
# },
|
|
2354
|
-
# included_cookies: ["SingleCookieName"],
|
|
2355
|
-
# excluded_cookies: ["SingleCookieName"],
|
|
2356
|
-
# },
|
|
2357
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2358
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2359
|
-
# },
|
|
2360
|
-
# header_order: {
|
|
2361
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2362
|
-
# },
|
|
2363
|
-
# ja3_fingerprint: {
|
|
2364
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2365
|
-
# },
|
|
2366
|
-
# ja4_fingerprint: {
|
|
2367
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2368
|
-
# },
|
|
2369
|
-
# uri_fragment: {
|
|
2370
|
-
# fallback_behavior: "MATCH", # accepts MATCH, NO_MATCH
|
|
2371
|
-
# },
|
|
2372
|
-
# },
|
|
2373
|
-
# text_transformations: [ # required
|
|
2374
|
-
# {
|
|
2375
|
-
# priority: 1, # required
|
|
2376
|
-
# type: "NONE", # required, accepts 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, REMOVE_WHITESPACE, TRIM, TRIM_LEFT, TRIM_RIGHT, REMOVE_COMMENTS_CHAR, UPPERCASE, CMD_LINE_WIN, CMD_LINE_UNIX, JS_DECODE_EXT, SHA256
|
|
2377
|
-
# },
|
|
2378
|
-
# ],
|
|
2379
|
-
# pre_parse_text_transformations: [
|
|
2380
|
-
# {
|
|
2381
|
-
# priority: 1, # required
|
|
2382
|
-
# type: "NONE", # required, accepts NONE, URL_DECODE, URL_DECODE_UNI, COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA, REPLACE_SEMICOLONS_WITH_AMPERSANDS
|
|
2383
|
-
# },
|
|
2384
|
-
# ],
|
|
2385
|
-
# },
|
|
2386
|
-
# rate_based_statement: {
|
|
2387
|
-
# limit: 1, # required
|
|
2388
|
-
# evaluation_window_sec: 1,
|
|
2389
|
-
# aggregate_key_type: "IP", # required, accepts IP, FORWARDED_IP, CUSTOM_KEYS, CONSTANT
|
|
2390
|
-
# scope_down_statement: {
|
|
2391
|
-
# # recursive Statement
|
|
2392
|
-
# },
|
|
2393
|
-
# forwarded_ip_config: {
|
|
2394
|
-
# header_name: "ForwardedIPHeaderName", # required
|
|
2395
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2396
|
-
# },
|
|
2397
|
-
# custom_keys: [
|
|
2398
|
-
# {
|
|
2399
|
-
# header: {
|
|
2400
|
-
# name: "FieldToMatchData", # required
|
|
2401
|
-
# text_transformations: [ # required
|
|
2402
|
-
# {
|
|
2403
|
-
# priority: 1, # required
|
|
2404
|
-
# type: "NONE", # required, accepts 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, REMOVE_WHITESPACE, TRIM, TRIM_LEFT, TRIM_RIGHT, REMOVE_COMMENTS_CHAR, UPPERCASE, CMD_LINE_WIN, CMD_LINE_UNIX, JS_DECODE_EXT, SHA256
|
|
2405
|
-
# },
|
|
2406
|
-
# ],
|
|
2407
|
-
# },
|
|
2408
|
-
# cookie: {
|
|
2409
|
-
# name: "FieldToMatchData", # required
|
|
2410
|
-
# text_transformations: [ # required
|
|
2411
|
-
# {
|
|
2412
|
-
# priority: 1, # required
|
|
2413
|
-
# type: "NONE", # required, accepts 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, REMOVE_WHITESPACE, TRIM, TRIM_LEFT, TRIM_RIGHT, REMOVE_COMMENTS_CHAR, UPPERCASE, CMD_LINE_WIN, CMD_LINE_UNIX, JS_DECODE_EXT, SHA256
|
|
2414
|
-
# },
|
|
2415
|
-
# ],
|
|
2416
|
-
# },
|
|
2417
|
-
# query_argument: {
|
|
2418
|
-
# name: "FieldToMatchData", # required
|
|
2419
|
-
# text_transformations: [ # required
|
|
2420
|
-
# {
|
|
2421
|
-
# priority: 1, # required
|
|
2422
|
-
# type: "NONE", # required, accepts 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, REMOVE_WHITESPACE, TRIM, TRIM_LEFT, TRIM_RIGHT, REMOVE_COMMENTS_CHAR, UPPERCASE, CMD_LINE_WIN, CMD_LINE_UNIX, JS_DECODE_EXT, SHA256
|
|
2423
|
-
# },
|
|
2424
|
-
# ],
|
|
2425
|
-
# },
|
|
2426
|
-
# query_string: {
|
|
2427
|
-
# text_transformations: [ # required
|
|
2428
|
-
# {
|
|
2429
|
-
# priority: 1, # required
|
|
2430
|
-
# type: "NONE", # required, accepts 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, REMOVE_WHITESPACE, TRIM, TRIM_LEFT, TRIM_RIGHT, REMOVE_COMMENTS_CHAR, UPPERCASE, CMD_LINE_WIN, CMD_LINE_UNIX, JS_DECODE_EXT, SHA256
|
|
2431
|
-
# },
|
|
2432
|
-
# ],
|
|
2433
|
-
# },
|
|
2434
|
-
# http_method: {
|
|
2435
|
-
# },
|
|
2436
|
-
# forwarded_ip: {
|
|
2437
|
-
# },
|
|
2438
|
-
# ip: {
|
|
2439
|
-
# },
|
|
2440
|
-
# label_namespace: {
|
|
2441
|
-
# namespace: "LabelNamespace", # required
|
|
2442
|
-
# },
|
|
2443
|
-
# uri_path: {
|
|
2444
|
-
# text_transformations: [ # required
|
|
2445
|
-
# {
|
|
2446
|
-
# priority: 1, # required
|
|
2447
|
-
# type: "NONE", # required, accepts 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, REMOVE_WHITESPACE, TRIM, TRIM_LEFT, TRIM_RIGHT, REMOVE_COMMENTS_CHAR, UPPERCASE, CMD_LINE_WIN, CMD_LINE_UNIX, JS_DECODE_EXT, SHA256
|
|
2448
|
-
# },
|
|
2449
|
-
# ],
|
|
2450
|
-
# },
|
|
2451
|
-
# ja3_fingerprint: {
|
|
2452
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2453
|
-
# },
|
|
2454
|
-
# ja4_fingerprint: {
|
|
2455
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2456
|
-
# },
|
|
2457
|
-
# asn: {
|
|
2458
|
-
# },
|
|
2459
|
-
# },
|
|
2460
|
-
# ],
|
|
2461
|
-
# },
|
|
2462
|
-
# and_statement: {
|
|
2463
|
-
# statements: [ # required
|
|
2464
|
-
# {
|
|
2465
|
-
# # recursive Statement
|
|
2466
|
-
# },
|
|
2467
|
-
# ],
|
|
2468
|
-
# },
|
|
2469
|
-
# or_statement: {
|
|
2470
|
-
# statements: [ # required
|
|
2471
|
-
# {
|
|
2472
|
-
# # recursive Statement
|
|
2473
|
-
# },
|
|
2474
|
-
# ],
|
|
2475
|
-
# },
|
|
2476
|
-
# not_statement: {
|
|
2477
|
-
# statement: { # required
|
|
2478
|
-
# # recursive Statement
|
|
2479
|
-
# },
|
|
2480
|
-
# },
|
|
2481
|
-
# managed_rule_group_statement: {
|
|
2482
|
-
# vendor_name: "VendorName", # required
|
|
2483
|
-
# name: "EntityName", # required
|
|
2484
|
-
# version: "VersionKeyString",
|
|
2485
|
-
# excluded_rules: [
|
|
2486
|
-
# {
|
|
2487
|
-
# name: "EntityName", # required
|
|
2488
|
-
# },
|
|
2489
|
-
# ],
|
|
2490
|
-
# scope_down_statement: {
|
|
2491
|
-
# # recursive Statement
|
|
2492
|
-
# },
|
|
2493
|
-
# managed_rule_group_configs: [
|
|
2494
|
-
# {
|
|
2495
|
-
# login_path: "LoginPathString",
|
|
2496
|
-
# payload_type: "JSON", # accepts JSON, FORM_ENCODED
|
|
2497
|
-
# username_field: {
|
|
2498
|
-
# identifier: "FieldIdentifier", # required
|
|
2499
|
-
# },
|
|
2500
|
-
# password_field: {
|
|
2501
|
-
# identifier: "FieldIdentifier", # required
|
|
2502
|
-
# },
|
|
2503
|
-
# aws_managed_rules_bot_control_rule_set: {
|
|
2504
|
-
# inspection_level: "COMMON", # required, accepts COMMON, TARGETED
|
|
2505
|
-
# enable_machine_learning: false,
|
|
2506
|
-
# },
|
|
2507
|
-
# aws_managed_rules_atp_rule_set: {
|
|
2508
|
-
# login_path: "String", # required
|
|
2509
|
-
# request_inspection: {
|
|
2510
|
-
# payload_type: "JSON", # required, accepts JSON, FORM_ENCODED
|
|
2511
|
-
# username_field: { # required
|
|
2512
|
-
# identifier: "FieldIdentifier", # required
|
|
2513
|
-
# },
|
|
2514
|
-
# password_field: { # required
|
|
2515
|
-
# identifier: "FieldIdentifier", # required
|
|
2516
|
-
# },
|
|
2517
|
-
# },
|
|
2518
|
-
# response_inspection: {
|
|
2519
|
-
# status_code: {
|
|
2520
|
-
# success_codes: [1], # required
|
|
2521
|
-
# failure_codes: [1], # required
|
|
2522
|
-
# },
|
|
2523
|
-
# header: {
|
|
2524
|
-
# name: "ResponseInspectionHeaderName", # required
|
|
2525
|
-
# success_values: ["SuccessValue"], # required
|
|
2526
|
-
# failure_values: ["FailureValue"], # required
|
|
2527
|
-
# },
|
|
2528
|
-
# body_contains: {
|
|
2529
|
-
# success_strings: ["SuccessValue"], # required
|
|
2530
|
-
# failure_strings: ["FailureValue"], # required
|
|
2531
|
-
# },
|
|
2532
|
-
# json: {
|
|
2533
|
-
# identifier: "FieldIdentifier", # required
|
|
2534
|
-
# success_values: ["SuccessValue"], # required
|
|
2535
|
-
# failure_values: ["FailureValue"], # required
|
|
2536
|
-
# },
|
|
2537
|
-
# },
|
|
2538
|
-
# enable_regex_in_path: false,
|
|
2539
|
-
# },
|
|
2540
|
-
# aws_managed_rules_acfp_rule_set: {
|
|
2541
|
-
# creation_path: "CreationPathString", # required
|
|
2542
|
-
# registration_page_path: "RegistrationPagePathString", # required
|
|
2543
|
-
# request_inspection: { # required
|
|
2544
|
-
# payload_type: "JSON", # required, accepts JSON, FORM_ENCODED
|
|
2545
|
-
# username_field: {
|
|
2546
|
-
# identifier: "FieldIdentifier", # required
|
|
2547
|
-
# },
|
|
2548
|
-
# password_field: {
|
|
2549
|
-
# identifier: "FieldIdentifier", # required
|
|
2550
|
-
# },
|
|
2551
|
-
# email_field: {
|
|
2552
|
-
# identifier: "FieldIdentifier", # required
|
|
2553
|
-
# },
|
|
2554
|
-
# phone_number_fields: [
|
|
2555
|
-
# {
|
|
2556
|
-
# identifier: "FieldIdentifier", # required
|
|
2557
|
-
# },
|
|
2558
|
-
# ],
|
|
2559
|
-
# address_fields: [
|
|
2560
|
-
# {
|
|
2561
|
-
# identifier: "FieldIdentifier", # required
|
|
2562
|
-
# },
|
|
2563
|
-
# ],
|
|
2564
|
-
# },
|
|
2565
|
-
# response_inspection: {
|
|
2566
|
-
# status_code: {
|
|
2567
|
-
# success_codes: [1], # required
|
|
2568
|
-
# failure_codes: [1], # required
|
|
2569
|
-
# },
|
|
2570
|
-
# header: {
|
|
2571
|
-
# name: "ResponseInspectionHeaderName", # required
|
|
2572
|
-
# success_values: ["SuccessValue"], # required
|
|
2573
|
-
# failure_values: ["FailureValue"], # required
|
|
2574
|
-
# },
|
|
2575
|
-
# body_contains: {
|
|
2576
|
-
# success_strings: ["SuccessValue"], # required
|
|
2577
|
-
# failure_strings: ["FailureValue"], # required
|
|
2578
|
-
# },
|
|
2579
|
-
# json: {
|
|
2580
|
-
# identifier: "FieldIdentifier", # required
|
|
2581
|
-
# success_values: ["SuccessValue"], # required
|
|
2582
|
-
# failure_values: ["FailureValue"], # required
|
|
2583
|
-
# },
|
|
2584
|
-
# },
|
|
2585
|
-
# enable_regex_in_path: false,
|
|
2586
|
-
# },
|
|
2587
|
-
# aws_managed_rules_anti_d_do_s_rule_set: {
|
|
2588
|
-
# client_side_action_config: { # required
|
|
2589
|
-
# challenge: { # required
|
|
2590
|
-
# usage_of_action: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
2591
|
-
# sensitivity: "LOW", # accepts LOW, MEDIUM, HIGH
|
|
2592
|
-
# exempt_uri_regular_expressions: [
|
|
2593
|
-
# {
|
|
2594
|
-
# regex_string: "RegexPatternString",
|
|
2595
|
-
# },
|
|
2596
|
-
# ],
|
|
2597
|
-
# },
|
|
2598
|
-
# },
|
|
2599
|
-
# sensitivity_to_block: "LOW", # accepts LOW, MEDIUM, HIGH
|
|
2600
|
-
# },
|
|
2601
|
-
# },
|
|
2602
|
-
# ],
|
|
2603
|
-
# rule_action_overrides: [
|
|
2604
|
-
# {
|
|
2605
|
-
# name: "EntityName", # required
|
|
2606
|
-
# action_to_use: { # required
|
|
2607
|
-
# block: {
|
|
2608
|
-
# custom_response: {
|
|
2609
|
-
# response_code: 1, # required
|
|
2610
|
-
# custom_response_body_key: "EntityName",
|
|
2611
|
-
# response_headers: [
|
|
2612
|
-
# {
|
|
2613
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2614
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2615
|
-
# },
|
|
2616
|
-
# ],
|
|
2617
|
-
# },
|
|
2618
|
-
# },
|
|
2619
|
-
# allow: {
|
|
2620
|
-
# custom_request_handling: {
|
|
2621
|
-
# insert_headers: [ # required
|
|
2622
|
-
# {
|
|
2623
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2624
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2625
|
-
# },
|
|
2626
|
-
# ],
|
|
2627
|
-
# },
|
|
2628
|
-
# },
|
|
2629
|
-
# count: {
|
|
2630
|
-
# custom_request_handling: {
|
|
2631
|
-
# insert_headers: [ # required
|
|
2632
|
-
# {
|
|
2633
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2634
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2635
|
-
# },
|
|
2636
|
-
# ],
|
|
2637
|
-
# },
|
|
2638
|
-
# },
|
|
2639
|
-
# captcha: {
|
|
2640
|
-
# custom_request_handling: {
|
|
2641
|
-
# insert_headers: [ # required
|
|
2642
|
-
# {
|
|
2643
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2644
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2645
|
-
# },
|
|
2646
|
-
# ],
|
|
2647
|
-
# },
|
|
2648
|
-
# },
|
|
2649
|
-
# challenge: {
|
|
2650
|
-
# custom_request_handling: {
|
|
2651
|
-
# insert_headers: [ # required
|
|
2652
|
-
# {
|
|
2653
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2654
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2655
|
-
# },
|
|
2656
|
-
# ],
|
|
2657
|
-
# },
|
|
2658
|
-
# },
|
|
2659
|
-
# monetize: {
|
|
2660
|
-
# price_multiplier: "PriceMultiplier",
|
|
2661
|
-
# },
|
|
2662
|
-
# },
|
|
2663
|
-
# },
|
|
2664
|
-
# ],
|
|
2665
|
-
# },
|
|
2666
|
-
# label_match_statement: {
|
|
2667
|
-
# scope: "LABEL", # required, accepts LABEL, NAMESPACE
|
|
2668
|
-
# key: "LabelMatchKey", # required
|
|
2669
|
-
# },
|
|
2670
|
-
# regex_match_statement: {
|
|
2671
|
-
# regex_string: "RegexPatternString", # required
|
|
2672
|
-
# field_to_match: { # required
|
|
2673
|
-
# single_header: {
|
|
2674
|
-
# name: "FieldToMatchData", # required
|
|
2675
|
-
# },
|
|
2676
|
-
# single_query_argument: {
|
|
2677
|
-
# name: "FieldToMatchData", # required
|
|
2678
|
-
# },
|
|
2679
|
-
# all_query_arguments: {
|
|
2680
|
-
# },
|
|
2681
|
-
# uri_path: {
|
|
2682
|
-
# },
|
|
2683
|
-
# query_string: {
|
|
2684
|
-
# },
|
|
2685
|
-
# body: {
|
|
2686
|
-
# oversize_handling: "CONTINUE", # accepts CONTINUE, MATCH, NO_MATCH
|
|
2687
|
-
# },
|
|
2688
|
-
# method: {
|
|
2689
|
-
# },
|
|
2690
|
-
# json_body: {
|
|
2691
|
-
# match_pattern: { # required
|
|
2692
|
-
# all: {
|
|
2693
|
-
# },
|
|
2694
|
-
# included_paths: ["JsonPointerPath"],
|
|
2695
|
-
# },
|
|
2696
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2697
|
-
# invalid_fallback_behavior: "MATCH", # accepts MATCH, NO_MATCH, EVALUATE_AS_STRING
|
|
2698
|
-
# oversize_handling: "CONTINUE", # accepts CONTINUE, MATCH, NO_MATCH
|
|
2699
|
-
# },
|
|
2700
|
-
# headers: {
|
|
2701
|
-
# match_pattern: { # required
|
|
2702
|
-
# all: {
|
|
2703
|
-
# },
|
|
2704
|
-
# included_headers: ["FieldToMatchData"],
|
|
2705
|
-
# excluded_headers: ["FieldToMatchData"],
|
|
2706
|
-
# },
|
|
2707
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2708
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2709
|
-
# },
|
|
2710
|
-
# cookies: {
|
|
2711
|
-
# match_pattern: { # required
|
|
2712
|
-
# all: {
|
|
2713
|
-
# },
|
|
2714
|
-
# included_cookies: ["SingleCookieName"],
|
|
2715
|
-
# excluded_cookies: ["SingleCookieName"],
|
|
2716
|
-
# },
|
|
2717
|
-
# match_scope: "ALL", # required, accepts ALL, KEY, VALUE
|
|
2718
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2719
|
-
# },
|
|
2720
|
-
# header_order: {
|
|
2721
|
-
# oversize_handling: "CONTINUE", # required, accepts CONTINUE, MATCH, NO_MATCH
|
|
2722
|
-
# },
|
|
2723
|
-
# ja3_fingerprint: {
|
|
2724
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2725
|
-
# },
|
|
2726
|
-
# ja4_fingerprint: {
|
|
2727
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2728
|
-
# },
|
|
2729
|
-
# uri_fragment: {
|
|
2730
|
-
# fallback_behavior: "MATCH", # accepts MATCH, NO_MATCH
|
|
2731
|
-
# },
|
|
2732
|
-
# },
|
|
2733
|
-
# text_transformations: [ # required
|
|
2734
|
-
# {
|
|
2735
|
-
# priority: 1, # required
|
|
2736
|
-
# type: "NONE", # required, accepts 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, REMOVE_WHITESPACE, TRIM, TRIM_LEFT, TRIM_RIGHT, REMOVE_COMMENTS_CHAR, UPPERCASE, CMD_LINE_WIN, CMD_LINE_UNIX, JS_DECODE_EXT, SHA256
|
|
2737
|
-
# },
|
|
2738
|
-
# ],
|
|
2739
|
-
# pre_parse_text_transformations: [
|
|
2740
|
-
# {
|
|
2741
|
-
# priority: 1, # required
|
|
2742
|
-
# type: "NONE", # required, accepts NONE, URL_DECODE, URL_DECODE_UNI, COMBINE_DUPLICATE_QUERY_ARGS_BY_COMMA, REPLACE_SEMICOLONS_WITH_AMPERSANDS
|
|
2743
|
-
# },
|
|
2744
|
-
# ],
|
|
2745
|
-
# },
|
|
2746
|
-
# asn_match_statement: {
|
|
2747
|
-
# asn_list: [1], # required
|
|
2748
|
-
# forwarded_ip_config: {
|
|
2749
|
-
# header_name: "ForwardedIPHeaderName", # required
|
|
2750
|
-
# fallback_behavior: "MATCH", # required, accepts MATCH, NO_MATCH
|
|
2751
|
-
# },
|
|
2752
|
-
# },
|
|
2753
|
-
# },
|
|
2754
|
-
# action: {
|
|
2755
|
-
# block: {
|
|
2756
|
-
# custom_response: {
|
|
2757
|
-
# response_code: 1, # required
|
|
2758
|
-
# custom_response_body_key: "EntityName",
|
|
2759
|
-
# response_headers: [
|
|
2760
|
-
# {
|
|
2761
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2762
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2763
|
-
# },
|
|
2764
|
-
# ],
|
|
2765
|
-
# },
|
|
2766
|
-
# },
|
|
2767
|
-
# allow: {
|
|
2768
|
-
# custom_request_handling: {
|
|
2769
|
-
# insert_headers: [ # required
|
|
2770
|
-
# {
|
|
2771
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2772
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2773
|
-
# },
|
|
2774
|
-
# ],
|
|
2775
|
-
# },
|
|
2776
|
-
# },
|
|
2777
|
-
# count: {
|
|
2778
|
-
# custom_request_handling: {
|
|
2779
|
-
# insert_headers: [ # required
|
|
2780
|
-
# {
|
|
2781
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2782
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2783
|
-
# },
|
|
2784
|
-
# ],
|
|
2785
|
-
# },
|
|
2786
|
-
# },
|
|
2787
|
-
# captcha: {
|
|
2788
|
-
# custom_request_handling: {
|
|
2789
|
-
# insert_headers: [ # required
|
|
2790
|
-
# {
|
|
2791
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2792
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2793
|
-
# },
|
|
2794
|
-
# ],
|
|
2795
|
-
# },
|
|
2796
|
-
# },
|
|
2797
|
-
# challenge: {
|
|
2798
|
-
# custom_request_handling: {
|
|
2799
|
-
# insert_headers: [ # required
|
|
2800
|
-
# {
|
|
2801
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2802
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2803
|
-
# },
|
|
2804
|
-
# ],
|
|
2805
|
-
# },
|
|
2806
|
-
# },
|
|
2807
|
-
# monetize: {
|
|
2808
|
-
# price_multiplier: "PriceMultiplier",
|
|
2809
|
-
# },
|
|
2810
|
-
# },
|
|
2811
|
-
# override_action: {
|
|
2812
|
-
# count: {
|
|
2813
|
-
# custom_request_handling: {
|
|
2814
|
-
# insert_headers: [ # required
|
|
2815
|
-
# {
|
|
2816
|
-
# name: "CustomHTTPHeaderName", # required
|
|
2817
|
-
# value: "CustomHTTPHeaderValue", # required
|
|
2818
|
-
# },
|
|
2819
|
-
# ],
|
|
2820
|
-
# },
|
|
2821
|
-
# },
|
|
2822
|
-
# none: {
|
|
2823
|
-
# },
|
|
2824
|
-
# },
|
|
2825
|
-
# rule_labels: [
|
|
2826
|
-
# {
|
|
2827
|
-
# name: "LabelName", # required
|
|
2828
|
-
# },
|
|
2829
|
-
# ],
|
|
2830
|
-
# visibility_config: { # required
|
|
2831
|
-
# sampled_requests_enabled: false, # required
|
|
2832
|
-
# cloud_watch_metrics_enabled: false, # required
|
|
2833
|
-
# metric_name: "MetricName", # required
|
|
2834
|
-
# },
|
|
2835
|
-
# captcha_config: {
|
|
2836
|
-
# immunity_time_property: {
|
|
2837
|
-
# immunity_time: 1, # required
|
|
2838
|
-
# },
|
|
2839
|
-
# },
|
|
2840
|
-
# challenge_config: {
|
|
2841
|
-
# immunity_time_property: {
|
|
2842
|
-
# immunity_time: 1, # required
|
|
2843
|
-
# },
|
|
2844
|
-
# },
|
|
2845
|
-
# },
|
|
2846
|
-
# ],
|
|
2847
|
-
# visibility_config: { # required
|
|
2848
|
-
# sampled_requests_enabled: false, # required
|
|
2849
|
-
# cloud_watch_metrics_enabled: false, # required
|
|
2850
|
-
# metric_name: "MetricName", # required
|
|
2851
|
-
# },
|
|
2852
|
-
# tags: [
|
|
2853
|
-
# {
|
|
2854
|
-
# key: "TagKey", # required
|
|
2855
|
-
# value: "TagValue", # required
|
|
2856
|
-
# },
|
|
2857
|
-
# ],
|
|
2858
|
-
# custom_response_bodies: {
|
|
2859
|
-
# "EntityName" => {
|
|
2860
|
-
# content_type: "TEXT_PLAIN", # required, accepts TEXT_PLAIN, TEXT_HTML, APPLICATION_JSON
|
|
2861
|
-
# content: "ResponseContent", # required
|
|
2862
|
-
# },
|
|
2863
|
-
# },
|
|
2864
|
-
# monetization_config: {
|
|
2865
|
-
# crypto_config: {
|
|
2866
|
-
# payment_networks: [ # required
|
|
2867
|
-
# {
|
|
2868
|
-
# chain: "BASE", # required, accepts BASE, SOLANA, BASE_SEPOLIA, SOLANA_DEVNET
|
|
2869
|
-
# wallet_address: "WalletAddress", # required
|
|
2870
|
-
# prices: [ # required
|
|
2871
|
-
# {
|
|
2872
|
-
# amount: "PriceAmount", # required
|
|
2873
|
-
# currency: "USDC", # required, accepts USDC
|
|
2874
|
-
# },
|
|
2875
|
-
# ],
|
|
2876
|
-
# },
|
|
2877
|
-
# ],
|
|
2878
|
-
# },
|
|
2879
|
-
# connected_account_configs: [
|
|
2880
|
-
# {
|
|
2881
|
-
# connected_account_arn: "ConnectedAccountArn", # required
|
|
2882
|
-
# payment_networks: [ # required
|
|
2883
|
-
# {
|
|
2884
|
-
# chain: "BASE", # required, accepts BASE, SOLANA
|
|
2885
|
-
# prices: [ # required
|
|
2886
|
-
# {
|
|
2887
|
-
# amount: "ConnectedAccountPriceAmount", # required
|
|
2888
|
-
# currency: "USDC", # required, accepts USDC
|
|
2889
|
-
# },
|
|
2890
|
-
# ],
|
|
2891
|
-
# },
|
|
2892
|
-
# ],
|
|
2893
|
-
# },
|
|
2894
|
-
# ],
|
|
2895
|
-
# currency_mode: "REAL", # accepts REAL, TEST
|
|
2896
|
-
# },
|
|
2897
|
-
# })
|
|
1910
|
+
# [2]: https://docs.aws.amazon.com/waf/latest/developerguide/limits.html
|
|
1911
|
+
#
|
|
1912
|
+
# @option params [Types::MonetizationConfig] :monetization_config
|
|
1913
|
+
# The monetization configuration for the rule group. Provide this when
|
|
1914
|
+
# any rule in the rule group uses the `Monetize` action.
|
|
1915
|
+
#
|
|
1916
|
+
# @return [Types::CreateRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1917
|
+
#
|
|
1918
|
+
# * {Types::CreateRuleGroupResponse#summary #summary} => Types::RuleGroupSummary
|
|
2898
1919
|
#
|
|
2899
1920
|
# @example Response structure
|
|
2900
1921
|
#
|
|
@@ -3027,9 +2048,10 @@ module Aws::WAFV2
|
|
|
3027
2048
|
#
|
|
3028
2049
|
# Use this to customize the maximum size of the request body that your
|
|
3029
2050
|
# protected resources forward to WAF for inspection. You can customize
|
|
3030
|
-
# this setting for
|
|
3031
|
-
# or Verified Access resources. The default
|
|
3032
|
-
# bytes)
|
|
2051
|
+
# this setting for Application Load Balancer, CloudFront, API Gateway,
|
|
2052
|
+
# Amazon Cognito, App Runner, or Verified Access resources. The default
|
|
2053
|
+
# setting is 8 KB (8,192 bytes) for Application Load Balancer and 16 KB
|
|
2054
|
+
# (16,384 bytes) for the other resource types.
|
|
3033
2055
|
#
|
|
3034
2056
|
# <note markdown="1"> You are charged additional fees when your protected resources forward
|
|
3035
2057
|
# body sizes that are larger than the default. For more information, see
|
|
@@ -3037,8 +2059,7 @@ module Aws::WAFV2
|
|
|
3037
2059
|
#
|
|
3038
2060
|
# </note>
|
|
3039
2061
|
#
|
|
3040
|
-
# For
|
|
3041
|
-
# (8,192 bytes).
|
|
2062
|
+
# For AppSync, the limit is fixed at 8 KB (8,192 bytes).
|
|
3042
2063
|
#
|
|
3043
2064
|
# You can also use this to have your CloudFront distributions insert the
|
|
3044
2065
|
# WAF challenge JavaScript SDK into the HTML responses that they return.
|
|
@@ -3854,6 +2875,159 @@ module Aws::WAFV2
|
|
|
3854
2875
|
req.send_request(options)
|
|
3855
2876
|
end
|
|
3856
2877
|
|
|
2878
|
+
# Retrieves the details of the specified event for the specified web
|
|
2879
|
+
# ACL, including the event actors that are associated with the event and
|
|
2880
|
+
# the event timeline. Currently, this operation supports API Security
|
|
2881
|
+
# Amazon Web Services Managed Rules.
|
|
2882
|
+
#
|
|
2883
|
+
# @option params [required, String] :scope
|
|
2884
|
+
# Specifies whether this is for a global resource type, such as a Amazon
|
|
2885
|
+
# CloudFront distribution. For an Amplify application, use `CLOUDFRONT`.
|
|
2886
|
+
#
|
|
2887
|
+
# To work with CloudFront, you must also specify the Region US East (N.
|
|
2888
|
+
# Virginia) as follows:
|
|
2889
|
+
#
|
|
2890
|
+
# * CLI - Specify the Region when you use the CloudFront scope:
|
|
2891
|
+
# `--scope=CLOUDFRONT --region=us-east-1`.
|
|
2892
|
+
#
|
|
2893
|
+
# * API and SDKs - For all calls, use the Region endpoint us-east-1.
|
|
2894
|
+
#
|
|
2895
|
+
# @option params [required, String] :event_id
|
|
2896
|
+
# The unique identifier of the event. WAF returns the event ID in the
|
|
2897
|
+
# responses to ListEvents and ListEventsByWebACL.
|
|
2898
|
+
#
|
|
2899
|
+
# @option params [required, String] :web_acl_arn
|
|
2900
|
+
# The Amazon Resource Name (ARN) of the web ACL that the event is
|
|
2901
|
+
# associated with.
|
|
2902
|
+
#
|
|
2903
|
+
# @return [Types::GetEventResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2904
|
+
#
|
|
2905
|
+
# * {Types::GetEventResponse#event #event} => Types::EventDetailSummary
|
|
2906
|
+
#
|
|
2907
|
+
# @example Request syntax with placeholder values
|
|
2908
|
+
#
|
|
2909
|
+
# resp = client.get_event({
|
|
2910
|
+
# scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
|
|
2911
|
+
# event_id: "EntityId", # required
|
|
2912
|
+
# web_acl_arn: "ResourceArn", # required
|
|
2913
|
+
# })
|
|
2914
|
+
#
|
|
2915
|
+
# @example Response structure
|
|
2916
|
+
#
|
|
2917
|
+
# resp.event.event_id #=> String
|
|
2918
|
+
# resp.event.event_status #=> String, one of "EVENT_STARTED", "EVENT_IN_PROGRESS", "EVENT_COMPLETED", "EVENT_ENDED"
|
|
2919
|
+
# resp.event.event_category #=> String, one of "API_SECURITY"
|
|
2920
|
+
# resp.event.start_time #=> Time
|
|
2921
|
+
# resp.event.last_updated_time #=> Time
|
|
2922
|
+
# resp.event.end_time #=> Time
|
|
2923
|
+
# resp.event.resource_arn #=> String
|
|
2924
|
+
# resp.event.web_acl_arn #=> String
|
|
2925
|
+
# resp.event.api_security_event_detail.label #=> String
|
|
2926
|
+
# resp.event.api_security_event_detail.category #=> String
|
|
2927
|
+
# resp.event.api_security_event_detail.confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
2928
|
+
# resp.event.api_security_event_detail.api_patterns #=> Array
|
|
2929
|
+
# resp.event.api_security_event_detail.api_patterns[0].method #=> String
|
|
2930
|
+
# resp.event.api_security_event_detail.api_patterns[0].path_pattern #=> String
|
|
2931
|
+
# resp.event.api_security_event_detail.api_patterns[0].port #=> Integer
|
|
2932
|
+
# resp.event.api_security_event_detail.api_patterns[0].domains #=> Array
|
|
2933
|
+
# resp.event.api_security_event_detail.api_patterns[0].domains[0] #=> String
|
|
2934
|
+
# resp.event.api_security_event_detail.event_actors #=> Array
|
|
2935
|
+
# resp.event.api_security_event_detail.event_actors[0].event_actor_id #=> String
|
|
2936
|
+
# resp.event.api_security_event_detail.event_actors[0].event_actor_value #=> String
|
|
2937
|
+
# resp.event.api_security_event_detail.timeline #=> Array
|
|
2938
|
+
# resp.event.api_security_event_detail.timeline[0].change_time #=> Time
|
|
2939
|
+
# resp.event.api_security_event_detail.timeline[0].label #=> String
|
|
2940
|
+
# resp.event.api_security_event_detail.timeline[0].confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
2941
|
+
# resp.event.api_security_event_detail.timeline[0].api_patterns #=> Array
|
|
2942
|
+
# resp.event.api_security_event_detail.timeline[0].api_patterns[0].method #=> String
|
|
2943
|
+
# resp.event.api_security_event_detail.timeline[0].api_patterns[0].path_pattern #=> String
|
|
2944
|
+
# resp.event.api_security_event_detail.timeline[0].api_patterns[0].port #=> Integer
|
|
2945
|
+
# resp.event.api_security_event_detail.timeline[0].api_patterns[0].domains #=> Array
|
|
2946
|
+
# resp.event.api_security_event_detail.timeline[0].api_patterns[0].domains[0] #=> String
|
|
2947
|
+
#
|
|
2948
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetEvent AWS API Documentation
|
|
2949
|
+
#
|
|
2950
|
+
# @overload get_event(params = {})
|
|
2951
|
+
# @param [Hash] params ({})
|
|
2952
|
+
def get_event(params = {}, options = {})
|
|
2953
|
+
req = build_request(:get_event, params)
|
|
2954
|
+
req.send_request(options)
|
|
2955
|
+
end
|
|
2956
|
+
|
|
2957
|
+
# Retrieves the details of the specified event actor. An event actor is
|
|
2958
|
+
# a client that is associated with one or more events. The details
|
|
2959
|
+
# include the latest observed attributes of the event actor, the events
|
|
2960
|
+
# that it's associated with, and the history of changes to its
|
|
2961
|
+
# attributes. Currently, this operation supports API Security Amazon Web
|
|
2962
|
+
# Services Managed Rules.
|
|
2963
|
+
#
|
|
2964
|
+
# @option params [required, String] :scope
|
|
2965
|
+
# Specifies whether this is for a global resource type, such as a Amazon
|
|
2966
|
+
# CloudFront distribution. For an Amplify application, use `CLOUDFRONT`.
|
|
2967
|
+
#
|
|
2968
|
+
# To work with CloudFront, you must also specify the Region US East (N.
|
|
2969
|
+
# Virginia) as follows:
|
|
2970
|
+
#
|
|
2971
|
+
# * CLI - Specify the Region when you use the CloudFront scope:
|
|
2972
|
+
# `--scope=CLOUDFRONT --region=us-east-1`.
|
|
2973
|
+
#
|
|
2974
|
+
# * API and SDKs - For all calls, use the Region endpoint us-east-1.
|
|
2975
|
+
#
|
|
2976
|
+
# @option params [required, String] :event_actor_id
|
|
2977
|
+
# The unique identifier of the event actor. WAF returns the event actor
|
|
2978
|
+
# ID in the event details of ListEvents, ListEventsByWebACL, and
|
|
2979
|
+
# GetEvent, and in the response to ListEventActors.
|
|
2980
|
+
#
|
|
2981
|
+
# @return [Types::GetEventActorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2982
|
+
#
|
|
2983
|
+
# * {Types::GetEventActorResponse#event_actor #event_actor} => Types::EventActorDetail
|
|
2984
|
+
#
|
|
2985
|
+
# @example Request syntax with placeholder values
|
|
2986
|
+
#
|
|
2987
|
+
# resp = client.get_event_actor({
|
|
2988
|
+
# scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
|
|
2989
|
+
# event_actor_id: "EntityId", # required
|
|
2990
|
+
# })
|
|
2991
|
+
#
|
|
2992
|
+
# @example Response structure
|
|
2993
|
+
#
|
|
2994
|
+
# resp.event_actor.summary.event_actor_id #=> String
|
|
2995
|
+
# resp.event_actor.summary.client_ip #=> String
|
|
2996
|
+
# resp.event_actor.summary.tls_fingerprint #=> String
|
|
2997
|
+
# resp.event_actor.summary.asn #=> String
|
|
2998
|
+
# resp.event_actor.summary.asn_organization #=> String
|
|
2999
|
+
# resp.event_actor.summary.country #=> String
|
|
3000
|
+
# resp.event_actor.summary.auth_fingerprint #=> String
|
|
3001
|
+
# resp.event_actor.summary.created_at #=> Time
|
|
3002
|
+
# resp.event_actor.events #=> Array
|
|
3003
|
+
# resp.event_actor.events[0].event_id #=> String
|
|
3004
|
+
# resp.event_actor.events[0].start_time #=> Time
|
|
3005
|
+
# resp.event_actor.events[0].label #=> String
|
|
3006
|
+
# resp.event_actor.events[0].category #=> String
|
|
3007
|
+
# resp.event_actor.events[0].confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
3008
|
+
# resp.event_actor.events[0].api_patterns #=> Array
|
|
3009
|
+
# resp.event_actor.events[0].api_patterns[0].method #=> String
|
|
3010
|
+
# resp.event_actor.events[0].api_patterns[0].path_pattern #=> String
|
|
3011
|
+
# resp.event_actor.events[0].api_patterns[0].port #=> Integer
|
|
3012
|
+
# resp.event_actor.events[0].api_patterns[0].domains #=> Array
|
|
3013
|
+
# resp.event_actor.events[0].api_patterns[0].domains[0] #=> String
|
|
3014
|
+
# resp.event_actor.changes #=> Array
|
|
3015
|
+
# resp.event_actor.changes[0].change_time #=> Time
|
|
3016
|
+
# resp.event_actor.changes[0].client_ip #=> String
|
|
3017
|
+
# resp.event_actor.changes[0].tls_fingerprint #=> String
|
|
3018
|
+
# resp.event_actor.changes[0].asn #=> String
|
|
3019
|
+
# resp.event_actor.changes[0].asn_organization #=> String
|
|
3020
|
+
# resp.event_actor.changes[0].country #=> String
|
|
3021
|
+
#
|
|
3022
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetEventActor AWS API Documentation
|
|
3023
|
+
#
|
|
3024
|
+
# @overload get_event_actor(params = {})
|
|
3025
|
+
# @param [Hash] params ({})
|
|
3026
|
+
def get_event_actor(params = {}, options = {})
|
|
3027
|
+
req = build_request(:get_event_actor, params)
|
|
3028
|
+
req.send_request(options)
|
|
3029
|
+
end
|
|
3030
|
+
|
|
3857
3031
|
# Retrieves the specified IPSet.
|
|
3858
3032
|
#
|
|
3859
3033
|
# @option params [required, String] :name
|
|
@@ -4904,6 +4078,8 @@ module Aws::WAFV2
|
|
|
4904
4078
|
# resp.rule_group.rules[0].statement.managed_rule_group_statement.managed_rule_group_configs[0].aws_managed_rules_anti_d_do_s_rule_set.client_side_action_config.challenge.exempt_uri_regular_expressions #=> Array
|
|
4905
4079
|
# resp.rule_group.rules[0].statement.managed_rule_group_statement.managed_rule_group_configs[0].aws_managed_rules_anti_d_do_s_rule_set.client_side_action_config.challenge.exempt_uri_regular_expressions[0].regex_string #=> String
|
|
4906
4080
|
# resp.rule_group.rules[0].statement.managed_rule_group_statement.managed_rule_group_configs[0].aws_managed_rules_anti_d_do_s_rule_set.sensitivity_to_block #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
4081
|
+
# resp.rule_group.rules[0].statement.managed_rule_group_statement.managed_rule_group_configs[0].aws_managed_rules_ai_security_rule_set.bedrock_guardrails.protect_request_only.role_arn #=> String
|
|
4082
|
+
# resp.rule_group.rules[0].statement.managed_rule_group_statement.managed_rule_group_configs[0].aws_managed_rules_ai_security_rule_set.bedrock_guardrails.protect_request_and_response.role_arn #=> String
|
|
4907
4083
|
# resp.rule_group.rules[0].statement.managed_rule_group_statement.rule_action_overrides #=> Array
|
|
4908
4084
|
# resp.rule_group.rules[0].statement.managed_rule_group_statement.rule_action_overrides[0].name #=> String
|
|
4909
4085
|
# resp.rule_group.rules[0].statement.managed_rule_group_statement.rule_action_overrides[0].action_to_use.block.custom_response.response_code #=> Integer
|
|
@@ -5590,6 +4766,412 @@ module Aws::WAFV2
|
|
|
5590
4766
|
req.send_request(options)
|
|
5591
4767
|
end
|
|
5592
4768
|
|
|
4769
|
+
# Retrieves a paginated list of the event actors in your account that
|
|
4770
|
+
# are associated with events in the specified time window. An event
|
|
4771
|
+
# actor is a client that is associated with one or more events. The
|
|
4772
|
+
# operation returns up to the top 100 event actors by event count.
|
|
4773
|
+
# Results are paginated. Use the `NextMarker` value from the response to
|
|
4774
|
+
# retrieve the next batch of results. Currently, this operation supports
|
|
4775
|
+
# API Security Amazon Web Services Managed Rules.
|
|
4776
|
+
#
|
|
4777
|
+
# @option params [required, String] :scope
|
|
4778
|
+
# Specifies whether this is for a global resource type, such as a Amazon
|
|
4779
|
+
# CloudFront distribution. For an Amplify application, use `CLOUDFRONT`.
|
|
4780
|
+
#
|
|
4781
|
+
# To work with CloudFront, you must also specify the Region US East (N.
|
|
4782
|
+
# Virginia) as follows:
|
|
4783
|
+
#
|
|
4784
|
+
# * CLI - Specify the Region when you use the CloudFront scope:
|
|
4785
|
+
# `--scope=CLOUDFRONT --region=us-east-1`.
|
|
4786
|
+
#
|
|
4787
|
+
# * API and SDKs - For all calls, use the Region endpoint us-east-1.
|
|
4788
|
+
#
|
|
4789
|
+
# @option params [required, Types::TimeWindow] :time_window
|
|
4790
|
+
# The time range for the event actors to return. The time window can't
|
|
4791
|
+
# be longer than one year.
|
|
4792
|
+
#
|
|
4793
|
+
# @option params [String] :sort_by
|
|
4794
|
+
# The field to sort event actors by. The only supported value is
|
|
4795
|
+
# `EVENT_COUNT`.
|
|
4796
|
+
#
|
|
4797
|
+
# @option params [Integer] :limit
|
|
4798
|
+
# The maximum number of event actors that you want WAF to return for
|
|
4799
|
+
# this request. Valid values are 1 to 100. If more event actors are
|
|
4800
|
+
# available, WAF returns a `NextMarker` value in the response that you
|
|
4801
|
+
# can use in a subsequent call to get the next batch of event actors.
|
|
4802
|
+
#
|
|
4803
|
+
# @option params [String] :next_marker
|
|
4804
|
+
# When you request a list of objects with a `Limit` setting, if the
|
|
4805
|
+
# number of objects that are still available for retrieval exceeds the
|
|
4806
|
+
# limit, WAF returns a `NextMarker` value in the response. To retrieve
|
|
4807
|
+
# the next batch of objects, provide the marker from the prior call in
|
|
4808
|
+
# your next request.
|
|
4809
|
+
#
|
|
4810
|
+
# @return [Types::ListEventActorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4811
|
+
#
|
|
4812
|
+
# * {Types::ListEventActorsResponse#event_actors #event_actors} => Array<Types::EventActorSummary>
|
|
4813
|
+
# * {Types::ListEventActorsResponse#next_marker #next_marker} => String
|
|
4814
|
+
#
|
|
4815
|
+
# @example Request syntax with placeholder values
|
|
4816
|
+
#
|
|
4817
|
+
# resp = client.list_event_actors({
|
|
4818
|
+
# scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
|
|
4819
|
+
# time_window: { # required
|
|
4820
|
+
# start_time: Time.now, # required
|
|
4821
|
+
# end_time: Time.now, # required
|
|
4822
|
+
# },
|
|
4823
|
+
# sort_by: "EVENT_COUNT", # accepts EVENT_COUNT
|
|
4824
|
+
# limit: 1,
|
|
4825
|
+
# next_marker: "EventNextMarker",
|
|
4826
|
+
# })
|
|
4827
|
+
#
|
|
4828
|
+
# @example Response structure
|
|
4829
|
+
#
|
|
4830
|
+
# resp.event_actors #=> Array
|
|
4831
|
+
# resp.event_actors[0].event_actor_id #=> String
|
|
4832
|
+
# resp.event_actors[0].client_ip #=> String
|
|
4833
|
+
# resp.event_actors[0].tls_fingerprint #=> String
|
|
4834
|
+
# resp.event_actors[0].asn #=> String
|
|
4835
|
+
# resp.event_actors[0].asn_organization #=> String
|
|
4836
|
+
# resp.event_actors[0].country #=> String
|
|
4837
|
+
# resp.event_actors[0].auth_fingerprint #=> String
|
|
4838
|
+
# resp.event_actors[0].created_at #=> Time
|
|
4839
|
+
# resp.event_actors[0].event_count #=> Integer
|
|
4840
|
+
# resp.next_marker #=> String
|
|
4841
|
+
#
|
|
4842
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListEventActors AWS API Documentation
|
|
4843
|
+
#
|
|
4844
|
+
# @overload list_event_actors(params = {})
|
|
4845
|
+
# @param [Hash] params ({})
|
|
4846
|
+
def list_event_actors(params = {}, options = {})
|
|
4847
|
+
req = build_request(:list_event_actors, params)
|
|
4848
|
+
req.send_request(options)
|
|
4849
|
+
end
|
|
4850
|
+
|
|
4851
|
+
# Retrieves a paginated list of event summaries for your account. Use
|
|
4852
|
+
# this operation to monitor and investigate potential threats to the
|
|
4853
|
+
# resources that your web ACLs protect. Results are paginated. Use the
|
|
4854
|
+
# `NextMarker` value from the response to retrieve the next batch of
|
|
4855
|
+
# results. Currently, this operation supports API Security Amazon Web
|
|
4856
|
+
# Services Managed Rules.
|
|
4857
|
+
#
|
|
4858
|
+
# You can filter the results by time window, event category, resource,
|
|
4859
|
+
# and API pattern, and sort them by start time, end time, or confidence.
|
|
4860
|
+
#
|
|
4861
|
+
# To retrieve the events for a single web ACL, use ListEventsByWebACL.
|
|
4862
|
+
# To retrieve the full details of a single event, use GetEvent.
|
|
4863
|
+
#
|
|
4864
|
+
# @option params [required, String] :scope
|
|
4865
|
+
# Specifies whether this is for a global resource type, such as a Amazon
|
|
4866
|
+
# CloudFront distribution. For an Amplify application, use `CLOUDFRONT`.
|
|
4867
|
+
#
|
|
4868
|
+
# To work with CloudFront, you must also specify the Region US East (N.
|
|
4869
|
+
# Virginia) as follows:
|
|
4870
|
+
#
|
|
4871
|
+
# * CLI - Specify the Region when you use the CloudFront scope:
|
|
4872
|
+
# `--scope=CLOUDFRONT --region=us-east-1`.
|
|
4873
|
+
#
|
|
4874
|
+
# * API and SDKs - For all calls, use the Region endpoint us-east-1.
|
|
4875
|
+
#
|
|
4876
|
+
# @option params [Types::TimeWindow] :time_window
|
|
4877
|
+
# The time range for the events to return. If you don't specify a time
|
|
4878
|
+
# window, WAF returns events from the past year. The time window can't
|
|
4879
|
+
# be longer than one year.
|
|
4880
|
+
#
|
|
4881
|
+
# @option params [Array<Types::EventFilter>] :filters
|
|
4882
|
+
# Filters that narrow the results by event category or by the Amazon
|
|
4883
|
+
# Resource Name (ARN) of the protected resource. You can specify up to 8
|
|
4884
|
+
# filters.
|
|
4885
|
+
#
|
|
4886
|
+
# @option params [Array<Types::ApiPatternFilter>] :api_pattern_filters
|
|
4887
|
+
# Filters that narrow the results to events that involve the specified
|
|
4888
|
+
# API patterns. If you specify more than one API pattern filter, WAF
|
|
4889
|
+
# returns the events that match any of the filters. You can specify up
|
|
4890
|
+
# to 20 API pattern filters.
|
|
4891
|
+
#
|
|
4892
|
+
# @option params [Integer] :limit
|
|
4893
|
+
# The maximum number of events that you want WAF to return for this
|
|
4894
|
+
# request. Valid values are 1 to 20. If more events are available, WAF
|
|
4895
|
+
# returns a `NextMarker` value in the response that you can use in a
|
|
4896
|
+
# subsequent call to get the next batch of events.
|
|
4897
|
+
#
|
|
4898
|
+
# @option params [String] :next_marker
|
|
4899
|
+
# When you request a list of objects with a `Limit` setting, if the
|
|
4900
|
+
# number of objects that are still available for retrieval exceeds the
|
|
4901
|
+
# limit, WAF returns a `NextMarker` value in the response. To retrieve
|
|
4902
|
+
# the next batch of objects, provide the marker from the prior call in
|
|
4903
|
+
# your next request.
|
|
4904
|
+
#
|
|
4905
|
+
# The marker is valid only for a request with the same `TimeWindow`,
|
|
4906
|
+
# `Filters`, `SortBy`, and `SortOrder` settings as the request that
|
|
4907
|
+
# returned it.
|
|
4908
|
+
#
|
|
4909
|
+
# @option params [String] :sort_order
|
|
4910
|
+
# The order in which WAF sorts the events. Valid values:
|
|
4911
|
+
#
|
|
4912
|
+
# * `ASC` - Sort in ascending order.
|
|
4913
|
+
#
|
|
4914
|
+
# * `DESC` - Sort in descending order. This is the default.
|
|
4915
|
+
#
|
|
4916
|
+
# @option params [String] :sort_by
|
|
4917
|
+
# The field that WAF sorts the events by. Valid values:
|
|
4918
|
+
#
|
|
4919
|
+
# * `CONFIDENCE` - Sort by the confidence level of the event detection.
|
|
4920
|
+
#
|
|
4921
|
+
# * `END_TIME` - Sort by the time that the event ended.
|
|
4922
|
+
#
|
|
4923
|
+
# * `START_TIME` - Sort by the time that the event started.
|
|
4924
|
+
#
|
|
4925
|
+
# @option params [Array<String>] :include
|
|
4926
|
+
# Additional fields to return with each event summary. By default, the
|
|
4927
|
+
# response includes only the default summary fields.
|
|
4928
|
+
#
|
|
4929
|
+
# Specify `TIMELINE` to return the timeline of each event in
|
|
4930
|
+
# `ApiSecurityEventDetail$Timeline`.
|
|
4931
|
+
#
|
|
4932
|
+
# @return [Types::ListEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4933
|
+
#
|
|
4934
|
+
# * {Types::ListEventsResponse#events #events} => Array<Types::EventDetailSummary>
|
|
4935
|
+
# * {Types::ListEventsResponse#next_marker #next_marker} => String
|
|
4936
|
+
#
|
|
4937
|
+
# @example Request syntax with placeholder values
|
|
4938
|
+
#
|
|
4939
|
+
# resp = client.list_events({
|
|
4940
|
+
# scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
|
|
4941
|
+
# time_window: {
|
|
4942
|
+
# start_time: Time.now, # required
|
|
4943
|
+
# end_time: Time.now, # required
|
|
4944
|
+
# },
|
|
4945
|
+
# filters: [
|
|
4946
|
+
# {
|
|
4947
|
+
# name: "EVENT_CATEGORY", # required, accepts EVENT_CATEGORY, RESOURCE_ARN
|
|
4948
|
+
# values: ["FilterValue"], # required
|
|
4949
|
+
# },
|
|
4950
|
+
# ],
|
|
4951
|
+
# api_pattern_filters: [
|
|
4952
|
+
# {
|
|
4953
|
+
# method: "HttpMethodString",
|
|
4954
|
+
# path_pattern: "PathPatternString",
|
|
4955
|
+
# port: 1,
|
|
4956
|
+
# domains: ["DomainString"],
|
|
4957
|
+
# },
|
|
4958
|
+
# ],
|
|
4959
|
+
# limit: 1,
|
|
4960
|
+
# next_marker: "EventNextMarker",
|
|
4961
|
+
# sort_order: "ASC", # accepts ASC, DESC
|
|
4962
|
+
# sort_by: "START_TIME", # accepts START_TIME, END_TIME, CONFIDENCE
|
|
4963
|
+
# include: ["TIMELINE"], # accepts TIMELINE
|
|
4964
|
+
# })
|
|
4965
|
+
#
|
|
4966
|
+
# @example Response structure
|
|
4967
|
+
#
|
|
4968
|
+
# resp.events #=> Array
|
|
4969
|
+
# resp.events[0].event_id #=> String
|
|
4970
|
+
# resp.events[0].event_status #=> String, one of "EVENT_STARTED", "EVENT_IN_PROGRESS", "EVENT_COMPLETED", "EVENT_ENDED"
|
|
4971
|
+
# resp.events[0].event_category #=> String, one of "API_SECURITY"
|
|
4972
|
+
# resp.events[0].start_time #=> Time
|
|
4973
|
+
# resp.events[0].last_updated_time #=> Time
|
|
4974
|
+
# resp.events[0].end_time #=> Time
|
|
4975
|
+
# resp.events[0].resource_arn #=> String
|
|
4976
|
+
# resp.events[0].web_acl_arn #=> String
|
|
4977
|
+
# resp.events[0].api_security_event_detail.label #=> String
|
|
4978
|
+
# resp.events[0].api_security_event_detail.category #=> String
|
|
4979
|
+
# resp.events[0].api_security_event_detail.confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
4980
|
+
# resp.events[0].api_security_event_detail.api_patterns #=> Array
|
|
4981
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].method #=> String
|
|
4982
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].path_pattern #=> String
|
|
4983
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].port #=> Integer
|
|
4984
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].domains #=> Array
|
|
4985
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].domains[0] #=> String
|
|
4986
|
+
# resp.events[0].api_security_event_detail.event_actors #=> Array
|
|
4987
|
+
# resp.events[0].api_security_event_detail.event_actors[0].event_actor_id #=> String
|
|
4988
|
+
# resp.events[0].api_security_event_detail.event_actors[0].event_actor_value #=> String
|
|
4989
|
+
# resp.events[0].api_security_event_detail.timeline #=> Array
|
|
4990
|
+
# resp.events[0].api_security_event_detail.timeline[0].change_time #=> Time
|
|
4991
|
+
# resp.events[0].api_security_event_detail.timeline[0].label #=> String
|
|
4992
|
+
# resp.events[0].api_security_event_detail.timeline[0].confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
4993
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns #=> Array
|
|
4994
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].method #=> String
|
|
4995
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].path_pattern #=> String
|
|
4996
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].port #=> Integer
|
|
4997
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].domains #=> Array
|
|
4998
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].domains[0] #=> String
|
|
4999
|
+
# resp.next_marker #=> String
|
|
5000
|
+
#
|
|
5001
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListEvents AWS API Documentation
|
|
5002
|
+
#
|
|
5003
|
+
# @overload list_events(params = {})
|
|
5004
|
+
# @param [Hash] params ({})
|
|
5005
|
+
def list_events(params = {}, options = {})
|
|
5006
|
+
req = build_request(:list_events, params)
|
|
5007
|
+
req.send_request(options)
|
|
5008
|
+
end
|
|
5009
|
+
|
|
5010
|
+
# Retrieves a paginated list of event summaries for the specified web
|
|
5011
|
+
# ACL. Use this operation to monitor and investigate potential threats
|
|
5012
|
+
# to the resources that the web ACL protects. Results are paginated. Use
|
|
5013
|
+
# the `NextMarker` value from the response to retrieve the next batch of
|
|
5014
|
+
# results. Currently, this operation supports API Security Amazon Web
|
|
5015
|
+
# Services Managed Rules.
|
|
5016
|
+
#
|
|
5017
|
+
# You can filter the results by time window, event category, resource,
|
|
5018
|
+
# and API pattern, and sort them by start time, end time, or confidence.
|
|
5019
|
+
#
|
|
5020
|
+
# To retrieve the events for all of the web ACLs in your account, use
|
|
5021
|
+
# ListEvents. To retrieve the full details of a single event, use
|
|
5022
|
+
# GetEvent.
|
|
5023
|
+
#
|
|
5024
|
+
# @option params [required, String] :scope
|
|
5025
|
+
# Specifies whether this is for a global resource type, such as a Amazon
|
|
5026
|
+
# CloudFront distribution. For an Amplify application, use `CLOUDFRONT`.
|
|
5027
|
+
#
|
|
5028
|
+
# To work with CloudFront, you must also specify the Region US East (N.
|
|
5029
|
+
# Virginia) as follows:
|
|
5030
|
+
#
|
|
5031
|
+
# * CLI - Specify the Region when you use the CloudFront scope:
|
|
5032
|
+
# `--scope=CLOUDFRONT --region=us-east-1`.
|
|
5033
|
+
#
|
|
5034
|
+
# * API and SDKs - For all calls, use the Region endpoint us-east-1.
|
|
5035
|
+
#
|
|
5036
|
+
# @option params [required, String] :web_acl_arn
|
|
5037
|
+
# The Amazon Resource Name (ARN) of the web ACL whose events you want to
|
|
5038
|
+
# retrieve.
|
|
5039
|
+
#
|
|
5040
|
+
# @option params [Types::TimeWindow] :time_window
|
|
5041
|
+
# The time range for the events to return. If you don't specify a time
|
|
5042
|
+
# window, WAF returns events from the past year. The time window can't
|
|
5043
|
+
# be longer than one year.
|
|
5044
|
+
#
|
|
5045
|
+
# @option params [Array<Types::EventFilter>] :filters
|
|
5046
|
+
# Filters that narrow the results by event category or by the Amazon
|
|
5047
|
+
# Resource Name (ARN) of the protected resource. You can specify up to 8
|
|
5048
|
+
# filters.
|
|
5049
|
+
#
|
|
5050
|
+
# @option params [Array<Types::ApiPatternFilter>] :api_pattern_filters
|
|
5051
|
+
# Filters that narrow the results to events that involve the specified
|
|
5052
|
+
# API patterns. If you specify more than one API pattern filter, WAF
|
|
5053
|
+
# returns the events that match any of the filters. You can specify up
|
|
5054
|
+
# to 20 API pattern filters.
|
|
5055
|
+
#
|
|
5056
|
+
# @option params [Integer] :limit
|
|
5057
|
+
# The maximum number of events that you want WAF to return for this
|
|
5058
|
+
# request. Valid values are 1 to 20. If more events are available, WAF
|
|
5059
|
+
# returns a `NextMarker` value in the response that you can use in a
|
|
5060
|
+
# subsequent call to get the next batch of events.
|
|
5061
|
+
#
|
|
5062
|
+
# @option params [String] :next_marker
|
|
5063
|
+
# When you request a list of objects with a `Limit` setting, if the
|
|
5064
|
+
# number of objects that are still available for retrieval exceeds the
|
|
5065
|
+
# limit, WAF returns a `NextMarker` value in the response. To retrieve
|
|
5066
|
+
# the next batch of objects, provide the marker from the prior call in
|
|
5067
|
+
# your next request.
|
|
5068
|
+
#
|
|
5069
|
+
# The marker is valid only for a request with the same `WebAclArn`,
|
|
5070
|
+
# `TimeWindow`, `Filters`, `SortBy`, and `SortOrder` settings as the
|
|
5071
|
+
# request that returned it.
|
|
5072
|
+
#
|
|
5073
|
+
# @option params [String] :sort_order
|
|
5074
|
+
# The order in which WAF sorts the events. Valid values:
|
|
5075
|
+
#
|
|
5076
|
+
# * `ASC` - Sort in ascending order.
|
|
5077
|
+
#
|
|
5078
|
+
# * `DESC` - Sort in descending order. This is the default.
|
|
5079
|
+
#
|
|
5080
|
+
# @option params [String] :sort_by
|
|
5081
|
+
# The field that WAF sorts the events by. Valid values:
|
|
5082
|
+
#
|
|
5083
|
+
# * `CONFIDENCE` - Sort by the confidence level of the event detection.
|
|
5084
|
+
#
|
|
5085
|
+
# * `END_TIME` - Sort by the time that the event ended.
|
|
5086
|
+
#
|
|
5087
|
+
# * `START_TIME` - Sort by the time that the event started.
|
|
5088
|
+
#
|
|
5089
|
+
# @option params [Array<String>] :include
|
|
5090
|
+
# Additional fields to return with each event summary. By default, the
|
|
5091
|
+
# response includes only the default summary fields.
|
|
5092
|
+
#
|
|
5093
|
+
# Specify `TIMELINE` to return the timeline of each event in
|
|
5094
|
+
# `ApiSecurityEventDetail$Timeline`.
|
|
5095
|
+
#
|
|
5096
|
+
# @return [Types::ListEventsByWebACLResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5097
|
+
#
|
|
5098
|
+
# * {Types::ListEventsByWebACLResponse#events #events} => Array<Types::EventDetailSummary>
|
|
5099
|
+
# * {Types::ListEventsByWebACLResponse#next_marker #next_marker} => String
|
|
5100
|
+
#
|
|
5101
|
+
# @example Request syntax with placeholder values
|
|
5102
|
+
#
|
|
5103
|
+
# resp = client.list_events_by_web_acl({
|
|
5104
|
+
# scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
|
|
5105
|
+
# web_acl_arn: "ResourceArn", # required
|
|
5106
|
+
# time_window: {
|
|
5107
|
+
# start_time: Time.now, # required
|
|
5108
|
+
# end_time: Time.now, # required
|
|
5109
|
+
# },
|
|
5110
|
+
# filters: [
|
|
5111
|
+
# {
|
|
5112
|
+
# name: "EVENT_CATEGORY", # required, accepts EVENT_CATEGORY, RESOURCE_ARN
|
|
5113
|
+
# values: ["FilterValue"], # required
|
|
5114
|
+
# },
|
|
5115
|
+
# ],
|
|
5116
|
+
# api_pattern_filters: [
|
|
5117
|
+
# {
|
|
5118
|
+
# method: "HttpMethodString",
|
|
5119
|
+
# path_pattern: "PathPatternString",
|
|
5120
|
+
# port: 1,
|
|
5121
|
+
# domains: ["DomainString"],
|
|
5122
|
+
# },
|
|
5123
|
+
# ],
|
|
5124
|
+
# limit: 1,
|
|
5125
|
+
# next_marker: "EventNextMarker",
|
|
5126
|
+
# sort_order: "ASC", # accepts ASC, DESC
|
|
5127
|
+
# sort_by: "START_TIME", # accepts START_TIME, END_TIME, CONFIDENCE
|
|
5128
|
+
# include: ["TIMELINE"], # accepts TIMELINE
|
|
5129
|
+
# })
|
|
5130
|
+
#
|
|
5131
|
+
# @example Response structure
|
|
5132
|
+
#
|
|
5133
|
+
# resp.events #=> Array
|
|
5134
|
+
# resp.events[0].event_id #=> String
|
|
5135
|
+
# resp.events[0].event_status #=> String, one of "EVENT_STARTED", "EVENT_IN_PROGRESS", "EVENT_COMPLETED", "EVENT_ENDED"
|
|
5136
|
+
# resp.events[0].event_category #=> String, one of "API_SECURITY"
|
|
5137
|
+
# resp.events[0].start_time #=> Time
|
|
5138
|
+
# resp.events[0].last_updated_time #=> Time
|
|
5139
|
+
# resp.events[0].end_time #=> Time
|
|
5140
|
+
# resp.events[0].resource_arn #=> String
|
|
5141
|
+
# resp.events[0].web_acl_arn #=> String
|
|
5142
|
+
# resp.events[0].api_security_event_detail.label #=> String
|
|
5143
|
+
# resp.events[0].api_security_event_detail.category #=> String
|
|
5144
|
+
# resp.events[0].api_security_event_detail.confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
5145
|
+
# resp.events[0].api_security_event_detail.api_patterns #=> Array
|
|
5146
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].method #=> String
|
|
5147
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].path_pattern #=> String
|
|
5148
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].port #=> Integer
|
|
5149
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].domains #=> Array
|
|
5150
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].domains[0] #=> String
|
|
5151
|
+
# resp.events[0].api_security_event_detail.event_actors #=> Array
|
|
5152
|
+
# resp.events[0].api_security_event_detail.event_actors[0].event_actor_id #=> String
|
|
5153
|
+
# resp.events[0].api_security_event_detail.event_actors[0].event_actor_value #=> String
|
|
5154
|
+
# resp.events[0].api_security_event_detail.timeline #=> Array
|
|
5155
|
+
# resp.events[0].api_security_event_detail.timeline[0].change_time #=> Time
|
|
5156
|
+
# resp.events[0].api_security_event_detail.timeline[0].label #=> String
|
|
5157
|
+
# resp.events[0].api_security_event_detail.timeline[0].confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
5158
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns #=> Array
|
|
5159
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].method #=> String
|
|
5160
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].path_pattern #=> String
|
|
5161
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].port #=> Integer
|
|
5162
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].domains #=> Array
|
|
5163
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].domains[0] #=> String
|
|
5164
|
+
# resp.next_marker #=> String
|
|
5165
|
+
#
|
|
5166
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListEventsByWebACL AWS API Documentation
|
|
5167
|
+
#
|
|
5168
|
+
# @overload list_events_by_web_acl(params = {})
|
|
5169
|
+
# @param [Hash] params ({})
|
|
5170
|
+
def list_events_by_web_acl(params = {}, options = {})
|
|
5171
|
+
req = build_request(:list_events_by_web_acl, params)
|
|
5172
|
+
req.send_request(options)
|
|
5173
|
+
end
|
|
5174
|
+
|
|
5593
5175
|
# Retrieves an array of IPSetSummary objects for the IP sets that you
|
|
5594
5176
|
# manage.
|
|
5595
5177
|
#
|
|
@@ -7899,6 +7481,18 @@ module Aws::WAFV2
|
|
|
7899
7481
|
# },
|
|
7900
7482
|
# sensitivity_to_block: "LOW", # accepts LOW, MEDIUM, HIGH
|
|
7901
7483
|
# },
|
|
7484
|
+
# aws_managed_rules_ai_security_rule_set: {
|
|
7485
|
+
# bedrock_guardrails: { # required
|
|
7486
|
+
# disable: {
|
|
7487
|
+
# },
|
|
7488
|
+
# protect_request_only: {
|
|
7489
|
+
# role_arn: "IAMRoleArn", # required
|
|
7490
|
+
# },
|
|
7491
|
+
# protect_request_and_response: {
|
|
7492
|
+
# role_arn: "IAMRoleArn", # required
|
|
7493
|
+
# },
|
|
7494
|
+
# },
|
|
7495
|
+
# },
|
|
7902
7496
|
# },
|
|
7903
7497
|
# ],
|
|
7904
7498
|
# rule_action_overrides: [
|
|
@@ -8372,9 +7966,10 @@ module Aws::WAFV2
|
|
|
8372
7966
|
#
|
|
8373
7967
|
# Use this to customize the maximum size of the request body that your
|
|
8374
7968
|
# protected resources forward to WAF for inspection. You can customize
|
|
8375
|
-
# this setting for
|
|
8376
|
-
# or Verified Access resources. The default
|
|
8377
|
-
# bytes)
|
|
7969
|
+
# this setting for Application Load Balancer, CloudFront, API Gateway,
|
|
7970
|
+
# Amazon Cognito, App Runner, or Verified Access resources. The default
|
|
7971
|
+
# setting is 8 KB (8,192 bytes) for Application Load Balancer and 16 KB
|
|
7972
|
+
# (16,384 bytes) for the other resource types.
|
|
8378
7973
|
#
|
|
8379
7974
|
# <note markdown="1"> You are charged additional fees when your protected resources forward
|
|
8380
7975
|
# body sizes that are larger than the default. For more information, see
|
|
@@ -8382,8 +7977,7 @@ module Aws::WAFV2
|
|
|
8382
7977
|
#
|
|
8383
7978
|
# </note>
|
|
8384
7979
|
#
|
|
8385
|
-
# For
|
|
8386
|
-
# (8,192 bytes).
|
|
7980
|
+
# For AppSync, the limit is fixed at 8 KB (8,192 bytes).
|
|
8387
7981
|
#
|
|
8388
7982
|
# You can also use this to have your CloudFront distributions insert the
|
|
8389
7983
|
# WAF challenge JavaScript SDK into the HTML responses that they return.
|
|
@@ -8459,7 +8053,7 @@ module Aws::WAFV2
|
|
|
8459
8053
|
tracer: tracer
|
|
8460
8054
|
)
|
|
8461
8055
|
context[:gem_name] = 'aws-sdk-wafv2'
|
|
8462
|
-
context[:gem_version] = '1.
|
|
8056
|
+
context[:gem_version] = '1.153.0'
|
|
8463
8057
|
Seahorse::Client::Request.new(handlers, context)
|
|
8464
8058
|
end
|
|
8465
8059
|
|