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
@@ -92,8 +94,6 @@ __all__ = (
92
94
  "GetRegexPatternSetRequestRequestTypeDef",
93
95
  "GetRuleGroupRequestRequestTypeDef",
94
96
  "GetRuleRequestRequestTypeDef",
95
- "TimeWindowTypeDef",
96
- "TimeWindowOutputTypeDef",
97
97
  "GetSizeConstraintSetRequestRequestTypeDef",
98
98
  "GetSqlInjectionMatchSetRequestRequestTypeDef",
99
99
  "GetWebACLForResourceRequestRequestTypeDef",
@@ -131,12 +131,10 @@ __all__ = (
131
131
  "PredicateTypeDef",
132
132
  "PutPermissionPolicyRequestRequestTypeDef",
133
133
  "RegexPatternSetUpdateTypeDef",
134
+ "TimestampTypeDef",
134
135
  "UntagResourceRequestRequestTypeDef",
135
- "ActivatedRuleOutputTypeDef",
136
136
  "ActivatedRuleTypeDef",
137
- "ByteMatchTupleOutputTypeDef",
138
137
  "ByteMatchTupleTypeDef",
139
- "LoggingConfigurationOutputTypeDef",
140
138
  "LoggingConfigurationTypeDef",
141
139
  "RegexMatchTupleTypeDef",
142
140
  "SizeConstraintTypeDef",
@@ -186,7 +184,6 @@ __all__ = (
186
184
  "GeoMatchSetTypeDef",
187
185
  "GeoMatchSetUpdateTypeDef",
188
186
  "ListGeoMatchSetsResponseTypeDef",
189
- "GetSampledRequestsRequestRequestTypeDef",
190
187
  "GetWebACLForResourceResponseTypeDef",
191
188
  "ListWebACLsResponseTypeDef",
192
189
  "HTTPRequestTypeDef",
@@ -206,16 +203,17 @@ __all__ = (
206
203
  "RuleTypeDef",
207
204
  "RuleUpdateTypeDef",
208
205
  "UpdateRegexPatternSetRequestRequestTypeDef",
206
+ "TimeWindowTypeDef",
209
207
  "ListActivatedRulesInRuleGroupResponseTypeDef",
210
- "WebACLTypeDef",
211
208
  "RuleGroupUpdateTypeDef",
209
+ "WebACLTypeDef",
212
210
  "WebACLUpdateTypeDef",
213
211
  "ByteMatchSetTypeDef",
214
212
  "ByteMatchSetUpdateTypeDef",
215
213
  "GetLoggingConfigurationResponseTypeDef",
216
214
  "ListLoggingConfigurationsResponseTypeDef",
217
- "PutLoggingConfigurationResponseTypeDef",
218
215
  "PutLoggingConfigurationRequestRequestTypeDef",
216
+ "PutLoggingConfigurationResponseTypeDef",
219
217
  "RegexMatchSetTypeDef",
220
218
  "RegexMatchSetUpdateTypeDef",
221
219
  "SizeConstraintSetTypeDef",
@@ -238,9 +236,10 @@ __all__ = (
238
236
  "GetRuleResponseTypeDef",
239
237
  "UpdateRateBasedRuleRequestRequestTypeDef",
240
238
  "UpdateRuleRequestRequestTypeDef",
239
+ "GetSampledRequestsRequestRequestTypeDef",
240
+ "UpdateRuleGroupRequestRequestTypeDef",
241
241
  "CreateWebACLResponseTypeDef",
242
242
  "GetWebACLResponseTypeDef",
243
- "UpdateRuleGroupRequestRequestTypeDef",
244
243
  "UpdateWebACLRequestRequestTypeDef",
245
244
  "CreateByteMatchSetResponseTypeDef",
246
245
  "GetByteMatchSetResponseTypeDef",
@@ -297,24 +296,13 @@ ByteMatchSetSummaryTypeDef = TypedDict(
297
296
  },
298
297
  )
299
298
 
300
- _RequiredFieldToMatchTypeDef = TypedDict(
301
- "_RequiredFieldToMatchTypeDef",
299
+ FieldToMatchTypeDef = TypedDict(
300
+ "FieldToMatchTypeDef",
302
301
  {
303
302
  "Type": MatchFieldTypeType,
303
+ "Data": NotRequired[str],
304
304
  },
305
305
  )
306
- _OptionalFieldToMatchTypeDef = TypedDict(
307
- "_OptionalFieldToMatchTypeDef",
308
- {
309
- "Data": str,
310
- },
311
- total=False,
312
- )
313
-
314
-
315
- class FieldToMatchTypeDef(_RequiredFieldToMatchTypeDef, _OptionalFieldToMatchTypeDef):
316
- pass
317
-
318
306
 
319
307
  CreateByteMatchSetRequestRequestTypeDef = TypedDict(
320
308
  "CreateByteMatchSetRequestRequestTypeDef",
@@ -375,45 +363,23 @@ CreateRegexPatternSetRequestRequestTypeDef = TypedDict(
375
363
  },
376
364
  )
377
365
 
378
- _RequiredRegexPatternSetTypeDef = TypedDict(
379
- "_RequiredRegexPatternSetTypeDef",
366
+ RegexPatternSetTypeDef = TypedDict(
367
+ "RegexPatternSetTypeDef",
380
368
  {
381
369
  "RegexPatternSetId": str,
382
370
  "RegexPatternStrings": List[str],
371
+ "Name": NotRequired[str],
383
372
  },
384
373
  )
385
- _OptionalRegexPatternSetTypeDef = TypedDict(
386
- "_OptionalRegexPatternSetTypeDef",
387
- {
388
- "Name": str,
389
- },
390
- total=False,
391
- )
392
-
393
-
394
- class RegexPatternSetTypeDef(_RequiredRegexPatternSetTypeDef, _OptionalRegexPatternSetTypeDef):
395
- pass
396
374
 
397
-
398
- _RequiredRuleGroupTypeDef = TypedDict(
399
- "_RequiredRuleGroupTypeDef",
375
+ RuleGroupTypeDef = TypedDict(
376
+ "RuleGroupTypeDef",
400
377
  {
401
378
  "RuleGroupId": str,
379
+ "Name": NotRequired[str],
380
+ "MetricName": NotRequired[str],
402
381
  },
403
382
  )
404
- _OptionalRuleGroupTypeDef = TypedDict(
405
- "_OptionalRuleGroupTypeDef",
406
- {
407
- "Name": str,
408
- "MetricName": str,
409
- },
410
- total=False,
411
- )
412
-
413
-
414
- class RuleGroupTypeDef(_RequiredRuleGroupTypeDef, _OptionalRuleGroupTypeDef):
415
- pass
416
-
417
383
 
418
384
  CreateSizeConstraintSetRequestRequestTypeDef = TypedDict(
419
385
  "CreateSizeConstraintSetRequestRequestTypeDef",
@@ -623,27 +589,13 @@ GetPermissionPolicyRequestRequestTypeDef = TypedDict(
623
589
  },
624
590
  )
625
591
 
626
- _RequiredGetRateBasedRuleManagedKeysRequestRequestTypeDef = TypedDict(
627
- "_RequiredGetRateBasedRuleManagedKeysRequestRequestTypeDef",
592
+ GetRateBasedRuleManagedKeysRequestRequestTypeDef = TypedDict(
593
+ "GetRateBasedRuleManagedKeysRequestRequestTypeDef",
628
594
  {
629
595
  "RuleId": str,
596
+ "NextMarker": NotRequired[str],
630
597
  },
631
598
  )
632
- _OptionalGetRateBasedRuleManagedKeysRequestRequestTypeDef = TypedDict(
633
- "_OptionalGetRateBasedRuleManagedKeysRequestRequestTypeDef",
634
- {
635
- "NextMarker": str,
636
- },
637
- total=False,
638
- )
639
-
640
-
641
- class GetRateBasedRuleManagedKeysRequestRequestTypeDef(
642
- _RequiredGetRateBasedRuleManagedKeysRequestRequestTypeDef,
643
- _OptionalGetRateBasedRuleManagedKeysRequestRequestTypeDef,
644
- ):
645
- pass
646
-
647
599
 
648
600
  GetRateBasedRuleRequestRequestTypeDef = TypedDict(
649
601
  "GetRateBasedRuleRequestRequestTypeDef",
@@ -680,22 +632,6 @@ GetRuleRequestRequestTypeDef = TypedDict(
680
632
  },
681
633
  )
682
634
 
683
- TimeWindowTypeDef = TypedDict(
684
- "TimeWindowTypeDef",
685
- {
686
- "StartTime": Union[datetime, str],
687
- "EndTime": Union[datetime, str],
688
- },
689
- )
690
-
691
- TimeWindowOutputTypeDef = TypedDict(
692
- "TimeWindowOutputTypeDef",
693
- {
694
- "StartTime": datetime,
695
- "EndTime": datetime,
696
- },
697
- )
698
-
699
635
  GetSizeConstraintSetRequestRequestTypeDef = TypedDict(
700
636
  "GetSizeConstraintSetRequestRequestTypeDef",
701
637
  {
@@ -742,10 +678,9 @@ GetXssMatchSetRequestRequestTypeDef = TypedDict(
742
678
  HTTPHeaderTypeDef = TypedDict(
743
679
  "HTTPHeaderTypeDef",
744
680
  {
745
- "Name": str,
746
- "Value": str,
681
+ "Name": NotRequired[str],
682
+ "Value": NotRequired[str],
747
683
  },
748
- total=False,
749
684
  )
750
685
 
751
686
  IPSetDescriptorTypeDef = TypedDict(
@@ -767,56 +702,50 @@ IPSetSummaryTypeDef = TypedDict(
767
702
  ListActivatedRulesInRuleGroupRequestRequestTypeDef = TypedDict(
768
703
  "ListActivatedRulesInRuleGroupRequestRequestTypeDef",
769
704
  {
770
- "RuleGroupId": str,
771
- "NextMarker": str,
772
- "Limit": int,
705
+ "RuleGroupId": NotRequired[str],
706
+ "NextMarker": NotRequired[str],
707
+ "Limit": NotRequired[int],
773
708
  },
774
- total=False,
775
709
  )
776
710
 
777
711
  ListByteMatchSetsRequestRequestTypeDef = TypedDict(
778
712
  "ListByteMatchSetsRequestRequestTypeDef",
779
713
  {
780
- "NextMarker": str,
781
- "Limit": int,
714
+ "NextMarker": NotRequired[str],
715
+ "Limit": NotRequired[int],
782
716
  },
783
- total=False,
784
717
  )
785
718
 
786
719
  ListGeoMatchSetsRequestRequestTypeDef = TypedDict(
787
720
  "ListGeoMatchSetsRequestRequestTypeDef",
788
721
  {
789
- "NextMarker": str,
790
- "Limit": int,
722
+ "NextMarker": NotRequired[str],
723
+ "Limit": NotRequired[int],
791
724
  },
792
- total=False,
793
725
  )
794
726
 
795
727
  ListIPSetsRequestRequestTypeDef = TypedDict(
796
728
  "ListIPSetsRequestRequestTypeDef",
797
729
  {
798
- "NextMarker": str,
799
- "Limit": int,
730
+ "NextMarker": NotRequired[str],
731
+ "Limit": NotRequired[int],
800
732
  },
801
- total=False,
802
733
  )
803
734
 
804
735
  ListLoggingConfigurationsRequestRequestTypeDef = TypedDict(
805
736
  "ListLoggingConfigurationsRequestRequestTypeDef",
806
737
  {
807
- "NextMarker": str,
808
- "Limit": int,
738
+ "NextMarker": NotRequired[str],
739
+ "Limit": NotRequired[int],
809
740
  },
810
- total=False,
811
741
  )
812
742
 
813
743
  ListRateBasedRulesRequestRequestTypeDef = TypedDict(
814
744
  "ListRateBasedRulesRequestRequestTypeDef",
815
745
  {
816
- "NextMarker": str,
817
- "Limit": int,
746
+ "NextMarker": NotRequired[str],
747
+ "Limit": NotRequired[int],
818
748
  },
819
- total=False,
820
749
  )
821
750
 
822
751
  RuleSummaryTypeDef = TypedDict(
@@ -830,10 +759,9 @@ RuleSummaryTypeDef = TypedDict(
830
759
  ListRegexMatchSetsRequestRequestTypeDef = TypedDict(
831
760
  "ListRegexMatchSetsRequestRequestTypeDef",
832
761
  {
833
- "NextMarker": str,
834
- "Limit": int,
762
+ "NextMarker": NotRequired[str],
763
+ "Limit": NotRequired[int],
835
764
  },
836
- total=False,
837
765
  )
838
766
 
839
767
  RegexMatchSetSummaryTypeDef = TypedDict(
@@ -847,10 +775,9 @@ RegexMatchSetSummaryTypeDef = TypedDict(
847
775
  ListRegexPatternSetsRequestRequestTypeDef = TypedDict(
848
776
  "ListRegexPatternSetsRequestRequestTypeDef",
849
777
  {
850
- "NextMarker": str,
851
- "Limit": int,
778
+ "NextMarker": NotRequired[str],
779
+ "Limit": NotRequired[int],
852
780
  },
853
- total=False,
854
781
  )
855
782
 
856
783
  RegexPatternSetSummaryTypeDef = TypedDict(
@@ -861,35 +788,20 @@ RegexPatternSetSummaryTypeDef = TypedDict(
861
788
  },
862
789
  )
863
790
 
864
- _RequiredListResourcesForWebACLRequestRequestTypeDef = TypedDict(
865
- "_RequiredListResourcesForWebACLRequestRequestTypeDef",
791
+ ListResourcesForWebACLRequestRequestTypeDef = TypedDict(
792
+ "ListResourcesForWebACLRequestRequestTypeDef",
866
793
  {
867
794
  "WebACLId": str,
795
+ "ResourceType": NotRequired[ResourceTypeType],
868
796
  },
869
797
  )
870
- _OptionalListResourcesForWebACLRequestRequestTypeDef = TypedDict(
871
- "_OptionalListResourcesForWebACLRequestRequestTypeDef",
872
- {
873
- "ResourceType": ResourceTypeType,
874
- },
875
- total=False,
876
- )
877
-
878
-
879
- class ListResourcesForWebACLRequestRequestTypeDef(
880
- _RequiredListResourcesForWebACLRequestRequestTypeDef,
881
- _OptionalListResourcesForWebACLRequestRequestTypeDef,
882
- ):
883
- pass
884
-
885
798
 
886
799
  ListRuleGroupsRequestRequestTypeDef = TypedDict(
887
800
  "ListRuleGroupsRequestRequestTypeDef",
888
801
  {
889
- "NextMarker": str,
890
- "Limit": int,
802
+ "NextMarker": NotRequired[str],
803
+ "Limit": NotRequired[int],
891
804
  },
892
- total=False,
893
805
  )
894
806
 
895
807
  RuleGroupSummaryTypeDef = TypedDict(
@@ -903,19 +815,17 @@ RuleGroupSummaryTypeDef = TypedDict(
903
815
  ListRulesRequestRequestTypeDef = TypedDict(
904
816
  "ListRulesRequestRequestTypeDef",
905
817
  {
906
- "NextMarker": str,
907
- "Limit": int,
818
+ "NextMarker": NotRequired[str],
819
+ "Limit": NotRequired[int],
908
820
  },
909
- total=False,
910
821
  )
911
822
 
912
823
  ListSizeConstraintSetsRequestRequestTypeDef = TypedDict(
913
824
  "ListSizeConstraintSetsRequestRequestTypeDef",
914
825
  {
915
- "NextMarker": str,
916
- "Limit": int,
826
+ "NextMarker": NotRequired[str],
827
+ "Limit": NotRequired[int],
917
828
  },
918
- total=False,
919
829
  )
920
830
 
921
831
  SizeConstraintSetSummaryTypeDef = TypedDict(
@@ -929,10 +839,9 @@ SizeConstraintSetSummaryTypeDef = TypedDict(
929
839
  ListSqlInjectionMatchSetsRequestRequestTypeDef = TypedDict(
930
840
  "ListSqlInjectionMatchSetsRequestRequestTypeDef",
931
841
  {
932
- "NextMarker": str,
933
- "Limit": int,
842
+ "NextMarker": NotRequired[str],
843
+ "Limit": NotRequired[int],
934
844
  },
935
- total=False,
936
845
  )
937
846
 
938
847
  SqlInjectionMatchSetSummaryTypeDef = TypedDict(
@@ -946,10 +855,9 @@ SqlInjectionMatchSetSummaryTypeDef = TypedDict(
946
855
  ListSubscribedRuleGroupsRequestRequestTypeDef = TypedDict(
947
856
  "ListSubscribedRuleGroupsRequestRequestTypeDef",
948
857
  {
949
- "NextMarker": str,
950
- "Limit": int,
858
+ "NextMarker": NotRequired[str],
859
+ "Limit": NotRequired[int],
951
860
  },
952
- total=False,
953
861
  )
954
862
 
955
863
  SubscribedRuleGroupSummaryTypeDef = TypedDict(
@@ -961,45 +869,29 @@ SubscribedRuleGroupSummaryTypeDef = TypedDict(
961
869
  },
962
870
  )
963
871
 
964
- _RequiredListTagsForResourceRequestRequestTypeDef = TypedDict(
965
- "_RequiredListTagsForResourceRequestRequestTypeDef",
872
+ ListTagsForResourceRequestRequestTypeDef = TypedDict(
873
+ "ListTagsForResourceRequestRequestTypeDef",
966
874
  {
967
875
  "ResourceARN": str,
876
+ "NextMarker": NotRequired[str],
877
+ "Limit": NotRequired[int],
968
878
  },
969
879
  )
970
- _OptionalListTagsForResourceRequestRequestTypeDef = TypedDict(
971
- "_OptionalListTagsForResourceRequestRequestTypeDef",
972
- {
973
- "NextMarker": str,
974
- "Limit": int,
975
- },
976
- total=False,
977
- )
978
-
979
-
980
- class ListTagsForResourceRequestRequestTypeDef(
981
- _RequiredListTagsForResourceRequestRequestTypeDef,
982
- _OptionalListTagsForResourceRequestRequestTypeDef,
983
- ):
984
- pass
985
-
986
880
 
987
881
  ListWebACLsRequestRequestTypeDef = TypedDict(
988
882
  "ListWebACLsRequestRequestTypeDef",
989
883
  {
990
- "NextMarker": str,
991
- "Limit": int,
884
+ "NextMarker": NotRequired[str],
885
+ "Limit": NotRequired[int],
992
886
  },
993
- total=False,
994
887
  )
995
888
 
996
889
  ListXssMatchSetsRequestRequestTypeDef = TypedDict(
997
890
  "ListXssMatchSetsRequestRequestTypeDef",
998
891
  {
999
- "NextMarker": str,
1000
- "Limit": int,
892
+ "NextMarker": NotRequired[str],
893
+ "Limit": NotRequired[int],
1001
894
  },
1002
- total=False,
1003
895
  )
1004
896
 
1005
897
  XssMatchSetSummaryTypeDef = TypedDict(
@@ -1035,6 +927,7 @@ RegexPatternSetUpdateTypeDef = TypedDict(
1035
927
  },
1036
928
  )
1037
929
 
930
+ TimestampTypeDef = Union[datetime, str]
1038
931
  UntagResourceRequestRequestTypeDef = TypedDict(
1039
932
  "UntagResourceRequestRequestTypeDef",
1040
933
  {
@@ -1043,61 +936,15 @@ UntagResourceRequestRequestTypeDef = TypedDict(
1043
936
  },
1044
937
  )
1045
938
 
1046
- _RequiredActivatedRuleOutputTypeDef = TypedDict(
1047
- "_RequiredActivatedRuleOutputTypeDef",
1048
- {
1049
- "Priority": int,
1050
- "RuleId": str,
1051
- },
1052
- )
1053
- _OptionalActivatedRuleOutputTypeDef = TypedDict(
1054
- "_OptionalActivatedRuleOutputTypeDef",
1055
- {
1056
- "Action": WafActionTypeDef,
1057
- "OverrideAction": WafOverrideActionTypeDef,
1058
- "Type": WafRuleTypeType,
1059
- "ExcludedRules": List[ExcludedRuleTypeDef],
1060
- },
1061
- total=False,
1062
- )
1063
-
1064
-
1065
- class ActivatedRuleOutputTypeDef(
1066
- _RequiredActivatedRuleOutputTypeDef, _OptionalActivatedRuleOutputTypeDef
1067
- ):
1068
- pass
1069
-
1070
-
1071
- _RequiredActivatedRuleTypeDef = TypedDict(
1072
- "_RequiredActivatedRuleTypeDef",
939
+ ActivatedRuleTypeDef = TypedDict(
940
+ "ActivatedRuleTypeDef",
1073
941
  {
1074
942
  "Priority": int,
1075
943
  "RuleId": str,
1076
- },
1077
- )
1078
- _OptionalActivatedRuleTypeDef = TypedDict(
1079
- "_OptionalActivatedRuleTypeDef",
1080
- {
1081
- "Action": WafActionTypeDef,
1082
- "OverrideAction": WafOverrideActionTypeDef,
1083
- "Type": WafRuleTypeType,
1084
- "ExcludedRules": Sequence[ExcludedRuleTypeDef],
1085
- },
1086
- total=False,
1087
- )
1088
-
1089
-
1090
- class ActivatedRuleTypeDef(_RequiredActivatedRuleTypeDef, _OptionalActivatedRuleTypeDef):
1091
- pass
1092
-
1093
-
1094
- ByteMatchTupleOutputTypeDef = TypedDict(
1095
- "ByteMatchTupleOutputTypeDef",
1096
- {
1097
- "FieldToMatch": FieldToMatchTypeDef,
1098
- "TargetString": bytes,
1099
- "TextTransformation": TextTransformationType,
1100
- "PositionalConstraint": PositionalConstraintType,
944
+ "Action": NotRequired[WafActionTypeDef],
945
+ "OverrideAction": NotRequired[WafOverrideActionTypeDef],
946
+ "Type": NotRequired[WafRuleTypeType],
947
+ "ExcludedRules": NotRequired[List[ExcludedRuleTypeDef]],
1101
948
  },
1102
949
  )
1103
950
 
@@ -1105,55 +952,20 @@ ByteMatchTupleTypeDef = TypedDict(
1105
952
  "ByteMatchTupleTypeDef",
1106
953
  {
1107
954
  "FieldToMatch": FieldToMatchTypeDef,
1108
- "TargetString": Union[str, bytes, IO[Any], StreamingBody],
955
+ "TargetString": bytes,
1109
956
  "TextTransformation": TextTransformationType,
1110
957
  "PositionalConstraint": PositionalConstraintType,
1111
958
  },
1112
959
  )
1113
960
 
1114
- _RequiredLoggingConfigurationOutputTypeDef = TypedDict(
1115
- "_RequiredLoggingConfigurationOutputTypeDef",
961
+ LoggingConfigurationTypeDef = TypedDict(
962
+ "LoggingConfigurationTypeDef",
1116
963
  {
1117
964
  "ResourceArn": str,
1118
965
  "LogDestinationConfigs": List[str],
966
+ "RedactedFields": NotRequired[List[FieldToMatchTypeDef]],
1119
967
  },
1120
968
  )
1121
- _OptionalLoggingConfigurationOutputTypeDef = TypedDict(
1122
- "_OptionalLoggingConfigurationOutputTypeDef",
1123
- {
1124
- "RedactedFields": List[FieldToMatchTypeDef],
1125
- },
1126
- total=False,
1127
- )
1128
-
1129
-
1130
- class LoggingConfigurationOutputTypeDef(
1131
- _RequiredLoggingConfigurationOutputTypeDef, _OptionalLoggingConfigurationOutputTypeDef
1132
- ):
1133
- pass
1134
-
1135
-
1136
- _RequiredLoggingConfigurationTypeDef = TypedDict(
1137
- "_RequiredLoggingConfigurationTypeDef",
1138
- {
1139
- "ResourceArn": str,
1140
- "LogDestinationConfigs": Sequence[str],
1141
- },
1142
- )
1143
- _OptionalLoggingConfigurationTypeDef = TypedDict(
1144
- "_OptionalLoggingConfigurationTypeDef",
1145
- {
1146
- "RedactedFields": Sequence[FieldToMatchTypeDef],
1147
- },
1148
- total=False,
1149
- )
1150
-
1151
-
1152
- class LoggingConfigurationTypeDef(
1153
- _RequiredLoggingConfigurationTypeDef, _OptionalLoggingConfigurationTypeDef
1154
- ):
1155
- pass
1156
-
1157
969
 
1158
970
  RegexMatchTupleTypeDef = TypedDict(
1159
971
  "RegexMatchTupleTypeDef",
@@ -1440,109 +1252,55 @@ UpdateXssMatchSetResponseTypeDef = TypedDict(
1440
1252
  },
1441
1253
  )
1442
1254
 
1443
- _RequiredCreateRateBasedRuleRequestRequestTypeDef = TypedDict(
1444
- "_RequiredCreateRateBasedRuleRequestRequestTypeDef",
1255
+ CreateRateBasedRuleRequestRequestTypeDef = TypedDict(
1256
+ "CreateRateBasedRuleRequestRequestTypeDef",
1445
1257
  {
1446
1258
  "Name": str,
1447
1259
  "MetricName": str,
1448
1260
  "RateKey": Literal["IP"],
1449
1261
  "RateLimit": int,
1450
1262
  "ChangeToken": str,
1263
+ "Tags": NotRequired[Sequence[TagTypeDef]],
1451
1264
  },
1452
1265
  )
1453
- _OptionalCreateRateBasedRuleRequestRequestTypeDef = TypedDict(
1454
- "_OptionalCreateRateBasedRuleRequestRequestTypeDef",
1455
- {
1456
- "Tags": Sequence[TagTypeDef],
1457
- },
1458
- total=False,
1459
- )
1460
-
1461
1266
 
1462
- class CreateRateBasedRuleRequestRequestTypeDef(
1463
- _RequiredCreateRateBasedRuleRequestRequestTypeDef,
1464
- _OptionalCreateRateBasedRuleRequestRequestTypeDef,
1465
- ):
1466
- pass
1467
-
1468
-
1469
- _RequiredCreateRuleGroupRequestRequestTypeDef = TypedDict(
1470
- "_RequiredCreateRuleGroupRequestRequestTypeDef",
1267
+ CreateRuleGroupRequestRequestTypeDef = TypedDict(
1268
+ "CreateRuleGroupRequestRequestTypeDef",
1471
1269
  {
1472
1270
  "Name": str,
1473
1271
  "MetricName": str,
1474
1272
  "ChangeToken": str,
1273
+ "Tags": NotRequired[Sequence[TagTypeDef]],
1475
1274
  },
1476
1275
  )
1477
- _OptionalCreateRuleGroupRequestRequestTypeDef = TypedDict(
1478
- "_OptionalCreateRuleGroupRequestRequestTypeDef",
1479
- {
1480
- "Tags": Sequence[TagTypeDef],
1481
- },
1482
- total=False,
1483
- )
1484
-
1485
-
1486
- class CreateRuleGroupRequestRequestTypeDef(
1487
- _RequiredCreateRuleGroupRequestRequestTypeDef, _OptionalCreateRuleGroupRequestRequestTypeDef
1488
- ):
1489
- pass
1490
-
1491
1276
 
1492
- _RequiredCreateRuleRequestRequestTypeDef = TypedDict(
1493
- "_RequiredCreateRuleRequestRequestTypeDef",
1277
+ CreateRuleRequestRequestTypeDef = TypedDict(
1278
+ "CreateRuleRequestRequestTypeDef",
1494
1279
  {
1495
1280
  "Name": str,
1496
1281
  "MetricName": str,
1497
1282
  "ChangeToken": str,
1283
+ "Tags": NotRequired[Sequence[TagTypeDef]],
1498
1284
  },
1499
1285
  )
1500
- _OptionalCreateRuleRequestRequestTypeDef = TypedDict(
1501
- "_OptionalCreateRuleRequestRequestTypeDef",
1502
- {
1503
- "Tags": Sequence[TagTypeDef],
1504
- },
1505
- total=False,
1506
- )
1507
1286
 
1508
-
1509
- class CreateRuleRequestRequestTypeDef(
1510
- _RequiredCreateRuleRequestRequestTypeDef, _OptionalCreateRuleRequestRequestTypeDef
1511
- ):
1512
- pass
1513
-
1514
-
1515
- _RequiredCreateWebACLRequestRequestTypeDef = TypedDict(
1516
- "_RequiredCreateWebACLRequestRequestTypeDef",
1287
+ CreateWebACLRequestRequestTypeDef = TypedDict(
1288
+ "CreateWebACLRequestRequestTypeDef",
1517
1289
  {
1518
1290
  "Name": str,
1519
1291
  "MetricName": str,
1520
1292
  "DefaultAction": WafActionTypeDef,
1521
1293
  "ChangeToken": str,
1294
+ "Tags": NotRequired[Sequence[TagTypeDef]],
1522
1295
  },
1523
1296
  )
1524
- _OptionalCreateWebACLRequestRequestTypeDef = TypedDict(
1525
- "_OptionalCreateWebACLRequestRequestTypeDef",
1526
- {
1527
- "Tags": Sequence[TagTypeDef],
1528
- },
1529
- total=False,
1530
- )
1531
-
1532
-
1533
- class CreateWebACLRequestRequestTypeDef(
1534
- _RequiredCreateWebACLRequestRequestTypeDef, _OptionalCreateWebACLRequestRequestTypeDef
1535
- ):
1536
- pass
1537
-
1538
1297
 
1539
1298
  TagInfoForResourceTypeDef = TypedDict(
1540
1299
  "TagInfoForResourceTypeDef",
1541
1300
  {
1542
- "ResourceARN": str,
1543
- "TagList": List[TagTypeDef],
1301
+ "ResourceARN": NotRequired[str],
1302
+ "TagList": NotRequired[List[TagTypeDef]],
1544
1303
  },
1545
- total=False,
1546
1304
  )
1547
1305
 
1548
1306
  TagResourceRequestRequestTypeDef = TypedDict(
@@ -1587,25 +1345,14 @@ GetRuleGroupResponseTypeDef = TypedDict(
1587
1345
  },
1588
1346
  )
1589
1347
 
1590
- _RequiredGeoMatchSetTypeDef = TypedDict(
1591
- "_RequiredGeoMatchSetTypeDef",
1348
+ GeoMatchSetTypeDef = TypedDict(
1349
+ "GeoMatchSetTypeDef",
1592
1350
  {
1593
1351
  "GeoMatchSetId": str,
1594
1352
  "GeoMatchConstraints": List[GeoMatchConstraintTypeDef],
1353
+ "Name": NotRequired[str],
1595
1354
  },
1596
1355
  )
1597
- _OptionalGeoMatchSetTypeDef = TypedDict(
1598
- "_OptionalGeoMatchSetTypeDef",
1599
- {
1600
- "Name": str,
1601
- },
1602
- total=False,
1603
- )
1604
-
1605
-
1606
- class GeoMatchSetTypeDef(_RequiredGeoMatchSetTypeDef, _OptionalGeoMatchSetTypeDef):
1607
- pass
1608
-
1609
1356
 
1610
1357
  GeoMatchSetUpdateTypeDef = TypedDict(
1611
1358
  "GeoMatchSetUpdateTypeDef",
@@ -1624,16 +1371,6 @@ ListGeoMatchSetsResponseTypeDef = TypedDict(
1624
1371
  },
1625
1372
  )
1626
1373
 
1627
- GetSampledRequestsRequestRequestTypeDef = TypedDict(
1628
- "GetSampledRequestsRequestRequestTypeDef",
1629
- {
1630
- "WebAclId": str,
1631
- "RuleId": str,
1632
- "TimeWindow": TimeWindowTypeDef,
1633
- "MaxItems": int,
1634
- },
1635
- )
1636
-
1637
1374
  GetWebACLForResourceResponseTypeDef = TypedDict(
1638
1375
  "GetWebACLForResourceResponseTypeDef",
1639
1376
  {
@@ -1654,35 +1391,23 @@ ListWebACLsResponseTypeDef = TypedDict(
1654
1391
  HTTPRequestTypeDef = TypedDict(
1655
1392
  "HTTPRequestTypeDef",
1656
1393
  {
1657
- "ClientIP": str,
1658
- "Country": str,
1659
- "URI": str,
1660
- "Method": str,
1661
- "HTTPVersion": str,
1662
- "Headers": List[HTTPHeaderTypeDef],
1394
+ "ClientIP": NotRequired[str],
1395
+ "Country": NotRequired[str],
1396
+ "URI": NotRequired[str],
1397
+ "Method": NotRequired[str],
1398
+ "HTTPVersion": NotRequired[str],
1399
+ "Headers": NotRequired[List[HTTPHeaderTypeDef]],
1663
1400
  },
1664
- total=False,
1665
1401
  )
1666
1402
 
1667
- _RequiredIPSetTypeDef = TypedDict(
1668
- "_RequiredIPSetTypeDef",
1403
+ IPSetTypeDef = TypedDict(
1404
+ "IPSetTypeDef",
1669
1405
  {
1670
1406
  "IPSetId": str,
1671
1407
  "IPSetDescriptors": List[IPSetDescriptorTypeDef],
1408
+ "Name": NotRequired[str],
1672
1409
  },
1673
1410
  )
1674
- _OptionalIPSetTypeDef = TypedDict(
1675
- "_OptionalIPSetTypeDef",
1676
- {
1677
- "Name": str,
1678
- },
1679
- total=False,
1680
- )
1681
-
1682
-
1683
- class IPSetTypeDef(_RequiredIPSetTypeDef, _OptionalIPSetTypeDef):
1684
- pass
1685
-
1686
1411
 
1687
1412
  IPSetUpdateTypeDef = TypedDict(
1688
1413
  "IPSetUpdateTypeDef",
@@ -1782,49 +1507,27 @@ ListXssMatchSetsResponseTypeDef = TypedDict(
1782
1507
  },
1783
1508
  )
1784
1509
 
1785
- _RequiredRateBasedRuleTypeDef = TypedDict(
1786
- "_RequiredRateBasedRuleTypeDef",
1510
+ RateBasedRuleTypeDef = TypedDict(
1511
+ "RateBasedRuleTypeDef",
1787
1512
  {
1788
1513
  "RuleId": str,
1789
1514
  "MatchPredicates": List[PredicateTypeDef],
1790
1515
  "RateKey": Literal["IP"],
1791
1516
  "RateLimit": int,
1517
+ "Name": NotRequired[str],
1518
+ "MetricName": NotRequired[str],
1792
1519
  },
1793
1520
  )
1794
- _OptionalRateBasedRuleTypeDef = TypedDict(
1795
- "_OptionalRateBasedRuleTypeDef",
1796
- {
1797
- "Name": str,
1798
- "MetricName": str,
1799
- },
1800
- total=False,
1801
- )
1802
-
1803
-
1804
- class RateBasedRuleTypeDef(_RequiredRateBasedRuleTypeDef, _OptionalRateBasedRuleTypeDef):
1805
- pass
1806
1521
 
1807
-
1808
- _RequiredRuleTypeDef = TypedDict(
1809
- "_RequiredRuleTypeDef",
1522
+ RuleTypeDef = TypedDict(
1523
+ "RuleTypeDef",
1810
1524
  {
1811
1525
  "RuleId": str,
1812
1526
  "Predicates": List[PredicateTypeDef],
1527
+ "Name": NotRequired[str],
1528
+ "MetricName": NotRequired[str],
1813
1529
  },
1814
1530
  )
1815
- _OptionalRuleTypeDef = TypedDict(
1816
- "_OptionalRuleTypeDef",
1817
- {
1818
- "Name": str,
1819
- "MetricName": str,
1820
- },
1821
- total=False,
1822
- )
1823
-
1824
-
1825
- class RuleTypeDef(_RequiredRuleTypeDef, _OptionalRuleTypeDef):
1826
- pass
1827
-
1828
1531
 
1829
1532
  RuleUpdateTypeDef = TypedDict(
1830
1533
  "RuleUpdateTypeDef",
@@ -1843,38 +1546,23 @@ UpdateRegexPatternSetRequestRequestTypeDef = TypedDict(
1843
1546
  },
1844
1547
  )
1845
1548
 
1846
- ListActivatedRulesInRuleGroupResponseTypeDef = TypedDict(
1847
- "ListActivatedRulesInRuleGroupResponseTypeDef",
1549
+ TimeWindowTypeDef = TypedDict(
1550
+ "TimeWindowTypeDef",
1848
1551
  {
1849
- "NextMarker": str,
1850
- "ActivatedRules": List[ActivatedRuleOutputTypeDef],
1851
- "ResponseMetadata": ResponseMetadataTypeDef,
1552
+ "StartTime": TimestampTypeDef,
1553
+ "EndTime": TimestampTypeDef,
1852
1554
  },
1853
1555
  )
1854
1556
 
1855
- _RequiredWebACLTypeDef = TypedDict(
1856
- "_RequiredWebACLTypeDef",
1857
- {
1858
- "WebACLId": str,
1859
- "DefaultAction": WafActionTypeDef,
1860
- "Rules": List[ActivatedRuleOutputTypeDef],
1861
- },
1862
- )
1863
- _OptionalWebACLTypeDef = TypedDict(
1864
- "_OptionalWebACLTypeDef",
1557
+ ListActivatedRulesInRuleGroupResponseTypeDef = TypedDict(
1558
+ "ListActivatedRulesInRuleGroupResponseTypeDef",
1865
1559
  {
1866
- "Name": str,
1867
- "MetricName": str,
1868
- "WebACLArn": str,
1560
+ "NextMarker": str,
1561
+ "ActivatedRules": List[ActivatedRuleTypeDef],
1562
+ "ResponseMetadata": ResponseMetadataTypeDef,
1869
1563
  },
1870
- total=False,
1871
1564
  )
1872
1565
 
1873
-
1874
- class WebACLTypeDef(_RequiredWebACLTypeDef, _OptionalWebACLTypeDef):
1875
- pass
1876
-
1877
-
1878
1566
  RuleGroupUpdateTypeDef = TypedDict(
1879
1567
  "RuleGroupUpdateTypeDef",
1880
1568
  {
@@ -1883,6 +1571,18 @@ RuleGroupUpdateTypeDef = TypedDict(
1883
1571
  },
1884
1572
  )
1885
1573
 
1574
+ WebACLTypeDef = TypedDict(
1575
+ "WebACLTypeDef",
1576
+ {
1577
+ "WebACLId": str,
1578
+ "DefaultAction": WafActionTypeDef,
1579
+ "Rules": List[ActivatedRuleTypeDef],
1580
+ "Name": NotRequired[str],
1581
+ "MetricName": NotRequired[str],
1582
+ "WebACLArn": NotRequired[str],
1583
+ },
1584
+ )
1585
+
1886
1586
  WebACLUpdateTypeDef = TypedDict(
1887
1587
  "WebACLUpdateTypeDef",
1888
1588
  {
@@ -1891,26 +1591,15 @@ WebACLUpdateTypeDef = TypedDict(
1891
1591
  },
1892
1592
  )
1893
1593
 
1894
- _RequiredByteMatchSetTypeDef = TypedDict(
1895
- "_RequiredByteMatchSetTypeDef",
1594
+ ByteMatchSetTypeDef = TypedDict(
1595
+ "ByteMatchSetTypeDef",
1896
1596
  {
1897
1597
  "ByteMatchSetId": str,
1898
- "ByteMatchTuples": List[ByteMatchTupleOutputTypeDef],
1899
- },
1900
- )
1901
- _OptionalByteMatchSetTypeDef = TypedDict(
1902
- "_OptionalByteMatchSetTypeDef",
1903
- {
1904
- "Name": str,
1598
+ "ByteMatchTuples": List[ByteMatchTupleTypeDef],
1599
+ "Name": NotRequired[str],
1905
1600
  },
1906
- total=False,
1907
1601
  )
1908
1602
 
1909
-
1910
- class ByteMatchSetTypeDef(_RequiredByteMatchSetTypeDef, _OptionalByteMatchSetTypeDef):
1911
- pass
1912
-
1913
-
1914
1603
  ByteMatchSetUpdateTypeDef = TypedDict(
1915
1604
  "ByteMatchSetUpdateTypeDef",
1916
1605
  {
@@ -1922,7 +1611,7 @@ ByteMatchSetUpdateTypeDef = TypedDict(
1922
1611
  GetLoggingConfigurationResponseTypeDef = TypedDict(
1923
1612
  "GetLoggingConfigurationResponseTypeDef",
1924
1613
  {
1925
- "LoggingConfiguration": LoggingConfigurationOutputTypeDef,
1614
+ "LoggingConfiguration": LoggingConfigurationTypeDef,
1926
1615
  "ResponseMetadata": ResponseMetadataTypeDef,
1927
1616
  },
1928
1617
  )
@@ -1930,35 +1619,34 @@ GetLoggingConfigurationResponseTypeDef = TypedDict(
1930
1619
  ListLoggingConfigurationsResponseTypeDef = TypedDict(
1931
1620
  "ListLoggingConfigurationsResponseTypeDef",
1932
1621
  {
1933
- "LoggingConfigurations": List[LoggingConfigurationOutputTypeDef],
1622
+ "LoggingConfigurations": List[LoggingConfigurationTypeDef],
1934
1623
  "NextMarker": str,
1935
1624
  "ResponseMetadata": ResponseMetadataTypeDef,
1936
1625
  },
1937
1626
  )
1938
1627
 
1939
- PutLoggingConfigurationResponseTypeDef = TypedDict(
1940
- "PutLoggingConfigurationResponseTypeDef",
1628
+ PutLoggingConfigurationRequestRequestTypeDef = TypedDict(
1629
+ "PutLoggingConfigurationRequestRequestTypeDef",
1941
1630
  {
1942
- "LoggingConfiguration": LoggingConfigurationOutputTypeDef,
1943
- "ResponseMetadata": ResponseMetadataTypeDef,
1631
+ "LoggingConfiguration": LoggingConfigurationTypeDef,
1944
1632
  },
1945
1633
  )
1946
1634
 
1947
- PutLoggingConfigurationRequestRequestTypeDef = TypedDict(
1948
- "PutLoggingConfigurationRequestRequestTypeDef",
1635
+ PutLoggingConfigurationResponseTypeDef = TypedDict(
1636
+ "PutLoggingConfigurationResponseTypeDef",
1949
1637
  {
1950
1638
  "LoggingConfiguration": LoggingConfigurationTypeDef,
1639
+ "ResponseMetadata": ResponseMetadataTypeDef,
1951
1640
  },
1952
1641
  )
1953
1642
 
1954
1643
  RegexMatchSetTypeDef = TypedDict(
1955
1644
  "RegexMatchSetTypeDef",
1956
1645
  {
1957
- "RegexMatchSetId": str,
1958
- "Name": str,
1959
- "RegexMatchTuples": List[RegexMatchTupleTypeDef],
1646
+ "RegexMatchSetId": NotRequired[str],
1647
+ "Name": NotRequired[str],
1648
+ "RegexMatchTuples": NotRequired[List[RegexMatchTupleTypeDef]],
1960
1649
  },
1961
- total=False,
1962
1650
  )
1963
1651
 
1964
1652
  RegexMatchSetUpdateTypeDef = TypedDict(
@@ -1969,27 +1657,14 @@ RegexMatchSetUpdateTypeDef = TypedDict(
1969
1657
  },
1970
1658
  )
1971
1659
 
1972
- _RequiredSizeConstraintSetTypeDef = TypedDict(
1973
- "_RequiredSizeConstraintSetTypeDef",
1660
+ SizeConstraintSetTypeDef = TypedDict(
1661
+ "SizeConstraintSetTypeDef",
1974
1662
  {
1975
1663
  "SizeConstraintSetId": str,
1976
1664
  "SizeConstraints": List[SizeConstraintTypeDef],
1665
+ "Name": NotRequired[str],
1977
1666
  },
1978
1667
  )
1979
- _OptionalSizeConstraintSetTypeDef = TypedDict(
1980
- "_OptionalSizeConstraintSetTypeDef",
1981
- {
1982
- "Name": str,
1983
- },
1984
- total=False,
1985
- )
1986
-
1987
-
1988
- class SizeConstraintSetTypeDef(
1989
- _RequiredSizeConstraintSetTypeDef, _OptionalSizeConstraintSetTypeDef
1990
- ):
1991
- pass
1992
-
1993
1668
 
1994
1669
  SizeConstraintSetUpdateTypeDef = TypedDict(
1995
1670
  "SizeConstraintSetUpdateTypeDef",
@@ -1999,27 +1674,14 @@ SizeConstraintSetUpdateTypeDef = TypedDict(
1999
1674
  },
2000
1675
  )
2001
1676
 
2002
- _RequiredSqlInjectionMatchSetTypeDef = TypedDict(
2003
- "_RequiredSqlInjectionMatchSetTypeDef",
1677
+ SqlInjectionMatchSetTypeDef = TypedDict(
1678
+ "SqlInjectionMatchSetTypeDef",
2004
1679
  {
2005
1680
  "SqlInjectionMatchSetId": str,
2006
1681
  "SqlInjectionMatchTuples": List[SqlInjectionMatchTupleTypeDef],
1682
+ "Name": NotRequired[str],
2007
1683
  },
2008
1684
  )
2009
- _OptionalSqlInjectionMatchSetTypeDef = TypedDict(
2010
- "_OptionalSqlInjectionMatchSetTypeDef",
2011
- {
2012
- "Name": str,
2013
- },
2014
- total=False,
2015
- )
2016
-
2017
-
2018
- class SqlInjectionMatchSetTypeDef(
2019
- _RequiredSqlInjectionMatchSetTypeDef, _OptionalSqlInjectionMatchSetTypeDef
2020
- ):
2021
- pass
2022
-
2023
1685
 
2024
1686
  SqlInjectionMatchSetUpdateTypeDef = TypedDict(
2025
1687
  "SqlInjectionMatchSetUpdateTypeDef",
@@ -2029,25 +1691,14 @@ SqlInjectionMatchSetUpdateTypeDef = TypedDict(
2029
1691
  },
2030
1692
  )
2031
1693
 
2032
- _RequiredXssMatchSetTypeDef = TypedDict(
2033
- "_RequiredXssMatchSetTypeDef",
1694
+ XssMatchSetTypeDef = TypedDict(
1695
+ "XssMatchSetTypeDef",
2034
1696
  {
2035
1697
  "XssMatchSetId": str,
2036
1698
  "XssMatchTuples": List[XssMatchTupleTypeDef],
1699
+ "Name": NotRequired[str],
2037
1700
  },
2038
1701
  )
2039
- _OptionalXssMatchSetTypeDef = TypedDict(
2040
- "_OptionalXssMatchSetTypeDef",
2041
- {
2042
- "Name": str,
2043
- },
2044
- total=False,
2045
- )
2046
-
2047
-
2048
- class XssMatchSetTypeDef(_RequiredXssMatchSetTypeDef, _OptionalXssMatchSetTypeDef):
2049
- pass
2050
-
2051
1702
 
2052
1703
  XssMatchSetUpdateTypeDef = TypedDict(
2053
1704
  "XssMatchSetUpdateTypeDef",
@@ -2092,29 +1743,16 @@ UpdateGeoMatchSetRequestRequestTypeDef = TypedDict(
2092
1743
  },
2093
1744
  )
2094
1745
 
2095
- _RequiredSampledHTTPRequestTypeDef = TypedDict(
2096
- "_RequiredSampledHTTPRequestTypeDef",
1746
+ SampledHTTPRequestTypeDef = TypedDict(
1747
+ "SampledHTTPRequestTypeDef",
2097
1748
  {
2098
1749
  "Request": HTTPRequestTypeDef,
2099
1750
  "Weight": int,
1751
+ "Timestamp": NotRequired[datetime],
1752
+ "Action": NotRequired[str],
1753
+ "RuleWithinRuleGroup": NotRequired[str],
2100
1754
  },
2101
1755
  )
2102
- _OptionalSampledHTTPRequestTypeDef = TypedDict(
2103
- "_OptionalSampledHTTPRequestTypeDef",
2104
- {
2105
- "Timestamp": datetime,
2106
- "Action": str,
2107
- "RuleWithinRuleGroup": str,
2108
- },
2109
- total=False,
2110
- )
2111
-
2112
-
2113
- class SampledHTTPRequestTypeDef(
2114
- _RequiredSampledHTTPRequestTypeDef, _OptionalSampledHTTPRequestTypeDef
2115
- ):
2116
- pass
2117
-
2118
1756
 
2119
1757
  CreateIPSetResponseTypeDef = TypedDict(
2120
1758
  "CreateIPSetResponseTypeDef",
@@ -2195,6 +1833,25 @@ UpdateRuleRequestRequestTypeDef = TypedDict(
2195
1833
  },
2196
1834
  )
2197
1835
 
1836
+ GetSampledRequestsRequestRequestTypeDef = TypedDict(
1837
+ "GetSampledRequestsRequestRequestTypeDef",
1838
+ {
1839
+ "WebAclId": str,
1840
+ "RuleId": str,
1841
+ "TimeWindow": TimeWindowTypeDef,
1842
+ "MaxItems": int,
1843
+ },
1844
+ )
1845
+
1846
+ UpdateRuleGroupRequestRequestTypeDef = TypedDict(
1847
+ "UpdateRuleGroupRequestRequestTypeDef",
1848
+ {
1849
+ "RuleGroupId": str,
1850
+ "Updates": Sequence[RuleGroupUpdateTypeDef],
1851
+ "ChangeToken": str,
1852
+ },
1853
+ )
1854
+
2198
1855
  CreateWebACLResponseTypeDef = TypedDict(
2199
1856
  "CreateWebACLResponseTypeDef",
2200
1857
  {
@@ -2212,37 +1869,15 @@ GetWebACLResponseTypeDef = TypedDict(
2212
1869
  },
2213
1870
  )
2214
1871
 
2215
- UpdateRuleGroupRequestRequestTypeDef = TypedDict(
2216
- "UpdateRuleGroupRequestRequestTypeDef",
2217
- {
2218
- "RuleGroupId": str,
2219
- "Updates": Sequence[RuleGroupUpdateTypeDef],
2220
- "ChangeToken": str,
2221
- },
2222
- )
2223
-
2224
- _RequiredUpdateWebACLRequestRequestTypeDef = TypedDict(
2225
- "_RequiredUpdateWebACLRequestRequestTypeDef",
1872
+ UpdateWebACLRequestRequestTypeDef = TypedDict(
1873
+ "UpdateWebACLRequestRequestTypeDef",
2226
1874
  {
2227
1875
  "WebACLId": str,
2228
1876
  "ChangeToken": str,
1877
+ "Updates": NotRequired[Sequence[WebACLUpdateTypeDef]],
1878
+ "DefaultAction": NotRequired[WafActionTypeDef],
2229
1879
  },
2230
1880
  )
2231
- _OptionalUpdateWebACLRequestRequestTypeDef = TypedDict(
2232
- "_OptionalUpdateWebACLRequestRequestTypeDef",
2233
- {
2234
- "Updates": Sequence[WebACLUpdateTypeDef],
2235
- "DefaultAction": WafActionTypeDef,
2236
- },
2237
- total=False,
2238
- )
2239
-
2240
-
2241
- class UpdateWebACLRequestRequestTypeDef(
2242
- _RequiredUpdateWebACLRequestRequestTypeDef, _OptionalUpdateWebACLRequestRequestTypeDef
2243
- ):
2244
- pass
2245
-
2246
1881
 
2247
1882
  CreateByteMatchSetResponseTypeDef = TypedDict(
2248
1883
  "CreateByteMatchSetResponseTypeDef",
@@ -2379,7 +2014,7 @@ GetSampledRequestsResponseTypeDef = TypedDict(
2379
2014
  {
2380
2015
  "SampledRequests": List[SampledHTTPRequestTypeDef],
2381
2016
  "PopulationSize": int,
2382
- "TimeWindow": TimeWindowOutputTypeDef,
2017
+ "TimeWindow": TimeWindowTypeDef,
2383
2018
  "ResponseMetadata": ResponseMetadataTypeDef,
2384
2019
  },
2385
2020
  )