@aws-sdk/client-sfn 3.216.0 → 3.222.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/dist-cjs/SFN.js +45 -0
- package/dist-cjs/commands/DescribeMapRunCommand.js +46 -0
- package/dist-cjs/commands/ListMapRunsCommand.js +46 -0
- package/dist-cjs/commands/UpdateMapRunCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +99 -17
- package/dist-cjs/pagination/ListMapRunsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +299 -1
- package/dist-es/SFN.js +45 -0
- package/dist-es/commands/DescribeMapRunCommand.js +42 -0
- package/dist-es/commands/ListMapRunsCommand.js +42 -0
- package/dist-es/commands/UpdateMapRunCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +83 -13
- package/dist-es/pagination/ListMapRunsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +293 -2
- package/dist-types/SFN.d.ts +44 -6
- package/dist-types/SFNClient.d.ts +5 -2
- package/dist-types/commands/DeleteStateMachineCommand.d.ts +5 -0
- package/dist-types/commands/DescribeExecutionCommand.d.ts +2 -2
- package/dist-types/commands/DescribeMapRunCommand.d.ts +37 -0
- package/dist-types/commands/DescribeStateMachineCommand.d.ts +4 -1
- package/dist-types/commands/DescribeStateMachineForExecutionCommand.d.ts +1 -1
- package/dist-types/commands/ListExecutionsCommand.d.ts +2 -1
- package/dist-types/commands/ListMapRunsCommand.d.ts +37 -0
- package/dist-types/commands/StartExecutionCommand.d.ts +4 -1
- package/dist-types/commands/UpdateMapRunCommand.d.ts +37 -0
- package/dist-types/commands/UpdateStateMachineCommand.d.ts +5 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +357 -20
- package/dist-types/pagination/ListMapRunsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
- package/dist-types/ts3.4/SFN.d.ts +51 -0
- package/dist-types/ts3.4/SFNClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DescribeMapRunCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListMapRunsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateMapRunCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +139 -7
- package/dist-types/ts3.4/pagination/ListMapRunsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +36 -0
- package/package.json +29 -28
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateMapRunInputFilterSensitiveLog, UpdateMapRunOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0UpdateMapRunCommand, serializeAws_json1_0UpdateMapRunCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
export class UpdateMapRunCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateMapRunCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SFNClient";
|
|
25
|
+
const commandName = "UpdateMapRunCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: UpdateMapRunInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: UpdateMapRunOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_0UpdateMapRunCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_0UpdateMapRunCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -4,12 +4,14 @@ export * from "./DeleteActivityCommand";
|
|
|
4
4
|
export * from "./DeleteStateMachineCommand";
|
|
5
5
|
export * from "./DescribeActivityCommand";
|
|
6
6
|
export * from "./DescribeExecutionCommand";
|
|
7
|
+
export * from "./DescribeMapRunCommand";
|
|
7
8
|
export * from "./DescribeStateMachineCommand";
|
|
8
9
|
export * from "./DescribeStateMachineForExecutionCommand";
|
|
9
10
|
export * from "./GetActivityTaskCommand";
|
|
10
11
|
export * from "./GetExecutionHistoryCommand";
|
|
11
12
|
export * from "./ListActivitiesCommand";
|
|
12
13
|
export * from "./ListExecutionsCommand";
|
|
14
|
+
export * from "./ListMapRunsCommand";
|
|
13
15
|
export * from "./ListStateMachinesCommand";
|
|
14
16
|
export * from "./ListTagsForResourceCommand";
|
|
15
17
|
export * from "./SendTaskFailureCommand";
|
|
@@ -20,4 +22,5 @@ export * from "./StartSyncExecutionCommand";
|
|
|
20
22
|
export * from "./StopExecutionCommand";
|
|
21
23
|
export * from "./TagResourceCommand";
|
|
22
24
|
export * from "./UntagResourceCommand";
|
|
25
|
+
export * from "./UpdateMapRunCommand";
|
|
23
26
|
export * from "./UpdateStateMachineCommand";
|
|
@@ -169,6 +169,25 @@ export class StateMachineTypeNotSupported extends __BaseException {
|
|
|
169
169
|
Object.setPrototypeOf(this, StateMachineTypeNotSupported.prototype);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
+
export var ValidationExceptionReason;
|
|
173
|
+
(function (ValidationExceptionReason) {
|
|
174
|
+
ValidationExceptionReason["API_DOES_NOT_SUPPORT_LABELED_ARNS"] = "API_DOES_NOT_SUPPORT_LABELED_ARNS";
|
|
175
|
+
ValidationExceptionReason["CANNOT_UPDATE_COMPLETED_MAP_RUN"] = "CANNOT_UPDATE_COMPLETED_MAP_RUN";
|
|
176
|
+
ValidationExceptionReason["MISSING_REQUIRED_PARAMETER"] = "MISSING_REQUIRED_PARAMETER";
|
|
177
|
+
})(ValidationExceptionReason || (ValidationExceptionReason = {}));
|
|
178
|
+
export class ValidationException extends __BaseException {
|
|
179
|
+
constructor(opts) {
|
|
180
|
+
super({
|
|
181
|
+
name: "ValidationException",
|
|
182
|
+
$fault: "client",
|
|
183
|
+
...opts,
|
|
184
|
+
});
|
|
185
|
+
this.name = "ValidationException";
|
|
186
|
+
this.$fault = "client";
|
|
187
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
188
|
+
this.reason = opts.reason;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
172
191
|
export var ExecutionStatus;
|
|
173
192
|
(function (ExecutionStatus) {
|
|
174
193
|
ExecutionStatus["ABORTED"] = "ABORTED";
|
|
@@ -189,6 +208,26 @@ export class ExecutionDoesNotExist extends __BaseException {
|
|
|
189
208
|
Object.setPrototypeOf(this, ExecutionDoesNotExist.prototype);
|
|
190
209
|
}
|
|
191
210
|
}
|
|
211
|
+
export var MapRunStatus;
|
|
212
|
+
(function (MapRunStatus) {
|
|
213
|
+
MapRunStatus["ABORTED"] = "ABORTED";
|
|
214
|
+
MapRunStatus["FAILED"] = "FAILED";
|
|
215
|
+
MapRunStatus["RUNNING"] = "RUNNING";
|
|
216
|
+
MapRunStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
217
|
+
})(MapRunStatus || (MapRunStatus = {}));
|
|
218
|
+
export class ResourceNotFound extends __BaseException {
|
|
219
|
+
constructor(opts) {
|
|
220
|
+
super({
|
|
221
|
+
name: "ResourceNotFound",
|
|
222
|
+
$fault: "client",
|
|
223
|
+
...opts,
|
|
224
|
+
});
|
|
225
|
+
this.name = "ResourceNotFound";
|
|
226
|
+
this.$fault = "client";
|
|
227
|
+
Object.setPrototypeOf(this, ResourceNotFound.prototype);
|
|
228
|
+
this.resourceName = opts.resourceName;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
192
231
|
export var StateMachineStatus;
|
|
193
232
|
(function (StateMachineStatus) {
|
|
194
233
|
StateMachineStatus["ACTIVE"] = "ACTIVE";
|
|
@@ -233,6 +272,10 @@ export var HistoryEventType;
|
|
|
233
272
|
HistoryEventType["MapIterationFailed"] = "MapIterationFailed";
|
|
234
273
|
HistoryEventType["MapIterationStarted"] = "MapIterationStarted";
|
|
235
274
|
HistoryEventType["MapIterationSucceeded"] = "MapIterationSucceeded";
|
|
275
|
+
HistoryEventType["MapRunAborted"] = "MapRunAborted";
|
|
276
|
+
HistoryEventType["MapRunFailed"] = "MapRunFailed";
|
|
277
|
+
HistoryEventType["MapRunStarted"] = "MapRunStarted";
|
|
278
|
+
HistoryEventType["MapRunSucceeded"] = "MapRunSucceeded";
|
|
236
279
|
HistoryEventType["MapStateAborted"] = "MapStateAborted";
|
|
237
280
|
HistoryEventType["MapStateEntered"] = "MapStateEntered";
|
|
238
281
|
HistoryEventType["MapStateExited"] = "MapStateExited";
|
|
@@ -276,19 +319,6 @@ export class InvalidToken extends __BaseException {
|
|
|
276
319
|
Object.setPrototypeOf(this, InvalidToken.prototype);
|
|
277
320
|
}
|
|
278
321
|
}
|
|
279
|
-
export class ResourceNotFound extends __BaseException {
|
|
280
|
-
constructor(opts) {
|
|
281
|
-
super({
|
|
282
|
-
name: "ResourceNotFound",
|
|
283
|
-
$fault: "client",
|
|
284
|
-
...opts,
|
|
285
|
-
});
|
|
286
|
-
this.name = "ResourceNotFound";
|
|
287
|
-
this.$fault = "client";
|
|
288
|
-
Object.setPrototypeOf(this, ResourceNotFound.prototype);
|
|
289
|
-
this.resourceName = opts.resourceName;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
322
|
export class TaskDoesNotExist extends __BaseException {
|
|
293
323
|
constructor(opts) {
|
|
294
324
|
super({
|
|
@@ -467,6 +497,20 @@ export const DescribeExecutionOutputFilterSensitiveLog = (obj) => ({
|
|
|
467
497
|
...obj,
|
|
468
498
|
...(obj.input && { input: SENSITIVE_STRING }),
|
|
469
499
|
...(obj.output && { output: SENSITIVE_STRING }),
|
|
500
|
+
...(obj.error && { error: SENSITIVE_STRING }),
|
|
501
|
+
...(obj.cause && { cause: SENSITIVE_STRING }),
|
|
502
|
+
});
|
|
503
|
+
export const DescribeMapRunInputFilterSensitiveLog = (obj) => ({
|
|
504
|
+
...obj,
|
|
505
|
+
});
|
|
506
|
+
export const MapRunExecutionCountsFilterSensitiveLog = (obj) => ({
|
|
507
|
+
...obj,
|
|
508
|
+
});
|
|
509
|
+
export const MapRunItemCountsFilterSensitiveLog = (obj) => ({
|
|
510
|
+
...obj,
|
|
511
|
+
});
|
|
512
|
+
export const DescribeMapRunOutputFilterSensitiveLog = (obj) => ({
|
|
513
|
+
...obj,
|
|
470
514
|
});
|
|
471
515
|
export const DescribeStateMachineInputFilterSensitiveLog = (obj) => ({
|
|
472
516
|
...obj,
|
|
@@ -549,6 +593,14 @@ export const LambdaFunctionTimedOutEventDetailsFilterSensitiveLog = (obj) => ({
|
|
|
549
593
|
export const MapIterationEventDetailsFilterSensitiveLog = (obj) => ({
|
|
550
594
|
...obj,
|
|
551
595
|
});
|
|
596
|
+
export const MapRunFailedEventDetailsFilterSensitiveLog = (obj) => ({
|
|
597
|
+
...obj,
|
|
598
|
+
...(obj.error && { error: SENSITIVE_STRING }),
|
|
599
|
+
...(obj.cause && { cause: SENSITIVE_STRING }),
|
|
600
|
+
});
|
|
601
|
+
export const MapRunStartedEventDetailsFilterSensitiveLog = (obj) => ({
|
|
602
|
+
...obj,
|
|
603
|
+
});
|
|
552
604
|
export const MapStateStartedEventDetailsFilterSensitiveLog = (obj) => ({
|
|
553
605
|
...obj,
|
|
554
606
|
});
|
|
@@ -672,6 +724,9 @@ export const HistoryEventFilterSensitiveLog = (obj) => ({
|
|
|
672
724
|
...(obj.stateExitedEventDetails && {
|
|
673
725
|
stateExitedEventDetails: StateExitedEventDetailsFilterSensitiveLog(obj.stateExitedEventDetails),
|
|
674
726
|
}),
|
|
727
|
+
...(obj.mapRunFailedEventDetails && {
|
|
728
|
+
mapRunFailedEventDetails: MapRunFailedEventDetailsFilterSensitiveLog(obj.mapRunFailedEventDetails),
|
|
729
|
+
}),
|
|
675
730
|
});
|
|
676
731
|
export const GetExecutionHistoryOutputFilterSensitiveLog = (obj) => ({
|
|
677
732
|
...obj,
|
|
@@ -692,6 +747,15 @@ export const ExecutionListItemFilterSensitiveLog = (obj) => ({
|
|
|
692
747
|
export const ListExecutionsOutputFilterSensitiveLog = (obj) => ({
|
|
693
748
|
...obj,
|
|
694
749
|
});
|
|
750
|
+
export const ListMapRunsInputFilterSensitiveLog = (obj) => ({
|
|
751
|
+
...obj,
|
|
752
|
+
});
|
|
753
|
+
export const MapRunListItemFilterSensitiveLog = (obj) => ({
|
|
754
|
+
...obj,
|
|
755
|
+
});
|
|
756
|
+
export const ListMapRunsOutputFilterSensitiveLog = (obj) => ({
|
|
757
|
+
...obj,
|
|
758
|
+
});
|
|
695
759
|
export const ListStateMachinesInputFilterSensitiveLog = (obj) => ({
|
|
696
760
|
...obj,
|
|
697
761
|
});
|
|
@@ -769,6 +833,12 @@ export const UntagResourceInputFilterSensitiveLog = (obj) => ({
|
|
|
769
833
|
export const UntagResourceOutputFilterSensitiveLog = (obj) => ({
|
|
770
834
|
...obj,
|
|
771
835
|
});
|
|
836
|
+
export const UpdateMapRunInputFilterSensitiveLog = (obj) => ({
|
|
837
|
+
...obj,
|
|
838
|
+
});
|
|
839
|
+
export const UpdateMapRunOutputFilterSensitiveLog = (obj) => ({
|
|
840
|
+
...obj,
|
|
841
|
+
});
|
|
772
842
|
export const UpdateStateMachineInputFilterSensitiveLog = (obj) => ({
|
|
773
843
|
...obj,
|
|
774
844
|
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListMapRunsCommand } from "../commands/ListMapRunsCommand";
|
|
2
|
+
import { SFN } from "../SFN";
|
|
3
|
+
import { SFNClient } from "../SFNClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListMapRunsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listMapRuns(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListMapRuns(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof SFN) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof SFNClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected SFN | SFNClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|