@aws-sdk/client-lambda 3.942.0 → 3.943.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.
- package/README.md +72 -0
- package/dist-cjs/index.js +1037 -83
- package/dist-es/Lambda.js +18 -0
- package/dist-es/commands/CheckpointDurableExecutionCommand.js +16 -0
- package/dist-es/commands/GetDurableExecutionCommand.js +16 -0
- package/dist-es/commands/GetDurableExecutionHistoryCommand.js +16 -0
- package/dist-es/commands/GetDurableExecutionStateCommand.js +16 -0
- package/dist-es/commands/ListDurableExecutionsByFunctionCommand.js +16 -0
- package/dist-es/commands/SendDurableExecutionCallbackFailureCommand.js +16 -0
- package/dist-es/commands/SendDurableExecutionCallbackHeartbeatCommand.js +16 -0
- package/dist-es/commands/SendDurableExecutionCallbackSuccessCommand.js +16 -0
- package/dist-es/commands/StopDurableExecutionCommand.js +16 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/enums.js +59 -0
- package/dist-es/models/errors.js +32 -0
- package/dist-es/pagination/GetDurableExecutionHistoryPaginator.js +4 -0
- package/dist-es/pagination/GetDurableExecutionStatePaginator.js +4 -0
- package/dist-es/pagination/ListDurableExecutionsByFunctionPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/schemas/schemas_0.js +806 -84
- package/dist-types/Lambda.d.ts +63 -0
- package/dist-types/LambdaClient.d.ts +11 -2
- package/dist-types/commands/CheckpointDurableExecutionCommand.d.ts +190 -0
- package/dist-types/commands/CreateFunctionCommand.d.ts +17 -1
- package/dist-types/commands/GetDurableExecutionCommand.d.ts +105 -0
- package/dist-types/commands/GetDurableExecutionHistoryCommand.d.ts +259 -0
- package/dist-types/commands/GetDurableExecutionStateCommand.d.ts +152 -0
- package/dist-types/commands/GetFunctionCommand.d.ts +9 -1
- package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +9 -1
- package/dist-types/commands/InvokeCommand.d.ts +7 -0
- package/dist-types/commands/ListDurableExecutionsByFunctionCommand.d.ts +106 -0
- package/dist-types/commands/ListFunctionsCommand.d.ts +9 -1
- package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +13 -1
- package/dist-types/commands/PublishVersionCommand.d.ts +5 -1
- package/dist-types/commands/SendDurableExecutionCallbackFailureCommand.d.ts +92 -0
- package/dist-types/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +84 -0
- package/dist-types/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +91 -0
- package/dist-types/commands/StopDurableExecutionCommand.d.ts +94 -0
- package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +5 -1
- package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +17 -1
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/enums.d.ts +99 -0
- package/dist-types/models/errors.d.ts +36 -0
- package/dist-types/models/models_0.d.ts +1510 -173
- package/dist-types/pagination/GetDurableExecutionHistoryPaginator.d.ts +7 -0
- package/dist-types/pagination/GetDurableExecutionStatePaginator.d.ts +7 -0
- package/dist-types/pagination/ListDurableExecutionsByFunctionPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/schemas/schemas_0.d.ts +90 -0
- package/dist-types/ts3.4/Lambda.d.ts +171 -0
- package/dist-types/ts3.4/LambdaClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/CheckpointDurableExecutionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetDurableExecutionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetDurableExecutionHistoryCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetDurableExecutionStateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDurableExecutionsByFunctionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SendDurableExecutionCallbackFailureCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SendDurableExecutionCallbackHeartbeatCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SendDurableExecutionCallbackSuccessCommand.d.ts +60 -0
- package/dist-types/ts3.4/commands/StopDurableExecutionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +67 -0
- package/dist-types/ts3.4/models/errors.d.ts +21 -0
- package/dist-types/ts3.4/models/models_0.d.ts +322 -0
- package/dist-types/ts3.4/pagination/GetDurableExecutionHistoryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetDurableExecutionStatePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDurableExecutionsByFunctionPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +90 -0
- package/package.json +5 -5
|
@@ -0,0 +1,259 @@
|
|
|
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 { GetDurableExecutionHistoryRequest, GetDurableExecutionHistoryResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetDurableExecutionHistoryCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetDurableExecutionHistoryCommandInput extends GetDurableExecutionHistoryRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetDurableExecutionHistoryCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetDurableExecutionHistoryCommandOutput extends GetDurableExecutionHistoryResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetDurableExecutionHistoryCommand_base: {
|
|
25
|
+
new (input: GetDurableExecutionHistoryCommandInput): import("@smithy/smithy-client").CommandImpl<GetDurableExecutionHistoryCommandInput, GetDurableExecutionHistoryCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetDurableExecutionHistoryCommandInput): import("@smithy/smithy-client").CommandImpl<GetDurableExecutionHistoryCommandInput, GetDurableExecutionHistoryCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the execution history for a <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable execution</a>, showing all the steps, callbacks, and events that occurred during the execution. This provides a detailed audit trail of the execution's progress over time.</p> <p>The history is available while the execution is running and for a retention period after it completes (1-90 days, default 30 days). You can control whether to include execution data such as step results and callback payloads.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { LambdaClient, GetDurableExecutionHistoryCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
35
|
+
* // const { LambdaClient, GetDurableExecutionHistoryCommand } = 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 = { // GetDurableExecutionHistoryRequest
|
|
40
|
+
* DurableExecutionArn: "STRING_VALUE", // required
|
|
41
|
+
* IncludeExecutionData: true || false,
|
|
42
|
+
* MaxItems: Number("int"),
|
|
43
|
+
* Marker: "STRING_VALUE",
|
|
44
|
+
* ReverseOrder: true || false,
|
|
45
|
+
* };
|
|
46
|
+
* const command = new GetDurableExecutionHistoryCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // GetDurableExecutionHistoryResponse
|
|
49
|
+
* // Events: [ // Events // required
|
|
50
|
+
* // { // Event
|
|
51
|
+
* // EventType: "ExecutionStarted" || "ExecutionSucceeded" || "ExecutionFailed" || "ExecutionTimedOut" || "ExecutionStopped" || "ContextStarted" || "ContextSucceeded" || "ContextFailed" || "WaitStarted" || "WaitSucceeded" || "WaitCancelled" || "StepStarted" || "StepSucceeded" || "StepFailed" || "ChainedInvokeStarted" || "ChainedInvokeSucceeded" || "ChainedInvokeFailed" || "ChainedInvokeTimedOut" || "ChainedInvokeStopped" || "CallbackStarted" || "CallbackSucceeded" || "CallbackFailed" || "CallbackTimedOut" || "InvocationCompleted",
|
|
52
|
+
* // SubType: "STRING_VALUE",
|
|
53
|
+
* // EventId: Number("int"),
|
|
54
|
+
* // Id: "STRING_VALUE",
|
|
55
|
+
* // Name: "STRING_VALUE",
|
|
56
|
+
* // EventTimestamp: new Date("TIMESTAMP"),
|
|
57
|
+
* // ParentId: "STRING_VALUE",
|
|
58
|
+
* // ExecutionStartedDetails: { // ExecutionStartedDetails
|
|
59
|
+
* // Input: { // EventInput
|
|
60
|
+
* // Payload: "STRING_VALUE",
|
|
61
|
+
* // Truncated: true || false,
|
|
62
|
+
* // },
|
|
63
|
+
* // ExecutionTimeout: Number("int"), // required
|
|
64
|
+
* // },
|
|
65
|
+
* // ExecutionSucceededDetails: { // ExecutionSucceededDetails
|
|
66
|
+
* // Result: { // EventResult
|
|
67
|
+
* // Payload: "STRING_VALUE",
|
|
68
|
+
* // Truncated: true || false,
|
|
69
|
+
* // },
|
|
70
|
+
* // },
|
|
71
|
+
* // ExecutionFailedDetails: { // ExecutionFailedDetails
|
|
72
|
+
* // Error: { // EventError
|
|
73
|
+
* // Payload: { // ErrorObject
|
|
74
|
+
* // ErrorMessage: "STRING_VALUE",
|
|
75
|
+
* // ErrorType: "STRING_VALUE",
|
|
76
|
+
* // ErrorData: "STRING_VALUE",
|
|
77
|
+
* // StackTrace: [ // StackTraceEntries
|
|
78
|
+
* // "STRING_VALUE",
|
|
79
|
+
* // ],
|
|
80
|
+
* // },
|
|
81
|
+
* // Truncated: true || false,
|
|
82
|
+
* // },
|
|
83
|
+
* // },
|
|
84
|
+
* // ExecutionTimedOutDetails: { // ExecutionTimedOutDetails
|
|
85
|
+
* // Error: {
|
|
86
|
+
* // Payload: {
|
|
87
|
+
* // ErrorMessage: "STRING_VALUE",
|
|
88
|
+
* // ErrorType: "STRING_VALUE",
|
|
89
|
+
* // ErrorData: "STRING_VALUE",
|
|
90
|
+
* // StackTrace: [
|
|
91
|
+
* // "STRING_VALUE",
|
|
92
|
+
* // ],
|
|
93
|
+
* // },
|
|
94
|
+
* // Truncated: true || false,
|
|
95
|
+
* // },
|
|
96
|
+
* // },
|
|
97
|
+
* // ExecutionStoppedDetails: { // ExecutionStoppedDetails
|
|
98
|
+
* // Error: {
|
|
99
|
+
* // Payload: {
|
|
100
|
+
* // ErrorMessage: "STRING_VALUE",
|
|
101
|
+
* // ErrorType: "STRING_VALUE",
|
|
102
|
+
* // ErrorData: "STRING_VALUE",
|
|
103
|
+
* // StackTrace: [
|
|
104
|
+
* // "STRING_VALUE",
|
|
105
|
+
* // ],
|
|
106
|
+
* // },
|
|
107
|
+
* // Truncated: true || false,
|
|
108
|
+
* // },
|
|
109
|
+
* // },
|
|
110
|
+
* // ContextStartedDetails: {},
|
|
111
|
+
* // ContextSucceededDetails: { // ContextSucceededDetails
|
|
112
|
+
* // Result: {
|
|
113
|
+
* // Payload: "STRING_VALUE",
|
|
114
|
+
* // Truncated: true || false,
|
|
115
|
+
* // },
|
|
116
|
+
* // },
|
|
117
|
+
* // ContextFailedDetails: { // ContextFailedDetails
|
|
118
|
+
* // Error: {
|
|
119
|
+
* // Payload: {
|
|
120
|
+
* // ErrorMessage: "STRING_VALUE",
|
|
121
|
+
* // ErrorType: "STRING_VALUE",
|
|
122
|
+
* // ErrorData: "STRING_VALUE",
|
|
123
|
+
* // StackTrace: [
|
|
124
|
+
* // "STRING_VALUE",
|
|
125
|
+
* // ],
|
|
126
|
+
* // },
|
|
127
|
+
* // Truncated: true || false,
|
|
128
|
+
* // },
|
|
129
|
+
* // },
|
|
130
|
+
* // WaitStartedDetails: { // WaitStartedDetails
|
|
131
|
+
* // Duration: Number("int"), // required
|
|
132
|
+
* // ScheduledEndTimestamp: new Date("TIMESTAMP"), // required
|
|
133
|
+
* // },
|
|
134
|
+
* // WaitSucceededDetails: { // WaitSucceededDetails
|
|
135
|
+
* // Duration: Number("int"),
|
|
136
|
+
* // },
|
|
137
|
+
* // WaitCancelledDetails: { // WaitCancelledDetails
|
|
138
|
+
* // Error: {
|
|
139
|
+
* // Payload: {
|
|
140
|
+
* // ErrorMessage: "STRING_VALUE",
|
|
141
|
+
* // ErrorType: "STRING_VALUE",
|
|
142
|
+
* // ErrorData: "STRING_VALUE",
|
|
143
|
+
* // StackTrace: [
|
|
144
|
+
* // "STRING_VALUE",
|
|
145
|
+
* // ],
|
|
146
|
+
* // },
|
|
147
|
+
* // Truncated: true || false,
|
|
148
|
+
* // },
|
|
149
|
+
* // },
|
|
150
|
+
* // StepStartedDetails: {},
|
|
151
|
+
* // StepSucceededDetails: { // StepSucceededDetails
|
|
152
|
+
* // Result: {
|
|
153
|
+
* // Payload: "STRING_VALUE",
|
|
154
|
+
* // Truncated: true || false,
|
|
155
|
+
* // },
|
|
156
|
+
* // RetryDetails: { // RetryDetails
|
|
157
|
+
* // CurrentAttempt: Number("int"),
|
|
158
|
+
* // NextAttemptDelaySeconds: Number("int"),
|
|
159
|
+
* // },
|
|
160
|
+
* // },
|
|
161
|
+
* // StepFailedDetails: { // StepFailedDetails
|
|
162
|
+
* // Error: "<EventError>", // required
|
|
163
|
+
* // RetryDetails: {
|
|
164
|
+
* // CurrentAttempt: Number("int"),
|
|
165
|
+
* // NextAttemptDelaySeconds: Number("int"),
|
|
166
|
+
* // },
|
|
167
|
+
* // },
|
|
168
|
+
* // ChainedInvokeStartedDetails: { // ChainedInvokeStartedDetails
|
|
169
|
+
* // FunctionName: "STRING_VALUE", // required
|
|
170
|
+
* // TenantId: "STRING_VALUE",
|
|
171
|
+
* // Input: {
|
|
172
|
+
* // Payload: "STRING_VALUE",
|
|
173
|
+
* // Truncated: true || false,
|
|
174
|
+
* // },
|
|
175
|
+
* // ExecutedVersion: "STRING_VALUE",
|
|
176
|
+
* // DurableExecutionArn: "STRING_VALUE",
|
|
177
|
+
* // },
|
|
178
|
+
* // ChainedInvokeSucceededDetails: { // ChainedInvokeSucceededDetails
|
|
179
|
+
* // Result: {
|
|
180
|
+
* // Payload: "STRING_VALUE",
|
|
181
|
+
* // Truncated: true || false,
|
|
182
|
+
* // },
|
|
183
|
+
* // },
|
|
184
|
+
* // ChainedInvokeFailedDetails: { // ChainedInvokeFailedDetails
|
|
185
|
+
* // Error: "<EventError>", // required
|
|
186
|
+
* // },
|
|
187
|
+
* // ChainedInvokeTimedOutDetails: { // ChainedInvokeTimedOutDetails
|
|
188
|
+
* // Error: "<EventError>", // required
|
|
189
|
+
* // },
|
|
190
|
+
* // ChainedInvokeStoppedDetails: { // ChainedInvokeStoppedDetails
|
|
191
|
+
* // Error: "<EventError>", // required
|
|
192
|
+
* // },
|
|
193
|
+
* // CallbackStartedDetails: { // CallbackStartedDetails
|
|
194
|
+
* // CallbackId: "STRING_VALUE", // required
|
|
195
|
+
* // HeartbeatTimeout: Number("int"),
|
|
196
|
+
* // Timeout: Number("int"),
|
|
197
|
+
* // },
|
|
198
|
+
* // CallbackSucceededDetails: { // CallbackSucceededDetails
|
|
199
|
+
* // Result: {
|
|
200
|
+
* // Payload: "STRING_VALUE",
|
|
201
|
+
* // Truncated: true || false,
|
|
202
|
+
* // },
|
|
203
|
+
* // },
|
|
204
|
+
* // CallbackFailedDetails: { // CallbackFailedDetails
|
|
205
|
+
* // Error: "<EventError>", // required
|
|
206
|
+
* // },
|
|
207
|
+
* // CallbackTimedOutDetails: { // CallbackTimedOutDetails
|
|
208
|
+
* // Error: "<EventError>", // required
|
|
209
|
+
* // },
|
|
210
|
+
* // InvocationCompletedDetails: { // InvocationCompletedDetails
|
|
211
|
+
* // StartTimestamp: new Date("TIMESTAMP"), // required
|
|
212
|
+
* // EndTimestamp: new Date("TIMESTAMP"), // required
|
|
213
|
+
* // RequestId: "STRING_VALUE", // required
|
|
214
|
+
* // Error: "<EventError>",
|
|
215
|
+
* // },
|
|
216
|
+
* // },
|
|
217
|
+
* // ],
|
|
218
|
+
* // NextMarker: "STRING_VALUE",
|
|
219
|
+
* // };
|
|
220
|
+
*
|
|
221
|
+
* ```
|
|
222
|
+
*
|
|
223
|
+
* @param GetDurableExecutionHistoryCommandInput - {@link GetDurableExecutionHistoryCommandInput}
|
|
224
|
+
* @returns {@link GetDurableExecutionHistoryCommandOutput}
|
|
225
|
+
* @see {@link GetDurableExecutionHistoryCommandInput} for command's `input` shape.
|
|
226
|
+
* @see {@link GetDurableExecutionHistoryCommandOutput} for command's `response` shape.
|
|
227
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
228
|
+
*
|
|
229
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
230
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
231
|
+
*
|
|
232
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
233
|
+
* <p>The resource specified in the request does not exist.</p>
|
|
234
|
+
*
|
|
235
|
+
* @throws {@link ServiceException} (server fault)
|
|
236
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
237
|
+
*
|
|
238
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
239
|
+
* <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>
|
|
240
|
+
*
|
|
241
|
+
* @throws {@link LambdaServiceException}
|
|
242
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
243
|
+
*
|
|
244
|
+
*
|
|
245
|
+
* @public
|
|
246
|
+
*/
|
|
247
|
+
export declare class GetDurableExecutionHistoryCommand extends GetDurableExecutionHistoryCommand_base {
|
|
248
|
+
/** @internal type navigation helper, not in runtime. */
|
|
249
|
+
protected static __types: {
|
|
250
|
+
api: {
|
|
251
|
+
input: GetDurableExecutionHistoryRequest;
|
|
252
|
+
output: GetDurableExecutionHistoryResponse;
|
|
253
|
+
};
|
|
254
|
+
sdk: {
|
|
255
|
+
input: GetDurableExecutionHistoryCommandInput;
|
|
256
|
+
output: GetDurableExecutionHistoryCommandOutput;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
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 { GetDurableExecutionStateRequest, GetDurableExecutionStateResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetDurableExecutionStateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetDurableExecutionStateCommandInput extends GetDurableExecutionStateRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetDurableExecutionStateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetDurableExecutionStateCommandOutput extends GetDurableExecutionStateResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetDurableExecutionStateCommand_base: {
|
|
25
|
+
new (input: GetDurableExecutionStateCommandInput): import("@smithy/smithy-client").CommandImpl<GetDurableExecutionStateCommandInput, GetDurableExecutionStateCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetDurableExecutionStateCommandInput): import("@smithy/smithy-client").CommandImpl<GetDurableExecutionStateCommandInput, GetDurableExecutionStateCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the current execution state required for the replay process during <a href="https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html">durable function</a> execution. This API is used by the Lambda durable functions SDK to get state information needed for replay. You typically don't need to call this API directly as the SDK handles state management automatically.</p> <p>The response contains operations ordered by start sequence number in ascending order. Completed operations with children don't include child operation details since they don't need to be replayed.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { LambdaClient, GetDurableExecutionStateCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
35
|
+
* // const { LambdaClient, GetDurableExecutionStateCommand } = 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 = { // GetDurableExecutionStateRequest
|
|
40
|
+
* DurableExecutionArn: "STRING_VALUE", // required
|
|
41
|
+
* CheckpointToken: "STRING_VALUE", // required
|
|
42
|
+
* Marker: "STRING_VALUE",
|
|
43
|
+
* MaxItems: Number("int"),
|
|
44
|
+
* };
|
|
45
|
+
* const command = new GetDurableExecutionStateCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // GetDurableExecutionStateResponse
|
|
48
|
+
* // Operations: [ // Operations // required
|
|
49
|
+
* // { // Operation
|
|
50
|
+
* // Id: "STRING_VALUE", // required
|
|
51
|
+
* // ParentId: "STRING_VALUE",
|
|
52
|
+
* // Name: "STRING_VALUE",
|
|
53
|
+
* // Type: "EXECUTION" || "CONTEXT" || "STEP" || "WAIT" || "CALLBACK" || "CHAINED_INVOKE", // required
|
|
54
|
+
* // SubType: "STRING_VALUE",
|
|
55
|
+
* // StartTimestamp: new Date("TIMESTAMP"), // required
|
|
56
|
+
* // EndTimestamp: new Date("TIMESTAMP"),
|
|
57
|
+
* // Status: "STARTED" || "PENDING" || "READY" || "SUCCEEDED" || "FAILED" || "CANCELLED" || "TIMED_OUT" || "STOPPED", // required
|
|
58
|
+
* // ExecutionDetails: { // ExecutionDetails
|
|
59
|
+
* // InputPayload: "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // ContextDetails: { // ContextDetails
|
|
62
|
+
* // ReplayChildren: true || false,
|
|
63
|
+
* // Result: "STRING_VALUE",
|
|
64
|
+
* // Error: { // ErrorObject
|
|
65
|
+
* // ErrorMessage: "STRING_VALUE",
|
|
66
|
+
* // ErrorType: "STRING_VALUE",
|
|
67
|
+
* // ErrorData: "STRING_VALUE",
|
|
68
|
+
* // StackTrace: [ // StackTraceEntries
|
|
69
|
+
* // "STRING_VALUE",
|
|
70
|
+
* // ],
|
|
71
|
+
* // },
|
|
72
|
+
* // },
|
|
73
|
+
* // StepDetails: { // StepDetails
|
|
74
|
+
* // Attempt: Number("int"),
|
|
75
|
+
* // NextAttemptTimestamp: new Date("TIMESTAMP"),
|
|
76
|
+
* // Result: "STRING_VALUE",
|
|
77
|
+
* // Error: {
|
|
78
|
+
* // ErrorMessage: "STRING_VALUE",
|
|
79
|
+
* // ErrorType: "STRING_VALUE",
|
|
80
|
+
* // ErrorData: "STRING_VALUE",
|
|
81
|
+
* // StackTrace: [
|
|
82
|
+
* // "STRING_VALUE",
|
|
83
|
+
* // ],
|
|
84
|
+
* // },
|
|
85
|
+
* // },
|
|
86
|
+
* // WaitDetails: { // WaitDetails
|
|
87
|
+
* // ScheduledEndTimestamp: new Date("TIMESTAMP"),
|
|
88
|
+
* // },
|
|
89
|
+
* // CallbackDetails: { // CallbackDetails
|
|
90
|
+
* // CallbackId: "STRING_VALUE",
|
|
91
|
+
* // Result: "STRING_VALUE",
|
|
92
|
+
* // Error: {
|
|
93
|
+
* // ErrorMessage: "STRING_VALUE",
|
|
94
|
+
* // ErrorType: "STRING_VALUE",
|
|
95
|
+
* // ErrorData: "STRING_VALUE",
|
|
96
|
+
* // StackTrace: [
|
|
97
|
+
* // "STRING_VALUE",
|
|
98
|
+
* // ],
|
|
99
|
+
* // },
|
|
100
|
+
* // },
|
|
101
|
+
* // ChainedInvokeDetails: { // ChainedInvokeDetails
|
|
102
|
+
* // Result: "STRING_VALUE",
|
|
103
|
+
* // Error: {
|
|
104
|
+
* // ErrorMessage: "STRING_VALUE",
|
|
105
|
+
* // ErrorType: "STRING_VALUE",
|
|
106
|
+
* // ErrorData: "STRING_VALUE",
|
|
107
|
+
* // StackTrace: [
|
|
108
|
+
* // "STRING_VALUE",
|
|
109
|
+
* // ],
|
|
110
|
+
* // },
|
|
111
|
+
* // },
|
|
112
|
+
* // },
|
|
113
|
+
* // ],
|
|
114
|
+
* // NextMarker: "STRING_VALUE",
|
|
115
|
+
* // };
|
|
116
|
+
*
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* @param GetDurableExecutionStateCommandInput - {@link GetDurableExecutionStateCommandInput}
|
|
120
|
+
* @returns {@link GetDurableExecutionStateCommandOutput}
|
|
121
|
+
* @see {@link GetDurableExecutionStateCommandInput} for command's `input` shape.
|
|
122
|
+
* @see {@link GetDurableExecutionStateCommandOutput} for command's `response` shape.
|
|
123
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
126
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link ServiceException} (server fault)
|
|
129
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
132
|
+
* <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>
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link LambdaServiceException}
|
|
135
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
136
|
+
*
|
|
137
|
+
*
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
export declare class GetDurableExecutionStateCommand extends GetDurableExecutionStateCommand_base {
|
|
141
|
+
/** @internal type navigation helper, not in runtime. */
|
|
142
|
+
protected static __types: {
|
|
143
|
+
api: {
|
|
144
|
+
input: GetDurableExecutionStateRequest;
|
|
145
|
+
output: GetDurableExecutionStateResponse;
|
|
146
|
+
};
|
|
147
|
+
sdk: {
|
|
148
|
+
input: GetDurableExecutionStateCommandInput;
|
|
149
|
+
output: GetDurableExecutionStateCommandOutput;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
}
|
|
@@ -94,7 +94,7 @@ declare const GetFunctionCommand_base: {
|
|
|
94
94
|
* // ],
|
|
95
95
|
* // State: "Pending" || "Active" || "Inactive" || "Failed" || "Deactivating" || "Deactivated" || "ActiveNonInvocable" || "Deleting",
|
|
96
96
|
* // StateReason: "STRING_VALUE",
|
|
97
|
-
* // 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",
|
|
97
|
+
* // 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",
|
|
98
98
|
* // LastUpdateStatus: "Successful" || "Failed" || "InProgress",
|
|
99
99
|
* // LastUpdateStatusReason: "STRING_VALUE",
|
|
100
100
|
* // 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",
|
|
@@ -153,6 +153,10 @@ declare const GetFunctionCommand_base: {
|
|
|
153
153
|
* // },
|
|
154
154
|
* // },
|
|
155
155
|
* // ConfigSha256: "STRING_VALUE",
|
|
156
|
+
* // DurableConfig: { // DurableConfig
|
|
157
|
+
* // RetentionPeriodInDays: Number("int"),
|
|
158
|
+
* // ExecutionTimeout: Number("int"),
|
|
159
|
+
* // },
|
|
156
160
|
* // TenancyConfig: { // TenancyConfig
|
|
157
161
|
* // TenantIsolationMode: "PER_TENANT", // required
|
|
158
162
|
* // },
|
|
@@ -219,6 +223,10 @@ declare const GetFunctionCommand_base: {
|
|
|
219
223
|
* CodeSha256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
|
|
220
224
|
* CodeSize: 5797206,
|
|
221
225
|
* Description: "Process image objects from Amazon S3.",
|
|
226
|
+
* DurableConfig: {
|
|
227
|
+
* ExecutionTimeout: 31622400,
|
|
228
|
+
* RetentionPeriodInDays: 30
|
|
229
|
+
* },
|
|
222
230
|
* Environment: {
|
|
223
231
|
* Variables: {
|
|
224
232
|
* BUCKET: "my-bucket-1xpuxmplzrlbh",
|
|
@@ -93,7 +93,7 @@ declare const GetFunctionConfigurationCommand_base: {
|
|
|
93
93
|
* // ],
|
|
94
94
|
* // State: "Pending" || "Active" || "Inactive" || "Failed" || "Deactivating" || "Deactivated" || "ActiveNonInvocable" || "Deleting",
|
|
95
95
|
* // StateReason: "STRING_VALUE",
|
|
96
|
-
* // 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",
|
|
96
|
+
* // 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",
|
|
97
97
|
* // LastUpdateStatus: "Successful" || "Failed" || "InProgress",
|
|
98
98
|
* // LastUpdateStatusReason: "STRING_VALUE",
|
|
99
99
|
* // 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",
|
|
@@ -152,6 +152,10 @@ declare const GetFunctionConfigurationCommand_base: {
|
|
|
152
152
|
* // },
|
|
153
153
|
* // },
|
|
154
154
|
* // ConfigSha256: "STRING_VALUE",
|
|
155
|
+
* // DurableConfig: { // DurableConfig
|
|
156
|
+
* // RetentionPeriodInDays: Number("int"),
|
|
157
|
+
* // ExecutionTimeout: Number("int"),
|
|
158
|
+
* // },
|
|
155
159
|
* // TenancyConfig: { // TenancyConfig
|
|
156
160
|
* // TenantIsolationMode: "PER_TENANT", // required
|
|
157
161
|
* // },
|
|
@@ -195,6 +199,10 @@ declare const GetFunctionConfigurationCommand_base: {
|
|
|
195
199
|
* CodeSha256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
|
|
196
200
|
* CodeSize: 5797206,
|
|
197
201
|
* Description: "Process image objects from Amazon S3.",
|
|
202
|
+
* DurableConfig: {
|
|
203
|
+
* ExecutionTimeout: 31622400,
|
|
204
|
+
* RetentionPeriodInDays: 30
|
|
205
|
+
* },
|
|
198
206
|
* Environment: {
|
|
199
207
|
* Variables: {
|
|
200
208
|
* BUCKET: "my-bucket-1xpuxmplzrlbh",
|
|
@@ -54,6 +54,7 @@ declare const InvokeCommand_base: {
|
|
|
54
54
|
* InvocationType: "Event" || "RequestResponse" || "DryRun",
|
|
55
55
|
* LogType: "None" || "Tail",
|
|
56
56
|
* ClientContext: "STRING_VALUE",
|
|
57
|
+
* DurableExecutionName: "STRING_VALUE",
|
|
57
58
|
* Payload: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
58
59
|
* Qualifier: "STRING_VALUE",
|
|
59
60
|
* TenantId: "STRING_VALUE",
|
|
@@ -66,6 +67,7 @@ declare const InvokeCommand_base: {
|
|
|
66
67
|
* // LogResult: "STRING_VALUE",
|
|
67
68
|
* // Payload: new Uint8Array(),
|
|
68
69
|
* // ExecutedVersion: "STRING_VALUE",
|
|
70
|
+
* // DurableExecutionArn: "STRING_VALUE",
|
|
69
71
|
* // };
|
|
70
72
|
*
|
|
71
73
|
* ```
|
|
@@ -76,6 +78,9 @@ declare const InvokeCommand_base: {
|
|
|
76
78
|
* @see {@link InvokeCommandOutput} for command's `response` shape.
|
|
77
79
|
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
78
80
|
*
|
|
81
|
+
* @throws {@link DurableExecutionAlreadyStartedException} (client fault)
|
|
82
|
+
* <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>
|
|
83
|
+
*
|
|
79
84
|
* @throws {@link EC2AccessDeniedException} (server fault)
|
|
80
85
|
* <p>Need additional permissions to configure VPC settings.</p>
|
|
81
86
|
*
|
|
@@ -180,7 +185,9 @@ declare const InvokeCommand_base: {
|
|
|
180
185
|
* ```javascript
|
|
181
186
|
* // The following example invokes version 1 of a function named my-function with an empty event payload.
|
|
182
187
|
* const input = {
|
|
188
|
+
* DurableExecutionName: "myExecution",
|
|
183
189
|
* FunctionName: "my-function",
|
|
190
|
+
* InvocationType: "Event",
|
|
184
191
|
* Payload: "{}",
|
|
185
192
|
* Qualifier: "1"
|
|
186
193
|
* };
|
|
@@ -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
|
+
}
|