mypy-boto3-waf-regional 1.28.15.post1__py3-none-any.whl → 1.28.36__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,14 +8,12 @@ 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 IO, Any, Dict, List, Sequence, Union
17
-
18
- from botocore.response import StreamingBody
16
+ from typing import Dict, List, Sequence, Union
19
17
 
20
18
  from .literals import (
21
19
  ChangeActionType,
@@ -33,11 +31,15 @@ from .literals import (
33
31
  WafRuleTypeType,
34
32
  )
35
33
 
36
- if sys.version_info >= (3, 9):
34
+ if sys.version_info >= (3, 12):
37
35
  from typing import Literal
38
36
  else:
39
37
  from typing_extensions import Literal
40
- if sys.version_info >= (3, 9):
38
+ if sys.version_info >= (3, 12):
39
+ from typing import NotRequired
40
+ else:
41
+ from typing_extensions import NotRequired
42
+ if sys.version_info >= (3, 12):
41
43
  from typing import TypedDict
42
44
  else:
43
45
  from typing_extensions import TypedDict
@@ -91,8 +93,6 @@ __all__ = (
91
93
  "GetRegexPatternSetRequestRequestTypeDef",
92
94
  "GetRuleGroupRequestRequestTypeDef",
93
95
  "GetRuleRequestRequestTypeDef",
94
- "TimeWindowTypeDef",
95
- "TimeWindowOutputTypeDef",
96
96
  "GetSizeConstraintSetRequestRequestTypeDef",
97
97
  "GetSqlInjectionMatchSetRequestRequestTypeDef",
98
98
  "GetWebACLForResourceRequestRequestTypeDef",
@@ -130,12 +130,10 @@ __all__ = (
130
130
  "PredicateTypeDef",
131
131
  "PutPermissionPolicyRequestRequestTypeDef",
132
132
  "RegexPatternSetUpdateTypeDef",
133
+ "TimestampTypeDef",
133
134
  "UntagResourceRequestRequestTypeDef",
134
- "ActivatedRuleOutputTypeDef",
135
135
  "ActivatedRuleTypeDef",
136
- "ByteMatchTupleOutputTypeDef",
137
136
  "ByteMatchTupleTypeDef",
138
- "LoggingConfigurationOutputTypeDef",
139
137
  "LoggingConfigurationTypeDef",
140
138
  "RegexMatchTupleTypeDef",
141
139
  "SizeConstraintTypeDef",
@@ -185,7 +183,6 @@ __all__ = (
185
183
  "GeoMatchSetTypeDef",
186
184
  "GeoMatchSetUpdateTypeDef",
187
185
  "ListGeoMatchSetsResponseTypeDef",
188
- "GetSampledRequestsRequestRequestTypeDef",
189
186
  "GetWebACLForResourceResponseTypeDef",
190
187
  "ListWebACLsResponseTypeDef",
191
188
  "HTTPRequestTypeDef",
@@ -205,16 +202,17 @@ __all__ = (
205
202
  "RuleTypeDef",
206
203
  "RuleUpdateTypeDef",
207
204
  "UpdateRegexPatternSetRequestRequestTypeDef",
205
+ "TimeWindowTypeDef",
208
206
  "ListActivatedRulesInRuleGroupResponseTypeDef",
209
- "WebACLTypeDef",
210
207
  "RuleGroupUpdateTypeDef",
208
+ "WebACLTypeDef",
211
209
  "WebACLUpdateTypeDef",
212
210
  "ByteMatchSetTypeDef",
213
211
  "ByteMatchSetUpdateTypeDef",
214
212
  "GetLoggingConfigurationResponseTypeDef",
215
213
  "ListLoggingConfigurationsResponseTypeDef",
216
- "PutLoggingConfigurationResponseTypeDef",
217
214
  "PutLoggingConfigurationRequestRequestTypeDef",
215
+ "PutLoggingConfigurationResponseTypeDef",
218
216
  "RegexMatchSetTypeDef",
219
217
  "RegexMatchSetUpdateTypeDef",
220
218
  "SizeConstraintSetTypeDef",
@@ -237,9 +235,10 @@ __all__ = (
237
235
  "GetRuleResponseTypeDef",
238
236
  "UpdateRateBasedRuleRequestRequestTypeDef",
239
237
  "UpdateRuleRequestRequestTypeDef",
238
+ "GetSampledRequestsRequestRequestTypeDef",
239
+ "UpdateRuleGroupRequestRequestTypeDef",
240
240
  "CreateWebACLResponseTypeDef",
241
241
  "GetWebACLResponseTypeDef",
242
- "UpdateRuleGroupRequestRequestTypeDef",
243
242
  "UpdateWebACLRequestRequestTypeDef",
244
243
  "CreateByteMatchSetResponseTypeDef",
245
244
  "GetByteMatchSetResponseTypeDef",
@@ -296,22 +295,13 @@ ByteMatchSetSummaryTypeDef = TypedDict(
296
295
  },
297
296
  )
298
297
 
299
- _RequiredFieldToMatchTypeDef = TypedDict(
300
- "_RequiredFieldToMatchTypeDef",
298
+ FieldToMatchTypeDef = TypedDict(
299
+ "FieldToMatchTypeDef",
301
300
  {
302
301
  "Type": MatchFieldTypeType,
302
+ "Data": NotRequired[str],
303
303
  },
304
304
  )
305
- _OptionalFieldToMatchTypeDef = TypedDict(
306
- "_OptionalFieldToMatchTypeDef",
307
- {
308
- "Data": str,
309
- },
310
- total=False,
311
- )
312
-
313
- class FieldToMatchTypeDef(_RequiredFieldToMatchTypeDef, _OptionalFieldToMatchTypeDef):
314
- pass
315
305
 
316
306
  CreateByteMatchSetRequestRequestTypeDef = TypedDict(
317
307
  "CreateByteMatchSetRequestRequestTypeDef",
@@ -372,41 +362,23 @@ CreateRegexPatternSetRequestRequestTypeDef = TypedDict(
372
362
  },
373
363
  )
374
364
 
375
- _RequiredRegexPatternSetTypeDef = TypedDict(
376
- "_RequiredRegexPatternSetTypeDef",
365
+ RegexPatternSetTypeDef = TypedDict(
366
+ "RegexPatternSetTypeDef",
377
367
  {
378
368
  "RegexPatternSetId": str,
379
369
  "RegexPatternStrings": List[str],
370
+ "Name": NotRequired[str],
380
371
  },
381
372
  )
382
- _OptionalRegexPatternSetTypeDef = TypedDict(
383
- "_OptionalRegexPatternSetTypeDef",
384
- {
385
- "Name": str,
386
- },
387
- total=False,
388
- )
389
-
390
- class RegexPatternSetTypeDef(_RequiredRegexPatternSetTypeDef, _OptionalRegexPatternSetTypeDef):
391
- pass
392
373
 
393
- _RequiredRuleGroupTypeDef = TypedDict(
394
- "_RequiredRuleGroupTypeDef",
374
+ RuleGroupTypeDef = TypedDict(
375
+ "RuleGroupTypeDef",
395
376
  {
396
377
  "RuleGroupId": str,
378
+ "Name": NotRequired[str],
379
+ "MetricName": NotRequired[str],
397
380
  },
398
381
  )
399
- _OptionalRuleGroupTypeDef = TypedDict(
400
- "_OptionalRuleGroupTypeDef",
401
- {
402
- "Name": str,
403
- "MetricName": str,
404
- },
405
- total=False,
406
- )
407
-
408
- class RuleGroupTypeDef(_RequiredRuleGroupTypeDef, _OptionalRuleGroupTypeDef):
409
- pass
410
382
 
411
383
  CreateSizeConstraintSetRequestRequestTypeDef = TypedDict(
412
384
  "CreateSizeConstraintSetRequestRequestTypeDef",
@@ -616,25 +588,13 @@ GetPermissionPolicyRequestRequestTypeDef = TypedDict(
616
588
  },
617
589
  )
618
590
 
619
- _RequiredGetRateBasedRuleManagedKeysRequestRequestTypeDef = TypedDict(
620
- "_RequiredGetRateBasedRuleManagedKeysRequestRequestTypeDef",
591
+ GetRateBasedRuleManagedKeysRequestRequestTypeDef = TypedDict(
592
+ "GetRateBasedRuleManagedKeysRequestRequestTypeDef",
621
593
  {
622
594
  "RuleId": str,
595
+ "NextMarker": NotRequired[str],
623
596
  },
624
597
  )
625
- _OptionalGetRateBasedRuleManagedKeysRequestRequestTypeDef = TypedDict(
626
- "_OptionalGetRateBasedRuleManagedKeysRequestRequestTypeDef",
627
- {
628
- "NextMarker": str,
629
- },
630
- total=False,
631
- )
632
-
633
- class GetRateBasedRuleManagedKeysRequestRequestTypeDef(
634
- _RequiredGetRateBasedRuleManagedKeysRequestRequestTypeDef,
635
- _OptionalGetRateBasedRuleManagedKeysRequestRequestTypeDef,
636
- ):
637
- pass
638
598
 
639
599
  GetRateBasedRuleRequestRequestTypeDef = TypedDict(
640
600
  "GetRateBasedRuleRequestRequestTypeDef",
@@ -671,22 +631,6 @@ GetRuleRequestRequestTypeDef = TypedDict(
671
631
  },
672
632
  )
673
633
 
674
- TimeWindowTypeDef = TypedDict(
675
- "TimeWindowTypeDef",
676
- {
677
- "StartTime": Union[datetime, str],
678
- "EndTime": Union[datetime, str],
679
- },
680
- )
681
-
682
- TimeWindowOutputTypeDef = TypedDict(
683
- "TimeWindowOutputTypeDef",
684
- {
685
- "StartTime": datetime,
686
- "EndTime": datetime,
687
- },
688
- )
689
-
690
634
  GetSizeConstraintSetRequestRequestTypeDef = TypedDict(
691
635
  "GetSizeConstraintSetRequestRequestTypeDef",
692
636
  {
@@ -733,10 +677,9 @@ GetXssMatchSetRequestRequestTypeDef = TypedDict(
733
677
  HTTPHeaderTypeDef = TypedDict(
734
678
  "HTTPHeaderTypeDef",
735
679
  {
736
- "Name": str,
737
- "Value": str,
680
+ "Name": NotRequired[str],
681
+ "Value": NotRequired[str],
738
682
  },
739
- total=False,
740
683
  )
741
684
 
742
685
  IPSetDescriptorTypeDef = TypedDict(
@@ -758,56 +701,50 @@ IPSetSummaryTypeDef = TypedDict(
758
701
  ListActivatedRulesInRuleGroupRequestRequestTypeDef = TypedDict(
759
702
  "ListActivatedRulesInRuleGroupRequestRequestTypeDef",
760
703
  {
761
- "RuleGroupId": str,
762
- "NextMarker": str,
763
- "Limit": int,
704
+ "RuleGroupId": NotRequired[str],
705
+ "NextMarker": NotRequired[str],
706
+ "Limit": NotRequired[int],
764
707
  },
765
- total=False,
766
708
  )
767
709
 
768
710
  ListByteMatchSetsRequestRequestTypeDef = TypedDict(
769
711
  "ListByteMatchSetsRequestRequestTypeDef",
770
712
  {
771
- "NextMarker": str,
772
- "Limit": int,
713
+ "NextMarker": NotRequired[str],
714
+ "Limit": NotRequired[int],
773
715
  },
774
- total=False,
775
716
  )
776
717
 
777
718
  ListGeoMatchSetsRequestRequestTypeDef = TypedDict(
778
719
  "ListGeoMatchSetsRequestRequestTypeDef",
779
720
  {
780
- "NextMarker": str,
781
- "Limit": int,
721
+ "NextMarker": NotRequired[str],
722
+ "Limit": NotRequired[int],
782
723
  },
783
- total=False,
784
724
  )
785
725
 
786
726
  ListIPSetsRequestRequestTypeDef = TypedDict(
787
727
  "ListIPSetsRequestRequestTypeDef",
788
728
  {
789
- "NextMarker": str,
790
- "Limit": int,
729
+ "NextMarker": NotRequired[str],
730
+ "Limit": NotRequired[int],
791
731
  },
792
- total=False,
793
732
  )
794
733
 
795
734
  ListLoggingConfigurationsRequestRequestTypeDef = TypedDict(
796
735
  "ListLoggingConfigurationsRequestRequestTypeDef",
797
736
  {
798
- "NextMarker": str,
799
- "Limit": int,
737
+ "NextMarker": NotRequired[str],
738
+ "Limit": NotRequired[int],
800
739
  },
801
- total=False,
802
740
  )
803
741
 
804
742
  ListRateBasedRulesRequestRequestTypeDef = TypedDict(
805
743
  "ListRateBasedRulesRequestRequestTypeDef",
806
744
  {
807
- "NextMarker": str,
808
- "Limit": int,
745
+ "NextMarker": NotRequired[str],
746
+ "Limit": NotRequired[int],
809
747
  },
810
- total=False,
811
748
  )
812
749
 
813
750
  RuleSummaryTypeDef = TypedDict(
@@ -821,10 +758,9 @@ RuleSummaryTypeDef = TypedDict(
821
758
  ListRegexMatchSetsRequestRequestTypeDef = TypedDict(
822
759
  "ListRegexMatchSetsRequestRequestTypeDef",
823
760
  {
824
- "NextMarker": str,
825
- "Limit": int,
761
+ "NextMarker": NotRequired[str],
762
+ "Limit": NotRequired[int],
826
763
  },
827
- total=False,
828
764
  )
829
765
 
830
766
  RegexMatchSetSummaryTypeDef = TypedDict(
@@ -838,10 +774,9 @@ RegexMatchSetSummaryTypeDef = TypedDict(
838
774
  ListRegexPatternSetsRequestRequestTypeDef = TypedDict(
839
775
  "ListRegexPatternSetsRequestRequestTypeDef",
840
776
  {
841
- "NextMarker": str,
842
- "Limit": int,
777
+ "NextMarker": NotRequired[str],
778
+ "Limit": NotRequired[int],
843
779
  },
844
- total=False,
845
780
  )
846
781
 
847
782
  RegexPatternSetSummaryTypeDef = TypedDict(
@@ -852,33 +787,20 @@ RegexPatternSetSummaryTypeDef = TypedDict(
852
787
  },
853
788
  )
854
789
 
855
- _RequiredListResourcesForWebACLRequestRequestTypeDef = TypedDict(
856
- "_RequiredListResourcesForWebACLRequestRequestTypeDef",
790
+ ListResourcesForWebACLRequestRequestTypeDef = TypedDict(
791
+ "ListResourcesForWebACLRequestRequestTypeDef",
857
792
  {
858
793
  "WebACLId": str,
794
+ "ResourceType": NotRequired[ResourceTypeType],
859
795
  },
860
796
  )
861
- _OptionalListResourcesForWebACLRequestRequestTypeDef = TypedDict(
862
- "_OptionalListResourcesForWebACLRequestRequestTypeDef",
863
- {
864
- "ResourceType": ResourceTypeType,
865
- },
866
- total=False,
867
- )
868
-
869
- class ListResourcesForWebACLRequestRequestTypeDef(
870
- _RequiredListResourcesForWebACLRequestRequestTypeDef,
871
- _OptionalListResourcesForWebACLRequestRequestTypeDef,
872
- ):
873
- pass
874
797
 
875
798
  ListRuleGroupsRequestRequestTypeDef = TypedDict(
876
799
  "ListRuleGroupsRequestRequestTypeDef",
877
800
  {
878
- "NextMarker": str,
879
- "Limit": int,
801
+ "NextMarker": NotRequired[str],
802
+ "Limit": NotRequired[int],
880
803
  },
881
- total=False,
882
804
  )
883
805
 
884
806
  RuleGroupSummaryTypeDef = TypedDict(
@@ -892,19 +814,17 @@ RuleGroupSummaryTypeDef = TypedDict(
892
814
  ListRulesRequestRequestTypeDef = TypedDict(
893
815
  "ListRulesRequestRequestTypeDef",
894
816
  {
895
- "NextMarker": str,
896
- "Limit": int,
817
+ "NextMarker": NotRequired[str],
818
+ "Limit": NotRequired[int],
897
819
  },
898
- total=False,
899
820
  )
900
821
 
901
822
  ListSizeConstraintSetsRequestRequestTypeDef = TypedDict(
902
823
  "ListSizeConstraintSetsRequestRequestTypeDef",
903
824
  {
904
- "NextMarker": str,
905
- "Limit": int,
825
+ "NextMarker": NotRequired[str],
826
+ "Limit": NotRequired[int],
906
827
  },
907
- total=False,
908
828
  )
909
829
 
910
830
  SizeConstraintSetSummaryTypeDef = TypedDict(
@@ -918,10 +838,9 @@ SizeConstraintSetSummaryTypeDef = TypedDict(
918
838
  ListSqlInjectionMatchSetsRequestRequestTypeDef = TypedDict(
919
839
  "ListSqlInjectionMatchSetsRequestRequestTypeDef",
920
840
  {
921
- "NextMarker": str,
922
- "Limit": int,
841
+ "NextMarker": NotRequired[str],
842
+ "Limit": NotRequired[int],
923
843
  },
924
- total=False,
925
844
  )
926
845
 
927
846
  SqlInjectionMatchSetSummaryTypeDef = TypedDict(
@@ -935,10 +854,9 @@ SqlInjectionMatchSetSummaryTypeDef = TypedDict(
935
854
  ListSubscribedRuleGroupsRequestRequestTypeDef = TypedDict(
936
855
  "ListSubscribedRuleGroupsRequestRequestTypeDef",
937
856
  {
938
- "NextMarker": str,
939
- "Limit": int,
857
+ "NextMarker": NotRequired[str],
858
+ "Limit": NotRequired[int],
940
859
  },
941
- total=False,
942
860
  )
943
861
 
944
862
  SubscribedRuleGroupSummaryTypeDef = TypedDict(
@@ -950,43 +868,29 @@ SubscribedRuleGroupSummaryTypeDef = TypedDict(
950
868
  },
951
869
  )
952
870
 
953
- _RequiredListTagsForResourceRequestRequestTypeDef = TypedDict(
954
- "_RequiredListTagsForResourceRequestRequestTypeDef",
871
+ ListTagsForResourceRequestRequestTypeDef = TypedDict(
872
+ "ListTagsForResourceRequestRequestTypeDef",
955
873
  {
956
874
  "ResourceARN": str,
875
+ "NextMarker": NotRequired[str],
876
+ "Limit": NotRequired[int],
957
877
  },
958
878
  )
959
- _OptionalListTagsForResourceRequestRequestTypeDef = TypedDict(
960
- "_OptionalListTagsForResourceRequestRequestTypeDef",
961
- {
962
- "NextMarker": str,
963
- "Limit": int,
964
- },
965
- total=False,
966
- )
967
-
968
- class ListTagsForResourceRequestRequestTypeDef(
969
- _RequiredListTagsForResourceRequestRequestTypeDef,
970
- _OptionalListTagsForResourceRequestRequestTypeDef,
971
- ):
972
- pass
973
879
 
974
880
  ListWebACLsRequestRequestTypeDef = TypedDict(
975
881
  "ListWebACLsRequestRequestTypeDef",
976
882
  {
977
- "NextMarker": str,
978
- "Limit": int,
883
+ "NextMarker": NotRequired[str],
884
+ "Limit": NotRequired[int],
979
885
  },
980
- total=False,
981
886
  )
982
887
 
983
888
  ListXssMatchSetsRequestRequestTypeDef = TypedDict(
984
889
  "ListXssMatchSetsRequestRequestTypeDef",
985
890
  {
986
- "NextMarker": str,
987
- "Limit": int,
891
+ "NextMarker": NotRequired[str],
892
+ "Limit": NotRequired[int],
988
893
  },
989
- total=False,
990
894
  )
991
895
 
992
896
  XssMatchSetSummaryTypeDef = TypedDict(
@@ -1022,6 +926,7 @@ RegexPatternSetUpdateTypeDef = TypedDict(
1022
926
  },
1023
927
  )
1024
928
 
929
+ TimestampTypeDef = Union[datetime, str]
1025
930
  UntagResourceRequestRequestTypeDef = TypedDict(
1026
931
  "UntagResourceRequestRequestTypeDef",
1027
932
  {
@@ -1030,57 +935,15 @@ UntagResourceRequestRequestTypeDef = TypedDict(
1030
935
  },
1031
936
  )
1032
937
 
1033
- _RequiredActivatedRuleOutputTypeDef = TypedDict(
1034
- "_RequiredActivatedRuleOutputTypeDef",
938
+ ActivatedRuleTypeDef = TypedDict(
939
+ "ActivatedRuleTypeDef",
1035
940
  {
1036
941
  "Priority": int,
1037
942
  "RuleId": str,
1038
- },
1039
- )
1040
- _OptionalActivatedRuleOutputTypeDef = TypedDict(
1041
- "_OptionalActivatedRuleOutputTypeDef",
1042
- {
1043
- "Action": WafActionTypeDef,
1044
- "OverrideAction": WafOverrideActionTypeDef,
1045
- "Type": WafRuleTypeType,
1046
- "ExcludedRules": List[ExcludedRuleTypeDef],
1047
- },
1048
- total=False,
1049
- )
1050
-
1051
- class ActivatedRuleOutputTypeDef(
1052
- _RequiredActivatedRuleOutputTypeDef, _OptionalActivatedRuleOutputTypeDef
1053
- ):
1054
- pass
1055
-
1056
- _RequiredActivatedRuleTypeDef = TypedDict(
1057
- "_RequiredActivatedRuleTypeDef",
1058
- {
1059
- "Priority": int,
1060
- "RuleId": str,
1061
- },
1062
- )
1063
- _OptionalActivatedRuleTypeDef = TypedDict(
1064
- "_OptionalActivatedRuleTypeDef",
1065
- {
1066
- "Action": WafActionTypeDef,
1067
- "OverrideAction": WafOverrideActionTypeDef,
1068
- "Type": WafRuleTypeType,
1069
- "ExcludedRules": Sequence[ExcludedRuleTypeDef],
1070
- },
1071
- total=False,
1072
- )
1073
-
1074
- class ActivatedRuleTypeDef(_RequiredActivatedRuleTypeDef, _OptionalActivatedRuleTypeDef):
1075
- pass
1076
-
1077
- ByteMatchTupleOutputTypeDef = TypedDict(
1078
- "ByteMatchTupleOutputTypeDef",
1079
- {
1080
- "FieldToMatch": FieldToMatchTypeDef,
1081
- "TargetString": bytes,
1082
- "TextTransformation": TextTransformationType,
1083
- "PositionalConstraint": PositionalConstraintType,
943
+ "Action": NotRequired[WafActionTypeDef],
944
+ "OverrideAction": NotRequired[WafOverrideActionTypeDef],
945
+ "Type": NotRequired[WafRuleTypeType],
946
+ "ExcludedRules": NotRequired[List[ExcludedRuleTypeDef]],
1084
947
  },
1085
948
  )
1086
949
 
@@ -1088,51 +951,20 @@ ByteMatchTupleTypeDef = TypedDict(
1088
951
  "ByteMatchTupleTypeDef",
1089
952
  {
1090
953
  "FieldToMatch": FieldToMatchTypeDef,
1091
- "TargetString": Union[str, bytes, IO[Any], StreamingBody],
954
+ "TargetString": bytes,
1092
955
  "TextTransformation": TextTransformationType,
1093
956
  "PositionalConstraint": PositionalConstraintType,
1094
957
  },
1095
958
  )
1096
959
 
1097
- _RequiredLoggingConfigurationOutputTypeDef = TypedDict(
1098
- "_RequiredLoggingConfigurationOutputTypeDef",
960
+ LoggingConfigurationTypeDef = TypedDict(
961
+ "LoggingConfigurationTypeDef",
1099
962
  {
1100
963
  "ResourceArn": str,
1101
964
  "LogDestinationConfigs": List[str],
965
+ "RedactedFields": NotRequired[List[FieldToMatchTypeDef]],
1102
966
  },
1103
967
  )
1104
- _OptionalLoggingConfigurationOutputTypeDef = TypedDict(
1105
- "_OptionalLoggingConfigurationOutputTypeDef",
1106
- {
1107
- "RedactedFields": List[FieldToMatchTypeDef],
1108
- },
1109
- total=False,
1110
- )
1111
-
1112
- class LoggingConfigurationOutputTypeDef(
1113
- _RequiredLoggingConfigurationOutputTypeDef, _OptionalLoggingConfigurationOutputTypeDef
1114
- ):
1115
- pass
1116
-
1117
- _RequiredLoggingConfigurationTypeDef = TypedDict(
1118
- "_RequiredLoggingConfigurationTypeDef",
1119
- {
1120
- "ResourceArn": str,
1121
- "LogDestinationConfigs": Sequence[str],
1122
- },
1123
- )
1124
- _OptionalLoggingConfigurationTypeDef = TypedDict(
1125
- "_OptionalLoggingConfigurationTypeDef",
1126
- {
1127
- "RedactedFields": Sequence[FieldToMatchTypeDef],
1128
- },
1129
- total=False,
1130
- )
1131
-
1132
- class LoggingConfigurationTypeDef(
1133
- _RequiredLoggingConfigurationTypeDef, _OptionalLoggingConfigurationTypeDef
1134
- ):
1135
- pass
1136
968
 
1137
969
  RegexMatchTupleTypeDef = TypedDict(
1138
970
  "RegexMatchTupleTypeDef",
@@ -1419,101 +1251,55 @@ UpdateXssMatchSetResponseTypeDef = TypedDict(
1419
1251
  },
1420
1252
  )
1421
1253
 
1422
- _RequiredCreateRateBasedRuleRequestRequestTypeDef = TypedDict(
1423
- "_RequiredCreateRateBasedRuleRequestRequestTypeDef",
1254
+ CreateRateBasedRuleRequestRequestTypeDef = TypedDict(
1255
+ "CreateRateBasedRuleRequestRequestTypeDef",
1424
1256
  {
1425
1257
  "Name": str,
1426
1258
  "MetricName": str,
1427
1259
  "RateKey": Literal["IP"],
1428
1260
  "RateLimit": int,
1429
1261
  "ChangeToken": str,
1262
+ "Tags": NotRequired[Sequence[TagTypeDef]],
1430
1263
  },
1431
1264
  )
1432
- _OptionalCreateRateBasedRuleRequestRequestTypeDef = TypedDict(
1433
- "_OptionalCreateRateBasedRuleRequestRequestTypeDef",
1434
- {
1435
- "Tags": Sequence[TagTypeDef],
1436
- },
1437
- total=False,
1438
- )
1439
1265
 
1440
- class CreateRateBasedRuleRequestRequestTypeDef(
1441
- _RequiredCreateRateBasedRuleRequestRequestTypeDef,
1442
- _OptionalCreateRateBasedRuleRequestRequestTypeDef,
1443
- ):
1444
- pass
1445
-
1446
- _RequiredCreateRuleGroupRequestRequestTypeDef = TypedDict(
1447
- "_RequiredCreateRuleGroupRequestRequestTypeDef",
1266
+ CreateRuleGroupRequestRequestTypeDef = TypedDict(
1267
+ "CreateRuleGroupRequestRequestTypeDef",
1448
1268
  {
1449
1269
  "Name": str,
1450
1270
  "MetricName": str,
1451
1271
  "ChangeToken": str,
1272
+ "Tags": NotRequired[Sequence[TagTypeDef]],
1452
1273
  },
1453
1274
  )
1454
- _OptionalCreateRuleGroupRequestRequestTypeDef = TypedDict(
1455
- "_OptionalCreateRuleGroupRequestRequestTypeDef",
1456
- {
1457
- "Tags": Sequence[TagTypeDef],
1458
- },
1459
- total=False,
1460
- )
1461
-
1462
- class CreateRuleGroupRequestRequestTypeDef(
1463
- _RequiredCreateRuleGroupRequestRequestTypeDef, _OptionalCreateRuleGroupRequestRequestTypeDef
1464
- ):
1465
- pass
1466
1275
 
1467
- _RequiredCreateRuleRequestRequestTypeDef = TypedDict(
1468
- "_RequiredCreateRuleRequestRequestTypeDef",
1276
+ CreateRuleRequestRequestTypeDef = TypedDict(
1277
+ "CreateRuleRequestRequestTypeDef",
1469
1278
  {
1470
1279
  "Name": str,
1471
1280
  "MetricName": str,
1472
1281
  "ChangeToken": str,
1282
+ "Tags": NotRequired[Sequence[TagTypeDef]],
1473
1283
  },
1474
1284
  )
1475
- _OptionalCreateRuleRequestRequestTypeDef = TypedDict(
1476
- "_OptionalCreateRuleRequestRequestTypeDef",
1477
- {
1478
- "Tags": Sequence[TagTypeDef],
1479
- },
1480
- total=False,
1481
- )
1482
-
1483
- class CreateRuleRequestRequestTypeDef(
1484
- _RequiredCreateRuleRequestRequestTypeDef, _OptionalCreateRuleRequestRequestTypeDef
1485
- ):
1486
- pass
1487
1285
 
1488
- _RequiredCreateWebACLRequestRequestTypeDef = TypedDict(
1489
- "_RequiredCreateWebACLRequestRequestTypeDef",
1286
+ CreateWebACLRequestRequestTypeDef = TypedDict(
1287
+ "CreateWebACLRequestRequestTypeDef",
1490
1288
  {
1491
1289
  "Name": str,
1492
1290
  "MetricName": str,
1493
1291
  "DefaultAction": WafActionTypeDef,
1494
1292
  "ChangeToken": str,
1293
+ "Tags": NotRequired[Sequence[TagTypeDef]],
1495
1294
  },
1496
1295
  )
1497
- _OptionalCreateWebACLRequestRequestTypeDef = TypedDict(
1498
- "_OptionalCreateWebACLRequestRequestTypeDef",
1499
- {
1500
- "Tags": Sequence[TagTypeDef],
1501
- },
1502
- total=False,
1503
- )
1504
-
1505
- class CreateWebACLRequestRequestTypeDef(
1506
- _RequiredCreateWebACLRequestRequestTypeDef, _OptionalCreateWebACLRequestRequestTypeDef
1507
- ):
1508
- pass
1509
1296
 
1510
1297
  TagInfoForResourceTypeDef = TypedDict(
1511
1298
  "TagInfoForResourceTypeDef",
1512
1299
  {
1513
- "ResourceARN": str,
1514
- "TagList": List[TagTypeDef],
1300
+ "ResourceARN": NotRequired[str],
1301
+ "TagList": NotRequired[List[TagTypeDef]],
1515
1302
  },
1516
- total=False,
1517
1303
  )
1518
1304
 
1519
1305
  TagResourceRequestRequestTypeDef = TypedDict(
@@ -1558,23 +1344,14 @@ GetRuleGroupResponseTypeDef = TypedDict(
1558
1344
  },
1559
1345
  )
1560
1346
 
1561
- _RequiredGeoMatchSetTypeDef = TypedDict(
1562
- "_RequiredGeoMatchSetTypeDef",
1347
+ GeoMatchSetTypeDef = TypedDict(
1348
+ "GeoMatchSetTypeDef",
1563
1349
  {
1564
1350
  "GeoMatchSetId": str,
1565
1351
  "GeoMatchConstraints": List[GeoMatchConstraintTypeDef],
1352
+ "Name": NotRequired[str],
1566
1353
  },
1567
1354
  )
1568
- _OptionalGeoMatchSetTypeDef = TypedDict(
1569
- "_OptionalGeoMatchSetTypeDef",
1570
- {
1571
- "Name": str,
1572
- },
1573
- total=False,
1574
- )
1575
-
1576
- class GeoMatchSetTypeDef(_RequiredGeoMatchSetTypeDef, _OptionalGeoMatchSetTypeDef):
1577
- pass
1578
1355
 
1579
1356
  GeoMatchSetUpdateTypeDef = TypedDict(
1580
1357
  "GeoMatchSetUpdateTypeDef",
@@ -1593,16 +1370,6 @@ ListGeoMatchSetsResponseTypeDef = TypedDict(
1593
1370
  },
1594
1371
  )
1595
1372
 
1596
- GetSampledRequestsRequestRequestTypeDef = TypedDict(
1597
- "GetSampledRequestsRequestRequestTypeDef",
1598
- {
1599
- "WebAclId": str,
1600
- "RuleId": str,
1601
- "TimeWindow": TimeWindowTypeDef,
1602
- "MaxItems": int,
1603
- },
1604
- )
1605
-
1606
1373
  GetWebACLForResourceResponseTypeDef = TypedDict(
1607
1374
  "GetWebACLForResourceResponseTypeDef",
1608
1375
  {
@@ -1623,33 +1390,23 @@ ListWebACLsResponseTypeDef = TypedDict(
1623
1390
  HTTPRequestTypeDef = TypedDict(
1624
1391
  "HTTPRequestTypeDef",
1625
1392
  {
1626
- "ClientIP": str,
1627
- "Country": str,
1628
- "URI": str,
1629
- "Method": str,
1630
- "HTTPVersion": str,
1631
- "Headers": List[HTTPHeaderTypeDef],
1393
+ "ClientIP": NotRequired[str],
1394
+ "Country": NotRequired[str],
1395
+ "URI": NotRequired[str],
1396
+ "Method": NotRequired[str],
1397
+ "HTTPVersion": NotRequired[str],
1398
+ "Headers": NotRequired[List[HTTPHeaderTypeDef]],
1632
1399
  },
1633
- total=False,
1634
1400
  )
1635
1401
 
1636
- _RequiredIPSetTypeDef = TypedDict(
1637
- "_RequiredIPSetTypeDef",
1402
+ IPSetTypeDef = TypedDict(
1403
+ "IPSetTypeDef",
1638
1404
  {
1639
1405
  "IPSetId": str,
1640
1406
  "IPSetDescriptors": List[IPSetDescriptorTypeDef],
1407
+ "Name": NotRequired[str],
1641
1408
  },
1642
1409
  )
1643
- _OptionalIPSetTypeDef = TypedDict(
1644
- "_OptionalIPSetTypeDef",
1645
- {
1646
- "Name": str,
1647
- },
1648
- total=False,
1649
- )
1650
-
1651
- class IPSetTypeDef(_RequiredIPSetTypeDef, _OptionalIPSetTypeDef):
1652
- pass
1653
1410
 
1654
1411
  IPSetUpdateTypeDef = TypedDict(
1655
1412
  "IPSetUpdateTypeDef",
@@ -1749,45 +1506,27 @@ ListXssMatchSetsResponseTypeDef = TypedDict(
1749
1506
  },
1750
1507
  )
1751
1508
 
1752
- _RequiredRateBasedRuleTypeDef = TypedDict(
1753
- "_RequiredRateBasedRuleTypeDef",
1509
+ RateBasedRuleTypeDef = TypedDict(
1510
+ "RateBasedRuleTypeDef",
1754
1511
  {
1755
1512
  "RuleId": str,
1756
1513
  "MatchPredicates": List[PredicateTypeDef],
1757
1514
  "RateKey": Literal["IP"],
1758
1515
  "RateLimit": int,
1516
+ "Name": NotRequired[str],
1517
+ "MetricName": NotRequired[str],
1759
1518
  },
1760
1519
  )
1761
- _OptionalRateBasedRuleTypeDef = TypedDict(
1762
- "_OptionalRateBasedRuleTypeDef",
1763
- {
1764
- "Name": str,
1765
- "MetricName": str,
1766
- },
1767
- total=False,
1768
- )
1769
1520
 
1770
- class RateBasedRuleTypeDef(_RequiredRateBasedRuleTypeDef, _OptionalRateBasedRuleTypeDef):
1771
- pass
1772
-
1773
- _RequiredRuleTypeDef = TypedDict(
1774
- "_RequiredRuleTypeDef",
1521
+ RuleTypeDef = TypedDict(
1522
+ "RuleTypeDef",
1775
1523
  {
1776
1524
  "RuleId": str,
1777
1525
  "Predicates": List[PredicateTypeDef],
1526
+ "Name": NotRequired[str],
1527
+ "MetricName": NotRequired[str],
1778
1528
  },
1779
1529
  )
1780
- _OptionalRuleTypeDef = TypedDict(
1781
- "_OptionalRuleTypeDef",
1782
- {
1783
- "Name": str,
1784
- "MetricName": str,
1785
- },
1786
- total=False,
1787
- )
1788
-
1789
- class RuleTypeDef(_RequiredRuleTypeDef, _OptionalRuleTypeDef):
1790
- pass
1791
1530
 
1792
1531
  RuleUpdateTypeDef = TypedDict(
1793
1532
  "RuleUpdateTypeDef",
@@ -1806,36 +1545,23 @@ UpdateRegexPatternSetRequestRequestTypeDef = TypedDict(
1806
1545
  },
1807
1546
  )
1808
1547
 
1809
- ListActivatedRulesInRuleGroupResponseTypeDef = TypedDict(
1810
- "ListActivatedRulesInRuleGroupResponseTypeDef",
1548
+ TimeWindowTypeDef = TypedDict(
1549
+ "TimeWindowTypeDef",
1811
1550
  {
1812
- "NextMarker": str,
1813
- "ActivatedRules": List[ActivatedRuleOutputTypeDef],
1814
- "ResponseMetadata": ResponseMetadataTypeDef,
1551
+ "StartTime": TimestampTypeDef,
1552
+ "EndTime": TimestampTypeDef,
1815
1553
  },
1816
1554
  )
1817
1555
 
1818
- _RequiredWebACLTypeDef = TypedDict(
1819
- "_RequiredWebACLTypeDef",
1820
- {
1821
- "WebACLId": str,
1822
- "DefaultAction": WafActionTypeDef,
1823
- "Rules": List[ActivatedRuleOutputTypeDef],
1824
- },
1825
- )
1826
- _OptionalWebACLTypeDef = TypedDict(
1827
- "_OptionalWebACLTypeDef",
1556
+ ListActivatedRulesInRuleGroupResponseTypeDef = TypedDict(
1557
+ "ListActivatedRulesInRuleGroupResponseTypeDef",
1828
1558
  {
1829
- "Name": str,
1830
- "MetricName": str,
1831
- "WebACLArn": str,
1559
+ "NextMarker": str,
1560
+ "ActivatedRules": List[ActivatedRuleTypeDef],
1561
+ "ResponseMetadata": ResponseMetadataTypeDef,
1832
1562
  },
1833
- total=False,
1834
1563
  )
1835
1564
 
1836
- class WebACLTypeDef(_RequiredWebACLTypeDef, _OptionalWebACLTypeDef):
1837
- pass
1838
-
1839
1565
  RuleGroupUpdateTypeDef = TypedDict(
1840
1566
  "RuleGroupUpdateTypeDef",
1841
1567
  {
@@ -1844,6 +1570,18 @@ RuleGroupUpdateTypeDef = TypedDict(
1844
1570
  },
1845
1571
  )
1846
1572
 
1573
+ WebACLTypeDef = TypedDict(
1574
+ "WebACLTypeDef",
1575
+ {
1576
+ "WebACLId": str,
1577
+ "DefaultAction": WafActionTypeDef,
1578
+ "Rules": List[ActivatedRuleTypeDef],
1579
+ "Name": NotRequired[str],
1580
+ "MetricName": NotRequired[str],
1581
+ "WebACLArn": NotRequired[str],
1582
+ },
1583
+ )
1584
+
1847
1585
  WebACLUpdateTypeDef = TypedDict(
1848
1586
  "WebACLUpdateTypeDef",
1849
1587
  {
@@ -1852,23 +1590,14 @@ WebACLUpdateTypeDef = TypedDict(
1852
1590
  },
1853
1591
  )
1854
1592
 
1855
- _RequiredByteMatchSetTypeDef = TypedDict(
1856
- "_RequiredByteMatchSetTypeDef",
1593
+ ByteMatchSetTypeDef = TypedDict(
1594
+ "ByteMatchSetTypeDef",
1857
1595
  {
1858
1596
  "ByteMatchSetId": str,
1859
- "ByteMatchTuples": List[ByteMatchTupleOutputTypeDef],
1597
+ "ByteMatchTuples": List[ByteMatchTupleTypeDef],
1598
+ "Name": NotRequired[str],
1860
1599
  },
1861
1600
  )
1862
- _OptionalByteMatchSetTypeDef = TypedDict(
1863
- "_OptionalByteMatchSetTypeDef",
1864
- {
1865
- "Name": str,
1866
- },
1867
- total=False,
1868
- )
1869
-
1870
- class ByteMatchSetTypeDef(_RequiredByteMatchSetTypeDef, _OptionalByteMatchSetTypeDef):
1871
- pass
1872
1601
 
1873
1602
  ByteMatchSetUpdateTypeDef = TypedDict(
1874
1603
  "ByteMatchSetUpdateTypeDef",
@@ -1881,7 +1610,7 @@ ByteMatchSetUpdateTypeDef = TypedDict(
1881
1610
  GetLoggingConfigurationResponseTypeDef = TypedDict(
1882
1611
  "GetLoggingConfigurationResponseTypeDef",
1883
1612
  {
1884
- "LoggingConfiguration": LoggingConfigurationOutputTypeDef,
1613
+ "LoggingConfiguration": LoggingConfigurationTypeDef,
1885
1614
  "ResponseMetadata": ResponseMetadataTypeDef,
1886
1615
  },
1887
1616
  )
@@ -1889,35 +1618,34 @@ GetLoggingConfigurationResponseTypeDef = TypedDict(
1889
1618
  ListLoggingConfigurationsResponseTypeDef = TypedDict(
1890
1619
  "ListLoggingConfigurationsResponseTypeDef",
1891
1620
  {
1892
- "LoggingConfigurations": List[LoggingConfigurationOutputTypeDef],
1621
+ "LoggingConfigurations": List[LoggingConfigurationTypeDef],
1893
1622
  "NextMarker": str,
1894
1623
  "ResponseMetadata": ResponseMetadataTypeDef,
1895
1624
  },
1896
1625
  )
1897
1626
 
1898
- PutLoggingConfigurationResponseTypeDef = TypedDict(
1899
- "PutLoggingConfigurationResponseTypeDef",
1627
+ PutLoggingConfigurationRequestRequestTypeDef = TypedDict(
1628
+ "PutLoggingConfigurationRequestRequestTypeDef",
1900
1629
  {
1901
- "LoggingConfiguration": LoggingConfigurationOutputTypeDef,
1902
- "ResponseMetadata": ResponseMetadataTypeDef,
1630
+ "LoggingConfiguration": LoggingConfigurationTypeDef,
1903
1631
  },
1904
1632
  )
1905
1633
 
1906
- PutLoggingConfigurationRequestRequestTypeDef = TypedDict(
1907
- "PutLoggingConfigurationRequestRequestTypeDef",
1634
+ PutLoggingConfigurationResponseTypeDef = TypedDict(
1635
+ "PutLoggingConfigurationResponseTypeDef",
1908
1636
  {
1909
1637
  "LoggingConfiguration": LoggingConfigurationTypeDef,
1638
+ "ResponseMetadata": ResponseMetadataTypeDef,
1910
1639
  },
1911
1640
  )
1912
1641
 
1913
1642
  RegexMatchSetTypeDef = TypedDict(
1914
1643
  "RegexMatchSetTypeDef",
1915
1644
  {
1916
- "RegexMatchSetId": str,
1917
- "Name": str,
1918
- "RegexMatchTuples": List[RegexMatchTupleTypeDef],
1645
+ "RegexMatchSetId": NotRequired[str],
1646
+ "Name": NotRequired[str],
1647
+ "RegexMatchTuples": NotRequired[List[RegexMatchTupleTypeDef]],
1919
1648
  },
1920
- total=False,
1921
1649
  )
1922
1650
 
1923
1651
  RegexMatchSetUpdateTypeDef = TypedDict(
@@ -1928,25 +1656,14 @@ RegexMatchSetUpdateTypeDef = TypedDict(
1928
1656
  },
1929
1657
  )
1930
1658
 
1931
- _RequiredSizeConstraintSetTypeDef = TypedDict(
1932
- "_RequiredSizeConstraintSetTypeDef",
1659
+ SizeConstraintSetTypeDef = TypedDict(
1660
+ "SizeConstraintSetTypeDef",
1933
1661
  {
1934
1662
  "SizeConstraintSetId": str,
1935
1663
  "SizeConstraints": List[SizeConstraintTypeDef],
1664
+ "Name": NotRequired[str],
1936
1665
  },
1937
1666
  )
1938
- _OptionalSizeConstraintSetTypeDef = TypedDict(
1939
- "_OptionalSizeConstraintSetTypeDef",
1940
- {
1941
- "Name": str,
1942
- },
1943
- total=False,
1944
- )
1945
-
1946
- class SizeConstraintSetTypeDef(
1947
- _RequiredSizeConstraintSetTypeDef, _OptionalSizeConstraintSetTypeDef
1948
- ):
1949
- pass
1950
1667
 
1951
1668
  SizeConstraintSetUpdateTypeDef = TypedDict(
1952
1669
  "SizeConstraintSetUpdateTypeDef",
@@ -1956,25 +1673,14 @@ SizeConstraintSetUpdateTypeDef = TypedDict(
1956
1673
  },
1957
1674
  )
1958
1675
 
1959
- _RequiredSqlInjectionMatchSetTypeDef = TypedDict(
1960
- "_RequiredSqlInjectionMatchSetTypeDef",
1676
+ SqlInjectionMatchSetTypeDef = TypedDict(
1677
+ "SqlInjectionMatchSetTypeDef",
1961
1678
  {
1962
1679
  "SqlInjectionMatchSetId": str,
1963
1680
  "SqlInjectionMatchTuples": List[SqlInjectionMatchTupleTypeDef],
1681
+ "Name": NotRequired[str],
1964
1682
  },
1965
1683
  )
1966
- _OptionalSqlInjectionMatchSetTypeDef = TypedDict(
1967
- "_OptionalSqlInjectionMatchSetTypeDef",
1968
- {
1969
- "Name": str,
1970
- },
1971
- total=False,
1972
- )
1973
-
1974
- class SqlInjectionMatchSetTypeDef(
1975
- _RequiredSqlInjectionMatchSetTypeDef, _OptionalSqlInjectionMatchSetTypeDef
1976
- ):
1977
- pass
1978
1684
 
1979
1685
  SqlInjectionMatchSetUpdateTypeDef = TypedDict(
1980
1686
  "SqlInjectionMatchSetUpdateTypeDef",
@@ -1984,23 +1690,14 @@ SqlInjectionMatchSetUpdateTypeDef = TypedDict(
1984
1690
  },
1985
1691
  )
1986
1692
 
1987
- _RequiredXssMatchSetTypeDef = TypedDict(
1988
- "_RequiredXssMatchSetTypeDef",
1693
+ XssMatchSetTypeDef = TypedDict(
1694
+ "XssMatchSetTypeDef",
1989
1695
  {
1990
1696
  "XssMatchSetId": str,
1991
1697
  "XssMatchTuples": List[XssMatchTupleTypeDef],
1698
+ "Name": NotRequired[str],
1992
1699
  },
1993
1700
  )
1994
- _OptionalXssMatchSetTypeDef = TypedDict(
1995
- "_OptionalXssMatchSetTypeDef",
1996
- {
1997
- "Name": str,
1998
- },
1999
- total=False,
2000
- )
2001
-
2002
- class XssMatchSetTypeDef(_RequiredXssMatchSetTypeDef, _OptionalXssMatchSetTypeDef):
2003
- pass
2004
1701
 
2005
1702
  XssMatchSetUpdateTypeDef = TypedDict(
2006
1703
  "XssMatchSetUpdateTypeDef",
@@ -2045,27 +1742,16 @@ UpdateGeoMatchSetRequestRequestTypeDef = TypedDict(
2045
1742
  },
2046
1743
  )
2047
1744
 
2048
- _RequiredSampledHTTPRequestTypeDef = TypedDict(
2049
- "_RequiredSampledHTTPRequestTypeDef",
1745
+ SampledHTTPRequestTypeDef = TypedDict(
1746
+ "SampledHTTPRequestTypeDef",
2050
1747
  {
2051
1748
  "Request": HTTPRequestTypeDef,
2052
1749
  "Weight": int,
1750
+ "Timestamp": NotRequired[datetime],
1751
+ "Action": NotRequired[str],
1752
+ "RuleWithinRuleGroup": NotRequired[str],
2053
1753
  },
2054
1754
  )
2055
- _OptionalSampledHTTPRequestTypeDef = TypedDict(
2056
- "_OptionalSampledHTTPRequestTypeDef",
2057
- {
2058
- "Timestamp": datetime,
2059
- "Action": str,
2060
- "RuleWithinRuleGroup": str,
2061
- },
2062
- total=False,
2063
- )
2064
-
2065
- class SampledHTTPRequestTypeDef(
2066
- _RequiredSampledHTTPRequestTypeDef, _OptionalSampledHTTPRequestTypeDef
2067
- ):
2068
- pass
2069
1755
 
2070
1756
  CreateIPSetResponseTypeDef = TypedDict(
2071
1757
  "CreateIPSetResponseTypeDef",
@@ -2146,6 +1832,25 @@ UpdateRuleRequestRequestTypeDef = TypedDict(
2146
1832
  },
2147
1833
  )
2148
1834
 
1835
+ GetSampledRequestsRequestRequestTypeDef = TypedDict(
1836
+ "GetSampledRequestsRequestRequestTypeDef",
1837
+ {
1838
+ "WebAclId": str,
1839
+ "RuleId": str,
1840
+ "TimeWindow": TimeWindowTypeDef,
1841
+ "MaxItems": int,
1842
+ },
1843
+ )
1844
+
1845
+ UpdateRuleGroupRequestRequestTypeDef = TypedDict(
1846
+ "UpdateRuleGroupRequestRequestTypeDef",
1847
+ {
1848
+ "RuleGroupId": str,
1849
+ "Updates": Sequence[RuleGroupUpdateTypeDef],
1850
+ "ChangeToken": str,
1851
+ },
1852
+ )
1853
+
2149
1854
  CreateWebACLResponseTypeDef = TypedDict(
2150
1855
  "CreateWebACLResponseTypeDef",
2151
1856
  {
@@ -2163,35 +1868,15 @@ GetWebACLResponseTypeDef = TypedDict(
2163
1868
  },
2164
1869
  )
2165
1870
 
2166
- UpdateRuleGroupRequestRequestTypeDef = TypedDict(
2167
- "UpdateRuleGroupRequestRequestTypeDef",
2168
- {
2169
- "RuleGroupId": str,
2170
- "Updates": Sequence[RuleGroupUpdateTypeDef],
2171
- "ChangeToken": str,
2172
- },
2173
- )
2174
-
2175
- _RequiredUpdateWebACLRequestRequestTypeDef = TypedDict(
2176
- "_RequiredUpdateWebACLRequestRequestTypeDef",
1871
+ UpdateWebACLRequestRequestTypeDef = TypedDict(
1872
+ "UpdateWebACLRequestRequestTypeDef",
2177
1873
  {
2178
1874
  "WebACLId": str,
2179
1875
  "ChangeToken": str,
1876
+ "Updates": NotRequired[Sequence[WebACLUpdateTypeDef]],
1877
+ "DefaultAction": NotRequired[WafActionTypeDef],
2180
1878
  },
2181
1879
  )
2182
- _OptionalUpdateWebACLRequestRequestTypeDef = TypedDict(
2183
- "_OptionalUpdateWebACLRequestRequestTypeDef",
2184
- {
2185
- "Updates": Sequence[WebACLUpdateTypeDef],
2186
- "DefaultAction": WafActionTypeDef,
2187
- },
2188
- total=False,
2189
- )
2190
-
2191
- class UpdateWebACLRequestRequestTypeDef(
2192
- _RequiredUpdateWebACLRequestRequestTypeDef, _OptionalUpdateWebACLRequestRequestTypeDef
2193
- ):
2194
- pass
2195
1880
 
2196
1881
  CreateByteMatchSetResponseTypeDef = TypedDict(
2197
1882
  "CreateByteMatchSetResponseTypeDef",
@@ -2328,7 +2013,7 @@ GetSampledRequestsResponseTypeDef = TypedDict(
2328
2013
  {
2329
2014
  "SampledRequests": List[SampledHTTPRequestTypeDef],
2330
2015
  "PopulationSize": int,
2331
- "TimeWindow": TimeWindowOutputTypeDef,
2016
+ "TimeWindow": TimeWindowTypeDef,
2332
2017
  "ResponseMetadata": ResponseMetadataTypeDef,
2333
2018
  },
2334
2019
  )