localstack-core 4.11.2.dev14__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.

Potentially problematic release.


This version of localstack-core might be problematic. Click here for more details.

Files changed (77) hide show
  1. localstack/aws/api/ec2/__init__.py +13 -0
  2. localstack/aws/api/iam/__init__.py +1 -0
  3. localstack/aws/api/lambda_/__init__.py +616 -0
  4. localstack/aws/api/logs/__init__.py +188 -0
  5. localstack/aws/api/opensearch/__init__.py +11 -0
  6. localstack/aws/api/route53/__init__.py +3 -0
  7. localstack/aws/api/s3/__init__.py +2 -0
  8. localstack/aws/api/s3control/__init__.py +19 -0
  9. localstack/aws/api/secretsmanager/__init__.py +9 -0
  10. localstack/aws/connect.py +35 -15
  11. localstack/config.py +8 -0
  12. localstack/constants.py +3 -0
  13. localstack/dev/kubernetes/__main__.py +39 -14
  14. localstack/runtime/analytics.py +11 -0
  15. localstack/services/acm/provider.py +13 -1
  16. localstack/services/cloudformation/engine/v2/change_set_model.py +9 -0
  17. localstack/services/cloudformation/engine/v2/change_set_model_preproc.py +3 -1
  18. localstack/services/cloudformation/engine/v2/change_set_resource_support_checker.py +114 -0
  19. localstack/services/cloudformation/provider.py +26 -1
  20. localstack/services/cloudformation/provider_utils.py +20 -0
  21. localstack/services/cloudformation/resource_provider.py +5 -4
  22. localstack/services/cloudformation/scaffolding/__main__.py +94 -22
  23. localstack/services/cloudformation/v2/provider.py +41 -0
  24. localstack/services/kinesis/packages.py +1 -1
  25. localstack/services/kms/models.py +6 -2
  26. localstack/services/lambda_/analytics.py +11 -2
  27. localstack/services/lambda_/invocation/event_manager.py +15 -11
  28. localstack/services/lambda_/invocation/lambda_models.py +4 -0
  29. localstack/services/lambda_/invocation/lambda_service.py +11 -0
  30. localstack/services/lambda_/provider.py +70 -13
  31. localstack/services/opensearch/packages.py +34 -20
  32. localstack/services/route53/provider.py +7 -0
  33. localstack/services/route53resolver/provider.py +5 -0
  34. localstack/services/s3/constants.py +5 -0
  35. localstack/services/s3/exceptions.py +9 -0
  36. localstack/services/s3/models.py +9 -1
  37. localstack/services/s3/provider.py +25 -30
  38. localstack/services/s3/utils.py +46 -1
  39. localstack/services/s3control/provider.py +6 -0
  40. localstack/services/scheduler/provider.py +4 -2
  41. localstack/services/secretsmanager/provider.py +4 -0
  42. localstack/services/ses/provider.py +4 -0
  43. localstack/services/sns/constants.py +13 -0
  44. localstack/services/sns/provider.py +5 -0
  45. localstack/services/sns/v2/models.py +3 -0
  46. localstack/services/sns/v2/provider.py +100 -0
  47. localstack/services/sqs/constants.py +6 -0
  48. localstack/services/sqs/provider.py +9 -1
  49. localstack/services/sqs/resource_providers/aws_sqs_queue.py +61 -46
  50. localstack/services/ssm/provider.py +6 -0
  51. localstack/services/stepfunctions/asl/static_analyser/test_state/test_state_analyser.py +193 -107
  52. localstack/services/stepfunctions/backend/execution.py +4 -5
  53. localstack/services/stepfunctions/provider.py +21 -14
  54. localstack/services/sts/provider.py +7 -0
  55. localstack/services/support/provider.py +5 -1
  56. localstack/services/swf/provider.py +5 -1
  57. localstack/services/transcribe/provider.py +7 -0
  58. localstack/testing/aws/lambda_utils.py +1 -1
  59. localstack/testing/aws/util.py +2 -1
  60. localstack/testing/config.py +1 -0
  61. localstack/utils/aws/client_types.py +2 -4
  62. localstack/utils/bootstrap.py +2 -2
  63. localstack/utils/catalog/catalog.py +3 -2
  64. localstack/utils/container_utils/container_client.py +22 -13
  65. localstack/utils/container_utils/docker_cmd_client.py +6 -6
  66. localstack/version.py +2 -2
  67. {localstack_core-4.11.2.dev14.dist-info → localstack_core-4.12.1.dev18.dist-info}/METADATA +6 -6
  68. {localstack_core-4.11.2.dev14.dist-info → localstack_core-4.12.1.dev18.dist-info}/RECORD +76 -75
  69. localstack_core-4.12.1.dev18.dist-info/plux.json +1 -0
  70. localstack_core-4.11.2.dev14.dist-info/plux.json +0 -1
  71. {localstack_core-4.11.2.dev14.data → localstack_core-4.12.1.dev18.data}/scripts/localstack +0 -0
  72. {localstack_core-4.11.2.dev14.data → localstack_core-4.12.1.dev18.data}/scripts/localstack-supervisor +0 -0
  73. {localstack_core-4.11.2.dev14.data → localstack_core-4.12.1.dev18.data}/scripts/localstack.bat +0 -0
  74. {localstack_core-4.11.2.dev14.dist-info → localstack_core-4.12.1.dev18.dist-info}/WHEEL +0 -0
  75. {localstack_core-4.11.2.dev14.dist-info → localstack_core-4.12.1.dev18.dist-info}/entry_points.txt +0 -0
  76. {localstack_core-4.11.2.dev14.dist-info → localstack_core-4.12.1.dev18.dist-info}/licenses/LICENSE.txt +0 -0
  77. {localstack_core-4.11.2.dev14.dist-info → localstack_core-4.12.1.dev18.dist-info}/top_level.txt +0 -0
@@ -10,26 +10,38 @@ AdditionalVersion = str
10
10
  Alias = str
11
11
  AllowCredentials = bool
12
12
  Arn = str
13
+ AttemptCount = int
13
14
  BatchSize = int
14
15
  BisectBatchOnFunctionError = bool
15
16
  Boolean = bool
17
+ CallbackId = str
16
18
  CapacityProviderArn = str
17
19
  CapacityProviderMaxVCpuCount = int
18
20
  CapacityProviderName = str
21
+ CheckpointToken = str
22
+ ClientToken = str
19
23
  CodeSigningConfigArn = str
20
24
  CodeSigningConfigId = str
21
25
  CollectionName = str
22
26
  DatabaseName = str
23
27
  Description = str
24
28
  DestinationArn = str
29
+ DurableExecutionArn = str
30
+ DurableExecutionName = str
31
+ DurationSeconds = int
25
32
  Enabled = bool
26
33
  Endpoint = str
27
34
  EnvironmentVariableName = str
28
35
  EnvironmentVariableValue = str
29
36
  EphemeralStorageSize = int
37
+ ErrorData = str
38
+ ErrorMessage = str
39
+ ErrorType = str
40
+ EventId = int
30
41
  EventSourceMappingArn = str
31
42
  EventSourceToken = str
32
43
  ExecutionEnvironmentMemoryGiBPerVCpu = float
44
+ ExecutionTimeout = int
33
45
  FileSystemArn = str
34
46
  FilterCriteriaErrorCode = str
35
47
  FilterCriteriaErrorMessage = str
@@ -41,9 +53,12 @@ FunctionUrlQualifier = str
41
53
  Handler = str
42
54
  Header = str
43
55
  HttpStatus = int
56
+ IncludeExecutionData = bool
57
+ InputPayload = str
44
58
  InstanceType = str
45
59
  Integer = int
46
60
  InvokedViaFunctionUrl = bool
61
+ ItemCount = int
47
62
  KMSKeyArn = str
48
63
  KMSKeyArnNonEmpty = str
49
64
  LastUpdateStatusReason = str
@@ -80,8 +95,13 @@ NamespacedStatementId = str
80
95
  NonNegativeInteger = int
81
96
  NullableBoolean = bool
82
97
  NumericLatestPublishedOrAliasQualifier = str
98
+ OperationId = str
99
+ OperationName = str
100
+ OperationPayload = str
101
+ OperationSubType = str
83
102
  OrganizationId = str
84
103
  Origin = str
104
+ OutputPayload = str
85
105
  ParallelizationFactor = int
86
106
  Pattern = str
87
107
  PerExecutionEnvironmentMaxConcurrency = int
@@ -92,8 +112,11 @@ ProvisionedPollerGroupName = str
92
112
  PublishedFunctionQualifier = str
93
113
  Qualifier = str
94
114
  Queue = str
115
+ ReplayChildren = bool
95
116
  ReservedConcurrentExecutions = int
96
117
  ResourceArn = str
118
+ RetentionPeriodInDays = int
119
+ ReverseOrder = bool
97
120
  RoleArn = str
98
121
  RuntimeVersionArn = str
99
122
  S3Bucket = str
@@ -103,8 +126,10 @@ SchemaRegistryUri = str
103
126
  SecurityGroupId = str
104
127
  SensitiveString = str
105
128
  SourceOwner = str
129
+ StackTraceEntry = str
106
130
  StateReason = str
107
131
  StatementId = str
132
+ StepOptionsNextAttemptDelaySecondsInteger = int
108
133
  String = str
109
134
  SubnetId = str
110
135
  TagKey = str
@@ -116,6 +141,7 @@ TenantId = str
116
141
  Timeout = int
117
142
  Timestamp = str
118
143
  Topic = str
144
+ Truncated = bool
119
145
  TumblingWindowInSeconds = int
120
146
  URI = str
121
147
  UnqualifiedFunctionName = str
@@ -123,8 +149,10 @@ UnreservedConcurrentExecutions = int
123
149
  Version = str
124
150
  VersionWithLatestPublished = str
125
151
  VpcId = str
152
+ WaitOptionsWaitSecondsInteger = int
126
153
  Weight = float
127
154
  WorkingDirectory = str
155
+ XAmznTraceId = str
128
156
 
129
157
 
130
158
  class ApplicationLogLevel(StrEnum):
@@ -176,6 +204,41 @@ class EventSourcePosition(StrEnum):
176
204
  AT_TIMESTAMP = "AT_TIMESTAMP"
177
205
 
178
206
 
207
+ class EventType(StrEnum):
208
+ ExecutionStarted = "ExecutionStarted"
209
+ ExecutionSucceeded = "ExecutionSucceeded"
210
+ ExecutionFailed = "ExecutionFailed"
211
+ ExecutionTimedOut = "ExecutionTimedOut"
212
+ ExecutionStopped = "ExecutionStopped"
213
+ ContextStarted = "ContextStarted"
214
+ ContextSucceeded = "ContextSucceeded"
215
+ ContextFailed = "ContextFailed"
216
+ WaitStarted = "WaitStarted"
217
+ WaitSucceeded = "WaitSucceeded"
218
+ WaitCancelled = "WaitCancelled"
219
+ StepStarted = "StepStarted"
220
+ StepSucceeded = "StepSucceeded"
221
+ StepFailed = "StepFailed"
222
+ ChainedInvokeStarted = "ChainedInvokeStarted"
223
+ ChainedInvokeSucceeded = "ChainedInvokeSucceeded"
224
+ ChainedInvokeFailed = "ChainedInvokeFailed"
225
+ ChainedInvokeTimedOut = "ChainedInvokeTimedOut"
226
+ ChainedInvokeStopped = "ChainedInvokeStopped"
227
+ CallbackStarted = "CallbackStarted"
228
+ CallbackSucceeded = "CallbackSucceeded"
229
+ CallbackFailed = "CallbackFailed"
230
+ CallbackTimedOut = "CallbackTimedOut"
231
+ InvocationCompleted = "InvocationCompleted"
232
+
233
+
234
+ class ExecutionStatus(StrEnum):
235
+ RUNNING = "RUNNING"
236
+ SUCCEEDED = "SUCCEEDED"
237
+ FAILED = "FAILED"
238
+ TIMED_OUT = "TIMED_OUT"
239
+ STOPPED = "STOPPED"
240
+
241
+
179
242
  class FullDocument(StrEnum):
180
243
  UpdateLookup = "UpdateLookup"
181
244
  Default = "Default"
@@ -260,6 +323,7 @@ class LastUpdateStatusReasonCode(StrEnum):
260
323
  FunctionError_PermissionDenied = "FunctionError.PermissionDenied"
261
324
  FunctionError_TooManyExtensions = "FunctionError.TooManyExtensions"
262
325
  FunctionError_InitResourceExhausted = "FunctionError.InitResourceExhausted"
326
+ DisallowedByVpcEncryptionControl = "DisallowedByVpcEncryptionControl"
263
327
 
264
328
 
265
329
  class LogFormat(StrEnum):
@@ -272,6 +336,34 @@ class LogType(StrEnum):
272
336
  Tail = "Tail"
273
337
 
274
338
 
339
+ class OperationAction(StrEnum):
340
+ START = "START"
341
+ SUCCEED = "SUCCEED"
342
+ FAIL = "FAIL"
343
+ RETRY = "RETRY"
344
+ CANCEL = "CANCEL"
345
+
346
+
347
+ class OperationStatus(StrEnum):
348
+ STARTED = "STARTED"
349
+ PENDING = "PENDING"
350
+ READY = "READY"
351
+ SUCCEEDED = "SUCCEEDED"
352
+ FAILED = "FAILED"
353
+ CANCELLED = "CANCELLED"
354
+ TIMED_OUT = "TIMED_OUT"
355
+ STOPPED = "STOPPED"
356
+
357
+
358
+ class OperationType(StrEnum):
359
+ EXECUTION = "EXECUTION"
360
+ CONTEXT = "CONTEXT"
361
+ STEP = "STEP"
362
+ WAIT = "WAIT"
363
+ CALLBACK = "CALLBACK"
364
+ CHAINED_INVOKE = "CHAINED_INVOKE"
365
+
366
+
275
367
  class PackageType(StrEnum):
276
368
  Zip = "Zip"
277
369
  Image = "Image"
@@ -338,6 +430,7 @@ class Runtime(StrEnum):
338
430
  nodejs24_x = "nodejs24.x"
339
431
  python3_14 = "python3.14"
340
432
  java25 = "java25"
433
+ dotnet10 = "dotnet10"
341
434
 
342
435
 
343
436
  class SchemaRegistryEventRecordFormat(StrEnum):
@@ -402,6 +495,7 @@ class StateReasonCode(StrEnum):
402
495
  InvalidRuntime = "InvalidRuntime"
403
496
  InvalidZipFileException = "InvalidZipFileException"
404
497
  FunctionError = "FunctionError"
498
+ DrainingDurableExecutions = "DrainingDurableExecutions"
405
499
  VcpuLimitExceeded = "VcpuLimitExceeded"
406
500
  CapacityProviderScalingLimitExceeded = "CapacityProviderScalingLimitExceeded"
407
501
  InsufficientCapacity = "InsufficientCapacity"
@@ -414,6 +508,7 @@ class StateReasonCode(StrEnum):
414
508
  FunctionError_PermissionDenied = "FunctionError.PermissionDenied"
415
509
  FunctionError_TooManyExtensions = "FunctionError.TooManyExtensions"
416
510
  FunctionError_InitResourceExhausted = "FunctionError.InitResourceExhausted"
511
+ DisallowedByVpcEncryptionControl = "DisallowedByVpcEncryptionControl"
417
512
 
418
513
 
419
514
  class SystemLogLevel(StrEnum):
@@ -448,6 +543,13 @@ class UpdateRuntimeOn(StrEnum):
448
543
  FunctionUpdate = "FunctionUpdate"
449
544
 
450
545
 
546
+ class CallbackTimeoutException(ServiceException):
547
+ code: str = "CallbackTimeoutException"
548
+ sender_fault: bool = True
549
+ status_code: int = 400
550
+ Type: String | None
551
+
552
+
451
553
  class CapacityProviderLimitExceededException(ServiceException):
452
554
  code: str = "CapacityProviderLimitExceededException"
453
555
  sender_fault: bool = True
@@ -476,6 +578,13 @@ class CodeVerificationFailedException(ServiceException):
476
578
  Type: String | None
477
579
 
478
580
 
581
+ class DurableExecutionAlreadyStartedException(ServiceException):
582
+ code: str = "DurableExecutionAlreadyStartedException"
583
+ sender_fault: bool = True
584
+ status_code: int = 409
585
+ Type: String | None
586
+
587
+
479
588
  class EC2AccessDeniedException(ServiceException):
480
589
  code: str = "EC2AccessDeniedException"
481
590
  sender_fault: bool = False
@@ -852,8 +961,56 @@ class AmazonManagedKafkaEventSourceConfig(TypedDict, total=False):
852
961
 
853
962
 
854
963
  ArchitecturesList = list[Architecture]
964
+ BinaryOperationPayload = bytes
855
965
  Blob = bytes
856
966
  BlobStream = bytes
967
+ StackTraceEntries = list[StackTraceEntry]
968
+
969
+
970
+ class ErrorObject(TypedDict, total=False):
971
+ ErrorMessage: ErrorMessage | None
972
+ ErrorType: ErrorType | None
973
+ ErrorData: ErrorData | None
974
+ StackTrace: StackTraceEntries | None
975
+
976
+
977
+ class CallbackDetails(TypedDict, total=False):
978
+ CallbackId: CallbackId | None
979
+ Result: OperationPayload | None
980
+ Error: ErrorObject | None
981
+
982
+
983
+ class EventError(TypedDict, total=False):
984
+ Payload: ErrorObject | None
985
+ Truncated: Truncated | None
986
+
987
+
988
+ class CallbackFailedDetails(TypedDict, total=False):
989
+ Error: EventError
990
+
991
+
992
+ class CallbackOptions(TypedDict, total=False):
993
+ TimeoutSeconds: DurationSeconds | None
994
+ HeartbeatTimeoutSeconds: DurationSeconds | None
995
+
996
+
997
+ class CallbackStartedDetails(TypedDict, total=False):
998
+ CallbackId: CallbackId
999
+ HeartbeatTimeout: DurationSeconds | None
1000
+ Timeout: DurationSeconds | None
1001
+
1002
+
1003
+ class EventResult(TypedDict, total=False):
1004
+ Payload: OperationPayload | None
1005
+ Truncated: Truncated | None
1006
+
1007
+
1008
+ class CallbackSucceededDetails(TypedDict, total=False):
1009
+ Result: EventResult
1010
+
1011
+
1012
+ class CallbackTimedOutDetails(TypedDict, total=False):
1013
+ Error: EventError
857
1014
 
858
1015
 
859
1016
  class TargetTrackingScalingPolicy(TypedDict, total=False):
@@ -916,6 +1073,137 @@ class CapacityProviderConfig(TypedDict, total=False):
916
1073
  CapacityProvidersList = list[CapacityProvider]
917
1074
 
918
1075
 
1076
+ class ChainedInvokeDetails(TypedDict, total=False):
1077
+ Result: OperationPayload | None
1078
+ Error: ErrorObject | None
1079
+
1080
+
1081
+ class ChainedInvokeFailedDetails(TypedDict, total=False):
1082
+ Error: EventError
1083
+
1084
+
1085
+ class ChainedInvokeOptions(TypedDict, total=False):
1086
+ FunctionName: NamespacedFunctionName
1087
+ TenantId: TenantId | None
1088
+
1089
+
1090
+ class EventInput(TypedDict, total=False):
1091
+ Payload: InputPayload | None
1092
+ Truncated: Truncated | None
1093
+
1094
+
1095
+ class ChainedInvokeStartedDetails(TypedDict, total=False):
1096
+ FunctionName: NamespacedFunctionName
1097
+ TenantId: TenantId | None
1098
+ Input: EventInput | None
1099
+ ExecutedVersion: VersionWithLatestPublished | None
1100
+ DurableExecutionArn: DurableExecutionArn | None
1101
+
1102
+
1103
+ class ChainedInvokeStoppedDetails(TypedDict, total=False):
1104
+ Error: EventError
1105
+
1106
+
1107
+ class ChainedInvokeSucceededDetails(TypedDict, total=False):
1108
+ Result: EventResult
1109
+
1110
+
1111
+ class ChainedInvokeTimedOutDetails(TypedDict, total=False):
1112
+ Error: EventError
1113
+
1114
+
1115
+ class WaitOptions(TypedDict, total=False):
1116
+ WaitSeconds: WaitOptionsWaitSecondsInteger | None
1117
+
1118
+
1119
+ class StepOptions(TypedDict, total=False):
1120
+ NextAttemptDelaySeconds: StepOptionsNextAttemptDelaySecondsInteger | None
1121
+
1122
+
1123
+ class ContextOptions(TypedDict, total=False):
1124
+ ReplayChildren: ReplayChildren | None
1125
+
1126
+
1127
+ class OperationUpdate(TypedDict, total=False):
1128
+ Id: OperationId
1129
+ ParentId: OperationId | None
1130
+ Name: OperationName | None
1131
+ Type: OperationType
1132
+ SubType: OperationSubType | None
1133
+ Action: OperationAction
1134
+ Payload: OperationPayload | None
1135
+ Error: ErrorObject | None
1136
+ ContextOptions: ContextOptions | None
1137
+ StepOptions: StepOptions | None
1138
+ WaitOptions: WaitOptions | None
1139
+ CallbackOptions: CallbackOptions | None
1140
+ ChainedInvokeOptions: ChainedInvokeOptions | None
1141
+
1142
+
1143
+ OperationUpdates = list[OperationUpdate]
1144
+
1145
+
1146
+ class CheckpointDurableExecutionRequest(ServiceRequest):
1147
+ DurableExecutionArn: DurableExecutionArn
1148
+ CheckpointToken: CheckpointToken
1149
+ Updates: OperationUpdates | None
1150
+ ClientToken: ClientToken | None
1151
+
1152
+
1153
+ ExecutionTimestamp = datetime
1154
+
1155
+
1156
+ class WaitDetails(TypedDict, total=False):
1157
+ ScheduledEndTimestamp: ExecutionTimestamp | None
1158
+
1159
+
1160
+ class StepDetails(TypedDict, total=False):
1161
+ Attempt: AttemptCount | None
1162
+ NextAttemptTimestamp: ExecutionTimestamp | None
1163
+ Result: OperationPayload | None
1164
+ Error: ErrorObject | None
1165
+
1166
+
1167
+ class ContextDetails(TypedDict, total=False):
1168
+ ReplayChildren: ReplayChildren | None
1169
+ Result: OperationPayload | None
1170
+ Error: ErrorObject | None
1171
+
1172
+
1173
+ class ExecutionDetails(TypedDict, total=False):
1174
+ InputPayload: InputPayload | None
1175
+
1176
+
1177
+ class Operation(TypedDict, total=False):
1178
+ Id: OperationId
1179
+ ParentId: OperationId | None
1180
+ Name: OperationName | None
1181
+ Type: OperationType
1182
+ SubType: OperationSubType | None
1183
+ StartTimestamp: ExecutionTimestamp
1184
+ EndTimestamp: ExecutionTimestamp | None
1185
+ Status: OperationStatus
1186
+ ExecutionDetails: ExecutionDetails | None
1187
+ ContextDetails: ContextDetails | None
1188
+ StepDetails: StepDetails | None
1189
+ WaitDetails: WaitDetails | None
1190
+ CallbackDetails: CallbackDetails | None
1191
+ ChainedInvokeDetails: ChainedInvokeDetails | None
1192
+
1193
+
1194
+ Operations = list[Operation]
1195
+
1196
+
1197
+ class CheckpointUpdatedExecutionState(TypedDict, total=False):
1198
+ Operations: Operations | None
1199
+ NextMarker: String | None
1200
+
1201
+
1202
+ class CheckpointDurableExecutionResponse(TypedDict, total=False):
1203
+ CheckpointToken: CheckpointToken | None
1204
+ NewExecutionState: CheckpointUpdatedExecutionState
1205
+
1206
+
919
1207
  class CodeSigningPolicies(TypedDict, total=False):
920
1208
  UntrustedArtifactOnDeployment: CodeSigningPolicy | None
921
1209
 
@@ -938,6 +1226,18 @@ class Concurrency(TypedDict, total=False):
938
1226
  ReservedConcurrentExecutions: ReservedConcurrentExecutions | None
939
1227
 
940
1228
 
1229
+ class ContextFailedDetails(TypedDict, total=False):
1230
+ Error: EventError
1231
+
1232
+
1233
+ class ContextStartedDetails(TypedDict, total=False):
1234
+ pass
1235
+
1236
+
1237
+ class ContextSucceededDetails(TypedDict, total=False):
1238
+ Result: EventResult
1239
+
1240
+
941
1241
  HeadersList = list[Header]
942
1242
 
943
1243
 
@@ -1094,6 +1394,11 @@ class TenancyConfig(TypedDict, total=False):
1094
1394
  TenantIsolationMode: TenantIsolationMode
1095
1395
 
1096
1396
 
1397
+ class DurableConfig(TypedDict, total=False):
1398
+ RetentionPeriodInDays: RetentionPeriodInDays | None
1399
+ ExecutionTimeout: ExecutionTimeout | None
1400
+
1401
+
1097
1402
  class LoggingConfig(TypedDict, total=False):
1098
1403
  LogFormat: LogFormat | None
1099
1404
  ApplicationLogLevel: ApplicationLogLevel | None
@@ -1188,6 +1493,7 @@ class CreateFunctionRequest(ServiceRequest):
1188
1493
  LoggingConfig: LoggingConfig | None
1189
1494
  CapacityProviderConfig: CapacityProviderConfig | None
1190
1495
  PublishTo: FunctionVersionLatestPublished | None
1496
+ DurableConfig: DurableConfig | None
1191
1497
  TenancyConfig: TenancyConfig | None
1192
1498
 
1193
1499
 
@@ -1270,6 +1576,18 @@ class DeleteProvisionedConcurrencyConfigRequest(ServiceRequest):
1270
1576
  Qualifier: Qualifier
1271
1577
 
1272
1578
 
1579
+ class Execution(TypedDict, total=False):
1580
+ DurableExecutionArn: DurableExecutionArn
1581
+ DurableExecutionName: DurableExecutionName
1582
+ FunctionArn: NameSpacedFunctionArn
1583
+ Status: ExecutionStatus
1584
+ StartTimestamp: ExecutionTimestamp
1585
+ EndTimestamp: ExecutionTimestamp | None
1586
+
1587
+
1588
+ DurableExecutions = list[Execution]
1589
+
1590
+
1273
1591
  class EnvironmentError(TypedDict, total=False):
1274
1592
  ErrorCode: String | None
1275
1593
  Message: SensitiveString | None
@@ -1280,6 +1598,100 @@ class EnvironmentResponse(TypedDict, total=False):
1280
1598
  Error: EnvironmentError | None
1281
1599
 
1282
1600
 
1601
+ class InvocationCompletedDetails(TypedDict, total=False):
1602
+ StartTimestamp: ExecutionTimestamp
1603
+ EndTimestamp: ExecutionTimestamp
1604
+ RequestId: String
1605
+ Error: EventError | None
1606
+
1607
+
1608
+ class RetryDetails(TypedDict, total=False):
1609
+ CurrentAttempt: AttemptCount | None
1610
+ NextAttemptDelaySeconds: DurationSeconds | None
1611
+
1612
+
1613
+ class StepFailedDetails(TypedDict, total=False):
1614
+ Error: EventError
1615
+ RetryDetails: RetryDetails
1616
+
1617
+
1618
+ class StepSucceededDetails(TypedDict, total=False):
1619
+ Result: EventResult
1620
+ RetryDetails: RetryDetails
1621
+
1622
+
1623
+ class StepStartedDetails(TypedDict, total=False):
1624
+ pass
1625
+
1626
+
1627
+ class WaitCancelledDetails(TypedDict, total=False):
1628
+ Error: EventError | None
1629
+
1630
+
1631
+ class WaitSucceededDetails(TypedDict, total=False):
1632
+ Duration: DurationSeconds | None
1633
+
1634
+
1635
+ class WaitStartedDetails(TypedDict, total=False):
1636
+ Duration: DurationSeconds
1637
+ ScheduledEndTimestamp: ExecutionTimestamp
1638
+
1639
+
1640
+ class ExecutionStoppedDetails(TypedDict, total=False):
1641
+ Error: EventError
1642
+
1643
+
1644
+ class ExecutionTimedOutDetails(TypedDict, total=False):
1645
+ Error: EventError | None
1646
+
1647
+
1648
+ class ExecutionFailedDetails(TypedDict, total=False):
1649
+ Error: EventError
1650
+
1651
+
1652
+ class ExecutionSucceededDetails(TypedDict, total=False):
1653
+ Result: EventResult
1654
+
1655
+
1656
+ class ExecutionStartedDetails(TypedDict, total=False):
1657
+ Input: EventInput
1658
+ ExecutionTimeout: DurationSeconds
1659
+
1660
+
1661
+ class Event(TypedDict, total=False):
1662
+ EventType: EventType | None
1663
+ SubType: OperationSubType | None
1664
+ EventId: EventId | None
1665
+ Id: OperationId | None
1666
+ Name: OperationName | None
1667
+ EventTimestamp: ExecutionTimestamp | None
1668
+ ParentId: OperationId | None
1669
+ ExecutionStartedDetails: ExecutionStartedDetails | None
1670
+ ExecutionSucceededDetails: ExecutionSucceededDetails | None
1671
+ ExecutionFailedDetails: ExecutionFailedDetails | None
1672
+ ExecutionTimedOutDetails: ExecutionTimedOutDetails | None
1673
+ ExecutionStoppedDetails: ExecutionStoppedDetails | None
1674
+ ContextStartedDetails: ContextStartedDetails | None
1675
+ ContextSucceededDetails: ContextSucceededDetails | None
1676
+ ContextFailedDetails: ContextFailedDetails | None
1677
+ WaitStartedDetails: WaitStartedDetails | None
1678
+ WaitSucceededDetails: WaitSucceededDetails | None
1679
+ WaitCancelledDetails: WaitCancelledDetails | None
1680
+ StepStartedDetails: StepStartedDetails | None
1681
+ StepSucceededDetails: StepSucceededDetails | None
1682
+ StepFailedDetails: StepFailedDetails | None
1683
+ ChainedInvokeStartedDetails: ChainedInvokeStartedDetails | None
1684
+ ChainedInvokeSucceededDetails: ChainedInvokeSucceededDetails | None
1685
+ ChainedInvokeFailedDetails: ChainedInvokeFailedDetails | None
1686
+ ChainedInvokeTimedOutDetails: ChainedInvokeTimedOutDetails | None
1687
+ ChainedInvokeStoppedDetails: ChainedInvokeStoppedDetails | None
1688
+ CallbackStartedDetails: CallbackStartedDetails | None
1689
+ CallbackSucceededDetails: CallbackSucceededDetails | None
1690
+ CallbackFailedDetails: CallbackFailedDetails | None
1691
+ CallbackTimedOutDetails: CallbackTimedOutDetails | None
1692
+ InvocationCompletedDetails: InvocationCompletedDetails | None
1693
+
1694
+
1283
1695
  class FilterCriteriaError(TypedDict, total=False):
1284
1696
  ErrorCode: FilterCriteriaErrorCode | None
1285
1697
  Message: FilterCriteriaErrorMessage | None
@@ -1321,6 +1733,8 @@ class EventSourceMappingConfiguration(TypedDict, total=False):
1321
1733
 
1322
1734
 
1323
1735
  EventSourceMappingsList = list[EventSourceMappingConfiguration]
1736
+ Events = list[Event]
1737
+ ExecutionStatusList = list[ExecutionStatus]
1324
1738
  FunctionArnList = list[FunctionArn]
1325
1739
 
1326
1740
 
@@ -1417,6 +1831,7 @@ class FunctionConfiguration(TypedDict, total=False):
1417
1831
  LoggingConfig: LoggingConfig | None
1418
1832
  CapacityProviderConfig: CapacityProviderConfig | None
1419
1833
  ConfigSha256: String | None
1834
+ DurableConfig: DurableConfig | None
1420
1835
  TenancyConfig: TenancyConfig | None
1421
1836
 
1422
1837
 
@@ -1488,6 +1903,53 @@ class GetCodeSigningConfigResponse(TypedDict, total=False):
1488
1903
  CodeSigningConfig: CodeSigningConfig
1489
1904
 
1490
1905
 
1906
+ class GetDurableExecutionHistoryRequest(ServiceRequest):
1907
+ DurableExecutionArn: DurableExecutionArn
1908
+ IncludeExecutionData: IncludeExecutionData | None
1909
+ MaxItems: ItemCount | None
1910
+ Marker: String | None
1911
+ ReverseOrder: ReverseOrder | None
1912
+
1913
+
1914
+ class GetDurableExecutionHistoryResponse(TypedDict, total=False):
1915
+ Events: Events
1916
+ NextMarker: String | None
1917
+
1918
+
1919
+ class GetDurableExecutionRequest(ServiceRequest):
1920
+ DurableExecutionArn: DurableExecutionArn
1921
+
1922
+
1923
+ class TraceHeader(TypedDict, total=False):
1924
+ XAmznTraceId: XAmznTraceId | None
1925
+
1926
+
1927
+ class GetDurableExecutionResponse(TypedDict, total=False):
1928
+ DurableExecutionArn: DurableExecutionArn
1929
+ DurableExecutionName: DurableExecutionName
1930
+ FunctionArn: NameSpacedFunctionArn
1931
+ InputPayload: InputPayload | None
1932
+ Result: OutputPayload | None
1933
+ Error: ErrorObject | None
1934
+ StartTimestamp: ExecutionTimestamp
1935
+ Status: ExecutionStatus
1936
+ EndTimestamp: ExecutionTimestamp | None
1937
+ Version: VersionWithLatestPublished | None
1938
+ TraceHeader: TraceHeader | None
1939
+
1940
+
1941
+ class GetDurableExecutionStateRequest(ServiceRequest):
1942
+ DurableExecutionArn: DurableExecutionArn
1943
+ CheckpointToken: CheckpointToken
1944
+ Marker: String | None
1945
+ MaxItems: ItemCount | None
1946
+
1947
+
1948
+ class GetDurableExecutionStateResponse(TypedDict, total=False):
1949
+ Operations: Operations
1950
+ NextMarker: String | None
1951
+
1952
+
1491
1953
  class GetEventSourceMappingRequest(ServiceRequest):
1492
1954
  UUID: String
1493
1955
 
@@ -1651,6 +2113,7 @@ class InvocationRequest(ServiceRequest):
1651
2113
  InvocationType: InvocationType | None
1652
2114
  LogType: LogType | None
1653
2115
  ClientContext: String | None
2116
+ DurableExecutionName: DurableExecutionName | None
1654
2117
  Qualifier: NumericLatestPublishedOrAliasQualifier | None
1655
2118
  TenantId: TenantId | None
1656
2119
 
@@ -1661,6 +2124,7 @@ class InvocationResponse(TypedDict, total=False):
1661
2124
  FunctionError: String | None
1662
2125
  LogResult: String | None
1663
2126
  ExecutedVersion: Version | None
2127
+ DurableExecutionArn: DurableExecutionArn | None
1664
2128
 
1665
2129
 
1666
2130
  class InvokeAsyncRequest(ServiceRequest):
@@ -1766,6 +2230,23 @@ class ListCodeSigningConfigsResponse(TypedDict, total=False):
1766
2230
  CodeSigningConfigs: CodeSigningConfigList | None
1767
2231
 
1768
2232
 
2233
+ class ListDurableExecutionsByFunctionRequest(ServiceRequest):
2234
+ FunctionName: NamespacedFunctionName
2235
+ Qualifier: NumericLatestPublishedOrAliasQualifier | None
2236
+ DurableExecutionName: DurableExecutionName | None
2237
+ Statuses: ExecutionStatusList | None
2238
+ StartedAfter: ExecutionTimestamp | None
2239
+ StartedBefore: ExecutionTimestamp | None
2240
+ ReverseOrder: ReverseOrder | None
2241
+ Marker: String | None
2242
+ MaxItems: ItemCount | None
2243
+
2244
+
2245
+ class ListDurableExecutionsByFunctionResponse(TypedDict, total=False):
2246
+ DurableExecutions: DurableExecutions | None
2247
+ NextMarker: String | None
2248
+
2249
+
1769
2250
  class ListEventSourceMappingsRequest(ServiceRequest):
1770
2251
  EventSourceArn: Arn | None
1771
2252
  FunctionName: NamespacedFunctionName | None
@@ -2016,6 +2497,41 @@ class RemovePermissionRequest(ServiceRequest):
2016
2497
  RevisionId: String | None
2017
2498
 
2018
2499
 
2500
+ class SendDurableExecutionCallbackFailureRequest(ServiceRequest):
2501
+ CallbackId: CallbackId
2502
+ Error: ErrorObject | None
2503
+
2504
+
2505
+ class SendDurableExecutionCallbackFailureResponse(TypedDict, total=False):
2506
+ pass
2507
+
2508
+
2509
+ class SendDurableExecutionCallbackHeartbeatRequest(ServiceRequest):
2510
+ CallbackId: CallbackId
2511
+
2512
+
2513
+ class SendDurableExecutionCallbackHeartbeatResponse(TypedDict, total=False):
2514
+ pass
2515
+
2516
+
2517
+ class SendDurableExecutionCallbackSuccessRequest(ServiceRequest):
2518
+ Result: IO[BinaryOperationPayload] | None
2519
+ CallbackId: CallbackId
2520
+
2521
+
2522
+ class SendDurableExecutionCallbackSuccessResponse(TypedDict, total=False):
2523
+ pass
2524
+
2525
+
2526
+ class StopDurableExecutionRequest(ServiceRequest):
2527
+ DurableExecutionArn: DurableExecutionArn
2528
+ Error: ErrorObject | None
2529
+
2530
+
2531
+ class StopDurableExecutionResponse(TypedDict, total=False):
2532
+ StopTimestamp: ExecutionTimestamp
2533
+
2534
+
2019
2535
  TagKeyList = list[TagKey]
2020
2536
 
2021
2537
 
@@ -2118,6 +2634,7 @@ class UpdateFunctionConfigurationRequest(ServiceRequest):
2118
2634
  SnapStart: SnapStart | None
2119
2635
  LoggingConfig: LoggingConfig | None
2120
2636
  CapacityProviderConfig: CapacityProviderConfig | None
2637
+ DurableConfig: DurableConfig | None
2121
2638
 
2122
2639
 
2123
2640
  class UpdateFunctionEventInvokeConfigRequest(ServiceRequest):
@@ -2185,6 +2702,18 @@ class LambdaApi:
2185
2702
  ) -> AddPermissionResponse:
2186
2703
  raise NotImplementedError
2187
2704
 
2705
+ @handler("CheckpointDurableExecution")
2706
+ def checkpoint_durable_execution(
2707
+ self,
2708
+ context: RequestContext,
2709
+ durable_execution_arn: DurableExecutionArn,
2710
+ checkpoint_token: CheckpointToken,
2711
+ updates: OperationUpdates | None = None,
2712
+ client_token: ClientToken | None = None,
2713
+ **kwargs,
2714
+ ) -> CheckpointDurableExecutionResponse:
2715
+ raise NotImplementedError
2716
+
2188
2717
  @handler("CreateAlias")
2189
2718
  def create_alias(
2190
2719
  self,
@@ -2290,6 +2819,7 @@ class LambdaApi:
2290
2819
  logging_config: LoggingConfig | None = None,
2291
2820
  capacity_provider_config: CapacityProviderConfig | None = None,
2292
2821
  publish_to: FunctionVersionLatestPublished | None = None,
2822
+ durable_config: DurableConfig | None = None,
2293
2823
  tenancy_config: TenancyConfig | None = None,
2294
2824
  **kwargs,
2295
2825
  ) -> FunctionConfiguration:
@@ -2412,6 +2942,37 @@ class LambdaApi:
2412
2942
  ) -> GetCodeSigningConfigResponse:
2413
2943
  raise NotImplementedError
2414
2944
 
2945
+ @handler("GetDurableExecution")
2946
+ def get_durable_execution(
2947
+ self, context: RequestContext, durable_execution_arn: DurableExecutionArn, **kwargs
2948
+ ) -> GetDurableExecutionResponse:
2949
+ raise NotImplementedError
2950
+
2951
+ @handler("GetDurableExecutionHistory")
2952
+ def get_durable_execution_history(
2953
+ self,
2954
+ context: RequestContext,
2955
+ durable_execution_arn: DurableExecutionArn,
2956
+ include_execution_data: IncludeExecutionData | None = None,
2957
+ max_items: ItemCount | None = None,
2958
+ marker: String | None = None,
2959
+ reverse_order: ReverseOrder | None = None,
2960
+ **kwargs,
2961
+ ) -> GetDurableExecutionHistoryResponse:
2962
+ raise NotImplementedError
2963
+
2964
+ @handler("GetDurableExecutionState")
2965
+ def get_durable_execution_state(
2966
+ self,
2967
+ context: RequestContext,
2968
+ durable_execution_arn: DurableExecutionArn,
2969
+ checkpoint_token: CheckpointToken,
2970
+ marker: String | None = None,
2971
+ max_items: ItemCount | None = None,
2972
+ **kwargs,
2973
+ ) -> GetDurableExecutionStateResponse:
2974
+ raise NotImplementedError
2975
+
2415
2976
  @handler("GetEventSourceMapping")
2416
2977
  def get_event_source_mapping(
2417
2978
  self, context: RequestContext, uuid: String, **kwargs
@@ -2546,6 +3107,7 @@ class LambdaApi:
2546
3107
  invocation_type: InvocationType | None = None,
2547
3108
  log_type: LogType | None = None,
2548
3109
  client_context: String | None = None,
3110
+ durable_execution_name: DurableExecutionName | None = None,
2549
3111
  payload: IO[Blob] | None = None,
2550
3112
  qualifier: NumericLatestPublishedOrAliasQualifier | None = None,
2551
3113
  tenant_id: TenantId | None = None,
@@ -2611,6 +3173,23 @@ class LambdaApi:
2611
3173
  ) -> ListCodeSigningConfigsResponse:
2612
3174
  raise NotImplementedError
2613
3175
 
3176
+ @handler("ListDurableExecutionsByFunction")
3177
+ def list_durable_executions_by_function(
3178
+ self,
3179
+ context: RequestContext,
3180
+ function_name: NamespacedFunctionName,
3181
+ qualifier: NumericLatestPublishedOrAliasQualifier | None = None,
3182
+ durable_execution_name: DurableExecutionName | None = None,
3183
+ statuses: ExecutionStatusList | None = None,
3184
+ started_after: ExecutionTimestamp | None = None,
3185
+ started_before: ExecutionTimestamp | None = None,
3186
+ reverse_order: ReverseOrder | None = None,
3187
+ marker: String | None = None,
3188
+ max_items: ItemCount | None = None,
3189
+ **kwargs,
3190
+ ) -> ListDurableExecutionsByFunctionResponse:
3191
+ raise NotImplementedError
3192
+
2614
3193
  @handler("ListEventSourceMappings")
2615
3194
  def list_event_source_mappings(
2616
3195
  self,
@@ -2860,6 +3439,42 @@ class LambdaApi:
2860
3439
  ) -> None:
2861
3440
  raise NotImplementedError
2862
3441
 
3442
+ @handler("SendDurableExecutionCallbackFailure")
3443
+ def send_durable_execution_callback_failure(
3444
+ self,
3445
+ context: RequestContext,
3446
+ callback_id: CallbackId,
3447
+ error: ErrorObject | None = None,
3448
+ **kwargs,
3449
+ ) -> SendDurableExecutionCallbackFailureResponse:
3450
+ raise NotImplementedError
3451
+
3452
+ @handler("SendDurableExecutionCallbackHeartbeat")
3453
+ def send_durable_execution_callback_heartbeat(
3454
+ self, context: RequestContext, callback_id: CallbackId, **kwargs
3455
+ ) -> SendDurableExecutionCallbackHeartbeatResponse:
3456
+ raise NotImplementedError
3457
+
3458
+ @handler("SendDurableExecutionCallbackSuccess")
3459
+ def send_durable_execution_callback_success(
3460
+ self,
3461
+ context: RequestContext,
3462
+ callback_id: CallbackId,
3463
+ result: IO[BinaryOperationPayload] | None = None,
3464
+ **kwargs,
3465
+ ) -> SendDurableExecutionCallbackSuccessResponse:
3466
+ raise NotImplementedError
3467
+
3468
+ @handler("StopDurableExecution")
3469
+ def stop_durable_execution(
3470
+ self,
3471
+ context: RequestContext,
3472
+ durable_execution_arn: DurableExecutionArn,
3473
+ error: ErrorObject | None = None,
3474
+ **kwargs,
3475
+ ) -> StopDurableExecutionResponse:
3476
+ raise NotImplementedError
3477
+
2863
3478
  @handler("TagResource")
2864
3479
  def tag_resource(
2865
3480
  self, context: RequestContext, resource: TaggableResource, tags: Tags, **kwargs
@@ -2981,6 +3596,7 @@ class LambdaApi:
2981
3596
  snap_start: SnapStart | None = None,
2982
3597
  logging_config: LoggingConfig | None = None,
2983
3598
  capacity_provider_config: CapacityProviderConfig | None = None,
3599
+ durable_config: DurableConfig | None = None,
2984
3600
  **kwargs,
2985
3601
  ) -> FunctionConfiguration:
2986
3602
  raise NotImplementedError