localstack-core 4.10.1.dev7__py3-none-any.whl → 4.11.2.dev14__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.
- localstack/aws/api/acm/__init__.py +122 -122
- localstack/aws/api/apigateway/__init__.py +604 -561
- localstack/aws/api/cloudcontrol/__init__.py +63 -63
- localstack/aws/api/cloudformation/__init__.py +1201 -969
- localstack/aws/api/cloudwatch/__init__.py +375 -375
- localstack/aws/api/config/__init__.py +784 -786
- localstack/aws/api/dynamodb/__init__.py +753 -759
- localstack/aws/api/dynamodbstreams/__init__.py +74 -74
- localstack/aws/api/ec2/__init__.py +10062 -8826
- localstack/aws/api/es/__init__.py +453 -453
- localstack/aws/api/events/__init__.py +552 -552
- localstack/aws/api/firehose/__init__.py +541 -543
- localstack/aws/api/iam/__init__.py +866 -572
- localstack/aws/api/kinesis/__init__.py +235 -147
- localstack/aws/api/kms/__init__.py +341 -336
- localstack/aws/api/lambda_/__init__.py +974 -621
- localstack/aws/api/logs/__init__.py +988 -675
- localstack/aws/api/opensearch/__init__.py +903 -785
- localstack/aws/api/pipes/__init__.py +336 -336
- localstack/aws/api/redshift/__init__.py +1257 -1166
- localstack/aws/api/resource_groups/__init__.py +175 -175
- localstack/aws/api/resourcegroupstaggingapi/__init__.py +103 -67
- localstack/aws/api/route53/__init__.py +296 -254
- localstack/aws/api/route53resolver/__init__.py +397 -396
- localstack/aws/api/s3/__init__.py +1412 -1349
- localstack/aws/api/s3control/__init__.py +594 -594
- localstack/aws/api/scheduler/__init__.py +118 -118
- localstack/aws/api/secretsmanager/__init__.py +221 -216
- localstack/aws/api/ses/__init__.py +227 -227
- localstack/aws/api/sns/__init__.py +115 -115
- localstack/aws/api/sqs/__init__.py +100 -100
- localstack/aws/api/ssm/__init__.py +1977 -1971
- localstack/aws/api/stepfunctions/__init__.py +375 -333
- localstack/aws/api/sts/__init__.py +142 -66
- localstack/aws/api/support/__init__.py +112 -112
- localstack/aws/api/swf/__init__.py +378 -386
- localstack/aws/api/transcribe/__init__.py +425 -425
- localstack/aws/handlers/logging.py +8 -4
- localstack/aws/handlers/service.py +22 -3
- localstack/aws/protocol/parser.py +1 -1
- localstack/aws/protocol/serializer.py +1 -1
- localstack/aws/scaffold.py +15 -17
- localstack/cli/localstack.py +6 -1
- localstack/deprecations.py +0 -6
- localstack/dev/kubernetes/__main__.py +38 -3
- localstack/services/acm/provider.py +4 -0
- localstack/services/apigateway/helpers.py +5 -9
- localstack/services/apigateway/legacy/provider.py +60 -24
- localstack/services/apigateway/patches.py +0 -9
- localstack/services/cloudformation/engine/template_preparer.py +6 -2
- localstack/services/cloudformation/engine/v2/change_set_model_preproc.py +12 -0
- localstack/services/cloudformation/provider.py +2 -2
- localstack/services/cloudformation/v2/provider.py +6 -6
- localstack/services/cloudwatch/provider.py +10 -3
- localstack/services/cloudwatch/provider_v2.py +6 -3
- localstack/services/configservice/provider.py +5 -1
- localstack/services/dynamodb/provider.py +1 -0
- localstack/services/dynamodb/v2/provider.py +1 -0
- localstack/services/dynamodbstreams/provider.py +6 -0
- localstack/services/dynamodbstreams/v2/provider.py +6 -0
- localstack/services/ec2/provider.py +6 -0
- localstack/services/es/provider.py +6 -0
- localstack/services/events/provider.py +4 -0
- localstack/services/events/v1/provider.py +9 -0
- localstack/services/firehose/provider.py +5 -0
- localstack/services/iam/provider.py +4 -0
- localstack/services/kinesis/packages.py +1 -1
- localstack/services/kms/models.py +44 -24
- localstack/services/kms/provider.py +97 -16
- localstack/services/lambda_/api_utils.py +40 -21
- localstack/services/lambda_/event_source_mapping/pollers/stream_poller.py +1 -1
- localstack/services/lambda_/invocation/assignment.py +4 -1
- localstack/services/lambda_/invocation/execution_environment.py +21 -2
- localstack/services/lambda_/invocation/lambda_models.py +27 -2
- localstack/services/lambda_/invocation/lambda_service.py +51 -3
- localstack/services/lambda_/invocation/models.py +9 -1
- localstack/services/lambda_/invocation/version_manager.py +18 -3
- localstack/services/lambda_/packages.py +1 -1
- localstack/services/lambda_/provider.py +240 -96
- localstack/services/lambda_/resource_providers/aws_lambda_function.py +33 -1
- localstack/services/lambda_/runtimes.py +10 -3
- localstack/services/logs/provider.py +45 -19
- localstack/services/opensearch/provider.py +53 -3
- localstack/services/resource_groups/provider.py +5 -1
- localstack/services/resourcegroupstaggingapi/provider.py +6 -1
- localstack/services/s3/provider.py +29 -16
- localstack/services/s3/utils.py +35 -14
- localstack/services/s3control/provider.py +101 -2
- localstack/services/s3control/validation.py +50 -0
- localstack/services/sns/constants.py +3 -1
- localstack/services/sns/publisher.py +15 -6
- localstack/services/sns/v2/models.py +30 -1
- localstack/services/sns/v2/provider.py +794 -31
- localstack/services/sns/v2/utils.py +20 -0
- localstack/services/sqs/models.py +37 -10
- localstack/services/stepfunctions/asl/component/common/path/result_path.py +1 -1
- localstack/services/stepfunctions/asl/component/state/state_execution/execute_state.py +0 -1
- localstack/services/stepfunctions/asl/component/state/state_execution/state_map/state_map.py +0 -1
- localstack/services/stepfunctions/asl/component/state/state_execution/state_task/lambda_eval_utils.py +8 -8
- localstack/services/stepfunctions/asl/component/state/state_execution/state_task/{mock_eval_utils.py → local_mock_eval_utils.py} +13 -9
- localstack/services/stepfunctions/asl/component/state/state_execution/state_task/service/state_task_service.py +6 -6
- localstack/services/stepfunctions/asl/component/state/state_execution/state_task/service/state_task_service_callback.py +1 -1
- localstack/services/stepfunctions/asl/component/state/state_fail/state_fail.py +4 -0
- localstack/services/stepfunctions/asl/component/test_state/state/base_mock.py +118 -0
- localstack/services/stepfunctions/asl/component/test_state/state/common.py +82 -0
- localstack/services/stepfunctions/asl/component/test_state/state/execution.py +139 -0
- localstack/services/stepfunctions/asl/component/test_state/state/map.py +77 -0
- localstack/services/stepfunctions/asl/component/test_state/state/task.py +44 -0
- localstack/services/stepfunctions/asl/eval/environment.py +30 -22
- localstack/services/stepfunctions/asl/eval/states.py +1 -1
- localstack/services/stepfunctions/asl/eval/test_state/environment.py +49 -9
- localstack/services/stepfunctions/asl/eval/test_state/program_state.py +22 -0
- localstack/services/stepfunctions/asl/jsonata/jsonata.py +5 -1
- localstack/services/stepfunctions/asl/parse/preprocessor.py +67 -24
- localstack/services/stepfunctions/asl/parse/test_state/asl_parser.py +5 -4
- localstack/services/stepfunctions/asl/parse/test_state/preprocessor.py +222 -31
- localstack/services/stepfunctions/asl/static_analyser/test_state/test_state_analyser.py +170 -22
- localstack/services/stepfunctions/backend/execution.py +6 -6
- localstack/services/stepfunctions/backend/execution_worker.py +5 -5
- localstack/services/stepfunctions/backend/test_state/execution.py +36 -0
- localstack/services/stepfunctions/backend/test_state/execution_worker.py +33 -1
- localstack/services/stepfunctions/backend/test_state/test_state_mock.py +127 -0
- localstack/services/stepfunctions/local_mocking/__init__.py +9 -0
- localstack/services/stepfunctions/{mocking → local_mocking}/mock_config.py +24 -17
- localstack/services/stepfunctions/provider.py +78 -27
- localstack/services/stepfunctions/test_state/mock_config.py +47 -0
- localstack/testing/pytest/fixtures.py +28 -0
- localstack/testing/snapshots/transformer_utility.py +7 -0
- localstack/testing/testselection/matching.py +0 -1
- localstack/utils/analytics/publisher.py +37 -155
- localstack/utils/analytics/service_request_aggregator.py +6 -4
- localstack/utils/aws/arns.py +7 -0
- localstack/utils/aws/client_types.py +0 -8
- localstack/utils/batching.py +258 -0
- localstack/utils/catalog/catalog_loader.py +111 -3
- localstack/utils/collections.py +23 -11
- localstack/utils/crypto.py +109 -0
- localstack/version.py +2 -2
- {localstack_core-4.10.1.dev7.dist-info → localstack_core-4.11.2.dev14.dist-info}/METADATA +7 -6
- {localstack_core-4.10.1.dev7.dist-info → localstack_core-4.11.2.dev14.dist-info}/RECORD +149 -141
- localstack_core-4.11.2.dev14.dist-info/plux.json +1 -0
- localstack/services/stepfunctions/mocking/__init__.py +0 -0
- localstack/utils/batch_policy.py +0 -124
- localstack_core-4.10.1.dev7.dist-info/plux.json +0 -1
- /localstack/services/stepfunctions/{mocking → local_mocking}/mock_config_file.py +0 -0
- {localstack_core-4.10.1.dev7.data → localstack_core-4.11.2.dev14.data}/scripts/localstack +0 -0
- {localstack_core-4.10.1.dev7.data → localstack_core-4.11.2.dev14.data}/scripts/localstack-supervisor +0 -0
- {localstack_core-4.10.1.dev7.data → localstack_core-4.11.2.dev14.data}/scripts/localstack.bat +0 -0
- {localstack_core-4.10.1.dev7.dist-info → localstack_core-4.11.2.dev14.dist-info}/WHEEL +0 -0
- {localstack_core-4.10.1.dev7.dist-info → localstack_core-4.11.2.dev14.dist-info}/entry_points.txt +0 -0
- {localstack_core-4.10.1.dev7.dist-info → localstack_core-4.11.2.dev14.dist-info}/licenses/LICENSE.txt +0 -0
- {localstack_core-4.10.1.dev7.dist-info → localstack_core-4.11.2.dev14.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
2
|
from enum import StrEnum
|
|
3
|
-
from typing import
|
|
3
|
+
from typing import TypedDict
|
|
4
4
|
|
|
5
5
|
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
|
|
6
6
|
|
|
@@ -191,62 +191,62 @@ Timestamp = datetime
|
|
|
191
191
|
|
|
192
192
|
|
|
193
193
|
class ProgressEvent(TypedDict, total=False):
|
|
194
|
-
TypeName:
|
|
195
|
-
Identifier:
|
|
196
|
-
RequestToken:
|
|
197
|
-
HooksRequestToken:
|
|
198
|
-
Operation:
|
|
199
|
-
OperationStatus:
|
|
200
|
-
EventTime:
|
|
201
|
-
ResourceModel:
|
|
202
|
-
StatusMessage:
|
|
203
|
-
ErrorCode:
|
|
204
|
-
RetryAfter:
|
|
194
|
+
TypeName: TypeName | None
|
|
195
|
+
Identifier: Identifier | None
|
|
196
|
+
RequestToken: RequestToken | None
|
|
197
|
+
HooksRequestToken: RequestToken | None
|
|
198
|
+
Operation: Operation | None
|
|
199
|
+
OperationStatus: OperationStatus | None
|
|
200
|
+
EventTime: Timestamp | None
|
|
201
|
+
ResourceModel: Properties | None
|
|
202
|
+
StatusMessage: StatusMessage | None
|
|
203
|
+
ErrorCode: HandlerErrorCode | None
|
|
204
|
+
RetryAfter: Timestamp | None
|
|
205
205
|
|
|
206
206
|
|
|
207
207
|
class CancelResourceRequestOutput(TypedDict, total=False):
|
|
208
|
-
ProgressEvent:
|
|
208
|
+
ProgressEvent: ProgressEvent | None
|
|
209
209
|
|
|
210
210
|
|
|
211
211
|
class CreateResourceInput(ServiceRequest):
|
|
212
212
|
TypeName: TypeName
|
|
213
|
-
TypeVersionId:
|
|
214
|
-
RoleArn:
|
|
215
|
-
ClientToken:
|
|
213
|
+
TypeVersionId: TypeVersionId | None
|
|
214
|
+
RoleArn: RoleArn | None
|
|
215
|
+
ClientToken: ClientToken | None
|
|
216
216
|
DesiredState: Properties
|
|
217
217
|
|
|
218
218
|
|
|
219
219
|
class CreateResourceOutput(TypedDict, total=False):
|
|
220
|
-
ProgressEvent:
|
|
220
|
+
ProgressEvent: ProgressEvent | None
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
class DeleteResourceInput(ServiceRequest):
|
|
224
224
|
TypeName: TypeName
|
|
225
|
-
TypeVersionId:
|
|
226
|
-
RoleArn:
|
|
227
|
-
ClientToken:
|
|
225
|
+
TypeVersionId: TypeVersionId | None
|
|
226
|
+
RoleArn: RoleArn | None
|
|
227
|
+
ClientToken: ClientToken | None
|
|
228
228
|
Identifier: Identifier
|
|
229
229
|
|
|
230
230
|
|
|
231
231
|
class DeleteResourceOutput(TypedDict, total=False):
|
|
232
|
-
ProgressEvent:
|
|
232
|
+
ProgressEvent: ProgressEvent | None
|
|
233
233
|
|
|
234
234
|
|
|
235
235
|
class GetResourceInput(ServiceRequest):
|
|
236
236
|
TypeName: TypeName
|
|
237
|
-
TypeVersionId:
|
|
238
|
-
RoleArn:
|
|
237
|
+
TypeVersionId: TypeVersionId | None
|
|
238
|
+
RoleArn: RoleArn | None
|
|
239
239
|
Identifier: Identifier
|
|
240
240
|
|
|
241
241
|
|
|
242
242
|
class ResourceDescription(TypedDict, total=False):
|
|
243
|
-
Identifier:
|
|
244
|
-
Properties:
|
|
243
|
+
Identifier: Identifier | None
|
|
244
|
+
Properties: Properties | None
|
|
245
245
|
|
|
246
246
|
|
|
247
247
|
class GetResourceOutput(TypedDict, total=False):
|
|
248
|
-
TypeName:
|
|
249
|
-
ResourceDescription:
|
|
248
|
+
TypeName: TypeName | None
|
|
249
|
+
ResourceDescription: ResourceDescription | None
|
|
250
250
|
|
|
251
251
|
|
|
252
252
|
class GetResourceRequestStatusInput(ServiceRequest):
|
|
@@ -254,81 +254,81 @@ class GetResourceRequestStatusInput(ServiceRequest):
|
|
|
254
254
|
|
|
255
255
|
|
|
256
256
|
class HookProgressEvent(TypedDict, total=False):
|
|
257
|
-
HookTypeName:
|
|
258
|
-
HookTypeVersionId:
|
|
259
|
-
HookTypeArn:
|
|
260
|
-
InvocationPoint:
|
|
261
|
-
HookStatus:
|
|
262
|
-
HookEventTime:
|
|
263
|
-
HookStatusMessage:
|
|
264
|
-
FailureMode:
|
|
257
|
+
HookTypeName: TypeName | None
|
|
258
|
+
HookTypeVersionId: TypeVersionId | None
|
|
259
|
+
HookTypeArn: HookTypeArn | None
|
|
260
|
+
InvocationPoint: HookInvocationPoint | None
|
|
261
|
+
HookStatus: HookStatus | None
|
|
262
|
+
HookEventTime: Timestamp | None
|
|
263
|
+
HookStatusMessage: StatusMessage | None
|
|
264
|
+
FailureMode: HookFailureMode | None
|
|
265
265
|
|
|
266
266
|
|
|
267
|
-
HooksProgressEvent =
|
|
267
|
+
HooksProgressEvent = list[HookProgressEvent]
|
|
268
268
|
|
|
269
269
|
|
|
270
270
|
class GetResourceRequestStatusOutput(TypedDict, total=False):
|
|
271
|
-
ProgressEvent:
|
|
272
|
-
HooksProgressEvent:
|
|
271
|
+
ProgressEvent: ProgressEvent | None
|
|
272
|
+
HooksProgressEvent: HooksProgressEvent | None
|
|
273
273
|
|
|
274
274
|
|
|
275
|
-
OperationStatuses =
|
|
276
|
-
Operations =
|
|
275
|
+
OperationStatuses = list[OperationStatus]
|
|
276
|
+
Operations = list[Operation]
|
|
277
277
|
|
|
278
278
|
|
|
279
279
|
class ResourceRequestStatusFilter(TypedDict, total=False):
|
|
280
|
-
Operations:
|
|
281
|
-
OperationStatuses:
|
|
280
|
+
Operations: Operations | None
|
|
281
|
+
OperationStatuses: OperationStatuses | None
|
|
282
282
|
|
|
283
283
|
|
|
284
284
|
class ListResourceRequestsInput(ServiceRequest):
|
|
285
|
-
MaxResults:
|
|
286
|
-
NextToken:
|
|
287
|
-
ResourceRequestStatusFilter:
|
|
285
|
+
MaxResults: MaxResults | None
|
|
286
|
+
NextToken: NextToken | None
|
|
287
|
+
ResourceRequestStatusFilter: ResourceRequestStatusFilter | None
|
|
288
288
|
|
|
289
289
|
|
|
290
|
-
ResourceRequestStatusSummaries =
|
|
290
|
+
ResourceRequestStatusSummaries = list[ProgressEvent]
|
|
291
291
|
|
|
292
292
|
|
|
293
293
|
class ListResourceRequestsOutput(TypedDict, total=False):
|
|
294
|
-
ResourceRequestStatusSummaries:
|
|
295
|
-
NextToken:
|
|
294
|
+
ResourceRequestStatusSummaries: ResourceRequestStatusSummaries | None
|
|
295
|
+
NextToken: NextToken | None
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
class ListResourcesInput(ServiceRequest):
|
|
299
299
|
TypeName: TypeName
|
|
300
|
-
TypeVersionId:
|
|
301
|
-
RoleArn:
|
|
302
|
-
NextToken:
|
|
303
|
-
MaxResults:
|
|
304
|
-
ResourceModel:
|
|
300
|
+
TypeVersionId: TypeVersionId | None
|
|
301
|
+
RoleArn: RoleArn | None
|
|
302
|
+
NextToken: HandlerNextToken | None
|
|
303
|
+
MaxResults: MaxResults | None
|
|
304
|
+
ResourceModel: Properties | None
|
|
305
305
|
|
|
306
306
|
|
|
307
|
-
ResourceDescriptions =
|
|
307
|
+
ResourceDescriptions = list[ResourceDescription]
|
|
308
308
|
|
|
309
309
|
|
|
310
310
|
class ListResourcesOutput(TypedDict, total=False):
|
|
311
|
-
TypeName:
|
|
312
|
-
ResourceDescriptions:
|
|
313
|
-
NextToken:
|
|
311
|
+
TypeName: TypeName | None
|
|
312
|
+
ResourceDescriptions: ResourceDescriptions | None
|
|
313
|
+
NextToken: HandlerNextToken | None
|
|
314
314
|
|
|
315
315
|
|
|
316
316
|
class UpdateResourceInput(ServiceRequest):
|
|
317
317
|
TypeName: TypeName
|
|
318
|
-
TypeVersionId:
|
|
319
|
-
RoleArn:
|
|
320
|
-
ClientToken:
|
|
318
|
+
TypeVersionId: TypeVersionId | None
|
|
319
|
+
RoleArn: RoleArn | None
|
|
320
|
+
ClientToken: ClientToken | None
|
|
321
321
|
Identifier: Identifier
|
|
322
322
|
PatchDocument: PatchDocument
|
|
323
323
|
|
|
324
324
|
|
|
325
325
|
class UpdateResourceOutput(TypedDict, total=False):
|
|
326
|
-
ProgressEvent:
|
|
326
|
+
ProgressEvent: ProgressEvent | None
|
|
327
327
|
|
|
328
328
|
|
|
329
329
|
class CloudcontrolApi:
|
|
330
|
-
service = "cloudcontrol"
|
|
331
|
-
version = "2021-09-30"
|
|
330
|
+
service: str = "cloudcontrol"
|
|
331
|
+
version: str = "2021-09-30"
|
|
332
332
|
|
|
333
333
|
@handler("CancelResourceRequest")
|
|
334
334
|
def cancel_resource_request(
|