@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
@@ -10,6 +10,11 @@ export interface DeleteStateMachineCommandOutput extends DeleteStateMachineOutpu
10
10
  /**
11
11
  * <p>Deletes a state machine. This is an asynchronous operation: It sets the state machine's
12
12
  * status to <code>DELETING</code> and begins the deletion process. </p>
13
+ *
14
+ * <p>If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.</p>
15
+ *
16
+ * <p>A qualified state machine ARN refers to a <i>Distributed Map state</i> defined within a state machine. For example, the qualified state machine ARN <code>arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel</code> refers to a <i>Distributed Map state</i> with a label <code>mapStateLabel</code> in the state machine named <code>stateMachineName</code>.</p>
17
+ *
13
18
  * <note>
14
19
  * <p>For <code>EXPRESS</code> state machines, the deletion will happen eventually (usually
15
20
  * less than a minute). Running executions may emit logs after <code>DeleteStateMachine</code>
@@ -8,11 +8,11 @@ export interface DescribeExecutionCommandInput extends DescribeExecutionInput {
8
8
  export interface DescribeExecutionCommandOutput extends DescribeExecutionOutput, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Describes an execution.</p>
11
+ * <p>Provides all information about a state machine execution, such as the state machine associated with the execution, the execution input and output, and relevant execution metadata. Use this API action to return the Map Run ARN if the execution was dispatched by a Map Run.</p>
12
12
  * <note>
13
13
  * <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
14
14
  * </note>
15
- * <p>This API action is not supported by <code>EXPRESS</code> state machines.</p>
15
+ * <p>This API action is not supported by <code>EXPRESS</code> state machine executions unless they were dispatched by a Map Run.</p>
16
16
  * @example
17
17
  * Use a bare-bones client and the command you need to make an API call.
18
18
  * ```javascript
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { DescribeMapRunInput, DescribeMapRunOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, SFNClientResolvedConfig } from "../SFNClient";
6
+ export interface DescribeMapRunCommandInput extends DescribeMapRunInput {
7
+ }
8
+ export interface DescribeMapRunCommandOutput extends DescribeMapRunOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Provides information about a Map Run's configuration, progress, and results. For more information, see <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-examine-map-run.html">Examining Map Run</a> in the <i>Step Functions Developer Guide</i>.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { SFNClient, DescribeMapRunCommand } from "@aws-sdk/client-sfn"; // ES Modules import
16
+ * // const { SFNClient, DescribeMapRunCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
17
+ * const client = new SFNClient(config);
18
+ * const command = new DescribeMapRunCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link DescribeMapRunCommandInput} for command's `input` shape.
23
+ * @see {@link DescribeMapRunCommandOutput} for command's `response` shape.
24
+ * @see {@link SFNClientResolvedConfig | config} for SFNClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class DescribeMapRunCommand extends $Command<DescribeMapRunCommandInput, DescribeMapRunCommandOutput, SFNClientResolvedConfig> {
28
+ readonly input: DescribeMapRunCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: DescribeMapRunCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeMapRunCommandInput, DescribeMapRunCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -8,7 +8,10 @@ export interface DescribeStateMachineCommandInput extends DescribeStateMachineIn
8
8
  export interface DescribeStateMachineCommandOutput extends DescribeStateMachineOutput, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Describes a state machine.</p>
11
+ * <p>Provides information about a state machine's definition, its IAM role Amazon Resource Name (ARN), and configuration. If the state machine ARN is a qualified state machine ARN, the response returned includes the <code>Map</code> state's label.</p>
12
+ *
13
+ * <p>A qualified state machine ARN refers to a <i>Distributed Map state</i> defined within a state machine. For example, the qualified state machine ARN <code>arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel</code> refers to a <i>Distributed Map state</i> with a label <code>mapStateLabel</code> in the state machine named <code>stateMachineName</code>.</p>
14
+ *
12
15
  * <note>
13
16
  * <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
14
17
  * </note>
@@ -8,7 +8,7 @@ export interface DescribeStateMachineForExecutionCommandInput extends DescribeSt
8
8
  export interface DescribeStateMachineForExecutionCommandOutput extends DescribeStateMachineForExecutionOutput, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Describes the state machine associated with a specific execution.</p>
11
+ * <p>Provides information about a state machine's definition, its execution role ARN, and configuration. If an execution was dispatched by a Map Run, the Map Run is returned in the response. Additionally, the state machine returned will be the state machine associated with the Map Run.</p>
12
12
  * <note>
13
13
  * <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
14
14
  * </note>
@@ -8,7 +8,8 @@ export interface ListExecutionsCommandInput extends ListExecutionsInput {
8
8
  export interface ListExecutionsCommandOutput extends ListExecutionsOutput, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Lists the executions of a state machine that meet the filtering criteria. Results are
11
+ * <p>Lists all executions of a state machine or a Map Run. You can list all executions related to a state machine by specifying a state machine Amazon Resource Name (ARN), or those related to a Map Run by specifying a Map Run ARN.</p>
12
+ * <p>Results are
12
13
  * sorted by time, with the most recent execution first.</p>
13
14
  * <p>If <code>nextToken</code> is returned, there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page.
14
15
  * Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an <i>HTTP 400 InvalidToken</i> error.</p>
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ListMapRunsInput, ListMapRunsOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, SFNClientResolvedConfig } from "../SFNClient";
6
+ export interface ListMapRunsCommandInput extends ListMapRunsInput {
7
+ }
8
+ export interface ListMapRunsCommandOutput extends ListMapRunsOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Lists all Map Runs that were started by a given state machine execution. Use this API action to obtain Map Run ARNs, and then call <code>DescribeMapRun</code> to obtain more information, if needed.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { SFNClient, ListMapRunsCommand } from "@aws-sdk/client-sfn"; // ES Modules import
16
+ * // const { SFNClient, ListMapRunsCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
17
+ * const client = new SFNClient(config);
18
+ * const command = new ListMapRunsCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link ListMapRunsCommandInput} for command's `input` shape.
23
+ * @see {@link ListMapRunsCommandOutput} for command's `response` shape.
24
+ * @see {@link SFNClientResolvedConfig | config} for SFNClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class ListMapRunsCommand extends $Command<ListMapRunsCommandInput, ListMapRunsCommandOutput, SFNClientResolvedConfig> {
28
+ readonly input: ListMapRunsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: ListMapRunsCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListMapRunsCommandInput, ListMapRunsCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -8,7 +8,10 @@ export interface StartExecutionCommandInput extends StartExecutionInput {
8
8
  export interface StartExecutionCommandOutput extends StartExecutionOutput, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Starts a state machine execution.</p>
11
+ * <p>Starts a state machine execution. If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.</p>
12
+ *
13
+ * <p>A qualified state machine ARN refers to a <i>Distributed Map state</i> defined within a state machine. For example, the qualified state machine ARN <code>arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel</code> refers to a <i>Distributed Map state</i> with a label <code>mapStateLabel</code> in the state machine named <code>stateMachineName</code>.</p>
14
+ *
12
15
  * <note>
13
16
  * <p>
14
17
  * <code>StartExecution</code> is idempotent for <code>STANDARD</code> workflows. For a
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { UpdateMapRunInput, UpdateMapRunOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, SFNClientResolvedConfig } from "../SFNClient";
6
+ export interface UpdateMapRunCommandInput extends UpdateMapRunInput {
7
+ }
8
+ export interface UpdateMapRunCommandOutput extends UpdateMapRunOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Updates an in-progress Map Run's configuration to include changes to the settings that control maximum concurrency and Map Run failure.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { SFNClient, UpdateMapRunCommand } from "@aws-sdk/client-sfn"; // ES Modules import
16
+ * // const { SFNClient, UpdateMapRunCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
17
+ * const client = new SFNClient(config);
18
+ * const command = new UpdateMapRunCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link UpdateMapRunCommandInput} for command's `input` shape.
23
+ * @see {@link UpdateMapRunCommandOutput} for command's `response` shape.
24
+ * @see {@link SFNClientResolvedConfig | config} for SFNClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class UpdateMapRunCommand extends $Command<UpdateMapRunCommandInput, UpdateMapRunCommandOutput, SFNClientResolvedConfig> {
28
+ readonly input: UpdateMapRunCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: UpdateMapRunCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SFNClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateMapRunCommandInput, UpdateMapRunCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -13,6 +13,11 @@ export interface UpdateStateMachineCommandOutput extends UpdateStateMachineOutpu
13
13
  * to use the previous <code>definition</code> and <code>roleArn</code>. You must include at
14
14
  * least one of <code>definition</code> or <code>roleArn</code> or you will receive a
15
15
  * <code>MissingRequiredParameter</code> error.</p>
16
+ *
17
+ * <p>If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.</p>
18
+ *
19
+ * <p>A qualified state machine ARN refers to a <i>Distributed Map state</i> defined within a state machine. For example, the qualified state machine ARN <code>arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel</code> refers to a <i>Distributed Map state</i> with a label <code>mapStateLabel</code> in the state machine named <code>stateMachineName</code>.</p>
20
+ *
16
21
  * <note>
17
22
  * <p>All <code>StartExecution</code> calls within a few seconds will use the updated
18
23
  * <code>definition</code> and <code>roleArn</code>. Executions started immediately after
@@ -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";
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region?: string;
15
+ Region: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;