@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
@@ -0,0 +1,106 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
+ import { ListDurableExecutionsByFunctionRequest, ListDurableExecutionsByFunctionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListDurableExecutionsByFunctionCommand}.
14
+ */
15
+ export interface ListDurableExecutionsByFunctionCommandInput extends ListDurableExecutionsByFunctionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListDurableExecutionsByFunctionCommand}.
21
+ */
22
+ export interface ListDurableExecutionsByFunctionCommandOutput extends ListDurableExecutionsByFunctionResponse, __MetadataBearer {
23
+ }
24
+ declare const ListDurableExecutionsByFunctionCommand_base: {
25
+ new (input: ListDurableExecutionsByFunctionCommandInput): import("@smithy/smithy-client").CommandImpl<ListDurableExecutionsByFunctionCommandInput, ListDurableExecutionsByFunctionCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListDurableExecutionsByFunctionCommandInput): import("@smithy/smithy-client").CommandImpl<ListDurableExecutionsByFunctionCommandInput, ListDurableExecutionsByFunctionCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable executions</a> for a specified Lambda function. You can filter the results by execution name, status, and start time range. This API supports pagination for large result sets.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { LambdaClient, ListDurableExecutionsByFunctionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
35
+ * // const { LambdaClient, ListDurableExecutionsByFunctionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
36
+ * // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
37
+ * const config = {}; // type is LambdaClientConfig
38
+ * const client = new LambdaClient(config);
39
+ * const input = { // ListDurableExecutionsByFunctionRequest
40
+ * FunctionName: "STRING_VALUE", // required
41
+ * Qualifier: "STRING_VALUE",
42
+ * DurableExecutionName: "STRING_VALUE",
43
+ * Statuses: [ // ExecutionStatusList
44
+ * "RUNNING" || "SUCCEEDED" || "FAILED" || "TIMED_OUT" || "STOPPED",
45
+ * ],
46
+ * StartedAfter: new Date("TIMESTAMP"),
47
+ * StartedBefore: new Date("TIMESTAMP"),
48
+ * ReverseOrder: true || false,
49
+ * Marker: "STRING_VALUE",
50
+ * MaxItems: Number("int"),
51
+ * };
52
+ * const command = new ListDurableExecutionsByFunctionCommand(input);
53
+ * const response = await client.send(command);
54
+ * // { // ListDurableExecutionsByFunctionResponse
55
+ * // DurableExecutions: [ // DurableExecutions
56
+ * // { // Execution
57
+ * // DurableExecutionArn: "STRING_VALUE", // required
58
+ * // DurableExecutionName: "STRING_VALUE", // required
59
+ * // FunctionArn: "STRING_VALUE", // required
60
+ * // Status: "RUNNING" || "SUCCEEDED" || "FAILED" || "TIMED_OUT" || "STOPPED", // required
61
+ * // StartTimestamp: new Date("TIMESTAMP"), // required
62
+ * // EndTimestamp: new Date("TIMESTAMP"),
63
+ * // },
64
+ * // ],
65
+ * // NextMarker: "STRING_VALUE",
66
+ * // };
67
+ *
68
+ * ```
69
+ *
70
+ * @param ListDurableExecutionsByFunctionCommandInput - {@link ListDurableExecutionsByFunctionCommandInput}
71
+ * @returns {@link ListDurableExecutionsByFunctionCommandOutput}
72
+ * @see {@link ListDurableExecutionsByFunctionCommandInput} for command's `input` shape.
73
+ * @see {@link ListDurableExecutionsByFunctionCommandOutput} for command's `response` shape.
74
+ * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
75
+ *
76
+ * @throws {@link InvalidParameterValueException} (client fault)
77
+ * <p>One of the parameters in the request is not valid.</p>
78
+ *
79
+ * @throws {@link ResourceNotFoundException} (client fault)
80
+ * <p>The resource specified in the request does not exist.</p>
81
+ *
82
+ * @throws {@link ServiceException} (server fault)
83
+ * <p>The Lambda service encountered an internal error.</p>
84
+ *
85
+ * @throws {@link TooManyRequestsException} (client fault)
86
+ * <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
87
+ *
88
+ * @throws {@link LambdaServiceException}
89
+ * <p>Base exception class for all service exceptions from Lambda service.</p>
90
+ *
91
+ *
92
+ * @public
93
+ */
94
+ export declare class ListDurableExecutionsByFunctionCommand extends ListDurableExecutionsByFunctionCommand_base {
95
+ /** @internal type navigation helper, not in runtime. */
96
+ protected static __types: {
97
+ api: {
98
+ input: ListDurableExecutionsByFunctionRequest;
99
+ output: ListDurableExecutionsByFunctionResponse;
100
+ };
101
+ sdk: {
102
+ input: ListDurableExecutionsByFunctionCommandInput;
103
+ output: ListDurableExecutionsByFunctionCommandOutput;
104
+ };
105
+ };
106
+ }
@@ -98,10 +98,10 @@ declare const ListFunctionsCommand_base: {
98
98
  * // ],
99
99
  * // State: "Pending" || "Active" || "Inactive" || "Failed" || "Deactivating" || "Deactivated" || "ActiveNonInvocable" || "Deleting",
100
100
  * // StateReason: "STRING_VALUE",
101
- * // 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",
101
+ * // 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",
102
102
  * // LastUpdateStatus: "Successful" || "Failed" || "InProgress",
103
103
  * // LastUpdateStatusReason: "STRING_VALUE",
104
- * // 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",
104
+ * // 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",
105
105
  * // FileSystemConfigs: [ // FileSystemConfigList
106
106
  * // { // FileSystemConfig
107
107
  * // Arn: "STRING_VALUE", // required
@@ -157,6 +157,10 @@ declare const ListFunctionsCommand_base: {
157
157
  * // },
158
158
  * // },
159
159
  * // ConfigSha256: "STRING_VALUE",
160
+ * // DurableConfig: { // DurableConfig
161
+ * // RetentionPeriodInDays: Number("int"),
162
+ * // ExecutionTimeout: Number("int"),
163
+ * // },
160
164
  * // TenancyConfig: { // TenancyConfig
161
165
  * // TenantIsolationMode: "PER_TENANT", // required
162
166
  * // },
@@ -216,6 +220,10 @@ declare const ListFunctionsCommand_base: {
216
220
  * CodeSha256: "sU0cJ2/hOZevwV/lTxCuQqK3gDZP3i8gUoqUUVRmY6E=",
217
221
  * CodeSize: 266,
218
222
  * Description: "",
223
+ * DurableConfig: {
224
+ * ExecutionTimeout: 31622400,
225
+ * RetentionPeriodInDays: 30
226
+ * },
219
227
  * FunctionArn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
220
228
  * FunctionName: "my-function",
221
229
  * Handler: "index.handler",
@@ -97,10 +97,10 @@ declare const ListVersionsByFunctionCommand_base: {
97
97
  * // ],
98
98
  * // State: "Pending" || "Active" || "Inactive" || "Failed" || "Deactivating" || "Deactivated" || "ActiveNonInvocable" || "Deleting",
99
99
  * // StateReason: "STRING_VALUE",
100
- * // 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",
100
+ * // 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",
101
101
  * // LastUpdateStatus: "Successful" || "Failed" || "InProgress",
102
102
  * // LastUpdateStatusReason: "STRING_VALUE",
103
- * // 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",
103
+ * // 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",
104
104
  * // FileSystemConfigs: [ // FileSystemConfigList
105
105
  * // { // FileSystemConfig
106
106
  * // Arn: "STRING_VALUE", // required
@@ -156,6 +156,10 @@ declare const ListVersionsByFunctionCommand_base: {
156
156
  * // },
157
157
  * // },
158
158
  * // ConfigSha256: "STRING_VALUE",
159
+ * // DurableConfig: { // DurableConfig
160
+ * // RetentionPeriodInDays: Number("int"),
161
+ * // ExecutionTimeout: Number("int"),
162
+ * // },
159
163
  * // TenancyConfig: { // TenancyConfig
160
164
  * // TenantIsolationMode: "PER_TENANT", // required
161
165
  * // },
@@ -202,6 +206,10 @@ declare const ListVersionsByFunctionCommand_base: {
202
206
  * CodeSha256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
203
207
  * CodeSize: 5797206,
204
208
  * Description: "Process image objects from Amazon S3.",
209
+ * DurableConfig: {
210
+ * ExecutionTimeout: 31622400,
211
+ * RetentionPeriodInDays: 30
212
+ * },
205
213
  * Environment: {
206
214
  * Variables: {
207
215
  * BUCKET: "my-bucket-1xpuxmplzrlbh",
@@ -227,6 +235,10 @@ declare const ListVersionsByFunctionCommand_base: {
227
235
  * CodeSha256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
228
236
  * CodeSize: 5797206,
229
237
  * Description: "Process image objects from Amazon S3.",
238
+ * DurableConfig: {
239
+ * ExecutionTimeout: 31622400,
240
+ * RetentionPeriodInDays: 30
241
+ * },
230
242
  * Environment: {
231
243
  * Variables: {
232
244
  * BUCKET: "my-bucket-1xpuxmplzrlbh",
@@ -96,10 +96,10 @@ declare const PublishVersionCommand_base: {
96
96
  * // ],
97
97
  * // State: "Pending" || "Active" || "Inactive" || "Failed" || "Deactivating" || "Deactivated" || "ActiveNonInvocable" || "Deleting",
98
98
  * // StateReason: "STRING_VALUE",
99
- * // 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",
99
+ * // 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",
100
100
  * // LastUpdateStatus: "Successful" || "Failed" || "InProgress",
101
101
  * // LastUpdateStatusReason: "STRING_VALUE",
102
- * // 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",
102
+ * // 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",
103
103
  * // FileSystemConfigs: [ // FileSystemConfigList
104
104
  * // { // FileSystemConfig
105
105
  * // Arn: "STRING_VALUE", // required
@@ -155,6 +155,10 @@ declare const PublishVersionCommand_base: {
155
155
  * // },
156
156
  * // },
157
157
  * // ConfigSha256: "STRING_VALUE",
158
+ * // DurableConfig: { // DurableConfig
159
+ * // RetentionPeriodInDays: Number("int"),
160
+ * // ExecutionTimeout: Number("int"),
161
+ * // },
158
162
  * // TenancyConfig: { // TenancyConfig
159
163
  * // TenantIsolationMode: "PER_TENANT", // required
160
164
  * // },
@@ -0,0 +1,92 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
+ import { SendDurableExecutionCallbackFailureRequest, SendDurableExecutionCallbackFailureResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link SendDurableExecutionCallbackFailureCommand}.
14
+ */
15
+ export interface SendDurableExecutionCallbackFailureCommandInput extends SendDurableExecutionCallbackFailureRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SendDurableExecutionCallbackFailureCommand}.
21
+ */
22
+ export interface SendDurableExecutionCallbackFailureCommandOutput extends SendDurableExecutionCallbackFailureResponse, __MetadataBearer {
23
+ }
24
+ declare const SendDurableExecutionCallbackFailureCommand_base: {
25
+ new (input: SendDurableExecutionCallbackFailureCommandInput): import("@smithy/smithy-client").CommandImpl<SendDurableExecutionCallbackFailureCommandInput, SendDurableExecutionCallbackFailureCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: SendDurableExecutionCallbackFailureCommandInput): import("@smithy/smithy-client").CommandImpl<SendDurableExecutionCallbackFailureCommandInput, SendDurableExecutionCallbackFailureCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Sends a failure response for a callback operation in a durable execution. Use this API when an external system cannot complete a callback operation successfully.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { LambdaClient, SendDurableExecutionCallbackFailureCommand } from "@aws-sdk/client-lambda"; // ES Modules import
35
+ * // const { LambdaClient, SendDurableExecutionCallbackFailureCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
36
+ * // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
37
+ * const config = {}; // type is LambdaClientConfig
38
+ * const client = new LambdaClient(config);
39
+ * const input = { // SendDurableExecutionCallbackFailureRequest
40
+ * CallbackId: "STRING_VALUE", // required
41
+ * Error: { // ErrorObject
42
+ * ErrorMessage: "STRING_VALUE",
43
+ * ErrorType: "STRING_VALUE",
44
+ * ErrorData: "STRING_VALUE",
45
+ * StackTrace: [ // StackTraceEntries
46
+ * "STRING_VALUE",
47
+ * ],
48
+ * },
49
+ * };
50
+ * const command = new SendDurableExecutionCallbackFailureCommand(input);
51
+ * const response = await client.send(command);
52
+ * // {};
53
+ *
54
+ * ```
55
+ *
56
+ * @param SendDurableExecutionCallbackFailureCommandInput - {@link SendDurableExecutionCallbackFailureCommandInput}
57
+ * @returns {@link SendDurableExecutionCallbackFailureCommandOutput}
58
+ * @see {@link SendDurableExecutionCallbackFailureCommandInput} for command's `input` shape.
59
+ * @see {@link SendDurableExecutionCallbackFailureCommandOutput} for command's `response` shape.
60
+ * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
61
+ *
62
+ * @throws {@link CallbackTimeoutException} (client fault)
63
+ * <p>The callback ID token has either expired or the callback associated with the token has already been closed.</p>
64
+ *
65
+ * @throws {@link InvalidParameterValueException} (client fault)
66
+ * <p>One of the parameters in the request is not valid.</p>
67
+ *
68
+ * @throws {@link ServiceException} (server fault)
69
+ * <p>The Lambda service encountered an internal error.</p>
70
+ *
71
+ * @throws {@link TooManyRequestsException} (client fault)
72
+ * <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
73
+ *
74
+ * @throws {@link LambdaServiceException}
75
+ * <p>Base exception class for all service exceptions from Lambda service.</p>
76
+ *
77
+ *
78
+ * @public
79
+ */
80
+ export declare class SendDurableExecutionCallbackFailureCommand extends SendDurableExecutionCallbackFailureCommand_base {
81
+ /** @internal type navigation helper, not in runtime. */
82
+ protected static __types: {
83
+ api: {
84
+ input: SendDurableExecutionCallbackFailureRequest;
85
+ output: {};
86
+ };
87
+ sdk: {
88
+ input: SendDurableExecutionCallbackFailureCommandInput;
89
+ output: SendDurableExecutionCallbackFailureCommandOutput;
90
+ };
91
+ };
92
+ }
@@ -0,0 +1,84 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
+ import { SendDurableExecutionCallbackHeartbeatRequest, SendDurableExecutionCallbackHeartbeatResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link SendDurableExecutionCallbackHeartbeatCommand}.
14
+ */
15
+ export interface SendDurableExecutionCallbackHeartbeatCommandInput extends SendDurableExecutionCallbackHeartbeatRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SendDurableExecutionCallbackHeartbeatCommand}.
21
+ */
22
+ export interface SendDurableExecutionCallbackHeartbeatCommandOutput extends SendDurableExecutionCallbackHeartbeatResponse, __MetadataBearer {
23
+ }
24
+ declare const SendDurableExecutionCallbackHeartbeatCommand_base: {
25
+ new (input: SendDurableExecutionCallbackHeartbeatCommandInput): import("@smithy/smithy-client").CommandImpl<SendDurableExecutionCallbackHeartbeatCommandInput, SendDurableExecutionCallbackHeartbeatCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: SendDurableExecutionCallbackHeartbeatCommandInput): import("@smithy/smithy-client").CommandImpl<SendDurableExecutionCallbackHeartbeatCommandInput, SendDurableExecutionCallbackHeartbeatCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Sends a heartbeat signal for a long-running callback operation to prevent timeout. Use this API to extend the callback timeout period while the external operation is still in progress.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { LambdaClient, SendDurableExecutionCallbackHeartbeatCommand } from "@aws-sdk/client-lambda"; // ES Modules import
35
+ * // const { LambdaClient, SendDurableExecutionCallbackHeartbeatCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
36
+ * // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
37
+ * const config = {}; // type is LambdaClientConfig
38
+ * const client = new LambdaClient(config);
39
+ * const input = { // SendDurableExecutionCallbackHeartbeatRequest
40
+ * CallbackId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new SendDurableExecutionCallbackHeartbeatCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param SendDurableExecutionCallbackHeartbeatCommandInput - {@link SendDurableExecutionCallbackHeartbeatCommandInput}
49
+ * @returns {@link SendDurableExecutionCallbackHeartbeatCommandOutput}
50
+ * @see {@link SendDurableExecutionCallbackHeartbeatCommandInput} for command's `input` shape.
51
+ * @see {@link SendDurableExecutionCallbackHeartbeatCommandOutput} for command's `response` shape.
52
+ * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
53
+ *
54
+ * @throws {@link CallbackTimeoutException} (client fault)
55
+ * <p>The callback ID token has either expired or the callback associated with the token has already been closed.</p>
56
+ *
57
+ * @throws {@link InvalidParameterValueException} (client fault)
58
+ * <p>One of the parameters in the request is not valid.</p>
59
+ *
60
+ * @throws {@link ServiceException} (server fault)
61
+ * <p>The Lambda service encountered an internal error.</p>
62
+ *
63
+ * @throws {@link TooManyRequestsException} (client fault)
64
+ * <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
65
+ *
66
+ * @throws {@link LambdaServiceException}
67
+ * <p>Base exception class for all service exceptions from Lambda service.</p>
68
+ *
69
+ *
70
+ * @public
71
+ */
72
+ export declare class SendDurableExecutionCallbackHeartbeatCommand extends SendDurableExecutionCallbackHeartbeatCommand_base {
73
+ /** @internal type navigation helper, not in runtime. */
74
+ protected static __types: {
75
+ api: {
76
+ input: SendDurableExecutionCallbackHeartbeatRequest;
77
+ output: {};
78
+ };
79
+ sdk: {
80
+ input: SendDurableExecutionCallbackHeartbeatCommandInput;
81
+ output: SendDurableExecutionCallbackHeartbeatCommandOutput;
82
+ };
83
+ };
84
+ }
@@ -0,0 +1,91 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
+ import { SendDurableExecutionCallbackSuccessRequest, SendDurableExecutionCallbackSuccessResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ */
13
+ export type SendDurableExecutionCallbackSuccessCommandInputType = Omit<SendDurableExecutionCallbackSuccessRequest, "Result"> & {
14
+ Result?: BlobPayloadInputTypes;
15
+ };
16
+ /**
17
+ * @public
18
+ *
19
+ * The input for {@link SendDurableExecutionCallbackSuccessCommand}.
20
+ */
21
+ export interface SendDurableExecutionCallbackSuccessCommandInput extends SendDurableExecutionCallbackSuccessCommandInputType {
22
+ }
23
+ /**
24
+ * @public
25
+ *
26
+ * The output of {@link SendDurableExecutionCallbackSuccessCommand}.
27
+ */
28
+ export interface SendDurableExecutionCallbackSuccessCommandOutput extends SendDurableExecutionCallbackSuccessResponse, __MetadataBearer {
29
+ }
30
+ declare const SendDurableExecutionCallbackSuccessCommand_base: {
31
+ new (input: SendDurableExecutionCallbackSuccessCommandInput): import("@smithy/smithy-client").CommandImpl<SendDurableExecutionCallbackSuccessCommandInput, SendDurableExecutionCallbackSuccessCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
32
+ new (input: SendDurableExecutionCallbackSuccessCommandInput): import("@smithy/smithy-client").CommandImpl<SendDurableExecutionCallbackSuccessCommandInput, SendDurableExecutionCallbackSuccessCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
33
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
34
+ };
35
+ /**
36
+ * <p>Sends a successful completion response for a callback operation in a durable execution. Use this API when an external system has successfully completed a callback operation.</p>
37
+ * @example
38
+ * Use a bare-bones client and the command you need to make an API call.
39
+ * ```javascript
40
+ * import { LambdaClient, SendDurableExecutionCallbackSuccessCommand } from "@aws-sdk/client-lambda"; // ES Modules import
41
+ * // const { LambdaClient, SendDurableExecutionCallbackSuccessCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
42
+ * // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
43
+ * const config = {}; // type is LambdaClientConfig
44
+ * const client = new LambdaClient(config);
45
+ * const input = { // SendDurableExecutionCallbackSuccessRequest
46
+ * CallbackId: "STRING_VALUE", // required
47
+ * Result: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
48
+ * };
49
+ * const command = new SendDurableExecutionCallbackSuccessCommand(input);
50
+ * const response = await client.send(command);
51
+ * // {};
52
+ *
53
+ * ```
54
+ *
55
+ * @param SendDurableExecutionCallbackSuccessCommandInput - {@link SendDurableExecutionCallbackSuccessCommandInput}
56
+ * @returns {@link SendDurableExecutionCallbackSuccessCommandOutput}
57
+ * @see {@link SendDurableExecutionCallbackSuccessCommandInput} for command's `input` shape.
58
+ * @see {@link SendDurableExecutionCallbackSuccessCommandOutput} for command's `response` shape.
59
+ * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
60
+ *
61
+ * @throws {@link CallbackTimeoutException} (client fault)
62
+ * <p>The callback ID token has either expired or the callback associated with the token has already been closed.</p>
63
+ *
64
+ * @throws {@link InvalidParameterValueException} (client fault)
65
+ * <p>One of the parameters in the request is not valid.</p>
66
+ *
67
+ * @throws {@link ServiceException} (server fault)
68
+ * <p>The Lambda service encountered an internal error.</p>
69
+ *
70
+ * @throws {@link TooManyRequestsException} (client fault)
71
+ * <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
72
+ *
73
+ * @throws {@link LambdaServiceException}
74
+ * <p>Base exception class for all service exceptions from Lambda service.</p>
75
+ *
76
+ *
77
+ * @public
78
+ */
79
+ export declare class SendDurableExecutionCallbackSuccessCommand extends SendDurableExecutionCallbackSuccessCommand_base {
80
+ /** @internal type navigation helper, not in runtime. */
81
+ protected static __types: {
82
+ api: {
83
+ input: SendDurableExecutionCallbackSuccessRequest;
84
+ output: {};
85
+ };
86
+ sdk: {
87
+ input: SendDurableExecutionCallbackSuccessCommandInput;
88
+ output: SendDurableExecutionCallbackSuccessCommandOutput;
89
+ };
90
+ };
91
+ }
@@ -0,0 +1,94 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
4
+ import { StopDurableExecutionRequest, StopDurableExecutionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StopDurableExecutionCommand}.
14
+ */
15
+ export interface StopDurableExecutionCommandInput extends StopDurableExecutionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StopDurableExecutionCommand}.
21
+ */
22
+ export interface StopDurableExecutionCommandOutput extends StopDurableExecutionResponse, __MetadataBearer {
23
+ }
24
+ declare const StopDurableExecutionCommand_base: {
25
+ new (input: StopDurableExecutionCommandInput): import("@smithy/smithy-client").CommandImpl<StopDurableExecutionCommandInput, StopDurableExecutionCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: StopDurableExecutionCommandInput): import("@smithy/smithy-client").CommandImpl<StopDurableExecutionCommandInput, StopDurableExecutionCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Stops a running <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a>. The execution transitions to STOPPED status and cannot be resumed. Any in-progress operations are terminated.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { LambdaClient, StopDurableExecutionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
35
+ * // const { LambdaClient, StopDurableExecutionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
36
+ * // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
37
+ * const config = {}; // type is LambdaClientConfig
38
+ * const client = new LambdaClient(config);
39
+ * const input = { // StopDurableExecutionRequest
40
+ * DurableExecutionArn: "STRING_VALUE", // required
41
+ * Error: { // ErrorObject
42
+ * ErrorMessage: "STRING_VALUE",
43
+ * ErrorType: "STRING_VALUE",
44
+ * ErrorData: "STRING_VALUE",
45
+ * StackTrace: [ // StackTraceEntries
46
+ * "STRING_VALUE",
47
+ * ],
48
+ * },
49
+ * };
50
+ * const command = new StopDurableExecutionCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // StopDurableExecutionResponse
53
+ * // StopTimestamp: new Date("TIMESTAMP"), // required
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param StopDurableExecutionCommandInput - {@link StopDurableExecutionCommandInput}
59
+ * @returns {@link StopDurableExecutionCommandOutput}
60
+ * @see {@link StopDurableExecutionCommandInput} for command's `input` shape.
61
+ * @see {@link StopDurableExecutionCommandOutput} for command's `response` shape.
62
+ * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
63
+ *
64
+ * @throws {@link InvalidParameterValueException} (client fault)
65
+ * <p>One of the parameters in the request is not valid.</p>
66
+ *
67
+ * @throws {@link ResourceNotFoundException} (client fault)
68
+ * <p>The resource specified in the request does not exist.</p>
69
+ *
70
+ * @throws {@link ServiceException} (server fault)
71
+ * <p>The Lambda service encountered an internal error.</p>
72
+ *
73
+ * @throws {@link TooManyRequestsException} (client fault)
74
+ * <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
75
+ *
76
+ * @throws {@link LambdaServiceException}
77
+ * <p>Base exception class for all service exceptions from Lambda service.</p>
78
+ *
79
+ *
80
+ * @public
81
+ */
82
+ export declare class StopDurableExecutionCommand extends StopDurableExecutionCommand_base {
83
+ /** @internal type navigation helper, not in runtime. */
84
+ protected static __types: {
85
+ api: {
86
+ input: StopDurableExecutionRequest;
87
+ output: StopDurableExecutionResponse;
88
+ };
89
+ sdk: {
90
+ input: StopDurableExecutionCommandInput;
91
+ output: StopDurableExecutionCommandOutput;
92
+ };
93
+ };
94
+ }
@@ -105,10 +105,10 @@ declare const UpdateFunctionCodeCommand_base: {
105
105
  * // ],
106
106
  * // State: "Pending" || "Active" || "Inactive" || "Failed" || "Deactivating" || "Deactivated" || "ActiveNonInvocable" || "Deleting",
107
107
  * // StateReason: "STRING_VALUE",
108
- * // 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",
108
+ * // 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",
109
109
  * // LastUpdateStatus: "Successful" || "Failed" || "InProgress",
110
110
  * // LastUpdateStatusReason: "STRING_VALUE",
111
- * // 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",
111
+ * // 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",
112
112
  * // FileSystemConfigs: [ // FileSystemConfigList
113
113
  * // { // FileSystemConfig
114
114
  * // Arn: "STRING_VALUE", // required
@@ -164,6 +164,10 @@ declare const UpdateFunctionCodeCommand_base: {
164
164
  * // },
165
165
  * // },
166
166
  * // ConfigSha256: "STRING_VALUE",
167
+ * // DurableConfig: { // DurableConfig
168
+ * // RetentionPeriodInDays: Number("int"),
169
+ * // ExecutionTimeout: Number("int"),
170
+ * // },
167
171
  * // TenancyConfig: { // TenancyConfig
168
172
  * // TenantIsolationMode: "PER_TENANT", // required
169
173
  * // },