aws-sdk-wafv2 1.152.0 → 1.154.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-wafv2/client.rb +628 -1019
- data/lib/aws-sdk-wafv2/client_api.rb +309 -0
- data/lib/aws-sdk-wafv2/types.rb +1202 -127
- data/lib/aws-sdk-wafv2.rb +1 -1
- data/sig/client.rbs +117 -7
- data/sig/params.rbs +17 -1
- data/sig/types.rbs +219 -5
- metadata +1 -1
data/lib/aws-sdk-wafv2/client.rb
CHANGED
|
@@ -547,6 +547,10 @@ module Aws::WAFV2
|
|
|
547
547
|
# `arn:partition:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
|
|
548
548
|
# `
|
|
549
549
|
#
|
|
550
|
+
# * For an Elastic Load Balancing for Envoy proxy:
|
|
551
|
+
# `arn:partition:elasticloadbalancing:region:account-id:proxy/proxy-name:proxy-id
|
|
552
|
+
# `
|
|
553
|
+
#
|
|
550
554
|
# * For an Amazon API Gateway REST API:
|
|
551
555
|
# `arn:partition:apigateway:region::/restapis/api-id/stages/stage-name
|
|
552
556
|
# `
|
|
@@ -1317,6 +1321,18 @@ module Aws::WAFV2
|
|
|
1317
1321
|
# },
|
|
1318
1322
|
# sensitivity_to_block: "LOW", # accepts LOW, MEDIUM, HIGH
|
|
1319
1323
|
# },
|
|
1324
|
+
# aws_managed_rules_ai_security_rule_set: {
|
|
1325
|
+
# bedrock_guardrails: { # required
|
|
1326
|
+
# disable: {
|
|
1327
|
+
# },
|
|
1328
|
+
# protect_request_only: {
|
|
1329
|
+
# role_arn: "IAMRoleArn", # required
|
|
1330
|
+
# },
|
|
1331
|
+
# protect_request_and_response: {
|
|
1332
|
+
# role_arn: "IAMRoleArn", # required
|
|
1333
|
+
# },
|
|
1334
|
+
# },
|
|
1335
|
+
# },
|
|
1320
1336
|
# },
|
|
1321
1337
|
# ],
|
|
1322
1338
|
# rule_action_overrides: [
|
|
@@ -1899,1002 +1915,11 @@ module Aws::WAFV2
|
|
|
1899
1915
|
#
|
|
1900
1916
|
# @option params [Types::MonetizationConfig] :monetization_config
|
|
1901
1917
|
# 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
|
-
# })
|
|
1918
|
+
# any rule in the rule group uses the `Monetize` action.
|
|
1919
|
+
#
|
|
1920
|
+
# @return [Types::CreateRuleGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1921
|
+
#
|
|
1922
|
+
# * {Types::CreateRuleGroupResponse#summary #summary} => Types::RuleGroupSummary
|
|
2898
1923
|
#
|
|
2899
1924
|
# @example Response structure
|
|
2900
1925
|
#
|
|
@@ -2924,10 +1949,10 @@ module Aws::WAFV2
|
|
|
2924
1949
|
# RuleGroup, and managed rule group. You can associate a web ACL with
|
|
2925
1950
|
# one or more Amazon Web Services resources to protect. The resource
|
|
2926
1951
|
# types include Amazon CloudFront distribution, Amazon API Gateway REST
|
|
2927
|
-
# API, Application Load Balancer,
|
|
2928
|
-
#
|
|
2929
|
-
#
|
|
2930
|
-
# Gateway.
|
|
1952
|
+
# API, Application Load Balancer, Elastic Load Balancing for Envoy
|
|
1953
|
+
# proxy, AppSync GraphQL API, Amazon Cognito user pool, App Runner
|
|
1954
|
+
# service, Amplify application, Amazon Web Services Verified Access
|
|
1955
|
+
# instance, and Amazon Bedrock AgentCore Gateway.
|
|
2931
1956
|
#
|
|
2932
1957
|
# @option params [required, String] :name
|
|
2933
1958
|
# The name of the web ACL. You cannot change the name of a web ACL after
|
|
@@ -3027,9 +2052,11 @@ module Aws::WAFV2
|
|
|
3027
2052
|
#
|
|
3028
2053
|
# Use this to customize the maximum size of the request body that your
|
|
3029
2054
|
# protected resources forward to WAF for inspection. You can customize
|
|
3030
|
-
# this setting for
|
|
3031
|
-
#
|
|
3032
|
-
# bytes)
|
|
2055
|
+
# this setting for Application Load Balancer, CloudFront, API Gateway,
|
|
2056
|
+
# Amazon Cognito, App Runner, Verified Access, or Elastic Load Balancing
|
|
2057
|
+
# for Envoy resources. The default setting is 8 KB (8,192 bytes) for
|
|
2058
|
+
# Application Load Balancer and 16 KB (16,384 bytes) for the other
|
|
2059
|
+
# resource types.
|
|
3033
2060
|
#
|
|
3034
2061
|
# <note markdown="1"> You are charged additional fees when your protected resources forward
|
|
3035
2062
|
# body sizes that are larger than the default. For more information, see
|
|
@@ -3037,8 +2064,7 @@ module Aws::WAFV2
|
|
|
3037
2064
|
#
|
|
3038
2065
|
# </note>
|
|
3039
2066
|
#
|
|
3040
|
-
# For
|
|
3041
|
-
# (8,192 bytes).
|
|
2067
|
+
# For AppSync, the limit is fixed at 8 KB (8,192 bytes).
|
|
3042
2068
|
#
|
|
3043
2069
|
# You can also use this to have your CloudFront distributions insert the
|
|
3044
2070
|
# WAF challenge JavaScript SDK into the HTML responses that they return.
|
|
@@ -3712,6 +2738,10 @@ module Aws::WAFV2
|
|
|
3712
2738
|
# `arn:partition:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
|
|
3713
2739
|
# `
|
|
3714
2740
|
#
|
|
2741
|
+
# * For an Elastic Load Balancing for Envoy proxy:
|
|
2742
|
+
# `arn:partition:elasticloadbalancing:region:account-id:proxy/proxy-name:proxy-id
|
|
2743
|
+
# `
|
|
2744
|
+
#
|
|
3715
2745
|
# * For an Amazon API Gateway REST API:
|
|
3716
2746
|
# `arn:partition:apigateway:region::/restapis/api-id/stages/stage-name
|
|
3717
2747
|
# `
|
|
@@ -3854,6 +2884,159 @@ module Aws::WAFV2
|
|
|
3854
2884
|
req.send_request(options)
|
|
3855
2885
|
end
|
|
3856
2886
|
|
|
2887
|
+
# Retrieves the details of the specified event for the specified web
|
|
2888
|
+
# ACL, including the event actors that are associated with the event and
|
|
2889
|
+
# the event timeline. Currently, this operation supports API Security
|
|
2890
|
+
# Amazon Web Services Managed Rules.
|
|
2891
|
+
#
|
|
2892
|
+
# @option params [required, String] :scope
|
|
2893
|
+
# Specifies whether this is for a global resource type, such as a Amazon
|
|
2894
|
+
# CloudFront distribution. For an Amplify application, use `CLOUDFRONT`.
|
|
2895
|
+
#
|
|
2896
|
+
# To work with CloudFront, you must also specify the Region US East (N.
|
|
2897
|
+
# Virginia) as follows:
|
|
2898
|
+
#
|
|
2899
|
+
# * CLI - Specify the Region when you use the CloudFront scope:
|
|
2900
|
+
# `--scope=CLOUDFRONT --region=us-east-1`.
|
|
2901
|
+
#
|
|
2902
|
+
# * API and SDKs - For all calls, use the Region endpoint us-east-1.
|
|
2903
|
+
#
|
|
2904
|
+
# @option params [required, String] :event_id
|
|
2905
|
+
# The unique identifier of the event. WAF returns the event ID in the
|
|
2906
|
+
# responses to ListEvents and ListEventsByWebACL.
|
|
2907
|
+
#
|
|
2908
|
+
# @option params [required, String] :web_acl_arn
|
|
2909
|
+
# The Amazon Resource Name (ARN) of the web ACL that the event is
|
|
2910
|
+
# associated with.
|
|
2911
|
+
#
|
|
2912
|
+
# @return [Types::GetEventResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2913
|
+
#
|
|
2914
|
+
# * {Types::GetEventResponse#event #event} => Types::EventDetailSummary
|
|
2915
|
+
#
|
|
2916
|
+
# @example Request syntax with placeholder values
|
|
2917
|
+
#
|
|
2918
|
+
# resp = client.get_event({
|
|
2919
|
+
# scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
|
|
2920
|
+
# event_id: "EntityId", # required
|
|
2921
|
+
# web_acl_arn: "ResourceArn", # required
|
|
2922
|
+
# })
|
|
2923
|
+
#
|
|
2924
|
+
# @example Response structure
|
|
2925
|
+
#
|
|
2926
|
+
# resp.event.event_id #=> String
|
|
2927
|
+
# resp.event.event_status #=> String, one of "EVENT_STARTED", "EVENT_IN_PROGRESS", "EVENT_COMPLETED", "EVENT_ENDED"
|
|
2928
|
+
# resp.event.event_category #=> String, one of "API_SECURITY"
|
|
2929
|
+
# resp.event.start_time #=> Time
|
|
2930
|
+
# resp.event.last_updated_time #=> Time
|
|
2931
|
+
# resp.event.end_time #=> Time
|
|
2932
|
+
# resp.event.resource_arn #=> String
|
|
2933
|
+
# resp.event.web_acl_arn #=> String
|
|
2934
|
+
# resp.event.api_security_event_detail.label #=> String
|
|
2935
|
+
# resp.event.api_security_event_detail.category #=> String
|
|
2936
|
+
# resp.event.api_security_event_detail.confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
2937
|
+
# resp.event.api_security_event_detail.api_patterns #=> Array
|
|
2938
|
+
# resp.event.api_security_event_detail.api_patterns[0].method #=> String
|
|
2939
|
+
# resp.event.api_security_event_detail.api_patterns[0].path_pattern #=> String
|
|
2940
|
+
# resp.event.api_security_event_detail.api_patterns[0].port #=> Integer
|
|
2941
|
+
# resp.event.api_security_event_detail.api_patterns[0].domains #=> Array
|
|
2942
|
+
# resp.event.api_security_event_detail.api_patterns[0].domains[0] #=> String
|
|
2943
|
+
# resp.event.api_security_event_detail.event_actors #=> Array
|
|
2944
|
+
# resp.event.api_security_event_detail.event_actors[0].event_actor_id #=> String
|
|
2945
|
+
# resp.event.api_security_event_detail.event_actors[0].event_actor_value #=> String
|
|
2946
|
+
# resp.event.api_security_event_detail.timeline #=> Array
|
|
2947
|
+
# resp.event.api_security_event_detail.timeline[0].change_time #=> Time
|
|
2948
|
+
# resp.event.api_security_event_detail.timeline[0].label #=> String
|
|
2949
|
+
# resp.event.api_security_event_detail.timeline[0].confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
2950
|
+
# resp.event.api_security_event_detail.timeline[0].api_patterns #=> Array
|
|
2951
|
+
# resp.event.api_security_event_detail.timeline[0].api_patterns[0].method #=> String
|
|
2952
|
+
# resp.event.api_security_event_detail.timeline[0].api_patterns[0].path_pattern #=> String
|
|
2953
|
+
# resp.event.api_security_event_detail.timeline[0].api_patterns[0].port #=> Integer
|
|
2954
|
+
# resp.event.api_security_event_detail.timeline[0].api_patterns[0].domains #=> Array
|
|
2955
|
+
# resp.event.api_security_event_detail.timeline[0].api_patterns[0].domains[0] #=> String
|
|
2956
|
+
#
|
|
2957
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetEvent AWS API Documentation
|
|
2958
|
+
#
|
|
2959
|
+
# @overload get_event(params = {})
|
|
2960
|
+
# @param [Hash] params ({})
|
|
2961
|
+
def get_event(params = {}, options = {})
|
|
2962
|
+
req = build_request(:get_event, params)
|
|
2963
|
+
req.send_request(options)
|
|
2964
|
+
end
|
|
2965
|
+
|
|
2966
|
+
# Retrieves the details of the specified event actor. An event actor is
|
|
2967
|
+
# a client that is associated with one or more events. The details
|
|
2968
|
+
# include the latest observed attributes of the event actor, the events
|
|
2969
|
+
# that it's associated with, and the history of changes to its
|
|
2970
|
+
# attributes. Currently, this operation supports API Security Amazon Web
|
|
2971
|
+
# Services Managed Rules.
|
|
2972
|
+
#
|
|
2973
|
+
# @option params [required, String] :scope
|
|
2974
|
+
# Specifies whether this is for a global resource type, such as a Amazon
|
|
2975
|
+
# CloudFront distribution. For an Amplify application, use `CLOUDFRONT`.
|
|
2976
|
+
#
|
|
2977
|
+
# To work with CloudFront, you must also specify the Region US East (N.
|
|
2978
|
+
# Virginia) as follows:
|
|
2979
|
+
#
|
|
2980
|
+
# * CLI - Specify the Region when you use the CloudFront scope:
|
|
2981
|
+
# `--scope=CLOUDFRONT --region=us-east-1`.
|
|
2982
|
+
#
|
|
2983
|
+
# * API and SDKs - For all calls, use the Region endpoint us-east-1.
|
|
2984
|
+
#
|
|
2985
|
+
# @option params [required, String] :event_actor_id
|
|
2986
|
+
# The unique identifier of the event actor. WAF returns the event actor
|
|
2987
|
+
# ID in the event details of ListEvents, ListEventsByWebACL, and
|
|
2988
|
+
# GetEvent, and in the response to ListEventActors.
|
|
2989
|
+
#
|
|
2990
|
+
# @return [Types::GetEventActorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2991
|
+
#
|
|
2992
|
+
# * {Types::GetEventActorResponse#event_actor #event_actor} => Types::EventActorDetail
|
|
2993
|
+
#
|
|
2994
|
+
# @example Request syntax with placeholder values
|
|
2995
|
+
#
|
|
2996
|
+
# resp = client.get_event_actor({
|
|
2997
|
+
# scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
|
|
2998
|
+
# event_actor_id: "EntityId", # required
|
|
2999
|
+
# })
|
|
3000
|
+
#
|
|
3001
|
+
# @example Response structure
|
|
3002
|
+
#
|
|
3003
|
+
# resp.event_actor.summary.event_actor_id #=> String
|
|
3004
|
+
# resp.event_actor.summary.client_ip #=> String
|
|
3005
|
+
# resp.event_actor.summary.tls_fingerprint #=> String
|
|
3006
|
+
# resp.event_actor.summary.asn #=> String
|
|
3007
|
+
# resp.event_actor.summary.asn_organization #=> String
|
|
3008
|
+
# resp.event_actor.summary.country #=> String
|
|
3009
|
+
# resp.event_actor.summary.auth_fingerprint #=> String
|
|
3010
|
+
# resp.event_actor.summary.created_at #=> Time
|
|
3011
|
+
# resp.event_actor.events #=> Array
|
|
3012
|
+
# resp.event_actor.events[0].event_id #=> String
|
|
3013
|
+
# resp.event_actor.events[0].start_time #=> Time
|
|
3014
|
+
# resp.event_actor.events[0].label #=> String
|
|
3015
|
+
# resp.event_actor.events[0].category #=> String
|
|
3016
|
+
# resp.event_actor.events[0].confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
3017
|
+
# resp.event_actor.events[0].api_patterns #=> Array
|
|
3018
|
+
# resp.event_actor.events[0].api_patterns[0].method #=> String
|
|
3019
|
+
# resp.event_actor.events[0].api_patterns[0].path_pattern #=> String
|
|
3020
|
+
# resp.event_actor.events[0].api_patterns[0].port #=> Integer
|
|
3021
|
+
# resp.event_actor.events[0].api_patterns[0].domains #=> Array
|
|
3022
|
+
# resp.event_actor.events[0].api_patterns[0].domains[0] #=> String
|
|
3023
|
+
# resp.event_actor.changes #=> Array
|
|
3024
|
+
# resp.event_actor.changes[0].change_time #=> Time
|
|
3025
|
+
# resp.event_actor.changes[0].client_ip #=> String
|
|
3026
|
+
# resp.event_actor.changes[0].tls_fingerprint #=> String
|
|
3027
|
+
# resp.event_actor.changes[0].asn #=> String
|
|
3028
|
+
# resp.event_actor.changes[0].asn_organization #=> String
|
|
3029
|
+
# resp.event_actor.changes[0].country #=> String
|
|
3030
|
+
#
|
|
3031
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetEventActor AWS API Documentation
|
|
3032
|
+
#
|
|
3033
|
+
# @overload get_event_actor(params = {})
|
|
3034
|
+
# @param [Hash] params ({})
|
|
3035
|
+
def get_event_actor(params = {}, options = {})
|
|
3036
|
+
req = build_request(:get_event_actor, params)
|
|
3037
|
+
req.send_request(options)
|
|
3038
|
+
end
|
|
3039
|
+
|
|
3857
3040
|
# Retrieves the specified IPSet.
|
|
3858
3041
|
#
|
|
3859
3042
|
# @option params [required, String] :name
|
|
@@ -4904,6 +4087,8 @@ module Aws::WAFV2
|
|
|
4904
4087
|
# 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
4088
|
# 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
4089
|
# 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"
|
|
4090
|
+
# 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
|
|
4091
|
+
# 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
4092
|
# resp.rule_group.rules[0].statement.managed_rule_group_statement.rule_action_overrides #=> Array
|
|
4908
4093
|
# resp.rule_group.rules[0].statement.managed_rule_group_statement.rule_action_overrides[0].name #=> String
|
|
4909
4094
|
# resp.rule_group.rules[0].statement.managed_rule_group_statement.rule_action_overrides[0].action_to_use.block.custom_response.response_code #=> Integer
|
|
@@ -5149,9 +4334,10 @@ module Aws::WAFV2
|
|
|
5149
4334
|
# @option params [required, String] :scope
|
|
5150
4335
|
# Specifies whether the web ACL is for an Amazon Web Services CloudFront
|
|
5151
4336
|
# distribution or for a regional application. A regional application can
|
|
5152
|
-
# be an Application Load Balancer, an
|
|
5153
|
-
#
|
|
5154
|
-
# Amazon Web Services Verified
|
|
4337
|
+
# be an Application Load Balancer, an Elastic Load Balancing for Envoy
|
|
4338
|
+
# proxy, an AppSync GraphQL API, an Amazon Cognito user pool, an Amazon
|
|
4339
|
+
# Web Services App Runner service, or an Amazon Web Services Verified
|
|
4340
|
+
# Access instance.
|
|
5155
4341
|
#
|
|
5156
4342
|
# @option params [String] :uri_path_prefix
|
|
5157
4343
|
# A URI path prefix to filter the results. When you specify this
|
|
@@ -5343,6 +4529,10 @@ module Aws::WAFV2
|
|
|
5343
4529
|
# `arn:partition:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
|
|
5344
4530
|
# `
|
|
5345
4531
|
#
|
|
4532
|
+
# * For an Elastic Load Balancing for Envoy proxy:
|
|
4533
|
+
# `arn:partition:elasticloadbalancing:region:account-id:proxy/proxy-name:proxy-id
|
|
4534
|
+
# `
|
|
4535
|
+
#
|
|
5346
4536
|
# * For an Amazon API Gateway REST API:
|
|
5347
4537
|
# `arn:partition:apigateway:region::/restapis/api-id/stages/stage-name
|
|
5348
4538
|
# `
|
|
@@ -5590,6 +4780,412 @@ module Aws::WAFV2
|
|
|
5590
4780
|
req.send_request(options)
|
|
5591
4781
|
end
|
|
5592
4782
|
|
|
4783
|
+
# Retrieves a paginated list of the event actors in your account that
|
|
4784
|
+
# are associated with events in the specified time window. An event
|
|
4785
|
+
# actor is a client that is associated with one or more events. The
|
|
4786
|
+
# operation returns up to the top 100 event actors by event count.
|
|
4787
|
+
# Results are paginated. Use the `NextMarker` value from the response to
|
|
4788
|
+
# retrieve the next batch of results. Currently, this operation supports
|
|
4789
|
+
# API Security Amazon Web Services Managed Rules.
|
|
4790
|
+
#
|
|
4791
|
+
# @option params [required, String] :scope
|
|
4792
|
+
# Specifies whether this is for a global resource type, such as a Amazon
|
|
4793
|
+
# CloudFront distribution. For an Amplify application, use `CLOUDFRONT`.
|
|
4794
|
+
#
|
|
4795
|
+
# To work with CloudFront, you must also specify the Region US East (N.
|
|
4796
|
+
# Virginia) as follows:
|
|
4797
|
+
#
|
|
4798
|
+
# * CLI - Specify the Region when you use the CloudFront scope:
|
|
4799
|
+
# `--scope=CLOUDFRONT --region=us-east-1`.
|
|
4800
|
+
#
|
|
4801
|
+
# * API and SDKs - For all calls, use the Region endpoint us-east-1.
|
|
4802
|
+
#
|
|
4803
|
+
# @option params [required, Types::TimeWindow] :time_window
|
|
4804
|
+
# The time range for the event actors to return. The time window can't
|
|
4805
|
+
# be longer than one year.
|
|
4806
|
+
#
|
|
4807
|
+
# @option params [String] :sort_by
|
|
4808
|
+
# The field to sort event actors by. The only supported value is
|
|
4809
|
+
# `EVENT_COUNT`.
|
|
4810
|
+
#
|
|
4811
|
+
# @option params [Integer] :limit
|
|
4812
|
+
# The maximum number of event actors that you want WAF to return for
|
|
4813
|
+
# this request. Valid values are 1 to 100. If more event actors are
|
|
4814
|
+
# available, WAF returns a `NextMarker` value in the response that you
|
|
4815
|
+
# can use in a subsequent call to get the next batch of event actors.
|
|
4816
|
+
#
|
|
4817
|
+
# @option params [String] :next_marker
|
|
4818
|
+
# When you request a list of objects with a `Limit` setting, if the
|
|
4819
|
+
# number of objects that are still available for retrieval exceeds the
|
|
4820
|
+
# limit, WAF returns a `NextMarker` value in the response. To retrieve
|
|
4821
|
+
# the next batch of objects, provide the marker from the prior call in
|
|
4822
|
+
# your next request.
|
|
4823
|
+
#
|
|
4824
|
+
# @return [Types::ListEventActorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4825
|
+
#
|
|
4826
|
+
# * {Types::ListEventActorsResponse#event_actors #event_actors} => Array<Types::EventActorSummary>
|
|
4827
|
+
# * {Types::ListEventActorsResponse#next_marker #next_marker} => String
|
|
4828
|
+
#
|
|
4829
|
+
# @example Request syntax with placeholder values
|
|
4830
|
+
#
|
|
4831
|
+
# resp = client.list_event_actors({
|
|
4832
|
+
# scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
|
|
4833
|
+
# time_window: { # required
|
|
4834
|
+
# start_time: Time.now, # required
|
|
4835
|
+
# end_time: Time.now, # required
|
|
4836
|
+
# },
|
|
4837
|
+
# sort_by: "EVENT_COUNT", # accepts EVENT_COUNT
|
|
4838
|
+
# limit: 1,
|
|
4839
|
+
# next_marker: "EventNextMarker",
|
|
4840
|
+
# })
|
|
4841
|
+
#
|
|
4842
|
+
# @example Response structure
|
|
4843
|
+
#
|
|
4844
|
+
# resp.event_actors #=> Array
|
|
4845
|
+
# resp.event_actors[0].event_actor_id #=> String
|
|
4846
|
+
# resp.event_actors[0].client_ip #=> String
|
|
4847
|
+
# resp.event_actors[0].tls_fingerprint #=> String
|
|
4848
|
+
# resp.event_actors[0].asn #=> String
|
|
4849
|
+
# resp.event_actors[0].asn_organization #=> String
|
|
4850
|
+
# resp.event_actors[0].country #=> String
|
|
4851
|
+
# resp.event_actors[0].auth_fingerprint #=> String
|
|
4852
|
+
# resp.event_actors[0].created_at #=> Time
|
|
4853
|
+
# resp.event_actors[0].event_count #=> Integer
|
|
4854
|
+
# resp.next_marker #=> String
|
|
4855
|
+
#
|
|
4856
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListEventActors AWS API Documentation
|
|
4857
|
+
#
|
|
4858
|
+
# @overload list_event_actors(params = {})
|
|
4859
|
+
# @param [Hash] params ({})
|
|
4860
|
+
def list_event_actors(params = {}, options = {})
|
|
4861
|
+
req = build_request(:list_event_actors, params)
|
|
4862
|
+
req.send_request(options)
|
|
4863
|
+
end
|
|
4864
|
+
|
|
4865
|
+
# Retrieves a paginated list of event summaries for your account. Use
|
|
4866
|
+
# this operation to monitor and investigate potential threats to the
|
|
4867
|
+
# resources that your web ACLs protect. Results are paginated. Use the
|
|
4868
|
+
# `NextMarker` value from the response to retrieve the next batch of
|
|
4869
|
+
# results. Currently, this operation supports API Security Amazon Web
|
|
4870
|
+
# Services Managed Rules.
|
|
4871
|
+
#
|
|
4872
|
+
# You can filter the results by time window, event category, resource,
|
|
4873
|
+
# and API pattern, and sort them by start time, end time, or confidence.
|
|
4874
|
+
#
|
|
4875
|
+
# To retrieve the events for a single web ACL, use ListEventsByWebACL.
|
|
4876
|
+
# To retrieve the full details of a single event, use GetEvent.
|
|
4877
|
+
#
|
|
4878
|
+
# @option params [required, String] :scope
|
|
4879
|
+
# Specifies whether this is for a global resource type, such as a Amazon
|
|
4880
|
+
# CloudFront distribution. For an Amplify application, use `CLOUDFRONT`.
|
|
4881
|
+
#
|
|
4882
|
+
# To work with CloudFront, you must also specify the Region US East (N.
|
|
4883
|
+
# Virginia) as follows:
|
|
4884
|
+
#
|
|
4885
|
+
# * CLI - Specify the Region when you use the CloudFront scope:
|
|
4886
|
+
# `--scope=CLOUDFRONT --region=us-east-1`.
|
|
4887
|
+
#
|
|
4888
|
+
# * API and SDKs - For all calls, use the Region endpoint us-east-1.
|
|
4889
|
+
#
|
|
4890
|
+
# @option params [Types::TimeWindow] :time_window
|
|
4891
|
+
# The time range for the events to return. If you don't specify a time
|
|
4892
|
+
# window, WAF returns events from the past year. The time window can't
|
|
4893
|
+
# be longer than one year.
|
|
4894
|
+
#
|
|
4895
|
+
# @option params [Array<Types::EventFilter>] :filters
|
|
4896
|
+
# Filters that narrow the results by event category or by the Amazon
|
|
4897
|
+
# Resource Name (ARN) of the protected resource. You can specify up to 8
|
|
4898
|
+
# filters.
|
|
4899
|
+
#
|
|
4900
|
+
# @option params [Array<Types::ApiPatternFilter>] :api_pattern_filters
|
|
4901
|
+
# Filters that narrow the results to events that involve the specified
|
|
4902
|
+
# API patterns. If you specify more than one API pattern filter, WAF
|
|
4903
|
+
# returns the events that match any of the filters. You can specify up
|
|
4904
|
+
# to 20 API pattern filters.
|
|
4905
|
+
#
|
|
4906
|
+
# @option params [Integer] :limit
|
|
4907
|
+
# The maximum number of events that you want WAF to return for this
|
|
4908
|
+
# request. Valid values are 1 to 20. If more events are available, WAF
|
|
4909
|
+
# returns a `NextMarker` value in the response that you can use in a
|
|
4910
|
+
# subsequent call to get the next batch of events.
|
|
4911
|
+
#
|
|
4912
|
+
# @option params [String] :next_marker
|
|
4913
|
+
# When you request a list of objects with a `Limit` setting, if the
|
|
4914
|
+
# number of objects that are still available for retrieval exceeds the
|
|
4915
|
+
# limit, WAF returns a `NextMarker` value in the response. To retrieve
|
|
4916
|
+
# the next batch of objects, provide the marker from the prior call in
|
|
4917
|
+
# your next request.
|
|
4918
|
+
#
|
|
4919
|
+
# The marker is valid only for a request with the same `TimeWindow`,
|
|
4920
|
+
# `Filters`, `SortBy`, and `SortOrder` settings as the request that
|
|
4921
|
+
# returned it.
|
|
4922
|
+
#
|
|
4923
|
+
# @option params [String] :sort_order
|
|
4924
|
+
# The order in which WAF sorts the events. Valid values:
|
|
4925
|
+
#
|
|
4926
|
+
# * `ASC` - Sort in ascending order.
|
|
4927
|
+
#
|
|
4928
|
+
# * `DESC` - Sort in descending order. This is the default.
|
|
4929
|
+
#
|
|
4930
|
+
# @option params [String] :sort_by
|
|
4931
|
+
# The field that WAF sorts the events by. Valid values:
|
|
4932
|
+
#
|
|
4933
|
+
# * `CONFIDENCE` - Sort by the confidence level of the event detection.
|
|
4934
|
+
#
|
|
4935
|
+
# * `END_TIME` - Sort by the time that the event ended.
|
|
4936
|
+
#
|
|
4937
|
+
# * `START_TIME` - Sort by the time that the event started.
|
|
4938
|
+
#
|
|
4939
|
+
# @option params [Array<String>] :include
|
|
4940
|
+
# Additional fields to return with each event summary. By default, the
|
|
4941
|
+
# response includes only the default summary fields.
|
|
4942
|
+
#
|
|
4943
|
+
# Specify `TIMELINE` to return the timeline of each event in
|
|
4944
|
+
# `ApiSecurityEventDetail$Timeline`.
|
|
4945
|
+
#
|
|
4946
|
+
# @return [Types::ListEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4947
|
+
#
|
|
4948
|
+
# * {Types::ListEventsResponse#events #events} => Array<Types::EventDetailSummary>
|
|
4949
|
+
# * {Types::ListEventsResponse#next_marker #next_marker} => String
|
|
4950
|
+
#
|
|
4951
|
+
# @example Request syntax with placeholder values
|
|
4952
|
+
#
|
|
4953
|
+
# resp = client.list_events({
|
|
4954
|
+
# scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
|
|
4955
|
+
# time_window: {
|
|
4956
|
+
# start_time: Time.now, # required
|
|
4957
|
+
# end_time: Time.now, # required
|
|
4958
|
+
# },
|
|
4959
|
+
# filters: [
|
|
4960
|
+
# {
|
|
4961
|
+
# name: "EVENT_CATEGORY", # required, accepts EVENT_CATEGORY, RESOURCE_ARN
|
|
4962
|
+
# values: ["FilterValue"], # required
|
|
4963
|
+
# },
|
|
4964
|
+
# ],
|
|
4965
|
+
# api_pattern_filters: [
|
|
4966
|
+
# {
|
|
4967
|
+
# method: "HttpMethodString",
|
|
4968
|
+
# path_pattern: "PathPatternString",
|
|
4969
|
+
# port: 1,
|
|
4970
|
+
# domains: ["DomainString"],
|
|
4971
|
+
# },
|
|
4972
|
+
# ],
|
|
4973
|
+
# limit: 1,
|
|
4974
|
+
# next_marker: "EventNextMarker",
|
|
4975
|
+
# sort_order: "ASC", # accepts ASC, DESC
|
|
4976
|
+
# sort_by: "START_TIME", # accepts START_TIME, END_TIME, CONFIDENCE
|
|
4977
|
+
# include: ["TIMELINE"], # accepts TIMELINE
|
|
4978
|
+
# })
|
|
4979
|
+
#
|
|
4980
|
+
# @example Response structure
|
|
4981
|
+
#
|
|
4982
|
+
# resp.events #=> Array
|
|
4983
|
+
# resp.events[0].event_id #=> String
|
|
4984
|
+
# resp.events[0].event_status #=> String, one of "EVENT_STARTED", "EVENT_IN_PROGRESS", "EVENT_COMPLETED", "EVENT_ENDED"
|
|
4985
|
+
# resp.events[0].event_category #=> String, one of "API_SECURITY"
|
|
4986
|
+
# resp.events[0].start_time #=> Time
|
|
4987
|
+
# resp.events[0].last_updated_time #=> Time
|
|
4988
|
+
# resp.events[0].end_time #=> Time
|
|
4989
|
+
# resp.events[0].resource_arn #=> String
|
|
4990
|
+
# resp.events[0].web_acl_arn #=> String
|
|
4991
|
+
# resp.events[0].api_security_event_detail.label #=> String
|
|
4992
|
+
# resp.events[0].api_security_event_detail.category #=> String
|
|
4993
|
+
# resp.events[0].api_security_event_detail.confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
4994
|
+
# resp.events[0].api_security_event_detail.api_patterns #=> Array
|
|
4995
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].method #=> String
|
|
4996
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].path_pattern #=> String
|
|
4997
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].port #=> Integer
|
|
4998
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].domains #=> Array
|
|
4999
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].domains[0] #=> String
|
|
5000
|
+
# resp.events[0].api_security_event_detail.event_actors #=> Array
|
|
5001
|
+
# resp.events[0].api_security_event_detail.event_actors[0].event_actor_id #=> String
|
|
5002
|
+
# resp.events[0].api_security_event_detail.event_actors[0].event_actor_value #=> String
|
|
5003
|
+
# resp.events[0].api_security_event_detail.timeline #=> Array
|
|
5004
|
+
# resp.events[0].api_security_event_detail.timeline[0].change_time #=> Time
|
|
5005
|
+
# resp.events[0].api_security_event_detail.timeline[0].label #=> String
|
|
5006
|
+
# resp.events[0].api_security_event_detail.timeline[0].confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
5007
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns #=> Array
|
|
5008
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].method #=> String
|
|
5009
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].path_pattern #=> String
|
|
5010
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].port #=> Integer
|
|
5011
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].domains #=> Array
|
|
5012
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].domains[0] #=> String
|
|
5013
|
+
# resp.next_marker #=> String
|
|
5014
|
+
#
|
|
5015
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListEvents AWS API Documentation
|
|
5016
|
+
#
|
|
5017
|
+
# @overload list_events(params = {})
|
|
5018
|
+
# @param [Hash] params ({})
|
|
5019
|
+
def list_events(params = {}, options = {})
|
|
5020
|
+
req = build_request(:list_events, params)
|
|
5021
|
+
req.send_request(options)
|
|
5022
|
+
end
|
|
5023
|
+
|
|
5024
|
+
# Retrieves a paginated list of event summaries for the specified web
|
|
5025
|
+
# ACL. Use this operation to monitor and investigate potential threats
|
|
5026
|
+
# to the resources that the web ACL protects. Results are paginated. Use
|
|
5027
|
+
# the `NextMarker` value from the response to retrieve the next batch of
|
|
5028
|
+
# results. Currently, this operation supports API Security Amazon Web
|
|
5029
|
+
# Services Managed Rules.
|
|
5030
|
+
#
|
|
5031
|
+
# You can filter the results by time window, event category, resource,
|
|
5032
|
+
# and API pattern, and sort them by start time, end time, or confidence.
|
|
5033
|
+
#
|
|
5034
|
+
# To retrieve the events for all of the web ACLs in your account, use
|
|
5035
|
+
# ListEvents. To retrieve the full details of a single event, use
|
|
5036
|
+
# GetEvent.
|
|
5037
|
+
#
|
|
5038
|
+
# @option params [required, String] :scope
|
|
5039
|
+
# Specifies whether this is for a global resource type, such as a Amazon
|
|
5040
|
+
# CloudFront distribution. For an Amplify application, use `CLOUDFRONT`.
|
|
5041
|
+
#
|
|
5042
|
+
# To work with CloudFront, you must also specify the Region US East (N.
|
|
5043
|
+
# Virginia) as follows:
|
|
5044
|
+
#
|
|
5045
|
+
# * CLI - Specify the Region when you use the CloudFront scope:
|
|
5046
|
+
# `--scope=CLOUDFRONT --region=us-east-1`.
|
|
5047
|
+
#
|
|
5048
|
+
# * API and SDKs - For all calls, use the Region endpoint us-east-1.
|
|
5049
|
+
#
|
|
5050
|
+
# @option params [required, String] :web_acl_arn
|
|
5051
|
+
# The Amazon Resource Name (ARN) of the web ACL whose events you want to
|
|
5052
|
+
# retrieve.
|
|
5053
|
+
#
|
|
5054
|
+
# @option params [Types::TimeWindow] :time_window
|
|
5055
|
+
# The time range for the events to return. If you don't specify a time
|
|
5056
|
+
# window, WAF returns events from the past year. The time window can't
|
|
5057
|
+
# be longer than one year.
|
|
5058
|
+
#
|
|
5059
|
+
# @option params [Array<Types::EventFilter>] :filters
|
|
5060
|
+
# Filters that narrow the results by event category or by the Amazon
|
|
5061
|
+
# Resource Name (ARN) of the protected resource. You can specify up to 8
|
|
5062
|
+
# filters.
|
|
5063
|
+
#
|
|
5064
|
+
# @option params [Array<Types::ApiPatternFilter>] :api_pattern_filters
|
|
5065
|
+
# Filters that narrow the results to events that involve the specified
|
|
5066
|
+
# API patterns. If you specify more than one API pattern filter, WAF
|
|
5067
|
+
# returns the events that match any of the filters. You can specify up
|
|
5068
|
+
# to 20 API pattern filters.
|
|
5069
|
+
#
|
|
5070
|
+
# @option params [Integer] :limit
|
|
5071
|
+
# The maximum number of events that you want WAF to return for this
|
|
5072
|
+
# request. Valid values are 1 to 20. If more events are available, WAF
|
|
5073
|
+
# returns a `NextMarker` value in the response that you can use in a
|
|
5074
|
+
# subsequent call to get the next batch of events.
|
|
5075
|
+
#
|
|
5076
|
+
# @option params [String] :next_marker
|
|
5077
|
+
# When you request a list of objects with a `Limit` setting, if the
|
|
5078
|
+
# number of objects that are still available for retrieval exceeds the
|
|
5079
|
+
# limit, WAF returns a `NextMarker` value in the response. To retrieve
|
|
5080
|
+
# the next batch of objects, provide the marker from the prior call in
|
|
5081
|
+
# your next request.
|
|
5082
|
+
#
|
|
5083
|
+
# The marker is valid only for a request with the same `WebAclArn`,
|
|
5084
|
+
# `TimeWindow`, `Filters`, `SortBy`, and `SortOrder` settings as the
|
|
5085
|
+
# request that returned it.
|
|
5086
|
+
#
|
|
5087
|
+
# @option params [String] :sort_order
|
|
5088
|
+
# The order in which WAF sorts the events. Valid values:
|
|
5089
|
+
#
|
|
5090
|
+
# * `ASC` - Sort in ascending order.
|
|
5091
|
+
#
|
|
5092
|
+
# * `DESC` - Sort in descending order. This is the default.
|
|
5093
|
+
#
|
|
5094
|
+
# @option params [String] :sort_by
|
|
5095
|
+
# The field that WAF sorts the events by. Valid values:
|
|
5096
|
+
#
|
|
5097
|
+
# * `CONFIDENCE` - Sort by the confidence level of the event detection.
|
|
5098
|
+
#
|
|
5099
|
+
# * `END_TIME` - Sort by the time that the event ended.
|
|
5100
|
+
#
|
|
5101
|
+
# * `START_TIME` - Sort by the time that the event started.
|
|
5102
|
+
#
|
|
5103
|
+
# @option params [Array<String>] :include
|
|
5104
|
+
# Additional fields to return with each event summary. By default, the
|
|
5105
|
+
# response includes only the default summary fields.
|
|
5106
|
+
#
|
|
5107
|
+
# Specify `TIMELINE` to return the timeline of each event in
|
|
5108
|
+
# `ApiSecurityEventDetail$Timeline`.
|
|
5109
|
+
#
|
|
5110
|
+
# @return [Types::ListEventsByWebACLResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5111
|
+
#
|
|
5112
|
+
# * {Types::ListEventsByWebACLResponse#events #events} => Array<Types::EventDetailSummary>
|
|
5113
|
+
# * {Types::ListEventsByWebACLResponse#next_marker #next_marker} => String
|
|
5114
|
+
#
|
|
5115
|
+
# @example Request syntax with placeholder values
|
|
5116
|
+
#
|
|
5117
|
+
# resp = client.list_events_by_web_acl({
|
|
5118
|
+
# scope: "CLOUDFRONT", # required, accepts CLOUDFRONT, REGIONAL
|
|
5119
|
+
# web_acl_arn: "ResourceArn", # required
|
|
5120
|
+
# time_window: {
|
|
5121
|
+
# start_time: Time.now, # required
|
|
5122
|
+
# end_time: Time.now, # required
|
|
5123
|
+
# },
|
|
5124
|
+
# filters: [
|
|
5125
|
+
# {
|
|
5126
|
+
# name: "EVENT_CATEGORY", # required, accepts EVENT_CATEGORY, RESOURCE_ARN
|
|
5127
|
+
# values: ["FilterValue"], # required
|
|
5128
|
+
# },
|
|
5129
|
+
# ],
|
|
5130
|
+
# api_pattern_filters: [
|
|
5131
|
+
# {
|
|
5132
|
+
# method: "HttpMethodString",
|
|
5133
|
+
# path_pattern: "PathPatternString",
|
|
5134
|
+
# port: 1,
|
|
5135
|
+
# domains: ["DomainString"],
|
|
5136
|
+
# },
|
|
5137
|
+
# ],
|
|
5138
|
+
# limit: 1,
|
|
5139
|
+
# next_marker: "EventNextMarker",
|
|
5140
|
+
# sort_order: "ASC", # accepts ASC, DESC
|
|
5141
|
+
# sort_by: "START_TIME", # accepts START_TIME, END_TIME, CONFIDENCE
|
|
5142
|
+
# include: ["TIMELINE"], # accepts TIMELINE
|
|
5143
|
+
# })
|
|
5144
|
+
#
|
|
5145
|
+
# @example Response structure
|
|
5146
|
+
#
|
|
5147
|
+
# resp.events #=> Array
|
|
5148
|
+
# resp.events[0].event_id #=> String
|
|
5149
|
+
# resp.events[0].event_status #=> String, one of "EVENT_STARTED", "EVENT_IN_PROGRESS", "EVENT_COMPLETED", "EVENT_ENDED"
|
|
5150
|
+
# resp.events[0].event_category #=> String, one of "API_SECURITY"
|
|
5151
|
+
# resp.events[0].start_time #=> Time
|
|
5152
|
+
# resp.events[0].last_updated_time #=> Time
|
|
5153
|
+
# resp.events[0].end_time #=> Time
|
|
5154
|
+
# resp.events[0].resource_arn #=> String
|
|
5155
|
+
# resp.events[0].web_acl_arn #=> String
|
|
5156
|
+
# resp.events[0].api_security_event_detail.label #=> String
|
|
5157
|
+
# resp.events[0].api_security_event_detail.category #=> String
|
|
5158
|
+
# resp.events[0].api_security_event_detail.confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
5159
|
+
# resp.events[0].api_security_event_detail.api_patterns #=> Array
|
|
5160
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].method #=> String
|
|
5161
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].path_pattern #=> String
|
|
5162
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].port #=> Integer
|
|
5163
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].domains #=> Array
|
|
5164
|
+
# resp.events[0].api_security_event_detail.api_patterns[0].domains[0] #=> String
|
|
5165
|
+
# resp.events[0].api_security_event_detail.event_actors #=> Array
|
|
5166
|
+
# resp.events[0].api_security_event_detail.event_actors[0].event_actor_id #=> String
|
|
5167
|
+
# resp.events[0].api_security_event_detail.event_actors[0].event_actor_value #=> String
|
|
5168
|
+
# resp.events[0].api_security_event_detail.timeline #=> Array
|
|
5169
|
+
# resp.events[0].api_security_event_detail.timeline[0].change_time #=> Time
|
|
5170
|
+
# resp.events[0].api_security_event_detail.timeline[0].label #=> String
|
|
5171
|
+
# resp.events[0].api_security_event_detail.timeline[0].confidence #=> String, one of "LOW", "MEDIUM", "HIGH"
|
|
5172
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns #=> Array
|
|
5173
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].method #=> String
|
|
5174
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].path_pattern #=> String
|
|
5175
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].port #=> Integer
|
|
5176
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].domains #=> Array
|
|
5177
|
+
# resp.events[0].api_security_event_detail.timeline[0].api_patterns[0].domains[0] #=> String
|
|
5178
|
+
# resp.next_marker #=> String
|
|
5179
|
+
#
|
|
5180
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/ListEventsByWebACL AWS API Documentation
|
|
5181
|
+
#
|
|
5182
|
+
# @overload list_events_by_web_acl(params = {})
|
|
5183
|
+
# @param [Hash] params ({})
|
|
5184
|
+
def list_events_by_web_acl(params = {}, options = {})
|
|
5185
|
+
req = build_request(:list_events_by_web_acl, params)
|
|
5186
|
+
req.send_request(options)
|
|
5187
|
+
end
|
|
5188
|
+
|
|
5593
5189
|
# Retrieves an array of IPSetSummary objects for the IP sets that you
|
|
5594
5190
|
# manage.
|
|
5595
5191
|
#
|
|
@@ -6005,7 +5601,7 @@ module Aws::WAFV2
|
|
|
6005
5601
|
#
|
|
6006
5602
|
# resp = client.list_resources_for_web_acl({
|
|
6007
5603
|
# web_acl_arn: "ResourceArn", # required
|
|
6008
|
-
# resource_type: "APPLICATION_LOAD_BALANCER", # accepts APPLICATION_LOAD_BALANCER, API_GATEWAY, APPSYNC, COGNITO_USER_POOL, APP_RUNNER_SERVICE, VERIFIED_ACCESS_INSTANCE, AMPLIFY, AGENTCORE_GATEWAY
|
|
5604
|
+
# resource_type: "APPLICATION_LOAD_BALANCER", # accepts APPLICATION_LOAD_BALANCER, API_GATEWAY, APPSYNC, COGNITO_USER_POOL, APP_RUNNER_SERVICE, VERIFIED_ACCESS_INSTANCE, AMPLIFY, ELB_PROXY, AGENTCORE_GATEWAY
|
|
6009
5605
|
# })
|
|
6010
5606
|
#
|
|
6011
5607
|
# @example Response structure
|
|
@@ -7899,6 +7495,18 @@ module Aws::WAFV2
|
|
|
7899
7495
|
# },
|
|
7900
7496
|
# sensitivity_to_block: "LOW", # accepts LOW, MEDIUM, HIGH
|
|
7901
7497
|
# },
|
|
7498
|
+
# aws_managed_rules_ai_security_rule_set: {
|
|
7499
|
+
# bedrock_guardrails: { # required
|
|
7500
|
+
# disable: {
|
|
7501
|
+
# },
|
|
7502
|
+
# protect_request_only: {
|
|
7503
|
+
# role_arn: "IAMRoleArn", # required
|
|
7504
|
+
# },
|
|
7505
|
+
# protect_request_and_response: {
|
|
7506
|
+
# role_arn: "IAMRoleArn", # required
|
|
7507
|
+
# },
|
|
7508
|
+
# },
|
|
7509
|
+
# },
|
|
7902
7510
|
# },
|
|
7903
7511
|
# ],
|
|
7904
7512
|
# rule_action_overrides: [
|
|
@@ -8232,10 +7840,10 @@ module Aws::WAFV2
|
|
|
8232
7840
|
# RuleGroup, and managed rule group. You can associate a web ACL with
|
|
8233
7841
|
# one or more Amazon Web Services resources to protect. The resource
|
|
8234
7842
|
# types include Amazon CloudFront distribution, Amazon API Gateway REST
|
|
8235
|
-
# API, Application Load Balancer,
|
|
8236
|
-
#
|
|
8237
|
-
#
|
|
8238
|
-
# Gateway.
|
|
7843
|
+
# API, Application Load Balancer, Elastic Load Balancing for Envoy
|
|
7844
|
+
# proxy, AppSync GraphQL API, Amazon Cognito user pool, App Runner
|
|
7845
|
+
# service, Amplify application, Amazon Web Services Verified Access
|
|
7846
|
+
# instance, and Amazon Bedrock AgentCore Gateway.
|
|
8239
7847
|
#
|
|
8240
7848
|
# **Temporary inconsistencies during updates**
|
|
8241
7849
|
#
|
|
@@ -8372,9 +7980,11 @@ module Aws::WAFV2
|
|
|
8372
7980
|
#
|
|
8373
7981
|
# Use this to customize the maximum size of the request body that your
|
|
8374
7982
|
# protected resources forward to WAF for inspection. You can customize
|
|
8375
|
-
# this setting for
|
|
8376
|
-
#
|
|
8377
|
-
# bytes)
|
|
7983
|
+
# this setting for Application Load Balancer, CloudFront, API Gateway,
|
|
7984
|
+
# Amazon Cognito, App Runner, Verified Access, or Elastic Load Balancing
|
|
7985
|
+
# for Envoy resources. The default setting is 8 KB (8,192 bytes) for
|
|
7986
|
+
# Application Load Balancer and 16 KB (16,384 bytes) for the other
|
|
7987
|
+
# resource types.
|
|
8378
7988
|
#
|
|
8379
7989
|
# <note markdown="1"> You are charged additional fees when your protected resources forward
|
|
8380
7990
|
# body sizes that are larger than the default. For more information, see
|
|
@@ -8382,8 +7992,7 @@ module Aws::WAFV2
|
|
|
8382
7992
|
#
|
|
8383
7993
|
# </note>
|
|
8384
7994
|
#
|
|
8385
|
-
# For
|
|
8386
|
-
# (8,192 bytes).
|
|
7995
|
+
# For AppSync, the limit is fixed at 8 KB (8,192 bytes).
|
|
8387
7996
|
#
|
|
8388
7997
|
# You can also use this to have your CloudFront distributions insert the
|
|
8389
7998
|
# WAF challenge JavaScript SDK into the HTML responses that they return.
|
|
@@ -8459,7 +8068,7 @@ module Aws::WAFV2
|
|
|
8459
8068
|
tracer: tracer
|
|
8460
8069
|
)
|
|
8461
8070
|
context[:gem_name] = 'aws-sdk-wafv2'
|
|
8462
|
-
context[:gem_version] = '1.
|
|
8071
|
+
context[:gem_version] = '1.154.0'
|
|
8463
8072
|
Seahorse::Client::Request.new(handlers, context)
|
|
8464
8073
|
end
|
|
8465
8074
|
|