@aws-sdk/client-codecatalyst 3.450.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.
- package/README.md +64 -1
- package/dist-cjs/CodeCatalyst.js +10 -0
- package/dist-cjs/CodeCatalystClient.js +17 -4
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +39 -0
- package/dist-cjs/commands/GetWorkflowCommand.js +50 -0
- package/dist-cjs/commands/GetWorkflowRunCommand.js +50 -0
- package/dist-cjs/commands/ListWorkflowRunsCommand.js +50 -0
- package/dist-cjs/commands/ListWorkflowsCommand.js +50 -0
- package/dist-cjs/commands/StartWorkflowRunCommand.js +50 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +25 -1
- package/dist-cjs/pagination/ListWorkflowRunsPaginator.js +29 -0
- package/dist-cjs/pagination/ListWorkflowsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +441 -5
- package/dist-cjs/runtimeConfig.browser.js +11 -0
- package/dist-cjs/runtimeConfig.js +10 -0
- package/dist-cjs/runtimeConfig.shared.js +10 -0
- package/dist-cjs/runtimeExtensions.js +3 -0
- package/dist-es/CodeCatalyst.js +10 -0
- package/dist-es/CodeCatalystClient.js +17 -4
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +33 -0
- package/dist-es/commands/GetWorkflowCommand.js +46 -0
- package/dist-es/commands/GetWorkflowRunCommand.js +46 -0
- package/dist-es/commands/ListWorkflowRunsCommand.js +46 -0
- package/dist-es/commands/ListWorkflowsCommand.js +46 -0
- package/dist-es/commands/StartWorkflowRunCommand.js +46 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +24 -0
- package/dist-es/pagination/ListWorkflowRunsPaginator.js +25 -0
- package/dist-es/pagination/ListWorkflowsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +429 -3
- package/dist-es/runtimeConfig.browser.js +11 -0
- package/dist-es/runtimeConfig.js +10 -0
- package/dist-es/runtimeConfig.shared.js +10 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/CodeCatalyst.d.ts +59 -1
- package/dist-types/CodeCatalystClient.d.ts +36 -6
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +67 -0
- package/dist-types/commands/GetWorkflowCommand.d.ts +107 -0
- package/dist-types/commands/GetWorkflowRunCommand.d.ts +105 -0
- package/dist-types/commands/ListDevEnvironmentsCommand.d.ts +1 -1
- package/dist-types/commands/ListEventLogsCommand.d.ts +10 -1
- package/dist-types/commands/ListWorkflowRunsCommand.d.ts +114 -0
- package/dist-types/commands/ListWorkflowsCommand.d.ts +114 -0
- package/dist-types/commands/StartWorkflowRunCommand.d.ts +99 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/index.d.ts +24 -1
- package/dist-types/models/models_0.d.ts +712 -222
- package/dist-types/pagination/ListWorkflowRunsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkflowsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -1
- package/dist-types/runtimeConfig.d.ts +3 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -1
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/CodeCatalyst.d.ts +85 -0
- package/dist-types/ts3.4/CodeCatalystClient.d.ts +38 -6
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +27 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetWorkflowCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetWorkflowRunCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListWorkflowRunsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartWorkflowRunCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +190 -61
- package/dist-types/ts3.4/pagination/ListWorkflowRunsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +5 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +38 -34
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
|
|
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>
|
package/dist-cjs/CodeCatalyst.js
CHANGED
|
@@ -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,
|
|
@@ -4,18 +4,27 @@ exports.CodeCatalystClient = exports.__Client = void 0;
|
|
|
4
4
|
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
5
5
|
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
6
6
|
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
7
|
-
const middleware_token_1 = require("@aws-sdk/middleware-token");
|
|
8
7
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
9
8
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
+
const core_1 = require("@smithy/core");
|
|
10
10
|
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
11
11
|
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
12
12
|
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
13
13
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
14
14
|
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
15
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
15
16
|
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
16
17
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
17
18
|
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
18
19
|
class CodeCatalystClient extends smithy_client_1.Client {
|
|
20
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
21
|
+
return httpAuthSchemeProvider_1.defaultCodeCatalystHttpAuthSchemeParametersProvider;
|
|
22
|
+
}
|
|
23
|
+
getIdentityProviderConfigProvider() {
|
|
24
|
+
return async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
25
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
19
28
|
constructor(...[configuration]) {
|
|
20
29
|
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
21
30
|
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
@@ -23,8 +32,8 @@ class CodeCatalystClient extends smithy_client_1.Client {
|
|
|
23
32
|
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
24
33
|
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
|
|
25
34
|
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
26
|
-
const _config_6 = (0,
|
|
27
|
-
const _config_7 = (0,
|
|
35
|
+
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
|
|
36
|
+
const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
|
|
28
37
|
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
29
38
|
super(_config_8);
|
|
30
39
|
this.config = _config_8;
|
|
@@ -33,8 +42,12 @@ class CodeCatalystClient extends smithy_client_1.Client {
|
|
|
33
42
|
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
34
43
|
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
35
44
|
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
36
|
-
this.middlewareStack.use((0, middleware_token_1.getTokenPlugin)(this.config));
|
|
37
45
|
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
46
|
+
this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
47
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
48
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
|
|
49
|
+
}));
|
|
50
|
+
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
|
38
51
|
}
|
|
39
52
|
destroy() {
|
|
40
53
|
super.destroy();
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
|
|
4
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
5
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
6
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
7
|
+
let _token = runtimeConfig.token;
|
|
8
|
+
return {
|
|
9
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
10
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
11
|
+
if (index === -1) {
|
|
12
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
httpAuthSchemes() {
|
|
19
|
+
return _httpAuthSchemes;
|
|
20
|
+
},
|
|
21
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
22
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
httpAuthSchemeProvider() {
|
|
25
|
+
return _httpAuthSchemeProvider;
|
|
26
|
+
},
|
|
27
|
+
setToken(token) {
|
|
28
|
+
_token = token;
|
|
29
|
+
},
|
|
30
|
+
token() {
|
|
31
|
+
return _token;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
|
|
36
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
37
|
+
return {
|
|
38
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
39
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
40
|
+
token: config.token(),
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveHttpAuthSchemeConfig = exports.defaultCodeCatalystHttpAuthSchemeProvider = exports.defaultCodeCatalystHttpAuthSchemeParametersProvider = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
|
+
const util_middleware_1 = require("@smithy/util-middleware");
|
|
6
|
+
const defaultCodeCatalystHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
|
+
return {
|
|
8
|
+
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
exports.defaultCodeCatalystHttpAuthSchemeParametersProvider = defaultCodeCatalystHttpAuthSchemeParametersProvider;
|
|
12
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
13
|
+
return {
|
|
14
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
15
|
+
propertiesExtractor: (__config, context) => ({
|
|
16
|
+
identityProperties: {
|
|
17
|
+
__config,
|
|
18
|
+
},
|
|
19
|
+
}),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
const defaultCodeCatalystHttpAuthSchemeProvider = (authParameters) => {
|
|
23
|
+
const options = [];
|
|
24
|
+
switch (authParameters.operation) {
|
|
25
|
+
default: {
|
|
26
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return options;
|
|
30
|
+
};
|
|
31
|
+
exports.defaultCodeCatalystHttpAuthSchemeProvider = defaultCodeCatalystHttpAuthSchemeProvider;
|
|
32
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
33
|
+
const token = (0, core_1.memoizeIdentityProvider)(config.token, core_1.isIdentityExpired, core_1.doesIdentityRequireRefresh);
|
|
34
|
+
return {
|
|
35
|
+
...config,
|
|
36
|
+
token,
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -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;
|