@aws-sdk/client-sfn 3.36.0 → 3.39.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/CHANGELOG.md +42 -0
- package/dist-cjs/SFN.js +0 -18
- package/dist-cjs/SFNClient.js +0 -23
- package/dist-cjs/commands/CreateActivityCommand.js +0 -40
- package/dist-cjs/commands/CreateStateMachineCommand.js +0 -42
- package/dist-cjs/commands/DeleteActivityCommand.js +0 -24
- package/dist-cjs/commands/DeleteStateMachineCommand.js +0 -30
- package/dist-cjs/commands/DescribeActivityCommand.js +0 -27
- package/dist-cjs/commands/DescribeExecutionCommand.js +0 -28
- package/dist-cjs/commands/DescribeStateMachineCommand.js +0 -27
- package/dist-cjs/commands/DescribeStateMachineForExecutionCommand.js +0 -28
- package/dist-cjs/commands/GetActivityTaskCommand.js +0 -36
- package/dist-cjs/commands/GetExecutionHistoryCommand.js +0 -29
- package/dist-cjs/commands/ListActivitiesCommand.js +0 -29
- package/dist-cjs/commands/ListExecutionsCommand.js +0 -31
- package/dist-cjs/commands/ListStateMachinesCommand.js +0 -29
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/SendTaskFailureCommand.js +0 -25
- package/dist-cjs/commands/SendTaskHeartbeatCommand.js +0 -38
- package/dist-cjs/commands/SendTaskSuccessCommand.js +0 -26
- package/dist-cjs/commands/StartExecutionCommand.js +0 -32
- package/dist-cjs/commands/StartSyncExecutionCommand.js +0 -24
- package/dist-cjs/commands/StopExecutionCommand.js +0 -25
- package/dist-cjs/commands/TagResourceCommand.js +0 -29
- package/dist-cjs/commands/UntagResourceCommand.js +0 -24
- package/dist-cjs/commands/UpdateStateMachineCommand.js +0 -34
- package/dist-cjs/commands/index.js +26 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +4 -30
- package/dist-cjs/models/models_0.js +0 -333
- package/dist-cjs/pagination/GetExecutionHistoryPaginator.js +0 -10
- package/dist-cjs/pagination/ListActivitiesPaginator.js +0 -10
- package/dist-cjs/pagination/ListExecutionsPaginator.js +0 -10
- package/dist-cjs/pagination/ListStateMachinesPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_json1_0.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-es/commands/index.js +23 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +4 -30
- package/dist-es/pagination/index.js +5 -0
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/index.d.ts +4 -30
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/SFN.d.ts +24 -217
- package/dist-types/ts3.4/SFNClient.d.ts +24 -104
- package/dist-types/ts3.4/commands/CreateActivityCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/CreateStateMachineCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/DeleteActivityCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteStateMachineCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DescribeActivityCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeExecutionCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DescribeStateMachineCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeStateMachineForExecutionCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/GetActivityTaskCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/GetExecutionHistoryCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListActivitiesCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListExecutionsCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListStateMachinesCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/SendTaskFailureCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/SendTaskHeartbeatCommand.d.ts +2 -34
- package/dist-types/ts3.4/commands/SendTaskSuccessCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartExecutionCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/StartSyncExecutionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopExecutionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateStateMachineCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/index.d.ts +4 -30
- package/dist-types/ts3.4/models/models_0.d.ts +434 -1643
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +32 -32
|
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Lists the existing state machines.</p>
|
|
10
|
-
* <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.
|
|
11
|
-
* 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>
|
|
12
|
-
* <note>
|
|
13
|
-
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
14
|
-
* </note>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { SFNClient, ListStateMachinesCommand } from "@aws-sdk/client-sfn"; // ES Modules import
|
|
19
|
-
* // const { SFNClient, ListStateMachinesCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
|
|
20
|
-
* const client = new SFNClient(config);
|
|
21
|
-
* const command = new ListStateMachinesCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link ListStateMachinesCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link ListStateMachinesCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
8
|
class ListStateMachinesCommand extends smithy_client_1.Command {
|
|
31
|
-
// Start section: command_properties
|
|
32
|
-
// End section: command_properties
|
|
33
9
|
constructor(input) {
|
|
34
|
-
// Start section: command_constructor
|
|
35
10
|
super();
|
|
36
11
|
this.input = input;
|
|
37
|
-
// End section: command_constructor
|
|
38
12
|
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
43
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
44
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>List tags for a given resource.</p>
|
|
10
|
-
* <p>Tags may only contain Unicode letters, digits, white space, or these symbols: <code>_ . : / = + - @</code>.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { SFNClient, ListTagsForResourceCommand } from "@aws-sdk/client-sfn"; // ES Modules import
|
|
15
|
-
* // const { SFNClient, ListTagsForResourceCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
|
|
16
|
-
* const client = new SFNClient(config);
|
|
17
|
-
* const command = new ListTagsForResourceCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class ListTagsForResourceCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Used by activity workers and task states using the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token">callback</a>
|
|
10
|
-
* pattern to report that the task identified by the <code>taskToken</code> failed.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { SFNClient, SendTaskFailureCommand } from "@aws-sdk/client-sfn"; // ES Modules import
|
|
15
|
-
* // const { SFNClient, SendTaskFailureCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
|
|
16
|
-
* const client = new SFNClient(config);
|
|
17
|
-
* const command = new SendTaskFailureCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link SendTaskFailureCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link SendTaskFailureCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class SendTaskFailureCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,49 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Used by activity workers and task states using the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token">callback</a>
|
|
10
|
-
* pattern to report to Step Functions that the task represented by the specified
|
|
11
|
-
* <code>taskToken</code> is still making progress. This action resets the
|
|
12
|
-
* <code>Heartbeat</code> clock. The <code>Heartbeat</code> threshold is specified in the state
|
|
13
|
-
* machine's Amazon States Language definition (<code>HeartbeatSeconds</code>). This action does not in itself
|
|
14
|
-
* create an event in the execution history. However, if the task times out, the execution
|
|
15
|
-
* history contains an <code>ActivityTimedOut</code> entry for activities, or a
|
|
16
|
-
* <code>TaskTimedOut</code> entry for for tasks using the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync">job run</a> or
|
|
17
|
-
* <a href="https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token">callback</a>
|
|
18
|
-
* pattern.</p>
|
|
19
|
-
* <note>
|
|
20
|
-
* <p>The <code>Timeout</code> of a task, defined in the state machine's Amazon States Language definition, is
|
|
21
|
-
* its maximum allowed duration, regardless of the number of <a>SendTaskHeartbeat</a> requests received. Use <code>HeartbeatSeconds</code> to configure the timeout interval
|
|
22
|
-
* for heartbeats.</p>
|
|
23
|
-
* </note>
|
|
24
|
-
* @example
|
|
25
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
26
|
-
* ```javascript
|
|
27
|
-
* import { SFNClient, SendTaskHeartbeatCommand } from "@aws-sdk/client-sfn"; // ES Modules import
|
|
28
|
-
* // const { SFNClient, SendTaskHeartbeatCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
|
|
29
|
-
* const client = new SFNClient(config);
|
|
30
|
-
* const command = new SendTaskHeartbeatCommand(input);
|
|
31
|
-
* const response = await client.send(command);
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @see {@link SendTaskHeartbeatCommandInput} for command's `input` shape.
|
|
35
|
-
* @see {@link SendTaskHeartbeatCommandOutput} for command's `response` shape.
|
|
36
|
-
* @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
8
|
class SendTaskHeartbeatCommand extends smithy_client_1.Command {
|
|
40
|
-
// Start section: command_properties
|
|
41
|
-
// End section: command_properties
|
|
42
9
|
constructor(input) {
|
|
43
|
-
// Start section: command_constructor
|
|
44
10
|
super();
|
|
45
11
|
this.input = input;
|
|
46
|
-
// End section: command_constructor
|
|
47
12
|
}
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
52
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
53
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Used by activity workers and task states using the <a href="https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token">callback</a>
|
|
10
|
-
* pattern to report that the task identified by the <code>taskToken</code> completed
|
|
11
|
-
* successfully.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { SFNClient, SendTaskSuccessCommand } from "@aws-sdk/client-sfn"; // ES Modules import
|
|
16
|
-
* // const { SFNClient, SendTaskSuccessCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
|
|
17
|
-
* const client = new SFNClient(config);
|
|
18
|
-
* const command = new SendTaskSuccessCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link SendTaskSuccessCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link SendTaskSuccessCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class SendTaskSuccessCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,43 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Starts a state machine execution.</p>
|
|
10
|
-
* <note>
|
|
11
|
-
* <p>
|
|
12
|
-
* <code>StartExecution</code> is idempotent. If <code>StartExecution</code> is called with
|
|
13
|
-
* the same name and input as a running execution, the call will succeed and return the same
|
|
14
|
-
* response as the original request. If the execution is closed or if the input is different,
|
|
15
|
-
* it will return a 400 <code>ExecutionAlreadyExists</code> error. Names can be reused after 90
|
|
16
|
-
* days. </p>
|
|
17
|
-
* </note>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { SFNClient, StartExecutionCommand } from "@aws-sdk/client-sfn"; // ES Modules import
|
|
22
|
-
* // const { SFNClient, StartExecutionCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
|
|
23
|
-
* const client = new SFNClient(config);
|
|
24
|
-
* const command = new StartExecutionCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link StartExecutionCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link StartExecutionCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
8
|
class StartExecutionCommand extends smithy_client_1.Command {
|
|
34
|
-
// Start section: command_properties
|
|
35
|
-
// End section: command_properties
|
|
36
9
|
constructor(input) {
|
|
37
|
-
// Start section: command_constructor
|
|
38
10
|
super();
|
|
39
11
|
this.input = input;
|
|
40
|
-
// End section: command_constructor
|
|
41
12
|
}
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
46
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Starts a Synchronous Express state machine execution.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { SFNClient, StartSyncExecutionCommand } from "@aws-sdk/client-sfn"; // ES Modules import
|
|
14
|
-
* // const { SFNClient, StartSyncExecutionCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
|
|
15
|
-
* const client = new SFNClient(config);
|
|
16
|
-
* const command = new StartSyncExecutionCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link StartSyncExecutionCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link StartSyncExecutionCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class StartSyncExecutionCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Stops an execution.</p>
|
|
10
|
-
* <p>This API action is not supported by <code>EXPRESS</code> state machines.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { SFNClient, StopExecutionCommand } from "@aws-sdk/client-sfn"; // ES Modules import
|
|
15
|
-
* // const { SFNClient, StopExecutionCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
|
|
16
|
-
* const client = new SFNClient(config);
|
|
17
|
-
* const command = new StopExecutionCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link StopExecutionCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link StopExecutionCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class StopExecutionCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Add a tag to a Step Functions resource.</p>
|
|
10
|
-
* <p>An array of key-value pairs. For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using
|
|
11
|
-
* Cost Allocation Tags</a> in the <i>AWS Billing and Cost Management User
|
|
12
|
-
* Guide</i>, and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html">Controlling Access Using IAM
|
|
13
|
-
* Tags</a>.</p>
|
|
14
|
-
* <p>Tags may only contain Unicode letters, digits, white space, or these symbols: <code>_ . : / = + - @</code>.</p>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { SFNClient, TagResourceCommand } from "@aws-sdk/client-sfn"; // ES Modules import
|
|
19
|
-
* // const { SFNClient, TagResourceCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
|
|
20
|
-
* const client = new SFNClient(config);
|
|
21
|
-
* const command = new TagResourceCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
8
|
class TagResourceCommand extends smithy_client_1.Command {
|
|
31
|
-
// Start section: command_properties
|
|
32
|
-
// End section: command_properties
|
|
33
9
|
constructor(input) {
|
|
34
|
-
// Start section: command_constructor
|
|
35
10
|
super();
|
|
36
11
|
this.input = input;
|
|
37
|
-
// End section: command_constructor
|
|
38
12
|
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
43
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
44
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Remove a tag from a Step Functions resource</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { SFNClient, UntagResourceCommand } from "@aws-sdk/client-sfn"; // ES Modules import
|
|
14
|
-
* // const { SFNClient, UntagResourceCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
|
|
15
|
-
* const client = new SFNClient(config);
|
|
16
|
-
* const command = new UntagResourceCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UntagResourceCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,45 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Updates an existing state machine by modifying its <code>definition</code>,
|
|
10
|
-
* <code>roleArn</code>, or <code>loggingConfiguration</code>. Running executions will continue
|
|
11
|
-
* to use the previous <code>definition</code> and <code>roleArn</code>. You must include at
|
|
12
|
-
* least one of <code>definition</code> or <code>roleArn</code> or you will receive a
|
|
13
|
-
* <code>MissingRequiredParameter</code> error.</p>
|
|
14
|
-
* <note>
|
|
15
|
-
* <p>All <code>StartExecution</code> calls within a few seconds will use the updated
|
|
16
|
-
* <code>definition</code> and <code>roleArn</code>. Executions started immediately after
|
|
17
|
-
* calling <code>UpdateStateMachine</code> may use the previous state machine
|
|
18
|
-
* <code>definition</code> and <code>roleArn</code>. </p>
|
|
19
|
-
* </note>
|
|
20
|
-
* @example
|
|
21
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
22
|
-
* ```javascript
|
|
23
|
-
* import { SFNClient, UpdateStateMachineCommand } from "@aws-sdk/client-sfn"; // ES Modules import
|
|
24
|
-
* // const { SFNClient, UpdateStateMachineCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
|
|
25
|
-
* const client = new SFNClient(config);
|
|
26
|
-
* const command = new UpdateStateMachineCommand(input);
|
|
27
|
-
* const response = await client.send(command);
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @see {@link UpdateStateMachineCommandInput} for command's `input` shape.
|
|
31
|
-
* @see {@link UpdateStateMachineCommandOutput} for command's `response` shape.
|
|
32
|
-
* @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
8
|
class UpdateStateMachineCommand extends smithy_client_1.Command {
|
|
36
|
-
// Start section: command_properties
|
|
37
|
-
// End section: command_properties
|
|
38
9
|
constructor(input) {
|
|
39
|
-
// Start section: command_constructor
|
|
40
10
|
super();
|
|
41
11
|
this.input = input;
|
|
42
|
-
// End section: command_constructor
|
|
43
12
|
}
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
48
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
49
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./CreateActivityCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreateStateMachineCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DeleteActivityCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DeleteStateMachineCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DescribeActivityCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./DescribeExecutionCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DescribeStateMachineCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./DescribeStateMachineForExecutionCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./GetActivityTaskCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./GetExecutionHistoryCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./ListActivitiesCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./ListExecutionsCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./ListStateMachinesCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./SendTaskFailureCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./SendTaskHeartbeatCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./SendTaskSuccessCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./StartExecutionCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./StartSyncExecutionCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./StopExecutionCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./UpdateStateMachineCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -57,22 +57,27 @@ const partitionHash = {
|
|
|
57
57
|
"us-west-1",
|
|
58
58
|
"us-west-2",
|
|
59
59
|
],
|
|
60
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
60
61
|
hostname: "states.{region}.amazonaws.com",
|
|
61
62
|
},
|
|
62
63
|
"aws-cn": {
|
|
63
64
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
65
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
64
66
|
hostname: "states.{region}.amazonaws.com.cn",
|
|
65
67
|
},
|
|
66
68
|
"aws-iso": {
|
|
67
|
-
regions: ["us-iso-east-1"],
|
|
69
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
70
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
68
71
|
hostname: "states.{region}.c2s.ic.gov",
|
|
69
72
|
},
|
|
70
73
|
"aws-iso-b": {
|
|
71
74
|
regions: ["us-isob-east-1"],
|
|
75
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
72
76
|
hostname: "states.{region}.sc2s.sgov.gov",
|
|
73
77
|
},
|
|
74
78
|
"aws-us-gov": {
|
|
75
79
|
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
80
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
76
81
|
hostname: "states.{region}.amazonaws.com",
|
|
77
82
|
},
|
|
78
83
|
};
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,34 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./SFNClient"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./SFN"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./commands
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
-
tslib_1.__exportStar(require("./
|
|
10
|
-
tslib_1.__exportStar(require("./commands/DescribeActivityCommand"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./commands/DescribeExecutionCommand"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./commands/DescribeStateMachineCommand"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./commands/DescribeStateMachineForExecutionCommand"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./commands/GetActivityTaskCommand"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./commands/GetExecutionHistoryCommand"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./pagination/GetExecutionHistoryPaginator"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./commands/ListActivitiesCommand"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./pagination/ListActivitiesPaginator"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./commands/ListExecutionsCommand"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./pagination/ListExecutionsPaginator"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./commands/ListStateMachinesCommand"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./pagination/ListStateMachinesPaginator"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./commands/ListTagsForResourceCommand"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./commands/SendTaskFailureCommand"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./commands/SendTaskHeartbeatCommand"), exports);
|
|
26
|
-
tslib_1.__exportStar(require("./commands/SendTaskSuccessCommand"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./commands/StartExecutionCommand"), exports);
|
|
28
|
-
tslib_1.__exportStar(require("./commands/StartSyncExecutionCommand"), exports);
|
|
29
|
-
tslib_1.__exportStar(require("./commands/StopExecutionCommand"), exports);
|
|
30
|
-
tslib_1.__exportStar(require("./commands/TagResourceCommand"), exports);
|
|
31
|
-
tslib_1.__exportStar(require("./commands/UntagResourceCommand"), exports);
|
|
32
|
-
tslib_1.__exportStar(require("./commands/UpdateStateMachineCommand"), exports);
|
|
33
|
-
tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
|
|
34
|
-
tslib_1.__exportStar(require("./models/index"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./SFNClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|