mypy-boto3-waf-regional 1.26.0.post1__py3-none-any.whl → 1.28.16__py3-none-any.whl

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.

Potentially problematic release.


This version of mypy-boto3-waf-regional might be problematic. Click here for more details.

@@ -8,12 +8,14 @@ Usage::
8
8
  ```python
9
9
  from mypy_boto3_waf_regional.type_defs import ExcludedRuleTypeDef
10
10
 
11
- data: ExcludedRuleTypeDef = {...}
11
+ data: ExcludedRuleTypeDef = ...
12
12
  ```
13
13
  """
14
14
  import sys
15
15
  from datetime import datetime
16
- from typing import Dict, List, Sequence, Union
16
+ from typing import IO, Any, Dict, List, Sequence, Union
17
+
18
+ from botocore.response import StreamingBody
17
19
 
18
20
  from .literals import (
19
21
  ChangeActionType,
@@ -46,6 +48,7 @@ __all__ = (
46
48
  "WafActionTypeDef",
47
49
  "WafOverrideActionTypeDef",
48
50
  "AssociateWebACLRequestRequestTypeDef",
51
+ "BlobTypeDef",
49
52
  "ByteMatchSetSummaryTypeDef",
50
53
  "FieldToMatchTypeDef",
51
54
  "CreateByteMatchSetRequestRequestTypeDef",
@@ -90,7 +93,7 @@ __all__ = (
90
93
  "GetRegexPatternSetRequestRequestTypeDef",
91
94
  "GetRuleGroupRequestRequestTypeDef",
92
95
  "GetRuleRequestRequestTypeDef",
93
- "TimeWindowTypeDef",
96
+ "TimeWindowOutputTypeDef",
94
97
  "GetSizeConstraintSetRequestRequestTypeDef",
95
98
  "GetSqlInjectionMatchSetRequestRequestTypeDef",
96
99
  "GetWebACLForResourceRequestRequestTypeDef",
@@ -128,9 +131,13 @@ __all__ = (
128
131
  "PredicateTypeDef",
129
132
  "PutPermissionPolicyRequestRequestTypeDef",
130
133
  "RegexPatternSetUpdateTypeDef",
134
+ "TimestampTypeDef",
131
135
  "UntagResourceRequestRequestTypeDef",
136
+ "ActivatedRuleOutputTypeDef",
132
137
  "ActivatedRuleTypeDef",
138
+ "ByteMatchTupleOutputTypeDef",
133
139
  "ByteMatchTupleTypeDef",
140
+ "LoggingConfigurationOutputTypeDef",
134
141
  "LoggingConfigurationTypeDef",
135
142
  "RegexMatchTupleTypeDef",
136
143
  "SizeConstraintTypeDef",
@@ -180,7 +187,6 @@ __all__ = (
180
187
  "GeoMatchSetTypeDef",
181
188
  "GeoMatchSetUpdateTypeDef",
182
189
  "ListGeoMatchSetsResponseTypeDef",
183
- "GetSampledRequestsRequestRequestTypeDef",
184
190
  "GetWebACLForResourceResponseTypeDef",
185
191
  "ListWebACLsResponseTypeDef",
186
192
  "HTTPRequestTypeDef",
@@ -200,16 +206,18 @@ __all__ = (
200
206
  "RuleTypeDef",
201
207
  "RuleUpdateTypeDef",
202
208
  "UpdateRegexPatternSetRequestRequestTypeDef",
209
+ "TimeWindowTypeDef",
203
210
  "ListActivatedRulesInRuleGroupResponseTypeDef",
204
- "RuleGroupUpdateTypeDef",
205
211
  "WebACLTypeDef",
212
+ "RuleGroupUpdateTypeDef",
206
213
  "WebACLUpdateTypeDef",
207
214
  "ByteMatchSetTypeDef",
208
215
  "ByteMatchSetUpdateTypeDef",
209
216
  "GetLoggingConfigurationResponseTypeDef",
210
217
  "ListLoggingConfigurationsResponseTypeDef",
211
- "PutLoggingConfigurationRequestRequestTypeDef",
212
218
  "PutLoggingConfigurationResponseTypeDef",
219
+ "LoggingConfigurationUnionTypeDef",
220
+ "PutLoggingConfigurationRequestRequestTypeDef",
213
221
  "RegexMatchSetTypeDef",
214
222
  "RegexMatchSetUpdateTypeDef",
215
223
  "SizeConstraintSetTypeDef",
@@ -232,9 +240,11 @@ __all__ = (
232
240
  "GetRuleResponseTypeDef",
233
241
  "UpdateRateBasedRuleRequestRequestTypeDef",
234
242
  "UpdateRuleRequestRequestTypeDef",
235
- "UpdateRuleGroupRequestRequestTypeDef",
243
+ "GetSampledRequestsRequestRequestTypeDef",
244
+ "TimeWindowUnionTypeDef",
236
245
  "CreateWebACLResponseTypeDef",
237
246
  "GetWebACLResponseTypeDef",
247
+ "UpdateRuleGroupRequestRequestTypeDef",
238
248
  "UpdateWebACLRequestRequestTypeDef",
239
249
  "CreateByteMatchSetResponseTypeDef",
240
250
  "GetByteMatchSetResponseTypeDef",
@@ -283,6 +293,7 @@ AssociateWebACLRequestRequestTypeDef = TypedDict(
283
293
  },
284
294
  )
285
295
 
296
+ BlobTypeDef = Union[str, bytes, IO[Any], StreamingBody]
286
297
  ByteMatchSetSummaryTypeDef = TypedDict(
287
298
  "ByteMatchSetSummaryTypeDef",
288
299
  {
@@ -674,11 +685,11 @@ GetRuleRequestRequestTypeDef = TypedDict(
674
685
  },
675
686
  )
676
687
 
677
- TimeWindowTypeDef = TypedDict(
678
- "TimeWindowTypeDef",
688
+ TimeWindowOutputTypeDef = TypedDict(
689
+ "TimeWindowOutputTypeDef",
679
690
  {
680
- "StartTime": Union[datetime, str],
681
- "EndTime": Union[datetime, str],
691
+ "StartTime": datetime,
692
+ "EndTime": datetime,
682
693
  },
683
694
  )
684
695
 
@@ -1021,6 +1032,7 @@ RegexPatternSetUpdateTypeDef = TypedDict(
1021
1032
  },
1022
1033
  )
1023
1034
 
1035
+ TimestampTypeDef = Union[datetime, str]
1024
1036
  UntagResourceRequestRequestTypeDef = TypedDict(
1025
1037
  "UntagResourceRequestRequestTypeDef",
1026
1038
  {
@@ -1029,6 +1041,31 @@ UntagResourceRequestRequestTypeDef = TypedDict(
1029
1041
  },
1030
1042
  )
1031
1043
 
1044
+ _RequiredActivatedRuleOutputTypeDef = TypedDict(
1045
+ "_RequiredActivatedRuleOutputTypeDef",
1046
+ {
1047
+ "Priority": int,
1048
+ "RuleId": str,
1049
+ },
1050
+ )
1051
+ _OptionalActivatedRuleOutputTypeDef = TypedDict(
1052
+ "_OptionalActivatedRuleOutputTypeDef",
1053
+ {
1054
+ "Action": WafActionTypeDef,
1055
+ "OverrideAction": WafOverrideActionTypeDef,
1056
+ "Type": WafRuleTypeType,
1057
+ "ExcludedRules": List[ExcludedRuleTypeDef],
1058
+ },
1059
+ total=False,
1060
+ )
1061
+
1062
+
1063
+ class ActivatedRuleOutputTypeDef(
1064
+ _RequiredActivatedRuleOutputTypeDef, _OptionalActivatedRuleOutputTypeDef
1065
+ ):
1066
+ pass
1067
+
1068
+
1032
1069
  _RequiredActivatedRuleTypeDef = TypedDict(
1033
1070
  "_RequiredActivatedRuleTypeDef",
1034
1071
  {
@@ -1042,7 +1079,7 @@ _OptionalActivatedRuleTypeDef = TypedDict(
1042
1079
  "Action": WafActionTypeDef,
1043
1080
  "OverrideAction": WafOverrideActionTypeDef,
1044
1081
  "Type": WafRuleTypeType,
1045
- "ExcludedRules": List[ExcludedRuleTypeDef],
1082
+ "ExcludedRules": Sequence[ExcludedRuleTypeDef],
1046
1083
  },
1047
1084
  total=False,
1048
1085
  )
@@ -1052,27 +1089,59 @@ class ActivatedRuleTypeDef(_RequiredActivatedRuleTypeDef, _OptionalActivatedRule
1052
1089
  pass
1053
1090
 
1054
1091
 
1092
+ ByteMatchTupleOutputTypeDef = TypedDict(
1093
+ "ByteMatchTupleOutputTypeDef",
1094
+ {
1095
+ "FieldToMatch": FieldToMatchTypeDef,
1096
+ "TargetString": bytes,
1097
+ "TextTransformation": TextTransformationType,
1098
+ "PositionalConstraint": PositionalConstraintType,
1099
+ },
1100
+ )
1101
+
1055
1102
  ByteMatchTupleTypeDef = TypedDict(
1056
1103
  "ByteMatchTupleTypeDef",
1057
1104
  {
1058
1105
  "FieldToMatch": FieldToMatchTypeDef,
1059
- "TargetString": bytes,
1106
+ "TargetString": BlobTypeDef,
1060
1107
  "TextTransformation": TextTransformationType,
1061
1108
  "PositionalConstraint": PositionalConstraintType,
1062
1109
  },
1063
1110
  )
1064
1111
 
1112
+ _RequiredLoggingConfigurationOutputTypeDef = TypedDict(
1113
+ "_RequiredLoggingConfigurationOutputTypeDef",
1114
+ {
1115
+ "ResourceArn": str,
1116
+ "LogDestinationConfigs": List[str],
1117
+ },
1118
+ )
1119
+ _OptionalLoggingConfigurationOutputTypeDef = TypedDict(
1120
+ "_OptionalLoggingConfigurationOutputTypeDef",
1121
+ {
1122
+ "RedactedFields": List[FieldToMatchTypeDef],
1123
+ },
1124
+ total=False,
1125
+ )
1126
+
1127
+
1128
+ class LoggingConfigurationOutputTypeDef(
1129
+ _RequiredLoggingConfigurationOutputTypeDef, _OptionalLoggingConfigurationOutputTypeDef
1130
+ ):
1131
+ pass
1132
+
1133
+
1065
1134
  _RequiredLoggingConfigurationTypeDef = TypedDict(
1066
1135
  "_RequiredLoggingConfigurationTypeDef",
1067
1136
  {
1068
1137
  "ResourceArn": str,
1069
- "LogDestinationConfigs": List[str],
1138
+ "LogDestinationConfigs": Sequence[str],
1070
1139
  },
1071
1140
  )
1072
1141
  _OptionalLoggingConfigurationTypeDef = TypedDict(
1073
1142
  "_OptionalLoggingConfigurationTypeDef",
1074
1143
  {
1075
- "RedactedFields": List[FieldToMatchTypeDef],
1144
+ "RedactedFields": Sequence[FieldToMatchTypeDef],
1076
1145
  },
1077
1146
  total=False,
1078
1147
  )
@@ -1553,16 +1622,6 @@ ListGeoMatchSetsResponseTypeDef = TypedDict(
1553
1622
  },
1554
1623
  )
1555
1624
 
1556
- GetSampledRequestsRequestRequestTypeDef = TypedDict(
1557
- "GetSampledRequestsRequestRequestTypeDef",
1558
- {
1559
- "WebAclId": str,
1560
- "RuleId": str,
1561
- "TimeWindow": TimeWindowTypeDef,
1562
- "MaxItems": int,
1563
- },
1564
- )
1565
-
1566
1625
  GetWebACLForResourceResponseTypeDef = TypedDict(
1567
1626
  "GetWebACLForResourceResponseTypeDef",
1568
1627
  {
@@ -1772,20 +1831,20 @@ UpdateRegexPatternSetRequestRequestTypeDef = TypedDict(
1772
1831
  },
1773
1832
  )
1774
1833
 
1775
- ListActivatedRulesInRuleGroupResponseTypeDef = TypedDict(
1776
- "ListActivatedRulesInRuleGroupResponseTypeDef",
1834
+ TimeWindowTypeDef = TypedDict(
1835
+ "TimeWindowTypeDef",
1777
1836
  {
1778
- "NextMarker": str,
1779
- "ActivatedRules": List[ActivatedRuleTypeDef],
1780
- "ResponseMetadata": ResponseMetadataTypeDef,
1837
+ "StartTime": TimestampTypeDef,
1838
+ "EndTime": TimestampTypeDef,
1781
1839
  },
1782
1840
  )
1783
1841
 
1784
- RuleGroupUpdateTypeDef = TypedDict(
1785
- "RuleGroupUpdateTypeDef",
1842
+ ListActivatedRulesInRuleGroupResponseTypeDef = TypedDict(
1843
+ "ListActivatedRulesInRuleGroupResponseTypeDef",
1786
1844
  {
1787
- "Action": ChangeActionType,
1788
- "ActivatedRule": ActivatedRuleTypeDef,
1845
+ "NextMarker": str,
1846
+ "ActivatedRules": List[ActivatedRuleOutputTypeDef],
1847
+ "ResponseMetadata": ResponseMetadataTypeDef,
1789
1848
  },
1790
1849
  )
1791
1850
 
@@ -1794,7 +1853,7 @@ _RequiredWebACLTypeDef = TypedDict(
1794
1853
  {
1795
1854
  "WebACLId": str,
1796
1855
  "DefaultAction": WafActionTypeDef,
1797
- "Rules": List[ActivatedRuleTypeDef],
1856
+ "Rules": List[ActivatedRuleOutputTypeDef],
1798
1857
  },
1799
1858
  )
1800
1859
  _OptionalWebACLTypeDef = TypedDict(
@@ -1812,6 +1871,14 @@ class WebACLTypeDef(_RequiredWebACLTypeDef, _OptionalWebACLTypeDef):
1812
1871
  pass
1813
1872
 
1814
1873
 
1874
+ RuleGroupUpdateTypeDef = TypedDict(
1875
+ "RuleGroupUpdateTypeDef",
1876
+ {
1877
+ "Action": ChangeActionType,
1878
+ "ActivatedRule": ActivatedRuleTypeDef,
1879
+ },
1880
+ )
1881
+
1815
1882
  WebACLUpdateTypeDef = TypedDict(
1816
1883
  "WebACLUpdateTypeDef",
1817
1884
  {
@@ -1824,7 +1891,7 @@ _RequiredByteMatchSetTypeDef = TypedDict(
1824
1891
  "_RequiredByteMatchSetTypeDef",
1825
1892
  {
1826
1893
  "ByteMatchSetId": str,
1827
- "ByteMatchTuples": List[ByteMatchTupleTypeDef],
1894
+ "ByteMatchTuples": List[ByteMatchTupleOutputTypeDef],
1828
1895
  },
1829
1896
  )
1830
1897
  _OptionalByteMatchSetTypeDef = TypedDict(
@@ -1851,7 +1918,7 @@ ByteMatchSetUpdateTypeDef = TypedDict(
1851
1918
  GetLoggingConfigurationResponseTypeDef = TypedDict(
1852
1919
  "GetLoggingConfigurationResponseTypeDef",
1853
1920
  {
1854
- "LoggingConfiguration": LoggingConfigurationTypeDef,
1921
+ "LoggingConfiguration": LoggingConfigurationOutputTypeDef,
1855
1922
  "ResponseMetadata": ResponseMetadataTypeDef,
1856
1923
  },
1857
1924
  )
@@ -1859,24 +1926,27 @@ GetLoggingConfigurationResponseTypeDef = TypedDict(
1859
1926
  ListLoggingConfigurationsResponseTypeDef = TypedDict(
1860
1927
  "ListLoggingConfigurationsResponseTypeDef",
1861
1928
  {
1862
- "LoggingConfigurations": List[LoggingConfigurationTypeDef],
1929
+ "LoggingConfigurations": List[LoggingConfigurationOutputTypeDef],
1863
1930
  "NextMarker": str,
1864
1931
  "ResponseMetadata": ResponseMetadataTypeDef,
1865
1932
  },
1866
1933
  )
1867
1934
 
1868
- PutLoggingConfigurationRequestRequestTypeDef = TypedDict(
1869
- "PutLoggingConfigurationRequestRequestTypeDef",
1935
+ PutLoggingConfigurationResponseTypeDef = TypedDict(
1936
+ "PutLoggingConfigurationResponseTypeDef",
1870
1937
  {
1871
- "LoggingConfiguration": LoggingConfigurationTypeDef,
1938
+ "LoggingConfiguration": LoggingConfigurationOutputTypeDef,
1939
+ "ResponseMetadata": ResponseMetadataTypeDef,
1872
1940
  },
1873
1941
  )
1874
1942
 
1875
- PutLoggingConfigurationResponseTypeDef = TypedDict(
1876
- "PutLoggingConfigurationResponseTypeDef",
1943
+ LoggingConfigurationUnionTypeDef = Union[
1944
+ LoggingConfigurationTypeDef, LoggingConfigurationOutputTypeDef
1945
+ ]
1946
+ PutLoggingConfigurationRequestRequestTypeDef = TypedDict(
1947
+ "PutLoggingConfigurationRequestRequestTypeDef",
1877
1948
  {
1878
1949
  "LoggingConfiguration": LoggingConfigurationTypeDef,
1879
- "ResponseMetadata": ResponseMetadataTypeDef,
1880
1950
  },
1881
1951
  )
1882
1952
 
@@ -2124,15 +2194,17 @@ UpdateRuleRequestRequestTypeDef = TypedDict(
2124
2194
  },
2125
2195
  )
2126
2196
 
2127
- UpdateRuleGroupRequestRequestTypeDef = TypedDict(
2128
- "UpdateRuleGroupRequestRequestTypeDef",
2197
+ GetSampledRequestsRequestRequestTypeDef = TypedDict(
2198
+ "GetSampledRequestsRequestRequestTypeDef",
2129
2199
  {
2130
- "RuleGroupId": str,
2131
- "Updates": Sequence[RuleGroupUpdateTypeDef],
2132
- "ChangeToken": str,
2200
+ "WebAclId": str,
2201
+ "RuleId": str,
2202
+ "TimeWindow": TimeWindowTypeDef,
2203
+ "MaxItems": int,
2133
2204
  },
2134
2205
  )
2135
2206
 
2207
+ TimeWindowUnionTypeDef = Union[TimeWindowTypeDef, TimeWindowOutputTypeDef]
2136
2208
  CreateWebACLResponseTypeDef = TypedDict(
2137
2209
  "CreateWebACLResponseTypeDef",
2138
2210
  {
@@ -2150,6 +2222,15 @@ GetWebACLResponseTypeDef = TypedDict(
2150
2222
  },
2151
2223
  )
2152
2224
 
2225
+ UpdateRuleGroupRequestRequestTypeDef = TypedDict(
2226
+ "UpdateRuleGroupRequestRequestTypeDef",
2227
+ {
2228
+ "RuleGroupId": str,
2229
+ "Updates": Sequence[RuleGroupUpdateTypeDef],
2230
+ "ChangeToken": str,
2231
+ },
2232
+ )
2233
+
2153
2234
  _RequiredUpdateWebACLRequestRequestTypeDef = TypedDict(
2154
2235
  "_RequiredUpdateWebACLRequestRequestTypeDef",
2155
2236
  {
@@ -2308,7 +2389,7 @@ GetSampledRequestsResponseTypeDef = TypedDict(
2308
2389
  {
2309
2390
  "SampledRequests": List[SampledHTTPRequestTypeDef],
2310
2391
  "PopulationSize": int,
2311
- "TimeWindow": TimeWindowTypeDef,
2392
+ "TimeWindow": TimeWindowOutputTypeDef,
2312
2393
  "ResponseMetadata": ResponseMetadataTypeDef,
2313
2394
  },
2314
2395
  )