@aws-sdk/client-lambda 3.1170.0 → 3.1172.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 (32) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +126 -5
  3. package/dist-es/Lambda.js +6 -0
  4. package/dist-es/commands/DeleteDurableExecutionCommand.js +4 -0
  5. package/dist-es/commands/PauseDurableExecutionCommand.js +4 -0
  6. package/dist-es/commands/ResumeDurableExecutionCommand.js +4 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/enums.js +5 -0
  9. package/dist-es/schemas/schemas_0.js +91 -4
  10. package/dist-types/Lambda.d.ts +21 -0
  11. package/dist-types/LambdaClient.d.ts +5 -2
  12. package/dist-types/commands/DeleteDurableExecutionCommand.d.ts +86 -0
  13. package/dist-types/commands/GetDurableExecutionCommand.d.ts +7 -1
  14. package/dist-types/commands/GetDurableExecutionHistoryCommand.d.ts +16 -1
  15. package/dist-types/commands/ListDurableExecutionsByFunctionCommand.d.ts +2 -2
  16. package/dist-types/commands/PauseDurableExecutionCommand.d.ts +99 -0
  17. package/dist-types/commands/ResumeDurableExecutionCommand.d.ts +98 -0
  18. package/dist-types/commands/StopDurableExecutionCommand.d.ts +1 -1
  19. package/dist-types/commands/index.d.ts +3 -0
  20. package/dist-types/models/enums.d.ts +5 -0
  21. package/dist-types/models/models_0.d.ts +188 -3
  22. package/dist-types/schemas/schemas_0.d.ts +14 -0
  23. package/dist-types/ts3.4/Lambda.d.ts +51 -0
  24. package/dist-types/ts3.4/LambdaClient.d.ts +18 -0
  25. package/dist-types/ts3.4/commands/DeleteDurableExecutionCommand.d.ts +39 -0
  26. package/dist-types/ts3.4/commands/PauseDurableExecutionCommand.d.ts +39 -0
  27. package/dist-types/ts3.4/commands/ResumeDurableExecutionCommand.d.ts +39 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  29. package/dist-types/ts3.4/models/enums.d.ts +5 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +45 -0
  31. package/dist-types/ts3.4/schemas/schemas_0.d.ts +14 -0
  32. package/package.json +1 -1
@@ -0,0 +1,98 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ResumeDurableExecutionRequest, ResumeDurableExecutionResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ResumeDurableExecutionCommand}.
11
+ */
12
+ export interface ResumeDurableExecutionCommandInput extends ResumeDurableExecutionRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ResumeDurableExecutionCommand}.
18
+ */
19
+ export interface ResumeDurableExecutionCommandOutput extends ResumeDurableExecutionResponse, __MetadataBearer {
20
+ }
21
+ declare const ResumeDurableExecutionCommand_base: {
22
+ new (input: ResumeDurableExecutionCommandInput): import("@smithy/core/client").CommandImpl<ResumeDurableExecutionCommandInput, ResumeDurableExecutionCommandOutput, import("..").LambdaClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ResumeDurableExecutionCommandInput): import("@smithy/core/client").CommandImpl<ResumeDurableExecutionCommandInput, ResumeDurableExecutionCommandOutput, import("..").LambdaClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Resumes a paused <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a>. If the pause interrupted an invocation, or an operation completed while the execution was paused, Lambda invokes your function. Otherwise, the execution continues to wait for its pending operations.</p> <p>If the execution status is <code>PAUSING</code>, this operation cancels the pause, and the in-progress invocation continues. This operation returns a successful response while the execution status is still <code>PAUSED</code> or <code>PAUSING</code>, and the status changes to <code>RUNNING</code> when Lambda processes the request. For more information about resuming executions, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-pause-resume.html">Pausing and resuming durable executions</a>.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LambdaClient, ResumeDurableExecutionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
32
+ * // const { LambdaClient, ResumeDurableExecutionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
33
+ * // import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
34
+ * const config = {}; // type is LambdaClientConfig
35
+ * const client = new LambdaClient(config);
36
+ * const input = { // ResumeDurableExecutionRequest
37
+ * DurableExecutionArn: "STRING_VALUE", // required
38
+ * ClientToken: "STRING_VALUE",
39
+ * Reason: "STRING_VALUE",
40
+ * };
41
+ * const command = new ResumeDurableExecutionCommand(input);
42
+ * const response = await client.send(command);
43
+ * // {};
44
+ *
45
+ * ```
46
+ *
47
+ * @param ResumeDurableExecutionCommandInput - {@link ResumeDurableExecutionCommandInput}
48
+ * @returns {@link ResumeDurableExecutionCommandOutput}
49
+ * @see {@link ResumeDurableExecutionCommandInput} for command's `input` shape.
50
+ * @see {@link ResumeDurableExecutionCommandOutput} for command's `response` shape.
51
+ * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
52
+ *
53
+ * @throws {@link InvalidParameterValueException} (client fault)
54
+ * <p>One of the parameters in the request is not valid.</p>
55
+ *
56
+ * @throws {@link KMSAccessDeniedException} (server fault)
57
+ * <p>Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.</p>
58
+ *
59
+ * @throws {@link KMSDisabledException} (server fault)
60
+ * <p>Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.</p>
61
+ *
62
+ * @throws {@link KMSInvalidStateException} (server fault)
63
+ * <p>Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.</p>
64
+ *
65
+ * @throws {@link KMSNotFoundException} (server fault)
66
+ * <p>Lambda couldn't decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.</p>
67
+ *
68
+ * @throws {@link ResourceConflictException} (client fault)
69
+ * <p>The resource already exists, or another operation is in progress.</p>
70
+ *
71
+ * @throws {@link ResourceNotFoundException} (client fault)
72
+ * <p>The resource specified in the request does not exist.</p>
73
+ *
74
+ * @throws {@link ServiceException} (server fault)
75
+ * <p>The Lambda service encountered an internal error.</p>
76
+ *
77
+ * @throws {@link TooManyRequestsException} (client fault)
78
+ * <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>
79
+ *
80
+ * @throws {@link LambdaServiceException}
81
+ * <p>Base exception class for all service exceptions from Lambda service.</p>
82
+ *
83
+ *
84
+ * @public
85
+ */
86
+ export declare class ResumeDurableExecutionCommand extends ResumeDurableExecutionCommand_base {
87
+ /** @internal type navigation helper, not in runtime. */
88
+ protected static __types: {
89
+ api: {
90
+ input: ResumeDurableExecutionRequest;
91
+ output: {};
92
+ };
93
+ sdk: {
94
+ input: ResumeDurableExecutionCommandInput;
95
+ output: ResumeDurableExecutionCommandOutput;
96
+ };
97
+ };
98
+ }
@@ -24,7 +24,7 @@ declare const StopDurableExecutionCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * <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>
27
+ * <p>Stops a running or paused <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>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -10,6 +10,7 @@ export * from "./CreateFunctionUrlConfigCommand";
10
10
  export * from "./DeleteAliasCommand";
11
11
  export * from "./DeleteCapacityProviderCommand";
12
12
  export * from "./DeleteCodeSigningConfigCommand";
13
+ export * from "./DeleteDurableExecutionCommand";
13
14
  export * from "./DeleteEventSourceMappingCommand";
14
15
  export * from "./DeleteFunctionCodeSigningConfigCommand";
15
16
  export * from "./DeleteFunctionCommand";
@@ -60,6 +61,7 @@ export * from "./ListLayersCommand";
60
61
  export * from "./ListProvisionedConcurrencyConfigsCommand";
61
62
  export * from "./ListTagsCommand";
62
63
  export * from "./ListVersionsByFunctionCommand";
64
+ export * from "./PauseDurableExecutionCommand";
63
65
  export * from "./PublishLayerVersionCommand";
64
66
  export * from "./PublishVersionCommand";
65
67
  export * from "./PutFunctionCodeSigningConfigCommand";
@@ -72,6 +74,7 @@ export * from "./PutResourcePolicyCommand";
72
74
  export * from "./PutRuntimeManagementConfigCommand";
73
75
  export * from "./RemoveLayerVersionPermissionCommand";
74
76
  export * from "./RemovePermissionCommand";
77
+ export * from "./ResumeDurableExecutionCommand";
75
78
  export * from "./SendDurableExecutionCallbackFailureCommand";
76
79
  export * from "./SendDurableExecutionCallbackHeartbeatCommand";
77
80
  export * from "./SendDurableExecutionCallbackSuccessCommand";
@@ -253,7 +253,10 @@ export type OperationStatus = (typeof OperationStatus)[keyof typeof OperationSta
253
253
  * @enum
254
254
  */
255
255
  export declare const ExecutionStatus: {
256
+ readonly DELETING: "DELETING";
256
257
  readonly FAILED: "FAILED";
258
+ readonly PAUSED: "PAUSED";
259
+ readonly PAUSING: "PAUSING";
257
260
  readonly RUNNING: "RUNNING";
258
261
  readonly STOPPED: "STOPPED";
259
262
  readonly SUCCEEDED: "SUCCEEDED";
@@ -281,6 +284,8 @@ export declare const EventType: {
281
284
  readonly ContextStarted: "ContextStarted";
282
285
  readonly ContextSucceeded: "ContextSucceeded";
283
286
  readonly ExecutionFailed: "ExecutionFailed";
287
+ readonly ExecutionPaused: "ExecutionPaused";
288
+ readonly ExecutionResumed: "ExecutionResumed";
284
289
  readonly ExecutionStarted: "ExecutionStarted";
285
290
  readonly ExecutionStopped: "ExecutionStopped";
286
291
  readonly ExecutionSucceeded: "ExecutionSucceeded";
@@ -1083,7 +1083,7 @@ export interface StepOptions {
1083
1083
  NextAttemptDelaySeconds?: number | undefined;
1084
1084
  }
1085
1085
  /**
1086
- * <p>Specifies how long to pause the durable execution.</p>
1086
+ * <p>Specifies how long the durable execution waits.</p>
1087
1087
  * @public
1088
1088
  */
1089
1089
  export interface WaitOptions {
@@ -1403,6 +1403,26 @@ export interface CheckpointDurableExecutionResponse {
1403
1403
  */
1404
1404
  NewExecutionState: CheckpointUpdatedExecutionState | undefined;
1405
1405
  }
1406
+ /**
1407
+ * @public
1408
+ */
1409
+ export interface DeleteDurableExecutionRequest {
1410
+ /**
1411
+ * <p>The Amazon Resource Name (ARN) of the durable execution.</p>
1412
+ * @public
1413
+ */
1414
+ DurableExecutionArn: string | undefined;
1415
+ }
1416
+ /**
1417
+ * @public
1418
+ */
1419
+ export interface DeleteDurableExecutionResponse {
1420
+ /**
1421
+ * <p>The timestamp when Lambda accepted the deletion request (ISO 8601 format).</p>
1422
+ * @public
1423
+ */
1424
+ DeletionRequestTimestamp: Date | undefined;
1425
+ }
1406
1426
  /**
1407
1427
  * @public
1408
1428
  */
@@ -1439,6 +1459,27 @@ export interface DurableConfig {
1439
1459
  */
1440
1460
  ExecutionTimeout?: number | undefined;
1441
1461
  }
1462
+ /**
1463
+ * <p>Details about a <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a> that is pausing or paused.</p>
1464
+ * @public
1465
+ */
1466
+ export interface PauseDetails {
1467
+ /**
1468
+ * <p>The date and time when you requested the pause, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
1469
+ * @public
1470
+ */
1471
+ PauseRequestTimestamp: Date | undefined;
1472
+ /**
1473
+ * <p>The reason that you provided when you paused the execution. This field is only present if you set <code>IncludeExecutionData</code> to <code>true</code> in the request.</p>
1474
+ * @public
1475
+ */
1476
+ Reason?: string | undefined;
1477
+ /**
1478
+ * <p>Specifies whether the pause also pauses the execution timeout.</p>
1479
+ * @public
1480
+ */
1481
+ ExecutionTimeoutPaused: boolean | undefined;
1482
+ }
1442
1483
  /**
1443
1484
  * <p>Contains trace headers for the Lambda durable execution.</p>
1444
1485
  * @public
@@ -1491,7 +1532,7 @@ export interface GetDurableExecutionResponse {
1491
1532
  */
1492
1533
  StartTimestamp: Date | undefined;
1493
1534
  /**
1494
- * <p>The current status of the durable execution. Valid values are <code>RUNNING</code>, <code>SUCCEEDED</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, and <code>STOPPED</code>.</p>
1535
+ * <p>The durable execution has one of the following statuses:</p> <ul> <li> <p> <code>RUNNING</code> – The execution is running or waiting for pending operations to complete.</p> </li> <li> <p> <code>PAUSING</code> – The execution is waiting for an in-progress invocation to reach its next checkpoint before it pauses.</p> </li> <li> <p> <code>PAUSED</code> – The execution is paused, and Lambda doesn't invoke your function.</p> </li> <li> <p> <code>SUCCEEDED</code> – The execution completed successfully.</p> </li> <li> <p> <code>FAILED</code> – The execution completed with an error.</p> </li> <li> <p> <code>TIMED_OUT</code> – The execution exceeded its execution timeout.</p> </li> <li> <p> <code>STOPPED</code> – A <code>StopDurableExecution</code> request stopped the execution.</p> </li> <li> <p> <code>DELETING</code> – A <code>DeleteDurableExecution</code> request is deleting the execution and its data.</p> </li> </ul>
1495
1536
  * @public
1496
1537
  */
1497
1538
  Status: ExecutionStatus | undefined;
@@ -1520,6 +1561,16 @@ export interface GetDurableExecutionResponse {
1520
1561
  * @public
1521
1562
  */
1522
1563
  DurableConfig?: DurableConfig | undefined;
1564
+ /**
1565
+ * <p>The details of the pause, including when you requested it and whether it pauses the execution timeout. This field is only present when the execution status is <code>PAUSING</code> or <code>PAUSED</code>.</p>
1566
+ * @public
1567
+ */
1568
+ PauseDetails?: PauseDetails | undefined;
1569
+ /**
1570
+ * <p>The date and time when the durable execution will time out, in Unix timestamp format. This value includes any extension from time the execution spent paused. While the execution is paused with its execution timeout paused, this value is 366 days after the start time. This field isn't present for completed executions.</p>
1571
+ * @public
1572
+ */
1573
+ ExpectedExecutionTimeoutTimestamp?: Date | undefined;
1523
1574
  }
1524
1575
  /**
1525
1576
  * @public
@@ -1767,6 +1818,75 @@ export interface ExecutionFailedDetails {
1767
1818
  */
1768
1819
  Error: EventError | undefined;
1769
1820
  }
1821
+ /**
1822
+ * <p>The reason for pausing a durable execution, as recorded in the execution history.</p>
1823
+ * @public
1824
+ */
1825
+ export interface EventPauseReason {
1826
+ /**
1827
+ * <p>The reason that you provided when you paused the execution. This field is only present if you set <code>IncludeExecutionData</code> to <code>true</code> in the request.</p>
1828
+ * @public
1829
+ */
1830
+ Payload?: string | undefined;
1831
+ /**
1832
+ * <p>Specifies whether Lambda omitted the reason from the response because <code>IncludeExecutionData</code> is <code>false</code>.</p>
1833
+ * @public
1834
+ */
1835
+ Truncated?: boolean | undefined;
1836
+ }
1837
+ /**
1838
+ * <p>Details about a <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a> that paused. The event timestamp is when the execution paused.</p>
1839
+ * @public
1840
+ */
1841
+ export interface ExecutionPausedDetails {
1842
+ /**
1843
+ * <p>The date and time when you requested the pause, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
1844
+ * @public
1845
+ */
1846
+ PauseRequestTimestamp: Date | undefined;
1847
+ /**
1848
+ * <p>The reason that you provided when you paused the execution.</p>
1849
+ * @public
1850
+ */
1851
+ Reason?: EventPauseReason | undefined;
1852
+ /**
1853
+ * <p>Specifies whether the pause also paused the execution timeout.</p>
1854
+ * @public
1855
+ */
1856
+ ExecutionTimeoutPaused: boolean | undefined;
1857
+ }
1858
+ /**
1859
+ * <p>The reason for resuming a durable execution, as recorded in the execution history.</p>
1860
+ * @public
1861
+ */
1862
+ export interface EventResumeReason {
1863
+ /**
1864
+ * <p>The reason that you provided when you resumed the execution. This field is only present if you set <code>IncludeExecutionData</code> to <code>true</code> in the request.</p>
1865
+ * @public
1866
+ */
1867
+ Payload?: string | undefined;
1868
+ /**
1869
+ * <p>Specifies whether Lambda omitted the reason from the response because <code>IncludeExecutionData</code> is <code>false</code>.</p>
1870
+ * @public
1871
+ */
1872
+ Truncated?: boolean | undefined;
1873
+ }
1874
+ /**
1875
+ * <p>Details about a <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a> that resumed. The event timestamp is when the execution resumed.</p>
1876
+ * @public
1877
+ */
1878
+ export interface ExecutionResumedDetails {
1879
+ /**
1880
+ * <p>The date and time when you requested the resume, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
1881
+ * @public
1882
+ */
1883
+ ResumeRequestTimestamp: Date | undefined;
1884
+ /**
1885
+ * <p>The reason that you provided when you resumed the execution.</p>
1886
+ * @public
1887
+ */
1888
+ Reason?: EventResumeReason | undefined;
1889
+ }
1770
1890
  /**
1771
1891
  * <p>Details about a durable execution that started.</p>
1772
1892
  * @public
@@ -2094,6 +2214,16 @@ export interface Event {
2094
2214
  * @public
2095
2215
  */
2096
2216
  InvocationCompletedDetails?: InvocationCompletedDetails | undefined;
2217
+ /**
2218
+ * <p>The details of an <code>ExecutionPaused</code> event.</p>
2219
+ * @public
2220
+ */
2221
+ ExecutionPausedDetails?: ExecutionPausedDetails | undefined;
2222
+ /**
2223
+ * <p>The details of an <code>ExecutionResumed</code> event.</p>
2224
+ * @public
2225
+ */
2226
+ ExecutionResumedDetails?: ExecutionResumedDetails | undefined;
2097
2227
  }
2098
2228
  /**
2099
2229
  * <p>The response from the GetDurableExecutionHistory operation, containing the execution history and events.</p>
@@ -2152,6 +2282,61 @@ export interface GetDurableExecutionStateResponse {
2152
2282
  */
2153
2283
  NextMarker?: string | undefined;
2154
2284
  }
2285
+ /**
2286
+ * @public
2287
+ */
2288
+ export interface PauseDurableExecutionRequest {
2289
+ /**
2290
+ * <p>The Amazon Resource Name (ARN) of the durable execution.</p>
2291
+ * @public
2292
+ */
2293
+ DurableExecutionArn: string | undefined;
2294
+ /**
2295
+ * <p>A unique, case-sensitive identifier that you provide so that the request completes no more than one time. If you repeat a request with the same client token and parameters within 15 minutes, Lambda doesn't pause the execution again and returns a successful response instead of an error.</p>
2296
+ * @public
2297
+ */
2298
+ ClientToken?: string | undefined;
2299
+ /**
2300
+ * <p>A description of why you're pausing the execution. Lambda records the reason in the execution history.</p>
2301
+ * @public
2302
+ */
2303
+ Reason?: string | undefined;
2304
+ /**
2305
+ * <p>Specifies whether to pause the execution timeout while the execution is paused. If <code>true</code>, Lambda extends the execution timeout by the time the execution spends paused. An execution with a paused timeout still times out 366 days after it started. The default value is <code>true</code>.</p>
2306
+ * @public
2307
+ */
2308
+ ExecutionTimeoutPaused?: boolean | undefined;
2309
+ }
2310
+ /**
2311
+ * @public
2312
+ */
2313
+ export interface PauseDurableExecutionResponse {
2314
+ }
2315
+ /**
2316
+ * @public
2317
+ */
2318
+ export interface ResumeDurableExecutionRequest {
2319
+ /**
2320
+ * <p>The Amazon Resource Name (ARN) of the durable execution.</p>
2321
+ * @public
2322
+ */
2323
+ DurableExecutionArn: string | undefined;
2324
+ /**
2325
+ * <p>A unique, case-sensitive identifier that you provide so that the request completes no more than one time. If you repeat a request with the same client token and parameters within 15 minutes, Lambda doesn't resume the execution again and returns a successful response instead of an error.</p>
2326
+ * @public
2327
+ */
2328
+ ClientToken?: string | undefined;
2329
+ /**
2330
+ * <p>A description of why you're resuming the execution. Lambda records the reason in the execution history.</p>
2331
+ * @public
2332
+ */
2333
+ Reason?: string | undefined;
2334
+ }
2335
+ /**
2336
+ * @public
2337
+ */
2338
+ export interface ResumeDurableExecutionResponse {
2339
+ }
2155
2340
  /**
2156
2341
  * @public
2157
2342
  */
@@ -4475,7 +4660,7 @@ export interface ListDurableExecutionsByFunctionRequest {
4475
4660
  */
4476
4661
  DurableExecutionName?: string | undefined;
4477
4662
  /**
4478
- * <p>Filter executions by status. Valid values: RUNNING, SUCCEEDED, FAILED, TIMED_OUT, STOPPED.</p>
4663
+ * <p>Filters the executions by status. Specify one of the following values:</p> <ul> <li> <p> <code>RUNNING</code> – The execution is running or waiting for pending operations to complete.</p> </li> <li> <p> <code>PAUSING</code> – The execution is waiting for an in-progress invocation to reach its next checkpoint before it pauses.</p> </li> <li> <p> <code>PAUSED</code> – The execution is paused, and Lambda doesn't invoke your function.</p> </li> <li> <p> <code>SUCCEEDED</code> – The execution completed successfully.</p> </li> <li> <p> <code>FAILED</code> – The execution completed with an error.</p> </li> <li> <p> <code>TIMED_OUT</code> – The execution exceeded its execution timeout.</p> </li> <li> <p> <code>STOPPED</code> – A <code>StopDurableExecution</code> request stopped the execution.</p> </li> <li> <p> <code>DELETING</code> – A <code>DeleteDurableExecution</code> request is deleting the execution and its data.</p> </li> </ul>
4479
4664
  * @public
4480
4665
  */
4481
4666
  Statuses?: ExecutionStatus[] | undefined;
@@ -123,6 +123,8 @@ export declare var DeleteCapacityProviderRequest$: StaticStructureSchema;
123
123
  export declare var DeleteCapacityProviderResponse$: StaticStructureSchema;
124
124
  export declare var DeleteCodeSigningConfigRequest$: StaticStructureSchema;
125
125
  export declare var DeleteCodeSigningConfigResponse$: StaticStructureSchema;
126
+ export declare var DeleteDurableExecutionRequest$: StaticStructureSchema;
127
+ export declare var DeleteDurableExecutionResponse$: StaticStructureSchema;
126
128
  export declare var DeleteEventSourceMappingRequest$: StaticStructureSchema;
127
129
  export declare var DeleteFunctionCodeSigningConfigRequest$: StaticStructureSchema;
128
130
  export declare var DeleteFunctionConcurrencyRequest$: StaticStructureSchema;
@@ -144,13 +146,17 @@ export declare var ErrorObject$: StaticStructureSchema;
144
146
  export declare var Event$: StaticStructureSchema;
145
147
  export declare var EventError$: StaticStructureSchema;
146
148
  export declare var EventInput$: StaticStructureSchema;
149
+ export declare var EventPauseReason$: StaticStructureSchema;
147
150
  export declare var EventResult$: StaticStructureSchema;
151
+ export declare var EventResumeReason$: StaticStructureSchema;
148
152
  export declare var EventSourceMappingConfiguration$: StaticStructureSchema;
149
153
  export declare var EventSourceMappingLoggingConfig$: StaticStructureSchema;
150
154
  export declare var EventSourceMappingMetricsConfig$: StaticStructureSchema;
151
155
  export declare var Execution$: StaticStructureSchema;
152
156
  export declare var ExecutionDetails$: StaticStructureSchema;
153
157
  export declare var ExecutionFailedDetails$: StaticStructureSchema;
158
+ export declare var ExecutionPausedDetails$: StaticStructureSchema;
159
+ export declare var ExecutionResumedDetails$: StaticStructureSchema;
154
160
  export declare var ExecutionStartedDetails$: StaticStructureSchema;
155
161
  export declare var ExecutionStoppedDetails$: StaticStructureSchema;
156
162
  export declare var ExecutionSucceededDetails$: StaticStructureSchema;
@@ -266,6 +272,9 @@ export declare var OnFailure$: StaticStructureSchema;
266
272
  export declare var OnSuccess$: StaticStructureSchema;
267
273
  export declare var Operation$: StaticStructureSchema;
268
274
  export declare var OperationUpdate$: StaticStructureSchema;
275
+ export declare var PauseDetails$: StaticStructureSchema;
276
+ export declare var PauseDurableExecutionRequest$: StaticStructureSchema;
277
+ export declare var PauseDurableExecutionResponse$: StaticStructureSchema;
269
278
  export declare var PropagateTags$: StaticStructureSchema;
270
279
  export declare var ProvisionedConcurrencyConfigListItem$: StaticStructureSchema;
271
280
  export declare var ProvisionedPollerConfig$: StaticStructureSchema;
@@ -289,6 +298,8 @@ export declare var PutRuntimeManagementConfigResponse$: StaticStructureSchema;
289
298
  export declare var RemoveLayerVersionPermissionRequest$: StaticStructureSchema;
290
299
  export declare var RemovePermissionRequest$: StaticStructureSchema;
291
300
  export declare var ResolvedS3Object$: StaticStructureSchema;
301
+ export declare var ResumeDurableExecutionRequest$: StaticStructureSchema;
302
+ export declare var ResumeDurableExecutionResponse$: StaticStructureSchema;
292
303
  export declare var RetryDetails$: StaticStructureSchema;
293
304
  export declare var RuntimeVersionConfig$: StaticStructureSchema;
294
305
  export declare var RuntimeVersionError$: StaticStructureSchema;
@@ -351,6 +362,7 @@ export declare var CreateFunctionUrlConfig$: StaticOperationSchema;
351
362
  export declare var DeleteAlias$: StaticOperationSchema;
352
363
  export declare var DeleteCapacityProvider$: StaticOperationSchema;
353
364
  export declare var DeleteCodeSigningConfig$: StaticOperationSchema;
365
+ export declare var DeleteDurableExecution$: StaticOperationSchema;
354
366
  export declare var DeleteEventSourceMapping$: StaticOperationSchema;
355
367
  export declare var DeleteFunction$: StaticOperationSchema;
356
368
  export declare var DeleteFunctionCodeSigningConfig$: StaticOperationSchema;
@@ -401,6 +413,7 @@ export declare var ListLayerVersions$: StaticOperationSchema;
401
413
  export declare var ListProvisionedConcurrencyConfigs$: StaticOperationSchema;
402
414
  export declare var ListTags$: StaticOperationSchema;
403
415
  export declare var ListVersionsByFunction$: StaticOperationSchema;
416
+ export declare var PauseDurableExecution$: StaticOperationSchema;
404
417
  export declare var PublishLayerVersion$: StaticOperationSchema;
405
418
  export declare var PublishVersion$: StaticOperationSchema;
406
419
  export declare var PutFunctionCodeSigningConfig$: StaticOperationSchema;
@@ -413,6 +426,7 @@ export declare var PutResourcePolicy$: StaticOperationSchema;
413
426
  export declare var PutRuntimeManagementConfig$: StaticOperationSchema;
414
427
  export declare var RemoveLayerVersionPermission$: StaticOperationSchema;
415
428
  export declare var RemovePermission$: StaticOperationSchema;
429
+ export declare var ResumeDurableExecution$: StaticOperationSchema;
416
430
  export declare var SendDurableExecutionCallbackFailure$: StaticOperationSchema;
417
431
  export declare var SendDurableExecutionCallbackHeartbeat$: StaticOperationSchema;
418
432
  export declare var SendDurableExecutionCallbackSuccess$: StaticOperationSchema;
@@ -48,6 +48,10 @@ import {
48
48
  DeleteCodeSigningConfigCommandInput,
49
49
  DeleteCodeSigningConfigCommandOutput,
50
50
  } from "./commands/DeleteCodeSigningConfigCommand";
51
+ import {
52
+ DeleteDurableExecutionCommandInput,
53
+ DeleteDurableExecutionCommandOutput,
54
+ } from "./commands/DeleteDurableExecutionCommand";
51
55
  import {
52
56
  DeleteEventSourceMappingCommandInput,
53
57
  DeleteEventSourceMappingCommandOutput,
@@ -224,6 +228,10 @@ import {
224
228
  ListVersionsByFunctionCommandInput,
225
229
  ListVersionsByFunctionCommandOutput,
226
230
  } from "./commands/ListVersionsByFunctionCommand";
231
+ import {
232
+ PauseDurableExecutionCommandInput,
233
+ PauseDurableExecutionCommandOutput,
234
+ } from "./commands/PauseDurableExecutionCommand";
227
235
  import {
228
236
  PublishLayerVersionCommandInput,
229
237
  PublishLayerVersionCommandOutput,
@@ -272,6 +280,10 @@ import {
272
280
  RemovePermissionCommandInput,
273
281
  RemovePermissionCommandOutput,
274
282
  } from "./commands/RemovePermissionCommand";
283
+ import {
284
+ ResumeDurableExecutionCommandInput,
285
+ ResumeDurableExecutionCommandOutput,
286
+ } from "./commands/ResumeDurableExecutionCommand";
275
287
  import {
276
288
  SendDurableExecutionCallbackFailureCommandInput,
277
289
  SendDurableExecutionCallbackFailureCommandOutput,
@@ -483,6 +495,19 @@ export interface Lambda {
483
495
  options: LambdaRequestOptions,
484
496
  cb: (err: any, data?: DeleteCodeSigningConfigCommandOutput) => void,
485
497
  ): void;
498
+ deleteDurableExecution(
499
+ args: DeleteDurableExecutionCommandInput,
500
+ options?: LambdaRequestOptions,
501
+ ): Promise<DeleteDurableExecutionCommandOutput>;
502
+ deleteDurableExecution(
503
+ args: DeleteDurableExecutionCommandInput,
504
+ cb: (err: any, data?: DeleteDurableExecutionCommandOutput) => void,
505
+ ): void;
506
+ deleteDurableExecution(
507
+ args: DeleteDurableExecutionCommandInput,
508
+ options: LambdaRequestOptions,
509
+ cb: (err: any, data?: DeleteDurableExecutionCommandOutput) => void,
510
+ ): void;
486
511
  deleteEventSourceMapping(
487
512
  args: DeleteEventSourceMappingCommandInput,
488
513
  options?: LambdaRequestOptions,
@@ -1127,6 +1152,19 @@ export interface Lambda {
1127
1152
  options: LambdaRequestOptions,
1128
1153
  cb: (err: any, data?: ListVersionsByFunctionCommandOutput) => void,
1129
1154
  ): void;
1155
+ pauseDurableExecution(
1156
+ args: PauseDurableExecutionCommandInput,
1157
+ options?: LambdaRequestOptions,
1158
+ ): Promise<PauseDurableExecutionCommandOutput>;
1159
+ pauseDurableExecution(
1160
+ args: PauseDurableExecutionCommandInput,
1161
+ cb: (err: any, data?: PauseDurableExecutionCommandOutput) => void,
1162
+ ): void;
1163
+ pauseDurableExecution(
1164
+ args: PauseDurableExecutionCommandInput,
1165
+ options: LambdaRequestOptions,
1166
+ cb: (err: any, data?: PauseDurableExecutionCommandOutput) => void,
1167
+ ): void;
1130
1168
  publishLayerVersion(
1131
1169
  args: PublishLayerVersionCommandInput,
1132
1170
  options?: LambdaRequestOptions,
@@ -1283,6 +1321,19 @@ export interface Lambda {
1283
1321
  options: LambdaRequestOptions,
1284
1322
  cb: (err: any, data?: RemovePermissionCommandOutput) => void,
1285
1323
  ): void;
1324
+ resumeDurableExecution(
1325
+ args: ResumeDurableExecutionCommandInput,
1326
+ options?: LambdaRequestOptions,
1327
+ ): Promise<ResumeDurableExecutionCommandOutput>;
1328
+ resumeDurableExecution(
1329
+ args: ResumeDurableExecutionCommandInput,
1330
+ cb: (err: any, data?: ResumeDurableExecutionCommandOutput) => void,
1331
+ ): void;
1332
+ resumeDurableExecution(
1333
+ args: ResumeDurableExecutionCommandInput,
1334
+ options: LambdaRequestOptions,
1335
+ cb: (err: any, data?: ResumeDurableExecutionCommandOutput) => void,
1336
+ ): void;
1286
1337
  sendDurableExecutionCallbackFailure(
1287
1338
  args: SendDurableExecutionCallbackFailureCommandInput,
1288
1339
  options?: LambdaRequestOptions,
@@ -80,6 +80,10 @@ import {
80
80
  DeleteCodeSigningConfigCommandInput,
81
81
  DeleteCodeSigningConfigCommandOutput,
82
82
  } from "./commands/DeleteCodeSigningConfigCommand";
83
+ import {
84
+ DeleteDurableExecutionCommandInput,
85
+ DeleteDurableExecutionCommandOutput,
86
+ } from "./commands/DeleteDurableExecutionCommand";
83
87
  import {
84
88
  DeleteEventSourceMappingCommandInput,
85
89
  DeleteEventSourceMappingCommandOutput,
@@ -256,6 +260,10 @@ import {
256
260
  ListVersionsByFunctionCommandInput,
257
261
  ListVersionsByFunctionCommandOutput,
258
262
  } from "./commands/ListVersionsByFunctionCommand";
263
+ import {
264
+ PauseDurableExecutionCommandInput,
265
+ PauseDurableExecutionCommandOutput,
266
+ } from "./commands/PauseDurableExecutionCommand";
259
267
  import {
260
268
  PublishLayerVersionCommandInput,
261
269
  PublishLayerVersionCommandOutput,
@@ -304,6 +312,10 @@ import {
304
312
  RemovePermissionCommandInput,
305
313
  RemovePermissionCommandOutput,
306
314
  } from "./commands/RemovePermissionCommand";
315
+ import {
316
+ ResumeDurableExecutionCommandInput,
317
+ ResumeDurableExecutionCommandOutput,
318
+ } from "./commands/ResumeDurableExecutionCommand";
307
319
  import {
308
320
  SendDurableExecutionCallbackFailureCommandInput,
309
321
  SendDurableExecutionCallbackFailureCommandOutput,
@@ -374,6 +386,7 @@ export type ServiceInputTypes =
374
386
  | DeleteAliasCommandInput
375
387
  | DeleteCapacityProviderCommandInput
376
388
  | DeleteCodeSigningConfigCommandInput
389
+ | DeleteDurableExecutionCommandInput
377
390
  | DeleteEventSourceMappingCommandInput
378
391
  | DeleteFunctionCodeSigningConfigCommandInput
379
392
  | DeleteFunctionCommandInput
@@ -424,6 +437,7 @@ export type ServiceInputTypes =
424
437
  | ListProvisionedConcurrencyConfigsCommandInput
425
438
  | ListTagsCommandInput
426
439
  | ListVersionsByFunctionCommandInput
440
+ | PauseDurableExecutionCommandInput
427
441
  | PublishLayerVersionCommandInput
428
442
  | PublishVersionCommandInput
429
443
  | PutFunctionCodeSigningConfigCommandInput
@@ -436,6 +450,7 @@ export type ServiceInputTypes =
436
450
  | PutRuntimeManagementConfigCommandInput
437
451
  | RemoveLayerVersionPermissionCommandInput
438
452
  | RemovePermissionCommandInput
453
+ | ResumeDurableExecutionCommandInput
439
454
  | SendDurableExecutionCallbackFailureCommandInput
440
455
  | SendDurableExecutionCallbackHeartbeatCommandInput
441
456
  | SendDurableExecutionCallbackSuccessCommandInput
@@ -463,6 +478,7 @@ export type ServiceOutputTypes =
463
478
  | DeleteAliasCommandOutput
464
479
  | DeleteCapacityProviderCommandOutput
465
480
  | DeleteCodeSigningConfigCommandOutput
481
+ | DeleteDurableExecutionCommandOutput
466
482
  | DeleteEventSourceMappingCommandOutput
467
483
  | DeleteFunctionCodeSigningConfigCommandOutput
468
484
  | DeleteFunctionCommandOutput
@@ -513,6 +529,7 @@ export type ServiceOutputTypes =
513
529
  | ListProvisionedConcurrencyConfigsCommandOutput
514
530
  | ListTagsCommandOutput
515
531
  | ListVersionsByFunctionCommandOutput
532
+ | PauseDurableExecutionCommandOutput
516
533
  | PublishLayerVersionCommandOutput
517
534
  | PublishVersionCommandOutput
518
535
  | PutFunctionCodeSigningConfigCommandOutput
@@ -525,6 +542,7 @@ export type ServiceOutputTypes =
525
542
  | PutRuntimeManagementConfigCommandOutput
526
543
  | RemoveLayerVersionPermissionCommandOutput
527
544
  | RemovePermissionCommandOutput
545
+ | ResumeDurableExecutionCommandOutput
528
546
  | SendDurableExecutionCallbackFailureCommandOutput
529
547
  | SendDurableExecutionCallbackHeartbeatCommandOutput
530
548
  | SendDurableExecutionCallbackSuccessCommandOutput