@aws-sdk/client-sfn 3.354.0 → 3.358.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 (71) hide show
  1. package/README.md +64 -0
  2. package/dist-cjs/SFN.js +16 -0
  3. package/dist-cjs/commands/CreateStateMachineAliasCommand.js +47 -0
  4. package/dist-cjs/commands/DeleteStateMachineAliasCommand.js +46 -0
  5. package/dist-cjs/commands/DeleteStateMachineVersionCommand.js +46 -0
  6. package/dist-cjs/commands/DescribeStateMachineAliasCommand.js +47 -0
  7. package/dist-cjs/commands/ListStateMachineAliasesCommand.js +46 -0
  8. package/dist-cjs/commands/ListStateMachineVersionsCommand.js +46 -0
  9. package/dist-cjs/commands/PublishStateMachineVersionCommand.js +47 -0
  10. package/dist-cjs/commands/UpdateStateMachineAliasCommand.js +47 -0
  11. package/dist-cjs/commands/index.js +8 -0
  12. package/dist-cjs/endpoint/ruleset.js +3 -3
  13. package/dist-cjs/models/models_0.js +66 -16
  14. package/dist-cjs/protocols/Aws_json1_0.js +511 -9
  15. package/dist-es/SFN.js +16 -0
  16. package/dist-es/commands/CreateStateMachineAliasCommand.js +43 -0
  17. package/dist-es/commands/DeleteStateMachineAliasCommand.js +42 -0
  18. package/dist-es/commands/DeleteStateMachineVersionCommand.js +42 -0
  19. package/dist-es/commands/DescribeStateMachineAliasCommand.js +43 -0
  20. package/dist-es/commands/ListStateMachineAliasesCommand.js +42 -0
  21. package/dist-es/commands/ListStateMachineVersionsCommand.js +42 -0
  22. package/dist-es/commands/PublishStateMachineVersionCommand.js +43 -0
  23. package/dist-es/commands/UpdateStateMachineAliasCommand.js +43 -0
  24. package/dist-es/commands/index.js +8 -0
  25. package/dist-es/endpoint/ruleset.js +3 -3
  26. package/dist-es/models/models_0.js +57 -13
  27. package/dist-es/protocols/Aws_json1_0.js +494 -8
  28. package/dist-types/SFN.d.ts +56 -0
  29. package/dist-types/SFNClient.d.ts +11 -3
  30. package/dist-types/commands/CreateStateMachineAliasCommand.d.ts +144 -0
  31. package/dist-types/commands/CreateStateMachineCommand.d.ts +14 -2
  32. package/dist-types/commands/DeleteStateMachineAliasCommand.d.ts +112 -0
  33. package/dist-types/commands/DeleteStateMachineCommand.d.ts +21 -6
  34. package/dist-types/commands/DeleteStateMachineVersionCommand.d.ts +106 -0
  35. package/dist-types/commands/DescribeExecutionCommand.d.ts +9 -2
  36. package/dist-types/commands/DescribeMapRunCommand.d.ts +1 -2
  37. package/dist-types/commands/DescribeStateMachineAliasCommand.d.ts +117 -0
  38. package/dist-types/commands/DescribeStateMachineCommand.d.ts +33 -4
  39. package/dist-types/commands/DescribeStateMachineForExecutionCommand.d.ts +7 -1
  40. package/dist-types/commands/GetActivityTaskCommand.d.ts +0 -2
  41. package/dist-types/commands/GetExecutionHistoryCommand.d.ts +2 -0
  42. package/dist-types/commands/ListExecutionsCommand.d.ts +4 -2
  43. package/dist-types/commands/ListStateMachineAliasesCommand.d.ts +124 -0
  44. package/dist-types/commands/ListStateMachineVersionsCommand.d.ts +108 -0
  45. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -2
  46. package/dist-types/commands/PublishStateMachineVersionCommand.d.ts +122 -0
  47. package/dist-types/commands/StartExecutionCommand.d.ts +37 -9
  48. package/dist-types/commands/TagResourceCommand.d.ts +1 -2
  49. package/dist-types/commands/UntagResourceCommand.d.ts +1 -2
  50. package/dist-types/commands/UpdateMapRunCommand.d.ts +1 -2
  51. package/dist-types/commands/UpdateStateMachineAliasCommand.d.ts +132 -0
  52. package/dist-types/commands/UpdateStateMachineCommand.d.ts +49 -7
  53. package/dist-types/commands/index.d.ts +8 -0
  54. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  55. package/dist-types/models/models_0.d.ts +475 -36
  56. package/dist-types/protocols/Aws_json1_0.d.ts +72 -0
  57. package/dist-types/ts3.4/SFN.d.ts +136 -0
  58. package/dist-types/ts3.4/SFNClient.d.ts +48 -0
  59. package/dist-types/ts3.4/commands/CreateStateMachineAliasCommand.d.ts +42 -0
  60. package/dist-types/ts3.4/commands/DeleteStateMachineAliasCommand.d.ts +42 -0
  61. package/dist-types/ts3.4/commands/DeleteStateMachineVersionCommand.d.ts +42 -0
  62. package/dist-types/ts3.4/commands/DescribeStateMachineAliasCommand.d.ts +42 -0
  63. package/dist-types/ts3.4/commands/ListStateMachineAliasesCommand.d.ts +42 -0
  64. package/dist-types/ts3.4/commands/ListStateMachineVersionsCommand.d.ts +42 -0
  65. package/dist-types/ts3.4/commands/PublishStateMachineVersionCommand.d.ts +42 -0
  66. package/dist-types/ts3.4/commands/UpdateStateMachineAliasCommand.d.ts +42 -0
  67. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  68. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  69. package/dist-types/ts3.4/models/models_0.d.ts +130 -14
  70. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +96 -0
  71. package/package.json +28 -28
package/dist-es/SFN.js CHANGED
@@ -1,11 +1,15 @@
1
1
  import { createAggregatedClient } from "@aws-sdk/smithy-client";
2
2
  import { CreateActivityCommand, } from "./commands/CreateActivityCommand";
3
+ import { CreateStateMachineAliasCommand, } from "./commands/CreateStateMachineAliasCommand";
3
4
  import { CreateStateMachineCommand, } from "./commands/CreateStateMachineCommand";
4
5
  import { DeleteActivityCommand, } from "./commands/DeleteActivityCommand";
6
+ import { DeleteStateMachineAliasCommand, } from "./commands/DeleteStateMachineAliasCommand";
5
7
  import { DeleteStateMachineCommand, } from "./commands/DeleteStateMachineCommand";
8
+ import { DeleteStateMachineVersionCommand, } from "./commands/DeleteStateMachineVersionCommand";
6
9
  import { DescribeActivityCommand, } from "./commands/DescribeActivityCommand";
7
10
  import { DescribeExecutionCommand, } from "./commands/DescribeExecutionCommand";
8
11
  import { DescribeMapRunCommand, } from "./commands/DescribeMapRunCommand";
12
+ import { DescribeStateMachineAliasCommand, } from "./commands/DescribeStateMachineAliasCommand";
9
13
  import { DescribeStateMachineCommand, } from "./commands/DescribeStateMachineCommand";
10
14
  import { DescribeStateMachineForExecutionCommand, } from "./commands/DescribeStateMachineForExecutionCommand";
11
15
  import { GetActivityTaskCommand, } from "./commands/GetActivityTaskCommand";
@@ -13,8 +17,11 @@ import { GetExecutionHistoryCommand, } from "./commands/GetExecutionHistoryComma
13
17
  import { ListActivitiesCommand, } from "./commands/ListActivitiesCommand";
14
18
  import { ListExecutionsCommand, } from "./commands/ListExecutionsCommand";
15
19
  import { ListMapRunsCommand } from "./commands/ListMapRunsCommand";
20
+ import { ListStateMachineAliasesCommand, } from "./commands/ListStateMachineAliasesCommand";
16
21
  import { ListStateMachinesCommand, } from "./commands/ListStateMachinesCommand";
22
+ import { ListStateMachineVersionsCommand, } from "./commands/ListStateMachineVersionsCommand";
17
23
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
24
+ import { PublishStateMachineVersionCommand, } from "./commands/PublishStateMachineVersionCommand";
18
25
  import { SendTaskFailureCommand, } from "./commands/SendTaskFailureCommand";
19
26
  import { SendTaskHeartbeatCommand, } from "./commands/SendTaskHeartbeatCommand";
20
27
  import { SendTaskSuccessCommand, } from "./commands/SendTaskSuccessCommand";
@@ -24,25 +31,33 @@ import { StopExecutionCommand, } from "./commands/StopExecutionCommand";
24
31
  import { TagResourceCommand } from "./commands/TagResourceCommand";
25
32
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
26
33
  import { UpdateMapRunCommand, } from "./commands/UpdateMapRunCommand";
34
+ import { UpdateStateMachineAliasCommand, } from "./commands/UpdateStateMachineAliasCommand";
27
35
  import { UpdateStateMachineCommand, } from "./commands/UpdateStateMachineCommand";
28
36
  import { SFNClient } from "./SFNClient";
29
37
  const commands = {
30
38
  CreateActivityCommand,
31
39
  CreateStateMachineCommand,
40
+ CreateStateMachineAliasCommand,
32
41
  DeleteActivityCommand,
33
42
  DeleteStateMachineCommand,
43
+ DeleteStateMachineAliasCommand,
44
+ DeleteStateMachineVersionCommand,
34
45
  DescribeActivityCommand,
35
46
  DescribeExecutionCommand,
36
47
  DescribeMapRunCommand,
37
48
  DescribeStateMachineCommand,
49
+ DescribeStateMachineAliasCommand,
38
50
  DescribeStateMachineForExecutionCommand,
39
51
  GetActivityTaskCommand,
40
52
  GetExecutionHistoryCommand,
41
53
  ListActivitiesCommand,
42
54
  ListExecutionsCommand,
43
55
  ListMapRunsCommand,
56
+ ListStateMachineAliasesCommand,
44
57
  ListStateMachinesCommand,
58
+ ListStateMachineVersionsCommand,
45
59
  ListTagsForResourceCommand,
60
+ PublishStateMachineVersionCommand,
46
61
  SendTaskFailureCommand,
47
62
  SendTaskHeartbeatCommand,
48
63
  SendTaskSuccessCommand,
@@ -53,6 +68,7 @@ const commands = {
53
68
  UntagResourceCommand,
54
69
  UpdateMapRunCommand,
55
70
  UpdateStateMachineCommand,
71
+ UpdateStateMachineAliasCommand,
56
72
  };
57
73
  export class SFN extends SFNClient {
58
74
  }
@@ -0,0 +1,43 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateStateMachineAliasInputFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_CreateStateMachineAliasCommand, se_CreateStateMachineAliasCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class CreateStateMachineAliasCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateStateMachineAliasCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "SFNClient";
26
+ const commandName = "CreateStateMachineAliasCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: CreateStateMachineAliasInputFilterSensitiveLog,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_CreateStateMachineAliasCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_CreateStateMachineAliasCommand(output, context);
42
+ }
43
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DeleteStateMachineAliasCommand, se_DeleteStateMachineAliasCommand } from "../protocols/Aws_json1_0";
5
+ export { $Command };
6
+ export class DeleteStateMachineAliasCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteStateMachineAliasCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SFNClient";
25
+ const commandName = "DeleteStateMachineAliasCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_DeleteStateMachineAliasCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_DeleteStateMachineAliasCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DeleteStateMachineVersionCommand, se_DeleteStateMachineVersionCommand } from "../protocols/Aws_json1_0";
5
+ export { $Command };
6
+ export class DeleteStateMachineVersionCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteStateMachineVersionCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SFNClient";
25
+ const commandName = "DeleteStateMachineVersionCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_DeleteStateMachineVersionCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_DeleteStateMachineVersionCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,43 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeStateMachineAliasOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_DescribeStateMachineAliasCommand, se_DescribeStateMachineAliasCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class DescribeStateMachineAliasCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeStateMachineAliasCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "SFNClient";
26
+ const commandName = "DescribeStateMachineAliasCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: DescribeStateMachineAliasOutputFilterSensitiveLog,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_DescribeStateMachineAliasCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_DescribeStateMachineAliasCommand(output, context);
42
+ }
43
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_ListStateMachineAliasesCommand, se_ListStateMachineAliasesCommand } from "../protocols/Aws_json1_0";
5
+ export { $Command };
6
+ export class ListStateMachineAliasesCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListStateMachineAliasesCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SFNClient";
25
+ const commandName = "ListStateMachineAliasesCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_ListStateMachineAliasesCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_ListStateMachineAliasesCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_ListStateMachineVersionsCommand, se_ListStateMachineVersionsCommand } from "../protocols/Aws_json1_0";
5
+ export { $Command };
6
+ export class ListStateMachineVersionsCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListStateMachineVersionsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SFNClient";
25
+ const commandName = "ListStateMachineVersionsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_ListStateMachineVersionsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_ListStateMachineVersionsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,43 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { PublishStateMachineVersionInputFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_PublishStateMachineVersionCommand, se_PublishStateMachineVersionCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class PublishStateMachineVersionCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, PublishStateMachineVersionCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "SFNClient";
26
+ const commandName = "PublishStateMachineVersionCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: PublishStateMachineVersionInputFilterSensitiveLog,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_PublishStateMachineVersionCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_PublishStateMachineVersionCommand(output, context);
42
+ }
43
+ }
@@ -0,0 +1,43 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateStateMachineAliasInputFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_UpdateStateMachineAliasCommand, se_UpdateStateMachineAliasCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class UpdateStateMachineAliasCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateStateMachineAliasCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "SFNClient";
26
+ const commandName = "UpdateStateMachineAliasCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: UpdateStateMachineAliasInputFilterSensitiveLog,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_UpdateStateMachineAliasCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_UpdateStateMachineAliasCommand(output, context);
42
+ }
43
+ }
@@ -1,10 +1,14 @@
1
1
  export * from "./CreateActivityCommand";
2
+ export * from "./CreateStateMachineAliasCommand";
2
3
  export * from "./CreateStateMachineCommand";
3
4
  export * from "./DeleteActivityCommand";
5
+ export * from "./DeleteStateMachineAliasCommand";
4
6
  export * from "./DeleteStateMachineCommand";
7
+ export * from "./DeleteStateMachineVersionCommand";
5
8
  export * from "./DescribeActivityCommand";
6
9
  export * from "./DescribeExecutionCommand";
7
10
  export * from "./DescribeMapRunCommand";
11
+ export * from "./DescribeStateMachineAliasCommand";
8
12
  export * from "./DescribeStateMachineCommand";
9
13
  export * from "./DescribeStateMachineForExecutionCommand";
10
14
  export * from "./GetActivityTaskCommand";
@@ -12,8 +16,11 @@ export * from "./GetExecutionHistoryCommand";
12
16
  export * from "./ListActivitiesCommand";
13
17
  export * from "./ListExecutionsCommand";
14
18
  export * from "./ListMapRunsCommand";
19
+ export * from "./ListStateMachineAliasesCommand";
20
+ export * from "./ListStateMachineVersionsCommand";
15
21
  export * from "./ListStateMachinesCommand";
16
22
  export * from "./ListTagsForResourceCommand";
23
+ export * from "./PublishStateMachineVersionCommand";
17
24
  export * from "./SendTaskFailureCommand";
18
25
  export * from "./SendTaskHeartbeatCommand";
19
26
  export * from "./SendTaskSuccessCommand";
@@ -23,4 +30,5 @@ export * from "./StopExecutionCommand";
23
30
  export * from "./TagResourceCommand";
24
31
  export * from "./UntagResourceCommand";
25
32
  export * from "./UpdateMapRunCommand";
33
+ export * from "./UpdateStateMachineAliasCommand";
26
34
  export * from "./UpdateStateMachineCommand";
@@ -1,4 +1,4 @@
1
- const s = "fn", t = "argv", u = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [u]: "Region" }, j = { [u]: "Endpoint" }, k = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, l = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, m = {}, n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: d }, "supportsFIPS"] }] }, o = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: d }, "supportsDualStack"] }] }, p = [j], q = [k], r = [l];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [i], assign: d }], type: e, rules: [{ conditions: [{ [s]: "isSet", [t]: p }, { [s]: "parseURL", [t]: p, assign: "url" }], type: e, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: j, properties: m, headers: m }, type: g }] }] }, { conditions: [k, l], type: e, rules: [{ conditions: [n, o], type: e, rules: [{ endpoint: { url: "https://states-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ conditions: [{ [s]: "stringEquals", [t]: [i, "us-gov-west-1"] }], endpoint: { url: "https://states.us-gov-west-1.amazonaws.com", properties: m, headers: m }, type: g }, { endpoint: { url: "https://states-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: r, type: e, rules: [{ conditions: [o], type: e, rules: [{ endpoint: { url: "https://states.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://states.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] };
1
+ const r = "required", s = "fn", t = "argv", u = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [r]: false, "type": "String" }, g = { [r]: true, "default": false, "type": "Boolean" }, h = { [u]: "Endpoint" }, i = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, j = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, k = {}, l = { [u]: "Region" }, m = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsFIPS"] }] }, n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsDualStack"] }] }, o = [i], p = [j], q = [l];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [s]: a, [t]: [h] }], type: b, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [s]: a, [t]: q }], type: b, rules: [{ conditions: [{ [s]: "aws.partition", [t]: q, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [m, n], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://states-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [s]: "stringEquals", [t]: [l, "us-gov-west-1"] }], endpoint: { url: "https://states.us-gov-west-1.amazonaws.com", properties: k, headers: k }, type: d }, { endpoint: { url: "https://states-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [n], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://states.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://states.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -61,6 +61,18 @@ export class TooManyTags extends __BaseException {
61
61
  this.resourceName = opts.resourceName;
62
62
  }
63
63
  }
64
+ export class ConflictException extends __BaseException {
65
+ constructor(opts) {
66
+ super({
67
+ name: "ConflictException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ this.name = "ConflictException";
72
+ this.$fault = "client";
73
+ Object.setPrototypeOf(this, ConflictException.prototype);
74
+ }
75
+ }
64
76
  export const LogLevel = {
65
77
  ALL: "ALL",
66
78
  ERROR: "ERROR",
@@ -170,6 +182,7 @@ export class StateMachineTypeNotSupported extends __BaseException {
170
182
  export const ValidationExceptionReason = {
171
183
  API_DOES_NOT_SUPPORT_LABELED_ARNS: "API_DOES_NOT_SUPPORT_LABELED_ARNS",
172
184
  CANNOT_UPDATE_COMPLETED_MAP_RUN: "CANNOT_UPDATE_COMPLETED_MAP_RUN",
185
+ INVALID_ROUTING_CONFIGURATION: "INVALID_ROUTING_CONFIGURATION",
173
186
  MISSING_REQUIRED_PARAMETER: "MISSING_REQUIRED_PARAMETER",
174
187
  };
175
188
  export class ValidationException extends __BaseException {
@@ -185,6 +198,31 @@ export class ValidationException extends __BaseException {
185
198
  this.reason = opts.reason;
186
199
  }
187
200
  }
201
+ export class ResourceNotFound extends __BaseException {
202
+ constructor(opts) {
203
+ super({
204
+ name: "ResourceNotFound",
205
+ $fault: "client",
206
+ ...opts,
207
+ });
208
+ this.name = "ResourceNotFound";
209
+ this.$fault = "client";
210
+ Object.setPrototypeOf(this, ResourceNotFound.prototype);
211
+ this.resourceName = opts.resourceName;
212
+ }
213
+ }
214
+ export class ServiceQuotaExceededException extends __BaseException {
215
+ constructor(opts) {
216
+ super({
217
+ name: "ServiceQuotaExceededException",
218
+ $fault: "client",
219
+ ...opts,
220
+ });
221
+ this.name = "ServiceQuotaExceededException";
222
+ this.$fault = "client";
223
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
224
+ }
225
+ }
188
226
  export const ExecutionStatus = {
189
227
  ABORTED: "ABORTED",
190
228
  FAILED: "FAILED",
@@ -210,19 +248,6 @@ export const MapRunStatus = {
210
248
  RUNNING: "RUNNING",
211
249
  SUCCEEDED: "SUCCEEDED",
212
250
  };
213
- export class ResourceNotFound extends __BaseException {
214
- constructor(opts) {
215
- super({
216
- name: "ResourceNotFound",
217
- $fault: "client",
218
- ...opts,
219
- });
220
- this.name = "ResourceNotFound";
221
- this.$fault = "client";
222
- Object.setPrototypeOf(this, ResourceNotFound.prototype);
223
- this.resourceName = opts.resourceName;
224
- }
225
- }
226
251
  export const StateMachineStatus = {
227
252
  ACTIVE: "ACTIVE",
228
253
  DELETING: "DELETING",
@@ -427,6 +452,11 @@ export const ActivityTimedOutEventDetailsFilterSensitiveLog = (obj) => ({
427
452
  export const CreateStateMachineInputFilterSensitiveLog = (obj) => ({
428
453
  ...obj,
429
454
  ...(obj.definition && { definition: SENSITIVE_STRING }),
455
+ ...(obj.versionDescription && { versionDescription: SENSITIVE_STRING }),
456
+ });
457
+ export const CreateStateMachineAliasInputFilterSensitiveLog = (obj) => ({
458
+ ...obj,
459
+ ...(obj.description && { description: SENSITIVE_STRING }),
430
460
  });
431
461
  export const DescribeExecutionOutputFilterSensitiveLog = (obj) => ({
432
462
  ...obj,
@@ -438,6 +468,11 @@ export const DescribeExecutionOutputFilterSensitiveLog = (obj) => ({
438
468
  export const DescribeStateMachineOutputFilterSensitiveLog = (obj) => ({
439
469
  ...obj,
440
470
  ...(obj.definition && { definition: SENSITIVE_STRING }),
471
+ ...(obj.description && { description: SENSITIVE_STRING }),
472
+ });
473
+ export const DescribeStateMachineAliasOutputFilterSensitiveLog = (obj) => ({
474
+ ...obj,
475
+ ...(obj.description && { description: SENSITIVE_STRING }),
441
476
  });
442
477
  export const DescribeStateMachineForExecutionOutputFilterSensitiveLog = (obj) => ({
443
478
  ...obj,
@@ -628,6 +663,10 @@ export const GetExecutionHistoryOutputFilterSensitiveLog = (obj) => ({
628
663
  ...obj,
629
664
  ...(obj.events && { events: obj.events.map((item) => HistoryEventFilterSensitiveLog(item)) }),
630
665
  });
666
+ export const PublishStateMachineVersionInputFilterSensitiveLog = (obj) => ({
667
+ ...obj,
668
+ ...(obj.description && { description: SENSITIVE_STRING }),
669
+ });
631
670
  export const SendTaskFailureInputFilterSensitiveLog = (obj) => ({
632
671
  ...obj,
633
672
  ...(obj.error && { error: SENSITIVE_STRING }),
@@ -660,4 +699,9 @@ export const StopExecutionInputFilterSensitiveLog = (obj) => ({
660
699
  export const UpdateStateMachineInputFilterSensitiveLog = (obj) => ({
661
700
  ...obj,
662
701
  ...(obj.definition && { definition: SENSITIVE_STRING }),
702
+ ...(obj.versionDescription && { versionDescription: SENSITIVE_STRING }),
703
+ });
704
+ export const UpdateStateMachineAliasInputFilterSensitiveLog = (obj) => ({
705
+ ...obj,
706
+ ...(obj.description && { description: SENSITIVE_STRING }),
663
707
  });