@aws-sdk/client-lambda 3.942.0 → 3.945.0

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 (71) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/index.js +1039 -83
  3. package/dist-es/Lambda.js +18 -0
  4. package/dist-es/commands/CheckpointDurableExecutionCommand.js +16 -0
  5. package/dist-es/commands/GetDurableExecutionCommand.js +16 -0
  6. package/dist-es/commands/GetDurableExecutionHistoryCommand.js +16 -0
  7. package/dist-es/commands/GetDurableExecutionStateCommand.js +16 -0
  8. package/dist-es/commands/ListDurableExecutionsByFunctionCommand.js +16 -0
  9. package/dist-es/commands/SendDurableExecutionCallbackFailureCommand.js +16 -0
  10. package/dist-es/commands/SendDurableExecutionCallbackHeartbeatCommand.js +16 -0
  11. package/dist-es/commands/SendDurableExecutionCallbackSuccessCommand.js +16 -0
  12. package/dist-es/commands/StopDurableExecutionCommand.js +16 -0
  13. package/dist-es/commands/index.js +9 -0
  14. package/dist-es/models/enums.js +61 -0
  15. package/dist-es/models/errors.js +32 -0
  16. package/dist-es/pagination/GetDurableExecutionHistoryPaginator.js +4 -0
  17. package/dist-es/pagination/GetDurableExecutionStatePaginator.js +4 -0
  18. package/dist-es/pagination/ListDurableExecutionsByFunctionPaginator.js +4 -0
  19. package/dist-es/pagination/index.js +3 -0
  20. package/dist-es/schemas/schemas_0.js +806 -84
  21. package/dist-types/Lambda.d.ts +63 -0
  22. package/dist-types/LambdaClient.d.ts +11 -2
  23. package/dist-types/commands/CheckpointDurableExecutionCommand.d.ts +190 -0
  24. package/dist-types/commands/CreateFunctionCommand.d.ts +18 -2
  25. package/dist-types/commands/GetDurableExecutionCommand.d.ts +105 -0
  26. package/dist-types/commands/GetDurableExecutionHistoryCommand.d.ts +259 -0
  27. package/dist-types/commands/GetDurableExecutionStateCommand.d.ts +152 -0
  28. package/dist-types/commands/GetFunctionCommand.d.ts +10 -2
  29. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +10 -2
  30. package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  31. package/dist-types/commands/InvokeCommand.d.ts +7 -0
  32. package/dist-types/commands/ListDurableExecutionsByFunctionCommand.d.ts +106 -0
  33. package/dist-types/commands/ListFunctionsCommand.d.ts +10 -2
  34. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +14 -2
  35. package/dist-types/commands/PublishVersionCommand.d.ts +6 -2
  36. package/dist-types/commands/SendDurableExecutionCallbackFailureCommand.d.ts +92 -0
  37. package/dist-types/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +84 -0
  38. package/dist-types/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +91 -0
  39. package/dist-types/commands/StopDurableExecutionCommand.d.ts +94 -0
  40. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +6 -2
  41. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +18 -2
  42. package/dist-types/commands/index.d.ts +9 -0
  43. package/dist-types/models/enums.d.ts +101 -0
  44. package/dist-types/models/errors.d.ts +36 -0
  45. package/dist-types/models/models_0.d.ts +1510 -173
  46. package/dist-types/pagination/GetDurableExecutionHistoryPaginator.d.ts +7 -0
  47. package/dist-types/pagination/GetDurableExecutionStatePaginator.d.ts +7 -0
  48. package/dist-types/pagination/ListDurableExecutionsByFunctionPaginator.d.ts +7 -0
  49. package/dist-types/pagination/index.d.ts +3 -0
  50. package/dist-types/schemas/schemas_0.d.ts +90 -0
  51. package/dist-types/ts3.4/Lambda.d.ts +171 -0
  52. package/dist-types/ts3.4/LambdaClient.d.ts +54 -0
  53. package/dist-types/ts3.4/commands/CheckpointDurableExecutionCommand.d.ts +51 -0
  54. package/dist-types/ts3.4/commands/GetDurableExecutionCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/GetDurableExecutionHistoryCommand.d.ts +51 -0
  56. package/dist-types/ts3.4/commands/GetDurableExecutionStateCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/ListDurableExecutionsByFunctionCommand.d.ts +51 -0
  58. package/dist-types/ts3.4/commands/SendDurableExecutionCallbackFailureCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +51 -0
  60. package/dist-types/ts3.4/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +60 -0
  61. package/dist-types/ts3.4/commands/StopDurableExecutionCommand.d.ts +51 -0
  62. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  63. package/dist-types/ts3.4/models/enums.d.ts +69 -0
  64. package/dist-types/ts3.4/models/errors.d.ts +21 -0
  65. package/dist-types/ts3.4/models/models_0.d.ts +322 -0
  66. package/dist-types/ts3.4/pagination/GetDurableExecutionHistoryPaginator.d.ts +11 -0
  67. package/dist-types/ts3.4/pagination/GetDurableExecutionStatePaginator.d.ts +11 -0
  68. package/dist-types/ts3.4/pagination/ListDurableExecutionsByFunctionPaginator.d.ts +11 -0
  69. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  70. package/dist-types/ts3.4/schemas/schemas_0.d.ts +90 -0
  71. package/package.json +5 -5
@@ -103,6 +103,10 @@ declare const UpdateFunctionConfigurationCommand_base: {
103
103
  * ExecutionEnvironmentMemoryGiBPerVCpu: Number("double"),
104
104
  * },
105
105
  * },
106
+ * DurableConfig: { // DurableConfig
107
+ * RetentionPeriodInDays: Number("int"),
108
+ * ExecutionTimeout: Number("int"),
109
+ * },
106
110
  * };
107
111
  * const command = new UpdateFunctionConfigurationCommand(input);
108
112
  * const response = await client.send(command);
@@ -157,10 +161,10 @@ declare const UpdateFunctionConfigurationCommand_base: {
157
161
  * // ],
158
162
  * // State: "Pending" || "Active" || "Inactive" || "Failed" || "Deactivating" || "Deactivated" || "ActiveNonInvocable" || "Deleting",
159
163
  * // StateReason: "STRING_VALUE",
160
- * // StateReasonCode: "Idle" || "Creating" || "Restoring" || "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError" || "VcpuLimitExceeded" || "CapacityProviderScalingLimitExceeded" || "InsufficientCapacity" || "EC2RequestLimitExceeded" || "FunctionError.InitTimeout" || "FunctionError.RuntimeInitError" || "FunctionError.ExtensionInitError" || "FunctionError.InvalidEntryPoint" || "FunctionError.InvalidWorkingDirectory" || "FunctionError.PermissionDenied" || "FunctionError.TooManyExtensions" || "FunctionError.InitResourceExhausted",
164
+ * // StateReasonCode: "Idle" || "Creating" || "Restoring" || "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError" || "DrainingDurableExecutions" || "VcpuLimitExceeded" || "CapacityProviderScalingLimitExceeded" || "InsufficientCapacity" || "EC2RequestLimitExceeded" || "FunctionError.InitTimeout" || "FunctionError.RuntimeInitError" || "FunctionError.ExtensionInitError" || "FunctionError.InvalidEntryPoint" || "FunctionError.InvalidWorkingDirectory" || "FunctionError.PermissionDenied" || "FunctionError.TooManyExtensions" || "FunctionError.InitResourceExhausted" || "DisallowedByVpcEncryptionControl",
161
165
  * // LastUpdateStatus: "Successful" || "Failed" || "InProgress",
162
166
  * // LastUpdateStatusReason: "STRING_VALUE",
163
- * // LastUpdateStatusReasonCode: "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError" || "VcpuLimitExceeded" || "CapacityProviderScalingLimitExceeded" || "InsufficientCapacity" || "EC2RequestLimitExceeded" || "FunctionError.InitTimeout" || "FunctionError.RuntimeInitError" || "FunctionError.ExtensionInitError" || "FunctionError.InvalidEntryPoint" || "FunctionError.InvalidWorkingDirectory" || "FunctionError.PermissionDenied" || "FunctionError.TooManyExtensions" || "FunctionError.InitResourceExhausted",
167
+ * // LastUpdateStatusReasonCode: "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError" || "VcpuLimitExceeded" || "CapacityProviderScalingLimitExceeded" || "InsufficientCapacity" || "EC2RequestLimitExceeded" || "FunctionError.InitTimeout" || "FunctionError.RuntimeInitError" || "FunctionError.ExtensionInitError" || "FunctionError.InvalidEntryPoint" || "FunctionError.InvalidWorkingDirectory" || "FunctionError.PermissionDenied" || "FunctionError.TooManyExtensions" || "FunctionError.InitResourceExhausted" || "DisallowedByVpcEncryptionControl",
164
168
  * // FileSystemConfigs: [ // FileSystemConfigList
165
169
  * // { // FileSystemConfig
166
170
  * // Arn: "STRING_VALUE", // required
@@ -216,6 +220,10 @@ declare const UpdateFunctionConfigurationCommand_base: {
216
220
  * // },
217
221
  * // },
218
222
  * // ConfigSha256: "STRING_VALUE",
223
+ * // DurableConfig: { // DurableConfig
224
+ * // RetentionPeriodInDays: Number("int"),
225
+ * // ExecutionTimeout: Number("int"),
226
+ * // },
219
227
  * // TenancyConfig: { // TenancyConfig
220
228
  * // TenantIsolationMode: "PER_TENANT", // required
221
229
  * // },
@@ -264,6 +272,10 @@ declare const UpdateFunctionConfigurationCommand_base: {
264
272
  * ```javascript
265
273
  * // The following example modifies the memory size to be 256 MB for the unpublished ($LATEST) version of a function named my-function.
266
274
  * const input = {
275
+ * DurableConfig: {
276
+ * ExecutionTimeout: 3600,
277
+ * RetentionPeriodInDays: 45
278
+ * },
267
279
  * FunctionName: "my-function",
268
280
  * MemorySize: 256
269
281
  * };
@@ -274,6 +286,10 @@ declare const UpdateFunctionConfigurationCommand_base: {
274
286
  * CodeSha256: "PFn4S+er27qk+UuZSTKEQfNKG/XNn7QJs90mJgq6oH8=",
275
287
  * CodeSize: 308,
276
288
  * Description: "",
289
+ * DurableConfig: {
290
+ * ExecutionTimeout: 3600,
291
+ * RetentionPeriodInDays: 45
292
+ * },
277
293
  * FunctionArn: "arn:aws:lambda:us-east-2:123456789012:function:my-function",
278
294
  * FunctionName: "my-function",
279
295
  * Handler: "index.handler",
@@ -1,5 +1,6 @@
1
1
  export * from "./AddLayerVersionPermissionCommand";
2
2
  export * from "./AddPermissionCommand";
3
+ export * from "./CheckpointDurableExecutionCommand";
3
4
  export * from "./CreateAliasCommand";
4
5
  export * from "./CreateCapacityProviderCommand";
5
6
  export * from "./CreateCodeSigningConfigCommand";
@@ -21,6 +22,9 @@ export * from "./GetAccountSettingsCommand";
21
22
  export * from "./GetAliasCommand";
22
23
  export * from "./GetCapacityProviderCommand";
23
24
  export * from "./GetCodeSigningConfigCommand";
25
+ export * from "./GetDurableExecutionCommand";
26
+ export * from "./GetDurableExecutionHistoryCommand";
27
+ export * from "./GetDurableExecutionStateCommand";
24
28
  export * from "./GetEventSourceMappingCommand";
25
29
  export * from "./GetFunctionCodeSigningConfigCommand";
26
30
  export * from "./GetFunctionCommand";
@@ -42,6 +46,7 @@ export * from "./InvokeWithResponseStreamCommand";
42
46
  export * from "./ListAliasesCommand";
43
47
  export * from "./ListCapacityProvidersCommand";
44
48
  export * from "./ListCodeSigningConfigsCommand";
49
+ export * from "./ListDurableExecutionsByFunctionCommand";
45
50
  export * from "./ListEventSourceMappingsCommand";
46
51
  export * from "./ListFunctionEventInvokeConfigsCommand";
47
52
  export * from "./ListFunctionUrlConfigsCommand";
@@ -64,6 +69,10 @@ export * from "./PutProvisionedConcurrencyConfigCommand";
64
69
  export * from "./PutRuntimeManagementConfigCommand";
65
70
  export * from "./RemoveLayerVersionPermissionCommand";
66
71
  export * from "./RemovePermissionCommand";
72
+ export * from "./SendDurableExecutionCallbackFailureCommand";
73
+ export * from "./SendDurableExecutionCallbackHeartbeatCommand";
74
+ export * from "./SendDurableExecutionCallbackSuccessCommand";
75
+ export * from "./StopDurableExecutionCommand";
67
76
  export * from "./TagResourceCommand";
68
77
  export * from "./UntagResourceCommand";
69
78
  export * from "./UpdateAliasCommand";
@@ -146,6 +146,55 @@ export declare const State: {
146
146
  * @public
147
147
  */
148
148
  export type State = (typeof State)[keyof typeof State];
149
+ /**
150
+ * @public
151
+ * @enum
152
+ */
153
+ export declare const OperationAction: {
154
+ readonly CANCEL: "CANCEL";
155
+ readonly FAIL: "FAIL";
156
+ readonly RETRY: "RETRY";
157
+ readonly START: "START";
158
+ readonly SUCCEED: "SUCCEED";
159
+ };
160
+ /**
161
+ * @public
162
+ */
163
+ export type OperationAction = (typeof OperationAction)[keyof typeof OperationAction];
164
+ /**
165
+ * @public
166
+ * @enum
167
+ */
168
+ export declare const OperationType: {
169
+ readonly CALLBACK: "CALLBACK";
170
+ readonly CHAINED_INVOKE: "CHAINED_INVOKE";
171
+ readonly CONTEXT: "CONTEXT";
172
+ readonly EXECUTION: "EXECUTION";
173
+ readonly STEP: "STEP";
174
+ readonly WAIT: "WAIT";
175
+ };
176
+ /**
177
+ * @public
178
+ */
179
+ export type OperationType = (typeof OperationType)[keyof typeof OperationType];
180
+ /**
181
+ * @public
182
+ * @enum
183
+ */
184
+ export declare const OperationStatus: {
185
+ readonly CANCELLED: "CANCELLED";
186
+ readonly FAILED: "FAILED";
187
+ readonly PENDING: "PENDING";
188
+ readonly READY: "READY";
189
+ readonly STARTED: "STARTED";
190
+ readonly STOPPED: "STOPPED";
191
+ readonly SUCCEEDED: "SUCCEEDED";
192
+ readonly TIMED_OUT: "TIMED_OUT";
193
+ };
194
+ /**
195
+ * @public
196
+ */
197
+ export type OperationStatus = (typeof OperationStatus)[keyof typeof OperationStatus];
149
198
  /**
150
199
  * @public
151
200
  * @enum
@@ -391,6 +440,7 @@ export type LastUpdateStatus = (typeof LastUpdateStatus)[keyof typeof LastUpdate
391
440
  export declare const LastUpdateStatusReasonCode: {
392
441
  readonly CapacityProviderScalingLimitExceeded: "CapacityProviderScalingLimitExceeded";
393
442
  readonly DisabledKMSKey: "DisabledKMSKey";
443
+ readonly DisallowedByVpcEncryptionControl: "DisallowedByVpcEncryptionControl";
394
444
  readonly EC2RequestLimitExceeded: "EC2RequestLimitExceeded";
395
445
  readonly EFSIOError: "EFSIOError";
396
446
  readonly EFSMountConnectivityError: "EFSMountConnectivityError";
@@ -447,6 +497,8 @@ export declare const StateReasonCode: {
447
497
  readonly CapacityProviderScalingLimitExceeded: "CapacityProviderScalingLimitExceeded";
448
498
  readonly Creating: "Creating";
449
499
  readonly DisabledKMSKey: "DisabledKMSKey";
500
+ readonly DisallowedByVpcEncryptionControl: "DisallowedByVpcEncryptionControl";
501
+ readonly DrainingDurableExecutions: "DrainingDurableExecutions";
450
502
  readonly EC2RequestLimitExceeded: "EC2RequestLimitExceeded";
451
503
  readonly EFSIOError: "EFSIOError";
452
504
  readonly EFSMountConnectivityError: "EFSMountConnectivityError";
@@ -583,3 +635,52 @@ export declare const ProvisionedConcurrencyStatusEnum: {
583
635
  * @public
584
636
  */
585
637
  export type ProvisionedConcurrencyStatusEnum = (typeof ProvisionedConcurrencyStatusEnum)[keyof typeof ProvisionedConcurrencyStatusEnum];
638
+ /**
639
+ * @public
640
+ * @enum
641
+ */
642
+ export declare const ExecutionStatus: {
643
+ readonly FAILED: "FAILED";
644
+ readonly RUNNING: "RUNNING";
645
+ readonly STOPPED: "STOPPED";
646
+ readonly SUCCEEDED: "SUCCEEDED";
647
+ readonly TIMED_OUT: "TIMED_OUT";
648
+ };
649
+ /**
650
+ * @public
651
+ */
652
+ export type ExecutionStatus = (typeof ExecutionStatus)[keyof typeof ExecutionStatus];
653
+ /**
654
+ * @public
655
+ * @enum
656
+ */
657
+ export declare const EventType: {
658
+ readonly CallbackFailed: "CallbackFailed";
659
+ readonly CallbackStarted: "CallbackStarted";
660
+ readonly CallbackSucceeded: "CallbackSucceeded";
661
+ readonly CallbackTimedOut: "CallbackTimedOut";
662
+ readonly ChainedInvokeFailed: "ChainedInvokeFailed";
663
+ readonly ChainedInvokeStarted: "ChainedInvokeStarted";
664
+ readonly ChainedInvokeStopped: "ChainedInvokeStopped";
665
+ readonly ChainedInvokeSucceeded: "ChainedInvokeSucceeded";
666
+ readonly ChainedInvokeTimedOut: "ChainedInvokeTimedOut";
667
+ readonly ContextFailed: "ContextFailed";
668
+ readonly ContextStarted: "ContextStarted";
669
+ readonly ContextSucceeded: "ContextSucceeded";
670
+ readonly ExecutionFailed: "ExecutionFailed";
671
+ readonly ExecutionStarted: "ExecutionStarted";
672
+ readonly ExecutionStopped: "ExecutionStopped";
673
+ readonly ExecutionSucceeded: "ExecutionSucceeded";
674
+ readonly ExecutionTimedOut: "ExecutionTimedOut";
675
+ readonly InvocationCompleted: "InvocationCompleted";
676
+ readonly StepFailed: "StepFailed";
677
+ readonly StepStarted: "StepStarted";
678
+ readonly StepSucceeded: "StepSucceeded";
679
+ readonly WaitCancelled: "WaitCancelled";
680
+ readonly WaitStarted: "WaitStarted";
681
+ readonly WaitSucceeded: "WaitSucceeded";
682
+ };
683
+ /**
684
+ * @public
685
+ */
686
+ export type EventType = (typeof EventType)[keyof typeof EventType];
@@ -219,6 +219,24 @@ export declare class InvalidCodeSignatureException extends __BaseException {
219
219
  */
220
220
  constructor(opts: __ExceptionOptionType<InvalidCodeSignatureException, __BaseException>);
221
221
  }
222
+ /**
223
+ * <p>The durable execution with the specified name has already been started. Each durable execution name must be unique within the function. Use a different name or check the status of the existing execution.</p>
224
+ * @public
225
+ */
226
+ export declare class DurableExecutionAlreadyStartedException extends __BaseException {
227
+ readonly name: "DurableExecutionAlreadyStartedException";
228
+ readonly $fault: "client";
229
+ /**
230
+ * <p>The exception type.</p>
231
+ * @public
232
+ */
233
+ Type?: string | undefined;
234
+ Message?: string | undefined;
235
+ /**
236
+ * @internal
237
+ */
238
+ constructor(opts: __ExceptionOptionType<DurableExecutionAlreadyStartedException, __BaseException>);
239
+ }
222
240
  /**
223
241
  * <p>Need additional permissions to configure VPC settings.</p>
224
242
  * @public
@@ -630,3 +648,21 @@ export declare class ProvisionedConcurrencyConfigNotFoundException extends __Bas
630
648
  */
631
649
  constructor(opts: __ExceptionOptionType<ProvisionedConcurrencyConfigNotFoundException, __BaseException>);
632
650
  }
651
+ /**
652
+ * <p>The callback ID token has either expired or the callback associated with the token has already been closed.</p>
653
+ * @public
654
+ */
655
+ export declare class CallbackTimeoutException extends __BaseException {
656
+ readonly name: "CallbackTimeoutException";
657
+ readonly $fault: "client";
658
+ /**
659
+ * <p>The exception type.</p>
660
+ * @public
661
+ */
662
+ Type?: string | undefined;
663
+ Message?: string | undefined;
664
+ /**
665
+ * @internal
666
+ */
667
+ constructor(opts: __ExceptionOptionType<CallbackTimeoutException, __BaseException>);
668
+ }