@aws-sdk/client-codecatalyst 3.451.0 → 3.452.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 (57) hide show
  1. package/README.md +64 -1
  2. package/dist-cjs/CodeCatalyst.js +10 -0
  3. package/dist-cjs/CodeCatalystClient.js +1 -1
  4. package/dist-cjs/commands/GetWorkflowCommand.js +50 -0
  5. package/dist-cjs/commands/GetWorkflowRunCommand.js +50 -0
  6. package/dist-cjs/commands/ListWorkflowRunsCommand.js +50 -0
  7. package/dist-cjs/commands/ListWorkflowsCommand.js +50 -0
  8. package/dist-cjs/commands/StartWorkflowRunCommand.js +50 -0
  9. package/dist-cjs/commands/index.js +5 -0
  10. package/dist-cjs/models/models_0.js +25 -1
  11. package/dist-cjs/pagination/ListWorkflowRunsPaginator.js +29 -0
  12. package/dist-cjs/pagination/ListWorkflowsPaginator.js +29 -0
  13. package/dist-cjs/pagination/index.js +2 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +441 -5
  15. package/dist-es/CodeCatalyst.js +10 -0
  16. package/dist-es/CodeCatalystClient.js +1 -1
  17. package/dist-es/commands/GetWorkflowCommand.js +46 -0
  18. package/dist-es/commands/GetWorkflowRunCommand.js +46 -0
  19. package/dist-es/commands/ListWorkflowRunsCommand.js +46 -0
  20. package/dist-es/commands/ListWorkflowsCommand.js +46 -0
  21. package/dist-es/commands/StartWorkflowRunCommand.js +46 -0
  22. package/dist-es/commands/index.js +5 -0
  23. package/dist-es/models/models_0.js +24 -0
  24. package/dist-es/pagination/ListWorkflowRunsPaginator.js +25 -0
  25. package/dist-es/pagination/ListWorkflowsPaginator.js +25 -0
  26. package/dist-es/pagination/index.js +2 -0
  27. package/dist-es/protocols/Aws_restJson1.js +429 -3
  28. package/dist-types/CodeCatalyst.d.ts +59 -1
  29. package/dist-types/CodeCatalystClient.d.ts +31 -3
  30. package/dist-types/commands/GetWorkflowCommand.d.ts +107 -0
  31. package/dist-types/commands/GetWorkflowRunCommand.d.ts +105 -0
  32. package/dist-types/commands/ListDevEnvironmentsCommand.d.ts +1 -1
  33. package/dist-types/commands/ListEventLogsCommand.d.ts +10 -1
  34. package/dist-types/commands/ListWorkflowRunsCommand.d.ts +114 -0
  35. package/dist-types/commands/ListWorkflowsCommand.d.ts +114 -0
  36. package/dist-types/commands/StartWorkflowRunCommand.d.ts +99 -0
  37. package/dist-types/commands/index.d.ts +5 -0
  38. package/dist-types/index.d.ts +24 -1
  39. package/dist-types/models/models_0.d.ts +712 -222
  40. package/dist-types/pagination/ListWorkflowRunsPaginator.d.ts +7 -0
  41. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +7 -0
  42. package/dist-types/pagination/index.d.ts +2 -0
  43. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  44. package/dist-types/ts3.4/CodeCatalyst.d.ts +85 -0
  45. package/dist-types/ts3.4/CodeCatalystClient.d.ts +30 -0
  46. package/dist-types/ts3.4/commands/GetWorkflowCommand.d.ts +35 -0
  47. package/dist-types/ts3.4/commands/GetWorkflowRunCommand.d.ts +38 -0
  48. package/dist-types/ts3.4/commands/ListWorkflowRunsCommand.d.ts +38 -0
  49. package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +38 -0
  50. package/dist-types/ts3.4/commands/StartWorkflowRunCommand.d.ts +38 -0
  51. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  52. package/dist-types/ts3.4/models/models_0.d.ts +190 -61
  53. package/dist-types/ts3.4/pagination/ListWorkflowRunsPaginator.d.ts +11 -0
  54. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +11 -0
  55. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  56. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  57. package/package.json +4 -2
package/README.md CHANGED
@@ -29,7 +29,7 @@ and the billing plan for the space.</p>
29
29
  </li>
30
30
  <li>
31
31
  <p>
32
- <a>UpdateSpace</a>, which hanges one or more values for a space.</p>
32
+ <a>UpdateSpace</a>, which changes one or more values for a space.</p>
33
33
  </li>
34
34
  </ul>
35
35
  <p>Projects, by calling the following:</p>
@@ -130,6 +130,29 @@ where you can quickly work on the code stored in the source repositories of your
130
130
  <a>UpdateDevEnvironment</a>, which changes one or more values for a Dev Environment.</p>
131
131
  </li>
132
132
  </ul>
133
+ <p>Workflows, by calling the following:</p>
134
+ <ul>
135
+ <li>
136
+ <p>
137
+ <a>GetWorkflow</a>, which returns information about a workflow.</p>
138
+ </li>
139
+ <li>
140
+ <p>
141
+ <a>GetWorkflowRun</a>, which returns information about a specified run of a workflow.</p>
142
+ </li>
143
+ <li>
144
+ <p>
145
+ <a>ListWorkflowRuns</a>, which retrieves a list of runs of a specified workflow.</p>
146
+ </li>
147
+ <li>
148
+ <p>
149
+ <a>ListWorkflows</a>, which retrieves a list of workflows in a specified project.</p>
150
+ </li>
151
+ <li>
152
+ <p>
153
+ <a>StartWorkflowRun</a>, which starts a run of a specified workflow.</p>
154
+ </li>
155
+ </ul>
133
156
  <p>Security, activity, and resource management in Amazon CodeCatalyst, by calling the following:</p>
134
157
  <ul>
135
158
  <li>
@@ -489,6 +512,22 @@ GetUserDetails
489
512
 
490
513
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/getuserdetailscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getuserdetailscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getuserdetailscommandoutput.html)
491
514
 
515
+ </details>
516
+ <details>
517
+ <summary>
518
+ GetWorkflow
519
+ </summary>
520
+
521
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/getworkflowcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getworkflowcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getworkflowcommandoutput.html)
522
+
523
+ </details>
524
+ <details>
525
+ <summary>
526
+ GetWorkflowRun
527
+ </summary>
528
+
529
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/getworkflowruncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getworkflowruncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getworkflowruncommandoutput.html)
530
+
492
531
  </details>
493
532
  <details>
494
533
  <summary>
@@ -553,6 +592,22 @@ ListSpaces
553
592
 
554
593
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/listspacescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listspacescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listspacescommandoutput.html)
555
594
 
595
+ </details>
596
+ <details>
597
+ <summary>
598
+ ListWorkflowRuns
599
+ </summary>
600
+
601
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/listworkflowrunscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listworkflowrunscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listworkflowrunscommandoutput.html)
602
+
603
+ </details>
604
+ <details>
605
+ <summary>
606
+ ListWorkflows
607
+ </summary>
608
+
609
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/listworkflowscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listworkflowscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listworkflowscommandoutput.html)
610
+
556
611
  </details>
557
612
  <details>
558
613
  <summary>
@@ -569,6 +624,14 @@ StartDevEnvironmentSession
569
624
 
570
625
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/startdevenvironmentsessioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/startdevenvironmentsessioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/startdevenvironmentsessioncommandoutput.html)
571
626
 
627
+ </details>
628
+ <details>
629
+ <summary>
630
+ StartWorkflowRun
631
+ </summary>
632
+
633
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/startworkflowruncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/startworkflowruncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/startworkflowruncommandoutput.html)
634
+
572
635
  </details>
573
636
  <details>
574
637
  <summary>
@@ -20,6 +20,8 @@ const GetSourceRepositoryCommand_1 = require("./commands/GetSourceRepositoryComm
20
20
  const GetSpaceCommand_1 = require("./commands/GetSpaceCommand");
21
21
  const GetSubscriptionCommand_1 = require("./commands/GetSubscriptionCommand");
22
22
  const GetUserDetailsCommand_1 = require("./commands/GetUserDetailsCommand");
23
+ const GetWorkflowCommand_1 = require("./commands/GetWorkflowCommand");
24
+ const GetWorkflowRunCommand_1 = require("./commands/GetWorkflowRunCommand");
23
25
  const ListAccessTokensCommand_1 = require("./commands/ListAccessTokensCommand");
24
26
  const ListDevEnvironmentsCommand_1 = require("./commands/ListDevEnvironmentsCommand");
25
27
  const ListDevEnvironmentSessionsCommand_1 = require("./commands/ListDevEnvironmentSessionsCommand");
@@ -28,8 +30,11 @@ const ListProjectsCommand_1 = require("./commands/ListProjectsCommand");
28
30
  const ListSourceRepositoriesCommand_1 = require("./commands/ListSourceRepositoriesCommand");
29
31
  const ListSourceRepositoryBranchesCommand_1 = require("./commands/ListSourceRepositoryBranchesCommand");
30
32
  const ListSpacesCommand_1 = require("./commands/ListSpacesCommand");
33
+ const ListWorkflowRunsCommand_1 = require("./commands/ListWorkflowRunsCommand");
34
+ const ListWorkflowsCommand_1 = require("./commands/ListWorkflowsCommand");
31
35
  const StartDevEnvironmentCommand_1 = require("./commands/StartDevEnvironmentCommand");
32
36
  const StartDevEnvironmentSessionCommand_1 = require("./commands/StartDevEnvironmentSessionCommand");
37
+ const StartWorkflowRunCommand_1 = require("./commands/StartWorkflowRunCommand");
33
38
  const StopDevEnvironmentCommand_1 = require("./commands/StopDevEnvironmentCommand");
34
39
  const StopDevEnvironmentSessionCommand_1 = require("./commands/StopDevEnvironmentSessionCommand");
35
40
  const UpdateDevEnvironmentCommand_1 = require("./commands/UpdateDevEnvironmentCommand");
@@ -54,6 +59,8 @@ const commands = {
54
59
  GetSpaceCommand: GetSpaceCommand_1.GetSpaceCommand,
55
60
  GetSubscriptionCommand: GetSubscriptionCommand_1.GetSubscriptionCommand,
56
61
  GetUserDetailsCommand: GetUserDetailsCommand_1.GetUserDetailsCommand,
62
+ GetWorkflowCommand: GetWorkflowCommand_1.GetWorkflowCommand,
63
+ GetWorkflowRunCommand: GetWorkflowRunCommand_1.GetWorkflowRunCommand,
57
64
  ListAccessTokensCommand: ListAccessTokensCommand_1.ListAccessTokensCommand,
58
65
  ListDevEnvironmentsCommand: ListDevEnvironmentsCommand_1.ListDevEnvironmentsCommand,
59
66
  ListDevEnvironmentSessionsCommand: ListDevEnvironmentSessionsCommand_1.ListDevEnvironmentSessionsCommand,
@@ -62,8 +69,11 @@ const commands = {
62
69
  ListSourceRepositoriesCommand: ListSourceRepositoriesCommand_1.ListSourceRepositoriesCommand,
63
70
  ListSourceRepositoryBranchesCommand: ListSourceRepositoryBranchesCommand_1.ListSourceRepositoryBranchesCommand,
64
71
  ListSpacesCommand: ListSpacesCommand_1.ListSpacesCommand,
72
+ ListWorkflowRunsCommand: ListWorkflowRunsCommand_1.ListWorkflowRunsCommand,
73
+ ListWorkflowsCommand: ListWorkflowsCommand_1.ListWorkflowsCommand,
65
74
  StartDevEnvironmentCommand: StartDevEnvironmentCommand_1.StartDevEnvironmentCommand,
66
75
  StartDevEnvironmentSessionCommand: StartDevEnvironmentSessionCommand_1.StartDevEnvironmentSessionCommand,
76
+ StartWorkflowRunCommand: StartWorkflowRunCommand_1.StartWorkflowRunCommand,
67
77
  StopDevEnvironmentCommand: StopDevEnvironmentCommand_1.StopDevEnvironmentCommand,
68
78
  StopDevEnvironmentSessionCommand: StopDevEnvironmentSessionCommand_1.StopDevEnvironmentSessionCommand,
69
79
  UpdateDevEnvironmentCommand: UpdateDevEnvironmentCommand_1.UpdateDevEnvironmentCommand,
@@ -44,8 +44,8 @@ class CodeCatalystClient extends smithy_client_1.Client {
44
44
  this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
45
45
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
46
46
  this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
47
- identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
48
47
  httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
48
+ identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
49
49
  }));
50
50
  this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
51
51
  }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetWorkflowCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class GetWorkflowCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
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, GetWorkflowCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "CodeCatalystClient";
28
+ const commandName = "GetWorkflowCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ [types_1.SMITHY_CONTEXT_KEY]: {
36
+ service: "CodeCatalyst",
37
+ operation: "GetWorkflow",
38
+ },
39
+ };
40
+ const { requestHandler } = configuration;
41
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
+ }
43
+ serialize(input, context) {
44
+ return (0, Aws_restJson1_1.se_GetWorkflowCommand)(input, context);
45
+ }
46
+ deserialize(output, context) {
47
+ return (0, Aws_restJson1_1.de_GetWorkflowCommand)(output, context);
48
+ }
49
+ }
50
+ exports.GetWorkflowCommand = GetWorkflowCommand;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetWorkflowRunCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class GetWorkflowRunCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
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, GetWorkflowRunCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "CodeCatalystClient";
28
+ const commandName = "GetWorkflowRunCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ [types_1.SMITHY_CONTEXT_KEY]: {
36
+ service: "CodeCatalyst",
37
+ operation: "GetWorkflowRun",
38
+ },
39
+ };
40
+ const { requestHandler } = configuration;
41
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
+ }
43
+ serialize(input, context) {
44
+ return (0, Aws_restJson1_1.se_GetWorkflowRunCommand)(input, context);
45
+ }
46
+ deserialize(output, context) {
47
+ return (0, Aws_restJson1_1.de_GetWorkflowRunCommand)(output, context);
48
+ }
49
+ }
50
+ exports.GetWorkflowRunCommand = GetWorkflowRunCommand;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListWorkflowRunsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListWorkflowRunsCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
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, ListWorkflowRunsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "CodeCatalystClient";
28
+ const commandName = "ListWorkflowRunsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ [types_1.SMITHY_CONTEXT_KEY]: {
36
+ service: "CodeCatalyst",
37
+ operation: "ListWorkflowRuns",
38
+ },
39
+ };
40
+ const { requestHandler } = configuration;
41
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
+ }
43
+ serialize(input, context) {
44
+ return (0, Aws_restJson1_1.se_ListWorkflowRunsCommand)(input, context);
45
+ }
46
+ deserialize(output, context) {
47
+ return (0, Aws_restJson1_1.de_ListWorkflowRunsCommand)(output, context);
48
+ }
49
+ }
50
+ exports.ListWorkflowRunsCommand = ListWorkflowRunsCommand;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListWorkflowsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListWorkflowsCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
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, ListWorkflowsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "CodeCatalystClient";
28
+ const commandName = "ListWorkflowsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ [types_1.SMITHY_CONTEXT_KEY]: {
36
+ service: "CodeCatalyst",
37
+ operation: "ListWorkflows",
38
+ },
39
+ };
40
+ const { requestHandler } = configuration;
41
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
+ }
43
+ serialize(input, context) {
44
+ return (0, Aws_restJson1_1.se_ListWorkflowsCommand)(input, context);
45
+ }
46
+ deserialize(output, context) {
47
+ return (0, Aws_restJson1_1.de_ListWorkflowsCommand)(output, context);
48
+ }
49
+ }
50
+ exports.ListWorkflowsCommand = ListWorkflowsCommand;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartWorkflowRunCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class StartWorkflowRunCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
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, StartWorkflowRunCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "CodeCatalystClient";
28
+ const commandName = "StartWorkflowRunCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ [types_1.SMITHY_CONTEXT_KEY]: {
36
+ service: "CodeCatalyst",
37
+ operation: "StartWorkflowRun",
38
+ },
39
+ };
40
+ const { requestHandler } = configuration;
41
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
+ }
43
+ serialize(input, context) {
44
+ return (0, Aws_restJson1_1.se_StartWorkflowRunCommand)(input, context);
45
+ }
46
+ deserialize(output, context) {
47
+ return (0, Aws_restJson1_1.de_StartWorkflowRunCommand)(output, context);
48
+ }
49
+ }
50
+ exports.StartWorkflowRunCommand = StartWorkflowRunCommand;
@@ -18,6 +18,8 @@ tslib_1.__exportStar(require("./GetSourceRepositoryCommand"), exports);
18
18
  tslib_1.__exportStar(require("./GetSpaceCommand"), exports);
19
19
  tslib_1.__exportStar(require("./GetSubscriptionCommand"), exports);
20
20
  tslib_1.__exportStar(require("./GetUserDetailsCommand"), exports);
21
+ tslib_1.__exportStar(require("./GetWorkflowCommand"), exports);
22
+ tslib_1.__exportStar(require("./GetWorkflowRunCommand"), exports);
21
23
  tslib_1.__exportStar(require("./ListAccessTokensCommand"), exports);
22
24
  tslib_1.__exportStar(require("./ListDevEnvironmentSessionsCommand"), exports);
23
25
  tslib_1.__exportStar(require("./ListDevEnvironmentsCommand"), exports);
@@ -26,8 +28,11 @@ tslib_1.__exportStar(require("./ListProjectsCommand"), exports);
26
28
  tslib_1.__exportStar(require("./ListSourceRepositoriesCommand"), exports);
27
29
  tslib_1.__exportStar(require("./ListSourceRepositoryBranchesCommand"), exports);
28
30
  tslib_1.__exportStar(require("./ListSpacesCommand"), exports);
31
+ tslib_1.__exportStar(require("./ListWorkflowRunsCommand"), exports);
32
+ tslib_1.__exportStar(require("./ListWorkflowsCommand"), exports);
29
33
  tslib_1.__exportStar(require("./StartDevEnvironmentCommand"), exports);
30
34
  tslib_1.__exportStar(require("./StartDevEnvironmentSessionCommand"), exports);
35
+ tslib_1.__exportStar(require("./StartWorkflowRunCommand"), exports);
31
36
  tslib_1.__exportStar(require("./StopDevEnvironmentCommand"), exports);
32
37
  tslib_1.__exportStar(require("./StopDevEnvironmentSessionCommand"), exports);
33
38
  tslib_1.__exportStar(require("./UpdateDevEnvironmentCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartDevEnvironmentSessionResponseFilterSensitiveLog = exports.DevEnvironmentAccessDetailsFilterSensitiveLog = exports.CreateAccessTokenResponseFilterSensitiveLog = exports.FilterKey = exports.ComparisonOperator = exports.DevEnvironmentSessionType = exports.DevEnvironmentStatus = exports._InstanceType = exports.UserType = exports.OperationType = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ConflictException = exports.AccessDeniedException = void 0;
3
+ exports.StartDevEnvironmentSessionResponseFilterSensitiveLog = exports.DevEnvironmentAccessDetailsFilterSensitiveLog = exports.CreateAccessTokenResponseFilterSensitiveLog = exports.WorkflowRunStatus = exports.WorkflowStatus = exports.WorkflowRunMode = exports.FilterKey = exports.ComparisonOperator = exports.DevEnvironmentSessionType = exports.DevEnvironmentStatus = exports._InstanceType = exports.UserType = exports.OperationType = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const CodeCatalystServiceException_1 = require("./CodeCatalystServiceException");
6
6
  class AccessDeniedException extends CodeCatalystServiceException_1.CodeCatalystServiceException {
@@ -112,6 +112,7 @@ exports.DevEnvironmentSessionType = {
112
112
  SSM: "SSM",
113
113
  };
114
114
  exports.ComparisonOperator = {
115
+ BEGINS_WITH: "BEGINS_WITH",
115
116
  EQUALS: "EQ",
116
117
  GREATER_THAN: "GT",
117
118
  GREATER_THAN_OR_EQUALS: "GE",
@@ -120,6 +121,29 @@ exports.ComparisonOperator = {
120
121
  };
121
122
  exports.FilterKey = {
122
123
  HAS_ACCESS_TO: "hasAccessTo",
124
+ NAME: "name",
125
+ };
126
+ exports.WorkflowRunMode = {
127
+ PARALLEL: "PARALLEL",
128
+ QUEUED: "QUEUED",
129
+ SUPERSEDED: "SUPERSEDED",
130
+ };
131
+ exports.WorkflowStatus = {
132
+ ACTIVE: "ACTIVE",
133
+ INVALID: "INVALID",
134
+ };
135
+ exports.WorkflowRunStatus = {
136
+ ABANDONED: "ABANDONED",
137
+ CANCELLED: "CANCELLED",
138
+ FAILED: "FAILED",
139
+ IN_PROGRESS: "IN_PROGRESS",
140
+ NOT_RUN: "NOT_RUN",
141
+ PROVISIONING: "PROVISIONING",
142
+ STOPPED: "STOPPED",
143
+ STOPPING: "STOPPING",
144
+ SUCCEEDED: "SUCCEEDED",
145
+ SUPERSEDED: "SUPERSEDED",
146
+ VALIDATING: "VALIDATING",
123
147
  };
124
148
  const CreateAccessTokenResponseFilterSensitiveLog = (obj) => ({
125
149
  ...obj,
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListWorkflowRuns = void 0;
4
+ const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
+ const ListWorkflowRunsCommand_1 = require("../commands/ListWorkflowRunsCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListWorkflowRunsCommand_1.ListWorkflowRunsCommand(input), ...args);
8
+ };
9
+ async function* paginateListWorkflowRuns(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListWorkflowRuns = paginateListWorkflowRuns;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListWorkflows = void 0;
4
+ const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
+ const ListWorkflowsCommand_1 = require("../commands/ListWorkflowsCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListWorkflowsCommand_1.ListWorkflowsCommand(input), ...args);
8
+ };
9
+ async function* paginateListWorkflows(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListWorkflows = paginateListWorkflows;
@@ -10,3 +10,5 @@ tslib_1.__exportStar(require("./ListProjectsPaginator"), exports);
10
10
  tslib_1.__exportStar(require("./ListSourceRepositoriesPaginator"), exports);
11
11
  tslib_1.__exportStar(require("./ListSourceRepositoryBranchesPaginator"), exports);
12
12
  tslib_1.__exportStar(require("./ListSpacesPaginator"), exports);
13
+ tslib_1.__exportStar(require("./ListWorkflowRunsPaginator"), exports);
14
+ tslib_1.__exportStar(require("./ListWorkflowsPaginator"), exports);