localstack-core 4.10.1.dev42__py3-none-any.whl → 4.12.1.dev18__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.
Files changed (158) hide show
  1. localstack/aws/api/apigateway/__init__.py +42 -0
  2. localstack/aws/api/cloudformation/__init__.py +161 -0
  3. localstack/aws/api/ec2/__init__.py +1178 -12
  4. localstack/aws/api/iam/__init__.py +228 -0
  5. localstack/aws/api/kms/__init__.py +1 -0
  6. localstack/aws/api/lambda_/__init__.py +1034 -66
  7. localstack/aws/api/logs/__init__.py +500 -0
  8. localstack/aws/api/opensearch/__init__.py +100 -0
  9. localstack/aws/api/redshift/__init__.py +69 -0
  10. localstack/aws/api/resourcegroupstaggingapi/__init__.py +36 -0
  11. localstack/aws/api/route53/__init__.py +45 -0
  12. localstack/aws/api/route53resolver/__init__.py +1 -0
  13. localstack/aws/api/s3/__init__.py +64 -0
  14. localstack/aws/api/s3control/__init__.py +19 -0
  15. localstack/aws/api/secretsmanager/__init__.py +37 -23
  16. localstack/aws/api/stepfunctions/__init__.py +52 -10
  17. localstack/aws/api/sts/__init__.py +52 -0
  18. localstack/aws/connect.py +35 -15
  19. localstack/aws/handlers/logging.py +8 -4
  20. localstack/aws/handlers/service.py +11 -2
  21. localstack/aws/protocol/serializer.py +1 -1
  22. localstack/config.py +8 -0
  23. localstack/constants.py +3 -0
  24. localstack/deprecations.py +0 -6
  25. localstack/dev/kubernetes/__main__.py +39 -14
  26. localstack/runtime/analytics.py +11 -0
  27. localstack/services/acm/provider.py +17 -1
  28. localstack/services/apigateway/legacy/provider.py +28 -15
  29. localstack/services/cloudformation/engine/template_preparer.py +6 -2
  30. localstack/services/cloudformation/engine/v2/change_set_model.py +9 -0
  31. localstack/services/cloudformation/engine/v2/change_set_model_preproc.py +15 -1
  32. localstack/services/cloudformation/engine/v2/change_set_resource_support_checker.py +114 -0
  33. localstack/services/cloudformation/provider.py +26 -1
  34. localstack/services/cloudformation/provider_utils.py +20 -0
  35. localstack/services/cloudformation/resource_provider.py +5 -4
  36. localstack/services/cloudformation/scaffolding/__main__.py +94 -22
  37. localstack/services/cloudformation/v2/provider.py +41 -0
  38. localstack/services/cloudwatch/provider.py +10 -3
  39. localstack/services/cloudwatch/provider_v2.py +6 -3
  40. localstack/services/configservice/provider.py +5 -1
  41. localstack/services/dynamodb/provider.py +1 -0
  42. localstack/services/dynamodb/v2/provider.py +1 -0
  43. localstack/services/dynamodbstreams/provider.py +6 -0
  44. localstack/services/dynamodbstreams/v2/provider.py +6 -0
  45. localstack/services/ec2/provider.py +6 -0
  46. localstack/services/es/provider.py +6 -0
  47. localstack/services/events/provider.py +4 -0
  48. localstack/services/events/v1/provider.py +9 -0
  49. localstack/services/firehose/provider.py +5 -0
  50. localstack/services/iam/provider.py +4 -0
  51. localstack/services/kinesis/packages.py +1 -1
  52. localstack/services/kms/models.py +16 -22
  53. localstack/services/kms/provider.py +4 -0
  54. localstack/services/lambda_/analytics.py +11 -2
  55. localstack/services/lambda_/api_utils.py +37 -20
  56. localstack/services/lambda_/event_source_mapping/pollers/stream_poller.py +1 -1
  57. localstack/services/lambda_/invocation/assignment.py +4 -1
  58. localstack/services/lambda_/invocation/event_manager.py +15 -11
  59. localstack/services/lambda_/invocation/execution_environment.py +21 -2
  60. localstack/services/lambda_/invocation/lambda_models.py +31 -2
  61. localstack/services/lambda_/invocation/lambda_service.py +62 -3
  62. localstack/services/lambda_/invocation/models.py +9 -1
  63. localstack/services/lambda_/invocation/version_manager.py +18 -3
  64. localstack/services/lambda_/provider.py +307 -106
  65. localstack/services/lambda_/resource_providers/aws_lambda_function.py +33 -1
  66. localstack/services/lambda_/runtimes.py +3 -1
  67. localstack/services/logs/provider.py +9 -0
  68. localstack/services/opensearch/packages.py +34 -20
  69. localstack/services/opensearch/provider.py +53 -3
  70. localstack/services/resource_groups/provider.py +5 -1
  71. localstack/services/resourcegroupstaggingapi/provider.py +6 -1
  72. localstack/services/route53/provider.py +7 -0
  73. localstack/services/route53resolver/provider.py +5 -0
  74. localstack/services/s3/constants.py +5 -0
  75. localstack/services/s3/exceptions.py +9 -0
  76. localstack/services/s3/models.py +9 -1
  77. localstack/services/s3/provider.py +51 -43
  78. localstack/services/s3/utils.py +81 -15
  79. localstack/services/s3control/provider.py +107 -2
  80. localstack/services/s3control/validation.py +50 -0
  81. localstack/services/scheduler/provider.py +4 -2
  82. localstack/services/secretsmanager/provider.py +4 -0
  83. localstack/services/ses/provider.py +4 -0
  84. localstack/services/sns/constants.py +16 -1
  85. localstack/services/sns/provider.py +5 -0
  86. localstack/services/sns/publisher.py +15 -6
  87. localstack/services/sns/v2/models.py +9 -0
  88. localstack/services/sns/v2/provider.py +750 -19
  89. localstack/services/sns/v2/utils.py +12 -0
  90. localstack/services/sqs/constants.py +6 -0
  91. localstack/services/sqs/provider.py +9 -1
  92. localstack/services/sqs/resource_providers/aws_sqs_queue.py +61 -46
  93. localstack/services/ssm/provider.py +6 -0
  94. localstack/services/stepfunctions/asl/component/common/path/result_path.py +1 -1
  95. localstack/services/stepfunctions/asl/component/state/state_execution/execute_state.py +0 -1
  96. localstack/services/stepfunctions/asl/component/state/state_execution/state_map/state_map.py +0 -1
  97. localstack/services/stepfunctions/asl/component/state/state_execution/state_task/lambda_eval_utils.py +8 -8
  98. localstack/services/stepfunctions/asl/component/state/state_execution/state_task/{mock_eval_utils.py → local_mock_eval_utils.py} +13 -9
  99. localstack/services/stepfunctions/asl/component/state/state_execution/state_task/service/state_task_service.py +6 -6
  100. localstack/services/stepfunctions/asl/component/state/state_execution/state_task/service/state_task_service_callback.py +1 -1
  101. localstack/services/stepfunctions/asl/component/state/state_fail/state_fail.py +4 -0
  102. localstack/services/stepfunctions/asl/component/test_state/state/base_mock.py +118 -0
  103. localstack/services/stepfunctions/asl/component/test_state/state/common.py +82 -0
  104. localstack/services/stepfunctions/asl/component/test_state/state/execution.py +139 -0
  105. localstack/services/stepfunctions/asl/component/test_state/state/map.py +77 -0
  106. localstack/services/stepfunctions/asl/component/test_state/state/task.py +44 -0
  107. localstack/services/stepfunctions/asl/eval/environment.py +30 -22
  108. localstack/services/stepfunctions/asl/eval/states.py +1 -1
  109. localstack/services/stepfunctions/asl/eval/test_state/environment.py +49 -9
  110. localstack/services/stepfunctions/asl/eval/test_state/program_state.py +22 -0
  111. localstack/services/stepfunctions/asl/jsonata/jsonata.py +5 -1
  112. localstack/services/stepfunctions/asl/parse/preprocessor.py +67 -24
  113. localstack/services/stepfunctions/asl/parse/test_state/asl_parser.py +5 -4
  114. localstack/services/stepfunctions/asl/parse/test_state/preprocessor.py +222 -31
  115. localstack/services/stepfunctions/asl/static_analyser/test_state/test_state_analyser.py +256 -22
  116. localstack/services/stepfunctions/backend/execution.py +10 -11
  117. localstack/services/stepfunctions/backend/execution_worker.py +5 -5
  118. localstack/services/stepfunctions/backend/test_state/execution.py +36 -0
  119. localstack/services/stepfunctions/backend/test_state/execution_worker.py +33 -1
  120. localstack/services/stepfunctions/backend/test_state/test_state_mock.py +127 -0
  121. localstack/services/stepfunctions/local_mocking/__init__.py +9 -0
  122. localstack/services/stepfunctions/{mocking → local_mocking}/mock_config.py +24 -17
  123. localstack/services/stepfunctions/provider.py +83 -25
  124. localstack/services/stepfunctions/test_state/mock_config.py +47 -0
  125. localstack/services/sts/provider.py +7 -0
  126. localstack/services/support/provider.py +5 -1
  127. localstack/services/swf/provider.py +5 -1
  128. localstack/services/transcribe/provider.py +7 -0
  129. localstack/testing/aws/lambda_utils.py +1 -1
  130. localstack/testing/aws/util.py +2 -1
  131. localstack/testing/config.py +1 -0
  132. localstack/testing/pytest/fixtures.py +28 -0
  133. localstack/testing/snapshots/transformer_utility.py +5 -0
  134. localstack/utils/analytics/publisher.py +37 -155
  135. localstack/utils/analytics/service_request_aggregator.py +6 -4
  136. localstack/utils/aws/arns.py +7 -0
  137. localstack/utils/aws/client_types.py +2 -4
  138. localstack/utils/batching.py +258 -0
  139. localstack/utils/bootstrap.py +2 -2
  140. localstack/utils/catalog/catalog.py +3 -2
  141. localstack/utils/collections.py +23 -11
  142. localstack/utils/container_utils/container_client.py +22 -13
  143. localstack/utils/container_utils/docker_cmd_client.py +6 -6
  144. localstack/version.py +2 -2
  145. {localstack_core-4.10.1.dev42.dist-info → localstack_core-4.12.1.dev18.dist-info}/METADATA +7 -7
  146. {localstack_core-4.10.1.dev42.dist-info → localstack_core-4.12.1.dev18.dist-info}/RECORD +155 -146
  147. localstack_core-4.12.1.dev18.dist-info/plux.json +1 -0
  148. localstack/services/stepfunctions/mocking/__init__.py +0 -0
  149. localstack/utils/batch_policy.py +0 -124
  150. localstack_core-4.10.1.dev42.dist-info/plux.json +0 -1
  151. /localstack/services/stepfunctions/{mocking → local_mocking}/mock_config_file.py +0 -0
  152. {localstack_core-4.10.1.dev42.data → localstack_core-4.12.1.dev18.data}/scripts/localstack +0 -0
  153. {localstack_core-4.10.1.dev42.data → localstack_core-4.12.1.dev18.data}/scripts/localstack-supervisor +0 -0
  154. {localstack_core-4.10.1.dev42.data → localstack_core-4.12.1.dev18.data}/scripts/localstack.bat +0 -0
  155. {localstack_core-4.10.1.dev42.dist-info → localstack_core-4.12.1.dev18.dist-info}/WHEEL +0 -0
  156. {localstack_core-4.10.1.dev42.dist-info → localstack_core-4.12.1.dev18.dist-info}/entry_points.txt +0 -0
  157. {localstack_core-4.10.1.dev42.dist-info → localstack_core-4.12.1.dev18.dist-info}/licenses/LICENSE.txt +0 -0
  158. {localstack_core-4.10.1.dev42.dist-info → localstack_core-4.12.1.dev18.dist-info}/top_level.txt +0 -0
@@ -20,8 +20,12 @@ ClientToken = str
20
20
  CollectionRetentionDays = int
21
21
  Column = str
22
22
  DataProtectionPolicyDocument = str
23
+ DataSourceName = str
24
+ DataSourceType = str
25
+ DataType = str
23
26
  Days = int
24
27
  DefaultValue = float
28
+ DeletionProtectionEnabled = bool
25
29
  Delimiter = str
26
30
  DeliveryDestinationName = str
27
31
  DeliveryDestinationPolicy = str
@@ -66,7 +70,10 @@ Flatten = bool
66
70
  Force = bool
67
71
  ForceUpdate = bool
68
72
  FromKey = str
73
+ GetScheduledQueryHistoryMaxResults = int
69
74
  GrokMatch = str
75
+ GroupingIdentifierKey = str
76
+ GroupingIdentifierValue = str
70
77
  IncludeLinkedAccounts = bool
71
78
  InferredTokenName = str
72
79
  Integer = int
@@ -83,9 +90,14 @@ ListAnomaliesLimit = int
83
90
  ListLimit = int
84
91
  ListLogAnomalyDetectorsLimit = int
85
92
  ListLogGroupsForQueryMaxResults = int
93
+ ListLogGroupsRequestLimit = int
94
+ ListScheduledQueriesMaxResults = int
95
+ ListSourcesForS3TableIntegrationMaxResults = int
86
96
  Locale = str
87
97
  LogEventIndex = int
98
+ LogFieldName = str
88
99
  LogGroupArn = str
100
+ LogGroupCount = int
89
101
  LogGroupIdentifier = str
90
102
  LogGroupName = str
91
103
  LogGroupNamePattern = str
@@ -95,6 +107,7 @@ LogRecordPointer = str
95
107
  LogStreamName = str
96
108
  LogStreamSearchedCompletely = bool
97
109
  LogType = str
110
+ MappingVersion = str
98
111
  MatchPattern = str
99
112
  Message = str
100
113
  MetricName = str
@@ -129,6 +142,14 @@ RequestId = str
129
142
  ResourceIdentifier = str
130
143
  ResourceType = str
131
144
  RoleArn = str
145
+ S3TableIntegrationSourceIdentifier = str
146
+ S3TableIntegrationSourceStatusReason = str
147
+ S3Uri = str
148
+ ScheduleExpression = str
149
+ ScheduleTimezone = str
150
+ ScheduledQueryDescription = str
151
+ ScheduledQueryIdentifier = str
152
+ ScheduledQueryName = str
132
153
  SelectionCriteria = str
133
154
  SequenceToken = str
134
155
  Service = str
@@ -138,6 +159,7 @@ SourceTimezone = str
138
159
  SplitStringDelimiter = str
139
160
  StartFromHead = bool
140
161
  StatsValue = float
162
+ String = str
141
163
  Success = bool
142
164
  SystemField = str
143
165
  TagKey = str
@@ -157,6 +179,13 @@ ValueKey = str
157
179
  WithKey = str
158
180
 
159
181
 
182
+ class ActionStatus(StrEnum):
183
+ IN_PROGRESS = "IN_PROGRESS"
184
+ CLIENT_ERROR = "CLIENT_ERROR"
185
+ FAILED = "FAILED"
186
+ COMPLETE = "COMPLETE"
187
+
188
+
160
189
  class AnomalyDetectorStatus(StrEnum):
161
190
  INITIALIZING = "INITIALIZING"
162
191
  TRAINING = "TRAINING"
@@ -212,6 +241,14 @@ class EventSource(StrEnum):
212
241
  AWSWAF = "AWSWAF"
213
242
 
214
243
 
244
+ class ExecutionStatus(StrEnum):
245
+ Running = "Running"
246
+ InvalidQuery = "InvalidQuery"
247
+ Complete = "Complete"
248
+ Failed = "Failed"
249
+ Timeout = "Timeout"
250
+
251
+
215
252
  class ExportTaskStatusCode(StrEnum):
216
253
  CANCELLED = "CANCELLED"
217
254
  COMPLETED = "COMPLETED"
@@ -231,6 +268,11 @@ class IndexSource(StrEnum):
231
268
  LOG_GROUP = "LOG_GROUP"
232
269
 
233
270
 
271
+ class IndexType(StrEnum):
272
+ FACET = "FACET"
273
+ FIELD_INDEX = "FIELD_INDEX"
274
+
275
+
234
276
  class InheritedProperty(StrEnum):
235
277
  ACCOUNT_DATA_PROTECTION = "ACCOUNT_DATA_PROTECTION"
236
278
 
@@ -245,6 +287,11 @@ class IntegrationType(StrEnum):
245
287
  OPENSEARCH = "OPENSEARCH"
246
288
 
247
289
 
290
+ class ListAggregateLogGroupSummariesGroupBy(StrEnum):
291
+ DATA_SOURCE_NAME_TYPE_AND_FORMAT = "DATA_SOURCE_NAME_TYPE_AND_FORMAT"
292
+ DATA_SOURCE_NAME_AND_TYPE = "DATA_SOURCE_NAME_AND_TYPE"
293
+
294
+
248
295
  class LogGroupClass(StrEnum):
249
296
  STANDARD = "STANDARD"
250
297
  INFREQUENT_ACCESS = "INFREQUENT_ACCESS"
@@ -253,6 +300,7 @@ class LogGroupClass(StrEnum):
253
300
 
254
301
  class OCSFVersion(StrEnum):
255
302
  V1_1 = "V1.1"
303
+ V1_5 = "V1.5"
256
304
 
257
305
 
258
306
  class OpenSearchResourceStatusType(StrEnum):
@@ -303,6 +351,22 @@ class QueryStatus(StrEnum):
303
351
  Unknown = "Unknown"
304
352
 
305
353
 
354
+ class S3TableIntegrationSourceStatus(StrEnum):
355
+ ACTIVE = "ACTIVE"
356
+ UNHEALTHY = "UNHEALTHY"
357
+ FAILED = "FAILED"
358
+ DATA_SOURCE_DELETE_IN_PROGRESS = "DATA_SOURCE_DELETE_IN_PROGRESS"
359
+
360
+
361
+ class ScheduledQueryDestinationType(StrEnum):
362
+ S3 = "S3"
363
+
364
+
365
+ class ScheduledQueryState(StrEnum):
366
+ ENABLED = "ENABLED"
367
+ DISABLED = "DISABLED"
368
+
369
+
306
370
  class Scope(StrEnum):
307
371
  ALL = "ALL"
308
372
 
@@ -385,6 +449,12 @@ class DataAlreadyAcceptedException(ServiceException):
385
449
  expectedSequenceToken: SequenceToken | None
386
450
 
387
451
 
452
+ class InternalServerException(ServiceException):
453
+ code: str = "InternalServerException"
454
+ sender_fault: bool = False
455
+ status_code: int = 400
456
+
457
+
388
458
  class InternalStreamingException(ServiceException):
389
459
  code: str = "InternalStreamingException"
390
460
  sender_fault: bool = False
@@ -530,6 +600,20 @@ class AddKeys(TypedDict, total=False):
530
600
  entries: AddKeyEntries
531
601
 
532
602
 
603
+ class GroupingIdentifier(TypedDict, total=False):
604
+ key: GroupingIdentifierKey | None
605
+ value: GroupingIdentifierValue | None
606
+
607
+
608
+ GroupingIdentifiers = list[GroupingIdentifier]
609
+
610
+
611
+ class AggregateLogGroupSummary(TypedDict, total=False):
612
+ logGroupCount: LogGroupCount | None
613
+ groupingIdentifiers: GroupingIdentifiers | None
614
+
615
+
616
+ AggregateLogGroupSummaries = list[AggregateLogGroupSummary]
533
617
  AllowedFieldDelimiters = list[FieldDelimiter]
534
618
 
535
619
 
@@ -614,6 +698,20 @@ class AssociateKmsKeyRequest(ServiceRequest):
614
698
  resourceIdentifier: ResourceIdentifier | None
615
699
 
616
700
 
701
+ class DataSource(TypedDict, total=False):
702
+ name: DataSourceName
703
+ type: DataSourceType | None
704
+
705
+
706
+ class AssociateSourceToS3TableIntegrationRequest(ServiceRequest):
707
+ integrationArn: Arn
708
+ dataSource: DataSource
709
+
710
+
711
+ class AssociateSourceToS3TableIntegrationResponse(TypedDict, total=False):
712
+ identifier: S3TableIntegrationSourceIdentifier | None
713
+
714
+
617
715
  Columns = list[Column]
618
716
 
619
717
 
@@ -740,6 +838,7 @@ class CreateLogGroupRequest(ServiceRequest):
740
838
  kmsKeyId: KmsKeyId | None
741
839
  tags: Tags | None
742
840
  logGroupClass: LogGroupClass | None
841
+ deletionProtectionEnabled: DeletionProtectionEnabled | None
743
842
 
744
843
 
745
844
  class CreateLogStreamRequest(ServiceRequest):
@@ -747,8 +846,51 @@ class CreateLogStreamRequest(ServiceRequest):
747
846
  logStreamName: LogStreamName
748
847
 
749
848
 
849
+ class S3Configuration(TypedDict, total=False):
850
+ destinationIdentifier: S3Uri
851
+ roleArn: RoleArn
852
+
853
+
854
+ class DestinationConfiguration(TypedDict, total=False):
855
+ s3Configuration: S3Configuration
856
+
857
+
858
+ StartTimeOffset = int
859
+ ScheduledQueryLogGroupIdentifiers = list[LogGroupIdentifier]
860
+
861
+
862
+ class CreateScheduledQueryRequest(ServiceRequest):
863
+ name: ScheduledQueryName
864
+ description: ScheduledQueryDescription | None
865
+ queryLanguage: QueryLanguage
866
+ queryString: QueryString
867
+ logGroupIdentifiers: ScheduledQueryLogGroupIdentifiers | None
868
+ scheduleExpression: ScheduleExpression
869
+ timezone: ScheduleTimezone | None
870
+ startTimeOffset: StartTimeOffset | None
871
+ destinationConfiguration: DestinationConfiguration | None
872
+ scheduleStartTime: Timestamp | None
873
+ scheduleEndTime: Timestamp | None
874
+ executionRoleArn: RoleArn
875
+ state: ScheduledQueryState | None
876
+ tags: Tags | None
877
+
878
+
879
+ class CreateScheduledQueryResponse(TypedDict, total=False):
880
+ scheduledQueryArn: Arn | None
881
+ state: ScheduledQueryState | None
882
+
883
+
750
884
  DashboardViewerPrincipals = list[Arn]
751
885
  Data = bytes
886
+
887
+
888
+ class DataSourceFilter(TypedDict, total=False):
889
+ name: DataSourceName
890
+ type: DataSourceType | None
891
+
892
+
893
+ DataSourceFilters = list[DataSourceFilter]
752
894
  MatchPatterns = list[MatchPattern]
753
895
 
754
896
 
@@ -851,6 +993,14 @@ class DeleteRetentionPolicyRequest(ServiceRequest):
851
993
  logGroupName: LogGroupName
852
994
 
853
995
 
996
+ class DeleteScheduledQueryRequest(ServiceRequest):
997
+ identifier: ScheduledQueryIdentifier
998
+
999
+
1000
+ class DeleteScheduledQueryResponse(TypedDict, total=False):
1001
+ pass
1002
+
1003
+
854
1004
  class DeleteSubscriptionFilterRequest(ServiceRequest):
855
1005
  logGroupName: LogGroupName
856
1006
  filterName: FilterName
@@ -1030,6 +1180,7 @@ class FieldIndex(TypedDict, total=False):
1030
1180
  lastScanTime: Timestamp | None
1031
1181
  firstEventTime: Timestamp | None
1032
1182
  lastEventTime: Timestamp | None
1183
+ type: IndexType | None
1033
1184
 
1034
1185
 
1035
1186
  FieldIndexes = list[FieldIndex]
@@ -1094,6 +1245,7 @@ class LogGroup(TypedDict, total=False):
1094
1245
  inheritedProperties: InheritedProperties | None
1095
1246
  logGroupClass: LogGroupClass | None
1096
1247
  logGroupArn: Arn | None
1248
+ deletionProtectionEnabled: DeletionProtectionEnabled | None
1097
1249
 
1098
1250
 
1099
1251
  LogGroups = list[LogGroup]
@@ -1286,6 +1438,14 @@ class DisassociateKmsKeyRequest(ServiceRequest):
1286
1438
  resourceIdentifier: ResourceIdentifier | None
1287
1439
 
1288
1440
 
1441
+ class DisassociateSourceFromS3TableIntegrationRequest(ServiceRequest):
1442
+ identifier: S3TableIntegrationSourceIdentifier
1443
+
1444
+
1445
+ class DisassociateSourceFromS3TableIntegrationResponse(TypedDict, total=False):
1446
+ identifier: S3TableIntegrationSourceIdentifier | None
1447
+
1448
+
1289
1449
  EntityAttributes = dict[EntityAttributesKey, EntityAttributesValue]
1290
1450
  EntityKeyAttributes = dict[EntityKeyAttributesKey, EntityKeyAttributesValue]
1291
1451
 
@@ -1296,7 +1456,9 @@ class Entity(TypedDict, total=False):
1296
1456
 
1297
1457
 
1298
1458
  EventNumber = int
1459
+ ExecutionStatusList = list[ExecutionStatus]
1299
1460
  ExtractedValues = dict[Token, Value]
1461
+ FieldIndexNames = list[FieldIndexName]
1300
1462
 
1301
1463
 
1302
1464
  class FieldsData(TypedDict, total=False):
@@ -1508,6 +1670,29 @@ class GetLogEventsResponse(TypedDict, total=False):
1508
1670
  nextBackwardToken: NextToken | None
1509
1671
 
1510
1672
 
1673
+ class GetLogFieldsRequest(ServiceRequest):
1674
+ dataSourceName: DataSourceName
1675
+ dataSourceType: DataSourceType
1676
+
1677
+
1678
+ LogFieldsList = list["LogFieldsListItem"]
1679
+
1680
+
1681
+ class LogFieldType(TypedDict, total=False):
1682
+ type: "DataType | None"
1683
+ element: "LogFieldType | None"
1684
+ fields: "LogFieldsList | None"
1685
+
1686
+
1687
+ class LogFieldsListItem(TypedDict, total=False):
1688
+ logFieldName: LogFieldName | None
1689
+ logFieldType: LogFieldType | None
1690
+
1691
+
1692
+ class GetLogFieldsResponse(TypedDict, total=False):
1693
+ logFields: LogFieldsList | None
1694
+
1695
+
1511
1696
  class GetLogGroupFieldsRequest(ServiceRequest):
1512
1697
  logGroupName: LogGroupName | None
1513
1698
  time: Timestamp | None
@@ -1582,6 +1767,69 @@ class GetQueryResultsResponse(TypedDict, total=False):
1582
1767
  encryptionKey: EncryptionKey | None
1583
1768
 
1584
1769
 
1770
+ class GetScheduledQueryHistoryRequest(ServiceRequest):
1771
+ identifier: ScheduledQueryIdentifier
1772
+ startTime: Timestamp
1773
+ endTime: Timestamp
1774
+ executionStatuses: ExecutionStatusList | None
1775
+ maxResults: GetScheduledQueryHistoryMaxResults | None
1776
+ nextToken: NextToken | None
1777
+
1778
+
1779
+ class ScheduledQueryDestination(TypedDict, total=False):
1780
+ destinationType: ScheduledQueryDestinationType | None
1781
+ destinationIdentifier: String | None
1782
+ status: ActionStatus | None
1783
+ processedIdentifier: String | None
1784
+ errorMessage: String | None
1785
+
1786
+
1787
+ ScheduledQueryDestinationList = list[ScheduledQueryDestination]
1788
+
1789
+
1790
+ class TriggerHistoryRecord(TypedDict, total=False):
1791
+ queryId: QueryId | None
1792
+ executionStatus: ExecutionStatus | None
1793
+ triggeredTimestamp: Timestamp | None
1794
+ errorMessage: String | None
1795
+ destinations: ScheduledQueryDestinationList | None
1796
+
1797
+
1798
+ TriggerHistoryRecordList = list[TriggerHistoryRecord]
1799
+
1800
+
1801
+ class GetScheduledQueryHistoryResponse(TypedDict, total=False):
1802
+ name: ScheduledQueryName | None
1803
+ scheduledQueryArn: Arn | None
1804
+ triggerHistory: TriggerHistoryRecordList | None
1805
+ nextToken: NextToken | None
1806
+
1807
+
1808
+ class GetScheduledQueryRequest(ServiceRequest):
1809
+ identifier: ScheduledQueryIdentifier
1810
+
1811
+
1812
+ class GetScheduledQueryResponse(TypedDict, total=False):
1813
+ scheduledQueryArn: Arn | None
1814
+ name: ScheduledQueryName | None
1815
+ description: ScheduledQueryDescription | None
1816
+ queryLanguage: QueryLanguage | None
1817
+ queryString: QueryString | None
1818
+ logGroupIdentifiers: ScheduledQueryLogGroupIdentifiers | None
1819
+ scheduleExpression: ScheduleExpression | None
1820
+ timezone: ScheduleTimezone | None
1821
+ startTimeOffset: StartTimeOffset | None
1822
+ destinationConfiguration: DestinationConfiguration | None
1823
+ state: ScheduledQueryState | None
1824
+ lastTriggeredTime: Timestamp | None
1825
+ lastExecutionStatus: ExecutionStatus | None
1826
+ scheduleStartTime: Timestamp | None
1827
+ scheduleEndTime: Timestamp | None
1828
+ executionRoleArn: RoleArn | None
1829
+ creationTime: Timestamp | None
1830
+ lastUpdatedTime: Timestamp | None
1831
+
1832
+
1585
1833
  class GetTransformerRequest(ServiceRequest):
1586
1834
  logGroupIdentifier: LogGroupIdentifier
1587
1835
 
@@ -1669,6 +1917,7 @@ class ParseToOCSF(TypedDict, total=False):
1669
1917
  source: Source | None
1670
1918
  eventSource: EventSource
1671
1919
  ocsfVersion: OCSFVersion
1920
+ mappingVersion: MappingVersion | None
1672
1921
 
1673
1922
 
1674
1923
  class ParseRoute53(TypedDict, total=False):
@@ -1781,6 +2030,22 @@ class IntegrationSummary(TypedDict, total=False):
1781
2030
  IntegrationSummaries = list[IntegrationSummary]
1782
2031
 
1783
2032
 
2033
+ class ListAggregateLogGroupSummariesRequest(ServiceRequest):
2034
+ accountIdentifiers: AccountIds | None
2035
+ includeLinkedAccounts: IncludeLinkedAccounts | None
2036
+ logGroupClass: LogGroupClass | None
2037
+ logGroupNamePattern: LogGroupNameRegexPattern | None
2038
+ dataSources: DataSourceFilters | None
2039
+ groupBy: ListAggregateLogGroupSummariesGroupBy
2040
+ nextToken: NextToken | None
2041
+ limit: ListLogGroupsRequestLimit | None
2042
+
2043
+
2044
+ class ListAggregateLogGroupSummariesResponse(TypedDict, total=False):
2045
+ aggregateLogGroupSummaries: AggregateLogGroupSummaries | None
2046
+ nextToken: NextToken | None
2047
+
2048
+
1784
2049
  class ListAnomaliesRequest(ServiceRequest):
1785
2050
  anomalyDetectorArn: AnomalyDetectorArn | None
1786
2051
  suppressionState: SuppressionState | None
@@ -1835,6 +2100,8 @@ class ListLogGroupsRequest(ServiceRequest):
1835
2100
  accountIdentifiers: AccountIds | None
1836
2101
  nextToken: NextToken | None
1837
2102
  limit: ListLimit | None
2103
+ dataSources: DataSourceFilters | None
2104
+ fieldIndexNames: FieldIndexNames | None
1838
2105
 
1839
2106
 
1840
2107
  class LogGroupSummary(TypedDict, total=False):
@@ -1851,6 +2118,55 @@ class ListLogGroupsResponse(TypedDict, total=False):
1851
2118
  nextToken: NextToken | None
1852
2119
 
1853
2120
 
2121
+ class ListScheduledQueriesRequest(ServiceRequest):
2122
+ maxResults: ListScheduledQueriesMaxResults | None
2123
+ nextToken: NextToken | None
2124
+ state: ScheduledQueryState | None
2125
+
2126
+
2127
+ class ScheduledQuerySummary(TypedDict, total=False):
2128
+ scheduledQueryArn: Arn | None
2129
+ name: ScheduledQueryName | None
2130
+ state: ScheduledQueryState | None
2131
+ lastTriggeredTime: Timestamp | None
2132
+ lastExecutionStatus: ExecutionStatus | None
2133
+ scheduleExpression: ScheduleExpression | None
2134
+ timezone: ScheduleTimezone | None
2135
+ destinationConfiguration: DestinationConfiguration | None
2136
+ creationTime: Timestamp | None
2137
+ lastUpdatedTime: Timestamp | None
2138
+
2139
+
2140
+ ScheduledQuerySummaryList = list[ScheduledQuerySummary]
2141
+
2142
+
2143
+ class ListScheduledQueriesResponse(TypedDict, total=False):
2144
+ nextToken: NextToken | None
2145
+ scheduledQueries: ScheduledQuerySummaryList | None
2146
+
2147
+
2148
+ class ListSourcesForS3TableIntegrationRequest(ServiceRequest):
2149
+ integrationArn: Arn
2150
+ maxResults: ListSourcesForS3TableIntegrationMaxResults | None
2151
+ nextToken: NextToken | None
2152
+
2153
+
2154
+ class S3TableIntegrationSource(TypedDict, total=False):
2155
+ identifier: S3TableIntegrationSourceIdentifier | None
2156
+ dataSource: DataSource | None
2157
+ status: S3TableIntegrationSourceStatus | None
2158
+ statusReason: S3TableIntegrationSourceStatusReason | None
2159
+ createdTimeStamp: Timestamp | None
2160
+
2161
+
2162
+ S3TableIntegrationSources = list[S3TableIntegrationSource]
2163
+
2164
+
2165
+ class ListSourcesForS3TableIntegrationResponse(TypedDict, total=False):
2166
+ sources: S3TableIntegrationSources | None
2167
+ nextToken: NextToken | None
2168
+
2169
+
1854
2170
  class ListTagsForResourceRequest(ServiceRequest):
1855
2171
  resourceArn: AmazonResourceName
1856
2172
 
@@ -2034,6 +2350,11 @@ class PutLogEventsResponse(TypedDict, total=False):
2034
2350
  rejectedEntityInfo: RejectedEntityInfo | None
2035
2351
 
2036
2352
 
2353
+ class PutLogGroupDeletionProtectionRequest(ServiceRequest):
2354
+ logGroupIdentifier: LogGroupIdentifier
2355
+ deletionProtectionEnabled: DeletionProtectionEnabled
2356
+
2357
+
2037
2358
  class PutMetricFilterRequest(ServiceRequest):
2038
2359
  logGroupName: LogGroupName
2039
2360
  filterName: FilterName
@@ -2219,6 +2540,43 @@ class UpdateLogAnomalyDetectorRequest(ServiceRequest):
2219
2540
  enabled: Boolean
2220
2541
 
2221
2542
 
2543
+ class UpdateScheduledQueryRequest(ServiceRequest):
2544
+ identifier: ScheduledQueryIdentifier
2545
+ description: ScheduledQueryDescription | None
2546
+ queryLanguage: QueryLanguage
2547
+ queryString: QueryString
2548
+ logGroupIdentifiers: ScheduledQueryLogGroupIdentifiers | None
2549
+ scheduleExpression: ScheduleExpression
2550
+ timezone: ScheduleTimezone | None
2551
+ startTimeOffset: StartTimeOffset | None
2552
+ destinationConfiguration: DestinationConfiguration | None
2553
+ scheduleStartTime: Timestamp | None
2554
+ scheduleEndTime: Timestamp | None
2555
+ executionRoleArn: RoleArn
2556
+ state: ScheduledQueryState | None
2557
+
2558
+
2559
+ class UpdateScheduledQueryResponse(TypedDict, total=False):
2560
+ scheduledQueryArn: Arn | None
2561
+ name: ScheduledQueryName | None
2562
+ description: ScheduledQueryDescription | None
2563
+ queryLanguage: QueryLanguage | None
2564
+ queryString: QueryString | None
2565
+ logGroupIdentifiers: ScheduledQueryLogGroupIdentifiers | None
2566
+ scheduleExpression: ScheduleExpression | None
2567
+ timezone: ScheduleTimezone | None
2568
+ startTimeOffset: StartTimeOffset | None
2569
+ destinationConfiguration: DestinationConfiguration | None
2570
+ state: ScheduledQueryState | None
2571
+ lastTriggeredTime: Timestamp | None
2572
+ lastExecutionStatus: ExecutionStatus | None
2573
+ scheduleStartTime: Timestamp | None
2574
+ scheduleEndTime: Timestamp | None
2575
+ executionRoleArn: RoleArn | None
2576
+ creationTime: Timestamp | None
2577
+ lastUpdatedTime: Timestamp | None
2578
+
2579
+
2222
2580
  class LogsApi:
2223
2581
  service: str = "logs"
2224
2582
  version: str = "2014-03-28"
@@ -2234,6 +2592,12 @@ class LogsApi:
2234
2592
  ) -> None:
2235
2593
  raise NotImplementedError
2236
2594
 
2595
+ @handler("AssociateSourceToS3TableIntegration")
2596
+ def associate_source_to_s3_table_integration(
2597
+ self, context: RequestContext, integration_arn: Arn, data_source: DataSource, **kwargs
2598
+ ) -> AssociateSourceToS3TableIntegrationResponse:
2599
+ raise NotImplementedError
2600
+
2237
2601
  @handler("CancelExportTask")
2238
2602
  def cancel_export_task(self, context: RequestContext, task_id: ExportTaskId, **kwargs) -> None:
2239
2603
  raise NotImplementedError
@@ -2281,6 +2645,7 @@ class LogsApi:
2281
2645
  kms_key_id: KmsKeyId | None = None,
2282
2646
  tags: Tags | None = None,
2283
2647
  log_group_class: LogGroupClass | None = None,
2648
+ deletion_protection_enabled: DeletionProtectionEnabled | None = None,
2284
2649
  **kwargs,
2285
2650
  ) -> None:
2286
2651
  raise NotImplementedError
@@ -2295,6 +2660,28 @@ class LogsApi:
2295
2660
  ) -> None:
2296
2661
  raise NotImplementedError
2297
2662
 
2663
+ @handler("CreateScheduledQuery")
2664
+ def create_scheduled_query(
2665
+ self,
2666
+ context: RequestContext,
2667
+ name: ScheduledQueryName,
2668
+ query_language: QueryLanguage,
2669
+ query_string: QueryString,
2670
+ schedule_expression: ScheduleExpression,
2671
+ execution_role_arn: RoleArn,
2672
+ description: ScheduledQueryDescription | None = None,
2673
+ log_group_identifiers: ScheduledQueryLogGroupIdentifiers | None = None,
2674
+ timezone: ScheduleTimezone | None = None,
2675
+ start_time_offset: StartTimeOffset | None = None,
2676
+ destination_configuration: DestinationConfiguration | None = None,
2677
+ schedule_start_time: Timestamp | None = None,
2678
+ schedule_end_time: Timestamp | None = None,
2679
+ state: ScheduledQueryState | None = None,
2680
+ tags: Tags | None = None,
2681
+ **kwargs,
2682
+ ) -> CreateScheduledQueryResponse:
2683
+ raise NotImplementedError
2684
+
2298
2685
  @handler("DeleteAccountPolicy")
2299
2686
  def delete_account_policy(
2300
2687
  self, context: RequestContext, policy_name: PolicyName, policy_type: PolicyType, **kwargs
@@ -2406,6 +2793,12 @@ class LogsApi:
2406
2793
  ) -> None:
2407
2794
  raise NotImplementedError
2408
2795
 
2796
+ @handler("DeleteScheduledQuery")
2797
+ def delete_scheduled_query(
2798
+ self, context: RequestContext, identifier: ScheduledQueryIdentifier, **kwargs
2799
+ ) -> DeleteScheduledQueryResponse:
2800
+ raise NotImplementedError
2801
+
2409
2802
  @handler("DeleteSubscriptionFilter")
2410
2803
  def delete_subscription_filter(
2411
2804
  self,
@@ -2625,6 +3018,12 @@ class LogsApi:
2625
3018
  ) -> None:
2626
3019
  raise NotImplementedError
2627
3020
 
3021
+ @handler("DisassociateSourceFromS3TableIntegration")
3022
+ def disassociate_source_from_s3_table_integration(
3023
+ self, context: RequestContext, identifier: S3TableIntegrationSourceIdentifier, **kwargs
3024
+ ) -> DisassociateSourceFromS3TableIntegrationResponse:
3025
+ raise NotImplementedError
3026
+
2628
3027
  @handler("FilterLogEvents")
2629
3028
  def filter_log_events(
2630
3029
  self,
@@ -2703,6 +3102,16 @@ class LogsApi:
2703
3102
  ) -> GetLogEventsResponse:
2704
3103
  raise NotImplementedError
2705
3104
 
3105
+ @handler("GetLogFields")
3106
+ def get_log_fields(
3107
+ self,
3108
+ context: RequestContext,
3109
+ data_source_name: DataSourceName,
3110
+ data_source_type: DataSourceType,
3111
+ **kwargs,
3112
+ ) -> GetLogFieldsResponse:
3113
+ raise NotImplementedError
3114
+
2706
3115
  @handler("GetLogGroupFields")
2707
3116
  def get_log_group_fields(
2708
3117
  self,
@@ -2740,12 +3149,48 @@ class LogsApi:
2740
3149
  ) -> GetQueryResultsResponse:
2741
3150
  raise NotImplementedError
2742
3151
 
3152
+ @handler("GetScheduledQuery")
3153
+ def get_scheduled_query(
3154
+ self, context: RequestContext, identifier: ScheduledQueryIdentifier, **kwargs
3155
+ ) -> GetScheduledQueryResponse:
3156
+ raise NotImplementedError
3157
+
3158
+ @handler("GetScheduledQueryHistory")
3159
+ def get_scheduled_query_history(
3160
+ self,
3161
+ context: RequestContext,
3162
+ identifier: ScheduledQueryIdentifier,
3163
+ start_time: Timestamp,
3164
+ end_time: Timestamp,
3165
+ execution_statuses: ExecutionStatusList | None = None,
3166
+ max_results: GetScheduledQueryHistoryMaxResults | None = None,
3167
+ next_token: NextToken | None = None,
3168
+ **kwargs,
3169
+ ) -> GetScheduledQueryHistoryResponse:
3170
+ raise NotImplementedError
3171
+
2743
3172
  @handler("GetTransformer")
2744
3173
  def get_transformer(
2745
3174
  self, context: RequestContext, log_group_identifier: LogGroupIdentifier, **kwargs
2746
3175
  ) -> GetTransformerResponse:
2747
3176
  raise NotImplementedError
2748
3177
 
3178
+ @handler("ListAggregateLogGroupSummaries")
3179
+ def list_aggregate_log_group_summaries(
3180
+ self,
3181
+ context: RequestContext,
3182
+ group_by: ListAggregateLogGroupSummariesGroupBy,
3183
+ account_identifiers: AccountIds | None = None,
3184
+ include_linked_accounts: IncludeLinkedAccounts | None = None,
3185
+ log_group_class: LogGroupClass | None = None,
3186
+ log_group_name_pattern: LogGroupNameRegexPattern | None = None,
3187
+ data_sources: DataSourceFilters | None = None,
3188
+ next_token: NextToken | None = None,
3189
+ limit: ListLogGroupsRequestLimit | None = None,
3190
+ **kwargs,
3191
+ ) -> ListAggregateLogGroupSummariesResponse:
3192
+ raise NotImplementedError
3193
+
2749
3194
  @handler("ListAnomalies")
2750
3195
  def list_anomalies(
2751
3196
  self,
@@ -2790,6 +3235,8 @@ class LogsApi:
2790
3235
  account_identifiers: AccountIds | None = None,
2791
3236
  next_token: NextToken | None = None,
2792
3237
  limit: ListLimit | None = None,
3238
+ data_sources: DataSourceFilters | None = None,
3239
+ field_index_names: FieldIndexNames | None = None,
2793
3240
  **kwargs,
2794
3241
  ) -> ListLogGroupsResponse:
2795
3242
  raise NotImplementedError
@@ -2805,6 +3252,28 @@ class LogsApi:
2805
3252
  ) -> ListLogGroupsForQueryResponse:
2806
3253
  raise NotImplementedError
2807
3254
 
3255
+ @handler("ListScheduledQueries")
3256
+ def list_scheduled_queries(
3257
+ self,
3258
+ context: RequestContext,
3259
+ max_results: ListScheduledQueriesMaxResults | None = None,
3260
+ next_token: NextToken | None = None,
3261
+ state: ScheduledQueryState | None = None,
3262
+ **kwargs,
3263
+ ) -> ListScheduledQueriesResponse:
3264
+ raise NotImplementedError
3265
+
3266
+ @handler("ListSourcesForS3TableIntegration")
3267
+ def list_sources_for_s3_table_integration(
3268
+ self,
3269
+ context: RequestContext,
3270
+ integration_arn: Arn,
3271
+ max_results: ListSourcesForS3TableIntegrationMaxResults | None = None,
3272
+ next_token: NextToken | None = None,
3273
+ **kwargs,
3274
+ ) -> ListSourcesForS3TableIntegrationResponse:
3275
+ raise NotImplementedError
3276
+
2808
3277
  @handler("ListTagsForResource")
2809
3278
  def list_tags_for_resource(
2810
3279
  self, context: RequestContext, resource_arn: AmazonResourceName, **kwargs
@@ -2932,6 +3401,16 @@ class LogsApi:
2932
3401
  ) -> PutLogEventsResponse:
2933
3402
  raise NotImplementedError
2934
3403
 
3404
+ @handler("PutLogGroupDeletionProtection")
3405
+ def put_log_group_deletion_protection(
3406
+ self,
3407
+ context: RequestContext,
3408
+ log_group_identifier: LogGroupIdentifier,
3409
+ deletion_protection_enabled: DeletionProtectionEnabled,
3410
+ **kwargs,
3411
+ ) -> None:
3412
+ raise NotImplementedError
3413
+
2935
3414
  @handler("PutMetricFilter")
2936
3415
  def put_metric_filter(
2937
3416
  self,
@@ -3128,3 +3607,24 @@ class LogsApi:
3128
3607
  **kwargs,
3129
3608
  ) -> None:
3130
3609
  raise NotImplementedError
3610
+
3611
+ @handler("UpdateScheduledQuery")
3612
+ def update_scheduled_query(
3613
+ self,
3614
+ context: RequestContext,
3615
+ identifier: ScheduledQueryIdentifier,
3616
+ query_language: QueryLanguage,
3617
+ query_string: QueryString,
3618
+ schedule_expression: ScheduleExpression,
3619
+ execution_role_arn: RoleArn,
3620
+ description: ScheduledQueryDescription | None = None,
3621
+ log_group_identifiers: ScheduledQueryLogGroupIdentifiers | None = None,
3622
+ timezone: ScheduleTimezone | None = None,
3623
+ start_time_offset: StartTimeOffset | None = None,
3624
+ destination_configuration: DestinationConfiguration | None = None,
3625
+ schedule_start_time: Timestamp | None = None,
3626
+ schedule_end_time: Timestamp | None = None,
3627
+ state: ScheduledQueryState | None = None,
3628
+ **kwargs,
3629
+ ) -> UpdateScheduledQueryResponse:
3630
+ raise NotImplementedError