mypy-boto3-waf-regional 1.34.153__py3-none-any.whl → 1.35.93__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.

@@ -1,7 +1,7 @@
1
1
  """
2
2
  Type annotations for waf-regional service type definitions.
3
3
 
4
- [Open documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_waf_regional/type_defs/)
4
+ [Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_waf_regional/type_defs/)
5
5
 
6
6
  Usage::
7
7
 
@@ -10,11 +10,15 @@ Usage::
10
10
 
11
11
  data: ExcludedRuleTypeDef = ...
12
12
  ```
13
+
14
+ Copyright 2025 Vlad Emelianov
13
15
  """
14
16
 
17
+ from __future__ import annotations
18
+
15
19
  import sys
16
20
  from datetime import datetime
17
- from typing import IO, Any, Dict, List, Sequence, Union
21
+ from typing import IO, Any, Union
18
22
 
19
23
  from botocore.response import StreamingBody
20
24
 
@@ -34,246 +38,244 @@ from .literals import (
34
38
  WafRuleTypeType,
35
39
  )
36
40
 
37
- if sys.version_info >= (3, 12):
38
- from typing import Literal
39
- else:
40
- from typing_extensions import Literal
41
- if sys.version_info >= (3, 12):
42
- from typing import NotRequired
41
+ if sys.version_info >= (3, 9):
42
+ from builtins import dict as Dict
43
+ from builtins import list as List
44
+ from collections.abc import Sequence
43
45
  else:
44
- from typing_extensions import NotRequired
46
+ from typing import Dict, List, Sequence
45
47
  if sys.version_info >= (3, 12):
46
- from typing import TypedDict
48
+ from typing import Literal, NotRequired, TypedDict
47
49
  else:
48
- from typing_extensions import TypedDict
50
+ from typing_extensions import Literal, NotRequired, TypedDict
51
+
49
52
 
50
53
  __all__ = (
51
- "ExcludedRuleTypeDef",
52
- "WafActionTypeDef",
53
- "WafOverrideActionTypeDef",
54
+ "ActivatedRuleOutputTypeDef",
55
+ "ActivatedRuleTypeDef",
56
+ "ActivatedRuleUnionTypeDef",
54
57
  "AssociateWebACLRequestRequestTypeDef",
55
58
  "BlobTypeDef",
56
59
  "ByteMatchSetSummaryTypeDef",
57
- "FieldToMatchTypeDef",
60
+ "ByteMatchSetTypeDef",
61
+ "ByteMatchSetUpdateTypeDef",
62
+ "ByteMatchTupleOutputTypeDef",
63
+ "ByteMatchTupleTypeDef",
64
+ "ByteMatchTupleUnionTypeDef",
58
65
  "CreateByteMatchSetRequestRequestTypeDef",
59
- "ResponseMetadataTypeDef",
66
+ "CreateByteMatchSetResponseTypeDef",
60
67
  "CreateGeoMatchSetRequestRequestTypeDef",
68
+ "CreateGeoMatchSetResponseTypeDef",
61
69
  "CreateIPSetRequestRequestTypeDef",
62
- "TagTypeDef",
70
+ "CreateIPSetResponseTypeDef",
71
+ "CreateRateBasedRuleRequestRequestTypeDef",
72
+ "CreateRateBasedRuleResponseTypeDef",
63
73
  "CreateRegexMatchSetRequestRequestTypeDef",
74
+ "CreateRegexMatchSetResponseTypeDef",
64
75
  "CreateRegexPatternSetRequestRequestTypeDef",
65
- "RegexPatternSetTypeDef",
66
- "RuleGroupTypeDef",
76
+ "CreateRegexPatternSetResponseTypeDef",
77
+ "CreateRuleGroupRequestRequestTypeDef",
78
+ "CreateRuleGroupResponseTypeDef",
79
+ "CreateRuleRequestRequestTypeDef",
80
+ "CreateRuleResponseTypeDef",
67
81
  "CreateSizeConstraintSetRequestRequestTypeDef",
82
+ "CreateSizeConstraintSetResponseTypeDef",
68
83
  "CreateSqlInjectionMatchSetRequestRequestTypeDef",
84
+ "CreateSqlInjectionMatchSetResponseTypeDef",
69
85
  "CreateWebACLMigrationStackRequestRequestTypeDef",
86
+ "CreateWebACLMigrationStackResponseTypeDef",
87
+ "CreateWebACLRequestRequestTypeDef",
88
+ "CreateWebACLResponseTypeDef",
70
89
  "CreateXssMatchSetRequestRequestTypeDef",
90
+ "CreateXssMatchSetResponseTypeDef",
71
91
  "DeleteByteMatchSetRequestRequestTypeDef",
92
+ "DeleteByteMatchSetResponseTypeDef",
72
93
  "DeleteGeoMatchSetRequestRequestTypeDef",
94
+ "DeleteGeoMatchSetResponseTypeDef",
73
95
  "DeleteIPSetRequestRequestTypeDef",
96
+ "DeleteIPSetResponseTypeDef",
74
97
  "DeleteLoggingConfigurationRequestRequestTypeDef",
75
98
  "DeletePermissionPolicyRequestRequestTypeDef",
76
99
  "DeleteRateBasedRuleRequestRequestTypeDef",
100
+ "DeleteRateBasedRuleResponseTypeDef",
77
101
  "DeleteRegexMatchSetRequestRequestTypeDef",
102
+ "DeleteRegexMatchSetResponseTypeDef",
78
103
  "DeleteRegexPatternSetRequestRequestTypeDef",
104
+ "DeleteRegexPatternSetResponseTypeDef",
79
105
  "DeleteRuleGroupRequestRequestTypeDef",
106
+ "DeleteRuleGroupResponseTypeDef",
80
107
  "DeleteRuleRequestRequestTypeDef",
108
+ "DeleteRuleResponseTypeDef",
81
109
  "DeleteSizeConstraintSetRequestRequestTypeDef",
110
+ "DeleteSizeConstraintSetResponseTypeDef",
82
111
  "DeleteSqlInjectionMatchSetRequestRequestTypeDef",
112
+ "DeleteSqlInjectionMatchSetResponseTypeDef",
83
113
  "DeleteWebACLRequestRequestTypeDef",
114
+ "DeleteWebACLResponseTypeDef",
84
115
  "DeleteXssMatchSetRequestRequestTypeDef",
116
+ "DeleteXssMatchSetResponseTypeDef",
85
117
  "DisassociateWebACLRequestRequestTypeDef",
118
+ "ExcludedRuleTypeDef",
119
+ "FieldToMatchTypeDef",
86
120
  "GeoMatchConstraintTypeDef",
87
121
  "GeoMatchSetSummaryTypeDef",
122
+ "GeoMatchSetTypeDef",
123
+ "GeoMatchSetUpdateTypeDef",
88
124
  "GetByteMatchSetRequestRequestTypeDef",
125
+ "GetByteMatchSetResponseTypeDef",
126
+ "GetChangeTokenResponseTypeDef",
89
127
  "GetChangeTokenStatusRequestRequestTypeDef",
128
+ "GetChangeTokenStatusResponseTypeDef",
90
129
  "GetGeoMatchSetRequestRequestTypeDef",
130
+ "GetGeoMatchSetResponseTypeDef",
91
131
  "GetIPSetRequestRequestTypeDef",
132
+ "GetIPSetResponseTypeDef",
92
133
  "GetLoggingConfigurationRequestRequestTypeDef",
134
+ "GetLoggingConfigurationResponseTypeDef",
93
135
  "GetPermissionPolicyRequestRequestTypeDef",
136
+ "GetPermissionPolicyResponseTypeDef",
94
137
  "GetRateBasedRuleManagedKeysRequestRequestTypeDef",
138
+ "GetRateBasedRuleManagedKeysResponseTypeDef",
95
139
  "GetRateBasedRuleRequestRequestTypeDef",
140
+ "GetRateBasedRuleResponseTypeDef",
96
141
  "GetRegexMatchSetRequestRequestTypeDef",
142
+ "GetRegexMatchSetResponseTypeDef",
97
143
  "GetRegexPatternSetRequestRequestTypeDef",
144
+ "GetRegexPatternSetResponseTypeDef",
98
145
  "GetRuleGroupRequestRequestTypeDef",
146
+ "GetRuleGroupResponseTypeDef",
99
147
  "GetRuleRequestRequestTypeDef",
100
- "TimeWindowOutputTypeDef",
148
+ "GetRuleResponseTypeDef",
149
+ "GetSampledRequestsRequestRequestTypeDef",
150
+ "GetSampledRequestsResponseTypeDef",
101
151
  "GetSizeConstraintSetRequestRequestTypeDef",
152
+ "GetSizeConstraintSetResponseTypeDef",
102
153
  "GetSqlInjectionMatchSetRequestRequestTypeDef",
154
+ "GetSqlInjectionMatchSetResponseTypeDef",
103
155
  "GetWebACLForResourceRequestRequestTypeDef",
104
- "WebACLSummaryTypeDef",
156
+ "GetWebACLForResourceResponseTypeDef",
105
157
  "GetWebACLRequestRequestTypeDef",
158
+ "GetWebACLResponseTypeDef",
106
159
  "GetXssMatchSetRequestRequestTypeDef",
160
+ "GetXssMatchSetResponseTypeDef",
107
161
  "HTTPHeaderTypeDef",
162
+ "HTTPRequestTypeDef",
108
163
  "IPSetDescriptorTypeDef",
109
164
  "IPSetSummaryTypeDef",
165
+ "IPSetTypeDef",
166
+ "IPSetUpdateTypeDef",
110
167
  "ListActivatedRulesInRuleGroupRequestRequestTypeDef",
168
+ "ListActivatedRulesInRuleGroupResponseTypeDef",
111
169
  "ListByteMatchSetsRequestRequestTypeDef",
170
+ "ListByteMatchSetsResponseTypeDef",
112
171
  "ListGeoMatchSetsRequestRequestTypeDef",
172
+ "ListGeoMatchSetsResponseTypeDef",
113
173
  "ListIPSetsRequestRequestTypeDef",
174
+ "ListIPSetsResponseTypeDef",
114
175
  "ListLoggingConfigurationsRequestRequestTypeDef",
176
+ "ListLoggingConfigurationsResponseTypeDef",
115
177
  "ListRateBasedRulesRequestRequestTypeDef",
116
- "RuleSummaryTypeDef",
178
+ "ListRateBasedRulesResponseTypeDef",
117
179
  "ListRegexMatchSetsRequestRequestTypeDef",
118
- "RegexMatchSetSummaryTypeDef",
180
+ "ListRegexMatchSetsResponseTypeDef",
119
181
  "ListRegexPatternSetsRequestRequestTypeDef",
120
- "RegexPatternSetSummaryTypeDef",
182
+ "ListRegexPatternSetsResponseTypeDef",
121
183
  "ListResourcesForWebACLRequestRequestTypeDef",
184
+ "ListResourcesForWebACLResponseTypeDef",
122
185
  "ListRuleGroupsRequestRequestTypeDef",
123
- "RuleGroupSummaryTypeDef",
186
+ "ListRuleGroupsResponseTypeDef",
124
187
  "ListRulesRequestRequestTypeDef",
188
+ "ListRulesResponseTypeDef",
125
189
  "ListSizeConstraintSetsRequestRequestTypeDef",
126
- "SizeConstraintSetSummaryTypeDef",
190
+ "ListSizeConstraintSetsResponseTypeDef",
127
191
  "ListSqlInjectionMatchSetsRequestRequestTypeDef",
128
- "SqlInjectionMatchSetSummaryTypeDef",
192
+ "ListSqlInjectionMatchSetsResponseTypeDef",
129
193
  "ListSubscribedRuleGroupsRequestRequestTypeDef",
130
- "SubscribedRuleGroupSummaryTypeDef",
194
+ "ListSubscribedRuleGroupsResponseTypeDef",
131
195
  "ListTagsForResourceRequestRequestTypeDef",
196
+ "ListTagsForResourceResponseTypeDef",
132
197
  "ListWebACLsRequestRequestTypeDef",
198
+ "ListWebACLsResponseTypeDef",
133
199
  "ListXssMatchSetsRequestRequestTypeDef",
134
- "XssMatchSetSummaryTypeDef",
135
- "PredicateTypeDef",
136
- "PutPermissionPolicyRequestRequestTypeDef",
137
- "RegexPatternSetUpdateTypeDef",
138
- "TimestampTypeDef",
139
- "UntagResourceRequestRequestTypeDef",
140
- "ActivatedRuleOutputTypeDef",
141
- "ActivatedRuleTypeDef",
142
- "ByteMatchTupleOutputTypeDef",
143
- "ByteMatchTupleTypeDef",
200
+ "ListXssMatchSetsResponseTypeDef",
144
201
  "LoggingConfigurationOutputTypeDef",
145
202
  "LoggingConfigurationTypeDef",
203
+ "PredicateTypeDef",
204
+ "PutLoggingConfigurationRequestRequestTypeDef",
205
+ "PutLoggingConfigurationResponseTypeDef",
206
+ "PutPermissionPolicyRequestRequestTypeDef",
207
+ "RateBasedRuleTypeDef",
208
+ "RegexMatchSetSummaryTypeDef",
209
+ "RegexMatchSetTypeDef",
210
+ "RegexMatchSetUpdateTypeDef",
146
211
  "RegexMatchTupleTypeDef",
212
+ "RegexPatternSetSummaryTypeDef",
213
+ "RegexPatternSetTypeDef",
214
+ "RegexPatternSetUpdateTypeDef",
215
+ "ResponseMetadataTypeDef",
216
+ "RuleGroupSummaryTypeDef",
217
+ "RuleGroupTypeDef",
218
+ "RuleGroupUpdateTypeDef",
219
+ "RuleSummaryTypeDef",
220
+ "RuleTypeDef",
221
+ "RuleUpdateTypeDef",
222
+ "SampledHTTPRequestTypeDef",
223
+ "SizeConstraintSetSummaryTypeDef",
224
+ "SizeConstraintSetTypeDef",
225
+ "SizeConstraintSetUpdateTypeDef",
147
226
  "SizeConstraintTypeDef",
227
+ "SqlInjectionMatchSetSummaryTypeDef",
228
+ "SqlInjectionMatchSetTypeDef",
229
+ "SqlInjectionMatchSetUpdateTypeDef",
148
230
  "SqlInjectionMatchTupleTypeDef",
149
- "XssMatchTupleTypeDef",
150
- "CreateWebACLMigrationStackResponseTypeDef",
151
- "DeleteByteMatchSetResponseTypeDef",
152
- "DeleteGeoMatchSetResponseTypeDef",
153
- "DeleteIPSetResponseTypeDef",
154
- "DeleteRateBasedRuleResponseTypeDef",
155
- "DeleteRegexMatchSetResponseTypeDef",
156
- "DeleteRegexPatternSetResponseTypeDef",
157
- "DeleteRuleGroupResponseTypeDef",
158
- "DeleteRuleResponseTypeDef",
159
- "DeleteSizeConstraintSetResponseTypeDef",
160
- "DeleteSqlInjectionMatchSetResponseTypeDef",
161
- "DeleteWebACLResponseTypeDef",
162
- "DeleteXssMatchSetResponseTypeDef",
163
- "GetChangeTokenResponseTypeDef",
164
- "GetChangeTokenStatusResponseTypeDef",
165
- "GetPermissionPolicyResponseTypeDef",
166
- "GetRateBasedRuleManagedKeysResponseTypeDef",
167
- "ListByteMatchSetsResponseTypeDef",
168
- "ListResourcesForWebACLResponseTypeDef",
231
+ "SubscribedRuleGroupSummaryTypeDef",
232
+ "TagInfoForResourceTypeDef",
233
+ "TagResourceRequestRequestTypeDef",
234
+ "TagTypeDef",
235
+ "TimeWindowOutputTypeDef",
236
+ "TimeWindowTypeDef",
237
+ "TimestampTypeDef",
238
+ "UntagResourceRequestRequestTypeDef",
239
+ "UpdateByteMatchSetRequestRequestTypeDef",
169
240
  "UpdateByteMatchSetResponseTypeDef",
241
+ "UpdateGeoMatchSetRequestRequestTypeDef",
170
242
  "UpdateGeoMatchSetResponseTypeDef",
243
+ "UpdateIPSetRequestRequestTypeDef",
171
244
  "UpdateIPSetResponseTypeDef",
245
+ "UpdateRateBasedRuleRequestRequestTypeDef",
172
246
  "UpdateRateBasedRuleResponseTypeDef",
247
+ "UpdateRegexMatchSetRequestRequestTypeDef",
173
248
  "UpdateRegexMatchSetResponseTypeDef",
249
+ "UpdateRegexPatternSetRequestRequestTypeDef",
174
250
  "UpdateRegexPatternSetResponseTypeDef",
251
+ "UpdateRuleGroupRequestRequestTypeDef",
175
252
  "UpdateRuleGroupResponseTypeDef",
253
+ "UpdateRuleRequestRequestTypeDef",
176
254
  "UpdateRuleResponseTypeDef",
255
+ "UpdateSizeConstraintSetRequestRequestTypeDef",
177
256
  "UpdateSizeConstraintSetResponseTypeDef",
257
+ "UpdateSqlInjectionMatchSetRequestRequestTypeDef",
178
258
  "UpdateSqlInjectionMatchSetResponseTypeDef",
259
+ "UpdateWebACLRequestRequestTypeDef",
179
260
  "UpdateWebACLResponseTypeDef",
261
+ "UpdateXssMatchSetRequestRequestTypeDef",
180
262
  "UpdateXssMatchSetResponseTypeDef",
181
- "CreateRateBasedRuleRequestRequestTypeDef",
182
- "CreateRuleGroupRequestRequestTypeDef",
183
- "CreateRuleRequestRequestTypeDef",
184
- "CreateWebACLRequestRequestTypeDef",
185
- "TagInfoForResourceTypeDef",
186
- "TagResourceRequestRequestTypeDef",
187
- "CreateRegexPatternSetResponseTypeDef",
188
- "GetRegexPatternSetResponseTypeDef",
189
- "CreateRuleGroupResponseTypeDef",
190
- "GetRuleGroupResponseTypeDef",
191
- "GeoMatchSetTypeDef",
192
- "GeoMatchSetUpdateTypeDef",
193
- "ListGeoMatchSetsResponseTypeDef",
194
- "GetWebACLForResourceResponseTypeDef",
195
- "ListWebACLsResponseTypeDef",
196
- "HTTPRequestTypeDef",
197
- "IPSetTypeDef",
198
- "IPSetUpdateTypeDef",
199
- "ListIPSetsResponseTypeDef",
200
- "ListRateBasedRulesResponseTypeDef",
201
- "ListRulesResponseTypeDef",
202
- "ListRegexMatchSetsResponseTypeDef",
203
- "ListRegexPatternSetsResponseTypeDef",
204
- "ListRuleGroupsResponseTypeDef",
205
- "ListSizeConstraintSetsResponseTypeDef",
206
- "ListSqlInjectionMatchSetsResponseTypeDef",
207
- "ListSubscribedRuleGroupsResponseTypeDef",
208
- "ListXssMatchSetsResponseTypeDef",
209
- "RateBasedRuleTypeDef",
210
- "RuleTypeDef",
211
- "RuleUpdateTypeDef",
212
- "UpdateRegexPatternSetRequestRequestTypeDef",
213
- "TimeWindowTypeDef",
214
- "ListActivatedRulesInRuleGroupResponseTypeDef",
263
+ "WafActionTypeDef",
264
+ "WafOverrideActionTypeDef",
265
+ "WebACLSummaryTypeDef",
215
266
  "WebACLTypeDef",
216
- "RuleGroupUpdateTypeDef",
217
267
  "WebACLUpdateTypeDef",
218
- "ByteMatchSetTypeDef",
219
- "ByteMatchSetUpdateTypeDef",
220
- "GetLoggingConfigurationResponseTypeDef",
221
- "ListLoggingConfigurationsResponseTypeDef",
222
- "PutLoggingConfigurationResponseTypeDef",
223
- "LoggingConfigurationUnionTypeDef",
224
- "PutLoggingConfigurationRequestRequestTypeDef",
225
- "RegexMatchSetTypeDef",
226
- "RegexMatchSetUpdateTypeDef",
227
- "SizeConstraintSetTypeDef",
228
- "SizeConstraintSetUpdateTypeDef",
229
- "SqlInjectionMatchSetTypeDef",
230
- "SqlInjectionMatchSetUpdateTypeDef",
268
+ "XssMatchSetSummaryTypeDef",
231
269
  "XssMatchSetTypeDef",
232
270
  "XssMatchSetUpdateTypeDef",
233
- "ListTagsForResourceResponseTypeDef",
234
- "CreateGeoMatchSetResponseTypeDef",
235
- "GetGeoMatchSetResponseTypeDef",
236
- "UpdateGeoMatchSetRequestRequestTypeDef",
237
- "SampledHTTPRequestTypeDef",
238
- "CreateIPSetResponseTypeDef",
239
- "GetIPSetResponseTypeDef",
240
- "UpdateIPSetRequestRequestTypeDef",
241
- "CreateRateBasedRuleResponseTypeDef",
242
- "GetRateBasedRuleResponseTypeDef",
243
- "CreateRuleResponseTypeDef",
244
- "GetRuleResponseTypeDef",
245
- "UpdateRateBasedRuleRequestRequestTypeDef",
246
- "UpdateRuleRequestRequestTypeDef",
247
- "GetSampledRequestsRequestRequestTypeDef",
248
- "TimeWindowUnionTypeDef",
249
- "CreateWebACLResponseTypeDef",
250
- "GetWebACLResponseTypeDef",
251
- "UpdateRuleGroupRequestRequestTypeDef",
252
- "UpdateWebACLRequestRequestTypeDef",
253
- "CreateByteMatchSetResponseTypeDef",
254
- "GetByteMatchSetResponseTypeDef",
255
- "UpdateByteMatchSetRequestRequestTypeDef",
256
- "CreateRegexMatchSetResponseTypeDef",
257
- "GetRegexMatchSetResponseTypeDef",
258
- "UpdateRegexMatchSetRequestRequestTypeDef",
259
- "CreateSizeConstraintSetResponseTypeDef",
260
- "GetSizeConstraintSetResponseTypeDef",
261
- "UpdateSizeConstraintSetRequestRequestTypeDef",
262
- "CreateSqlInjectionMatchSetResponseTypeDef",
263
- "GetSqlInjectionMatchSetResponseTypeDef",
264
- "UpdateSqlInjectionMatchSetRequestRequestTypeDef",
265
- "CreateXssMatchSetResponseTypeDef",
266
- "GetXssMatchSetResponseTypeDef",
267
- "UpdateXssMatchSetRequestRequestTypeDef",
268
- "GetSampledRequestsResponseTypeDef",
271
+ "XssMatchTupleTypeDef",
269
272
  )
270
273
 
271
- ExcludedRuleTypeDef = TypedDict(
272
- "ExcludedRuleTypeDef",
273
- {
274
- "RuleId": str,
275
- },
276
- )
274
+
275
+ class ExcludedRuleTypeDef(TypedDict):
276
+ RuleId: str
277
+
278
+
277
279
  WafActionTypeDef = TypedDict(
278
280
  "WafActionTypeDef",
279
281
  {
@@ -286,21 +288,21 @@ WafOverrideActionTypeDef = TypedDict(
286
288
  "Type": WafOverrideActionTypeType,
287
289
  },
288
290
  )
289
- AssociateWebACLRequestRequestTypeDef = TypedDict(
290
- "AssociateWebACLRequestRequestTypeDef",
291
- {
292
- "WebACLId": str,
293
- "ResourceArn": str,
294
- },
295
- )
291
+
292
+
293
+ class AssociateWebACLRequestRequestTypeDef(TypedDict):
294
+ WebACLId: str
295
+ ResourceArn: str
296
+
297
+
296
298
  BlobTypeDef = Union[str, bytes, IO[Any], StreamingBody]
297
- ByteMatchSetSummaryTypeDef = TypedDict(
298
- "ByteMatchSetSummaryTypeDef",
299
- {
300
- "ByteMatchSetId": str,
301
- "Name": str,
302
- },
303
- )
299
+
300
+
301
+ class ByteMatchSetSummaryTypeDef(TypedDict):
302
+ ByteMatchSetId: str
303
+ Name: str
304
+
305
+
304
306
  FieldToMatchTypeDef = TypedDict(
305
307
  "FieldToMatchTypeDef",
306
308
  {
@@ -308,1553 +310,1159 @@ FieldToMatchTypeDef = TypedDict(
308
310
  "Data": NotRequired[str],
309
311
  },
310
312
  )
311
- CreateByteMatchSetRequestRequestTypeDef = TypedDict(
312
- "CreateByteMatchSetRequestRequestTypeDef",
313
- {
314
- "Name": str,
315
- "ChangeToken": str,
316
- },
317
- )
318
- ResponseMetadataTypeDef = TypedDict(
319
- "ResponseMetadataTypeDef",
320
- {
321
- "RequestId": str,
322
- "HTTPStatusCode": int,
323
- "HTTPHeaders": Dict[str, str],
324
- "RetryAttempts": int,
325
- "HostId": NotRequired[str],
326
- },
327
- )
328
- CreateGeoMatchSetRequestRequestTypeDef = TypedDict(
329
- "CreateGeoMatchSetRequestRequestTypeDef",
330
- {
331
- "Name": str,
332
- "ChangeToken": str,
333
- },
334
- )
335
- CreateIPSetRequestRequestTypeDef = TypedDict(
336
- "CreateIPSetRequestRequestTypeDef",
313
+
314
+
315
+ class CreateByteMatchSetRequestRequestTypeDef(TypedDict):
316
+ Name: str
317
+ ChangeToken: str
318
+
319
+
320
+ class ResponseMetadataTypeDef(TypedDict):
321
+ RequestId: str
322
+ HTTPStatusCode: int
323
+ HTTPHeaders: Dict[str, str]
324
+ RetryAttempts: int
325
+ HostId: NotRequired[str]
326
+
327
+
328
+ class CreateGeoMatchSetRequestRequestTypeDef(TypedDict):
329
+ Name: str
330
+ ChangeToken: str
331
+
332
+
333
+ class CreateIPSetRequestRequestTypeDef(TypedDict):
334
+ Name: str
335
+ ChangeToken: str
336
+
337
+
338
+ class TagTypeDef(TypedDict):
339
+ Key: str
340
+ Value: str
341
+
342
+
343
+ class CreateRegexMatchSetRequestRequestTypeDef(TypedDict):
344
+ Name: str
345
+ ChangeToken: str
346
+
347
+
348
+ class CreateRegexPatternSetRequestRequestTypeDef(TypedDict):
349
+ Name: str
350
+ ChangeToken: str
351
+
352
+
353
+ class RegexPatternSetTypeDef(TypedDict):
354
+ RegexPatternSetId: str
355
+ RegexPatternStrings: List[str]
356
+ Name: NotRequired[str]
357
+
358
+
359
+ class RuleGroupTypeDef(TypedDict):
360
+ RuleGroupId: str
361
+ Name: NotRequired[str]
362
+ MetricName: NotRequired[str]
363
+
364
+
365
+ class CreateSizeConstraintSetRequestRequestTypeDef(TypedDict):
366
+ Name: str
367
+ ChangeToken: str
368
+
369
+
370
+ class CreateSqlInjectionMatchSetRequestRequestTypeDef(TypedDict):
371
+ Name: str
372
+ ChangeToken: str
373
+
374
+
375
+ class CreateWebACLMigrationStackRequestRequestTypeDef(TypedDict):
376
+ WebACLId: str
377
+ S3BucketName: str
378
+ IgnoreUnsupportedType: bool
379
+
380
+
381
+ class CreateXssMatchSetRequestRequestTypeDef(TypedDict):
382
+ Name: str
383
+ ChangeToken: str
384
+
385
+
386
+ class DeleteByteMatchSetRequestRequestTypeDef(TypedDict):
387
+ ByteMatchSetId: str
388
+ ChangeToken: str
389
+
390
+
391
+ class DeleteGeoMatchSetRequestRequestTypeDef(TypedDict):
392
+ GeoMatchSetId: str
393
+ ChangeToken: str
394
+
395
+
396
+ class DeleteIPSetRequestRequestTypeDef(TypedDict):
397
+ IPSetId: str
398
+ ChangeToken: str
399
+
400
+
401
+ class DeleteLoggingConfigurationRequestRequestTypeDef(TypedDict):
402
+ ResourceArn: str
403
+
404
+
405
+ class DeletePermissionPolicyRequestRequestTypeDef(TypedDict):
406
+ ResourceArn: str
407
+
408
+
409
+ class DeleteRateBasedRuleRequestRequestTypeDef(TypedDict):
410
+ RuleId: str
411
+ ChangeToken: str
412
+
413
+
414
+ class DeleteRegexMatchSetRequestRequestTypeDef(TypedDict):
415
+ RegexMatchSetId: str
416
+ ChangeToken: str
417
+
418
+
419
+ class DeleteRegexPatternSetRequestRequestTypeDef(TypedDict):
420
+ RegexPatternSetId: str
421
+ ChangeToken: str
422
+
423
+
424
+ class DeleteRuleGroupRequestRequestTypeDef(TypedDict):
425
+ RuleGroupId: str
426
+ ChangeToken: str
427
+
428
+
429
+ class DeleteRuleRequestRequestTypeDef(TypedDict):
430
+ RuleId: str
431
+ ChangeToken: str
432
+
433
+
434
+ class DeleteSizeConstraintSetRequestRequestTypeDef(TypedDict):
435
+ SizeConstraintSetId: str
436
+ ChangeToken: str
437
+
438
+
439
+ class DeleteSqlInjectionMatchSetRequestRequestTypeDef(TypedDict):
440
+ SqlInjectionMatchSetId: str
441
+ ChangeToken: str
442
+
443
+
444
+ class DeleteWebACLRequestRequestTypeDef(TypedDict):
445
+ WebACLId: str
446
+ ChangeToken: str
447
+
448
+
449
+ class DeleteXssMatchSetRequestRequestTypeDef(TypedDict):
450
+ XssMatchSetId: str
451
+ ChangeToken: str
452
+
453
+
454
+ class DisassociateWebACLRequestRequestTypeDef(TypedDict):
455
+ ResourceArn: str
456
+
457
+
458
+ GeoMatchConstraintTypeDef = TypedDict(
459
+ "GeoMatchConstraintTypeDef",
337
460
  {
338
- "Name": str,
339
- "ChangeToken": str,
461
+ "Type": Literal["Country"],
462
+ "Value": GeoMatchConstraintValueType,
340
463
  },
341
464
  )
342
- TagTypeDef = TypedDict(
343
- "TagTypeDef",
465
+
466
+
467
+ class GeoMatchSetSummaryTypeDef(TypedDict):
468
+ GeoMatchSetId: str
469
+ Name: str
470
+
471
+
472
+ class GetByteMatchSetRequestRequestTypeDef(TypedDict):
473
+ ByteMatchSetId: str
474
+
475
+
476
+ class GetChangeTokenStatusRequestRequestTypeDef(TypedDict):
477
+ ChangeToken: str
478
+
479
+
480
+ class GetGeoMatchSetRequestRequestTypeDef(TypedDict):
481
+ GeoMatchSetId: str
482
+
483
+
484
+ class GetIPSetRequestRequestTypeDef(TypedDict):
485
+ IPSetId: str
486
+
487
+
488
+ class GetLoggingConfigurationRequestRequestTypeDef(TypedDict):
489
+ ResourceArn: str
490
+
491
+
492
+ class GetPermissionPolicyRequestRequestTypeDef(TypedDict):
493
+ ResourceArn: str
494
+
495
+
496
+ class GetRateBasedRuleManagedKeysRequestRequestTypeDef(TypedDict):
497
+ RuleId: str
498
+ NextMarker: NotRequired[str]
499
+
500
+
501
+ class GetRateBasedRuleRequestRequestTypeDef(TypedDict):
502
+ RuleId: str
503
+
504
+
505
+ class GetRegexMatchSetRequestRequestTypeDef(TypedDict):
506
+ RegexMatchSetId: str
507
+
508
+
509
+ class GetRegexPatternSetRequestRequestTypeDef(TypedDict):
510
+ RegexPatternSetId: str
511
+
512
+
513
+ class GetRuleGroupRequestRequestTypeDef(TypedDict):
514
+ RuleGroupId: str
515
+
516
+
517
+ class GetRuleRequestRequestTypeDef(TypedDict):
518
+ RuleId: str
519
+
520
+
521
+ class TimeWindowOutputTypeDef(TypedDict):
522
+ StartTime: datetime
523
+ EndTime: datetime
524
+
525
+
526
+ class GetSizeConstraintSetRequestRequestTypeDef(TypedDict):
527
+ SizeConstraintSetId: str
528
+
529
+
530
+ class GetSqlInjectionMatchSetRequestRequestTypeDef(TypedDict):
531
+ SqlInjectionMatchSetId: str
532
+
533
+
534
+ class GetWebACLForResourceRequestRequestTypeDef(TypedDict):
535
+ ResourceArn: str
536
+
537
+
538
+ class WebACLSummaryTypeDef(TypedDict):
539
+ WebACLId: str
540
+ Name: str
541
+
542
+
543
+ class GetWebACLRequestRequestTypeDef(TypedDict):
544
+ WebACLId: str
545
+
546
+
547
+ class GetXssMatchSetRequestRequestTypeDef(TypedDict):
548
+ XssMatchSetId: str
549
+
550
+
551
+ class HTTPHeaderTypeDef(TypedDict):
552
+ Name: NotRequired[str]
553
+ Value: NotRequired[str]
554
+
555
+
556
+ IPSetDescriptorTypeDef = TypedDict(
557
+ "IPSetDescriptorTypeDef",
344
558
  {
345
- "Key": str,
559
+ "Type": IPSetDescriptorTypeType,
346
560
  "Value": str,
347
561
  },
348
562
  )
349
- CreateRegexMatchSetRequestRequestTypeDef = TypedDict(
350
- "CreateRegexMatchSetRequestRequestTypeDef",
351
- {
352
- "Name": str,
353
- "ChangeToken": str,
354
- },
355
- )
356
- CreateRegexPatternSetRequestRequestTypeDef = TypedDict(
357
- "CreateRegexPatternSetRequestRequestTypeDef",
358
- {
359
- "Name": str,
360
- "ChangeToken": str,
361
- },
362
- )
363
- RegexPatternSetTypeDef = TypedDict(
364
- "RegexPatternSetTypeDef",
365
- {
366
- "RegexPatternSetId": str,
367
- "RegexPatternStrings": List[str],
368
- "Name": NotRequired[str],
369
- },
370
- )
371
- RuleGroupTypeDef = TypedDict(
372
- "RuleGroupTypeDef",
563
+
564
+
565
+ class IPSetSummaryTypeDef(TypedDict):
566
+ IPSetId: str
567
+ Name: str
568
+
569
+
570
+ class ListActivatedRulesInRuleGroupRequestRequestTypeDef(TypedDict):
571
+ RuleGroupId: NotRequired[str]
572
+ NextMarker: NotRequired[str]
573
+ Limit: NotRequired[int]
574
+
575
+
576
+ class ListByteMatchSetsRequestRequestTypeDef(TypedDict):
577
+ NextMarker: NotRequired[str]
578
+ Limit: NotRequired[int]
579
+
580
+
581
+ class ListGeoMatchSetsRequestRequestTypeDef(TypedDict):
582
+ NextMarker: NotRequired[str]
583
+ Limit: NotRequired[int]
584
+
585
+
586
+ class ListIPSetsRequestRequestTypeDef(TypedDict):
587
+ NextMarker: NotRequired[str]
588
+ Limit: NotRequired[int]
589
+
590
+
591
+ class ListLoggingConfigurationsRequestRequestTypeDef(TypedDict):
592
+ NextMarker: NotRequired[str]
593
+ Limit: NotRequired[int]
594
+
595
+
596
+ class ListRateBasedRulesRequestRequestTypeDef(TypedDict):
597
+ NextMarker: NotRequired[str]
598
+ Limit: NotRequired[int]
599
+
600
+
601
+ class RuleSummaryTypeDef(TypedDict):
602
+ RuleId: str
603
+ Name: str
604
+
605
+
606
+ class ListRegexMatchSetsRequestRequestTypeDef(TypedDict):
607
+ NextMarker: NotRequired[str]
608
+ Limit: NotRequired[int]
609
+
610
+
611
+ class RegexMatchSetSummaryTypeDef(TypedDict):
612
+ RegexMatchSetId: str
613
+ Name: str
614
+
615
+
616
+ class ListRegexPatternSetsRequestRequestTypeDef(TypedDict):
617
+ NextMarker: NotRequired[str]
618
+ Limit: NotRequired[int]
619
+
620
+
621
+ class RegexPatternSetSummaryTypeDef(TypedDict):
622
+ RegexPatternSetId: str
623
+ Name: str
624
+
625
+
626
+ class ListResourcesForWebACLRequestRequestTypeDef(TypedDict):
627
+ WebACLId: str
628
+ ResourceType: NotRequired[ResourceTypeType]
629
+
630
+
631
+ class ListRuleGroupsRequestRequestTypeDef(TypedDict):
632
+ NextMarker: NotRequired[str]
633
+ Limit: NotRequired[int]
634
+
635
+
636
+ class RuleGroupSummaryTypeDef(TypedDict):
637
+ RuleGroupId: str
638
+ Name: str
639
+
640
+
641
+ class ListRulesRequestRequestTypeDef(TypedDict):
642
+ NextMarker: NotRequired[str]
643
+ Limit: NotRequired[int]
644
+
645
+
646
+ class ListSizeConstraintSetsRequestRequestTypeDef(TypedDict):
647
+ NextMarker: NotRequired[str]
648
+ Limit: NotRequired[int]
649
+
650
+
651
+ class SizeConstraintSetSummaryTypeDef(TypedDict):
652
+ SizeConstraintSetId: str
653
+ Name: str
654
+
655
+
656
+ class ListSqlInjectionMatchSetsRequestRequestTypeDef(TypedDict):
657
+ NextMarker: NotRequired[str]
658
+ Limit: NotRequired[int]
659
+
660
+
661
+ class SqlInjectionMatchSetSummaryTypeDef(TypedDict):
662
+ SqlInjectionMatchSetId: str
663
+ Name: str
664
+
665
+
666
+ class ListSubscribedRuleGroupsRequestRequestTypeDef(TypedDict):
667
+ NextMarker: NotRequired[str]
668
+ Limit: NotRequired[int]
669
+
670
+
671
+ class SubscribedRuleGroupSummaryTypeDef(TypedDict):
672
+ RuleGroupId: str
673
+ Name: str
674
+ MetricName: str
675
+
676
+
677
+ class ListTagsForResourceRequestRequestTypeDef(TypedDict):
678
+ ResourceARN: str
679
+ NextMarker: NotRequired[str]
680
+ Limit: NotRequired[int]
681
+
682
+
683
+ class ListWebACLsRequestRequestTypeDef(TypedDict):
684
+ NextMarker: NotRequired[str]
685
+ Limit: NotRequired[int]
686
+
687
+
688
+ class ListXssMatchSetsRequestRequestTypeDef(TypedDict):
689
+ NextMarker: NotRequired[str]
690
+ Limit: NotRequired[int]
691
+
692
+
693
+ class XssMatchSetSummaryTypeDef(TypedDict):
694
+ XssMatchSetId: str
695
+ Name: str
696
+
697
+
698
+ PredicateTypeDef = TypedDict(
699
+ "PredicateTypeDef",
373
700
  {
374
- "RuleGroupId": str,
375
- "Name": NotRequired[str],
376
- "MetricName": NotRequired[str],
701
+ "Negated": bool,
702
+ "Type": PredicateTypeType,
703
+ "DataId": str,
377
704
  },
378
705
  )
379
- CreateSizeConstraintSetRequestRequestTypeDef = TypedDict(
380
- "CreateSizeConstraintSetRequestRequestTypeDef",
706
+
707
+
708
+ class PutPermissionPolicyRequestRequestTypeDef(TypedDict):
709
+ ResourceArn: str
710
+ Policy: str
711
+
712
+
713
+ class RegexPatternSetUpdateTypeDef(TypedDict):
714
+ Action: ChangeActionType
715
+ RegexPatternString: str
716
+
717
+
718
+ TimestampTypeDef = Union[datetime, str]
719
+
720
+
721
+ class UntagResourceRequestRequestTypeDef(TypedDict):
722
+ ResourceARN: str
723
+ TagKeys: Sequence[str]
724
+
725
+
726
+ ActivatedRuleOutputTypeDef = TypedDict(
727
+ "ActivatedRuleOutputTypeDef",
381
728
  {
382
- "Name": str,
383
- "ChangeToken": str,
729
+ "Priority": int,
730
+ "RuleId": str,
731
+ "Action": NotRequired[WafActionTypeDef],
732
+ "OverrideAction": NotRequired[WafOverrideActionTypeDef],
733
+ "Type": NotRequired[WafRuleTypeType],
734
+ "ExcludedRules": NotRequired[List[ExcludedRuleTypeDef]],
384
735
  },
385
736
  )
386
- CreateSqlInjectionMatchSetRequestRequestTypeDef = TypedDict(
387
- "CreateSqlInjectionMatchSetRequestRequestTypeDef",
737
+ ActivatedRuleTypeDef = TypedDict(
738
+ "ActivatedRuleTypeDef",
388
739
  {
389
- "Name": str,
390
- "ChangeToken": str,
391
- },
392
- )
393
- CreateWebACLMigrationStackRequestRequestTypeDef = TypedDict(
394
- "CreateWebACLMigrationStackRequestRequestTypeDef",
395
- {
396
- "WebACLId": str,
397
- "S3BucketName": str,
398
- "IgnoreUnsupportedType": bool,
399
- },
400
- )
401
- CreateXssMatchSetRequestRequestTypeDef = TypedDict(
402
- "CreateXssMatchSetRequestRequestTypeDef",
403
- {
404
- "Name": str,
405
- "ChangeToken": str,
406
- },
407
- )
408
- DeleteByteMatchSetRequestRequestTypeDef = TypedDict(
409
- "DeleteByteMatchSetRequestRequestTypeDef",
410
- {
411
- "ByteMatchSetId": str,
412
- "ChangeToken": str,
413
- },
414
- )
415
- DeleteGeoMatchSetRequestRequestTypeDef = TypedDict(
416
- "DeleteGeoMatchSetRequestRequestTypeDef",
417
- {
418
- "GeoMatchSetId": str,
419
- "ChangeToken": str,
420
- },
421
- )
422
- DeleteIPSetRequestRequestTypeDef = TypedDict(
423
- "DeleteIPSetRequestRequestTypeDef",
424
- {
425
- "IPSetId": str,
426
- "ChangeToken": str,
427
- },
428
- )
429
- DeleteLoggingConfigurationRequestRequestTypeDef = TypedDict(
430
- "DeleteLoggingConfigurationRequestRequestTypeDef",
431
- {
432
- "ResourceArn": str,
433
- },
434
- )
435
- DeletePermissionPolicyRequestRequestTypeDef = TypedDict(
436
- "DeletePermissionPolicyRequestRequestTypeDef",
437
- {
438
- "ResourceArn": str,
439
- },
440
- )
441
- DeleteRateBasedRuleRequestRequestTypeDef = TypedDict(
442
- "DeleteRateBasedRuleRequestRequestTypeDef",
443
- {
444
- "RuleId": str,
445
- "ChangeToken": str,
446
- },
447
- )
448
- DeleteRegexMatchSetRequestRequestTypeDef = TypedDict(
449
- "DeleteRegexMatchSetRequestRequestTypeDef",
450
- {
451
- "RegexMatchSetId": str,
452
- "ChangeToken": str,
453
- },
454
- )
455
- DeleteRegexPatternSetRequestRequestTypeDef = TypedDict(
456
- "DeleteRegexPatternSetRequestRequestTypeDef",
457
- {
458
- "RegexPatternSetId": str,
459
- "ChangeToken": str,
460
- },
461
- )
462
- DeleteRuleGroupRequestRequestTypeDef = TypedDict(
463
- "DeleteRuleGroupRequestRequestTypeDef",
464
- {
465
- "RuleGroupId": str,
466
- "ChangeToken": str,
467
- },
468
- )
469
- DeleteRuleRequestRequestTypeDef = TypedDict(
470
- "DeleteRuleRequestRequestTypeDef",
471
- {
472
- "RuleId": str,
473
- "ChangeToken": str,
474
- },
475
- )
476
- DeleteSizeConstraintSetRequestRequestTypeDef = TypedDict(
477
- "DeleteSizeConstraintSetRequestRequestTypeDef",
478
- {
479
- "SizeConstraintSetId": str,
480
- "ChangeToken": str,
481
- },
482
- )
483
- DeleteSqlInjectionMatchSetRequestRequestTypeDef = TypedDict(
484
- "DeleteSqlInjectionMatchSetRequestRequestTypeDef",
485
- {
486
- "SqlInjectionMatchSetId": str,
487
- "ChangeToken": str,
488
- },
489
- )
490
- DeleteWebACLRequestRequestTypeDef = TypedDict(
491
- "DeleteWebACLRequestRequestTypeDef",
492
- {
493
- "WebACLId": str,
494
- "ChangeToken": str,
495
- },
496
- )
497
- DeleteXssMatchSetRequestRequestTypeDef = TypedDict(
498
- "DeleteXssMatchSetRequestRequestTypeDef",
499
- {
500
- "XssMatchSetId": str,
501
- "ChangeToken": str,
502
- },
503
- )
504
- DisassociateWebACLRequestRequestTypeDef = TypedDict(
505
- "DisassociateWebACLRequestRequestTypeDef",
506
- {
507
- "ResourceArn": str,
508
- },
509
- )
510
- GeoMatchConstraintTypeDef = TypedDict(
511
- "GeoMatchConstraintTypeDef",
512
- {
513
- "Type": Literal["Country"],
514
- "Value": GeoMatchConstraintValueType,
515
- },
516
- )
517
- GeoMatchSetSummaryTypeDef = TypedDict(
518
- "GeoMatchSetSummaryTypeDef",
519
- {
520
- "GeoMatchSetId": str,
521
- "Name": str,
522
- },
523
- )
524
- GetByteMatchSetRequestRequestTypeDef = TypedDict(
525
- "GetByteMatchSetRequestRequestTypeDef",
526
- {
527
- "ByteMatchSetId": str,
528
- },
529
- )
530
- GetChangeTokenStatusRequestRequestTypeDef = TypedDict(
531
- "GetChangeTokenStatusRequestRequestTypeDef",
532
- {
533
- "ChangeToken": str,
534
- },
535
- )
536
- GetGeoMatchSetRequestRequestTypeDef = TypedDict(
537
- "GetGeoMatchSetRequestRequestTypeDef",
538
- {
539
- "GeoMatchSetId": str,
540
- },
541
- )
542
- GetIPSetRequestRequestTypeDef = TypedDict(
543
- "GetIPSetRequestRequestTypeDef",
544
- {
545
- "IPSetId": str,
546
- },
547
- )
548
- GetLoggingConfigurationRequestRequestTypeDef = TypedDict(
549
- "GetLoggingConfigurationRequestRequestTypeDef",
550
- {
551
- "ResourceArn": str,
552
- },
553
- )
554
- GetPermissionPolicyRequestRequestTypeDef = TypedDict(
555
- "GetPermissionPolicyRequestRequestTypeDef",
556
- {
557
- "ResourceArn": str,
558
- },
559
- )
560
- GetRateBasedRuleManagedKeysRequestRequestTypeDef = TypedDict(
561
- "GetRateBasedRuleManagedKeysRequestRequestTypeDef",
562
- {
563
- "RuleId": str,
564
- "NextMarker": NotRequired[str],
565
- },
566
- )
567
- GetRateBasedRuleRequestRequestTypeDef = TypedDict(
568
- "GetRateBasedRuleRequestRequestTypeDef",
569
- {
570
- "RuleId": str,
571
- },
572
- )
573
- GetRegexMatchSetRequestRequestTypeDef = TypedDict(
574
- "GetRegexMatchSetRequestRequestTypeDef",
575
- {
576
- "RegexMatchSetId": str,
577
- },
578
- )
579
- GetRegexPatternSetRequestRequestTypeDef = TypedDict(
580
- "GetRegexPatternSetRequestRequestTypeDef",
581
- {
582
- "RegexPatternSetId": str,
583
- },
584
- )
585
- GetRuleGroupRequestRequestTypeDef = TypedDict(
586
- "GetRuleGroupRequestRequestTypeDef",
587
- {
588
- "RuleGroupId": str,
589
- },
590
- )
591
- GetRuleRequestRequestTypeDef = TypedDict(
592
- "GetRuleRequestRequestTypeDef",
593
- {
594
- "RuleId": str,
595
- },
596
- )
597
- TimeWindowOutputTypeDef = TypedDict(
598
- "TimeWindowOutputTypeDef",
599
- {
600
- "StartTime": datetime,
601
- "EndTime": datetime,
602
- },
603
- )
604
- GetSizeConstraintSetRequestRequestTypeDef = TypedDict(
605
- "GetSizeConstraintSetRequestRequestTypeDef",
606
- {
607
- "SizeConstraintSetId": str,
608
- },
609
- )
610
- GetSqlInjectionMatchSetRequestRequestTypeDef = TypedDict(
611
- "GetSqlInjectionMatchSetRequestRequestTypeDef",
612
- {
613
- "SqlInjectionMatchSetId": str,
614
- },
615
- )
616
- GetWebACLForResourceRequestRequestTypeDef = TypedDict(
617
- "GetWebACLForResourceRequestRequestTypeDef",
618
- {
619
- "ResourceArn": str,
620
- },
621
- )
622
- WebACLSummaryTypeDef = TypedDict(
623
- "WebACLSummaryTypeDef",
624
- {
625
- "WebACLId": str,
626
- "Name": str,
627
- },
628
- )
629
- GetWebACLRequestRequestTypeDef = TypedDict(
630
- "GetWebACLRequestRequestTypeDef",
631
- {
632
- "WebACLId": str,
633
- },
634
- )
635
- GetXssMatchSetRequestRequestTypeDef = TypedDict(
636
- "GetXssMatchSetRequestRequestTypeDef",
637
- {
638
- "XssMatchSetId": str,
639
- },
640
- )
641
- HTTPHeaderTypeDef = TypedDict(
642
- "HTTPHeaderTypeDef",
643
- {
644
- "Name": NotRequired[str],
645
- "Value": NotRequired[str],
646
- },
647
- )
648
- IPSetDescriptorTypeDef = TypedDict(
649
- "IPSetDescriptorTypeDef",
650
- {
651
- "Type": IPSetDescriptorTypeType,
652
- "Value": str,
653
- },
654
- )
655
- IPSetSummaryTypeDef = TypedDict(
656
- "IPSetSummaryTypeDef",
657
- {
658
- "IPSetId": str,
659
- "Name": str,
660
- },
661
- )
662
- ListActivatedRulesInRuleGroupRequestRequestTypeDef = TypedDict(
663
- "ListActivatedRulesInRuleGroupRequestRequestTypeDef",
664
- {
665
- "RuleGroupId": NotRequired[str],
666
- "NextMarker": NotRequired[str],
667
- "Limit": NotRequired[int],
668
- },
669
- )
670
- ListByteMatchSetsRequestRequestTypeDef = TypedDict(
671
- "ListByteMatchSetsRequestRequestTypeDef",
672
- {
673
- "NextMarker": NotRequired[str],
674
- "Limit": NotRequired[int],
675
- },
676
- )
677
- ListGeoMatchSetsRequestRequestTypeDef = TypedDict(
678
- "ListGeoMatchSetsRequestRequestTypeDef",
679
- {
680
- "NextMarker": NotRequired[str],
681
- "Limit": NotRequired[int],
682
- },
683
- )
684
- ListIPSetsRequestRequestTypeDef = TypedDict(
685
- "ListIPSetsRequestRequestTypeDef",
686
- {
687
- "NextMarker": NotRequired[str],
688
- "Limit": NotRequired[int],
689
- },
690
- )
691
- ListLoggingConfigurationsRequestRequestTypeDef = TypedDict(
692
- "ListLoggingConfigurationsRequestRequestTypeDef",
693
- {
694
- "NextMarker": NotRequired[str],
695
- "Limit": NotRequired[int],
696
- },
697
- )
698
- ListRateBasedRulesRequestRequestTypeDef = TypedDict(
699
- "ListRateBasedRulesRequestRequestTypeDef",
700
- {
701
- "NextMarker": NotRequired[str],
702
- "Limit": NotRequired[int],
703
- },
704
- )
705
- RuleSummaryTypeDef = TypedDict(
706
- "RuleSummaryTypeDef",
707
- {
708
- "RuleId": str,
709
- "Name": str,
710
- },
711
- )
712
- ListRegexMatchSetsRequestRequestTypeDef = TypedDict(
713
- "ListRegexMatchSetsRequestRequestTypeDef",
714
- {
715
- "NextMarker": NotRequired[str],
716
- "Limit": NotRequired[int],
717
- },
718
- )
719
- RegexMatchSetSummaryTypeDef = TypedDict(
720
- "RegexMatchSetSummaryTypeDef",
721
- {
722
- "RegexMatchSetId": str,
723
- "Name": str,
724
- },
725
- )
726
- ListRegexPatternSetsRequestRequestTypeDef = TypedDict(
727
- "ListRegexPatternSetsRequestRequestTypeDef",
728
- {
729
- "NextMarker": NotRequired[str],
730
- "Limit": NotRequired[int],
731
- },
732
- )
733
- RegexPatternSetSummaryTypeDef = TypedDict(
734
- "RegexPatternSetSummaryTypeDef",
735
- {
736
- "RegexPatternSetId": str,
737
- "Name": str,
738
- },
739
- )
740
- ListResourcesForWebACLRequestRequestTypeDef = TypedDict(
741
- "ListResourcesForWebACLRequestRequestTypeDef",
742
- {
743
- "WebACLId": str,
744
- "ResourceType": NotRequired[ResourceTypeType],
745
- },
746
- )
747
- ListRuleGroupsRequestRequestTypeDef = TypedDict(
748
- "ListRuleGroupsRequestRequestTypeDef",
749
- {
750
- "NextMarker": NotRequired[str],
751
- "Limit": NotRequired[int],
752
- },
753
- )
754
- RuleGroupSummaryTypeDef = TypedDict(
755
- "RuleGroupSummaryTypeDef",
756
- {
757
- "RuleGroupId": str,
758
- "Name": str,
759
- },
760
- )
761
- ListRulesRequestRequestTypeDef = TypedDict(
762
- "ListRulesRequestRequestTypeDef",
763
- {
764
- "NextMarker": NotRequired[str],
765
- "Limit": NotRequired[int],
766
- },
767
- )
768
- ListSizeConstraintSetsRequestRequestTypeDef = TypedDict(
769
- "ListSizeConstraintSetsRequestRequestTypeDef",
770
- {
771
- "NextMarker": NotRequired[str],
772
- "Limit": NotRequired[int],
773
- },
774
- )
775
- SizeConstraintSetSummaryTypeDef = TypedDict(
776
- "SizeConstraintSetSummaryTypeDef",
777
- {
778
- "SizeConstraintSetId": str,
779
- "Name": str,
780
- },
781
- )
782
- ListSqlInjectionMatchSetsRequestRequestTypeDef = TypedDict(
783
- "ListSqlInjectionMatchSetsRequestRequestTypeDef",
784
- {
785
- "NextMarker": NotRequired[str],
786
- "Limit": NotRequired[int],
787
- },
788
- )
789
- SqlInjectionMatchSetSummaryTypeDef = TypedDict(
790
- "SqlInjectionMatchSetSummaryTypeDef",
791
- {
792
- "SqlInjectionMatchSetId": str,
793
- "Name": str,
794
- },
795
- )
796
- ListSubscribedRuleGroupsRequestRequestTypeDef = TypedDict(
797
- "ListSubscribedRuleGroupsRequestRequestTypeDef",
798
- {
799
- "NextMarker": NotRequired[str],
800
- "Limit": NotRequired[int],
801
- },
802
- )
803
- SubscribedRuleGroupSummaryTypeDef = TypedDict(
804
- "SubscribedRuleGroupSummaryTypeDef",
805
- {
806
- "RuleGroupId": str,
807
- "Name": str,
808
- "MetricName": str,
809
- },
810
- )
811
- ListTagsForResourceRequestRequestTypeDef = TypedDict(
812
- "ListTagsForResourceRequestRequestTypeDef",
813
- {
814
- "ResourceARN": str,
815
- "NextMarker": NotRequired[str],
816
- "Limit": NotRequired[int],
817
- },
818
- )
819
- ListWebACLsRequestRequestTypeDef = TypedDict(
820
- "ListWebACLsRequestRequestTypeDef",
821
- {
822
- "NextMarker": NotRequired[str],
823
- "Limit": NotRequired[int],
824
- },
825
- )
826
- ListXssMatchSetsRequestRequestTypeDef = TypedDict(
827
- "ListXssMatchSetsRequestRequestTypeDef",
828
- {
829
- "NextMarker": NotRequired[str],
830
- "Limit": NotRequired[int],
831
- },
832
- )
833
- XssMatchSetSummaryTypeDef = TypedDict(
834
- "XssMatchSetSummaryTypeDef",
835
- {
836
- "XssMatchSetId": str,
837
- "Name": str,
838
- },
839
- )
840
- PredicateTypeDef = TypedDict(
841
- "PredicateTypeDef",
842
- {
843
- "Negated": bool,
844
- "Type": PredicateTypeType,
845
- "DataId": str,
846
- },
847
- )
848
- PutPermissionPolicyRequestRequestTypeDef = TypedDict(
849
- "PutPermissionPolicyRequestRequestTypeDef",
850
- {
851
- "ResourceArn": str,
852
- "Policy": str,
853
- },
854
- )
855
- RegexPatternSetUpdateTypeDef = TypedDict(
856
- "RegexPatternSetUpdateTypeDef",
857
- {
858
- "Action": ChangeActionType,
859
- "RegexPatternString": str,
860
- },
861
- )
862
- TimestampTypeDef = Union[datetime, str]
863
- UntagResourceRequestRequestTypeDef = TypedDict(
864
- "UntagResourceRequestRequestTypeDef",
865
- {
866
- "ResourceARN": str,
867
- "TagKeys": Sequence[str],
868
- },
869
- )
870
- ActivatedRuleOutputTypeDef = TypedDict(
871
- "ActivatedRuleOutputTypeDef",
872
- {
873
- "Priority": int,
874
- "RuleId": str,
875
- "Action": NotRequired[WafActionTypeDef],
876
- "OverrideAction": NotRequired[WafOverrideActionTypeDef],
877
- "Type": NotRequired[WafRuleTypeType],
878
- "ExcludedRules": NotRequired[List[ExcludedRuleTypeDef]],
879
- },
880
- )
881
- ActivatedRuleTypeDef = TypedDict(
882
- "ActivatedRuleTypeDef",
883
- {
884
- "Priority": int,
885
- "RuleId": str,
886
- "Action": NotRequired[WafActionTypeDef],
887
- "OverrideAction": NotRequired[WafOverrideActionTypeDef],
888
- "Type": NotRequired[WafRuleTypeType],
889
- "ExcludedRules": NotRequired[Sequence[ExcludedRuleTypeDef]],
890
- },
891
- )
892
- ByteMatchTupleOutputTypeDef = TypedDict(
893
- "ByteMatchTupleOutputTypeDef",
894
- {
895
- "FieldToMatch": FieldToMatchTypeDef,
896
- "TargetString": bytes,
897
- "TextTransformation": TextTransformationType,
898
- "PositionalConstraint": PositionalConstraintType,
899
- },
900
- )
901
- ByteMatchTupleTypeDef = TypedDict(
902
- "ByteMatchTupleTypeDef",
903
- {
904
- "FieldToMatch": FieldToMatchTypeDef,
905
- "TargetString": BlobTypeDef,
906
- "TextTransformation": TextTransformationType,
907
- "PositionalConstraint": PositionalConstraintType,
908
- },
909
- )
910
- LoggingConfigurationOutputTypeDef = TypedDict(
911
- "LoggingConfigurationOutputTypeDef",
912
- {
913
- "ResourceArn": str,
914
- "LogDestinationConfigs": List[str],
915
- "RedactedFields": NotRequired[List[FieldToMatchTypeDef]],
916
- },
917
- )
918
- LoggingConfigurationTypeDef = TypedDict(
919
- "LoggingConfigurationTypeDef",
920
- {
921
- "ResourceArn": str,
922
- "LogDestinationConfigs": Sequence[str],
923
- "RedactedFields": NotRequired[Sequence[FieldToMatchTypeDef]],
924
- },
925
- )
926
- RegexMatchTupleTypeDef = TypedDict(
927
- "RegexMatchTupleTypeDef",
928
- {
929
- "FieldToMatch": FieldToMatchTypeDef,
930
- "TextTransformation": TextTransformationType,
931
- "RegexPatternSetId": str,
932
- },
933
- )
934
- SizeConstraintTypeDef = TypedDict(
935
- "SizeConstraintTypeDef",
936
- {
937
- "FieldToMatch": FieldToMatchTypeDef,
938
- "TextTransformation": TextTransformationType,
939
- "ComparisonOperator": ComparisonOperatorType,
940
- "Size": int,
941
- },
942
- )
943
- SqlInjectionMatchTupleTypeDef = TypedDict(
944
- "SqlInjectionMatchTupleTypeDef",
945
- {
946
- "FieldToMatch": FieldToMatchTypeDef,
947
- "TextTransformation": TextTransformationType,
948
- },
949
- )
950
- XssMatchTupleTypeDef = TypedDict(
951
- "XssMatchTupleTypeDef",
952
- {
953
- "FieldToMatch": FieldToMatchTypeDef,
954
- "TextTransformation": TextTransformationType,
955
- },
956
- )
957
- CreateWebACLMigrationStackResponseTypeDef = TypedDict(
958
- "CreateWebACLMigrationStackResponseTypeDef",
959
- {
960
- "S3ObjectUrl": str,
961
- "ResponseMetadata": ResponseMetadataTypeDef,
962
- },
963
- )
964
- DeleteByteMatchSetResponseTypeDef = TypedDict(
965
- "DeleteByteMatchSetResponseTypeDef",
966
- {
967
- "ChangeToken": str,
968
- "ResponseMetadata": ResponseMetadataTypeDef,
969
- },
970
- )
971
- DeleteGeoMatchSetResponseTypeDef = TypedDict(
972
- "DeleteGeoMatchSetResponseTypeDef",
973
- {
974
- "ChangeToken": str,
975
- "ResponseMetadata": ResponseMetadataTypeDef,
976
- },
977
- )
978
- DeleteIPSetResponseTypeDef = TypedDict(
979
- "DeleteIPSetResponseTypeDef",
980
- {
981
- "ChangeToken": str,
982
- "ResponseMetadata": ResponseMetadataTypeDef,
983
- },
984
- )
985
- DeleteRateBasedRuleResponseTypeDef = TypedDict(
986
- "DeleteRateBasedRuleResponseTypeDef",
987
- {
988
- "ChangeToken": str,
989
- "ResponseMetadata": ResponseMetadataTypeDef,
990
- },
991
- )
992
- DeleteRegexMatchSetResponseTypeDef = TypedDict(
993
- "DeleteRegexMatchSetResponseTypeDef",
994
- {
995
- "ChangeToken": str,
996
- "ResponseMetadata": ResponseMetadataTypeDef,
997
- },
998
- )
999
- DeleteRegexPatternSetResponseTypeDef = TypedDict(
1000
- "DeleteRegexPatternSetResponseTypeDef",
1001
- {
1002
- "ChangeToken": str,
1003
- "ResponseMetadata": ResponseMetadataTypeDef,
1004
- },
1005
- )
1006
- DeleteRuleGroupResponseTypeDef = TypedDict(
1007
- "DeleteRuleGroupResponseTypeDef",
1008
- {
1009
- "ChangeToken": str,
1010
- "ResponseMetadata": ResponseMetadataTypeDef,
1011
- },
1012
- )
1013
- DeleteRuleResponseTypeDef = TypedDict(
1014
- "DeleteRuleResponseTypeDef",
1015
- {
1016
- "ChangeToken": str,
1017
- "ResponseMetadata": ResponseMetadataTypeDef,
1018
- },
1019
- )
1020
- DeleteSizeConstraintSetResponseTypeDef = TypedDict(
1021
- "DeleteSizeConstraintSetResponseTypeDef",
1022
- {
1023
- "ChangeToken": str,
1024
- "ResponseMetadata": ResponseMetadataTypeDef,
1025
- },
1026
- )
1027
- DeleteSqlInjectionMatchSetResponseTypeDef = TypedDict(
1028
- "DeleteSqlInjectionMatchSetResponseTypeDef",
1029
- {
1030
- "ChangeToken": str,
1031
- "ResponseMetadata": ResponseMetadataTypeDef,
1032
- },
1033
- )
1034
- DeleteWebACLResponseTypeDef = TypedDict(
1035
- "DeleteWebACLResponseTypeDef",
1036
- {
1037
- "ChangeToken": str,
1038
- "ResponseMetadata": ResponseMetadataTypeDef,
1039
- },
1040
- )
1041
- DeleteXssMatchSetResponseTypeDef = TypedDict(
1042
- "DeleteXssMatchSetResponseTypeDef",
1043
- {
1044
- "ChangeToken": str,
1045
- "ResponseMetadata": ResponseMetadataTypeDef,
1046
- },
1047
- )
1048
- GetChangeTokenResponseTypeDef = TypedDict(
1049
- "GetChangeTokenResponseTypeDef",
1050
- {
1051
- "ChangeToken": str,
1052
- "ResponseMetadata": ResponseMetadataTypeDef,
1053
- },
1054
- )
1055
- GetChangeTokenStatusResponseTypeDef = TypedDict(
1056
- "GetChangeTokenStatusResponseTypeDef",
1057
- {
1058
- "ChangeTokenStatus": ChangeTokenStatusType,
1059
- "ResponseMetadata": ResponseMetadataTypeDef,
1060
- },
1061
- )
1062
- GetPermissionPolicyResponseTypeDef = TypedDict(
1063
- "GetPermissionPolicyResponseTypeDef",
1064
- {
1065
- "Policy": str,
1066
- "ResponseMetadata": ResponseMetadataTypeDef,
1067
- },
1068
- )
1069
- GetRateBasedRuleManagedKeysResponseTypeDef = TypedDict(
1070
- "GetRateBasedRuleManagedKeysResponseTypeDef",
1071
- {
1072
- "ManagedKeys": List[str],
1073
- "NextMarker": str,
1074
- "ResponseMetadata": ResponseMetadataTypeDef,
1075
- },
1076
- )
1077
- ListByteMatchSetsResponseTypeDef = TypedDict(
1078
- "ListByteMatchSetsResponseTypeDef",
1079
- {
1080
- "NextMarker": str,
1081
- "ByteMatchSets": List[ByteMatchSetSummaryTypeDef],
1082
- "ResponseMetadata": ResponseMetadataTypeDef,
1083
- },
1084
- )
1085
- ListResourcesForWebACLResponseTypeDef = TypedDict(
1086
- "ListResourcesForWebACLResponseTypeDef",
1087
- {
1088
- "ResourceArns": List[str],
1089
- "ResponseMetadata": ResponseMetadataTypeDef,
1090
- },
1091
- )
1092
- UpdateByteMatchSetResponseTypeDef = TypedDict(
1093
- "UpdateByteMatchSetResponseTypeDef",
1094
- {
1095
- "ChangeToken": str,
1096
- "ResponseMetadata": ResponseMetadataTypeDef,
1097
- },
1098
- )
1099
- UpdateGeoMatchSetResponseTypeDef = TypedDict(
1100
- "UpdateGeoMatchSetResponseTypeDef",
1101
- {
1102
- "ChangeToken": str,
1103
- "ResponseMetadata": ResponseMetadataTypeDef,
1104
- },
1105
- )
1106
- UpdateIPSetResponseTypeDef = TypedDict(
1107
- "UpdateIPSetResponseTypeDef",
1108
- {
1109
- "ChangeToken": str,
1110
- "ResponseMetadata": ResponseMetadataTypeDef,
1111
- },
1112
- )
1113
- UpdateRateBasedRuleResponseTypeDef = TypedDict(
1114
- "UpdateRateBasedRuleResponseTypeDef",
1115
- {
1116
- "ChangeToken": str,
1117
- "ResponseMetadata": ResponseMetadataTypeDef,
1118
- },
1119
- )
1120
- UpdateRegexMatchSetResponseTypeDef = TypedDict(
1121
- "UpdateRegexMatchSetResponseTypeDef",
1122
- {
1123
- "ChangeToken": str,
1124
- "ResponseMetadata": ResponseMetadataTypeDef,
1125
- },
1126
- )
1127
- UpdateRegexPatternSetResponseTypeDef = TypedDict(
1128
- "UpdateRegexPatternSetResponseTypeDef",
1129
- {
1130
- "ChangeToken": str,
1131
- "ResponseMetadata": ResponseMetadataTypeDef,
1132
- },
1133
- )
1134
- UpdateRuleGroupResponseTypeDef = TypedDict(
1135
- "UpdateRuleGroupResponseTypeDef",
1136
- {
1137
- "ChangeToken": str,
1138
- "ResponseMetadata": ResponseMetadataTypeDef,
1139
- },
1140
- )
1141
- UpdateRuleResponseTypeDef = TypedDict(
1142
- "UpdateRuleResponseTypeDef",
1143
- {
1144
- "ChangeToken": str,
1145
- "ResponseMetadata": ResponseMetadataTypeDef,
1146
- },
1147
- )
1148
- UpdateSizeConstraintSetResponseTypeDef = TypedDict(
1149
- "UpdateSizeConstraintSetResponseTypeDef",
1150
- {
1151
- "ChangeToken": str,
1152
- "ResponseMetadata": ResponseMetadataTypeDef,
1153
- },
1154
- )
1155
- UpdateSqlInjectionMatchSetResponseTypeDef = TypedDict(
1156
- "UpdateSqlInjectionMatchSetResponseTypeDef",
1157
- {
1158
- "ChangeToken": str,
1159
- "ResponseMetadata": ResponseMetadataTypeDef,
1160
- },
1161
- )
1162
- UpdateWebACLResponseTypeDef = TypedDict(
1163
- "UpdateWebACLResponseTypeDef",
1164
- {
1165
- "ChangeToken": str,
1166
- "ResponseMetadata": ResponseMetadataTypeDef,
1167
- },
1168
- )
1169
- UpdateXssMatchSetResponseTypeDef = TypedDict(
1170
- "UpdateXssMatchSetResponseTypeDef",
1171
- {
1172
- "ChangeToken": str,
1173
- "ResponseMetadata": ResponseMetadataTypeDef,
1174
- },
1175
- )
1176
- CreateRateBasedRuleRequestRequestTypeDef = TypedDict(
1177
- "CreateRateBasedRuleRequestRequestTypeDef",
1178
- {
1179
- "Name": str,
1180
- "MetricName": str,
1181
- "RateKey": Literal["IP"],
1182
- "RateLimit": int,
1183
- "ChangeToken": str,
1184
- "Tags": NotRequired[Sequence[TagTypeDef]],
1185
- },
1186
- )
1187
- CreateRuleGroupRequestRequestTypeDef = TypedDict(
1188
- "CreateRuleGroupRequestRequestTypeDef",
1189
- {
1190
- "Name": str,
1191
- "MetricName": str,
1192
- "ChangeToken": str,
1193
- "Tags": NotRequired[Sequence[TagTypeDef]],
1194
- },
1195
- )
1196
- CreateRuleRequestRequestTypeDef = TypedDict(
1197
- "CreateRuleRequestRequestTypeDef",
1198
- {
1199
- "Name": str,
1200
- "MetricName": str,
1201
- "ChangeToken": str,
1202
- "Tags": NotRequired[Sequence[TagTypeDef]],
1203
- },
1204
- )
1205
- CreateWebACLRequestRequestTypeDef = TypedDict(
1206
- "CreateWebACLRequestRequestTypeDef",
1207
- {
1208
- "Name": str,
1209
- "MetricName": str,
1210
- "DefaultAction": WafActionTypeDef,
1211
- "ChangeToken": str,
1212
- "Tags": NotRequired[Sequence[TagTypeDef]],
1213
- },
1214
- )
1215
- TagInfoForResourceTypeDef = TypedDict(
1216
- "TagInfoForResourceTypeDef",
1217
- {
1218
- "ResourceARN": NotRequired[str],
1219
- "TagList": NotRequired[List[TagTypeDef]],
1220
- },
1221
- )
1222
- TagResourceRequestRequestTypeDef = TypedDict(
1223
- "TagResourceRequestRequestTypeDef",
1224
- {
1225
- "ResourceARN": str,
1226
- "Tags": Sequence[TagTypeDef],
1227
- },
1228
- )
1229
- CreateRegexPatternSetResponseTypeDef = TypedDict(
1230
- "CreateRegexPatternSetResponseTypeDef",
1231
- {
1232
- "RegexPatternSet": RegexPatternSetTypeDef,
1233
- "ChangeToken": str,
1234
- "ResponseMetadata": ResponseMetadataTypeDef,
1235
- },
1236
- )
1237
- GetRegexPatternSetResponseTypeDef = TypedDict(
1238
- "GetRegexPatternSetResponseTypeDef",
1239
- {
1240
- "RegexPatternSet": RegexPatternSetTypeDef,
1241
- "ResponseMetadata": ResponseMetadataTypeDef,
1242
- },
1243
- )
1244
- CreateRuleGroupResponseTypeDef = TypedDict(
1245
- "CreateRuleGroupResponseTypeDef",
1246
- {
1247
- "RuleGroup": RuleGroupTypeDef,
1248
- "ChangeToken": str,
1249
- "ResponseMetadata": ResponseMetadataTypeDef,
1250
- },
1251
- )
1252
- GetRuleGroupResponseTypeDef = TypedDict(
1253
- "GetRuleGroupResponseTypeDef",
1254
- {
1255
- "RuleGroup": RuleGroupTypeDef,
1256
- "ResponseMetadata": ResponseMetadataTypeDef,
1257
- },
1258
- )
1259
- GeoMatchSetTypeDef = TypedDict(
1260
- "GeoMatchSetTypeDef",
1261
- {
1262
- "GeoMatchSetId": str,
1263
- "GeoMatchConstraints": List[GeoMatchConstraintTypeDef],
1264
- "Name": NotRequired[str],
1265
- },
1266
- )
1267
- GeoMatchSetUpdateTypeDef = TypedDict(
1268
- "GeoMatchSetUpdateTypeDef",
1269
- {
1270
- "Action": ChangeActionType,
1271
- "GeoMatchConstraint": GeoMatchConstraintTypeDef,
1272
- },
1273
- )
1274
- ListGeoMatchSetsResponseTypeDef = TypedDict(
1275
- "ListGeoMatchSetsResponseTypeDef",
1276
- {
1277
- "NextMarker": str,
1278
- "GeoMatchSets": List[GeoMatchSetSummaryTypeDef],
1279
- "ResponseMetadata": ResponseMetadataTypeDef,
1280
- },
1281
- )
1282
- GetWebACLForResourceResponseTypeDef = TypedDict(
1283
- "GetWebACLForResourceResponseTypeDef",
1284
- {
1285
- "WebACLSummary": WebACLSummaryTypeDef,
1286
- "ResponseMetadata": ResponseMetadataTypeDef,
1287
- },
1288
- )
1289
- ListWebACLsResponseTypeDef = TypedDict(
1290
- "ListWebACLsResponseTypeDef",
1291
- {
1292
- "NextMarker": str,
1293
- "WebACLs": List[WebACLSummaryTypeDef],
1294
- "ResponseMetadata": ResponseMetadataTypeDef,
1295
- },
1296
- )
1297
- HTTPRequestTypeDef = TypedDict(
1298
- "HTTPRequestTypeDef",
1299
- {
1300
- "ClientIP": NotRequired[str],
1301
- "Country": NotRequired[str],
1302
- "URI": NotRequired[str],
1303
- "Method": NotRequired[str],
1304
- "HTTPVersion": NotRequired[str],
1305
- "Headers": NotRequired[List[HTTPHeaderTypeDef]],
1306
- },
1307
- )
1308
- IPSetTypeDef = TypedDict(
1309
- "IPSetTypeDef",
1310
- {
1311
- "IPSetId": str,
1312
- "IPSetDescriptors": List[IPSetDescriptorTypeDef],
1313
- "Name": NotRequired[str],
1314
- },
1315
- )
1316
- IPSetUpdateTypeDef = TypedDict(
1317
- "IPSetUpdateTypeDef",
1318
- {
1319
- "Action": ChangeActionType,
1320
- "IPSetDescriptor": IPSetDescriptorTypeDef,
1321
- },
1322
- )
1323
- ListIPSetsResponseTypeDef = TypedDict(
1324
- "ListIPSetsResponseTypeDef",
1325
- {
1326
- "NextMarker": str,
1327
- "IPSets": List[IPSetSummaryTypeDef],
1328
- "ResponseMetadata": ResponseMetadataTypeDef,
1329
- },
1330
- )
1331
- ListRateBasedRulesResponseTypeDef = TypedDict(
1332
- "ListRateBasedRulesResponseTypeDef",
1333
- {
1334
- "NextMarker": str,
1335
- "Rules": List[RuleSummaryTypeDef],
1336
- "ResponseMetadata": ResponseMetadataTypeDef,
1337
- },
1338
- )
1339
- ListRulesResponseTypeDef = TypedDict(
1340
- "ListRulesResponseTypeDef",
1341
- {
1342
- "NextMarker": str,
1343
- "Rules": List[RuleSummaryTypeDef],
1344
- "ResponseMetadata": ResponseMetadataTypeDef,
1345
- },
1346
- )
1347
- ListRegexMatchSetsResponseTypeDef = TypedDict(
1348
- "ListRegexMatchSetsResponseTypeDef",
1349
- {
1350
- "NextMarker": str,
1351
- "RegexMatchSets": List[RegexMatchSetSummaryTypeDef],
1352
- "ResponseMetadata": ResponseMetadataTypeDef,
1353
- },
1354
- )
1355
- ListRegexPatternSetsResponseTypeDef = TypedDict(
1356
- "ListRegexPatternSetsResponseTypeDef",
1357
- {
1358
- "NextMarker": str,
1359
- "RegexPatternSets": List[RegexPatternSetSummaryTypeDef],
1360
- "ResponseMetadata": ResponseMetadataTypeDef,
1361
- },
1362
- )
1363
- ListRuleGroupsResponseTypeDef = TypedDict(
1364
- "ListRuleGroupsResponseTypeDef",
1365
- {
1366
- "NextMarker": str,
1367
- "RuleGroups": List[RuleGroupSummaryTypeDef],
1368
- "ResponseMetadata": ResponseMetadataTypeDef,
1369
- },
1370
- )
1371
- ListSizeConstraintSetsResponseTypeDef = TypedDict(
1372
- "ListSizeConstraintSetsResponseTypeDef",
1373
- {
1374
- "NextMarker": str,
1375
- "SizeConstraintSets": List[SizeConstraintSetSummaryTypeDef],
1376
- "ResponseMetadata": ResponseMetadataTypeDef,
1377
- },
1378
- )
1379
- ListSqlInjectionMatchSetsResponseTypeDef = TypedDict(
1380
- "ListSqlInjectionMatchSetsResponseTypeDef",
1381
- {
1382
- "NextMarker": str,
1383
- "SqlInjectionMatchSets": List[SqlInjectionMatchSetSummaryTypeDef],
1384
- "ResponseMetadata": ResponseMetadataTypeDef,
1385
- },
1386
- )
1387
- ListSubscribedRuleGroupsResponseTypeDef = TypedDict(
1388
- "ListSubscribedRuleGroupsResponseTypeDef",
1389
- {
1390
- "NextMarker": str,
1391
- "RuleGroups": List[SubscribedRuleGroupSummaryTypeDef],
1392
- "ResponseMetadata": ResponseMetadataTypeDef,
1393
- },
1394
- )
1395
- ListXssMatchSetsResponseTypeDef = TypedDict(
1396
- "ListXssMatchSetsResponseTypeDef",
1397
- {
1398
- "NextMarker": str,
1399
- "XssMatchSets": List[XssMatchSetSummaryTypeDef],
1400
- "ResponseMetadata": ResponseMetadataTypeDef,
1401
- },
1402
- )
1403
- RateBasedRuleTypeDef = TypedDict(
1404
- "RateBasedRuleTypeDef",
1405
- {
1406
- "RuleId": str,
1407
- "MatchPredicates": List[PredicateTypeDef],
1408
- "RateKey": Literal["IP"],
1409
- "RateLimit": int,
1410
- "Name": NotRequired[str],
1411
- "MetricName": NotRequired[str],
1412
- },
1413
- )
1414
- RuleTypeDef = TypedDict(
1415
- "RuleTypeDef",
1416
- {
1417
- "RuleId": str,
1418
- "Predicates": List[PredicateTypeDef],
1419
- "Name": NotRequired[str],
1420
- "MetricName": NotRequired[str],
1421
- },
1422
- )
1423
- RuleUpdateTypeDef = TypedDict(
1424
- "RuleUpdateTypeDef",
1425
- {
1426
- "Action": ChangeActionType,
1427
- "Predicate": PredicateTypeDef,
1428
- },
1429
- )
1430
- UpdateRegexPatternSetRequestRequestTypeDef = TypedDict(
1431
- "UpdateRegexPatternSetRequestRequestTypeDef",
1432
- {
1433
- "RegexPatternSetId": str,
1434
- "Updates": Sequence[RegexPatternSetUpdateTypeDef],
1435
- "ChangeToken": str,
1436
- },
1437
- )
1438
- TimeWindowTypeDef = TypedDict(
1439
- "TimeWindowTypeDef",
1440
- {
1441
- "StartTime": TimestampTypeDef,
1442
- "EndTime": TimestampTypeDef,
1443
- },
1444
- )
1445
- ListActivatedRulesInRuleGroupResponseTypeDef = TypedDict(
1446
- "ListActivatedRulesInRuleGroupResponseTypeDef",
1447
- {
1448
- "NextMarker": str,
1449
- "ActivatedRules": List[ActivatedRuleOutputTypeDef],
1450
- "ResponseMetadata": ResponseMetadataTypeDef,
1451
- },
1452
- )
1453
- WebACLTypeDef = TypedDict(
1454
- "WebACLTypeDef",
1455
- {
1456
- "WebACLId": str,
1457
- "DefaultAction": WafActionTypeDef,
1458
- "Rules": List[ActivatedRuleOutputTypeDef],
1459
- "Name": NotRequired[str],
1460
- "MetricName": NotRequired[str],
1461
- "WebACLArn": NotRequired[str],
1462
- },
1463
- )
1464
- RuleGroupUpdateTypeDef = TypedDict(
1465
- "RuleGroupUpdateTypeDef",
1466
- {
1467
- "Action": ChangeActionType,
1468
- "ActivatedRule": ActivatedRuleTypeDef,
1469
- },
1470
- )
1471
- WebACLUpdateTypeDef = TypedDict(
1472
- "WebACLUpdateTypeDef",
1473
- {
1474
- "Action": ChangeActionType,
1475
- "ActivatedRule": ActivatedRuleTypeDef,
1476
- },
1477
- )
1478
- ByteMatchSetTypeDef = TypedDict(
1479
- "ByteMatchSetTypeDef",
1480
- {
1481
- "ByteMatchSetId": str,
1482
- "ByteMatchTuples": List[ByteMatchTupleOutputTypeDef],
1483
- "Name": NotRequired[str],
1484
- },
1485
- )
1486
- ByteMatchSetUpdateTypeDef = TypedDict(
1487
- "ByteMatchSetUpdateTypeDef",
1488
- {
1489
- "Action": ChangeActionType,
1490
- "ByteMatchTuple": ByteMatchTupleTypeDef,
1491
- },
1492
- )
1493
- GetLoggingConfigurationResponseTypeDef = TypedDict(
1494
- "GetLoggingConfigurationResponseTypeDef",
1495
- {
1496
- "LoggingConfiguration": LoggingConfigurationOutputTypeDef,
1497
- "ResponseMetadata": ResponseMetadataTypeDef,
1498
- },
1499
- )
1500
- ListLoggingConfigurationsResponseTypeDef = TypedDict(
1501
- "ListLoggingConfigurationsResponseTypeDef",
1502
- {
1503
- "LoggingConfigurations": List[LoggingConfigurationOutputTypeDef],
1504
- "NextMarker": str,
1505
- "ResponseMetadata": ResponseMetadataTypeDef,
1506
- },
1507
- )
1508
- PutLoggingConfigurationResponseTypeDef = TypedDict(
1509
- "PutLoggingConfigurationResponseTypeDef",
1510
- {
1511
- "LoggingConfiguration": LoggingConfigurationOutputTypeDef,
1512
- "ResponseMetadata": ResponseMetadataTypeDef,
1513
- },
1514
- )
1515
- LoggingConfigurationUnionTypeDef = Union[
1516
- LoggingConfigurationTypeDef, LoggingConfigurationOutputTypeDef
1517
- ]
1518
- PutLoggingConfigurationRequestRequestTypeDef = TypedDict(
1519
- "PutLoggingConfigurationRequestRequestTypeDef",
1520
- {
1521
- "LoggingConfiguration": LoggingConfigurationTypeDef,
1522
- },
1523
- )
1524
- RegexMatchSetTypeDef = TypedDict(
1525
- "RegexMatchSetTypeDef",
1526
- {
1527
- "RegexMatchSetId": NotRequired[str],
1528
- "Name": NotRequired[str],
1529
- "RegexMatchTuples": NotRequired[List[RegexMatchTupleTypeDef]],
1530
- },
1531
- )
1532
- RegexMatchSetUpdateTypeDef = TypedDict(
1533
- "RegexMatchSetUpdateTypeDef",
1534
- {
1535
- "Action": ChangeActionType,
1536
- "RegexMatchTuple": RegexMatchTupleTypeDef,
1537
- },
1538
- )
1539
- SizeConstraintSetTypeDef = TypedDict(
1540
- "SizeConstraintSetTypeDef",
1541
- {
1542
- "SizeConstraintSetId": str,
1543
- "SizeConstraints": List[SizeConstraintTypeDef],
1544
- "Name": NotRequired[str],
1545
- },
1546
- )
1547
- SizeConstraintSetUpdateTypeDef = TypedDict(
1548
- "SizeConstraintSetUpdateTypeDef",
1549
- {
1550
- "Action": ChangeActionType,
1551
- "SizeConstraint": SizeConstraintTypeDef,
1552
- },
1553
- )
1554
- SqlInjectionMatchSetTypeDef = TypedDict(
1555
- "SqlInjectionMatchSetTypeDef",
1556
- {
1557
- "SqlInjectionMatchSetId": str,
1558
- "SqlInjectionMatchTuples": List[SqlInjectionMatchTupleTypeDef],
1559
- "Name": NotRequired[str],
1560
- },
1561
- )
1562
- SqlInjectionMatchSetUpdateTypeDef = TypedDict(
1563
- "SqlInjectionMatchSetUpdateTypeDef",
1564
- {
1565
- "Action": ChangeActionType,
1566
- "SqlInjectionMatchTuple": SqlInjectionMatchTupleTypeDef,
1567
- },
1568
- )
1569
- XssMatchSetTypeDef = TypedDict(
1570
- "XssMatchSetTypeDef",
1571
- {
1572
- "XssMatchSetId": str,
1573
- "XssMatchTuples": List[XssMatchTupleTypeDef],
1574
- "Name": NotRequired[str],
1575
- },
1576
- )
1577
- XssMatchSetUpdateTypeDef = TypedDict(
1578
- "XssMatchSetUpdateTypeDef",
1579
- {
1580
- "Action": ChangeActionType,
1581
- "XssMatchTuple": XssMatchTupleTypeDef,
1582
- },
1583
- )
1584
- ListTagsForResourceResponseTypeDef = TypedDict(
1585
- "ListTagsForResourceResponseTypeDef",
1586
- {
1587
- "NextMarker": str,
1588
- "TagInfoForResource": TagInfoForResourceTypeDef,
1589
- "ResponseMetadata": ResponseMetadataTypeDef,
1590
- },
1591
- )
1592
- CreateGeoMatchSetResponseTypeDef = TypedDict(
1593
- "CreateGeoMatchSetResponseTypeDef",
1594
- {
1595
- "GeoMatchSet": GeoMatchSetTypeDef,
1596
- "ChangeToken": str,
1597
- "ResponseMetadata": ResponseMetadataTypeDef,
1598
- },
1599
- )
1600
- GetGeoMatchSetResponseTypeDef = TypedDict(
1601
- "GetGeoMatchSetResponseTypeDef",
1602
- {
1603
- "GeoMatchSet": GeoMatchSetTypeDef,
1604
- "ResponseMetadata": ResponseMetadataTypeDef,
1605
- },
1606
- )
1607
- UpdateGeoMatchSetRequestRequestTypeDef = TypedDict(
1608
- "UpdateGeoMatchSetRequestRequestTypeDef",
1609
- {
1610
- "GeoMatchSetId": str,
1611
- "ChangeToken": str,
1612
- "Updates": Sequence[GeoMatchSetUpdateTypeDef],
1613
- },
1614
- )
1615
- SampledHTTPRequestTypeDef = TypedDict(
1616
- "SampledHTTPRequestTypeDef",
1617
- {
1618
- "Request": HTTPRequestTypeDef,
1619
- "Weight": int,
1620
- "Timestamp": NotRequired[datetime],
1621
- "Action": NotRequired[str],
1622
- "RuleWithinRuleGroup": NotRequired[str],
1623
- },
1624
- )
1625
- CreateIPSetResponseTypeDef = TypedDict(
1626
- "CreateIPSetResponseTypeDef",
1627
- {
1628
- "IPSet": IPSetTypeDef,
1629
- "ChangeToken": str,
1630
- "ResponseMetadata": ResponseMetadataTypeDef,
1631
- },
1632
- )
1633
- GetIPSetResponseTypeDef = TypedDict(
1634
- "GetIPSetResponseTypeDef",
1635
- {
1636
- "IPSet": IPSetTypeDef,
1637
- "ResponseMetadata": ResponseMetadataTypeDef,
1638
- },
1639
- )
1640
- UpdateIPSetRequestRequestTypeDef = TypedDict(
1641
- "UpdateIPSetRequestRequestTypeDef",
1642
- {
1643
- "IPSetId": str,
1644
- "ChangeToken": str,
1645
- "Updates": Sequence[IPSetUpdateTypeDef],
1646
- },
1647
- )
1648
- CreateRateBasedRuleResponseTypeDef = TypedDict(
1649
- "CreateRateBasedRuleResponseTypeDef",
1650
- {
1651
- "Rule": RateBasedRuleTypeDef,
1652
- "ChangeToken": str,
1653
- "ResponseMetadata": ResponseMetadataTypeDef,
1654
- },
1655
- )
1656
- GetRateBasedRuleResponseTypeDef = TypedDict(
1657
- "GetRateBasedRuleResponseTypeDef",
1658
- {
1659
- "Rule": RateBasedRuleTypeDef,
1660
- "ResponseMetadata": ResponseMetadataTypeDef,
1661
- },
1662
- )
1663
- CreateRuleResponseTypeDef = TypedDict(
1664
- "CreateRuleResponseTypeDef",
1665
- {
1666
- "Rule": RuleTypeDef,
1667
- "ChangeToken": str,
1668
- "ResponseMetadata": ResponseMetadataTypeDef,
1669
- },
1670
- )
1671
- GetRuleResponseTypeDef = TypedDict(
1672
- "GetRuleResponseTypeDef",
1673
- {
1674
- "Rule": RuleTypeDef,
1675
- "ResponseMetadata": ResponseMetadataTypeDef,
1676
- },
1677
- )
1678
- UpdateRateBasedRuleRequestRequestTypeDef = TypedDict(
1679
- "UpdateRateBasedRuleRequestRequestTypeDef",
1680
- {
1681
- "RuleId": str,
1682
- "ChangeToken": str,
1683
- "Updates": Sequence[RuleUpdateTypeDef],
1684
- "RateLimit": int,
1685
- },
1686
- )
1687
- UpdateRuleRequestRequestTypeDef = TypedDict(
1688
- "UpdateRuleRequestRequestTypeDef",
1689
- {
1690
- "RuleId": str,
1691
- "ChangeToken": str,
1692
- "Updates": Sequence[RuleUpdateTypeDef],
1693
- },
1694
- )
1695
- GetSampledRequestsRequestRequestTypeDef = TypedDict(
1696
- "GetSampledRequestsRequestRequestTypeDef",
1697
- {
1698
- "WebAclId": str,
1699
- "RuleId": str,
1700
- "TimeWindow": TimeWindowTypeDef,
1701
- "MaxItems": int,
1702
- },
1703
- )
1704
- TimeWindowUnionTypeDef = Union[TimeWindowTypeDef, TimeWindowOutputTypeDef]
1705
- CreateWebACLResponseTypeDef = TypedDict(
1706
- "CreateWebACLResponseTypeDef",
1707
- {
1708
- "WebACL": WebACLTypeDef,
1709
- "ChangeToken": str,
1710
- "ResponseMetadata": ResponseMetadataTypeDef,
1711
- },
1712
- )
1713
- GetWebACLResponseTypeDef = TypedDict(
1714
- "GetWebACLResponseTypeDef",
1715
- {
1716
- "WebACL": WebACLTypeDef,
1717
- "ResponseMetadata": ResponseMetadataTypeDef,
1718
- },
1719
- )
1720
- UpdateRuleGroupRequestRequestTypeDef = TypedDict(
1721
- "UpdateRuleGroupRequestRequestTypeDef",
1722
- {
1723
- "RuleGroupId": str,
1724
- "Updates": Sequence[RuleGroupUpdateTypeDef],
1725
- "ChangeToken": str,
1726
- },
1727
- )
1728
- UpdateWebACLRequestRequestTypeDef = TypedDict(
1729
- "UpdateWebACLRequestRequestTypeDef",
1730
- {
1731
- "WebACLId": str,
1732
- "ChangeToken": str,
1733
- "Updates": NotRequired[Sequence[WebACLUpdateTypeDef]],
1734
- "DefaultAction": NotRequired[WafActionTypeDef],
1735
- },
1736
- )
1737
- CreateByteMatchSetResponseTypeDef = TypedDict(
1738
- "CreateByteMatchSetResponseTypeDef",
1739
- {
1740
- "ByteMatchSet": ByteMatchSetTypeDef,
1741
- "ChangeToken": str,
1742
- "ResponseMetadata": ResponseMetadataTypeDef,
1743
- },
1744
- )
1745
- GetByteMatchSetResponseTypeDef = TypedDict(
1746
- "GetByteMatchSetResponseTypeDef",
1747
- {
1748
- "ByteMatchSet": ByteMatchSetTypeDef,
1749
- "ResponseMetadata": ResponseMetadataTypeDef,
1750
- },
1751
- )
1752
- UpdateByteMatchSetRequestRequestTypeDef = TypedDict(
1753
- "UpdateByteMatchSetRequestRequestTypeDef",
1754
- {
1755
- "ByteMatchSetId": str,
1756
- "ChangeToken": str,
1757
- "Updates": Sequence[ByteMatchSetUpdateTypeDef],
1758
- },
1759
- )
1760
- CreateRegexMatchSetResponseTypeDef = TypedDict(
1761
- "CreateRegexMatchSetResponseTypeDef",
1762
- {
1763
- "RegexMatchSet": RegexMatchSetTypeDef,
1764
- "ChangeToken": str,
1765
- "ResponseMetadata": ResponseMetadataTypeDef,
1766
- },
1767
- )
1768
- GetRegexMatchSetResponseTypeDef = TypedDict(
1769
- "GetRegexMatchSetResponseTypeDef",
1770
- {
1771
- "RegexMatchSet": RegexMatchSetTypeDef,
1772
- "ResponseMetadata": ResponseMetadataTypeDef,
1773
- },
1774
- )
1775
- UpdateRegexMatchSetRequestRequestTypeDef = TypedDict(
1776
- "UpdateRegexMatchSetRequestRequestTypeDef",
1777
- {
1778
- "RegexMatchSetId": str,
1779
- "Updates": Sequence[RegexMatchSetUpdateTypeDef],
1780
- "ChangeToken": str,
1781
- },
1782
- )
1783
- CreateSizeConstraintSetResponseTypeDef = TypedDict(
1784
- "CreateSizeConstraintSetResponseTypeDef",
1785
- {
1786
- "SizeConstraintSet": SizeConstraintSetTypeDef,
1787
- "ChangeToken": str,
1788
- "ResponseMetadata": ResponseMetadataTypeDef,
1789
- },
1790
- )
1791
- GetSizeConstraintSetResponseTypeDef = TypedDict(
1792
- "GetSizeConstraintSetResponseTypeDef",
1793
- {
1794
- "SizeConstraintSet": SizeConstraintSetTypeDef,
1795
- "ResponseMetadata": ResponseMetadataTypeDef,
1796
- },
1797
- )
1798
- UpdateSizeConstraintSetRequestRequestTypeDef = TypedDict(
1799
- "UpdateSizeConstraintSetRequestRequestTypeDef",
1800
- {
1801
- "SizeConstraintSetId": str,
1802
- "ChangeToken": str,
1803
- "Updates": Sequence[SizeConstraintSetUpdateTypeDef],
1804
- },
1805
- )
1806
- CreateSqlInjectionMatchSetResponseTypeDef = TypedDict(
1807
- "CreateSqlInjectionMatchSetResponseTypeDef",
1808
- {
1809
- "SqlInjectionMatchSet": SqlInjectionMatchSetTypeDef,
1810
- "ChangeToken": str,
1811
- "ResponseMetadata": ResponseMetadataTypeDef,
1812
- },
1813
- )
1814
- GetSqlInjectionMatchSetResponseTypeDef = TypedDict(
1815
- "GetSqlInjectionMatchSetResponseTypeDef",
1816
- {
1817
- "SqlInjectionMatchSet": SqlInjectionMatchSetTypeDef,
1818
- "ResponseMetadata": ResponseMetadataTypeDef,
1819
- },
1820
- )
1821
- UpdateSqlInjectionMatchSetRequestRequestTypeDef = TypedDict(
1822
- "UpdateSqlInjectionMatchSetRequestRequestTypeDef",
1823
- {
1824
- "SqlInjectionMatchSetId": str,
1825
- "ChangeToken": str,
1826
- "Updates": Sequence[SqlInjectionMatchSetUpdateTypeDef],
1827
- },
1828
- )
1829
- CreateXssMatchSetResponseTypeDef = TypedDict(
1830
- "CreateXssMatchSetResponseTypeDef",
1831
- {
1832
- "XssMatchSet": XssMatchSetTypeDef,
1833
- "ChangeToken": str,
1834
- "ResponseMetadata": ResponseMetadataTypeDef,
1835
- },
1836
- )
1837
- GetXssMatchSetResponseTypeDef = TypedDict(
1838
- "GetXssMatchSetResponseTypeDef",
1839
- {
1840
- "XssMatchSet": XssMatchSetTypeDef,
1841
- "ResponseMetadata": ResponseMetadataTypeDef,
1842
- },
1843
- )
1844
- UpdateXssMatchSetRequestRequestTypeDef = TypedDict(
1845
- "UpdateXssMatchSetRequestRequestTypeDef",
1846
- {
1847
- "XssMatchSetId": str,
1848
- "ChangeToken": str,
1849
- "Updates": Sequence[XssMatchSetUpdateTypeDef],
1850
- },
1851
- )
1852
- GetSampledRequestsResponseTypeDef = TypedDict(
1853
- "GetSampledRequestsResponseTypeDef",
1854
- {
1855
- "SampledRequests": List[SampledHTTPRequestTypeDef],
1856
- "PopulationSize": int,
1857
- "TimeWindow": TimeWindowOutputTypeDef,
1858
- "ResponseMetadata": ResponseMetadataTypeDef,
740
+ "Priority": int,
741
+ "RuleId": str,
742
+ "Action": NotRequired[WafActionTypeDef],
743
+ "OverrideAction": NotRequired[WafOverrideActionTypeDef],
744
+ "Type": NotRequired[WafRuleTypeType],
745
+ "ExcludedRules": NotRequired[Sequence[ExcludedRuleTypeDef]],
1859
746
  },
1860
747
  )
748
+
749
+
750
+ class ByteMatchTupleOutputTypeDef(TypedDict):
751
+ FieldToMatch: FieldToMatchTypeDef
752
+ TargetString: bytes
753
+ TextTransformation: TextTransformationType
754
+ PositionalConstraint: PositionalConstraintType
755
+
756
+
757
+ class ByteMatchTupleTypeDef(TypedDict):
758
+ FieldToMatch: FieldToMatchTypeDef
759
+ TargetString: BlobTypeDef
760
+ TextTransformation: TextTransformationType
761
+ PositionalConstraint: PositionalConstraintType
762
+
763
+
764
+ class LoggingConfigurationOutputTypeDef(TypedDict):
765
+ ResourceArn: str
766
+ LogDestinationConfigs: List[str]
767
+ RedactedFields: NotRequired[List[FieldToMatchTypeDef]]
768
+
769
+
770
+ class LoggingConfigurationTypeDef(TypedDict):
771
+ ResourceArn: str
772
+ LogDestinationConfigs: Sequence[str]
773
+ RedactedFields: NotRequired[Sequence[FieldToMatchTypeDef]]
774
+
775
+
776
+ class RegexMatchTupleTypeDef(TypedDict):
777
+ FieldToMatch: FieldToMatchTypeDef
778
+ TextTransformation: TextTransformationType
779
+ RegexPatternSetId: str
780
+
781
+
782
+ class SizeConstraintTypeDef(TypedDict):
783
+ FieldToMatch: FieldToMatchTypeDef
784
+ TextTransformation: TextTransformationType
785
+ ComparisonOperator: ComparisonOperatorType
786
+ Size: int
787
+
788
+
789
+ class SqlInjectionMatchTupleTypeDef(TypedDict):
790
+ FieldToMatch: FieldToMatchTypeDef
791
+ TextTransformation: TextTransformationType
792
+
793
+
794
+ class XssMatchTupleTypeDef(TypedDict):
795
+ FieldToMatch: FieldToMatchTypeDef
796
+ TextTransformation: TextTransformationType
797
+
798
+
799
+ class CreateWebACLMigrationStackResponseTypeDef(TypedDict):
800
+ S3ObjectUrl: str
801
+ ResponseMetadata: ResponseMetadataTypeDef
802
+
803
+
804
+ class DeleteByteMatchSetResponseTypeDef(TypedDict):
805
+ ChangeToken: str
806
+ ResponseMetadata: ResponseMetadataTypeDef
807
+
808
+
809
+ class DeleteGeoMatchSetResponseTypeDef(TypedDict):
810
+ ChangeToken: str
811
+ ResponseMetadata: ResponseMetadataTypeDef
812
+
813
+
814
+ class DeleteIPSetResponseTypeDef(TypedDict):
815
+ ChangeToken: str
816
+ ResponseMetadata: ResponseMetadataTypeDef
817
+
818
+
819
+ class DeleteRateBasedRuleResponseTypeDef(TypedDict):
820
+ ChangeToken: str
821
+ ResponseMetadata: ResponseMetadataTypeDef
822
+
823
+
824
+ class DeleteRegexMatchSetResponseTypeDef(TypedDict):
825
+ ChangeToken: str
826
+ ResponseMetadata: ResponseMetadataTypeDef
827
+
828
+
829
+ class DeleteRegexPatternSetResponseTypeDef(TypedDict):
830
+ ChangeToken: str
831
+ ResponseMetadata: ResponseMetadataTypeDef
832
+
833
+
834
+ class DeleteRuleGroupResponseTypeDef(TypedDict):
835
+ ChangeToken: str
836
+ ResponseMetadata: ResponseMetadataTypeDef
837
+
838
+
839
+ class DeleteRuleResponseTypeDef(TypedDict):
840
+ ChangeToken: str
841
+ ResponseMetadata: ResponseMetadataTypeDef
842
+
843
+
844
+ class DeleteSizeConstraintSetResponseTypeDef(TypedDict):
845
+ ChangeToken: str
846
+ ResponseMetadata: ResponseMetadataTypeDef
847
+
848
+
849
+ class DeleteSqlInjectionMatchSetResponseTypeDef(TypedDict):
850
+ ChangeToken: str
851
+ ResponseMetadata: ResponseMetadataTypeDef
852
+
853
+
854
+ class DeleteWebACLResponseTypeDef(TypedDict):
855
+ ChangeToken: str
856
+ ResponseMetadata: ResponseMetadataTypeDef
857
+
858
+
859
+ class DeleteXssMatchSetResponseTypeDef(TypedDict):
860
+ ChangeToken: str
861
+ ResponseMetadata: ResponseMetadataTypeDef
862
+
863
+
864
+ class GetChangeTokenResponseTypeDef(TypedDict):
865
+ ChangeToken: str
866
+ ResponseMetadata: ResponseMetadataTypeDef
867
+
868
+
869
+ class GetChangeTokenStatusResponseTypeDef(TypedDict):
870
+ ChangeTokenStatus: ChangeTokenStatusType
871
+ ResponseMetadata: ResponseMetadataTypeDef
872
+
873
+
874
+ class GetPermissionPolicyResponseTypeDef(TypedDict):
875
+ Policy: str
876
+ ResponseMetadata: ResponseMetadataTypeDef
877
+
878
+
879
+ class GetRateBasedRuleManagedKeysResponseTypeDef(TypedDict):
880
+ ManagedKeys: List[str]
881
+ NextMarker: str
882
+ ResponseMetadata: ResponseMetadataTypeDef
883
+
884
+
885
+ class ListByteMatchSetsResponseTypeDef(TypedDict):
886
+ NextMarker: str
887
+ ByteMatchSets: List[ByteMatchSetSummaryTypeDef]
888
+ ResponseMetadata: ResponseMetadataTypeDef
889
+
890
+
891
+ class ListResourcesForWebACLResponseTypeDef(TypedDict):
892
+ ResourceArns: List[str]
893
+ ResponseMetadata: ResponseMetadataTypeDef
894
+
895
+
896
+ class UpdateByteMatchSetResponseTypeDef(TypedDict):
897
+ ChangeToken: str
898
+ ResponseMetadata: ResponseMetadataTypeDef
899
+
900
+
901
+ class UpdateGeoMatchSetResponseTypeDef(TypedDict):
902
+ ChangeToken: str
903
+ ResponseMetadata: ResponseMetadataTypeDef
904
+
905
+
906
+ class UpdateIPSetResponseTypeDef(TypedDict):
907
+ ChangeToken: str
908
+ ResponseMetadata: ResponseMetadataTypeDef
909
+
910
+
911
+ class UpdateRateBasedRuleResponseTypeDef(TypedDict):
912
+ ChangeToken: str
913
+ ResponseMetadata: ResponseMetadataTypeDef
914
+
915
+
916
+ class UpdateRegexMatchSetResponseTypeDef(TypedDict):
917
+ ChangeToken: str
918
+ ResponseMetadata: ResponseMetadataTypeDef
919
+
920
+
921
+ class UpdateRegexPatternSetResponseTypeDef(TypedDict):
922
+ ChangeToken: str
923
+ ResponseMetadata: ResponseMetadataTypeDef
924
+
925
+
926
+ class UpdateRuleGroupResponseTypeDef(TypedDict):
927
+ ChangeToken: str
928
+ ResponseMetadata: ResponseMetadataTypeDef
929
+
930
+
931
+ class UpdateRuleResponseTypeDef(TypedDict):
932
+ ChangeToken: str
933
+ ResponseMetadata: ResponseMetadataTypeDef
934
+
935
+
936
+ class UpdateSizeConstraintSetResponseTypeDef(TypedDict):
937
+ ChangeToken: str
938
+ ResponseMetadata: ResponseMetadataTypeDef
939
+
940
+
941
+ class UpdateSqlInjectionMatchSetResponseTypeDef(TypedDict):
942
+ ChangeToken: str
943
+ ResponseMetadata: ResponseMetadataTypeDef
944
+
945
+
946
+ class UpdateWebACLResponseTypeDef(TypedDict):
947
+ ChangeToken: str
948
+ ResponseMetadata: ResponseMetadataTypeDef
949
+
950
+
951
+ class UpdateXssMatchSetResponseTypeDef(TypedDict):
952
+ ChangeToken: str
953
+ ResponseMetadata: ResponseMetadataTypeDef
954
+
955
+
956
+ class CreateRateBasedRuleRequestRequestTypeDef(TypedDict):
957
+ Name: str
958
+ MetricName: str
959
+ RateKey: Literal["IP"]
960
+ RateLimit: int
961
+ ChangeToken: str
962
+ Tags: NotRequired[Sequence[TagTypeDef]]
963
+
964
+
965
+ class CreateRuleGroupRequestRequestTypeDef(TypedDict):
966
+ Name: str
967
+ MetricName: str
968
+ ChangeToken: str
969
+ Tags: NotRequired[Sequence[TagTypeDef]]
970
+
971
+
972
+ class CreateRuleRequestRequestTypeDef(TypedDict):
973
+ Name: str
974
+ MetricName: str
975
+ ChangeToken: str
976
+ Tags: NotRequired[Sequence[TagTypeDef]]
977
+
978
+
979
+ class CreateWebACLRequestRequestTypeDef(TypedDict):
980
+ Name: str
981
+ MetricName: str
982
+ DefaultAction: WafActionTypeDef
983
+ ChangeToken: str
984
+ Tags: NotRequired[Sequence[TagTypeDef]]
985
+
986
+
987
+ class TagInfoForResourceTypeDef(TypedDict):
988
+ ResourceARN: NotRequired[str]
989
+ TagList: NotRequired[List[TagTypeDef]]
990
+
991
+
992
+ class TagResourceRequestRequestTypeDef(TypedDict):
993
+ ResourceARN: str
994
+ Tags: Sequence[TagTypeDef]
995
+
996
+
997
+ class CreateRegexPatternSetResponseTypeDef(TypedDict):
998
+ RegexPatternSet: RegexPatternSetTypeDef
999
+ ChangeToken: str
1000
+ ResponseMetadata: ResponseMetadataTypeDef
1001
+
1002
+
1003
+ class GetRegexPatternSetResponseTypeDef(TypedDict):
1004
+ RegexPatternSet: RegexPatternSetTypeDef
1005
+ ResponseMetadata: ResponseMetadataTypeDef
1006
+
1007
+
1008
+ class CreateRuleGroupResponseTypeDef(TypedDict):
1009
+ RuleGroup: RuleGroupTypeDef
1010
+ ChangeToken: str
1011
+ ResponseMetadata: ResponseMetadataTypeDef
1012
+
1013
+
1014
+ class GetRuleGroupResponseTypeDef(TypedDict):
1015
+ RuleGroup: RuleGroupTypeDef
1016
+ ResponseMetadata: ResponseMetadataTypeDef
1017
+
1018
+
1019
+ class GeoMatchSetTypeDef(TypedDict):
1020
+ GeoMatchSetId: str
1021
+ GeoMatchConstraints: List[GeoMatchConstraintTypeDef]
1022
+ Name: NotRequired[str]
1023
+
1024
+
1025
+ class GeoMatchSetUpdateTypeDef(TypedDict):
1026
+ Action: ChangeActionType
1027
+ GeoMatchConstraint: GeoMatchConstraintTypeDef
1028
+
1029
+
1030
+ class ListGeoMatchSetsResponseTypeDef(TypedDict):
1031
+ NextMarker: str
1032
+ GeoMatchSets: List[GeoMatchSetSummaryTypeDef]
1033
+ ResponseMetadata: ResponseMetadataTypeDef
1034
+
1035
+
1036
+ class GetWebACLForResourceResponseTypeDef(TypedDict):
1037
+ WebACLSummary: WebACLSummaryTypeDef
1038
+ ResponseMetadata: ResponseMetadataTypeDef
1039
+
1040
+
1041
+ class ListWebACLsResponseTypeDef(TypedDict):
1042
+ NextMarker: str
1043
+ WebACLs: List[WebACLSummaryTypeDef]
1044
+ ResponseMetadata: ResponseMetadataTypeDef
1045
+
1046
+
1047
+ class HTTPRequestTypeDef(TypedDict):
1048
+ ClientIP: NotRequired[str]
1049
+ Country: NotRequired[str]
1050
+ URI: NotRequired[str]
1051
+ Method: NotRequired[str]
1052
+ HTTPVersion: NotRequired[str]
1053
+ Headers: NotRequired[List[HTTPHeaderTypeDef]]
1054
+
1055
+
1056
+ class IPSetTypeDef(TypedDict):
1057
+ IPSetId: str
1058
+ IPSetDescriptors: List[IPSetDescriptorTypeDef]
1059
+ Name: NotRequired[str]
1060
+
1061
+
1062
+ class IPSetUpdateTypeDef(TypedDict):
1063
+ Action: ChangeActionType
1064
+ IPSetDescriptor: IPSetDescriptorTypeDef
1065
+
1066
+
1067
+ class ListIPSetsResponseTypeDef(TypedDict):
1068
+ NextMarker: str
1069
+ IPSets: List[IPSetSummaryTypeDef]
1070
+ ResponseMetadata: ResponseMetadataTypeDef
1071
+
1072
+
1073
+ class ListRateBasedRulesResponseTypeDef(TypedDict):
1074
+ NextMarker: str
1075
+ Rules: List[RuleSummaryTypeDef]
1076
+ ResponseMetadata: ResponseMetadataTypeDef
1077
+
1078
+
1079
+ class ListRulesResponseTypeDef(TypedDict):
1080
+ NextMarker: str
1081
+ Rules: List[RuleSummaryTypeDef]
1082
+ ResponseMetadata: ResponseMetadataTypeDef
1083
+
1084
+
1085
+ class ListRegexMatchSetsResponseTypeDef(TypedDict):
1086
+ NextMarker: str
1087
+ RegexMatchSets: List[RegexMatchSetSummaryTypeDef]
1088
+ ResponseMetadata: ResponseMetadataTypeDef
1089
+
1090
+
1091
+ class ListRegexPatternSetsResponseTypeDef(TypedDict):
1092
+ NextMarker: str
1093
+ RegexPatternSets: List[RegexPatternSetSummaryTypeDef]
1094
+ ResponseMetadata: ResponseMetadataTypeDef
1095
+
1096
+
1097
+ class ListRuleGroupsResponseTypeDef(TypedDict):
1098
+ NextMarker: str
1099
+ RuleGroups: List[RuleGroupSummaryTypeDef]
1100
+ ResponseMetadata: ResponseMetadataTypeDef
1101
+
1102
+
1103
+ class ListSizeConstraintSetsResponseTypeDef(TypedDict):
1104
+ NextMarker: str
1105
+ SizeConstraintSets: List[SizeConstraintSetSummaryTypeDef]
1106
+ ResponseMetadata: ResponseMetadataTypeDef
1107
+
1108
+
1109
+ class ListSqlInjectionMatchSetsResponseTypeDef(TypedDict):
1110
+ NextMarker: str
1111
+ SqlInjectionMatchSets: List[SqlInjectionMatchSetSummaryTypeDef]
1112
+ ResponseMetadata: ResponseMetadataTypeDef
1113
+
1114
+
1115
+ class ListSubscribedRuleGroupsResponseTypeDef(TypedDict):
1116
+ NextMarker: str
1117
+ RuleGroups: List[SubscribedRuleGroupSummaryTypeDef]
1118
+ ResponseMetadata: ResponseMetadataTypeDef
1119
+
1120
+
1121
+ class ListXssMatchSetsResponseTypeDef(TypedDict):
1122
+ NextMarker: str
1123
+ XssMatchSets: List[XssMatchSetSummaryTypeDef]
1124
+ ResponseMetadata: ResponseMetadataTypeDef
1125
+
1126
+
1127
+ class RateBasedRuleTypeDef(TypedDict):
1128
+ RuleId: str
1129
+ MatchPredicates: List[PredicateTypeDef]
1130
+ RateKey: Literal["IP"]
1131
+ RateLimit: int
1132
+ Name: NotRequired[str]
1133
+ MetricName: NotRequired[str]
1134
+
1135
+
1136
+ class RuleTypeDef(TypedDict):
1137
+ RuleId: str
1138
+ Predicates: List[PredicateTypeDef]
1139
+ Name: NotRequired[str]
1140
+ MetricName: NotRequired[str]
1141
+
1142
+
1143
+ class RuleUpdateTypeDef(TypedDict):
1144
+ Action: ChangeActionType
1145
+ Predicate: PredicateTypeDef
1146
+
1147
+
1148
+ class UpdateRegexPatternSetRequestRequestTypeDef(TypedDict):
1149
+ RegexPatternSetId: str
1150
+ Updates: Sequence[RegexPatternSetUpdateTypeDef]
1151
+ ChangeToken: str
1152
+
1153
+
1154
+ class TimeWindowTypeDef(TypedDict):
1155
+ StartTime: TimestampTypeDef
1156
+ EndTime: TimestampTypeDef
1157
+
1158
+
1159
+ class ListActivatedRulesInRuleGroupResponseTypeDef(TypedDict):
1160
+ NextMarker: str
1161
+ ActivatedRules: List[ActivatedRuleOutputTypeDef]
1162
+ ResponseMetadata: ResponseMetadataTypeDef
1163
+
1164
+
1165
+ class WebACLTypeDef(TypedDict):
1166
+ WebACLId: str
1167
+ DefaultAction: WafActionTypeDef
1168
+ Rules: List[ActivatedRuleOutputTypeDef]
1169
+ Name: NotRequired[str]
1170
+ MetricName: NotRequired[str]
1171
+ WebACLArn: NotRequired[str]
1172
+
1173
+
1174
+ ActivatedRuleUnionTypeDef = Union[ActivatedRuleTypeDef, ActivatedRuleOutputTypeDef]
1175
+
1176
+
1177
+ class ByteMatchSetTypeDef(TypedDict):
1178
+ ByteMatchSetId: str
1179
+ ByteMatchTuples: List[ByteMatchTupleOutputTypeDef]
1180
+ Name: NotRequired[str]
1181
+
1182
+
1183
+ ByteMatchTupleUnionTypeDef = Union[ByteMatchTupleTypeDef, ByteMatchTupleOutputTypeDef]
1184
+
1185
+
1186
+ class GetLoggingConfigurationResponseTypeDef(TypedDict):
1187
+ LoggingConfiguration: LoggingConfigurationOutputTypeDef
1188
+ ResponseMetadata: ResponseMetadataTypeDef
1189
+
1190
+
1191
+ class ListLoggingConfigurationsResponseTypeDef(TypedDict):
1192
+ LoggingConfigurations: List[LoggingConfigurationOutputTypeDef]
1193
+ NextMarker: str
1194
+ ResponseMetadata: ResponseMetadataTypeDef
1195
+
1196
+
1197
+ class PutLoggingConfigurationResponseTypeDef(TypedDict):
1198
+ LoggingConfiguration: LoggingConfigurationOutputTypeDef
1199
+ ResponseMetadata: ResponseMetadataTypeDef
1200
+
1201
+
1202
+ class PutLoggingConfigurationRequestRequestTypeDef(TypedDict):
1203
+ LoggingConfiguration: LoggingConfigurationTypeDef
1204
+
1205
+
1206
+ class RegexMatchSetTypeDef(TypedDict):
1207
+ RegexMatchSetId: NotRequired[str]
1208
+ Name: NotRequired[str]
1209
+ RegexMatchTuples: NotRequired[List[RegexMatchTupleTypeDef]]
1210
+
1211
+
1212
+ class RegexMatchSetUpdateTypeDef(TypedDict):
1213
+ Action: ChangeActionType
1214
+ RegexMatchTuple: RegexMatchTupleTypeDef
1215
+
1216
+
1217
+ class SizeConstraintSetTypeDef(TypedDict):
1218
+ SizeConstraintSetId: str
1219
+ SizeConstraints: List[SizeConstraintTypeDef]
1220
+ Name: NotRequired[str]
1221
+
1222
+
1223
+ class SizeConstraintSetUpdateTypeDef(TypedDict):
1224
+ Action: ChangeActionType
1225
+ SizeConstraint: SizeConstraintTypeDef
1226
+
1227
+
1228
+ class SqlInjectionMatchSetTypeDef(TypedDict):
1229
+ SqlInjectionMatchSetId: str
1230
+ SqlInjectionMatchTuples: List[SqlInjectionMatchTupleTypeDef]
1231
+ Name: NotRequired[str]
1232
+
1233
+
1234
+ class SqlInjectionMatchSetUpdateTypeDef(TypedDict):
1235
+ Action: ChangeActionType
1236
+ SqlInjectionMatchTuple: SqlInjectionMatchTupleTypeDef
1237
+
1238
+
1239
+ class XssMatchSetTypeDef(TypedDict):
1240
+ XssMatchSetId: str
1241
+ XssMatchTuples: List[XssMatchTupleTypeDef]
1242
+ Name: NotRequired[str]
1243
+
1244
+
1245
+ class XssMatchSetUpdateTypeDef(TypedDict):
1246
+ Action: ChangeActionType
1247
+ XssMatchTuple: XssMatchTupleTypeDef
1248
+
1249
+
1250
+ class ListTagsForResourceResponseTypeDef(TypedDict):
1251
+ NextMarker: str
1252
+ TagInfoForResource: TagInfoForResourceTypeDef
1253
+ ResponseMetadata: ResponseMetadataTypeDef
1254
+
1255
+
1256
+ class CreateGeoMatchSetResponseTypeDef(TypedDict):
1257
+ GeoMatchSet: GeoMatchSetTypeDef
1258
+ ChangeToken: str
1259
+ ResponseMetadata: ResponseMetadataTypeDef
1260
+
1261
+
1262
+ class GetGeoMatchSetResponseTypeDef(TypedDict):
1263
+ GeoMatchSet: GeoMatchSetTypeDef
1264
+ ResponseMetadata: ResponseMetadataTypeDef
1265
+
1266
+
1267
+ class UpdateGeoMatchSetRequestRequestTypeDef(TypedDict):
1268
+ GeoMatchSetId: str
1269
+ ChangeToken: str
1270
+ Updates: Sequence[GeoMatchSetUpdateTypeDef]
1271
+
1272
+
1273
+ class SampledHTTPRequestTypeDef(TypedDict):
1274
+ Request: HTTPRequestTypeDef
1275
+ Weight: int
1276
+ Timestamp: NotRequired[datetime]
1277
+ Action: NotRequired[str]
1278
+ RuleWithinRuleGroup: NotRequired[str]
1279
+
1280
+
1281
+ class CreateIPSetResponseTypeDef(TypedDict):
1282
+ IPSet: IPSetTypeDef
1283
+ ChangeToken: str
1284
+ ResponseMetadata: ResponseMetadataTypeDef
1285
+
1286
+
1287
+ class GetIPSetResponseTypeDef(TypedDict):
1288
+ IPSet: IPSetTypeDef
1289
+ ResponseMetadata: ResponseMetadataTypeDef
1290
+
1291
+
1292
+ class UpdateIPSetRequestRequestTypeDef(TypedDict):
1293
+ IPSetId: str
1294
+ ChangeToken: str
1295
+ Updates: Sequence[IPSetUpdateTypeDef]
1296
+
1297
+
1298
+ class CreateRateBasedRuleResponseTypeDef(TypedDict):
1299
+ Rule: RateBasedRuleTypeDef
1300
+ ChangeToken: str
1301
+ ResponseMetadata: ResponseMetadataTypeDef
1302
+
1303
+
1304
+ class GetRateBasedRuleResponseTypeDef(TypedDict):
1305
+ Rule: RateBasedRuleTypeDef
1306
+ ResponseMetadata: ResponseMetadataTypeDef
1307
+
1308
+
1309
+ class CreateRuleResponseTypeDef(TypedDict):
1310
+ Rule: RuleTypeDef
1311
+ ChangeToken: str
1312
+ ResponseMetadata: ResponseMetadataTypeDef
1313
+
1314
+
1315
+ class GetRuleResponseTypeDef(TypedDict):
1316
+ Rule: RuleTypeDef
1317
+ ResponseMetadata: ResponseMetadataTypeDef
1318
+
1319
+
1320
+ class UpdateRateBasedRuleRequestRequestTypeDef(TypedDict):
1321
+ RuleId: str
1322
+ ChangeToken: str
1323
+ Updates: Sequence[RuleUpdateTypeDef]
1324
+ RateLimit: int
1325
+
1326
+
1327
+ class UpdateRuleRequestRequestTypeDef(TypedDict):
1328
+ RuleId: str
1329
+ ChangeToken: str
1330
+ Updates: Sequence[RuleUpdateTypeDef]
1331
+
1332
+
1333
+ class GetSampledRequestsRequestRequestTypeDef(TypedDict):
1334
+ WebAclId: str
1335
+ RuleId: str
1336
+ TimeWindow: TimeWindowTypeDef
1337
+ MaxItems: int
1338
+
1339
+
1340
+ class CreateWebACLResponseTypeDef(TypedDict):
1341
+ WebACL: WebACLTypeDef
1342
+ ChangeToken: str
1343
+ ResponseMetadata: ResponseMetadataTypeDef
1344
+
1345
+
1346
+ class GetWebACLResponseTypeDef(TypedDict):
1347
+ WebACL: WebACLTypeDef
1348
+ ResponseMetadata: ResponseMetadataTypeDef
1349
+
1350
+
1351
+ class RuleGroupUpdateTypeDef(TypedDict):
1352
+ Action: ChangeActionType
1353
+ ActivatedRule: ActivatedRuleUnionTypeDef
1354
+
1355
+
1356
+ class WebACLUpdateTypeDef(TypedDict):
1357
+ Action: ChangeActionType
1358
+ ActivatedRule: ActivatedRuleUnionTypeDef
1359
+
1360
+
1361
+ class CreateByteMatchSetResponseTypeDef(TypedDict):
1362
+ ByteMatchSet: ByteMatchSetTypeDef
1363
+ ChangeToken: str
1364
+ ResponseMetadata: ResponseMetadataTypeDef
1365
+
1366
+
1367
+ class GetByteMatchSetResponseTypeDef(TypedDict):
1368
+ ByteMatchSet: ByteMatchSetTypeDef
1369
+ ResponseMetadata: ResponseMetadataTypeDef
1370
+
1371
+
1372
+ class ByteMatchSetUpdateTypeDef(TypedDict):
1373
+ Action: ChangeActionType
1374
+ ByteMatchTuple: ByteMatchTupleUnionTypeDef
1375
+
1376
+
1377
+ class CreateRegexMatchSetResponseTypeDef(TypedDict):
1378
+ RegexMatchSet: RegexMatchSetTypeDef
1379
+ ChangeToken: str
1380
+ ResponseMetadata: ResponseMetadataTypeDef
1381
+
1382
+
1383
+ class GetRegexMatchSetResponseTypeDef(TypedDict):
1384
+ RegexMatchSet: RegexMatchSetTypeDef
1385
+ ResponseMetadata: ResponseMetadataTypeDef
1386
+
1387
+
1388
+ class UpdateRegexMatchSetRequestRequestTypeDef(TypedDict):
1389
+ RegexMatchSetId: str
1390
+ Updates: Sequence[RegexMatchSetUpdateTypeDef]
1391
+ ChangeToken: str
1392
+
1393
+
1394
+ class CreateSizeConstraintSetResponseTypeDef(TypedDict):
1395
+ SizeConstraintSet: SizeConstraintSetTypeDef
1396
+ ChangeToken: str
1397
+ ResponseMetadata: ResponseMetadataTypeDef
1398
+
1399
+
1400
+ class GetSizeConstraintSetResponseTypeDef(TypedDict):
1401
+ SizeConstraintSet: SizeConstraintSetTypeDef
1402
+ ResponseMetadata: ResponseMetadataTypeDef
1403
+
1404
+
1405
+ class UpdateSizeConstraintSetRequestRequestTypeDef(TypedDict):
1406
+ SizeConstraintSetId: str
1407
+ ChangeToken: str
1408
+ Updates: Sequence[SizeConstraintSetUpdateTypeDef]
1409
+
1410
+
1411
+ class CreateSqlInjectionMatchSetResponseTypeDef(TypedDict):
1412
+ SqlInjectionMatchSet: SqlInjectionMatchSetTypeDef
1413
+ ChangeToken: str
1414
+ ResponseMetadata: ResponseMetadataTypeDef
1415
+
1416
+
1417
+ class GetSqlInjectionMatchSetResponseTypeDef(TypedDict):
1418
+ SqlInjectionMatchSet: SqlInjectionMatchSetTypeDef
1419
+ ResponseMetadata: ResponseMetadataTypeDef
1420
+
1421
+
1422
+ class UpdateSqlInjectionMatchSetRequestRequestTypeDef(TypedDict):
1423
+ SqlInjectionMatchSetId: str
1424
+ ChangeToken: str
1425
+ Updates: Sequence[SqlInjectionMatchSetUpdateTypeDef]
1426
+
1427
+
1428
+ class CreateXssMatchSetResponseTypeDef(TypedDict):
1429
+ XssMatchSet: XssMatchSetTypeDef
1430
+ ChangeToken: str
1431
+ ResponseMetadata: ResponseMetadataTypeDef
1432
+
1433
+
1434
+ class GetXssMatchSetResponseTypeDef(TypedDict):
1435
+ XssMatchSet: XssMatchSetTypeDef
1436
+ ResponseMetadata: ResponseMetadataTypeDef
1437
+
1438
+
1439
+ class UpdateXssMatchSetRequestRequestTypeDef(TypedDict):
1440
+ XssMatchSetId: str
1441
+ ChangeToken: str
1442
+ Updates: Sequence[XssMatchSetUpdateTypeDef]
1443
+
1444
+
1445
+ class GetSampledRequestsResponseTypeDef(TypedDict):
1446
+ SampledRequests: List[SampledHTTPRequestTypeDef]
1447
+ PopulationSize: int
1448
+ TimeWindow: TimeWindowOutputTypeDef
1449
+ ResponseMetadata: ResponseMetadataTypeDef
1450
+
1451
+
1452
+ class UpdateRuleGroupRequestRequestTypeDef(TypedDict):
1453
+ RuleGroupId: str
1454
+ Updates: Sequence[RuleGroupUpdateTypeDef]
1455
+ ChangeToken: str
1456
+
1457
+
1458
+ class UpdateWebACLRequestRequestTypeDef(TypedDict):
1459
+ WebACLId: str
1460
+ ChangeToken: str
1461
+ Updates: NotRequired[Sequence[WebACLUpdateTypeDef]]
1462
+ DefaultAction: NotRequired[WafActionTypeDef]
1463
+
1464
+
1465
+ class UpdateByteMatchSetRequestRequestTypeDef(TypedDict):
1466
+ ByteMatchSetId: str
1467
+ ChangeToken: str
1468
+ Updates: Sequence[ByteMatchSetUpdateTypeDef]