@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.
- package/README.md +64 -1
- package/dist-cjs/CodeCatalyst.js +10 -0
- package/dist-cjs/CodeCatalystClient.js +1 -1
- 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-es/CodeCatalyst.js +10 -0
- package/dist-es/CodeCatalystClient.js +1 -1
- 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-types/CodeCatalyst.d.ts +59 -1
- package/dist-types/CodeCatalystClient.d.ts +31 -3
- 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/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/ts3.4/CodeCatalyst.d.ts +85 -0
- package/dist-types/ts3.4/CodeCatalystClient.d.ts +30 -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/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/package.json +4 -2
|
@@ -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";
|