@aws-sdk/client-codecatalyst 3.451.0 → 3.453.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/commands/GetWorkflowCommand.js +50 -0
  4. package/dist-cjs/commands/GetWorkflowRunCommand.js +50 -0
  5. package/dist-cjs/commands/ListWorkflowRunsCommand.js +50 -0
  6. package/dist-cjs/commands/ListWorkflowsCommand.js +50 -0
  7. package/dist-cjs/commands/StartWorkflowRunCommand.js +50 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +25 -1
  10. package/dist-cjs/pagination/ListWorkflowRunsPaginator.js +29 -0
  11. package/dist-cjs/pagination/ListWorkflowsPaginator.js +29 -0
  12. package/dist-cjs/pagination/index.js +2 -0
  13. package/dist-cjs/protocols/Aws_restJson1.js +445 -5
  14. package/dist-es/CodeCatalyst.js +10 -0
  15. package/dist-es/commands/GetWorkflowCommand.js +46 -0
  16. package/dist-es/commands/GetWorkflowRunCommand.js +46 -0
  17. package/dist-es/commands/ListWorkflowRunsCommand.js +46 -0
  18. package/dist-es/commands/ListWorkflowsCommand.js +46 -0
  19. package/dist-es/commands/StartWorkflowRunCommand.js +46 -0
  20. package/dist-es/commands/index.js +5 -0
  21. package/dist-es/models/models_0.js +24 -0
  22. package/dist-es/pagination/ListWorkflowRunsPaginator.js +25 -0
  23. package/dist-es/pagination/ListWorkflowsPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +2 -0
  25. package/dist-es/protocols/Aws_restJson1.js +433 -3
  26. package/dist-types/CodeCatalyst.d.ts +59 -1
  27. package/dist-types/CodeCatalystClient.d.ts +31 -3
  28. package/dist-types/commands/CreateDevEnvironmentCommand.d.ts +2 -0
  29. package/dist-types/commands/GetDevEnvironmentCommand.d.ts +1 -0
  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 +2 -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 +728 -218
  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 +194 -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
@@ -0,0 +1,99 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CodeCatalystClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeCatalystClient";
5
+ import { StartWorkflowRunRequest, StartWorkflowRunResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartWorkflowRunCommand}.
14
+ */
15
+ export interface StartWorkflowRunCommandInput extends StartWorkflowRunRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartWorkflowRunCommand}.
21
+ */
22
+ export interface StartWorkflowRunCommandOutput extends StartWorkflowRunResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Begins a run of a specified workflow.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CodeCatalystClient, StartWorkflowRunCommand } from "@aws-sdk/client-codecatalyst"; // ES Modules import
31
+ * // const { CodeCatalystClient, StartWorkflowRunCommand } = require("@aws-sdk/client-codecatalyst"); // CommonJS import
32
+ * const client = new CodeCatalystClient(config);
33
+ * const input = { // StartWorkflowRunRequest
34
+ * spaceName: "STRING_VALUE", // required
35
+ * projectName: "STRING_VALUE", // required
36
+ * workflowId: "STRING_VALUE", // required
37
+ * clientToken: "STRING_VALUE",
38
+ * };
39
+ * const command = new StartWorkflowRunCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // StartWorkflowRunResponse
42
+ * // spaceName: "STRING_VALUE", // required
43
+ * // projectName: "STRING_VALUE", // required
44
+ * // id: "STRING_VALUE", // required
45
+ * // workflowId: "STRING_VALUE", // required
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param StartWorkflowRunCommandInput - {@link StartWorkflowRunCommandInput}
51
+ * @returns {@link StartWorkflowRunCommandOutput}
52
+ * @see {@link StartWorkflowRunCommandInput} for command's `input` shape.
53
+ * @see {@link StartWorkflowRunCommandOutput} for command's `response` shape.
54
+ * @see {@link CodeCatalystClientResolvedConfig | config} for CodeCatalystClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.</p>
58
+ *
59
+ * @throws {@link ConflictException} (client fault)
60
+ * <p>The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request.
61
+ * Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.</p>
65
+ *
66
+ * @throws {@link ServiceQuotaExceededException} (client fault)
67
+ * <p>The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce
68
+ * the number of resources, or change the tier if applicable.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The request was denied due to request throttling.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.</p>
75
+ *
76
+ * @throws {@link CodeCatalystServiceException}
77
+ * <p>Base exception class for all service exceptions from CodeCatalyst service.</p>
78
+ *
79
+ */
80
+ export declare class StartWorkflowRunCommand extends $Command<StartWorkflowRunCommandInput, StartWorkflowRunCommandOutput, CodeCatalystClientResolvedConfig> {
81
+ readonly input: StartWorkflowRunCommandInput;
82
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
83
+ /**
84
+ * @public
85
+ */
86
+ constructor(input: StartWorkflowRunCommandInput);
87
+ /**
88
+ * @internal
89
+ */
90
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeCatalystClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartWorkflowRunCommandInput, StartWorkflowRunCommandOutput>;
91
+ /**
92
+ * @internal
93
+ */
94
+ private serialize;
95
+ /**
96
+ * @internal
97
+ */
98
+ private deserialize;
99
+ }
@@ -15,6 +15,8 @@ export * from "./GetSourceRepositoryCommand";
15
15
  export * from "./GetSpaceCommand";
16
16
  export * from "./GetSubscriptionCommand";
17
17
  export * from "./GetUserDetailsCommand";
18
+ export * from "./GetWorkflowCommand";
19
+ export * from "./GetWorkflowRunCommand";
18
20
  export * from "./ListAccessTokensCommand";
19
21
  export * from "./ListDevEnvironmentSessionsCommand";
20
22
  export * from "./ListDevEnvironmentsCommand";
@@ -23,8 +25,11 @@ export * from "./ListProjectsCommand";
23
25
  export * from "./ListSourceRepositoriesCommand";
24
26
  export * from "./ListSourceRepositoryBranchesCommand";
25
27
  export * from "./ListSpacesCommand";
28
+ export * from "./ListWorkflowRunsCommand";
29
+ export * from "./ListWorkflowsCommand";
26
30
  export * from "./StartDevEnvironmentCommand";
27
31
  export * from "./StartDevEnvironmentSessionCommand";
32
+ export * from "./StartWorkflowRunCommand";
28
33
  export * from "./StopDevEnvironmentCommand";
29
34
  export * from "./StopDevEnvironmentSessionCommand";
30
35
  export * from "./UpdateDevEnvironmentCommand";
@@ -22,7 +22,7 @@
22
22
  * </li>
23
23
  * <li>
24
24
  * <p>
25
- * <a>UpdateSpace</a>, which hanges one or more values for a space.</p>
25
+ * <a>UpdateSpace</a>, which changes one or more values for a space.</p>
26
26
  * </li>
27
27
  * </ul>
28
28
  * <p>Projects, by calling the following:</p>
@@ -123,6 +123,29 @@
123
123
  * <a>UpdateDevEnvironment</a>, which changes one or more values for a Dev Environment.</p>
124
124
  * </li>
125
125
  * </ul>
126
+ * <p>Workflows, by calling the following:</p>
127
+ * <ul>
128
+ * <li>
129
+ * <p>
130
+ * <a>GetWorkflow</a>, which returns information about a workflow.</p>
131
+ * </li>
132
+ * <li>
133
+ * <p>
134
+ * <a>GetWorkflowRun</a>, which returns information about a specified run of a workflow.</p>
135
+ * </li>
136
+ * <li>
137
+ * <p>
138
+ * <a>ListWorkflowRuns</a>, which retrieves a list of runs of a specified workflow.</p>
139
+ * </li>
140
+ * <li>
141
+ * <p>
142
+ * <a>ListWorkflows</a>, which retrieves a list of workflows in a specified project.</p>
143
+ * </li>
144
+ * <li>
145
+ * <p>
146
+ * <a>StartWorkflowRun</a>, which starts a run of a specified workflow.</p>
147
+ * </li>
148
+ * </ul>
126
149
  * <p>Security, activity, and resource management in Amazon CodeCatalyst, by calling the following:</p>
127
150
  * <ul>
128
151
  * <li>