@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/dist-es/CodeCatalyst.js
CHANGED
|
@@ -17,6 +17,8 @@ import { GetSourceRepositoryCommand, } from "./commands/GetSourceRepositoryComma
|
|
|
17
17
|
import { GetSpaceCommand } from "./commands/GetSpaceCommand";
|
|
18
18
|
import { GetSubscriptionCommand, } from "./commands/GetSubscriptionCommand";
|
|
19
19
|
import { GetUserDetailsCommand, } from "./commands/GetUserDetailsCommand";
|
|
20
|
+
import { GetWorkflowCommand } from "./commands/GetWorkflowCommand";
|
|
21
|
+
import { GetWorkflowRunCommand, } from "./commands/GetWorkflowRunCommand";
|
|
20
22
|
import { ListAccessTokensCommand, } from "./commands/ListAccessTokensCommand";
|
|
21
23
|
import { ListDevEnvironmentsCommand, } from "./commands/ListDevEnvironmentsCommand";
|
|
22
24
|
import { ListDevEnvironmentSessionsCommand, } from "./commands/ListDevEnvironmentSessionsCommand";
|
|
@@ -25,8 +27,11 @@ import { ListProjectsCommand, } from "./commands/ListProjectsCommand";
|
|
|
25
27
|
import { ListSourceRepositoriesCommand, } from "./commands/ListSourceRepositoriesCommand";
|
|
26
28
|
import { ListSourceRepositoryBranchesCommand, } from "./commands/ListSourceRepositoryBranchesCommand";
|
|
27
29
|
import { ListSpacesCommand } from "./commands/ListSpacesCommand";
|
|
30
|
+
import { ListWorkflowRunsCommand, } from "./commands/ListWorkflowRunsCommand";
|
|
31
|
+
import { ListWorkflowsCommand, } from "./commands/ListWorkflowsCommand";
|
|
28
32
|
import { StartDevEnvironmentCommand, } from "./commands/StartDevEnvironmentCommand";
|
|
29
33
|
import { StartDevEnvironmentSessionCommand, } from "./commands/StartDevEnvironmentSessionCommand";
|
|
34
|
+
import { StartWorkflowRunCommand, } from "./commands/StartWorkflowRunCommand";
|
|
30
35
|
import { StopDevEnvironmentCommand, } from "./commands/StopDevEnvironmentCommand";
|
|
31
36
|
import { StopDevEnvironmentSessionCommand, } from "./commands/StopDevEnvironmentSessionCommand";
|
|
32
37
|
import { UpdateDevEnvironmentCommand, } from "./commands/UpdateDevEnvironmentCommand";
|
|
@@ -51,6 +56,8 @@ const commands = {
|
|
|
51
56
|
GetSpaceCommand,
|
|
52
57
|
GetSubscriptionCommand,
|
|
53
58
|
GetUserDetailsCommand,
|
|
59
|
+
GetWorkflowCommand,
|
|
60
|
+
GetWorkflowRunCommand,
|
|
54
61
|
ListAccessTokensCommand,
|
|
55
62
|
ListDevEnvironmentsCommand,
|
|
56
63
|
ListDevEnvironmentSessionsCommand,
|
|
@@ -59,8 +66,11 @@ const commands = {
|
|
|
59
66
|
ListSourceRepositoriesCommand,
|
|
60
67
|
ListSourceRepositoryBranchesCommand,
|
|
61
68
|
ListSpacesCommand,
|
|
69
|
+
ListWorkflowRunsCommand,
|
|
70
|
+
ListWorkflowsCommand,
|
|
62
71
|
StartDevEnvironmentCommand,
|
|
63
72
|
StartDevEnvironmentSessionCommand,
|
|
73
|
+
StartWorkflowRunCommand,
|
|
64
74
|
StopDevEnvironmentCommand,
|
|
65
75
|
StopDevEnvironmentSessionCommand,
|
|
66
76
|
UpdateDevEnvironmentCommand,
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
2
2
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
3
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
4
|
-
import { getTokenPlugin, resolveTokenConfig } from "@aws-sdk/middleware-token";
|
|
5
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
6
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
7
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
8
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
9
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
10
10
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
11
|
+
import { defaultCodeCatalystHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
11
12
|
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
12
13
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
14
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
14
15
|
export { __Client };
|
|
15
16
|
export class CodeCatalystClient extends __Client {
|
|
17
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
18
|
+
return defaultCodeCatalystHttpAuthSchemeParametersProvider;
|
|
19
|
+
}
|
|
20
|
+
getIdentityProviderConfigProvider() {
|
|
21
|
+
return async (config) => new DefaultIdentityProviderConfig({
|
|
22
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
16
25
|
constructor(...[configuration]) {
|
|
17
26
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
18
27
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -20,8 +29,8 @@ export class CodeCatalystClient extends __Client {
|
|
|
20
29
|
const _config_3 = resolveEndpointConfig(_config_2);
|
|
21
30
|
const _config_4 = resolveRetryConfig(_config_3);
|
|
22
31
|
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
23
|
-
const _config_6 =
|
|
24
|
-
const _config_7 =
|
|
32
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
33
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
25
34
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
26
35
|
super(_config_8);
|
|
27
36
|
this.config = _config_8;
|
|
@@ -30,8 +39,12 @@ export class CodeCatalystClient extends __Client {
|
|
|
30
39
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
31
40
|
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
32
41
|
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
33
|
-
this.middlewareStack.use(getTokenPlugin(this.config));
|
|
34
42
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
43
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
44
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
45
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
|
|
46
|
+
}));
|
|
47
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
35
48
|
}
|
|
36
49
|
destroy() {
|
|
37
50
|
super.destroy();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _token = runtimeConfig.token;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setToken(token) {
|
|
25
|
+
_token = token;
|
|
26
|
+
},
|
|
27
|
+
token() {
|
|
28
|
+
return _token;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
token: config.token(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
|
|
2
|
+
import { getSmithyContext } from "@smithy/util-middleware";
|
|
3
|
+
export const defaultCodeCatalystHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
9
|
+
return {
|
|
10
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
11
|
+
propertiesExtractor: (__config, context) => ({
|
|
12
|
+
identityProperties: {
|
|
13
|
+
__config,
|
|
14
|
+
},
|
|
15
|
+
}),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export const defaultCodeCatalystHttpAuthSchemeProvider = (authParameters) => {
|
|
19
|
+
const options = [];
|
|
20
|
+
switch (authParameters.operation) {
|
|
21
|
+
default: {
|
|
22
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return options;
|
|
26
|
+
};
|
|
27
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
28
|
+
const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
|
|
29
|
+
return {
|
|
30
|
+
...config,
|
|
31
|
+
token,
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_GetWorkflowCommand, se_GetWorkflowCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetWorkflowCommand 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
|
+
};
|
|
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, GetWorkflowCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CodeCatalystClient";
|
|
25
|
+
const commandName = "GetWorkflowCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
33
|
+
service: "CodeCatalyst",
|
|
34
|
+
operation: "GetWorkflow",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return se_GetWorkflowCommand(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return de_GetWorkflowCommand(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_GetWorkflowRunCommand, se_GetWorkflowRunCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetWorkflowRunCommand 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
|
+
};
|
|
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, GetWorkflowRunCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CodeCatalystClient";
|
|
25
|
+
const commandName = "GetWorkflowRunCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
33
|
+
service: "CodeCatalyst",
|
|
34
|
+
operation: "GetWorkflowRun",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return se_GetWorkflowRunCommand(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return de_GetWorkflowRunCommand(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListWorkflowRunsCommand, se_ListWorkflowRunsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListWorkflowRunsCommand 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
|
+
};
|
|
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, ListWorkflowRunsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CodeCatalystClient";
|
|
25
|
+
const commandName = "ListWorkflowRunsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
33
|
+
service: "CodeCatalyst",
|
|
34
|
+
operation: "ListWorkflowRuns",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return se_ListWorkflowRunsCommand(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return de_ListWorkflowRunsCommand(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListWorkflowsCommand, se_ListWorkflowsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListWorkflowsCommand 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
|
+
};
|
|
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, ListWorkflowsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CodeCatalystClient";
|
|
25
|
+
const commandName = "ListWorkflowsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
33
|
+
service: "CodeCatalyst",
|
|
34
|
+
operation: "ListWorkflows",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return se_ListWorkflowsCommand(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return de_ListWorkflowsCommand(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_StartWorkflowRunCommand, se_StartWorkflowRunCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StartWorkflowRunCommand 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
|
+
};
|
|
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, StartWorkflowRunCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CodeCatalystClient";
|
|
25
|
+
const commandName = "StartWorkflowRunCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
33
|
+
service: "CodeCatalyst",
|
|
34
|
+
operation: "StartWorkflowRun",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return se_StartWorkflowRunCommand(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return de_StartWorkflowRunCommand(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -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";
|
|
@@ -103,6 +103,7 @@ export const DevEnvironmentSessionType = {
|
|
|
103
103
|
SSM: "SSM",
|
|
104
104
|
};
|
|
105
105
|
export const ComparisonOperator = {
|
|
106
|
+
BEGINS_WITH: "BEGINS_WITH",
|
|
106
107
|
EQUALS: "EQ",
|
|
107
108
|
GREATER_THAN: "GT",
|
|
108
109
|
GREATER_THAN_OR_EQUALS: "GE",
|
|
@@ -111,6 +112,29 @@ export const ComparisonOperator = {
|
|
|
111
112
|
};
|
|
112
113
|
export const FilterKey = {
|
|
113
114
|
HAS_ACCESS_TO: "hasAccessTo",
|
|
115
|
+
NAME: "name",
|
|
116
|
+
};
|
|
117
|
+
export const WorkflowRunMode = {
|
|
118
|
+
PARALLEL: "PARALLEL",
|
|
119
|
+
QUEUED: "QUEUED",
|
|
120
|
+
SUPERSEDED: "SUPERSEDED",
|
|
121
|
+
};
|
|
122
|
+
export const WorkflowStatus = {
|
|
123
|
+
ACTIVE: "ACTIVE",
|
|
124
|
+
INVALID: "INVALID",
|
|
125
|
+
};
|
|
126
|
+
export const WorkflowRunStatus = {
|
|
127
|
+
ABANDONED: "ABANDONED",
|
|
128
|
+
CANCELLED: "CANCELLED",
|
|
129
|
+
FAILED: "FAILED",
|
|
130
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
131
|
+
NOT_RUN: "NOT_RUN",
|
|
132
|
+
PROVISIONING: "PROVISIONING",
|
|
133
|
+
STOPPED: "STOPPED",
|
|
134
|
+
STOPPING: "STOPPING",
|
|
135
|
+
SUCCEEDED: "SUCCEEDED",
|
|
136
|
+
SUPERSEDED: "SUPERSEDED",
|
|
137
|
+
VALIDATING: "VALIDATING",
|
|
114
138
|
};
|
|
115
139
|
export const CreateAccessTokenResponseFilterSensitiveLog = (obj) => ({
|
|
116
140
|
...obj,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CodeCatalystClient } from "../CodeCatalystClient";
|
|
2
|
+
import { ListWorkflowRunsCommand, } from "../commands/ListWorkflowRunsCommand";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListWorkflowRunsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListWorkflowRuns(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof CodeCatalystClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CodeCatalystClient } from "../CodeCatalystClient";
|
|
2
|
+
import { ListWorkflowsCommand, } from "../commands/ListWorkflowsCommand";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListWorkflowsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListWorkflows(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof CodeCatalystClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -7,3 +7,5 @@ export * from "./ListProjectsPaginator";
|
|
|
7
7
|
export * from "./ListSourceRepositoriesPaginator";
|
|
8
8
|
export * from "./ListSourceRepositoryBranchesPaginator";
|
|
9
9
|
export * from "./ListSpacesPaginator";
|
|
10
|
+
export * from "./ListWorkflowRunsPaginator";
|
|
11
|
+
export * from "./ListWorkflowsPaginator";
|