@aws-sdk/client-sfn 3.218.0 → 3.223.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 (50) hide show
  1. package/dist-cjs/SFN.js +45 -0
  2. package/dist-cjs/commands/DescribeMapRunCommand.js +46 -0
  3. package/dist-cjs/commands/ListMapRunsCommand.js +46 -0
  4. package/dist-cjs/commands/UpdateMapRunCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/endpoint/ruleset.js +1 -1
  7. package/dist-cjs/models/models_0.js +99 -17
  8. package/dist-cjs/pagination/ListMapRunsPaginator.js +36 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_json1_0.js +299 -1
  11. package/dist-es/SFN.js +45 -0
  12. package/dist-es/commands/DescribeMapRunCommand.js +42 -0
  13. package/dist-es/commands/ListMapRunsCommand.js +42 -0
  14. package/dist-es/commands/UpdateMapRunCommand.js +42 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/endpoint/ruleset.js +1 -1
  17. package/dist-es/models/models_0.js +83 -13
  18. package/dist-es/pagination/ListMapRunsPaginator.js +32 -0
  19. package/dist-es/pagination/index.js +1 -0
  20. package/dist-es/protocols/Aws_json1_0.js +293 -2
  21. package/dist-types/SFN.d.ts +44 -6
  22. package/dist-types/SFNClient.d.ts +5 -2
  23. package/dist-types/commands/DeleteStateMachineCommand.d.ts +5 -0
  24. package/dist-types/commands/DescribeExecutionCommand.d.ts +2 -2
  25. package/dist-types/commands/DescribeMapRunCommand.d.ts +37 -0
  26. package/dist-types/commands/DescribeStateMachineCommand.d.ts +4 -1
  27. package/dist-types/commands/DescribeStateMachineForExecutionCommand.d.ts +1 -1
  28. package/dist-types/commands/ListExecutionsCommand.d.ts +2 -1
  29. package/dist-types/commands/ListMapRunsCommand.d.ts +37 -0
  30. package/dist-types/commands/StartExecutionCommand.d.ts +4 -1
  31. package/dist-types/commands/UpdateMapRunCommand.d.ts +37 -0
  32. package/dist-types/commands/UpdateStateMachineCommand.d.ts +5 -0
  33. package/dist-types/commands/index.d.ts +3 -0
  34. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  35. package/dist-types/models/models_0.d.ts +357 -20
  36. package/dist-types/pagination/ListMapRunsPaginator.d.ts +4 -0
  37. package/dist-types/pagination/index.d.ts +1 -0
  38. package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
  39. package/dist-types/ts3.4/SFN.d.ts +51 -0
  40. package/dist-types/ts3.4/SFNClient.d.ts +18 -0
  41. package/dist-types/ts3.4/commands/DescribeMapRunCommand.d.ts +34 -0
  42. package/dist-types/ts3.4/commands/ListMapRunsCommand.d.ts +34 -0
  43. package/dist-types/ts3.4/commands/UpdateMapRunCommand.d.ts +34 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  45. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  46. package/dist-types/ts3.4/models/models_0.d.ts +139 -7
  47. package/dist-types/ts3.4/pagination/ListMapRunsPaginator.d.ts +11 -0
  48. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  49. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +36 -0
  50. package/package.json +28 -28
package/dist-cjs/SFN.js CHANGED
@@ -7,12 +7,14 @@ const DeleteActivityCommand_1 = require("./commands/DeleteActivityCommand");
7
7
  const DeleteStateMachineCommand_1 = require("./commands/DeleteStateMachineCommand");
8
8
  const DescribeActivityCommand_1 = require("./commands/DescribeActivityCommand");
9
9
  const DescribeExecutionCommand_1 = require("./commands/DescribeExecutionCommand");
10
+ const DescribeMapRunCommand_1 = require("./commands/DescribeMapRunCommand");
10
11
  const DescribeStateMachineCommand_1 = require("./commands/DescribeStateMachineCommand");
11
12
  const DescribeStateMachineForExecutionCommand_1 = require("./commands/DescribeStateMachineForExecutionCommand");
12
13
  const GetActivityTaskCommand_1 = require("./commands/GetActivityTaskCommand");
13
14
  const GetExecutionHistoryCommand_1 = require("./commands/GetExecutionHistoryCommand");
14
15
  const ListActivitiesCommand_1 = require("./commands/ListActivitiesCommand");
15
16
  const ListExecutionsCommand_1 = require("./commands/ListExecutionsCommand");
17
+ const ListMapRunsCommand_1 = require("./commands/ListMapRunsCommand");
16
18
  const ListStateMachinesCommand_1 = require("./commands/ListStateMachinesCommand");
17
19
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
18
20
  const SendTaskFailureCommand_1 = require("./commands/SendTaskFailureCommand");
@@ -23,6 +25,7 @@ const StartSyncExecutionCommand_1 = require("./commands/StartSyncExecutionComman
23
25
  const StopExecutionCommand_1 = require("./commands/StopExecutionCommand");
24
26
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
25
27
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
28
+ const UpdateMapRunCommand_1 = require("./commands/UpdateMapRunCommand");
26
29
  const UpdateStateMachineCommand_1 = require("./commands/UpdateStateMachineCommand");
27
30
  const SFNClient_1 = require("./SFNClient");
28
31
  class SFN extends SFNClient_1.SFNClient {
@@ -110,6 +113,20 @@ class SFN extends SFNClient_1.SFNClient {
110
113
  return this.send(command, optionsOrCb);
111
114
  }
112
115
  }
116
+ describeMapRun(args, optionsOrCb, cb) {
117
+ const command = new DescribeMapRunCommand_1.DescribeMapRunCommand(args);
118
+ if (typeof optionsOrCb === "function") {
119
+ this.send(command, optionsOrCb);
120
+ }
121
+ else if (typeof cb === "function") {
122
+ if (typeof optionsOrCb !== "object")
123
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
+ this.send(command, optionsOrCb || {}, cb);
125
+ }
126
+ else {
127
+ return this.send(command, optionsOrCb);
128
+ }
129
+ }
113
130
  describeStateMachine(args, optionsOrCb, cb) {
114
131
  const command = new DescribeStateMachineCommand_1.DescribeStateMachineCommand(args);
115
132
  if (typeof optionsOrCb === "function") {
@@ -194,6 +211,20 @@ class SFN extends SFNClient_1.SFNClient {
194
211
  return this.send(command, optionsOrCb);
195
212
  }
196
213
  }
214
+ listMapRuns(args, optionsOrCb, cb) {
215
+ const command = new ListMapRunsCommand_1.ListMapRunsCommand(args);
216
+ if (typeof optionsOrCb === "function") {
217
+ this.send(command, optionsOrCb);
218
+ }
219
+ else if (typeof cb === "function") {
220
+ if (typeof optionsOrCb !== "object")
221
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
+ this.send(command, optionsOrCb || {}, cb);
223
+ }
224
+ else {
225
+ return this.send(command, optionsOrCb);
226
+ }
227
+ }
197
228
  listStateMachines(args, optionsOrCb, cb) {
198
229
  const command = new ListStateMachinesCommand_1.ListStateMachinesCommand(args);
199
230
  if (typeof optionsOrCb === "function") {
@@ -334,6 +365,20 @@ class SFN extends SFNClient_1.SFNClient {
334
365
  return this.send(command, optionsOrCb);
335
366
  }
336
367
  }
368
+ updateMapRun(args, optionsOrCb, cb) {
369
+ const command = new UpdateMapRunCommand_1.UpdateMapRunCommand(args);
370
+ if (typeof optionsOrCb === "function") {
371
+ this.send(command, optionsOrCb);
372
+ }
373
+ else if (typeof cb === "function") {
374
+ if (typeof optionsOrCb !== "object")
375
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
+ this.send(command, optionsOrCb || {}, cb);
377
+ }
378
+ else {
379
+ return this.send(command, optionsOrCb);
380
+ }
381
+ }
337
382
  updateStateMachine(args, optionsOrCb, cb) {
338
383
  const command = new UpdateStateMachineCommand_1.UpdateStateMachineCommand(args);
339
384
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeMapRunCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class DescribeMapRunCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeMapRunCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SFNClient";
28
+ const commandName = "DescribeMapRunCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.DescribeMapRunInputFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.DescribeMapRunOutputFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_0_1.serializeAws_json1_0DescribeMapRunCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeMapRunCommand)(output, context);
44
+ }
45
+ }
46
+ exports.DescribeMapRunCommand = DescribeMapRunCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListMapRunsCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class ListMapRunsCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListMapRunsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SFNClient";
28
+ const commandName = "ListMapRunsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.ListMapRunsInputFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.ListMapRunsOutputFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_0_1.serializeAws_json1_0ListMapRunsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0ListMapRunsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListMapRunsCommand = ListMapRunsCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateMapRunCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class UpdateMapRunCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateMapRunCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SFNClient";
28
+ const commandName = "UpdateMapRunCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.UpdateMapRunInputFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.UpdateMapRunOutputFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_0_1.serializeAws_json1_0UpdateMapRunCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateMapRunCommand)(output, context);
44
+ }
45
+ }
46
+ exports.UpdateMapRunCommand = UpdateMapRunCommand;
@@ -7,12 +7,14 @@ tslib_1.__exportStar(require("./DeleteActivityCommand"), exports);
7
7
  tslib_1.__exportStar(require("./DeleteStateMachineCommand"), exports);
8
8
  tslib_1.__exportStar(require("./DescribeActivityCommand"), exports);
9
9
  tslib_1.__exportStar(require("./DescribeExecutionCommand"), exports);
10
+ tslib_1.__exportStar(require("./DescribeMapRunCommand"), exports);
10
11
  tslib_1.__exportStar(require("./DescribeStateMachineCommand"), exports);
11
12
  tslib_1.__exportStar(require("./DescribeStateMachineForExecutionCommand"), exports);
12
13
  tslib_1.__exportStar(require("./GetActivityTaskCommand"), exports);
13
14
  tslib_1.__exportStar(require("./GetExecutionHistoryCommand"), exports);
14
15
  tslib_1.__exportStar(require("./ListActivitiesCommand"), exports);
15
16
  tslib_1.__exportStar(require("./ListExecutionsCommand"), exports);
17
+ tslib_1.__exportStar(require("./ListMapRunsCommand"), exports);
16
18
  tslib_1.__exportStar(require("./ListStateMachinesCommand"), exports);
17
19
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
18
20
  tslib_1.__exportStar(require("./SendTaskFailureCommand"), exports);
@@ -23,4 +25,5 @@ tslib_1.__exportStar(require("./StartSyncExecutionCommand"), exports);
23
25
  tslib_1.__exportStar(require("./StopExecutionCommand"), exports);
24
26
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
25
27
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
28
+ tslib_1.__exportStar(require("./UpdateMapRunCommand"), exports);
26
29
  tslib_1.__exportStar(require("./UpdateStateMachineCommand"), exports);
@@ -6,7 +6,7 @@ exports.ruleSet = {
6
6
  parameters: {
7
7
  Region: {
8
8
  builtIn: "AWS::Region",
9
- required: false,
9
+ required: true,
10
10
  documentation: "The AWS region used to dispatch the request.",
11
11
  type: "String",
12
12
  },
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteStateMachineInputFilterSensitiveLog = exports.DeleteActivityOutputFilterSensitiveLog = exports.DeleteActivityInputFilterSensitiveLog = exports.CreateStateMachineOutputFilterSensitiveLog = exports.CreateStateMachineInputFilterSensitiveLog = exports.TracingConfigurationFilterSensitiveLog = exports.LoggingConfigurationFilterSensitiveLog = exports.LogDestinationFilterSensitiveLog = exports.CloudWatchLogsLogGroupFilterSensitiveLog = exports.CreateActivityOutputFilterSensitiveLog = exports.CreateActivityInputFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.ActivityTimedOutEventDetailsFilterSensitiveLog = exports.ActivitySucceededEventDetailsFilterSensitiveLog = exports.ActivityStartedEventDetailsFilterSensitiveLog = exports.ActivityScheduleFailedEventDetailsFilterSensitiveLog = exports.ActivityScheduledEventDetailsFilterSensitiveLog = exports.HistoryEventExecutionDataDetailsFilterSensitiveLog = exports.ActivityListItemFilterSensitiveLog = exports.ActivityFailedEventDetailsFilterSensitiveLog = exports.MissingRequiredParameter = exports.SyncExecutionStatus = exports.InvalidExecutionInput = exports.ExecutionLimitExceeded = exports.ExecutionAlreadyExists = exports.InvalidOutput = exports.TaskTimedOut = exports.TaskDoesNotExist = exports.ResourceNotFound = exports.InvalidToken = exports.HistoryEventType = exports.StateMachineDoesNotExist = exports.StateMachineStatus = exports.ExecutionDoesNotExist = exports.ExecutionStatus = exports.StateMachineTypeNotSupported = exports.StateMachineLimitExceeded = exports.StateMachineDeleting = exports.StateMachineAlreadyExists = exports.InvalidTracingConfiguration = exports.InvalidLoggingConfiguration = exports.InvalidDefinition = exports.InvalidArn = exports.StateMachineType = exports.LogLevel = exports.TooManyTags = exports.InvalidName = exports.ActivityWorkerLimitExceeded = exports.ActivityLimitExceeded = exports.ActivityDoesNotExist = void 0;
4
- exports.SendTaskFailureInputFilterSensitiveLog = exports.ListTagsForResourceOutputFilterSensitiveLog = exports.ListTagsForResourceInputFilterSensitiveLog = exports.ListStateMachinesOutputFilterSensitiveLog = exports.StateMachineListItemFilterSensitiveLog = exports.ListStateMachinesInputFilterSensitiveLog = exports.ListExecutionsOutputFilterSensitiveLog = exports.ExecutionListItemFilterSensitiveLog = exports.ListExecutionsInputFilterSensitiveLog = exports.ListActivitiesOutputFilterSensitiveLog = exports.ListActivitiesInputFilterSensitiveLog = exports.GetExecutionHistoryOutputFilterSensitiveLog = exports.HistoryEventFilterSensitiveLog = exports.TaskTimedOutEventDetailsFilterSensitiveLog = exports.TaskSucceededEventDetailsFilterSensitiveLog = exports.TaskSubmittedEventDetailsFilterSensitiveLog = exports.TaskSubmitFailedEventDetailsFilterSensitiveLog = exports.TaskStartFailedEventDetailsFilterSensitiveLog = exports.TaskStartedEventDetailsFilterSensitiveLog = exports.TaskScheduledEventDetailsFilterSensitiveLog = exports.TaskFailedEventDetailsFilterSensitiveLog = exports.StateExitedEventDetailsFilterSensitiveLog = exports.StateEnteredEventDetailsFilterSensitiveLog = exports.MapStateStartedEventDetailsFilterSensitiveLog = exports.MapIterationEventDetailsFilterSensitiveLog = exports.LambdaFunctionTimedOutEventDetailsFilterSensitiveLog = exports.LambdaFunctionSucceededEventDetailsFilterSensitiveLog = exports.LambdaFunctionStartFailedEventDetailsFilterSensitiveLog = exports.LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog = exports.LambdaFunctionScheduledEventDetailsFilterSensitiveLog = exports.TaskCredentialsFilterSensitiveLog = exports.LambdaFunctionFailedEventDetailsFilterSensitiveLog = exports.ExecutionTimedOutEventDetailsFilterSensitiveLog = exports.ExecutionSucceededEventDetailsFilterSensitiveLog = exports.ExecutionStartedEventDetailsFilterSensitiveLog = exports.ExecutionFailedEventDetailsFilterSensitiveLog = exports.ExecutionAbortedEventDetailsFilterSensitiveLog = exports.GetExecutionHistoryInputFilterSensitiveLog = exports.GetActivityTaskOutputFilterSensitiveLog = exports.GetActivityTaskInputFilterSensitiveLog = exports.DescribeStateMachineForExecutionOutputFilterSensitiveLog = exports.DescribeStateMachineForExecutionInputFilterSensitiveLog = exports.DescribeStateMachineOutputFilterSensitiveLog = exports.DescribeStateMachineInputFilterSensitiveLog = exports.DescribeExecutionOutputFilterSensitiveLog = exports.CloudWatchEventsExecutionDataDetailsFilterSensitiveLog = exports.DescribeExecutionInputFilterSensitiveLog = exports.DescribeActivityOutputFilterSensitiveLog = exports.DescribeActivityInputFilterSensitiveLog = exports.DeleteStateMachineOutputFilterSensitiveLog = void 0;
5
- exports.UpdateStateMachineOutputFilterSensitiveLog = exports.UpdateStateMachineInputFilterSensitiveLog = exports.UntagResourceOutputFilterSensitiveLog = exports.UntagResourceInputFilterSensitiveLog = exports.TagResourceOutputFilterSensitiveLog = exports.TagResourceInputFilterSensitiveLog = exports.StopExecutionOutputFilterSensitiveLog = exports.StopExecutionInputFilterSensitiveLog = exports.StartSyncExecutionOutputFilterSensitiveLog = exports.BillingDetailsFilterSensitiveLog = exports.StartSyncExecutionInputFilterSensitiveLog = exports.StartExecutionOutputFilterSensitiveLog = exports.StartExecutionInputFilterSensitiveLog = exports.SendTaskSuccessOutputFilterSensitiveLog = exports.SendTaskSuccessInputFilterSensitiveLog = exports.SendTaskHeartbeatOutputFilterSensitiveLog = exports.SendTaskHeartbeatInputFilterSensitiveLog = exports.SendTaskFailureOutputFilterSensitiveLog = void 0;
3
+ exports.CreateStateMachineOutputFilterSensitiveLog = exports.CreateStateMachineInputFilterSensitiveLog = exports.TracingConfigurationFilterSensitiveLog = exports.LoggingConfigurationFilterSensitiveLog = exports.LogDestinationFilterSensitiveLog = exports.CloudWatchLogsLogGroupFilterSensitiveLog = exports.CreateActivityOutputFilterSensitiveLog = exports.CreateActivityInputFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.ActivityTimedOutEventDetailsFilterSensitiveLog = exports.ActivitySucceededEventDetailsFilterSensitiveLog = exports.ActivityStartedEventDetailsFilterSensitiveLog = exports.ActivityScheduleFailedEventDetailsFilterSensitiveLog = exports.ActivityScheduledEventDetailsFilterSensitiveLog = exports.HistoryEventExecutionDataDetailsFilterSensitiveLog = exports.ActivityListItemFilterSensitiveLog = exports.ActivityFailedEventDetailsFilterSensitiveLog = exports.MissingRequiredParameter = exports.SyncExecutionStatus = exports.InvalidExecutionInput = exports.ExecutionLimitExceeded = exports.ExecutionAlreadyExists = exports.InvalidOutput = exports.TaskTimedOut = exports.TaskDoesNotExist = exports.InvalidToken = exports.HistoryEventType = exports.StateMachineDoesNotExist = exports.StateMachineStatus = exports.ResourceNotFound = exports.MapRunStatus = exports.ExecutionDoesNotExist = exports.ExecutionStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.StateMachineTypeNotSupported = exports.StateMachineLimitExceeded = exports.StateMachineDeleting = exports.StateMachineAlreadyExists = exports.InvalidTracingConfiguration = exports.InvalidLoggingConfiguration = exports.InvalidDefinition = exports.InvalidArn = exports.StateMachineType = exports.LogLevel = exports.TooManyTags = exports.InvalidName = exports.ActivityWorkerLimitExceeded = exports.ActivityLimitExceeded = exports.ActivityDoesNotExist = void 0;
4
+ exports.ListActivitiesOutputFilterSensitiveLog = exports.ListActivitiesInputFilterSensitiveLog = exports.GetExecutionHistoryOutputFilterSensitiveLog = exports.HistoryEventFilterSensitiveLog = exports.TaskTimedOutEventDetailsFilterSensitiveLog = exports.TaskSucceededEventDetailsFilterSensitiveLog = exports.TaskSubmittedEventDetailsFilterSensitiveLog = exports.TaskSubmitFailedEventDetailsFilterSensitiveLog = exports.TaskStartFailedEventDetailsFilterSensitiveLog = exports.TaskStartedEventDetailsFilterSensitiveLog = exports.TaskScheduledEventDetailsFilterSensitiveLog = exports.TaskFailedEventDetailsFilterSensitiveLog = exports.StateExitedEventDetailsFilterSensitiveLog = exports.StateEnteredEventDetailsFilterSensitiveLog = exports.MapStateStartedEventDetailsFilterSensitiveLog = exports.MapRunStartedEventDetailsFilterSensitiveLog = exports.MapRunFailedEventDetailsFilterSensitiveLog = exports.MapIterationEventDetailsFilterSensitiveLog = exports.LambdaFunctionTimedOutEventDetailsFilterSensitiveLog = exports.LambdaFunctionSucceededEventDetailsFilterSensitiveLog = exports.LambdaFunctionStartFailedEventDetailsFilterSensitiveLog = exports.LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog = exports.LambdaFunctionScheduledEventDetailsFilterSensitiveLog = exports.TaskCredentialsFilterSensitiveLog = exports.LambdaFunctionFailedEventDetailsFilterSensitiveLog = exports.ExecutionTimedOutEventDetailsFilterSensitiveLog = exports.ExecutionSucceededEventDetailsFilterSensitiveLog = exports.ExecutionStartedEventDetailsFilterSensitiveLog = exports.ExecutionFailedEventDetailsFilterSensitiveLog = exports.ExecutionAbortedEventDetailsFilterSensitiveLog = exports.GetExecutionHistoryInputFilterSensitiveLog = exports.GetActivityTaskOutputFilterSensitiveLog = exports.GetActivityTaskInputFilterSensitiveLog = exports.DescribeStateMachineForExecutionOutputFilterSensitiveLog = exports.DescribeStateMachineForExecutionInputFilterSensitiveLog = exports.DescribeStateMachineOutputFilterSensitiveLog = exports.DescribeStateMachineInputFilterSensitiveLog = exports.DescribeMapRunOutputFilterSensitiveLog = exports.MapRunItemCountsFilterSensitiveLog = exports.MapRunExecutionCountsFilterSensitiveLog = exports.DescribeMapRunInputFilterSensitiveLog = exports.DescribeExecutionOutputFilterSensitiveLog = exports.CloudWatchEventsExecutionDataDetailsFilterSensitiveLog = exports.DescribeExecutionInputFilterSensitiveLog = exports.DescribeActivityOutputFilterSensitiveLog = exports.DescribeActivityInputFilterSensitiveLog = exports.DeleteStateMachineOutputFilterSensitiveLog = exports.DeleteStateMachineInputFilterSensitiveLog = exports.DeleteActivityOutputFilterSensitiveLog = exports.DeleteActivityInputFilterSensitiveLog = void 0;
5
+ exports.UpdateStateMachineOutputFilterSensitiveLog = exports.UpdateStateMachineInputFilterSensitiveLog = exports.UpdateMapRunOutputFilterSensitiveLog = exports.UpdateMapRunInputFilterSensitiveLog = exports.UntagResourceOutputFilterSensitiveLog = exports.UntagResourceInputFilterSensitiveLog = exports.TagResourceOutputFilterSensitiveLog = exports.TagResourceInputFilterSensitiveLog = exports.StopExecutionOutputFilterSensitiveLog = exports.StopExecutionInputFilterSensitiveLog = exports.StartSyncExecutionOutputFilterSensitiveLog = exports.BillingDetailsFilterSensitiveLog = exports.StartSyncExecutionInputFilterSensitiveLog = exports.StartExecutionOutputFilterSensitiveLog = exports.StartExecutionInputFilterSensitiveLog = exports.SendTaskSuccessOutputFilterSensitiveLog = exports.SendTaskSuccessInputFilterSensitiveLog = exports.SendTaskHeartbeatOutputFilterSensitiveLog = exports.SendTaskHeartbeatInputFilterSensitiveLog = exports.SendTaskFailureOutputFilterSensitiveLog = exports.SendTaskFailureInputFilterSensitiveLog = exports.ListTagsForResourceOutputFilterSensitiveLog = exports.ListTagsForResourceInputFilterSensitiveLog = exports.ListStateMachinesOutputFilterSensitiveLog = exports.StateMachineListItemFilterSensitiveLog = exports.ListStateMachinesInputFilterSensitiveLog = exports.ListMapRunsOutputFilterSensitiveLog = exports.MapRunListItemFilterSensitiveLog = exports.ListMapRunsInputFilterSensitiveLog = exports.ListExecutionsOutputFilterSensitiveLog = exports.ExecutionListItemFilterSensitiveLog = exports.ListExecutionsInputFilterSensitiveLog = void 0;
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const SFNServiceException_1 = require("./SFNServiceException");
8
8
  class ActivityDoesNotExist extends SFNServiceException_1.SFNServiceException {
@@ -187,6 +187,26 @@ class StateMachineTypeNotSupported extends SFNServiceException_1.SFNServiceExcep
187
187
  }
188
188
  }
189
189
  exports.StateMachineTypeNotSupported = StateMachineTypeNotSupported;
190
+ var ValidationExceptionReason;
191
+ (function (ValidationExceptionReason) {
192
+ ValidationExceptionReason["API_DOES_NOT_SUPPORT_LABELED_ARNS"] = "API_DOES_NOT_SUPPORT_LABELED_ARNS";
193
+ ValidationExceptionReason["CANNOT_UPDATE_COMPLETED_MAP_RUN"] = "CANNOT_UPDATE_COMPLETED_MAP_RUN";
194
+ ValidationExceptionReason["MISSING_REQUIRED_PARAMETER"] = "MISSING_REQUIRED_PARAMETER";
195
+ })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
196
+ class ValidationException extends SFNServiceException_1.SFNServiceException {
197
+ constructor(opts) {
198
+ super({
199
+ name: "ValidationException",
200
+ $fault: "client",
201
+ ...opts,
202
+ });
203
+ this.name = "ValidationException";
204
+ this.$fault = "client";
205
+ Object.setPrototypeOf(this, ValidationException.prototype);
206
+ this.reason = opts.reason;
207
+ }
208
+ }
209
+ exports.ValidationException = ValidationException;
190
210
  var ExecutionStatus;
191
211
  (function (ExecutionStatus) {
192
212
  ExecutionStatus["ABORTED"] = "ABORTED";
@@ -208,6 +228,27 @@ class ExecutionDoesNotExist extends SFNServiceException_1.SFNServiceException {
208
228
  }
209
229
  }
210
230
  exports.ExecutionDoesNotExist = ExecutionDoesNotExist;
231
+ var MapRunStatus;
232
+ (function (MapRunStatus) {
233
+ MapRunStatus["ABORTED"] = "ABORTED";
234
+ MapRunStatus["FAILED"] = "FAILED";
235
+ MapRunStatus["RUNNING"] = "RUNNING";
236
+ MapRunStatus["SUCCEEDED"] = "SUCCEEDED";
237
+ })(MapRunStatus = exports.MapRunStatus || (exports.MapRunStatus = {}));
238
+ class ResourceNotFound extends SFNServiceException_1.SFNServiceException {
239
+ constructor(opts) {
240
+ super({
241
+ name: "ResourceNotFound",
242
+ $fault: "client",
243
+ ...opts,
244
+ });
245
+ this.name = "ResourceNotFound";
246
+ this.$fault = "client";
247
+ Object.setPrototypeOf(this, ResourceNotFound.prototype);
248
+ this.resourceName = opts.resourceName;
249
+ }
250
+ }
251
+ exports.ResourceNotFound = ResourceNotFound;
211
252
  var StateMachineStatus;
212
253
  (function (StateMachineStatus) {
213
254
  StateMachineStatus["ACTIVE"] = "ACTIVE";
@@ -253,6 +294,10 @@ var HistoryEventType;
253
294
  HistoryEventType["MapIterationFailed"] = "MapIterationFailed";
254
295
  HistoryEventType["MapIterationStarted"] = "MapIterationStarted";
255
296
  HistoryEventType["MapIterationSucceeded"] = "MapIterationSucceeded";
297
+ HistoryEventType["MapRunAborted"] = "MapRunAborted";
298
+ HistoryEventType["MapRunFailed"] = "MapRunFailed";
299
+ HistoryEventType["MapRunStarted"] = "MapRunStarted";
300
+ HistoryEventType["MapRunSucceeded"] = "MapRunSucceeded";
256
301
  HistoryEventType["MapStateAborted"] = "MapStateAborted";
257
302
  HistoryEventType["MapStateEntered"] = "MapStateEntered";
258
303
  HistoryEventType["MapStateExited"] = "MapStateExited";
@@ -297,20 +342,6 @@ class InvalidToken extends SFNServiceException_1.SFNServiceException {
297
342
  }
298
343
  }
299
344
  exports.InvalidToken = InvalidToken;
300
- class ResourceNotFound extends SFNServiceException_1.SFNServiceException {
301
- constructor(opts) {
302
- super({
303
- name: "ResourceNotFound",
304
- $fault: "client",
305
- ...opts,
306
- });
307
- this.name = "ResourceNotFound";
308
- this.$fault = "client";
309
- Object.setPrototypeOf(this, ResourceNotFound.prototype);
310
- this.resourceName = opts.resourceName;
311
- }
312
- }
313
- exports.ResourceNotFound = ResourceNotFound;
314
345
  class TaskDoesNotExist extends SFNServiceException_1.SFNServiceException {
315
346
  constructor(opts) {
316
347
  super({
@@ -521,8 +552,26 @@ const DescribeExecutionOutputFilterSensitiveLog = (obj) => ({
521
552
  ...obj,
522
553
  ...(obj.input && { input: smithy_client_1.SENSITIVE_STRING }),
523
554
  ...(obj.output && { output: smithy_client_1.SENSITIVE_STRING }),
555
+ ...(obj.error && { error: smithy_client_1.SENSITIVE_STRING }),
556
+ ...(obj.cause && { cause: smithy_client_1.SENSITIVE_STRING }),
524
557
  });
525
558
  exports.DescribeExecutionOutputFilterSensitiveLog = DescribeExecutionOutputFilterSensitiveLog;
559
+ const DescribeMapRunInputFilterSensitiveLog = (obj) => ({
560
+ ...obj,
561
+ });
562
+ exports.DescribeMapRunInputFilterSensitiveLog = DescribeMapRunInputFilterSensitiveLog;
563
+ const MapRunExecutionCountsFilterSensitiveLog = (obj) => ({
564
+ ...obj,
565
+ });
566
+ exports.MapRunExecutionCountsFilterSensitiveLog = MapRunExecutionCountsFilterSensitiveLog;
567
+ const MapRunItemCountsFilterSensitiveLog = (obj) => ({
568
+ ...obj,
569
+ });
570
+ exports.MapRunItemCountsFilterSensitiveLog = MapRunItemCountsFilterSensitiveLog;
571
+ const DescribeMapRunOutputFilterSensitiveLog = (obj) => ({
572
+ ...obj,
573
+ });
574
+ exports.DescribeMapRunOutputFilterSensitiveLog = DescribeMapRunOutputFilterSensitiveLog;
526
575
  const DescribeStateMachineInputFilterSensitiveLog = (obj) => ({
527
576
  ...obj,
528
577
  });
@@ -624,6 +673,16 @@ const MapIterationEventDetailsFilterSensitiveLog = (obj) => ({
624
673
  ...obj,
625
674
  });
626
675
  exports.MapIterationEventDetailsFilterSensitiveLog = MapIterationEventDetailsFilterSensitiveLog;
676
+ const MapRunFailedEventDetailsFilterSensitiveLog = (obj) => ({
677
+ ...obj,
678
+ ...(obj.error && { error: smithy_client_1.SENSITIVE_STRING }),
679
+ ...(obj.cause && { cause: smithy_client_1.SENSITIVE_STRING }),
680
+ });
681
+ exports.MapRunFailedEventDetailsFilterSensitiveLog = MapRunFailedEventDetailsFilterSensitiveLog;
682
+ const MapRunStartedEventDetailsFilterSensitiveLog = (obj) => ({
683
+ ...obj,
684
+ });
685
+ exports.MapRunStartedEventDetailsFilterSensitiveLog = MapRunStartedEventDetailsFilterSensitiveLog;
627
686
  const MapStateStartedEventDetailsFilterSensitiveLog = (obj) => ({
628
687
  ...obj,
629
688
  });
@@ -758,6 +817,9 @@ const HistoryEventFilterSensitiveLog = (obj) => ({
758
817
  ...(obj.stateExitedEventDetails && {
759
818
  stateExitedEventDetails: (0, exports.StateExitedEventDetailsFilterSensitiveLog)(obj.stateExitedEventDetails),
760
819
  }),
820
+ ...(obj.mapRunFailedEventDetails && {
821
+ mapRunFailedEventDetails: (0, exports.MapRunFailedEventDetailsFilterSensitiveLog)(obj.mapRunFailedEventDetails),
822
+ }),
761
823
  });
762
824
  exports.HistoryEventFilterSensitiveLog = HistoryEventFilterSensitiveLog;
763
825
  const GetExecutionHistoryOutputFilterSensitiveLog = (obj) => ({
@@ -785,6 +847,18 @@ const ListExecutionsOutputFilterSensitiveLog = (obj) => ({
785
847
  ...obj,
786
848
  });
787
849
  exports.ListExecutionsOutputFilterSensitiveLog = ListExecutionsOutputFilterSensitiveLog;
850
+ const ListMapRunsInputFilterSensitiveLog = (obj) => ({
851
+ ...obj,
852
+ });
853
+ exports.ListMapRunsInputFilterSensitiveLog = ListMapRunsInputFilterSensitiveLog;
854
+ const MapRunListItemFilterSensitiveLog = (obj) => ({
855
+ ...obj,
856
+ });
857
+ exports.MapRunListItemFilterSensitiveLog = MapRunListItemFilterSensitiveLog;
858
+ const ListMapRunsOutputFilterSensitiveLog = (obj) => ({
859
+ ...obj,
860
+ });
861
+ exports.ListMapRunsOutputFilterSensitiveLog = ListMapRunsOutputFilterSensitiveLog;
788
862
  const ListStateMachinesInputFilterSensitiveLog = (obj) => ({
789
863
  ...obj,
790
864
  });
@@ -884,6 +958,14 @@ const UntagResourceOutputFilterSensitiveLog = (obj) => ({
884
958
  ...obj,
885
959
  });
886
960
  exports.UntagResourceOutputFilterSensitiveLog = UntagResourceOutputFilterSensitiveLog;
961
+ const UpdateMapRunInputFilterSensitiveLog = (obj) => ({
962
+ ...obj,
963
+ });
964
+ exports.UpdateMapRunInputFilterSensitiveLog = UpdateMapRunInputFilterSensitiveLog;
965
+ const UpdateMapRunOutputFilterSensitiveLog = (obj) => ({
966
+ ...obj,
967
+ });
968
+ exports.UpdateMapRunOutputFilterSensitiveLog = UpdateMapRunOutputFilterSensitiveLog;
887
969
  const UpdateStateMachineInputFilterSensitiveLog = (obj) => ({
888
970
  ...obj,
889
971
  ...(obj.definition && { definition: smithy_client_1.SENSITIVE_STRING }),
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListMapRuns = void 0;
4
+ const ListMapRunsCommand_1 = require("../commands/ListMapRunsCommand");
5
+ const SFN_1 = require("../SFN");
6
+ const SFNClient_1 = require("../SFNClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListMapRunsCommand_1.ListMapRunsCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listMapRuns(input, ...args);
12
+ };
13
+ async function* paginateListMapRuns(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.nextToken = token;
19
+ input["maxResults"] = config.pageSize;
20
+ if (config.client instanceof SFN_1.SFN) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof SFNClient_1.SFNClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected SFN | SFNClient");
28
+ }
29
+ yield page;
30
+ const prevToken = token;
31
+ token = page.nextToken;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ }
34
+ return undefined;
35
+ }
36
+ exports.paginateListMapRuns = paginateListMapRuns;
@@ -5,4 +5,5 @@ tslib_1.__exportStar(require("./GetExecutionHistoryPaginator"), exports);
5
5
  tslib_1.__exportStar(require("./Interfaces"), exports);
6
6
  tslib_1.__exportStar(require("./ListActivitiesPaginator"), exports);
7
7
  tslib_1.__exportStar(require("./ListExecutionsPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListMapRunsPaginator"), exports);
8
9
  tslib_1.__exportStar(require("./ListStateMachinesPaginator"), exports);