@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.
- package/README.md +64 -1
- package/dist-cjs/CodeCatalyst.js +10 -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 +445 -5
- package/dist-es/CodeCatalyst.js +10 -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 +433 -3
- package/dist-types/CodeCatalyst.d.ts +59 -1
- package/dist-types/CodeCatalystClient.d.ts +31 -3
- package/dist-types/commands/CreateDevEnvironmentCommand.d.ts +2 -0
- package/dist-types/commands/GetDevEnvironmentCommand.d.ts +1 -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 +2 -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 +728 -218
- 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 +194 -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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_VerifySessionCommand = exports.de_UpdateSpaceCommand = exports.de_UpdateProjectCommand = exports.de_UpdateDevEnvironmentCommand = exports.de_StopDevEnvironmentSessionCommand = exports.de_StopDevEnvironmentCommand = exports.de_StartDevEnvironmentSessionCommand = exports.de_StartDevEnvironmentCommand = exports.de_ListSpacesCommand = exports.de_ListSourceRepositoryBranchesCommand = exports.de_ListSourceRepositoriesCommand = exports.de_ListProjectsCommand = exports.de_ListEventLogsCommand = exports.de_ListDevEnvironmentSessionsCommand = exports.de_ListDevEnvironmentsCommand = exports.de_ListAccessTokensCommand = void 0;
|
|
3
|
+
exports.de_GetProjectCommand = exports.de_GetDevEnvironmentCommand = exports.de_DeleteSpaceCommand = exports.de_DeleteSourceRepositoryCommand = exports.de_DeleteProjectCommand = exports.de_DeleteDevEnvironmentCommand = exports.de_DeleteAccessTokenCommand = exports.de_CreateSourceRepositoryBranchCommand = exports.de_CreateSourceRepositoryCommand = exports.de_CreateProjectCommand = exports.de_CreateDevEnvironmentCommand = exports.de_CreateAccessTokenCommand = exports.se_VerifySessionCommand = exports.se_UpdateSpaceCommand = exports.se_UpdateProjectCommand = exports.se_UpdateDevEnvironmentCommand = exports.se_StopDevEnvironmentSessionCommand = exports.se_StopDevEnvironmentCommand = exports.se_StartWorkflowRunCommand = exports.se_StartDevEnvironmentSessionCommand = exports.se_StartDevEnvironmentCommand = exports.se_ListWorkflowsCommand = exports.se_ListWorkflowRunsCommand = exports.se_ListSpacesCommand = exports.se_ListSourceRepositoryBranchesCommand = exports.se_ListSourceRepositoriesCommand = exports.se_ListProjectsCommand = exports.se_ListEventLogsCommand = exports.se_ListDevEnvironmentSessionsCommand = exports.se_ListDevEnvironmentsCommand = exports.se_ListAccessTokensCommand = exports.se_GetWorkflowRunCommand = exports.se_GetWorkflowCommand = exports.se_GetUserDetailsCommand = exports.se_GetSubscriptionCommand = exports.se_GetSpaceCommand = exports.se_GetSourceRepositoryCloneUrlsCommand = exports.se_GetSourceRepositoryCommand = exports.se_GetProjectCommand = exports.se_GetDevEnvironmentCommand = exports.se_DeleteSpaceCommand = exports.se_DeleteSourceRepositoryCommand = exports.se_DeleteProjectCommand = exports.se_DeleteDevEnvironmentCommand = exports.se_DeleteAccessTokenCommand = exports.se_CreateSourceRepositoryBranchCommand = exports.se_CreateSourceRepositoryCommand = exports.se_CreateProjectCommand = exports.se_CreateDevEnvironmentCommand = exports.se_CreateAccessTokenCommand = void 0;
|
|
4
|
+
exports.de_VerifySessionCommand = exports.de_UpdateSpaceCommand = exports.de_UpdateProjectCommand = exports.de_UpdateDevEnvironmentCommand = exports.de_StopDevEnvironmentSessionCommand = exports.de_StopDevEnvironmentCommand = exports.de_StartWorkflowRunCommand = exports.de_StartDevEnvironmentSessionCommand = exports.de_StartDevEnvironmentCommand = exports.de_ListWorkflowsCommand = exports.de_ListWorkflowRunsCommand = exports.de_ListSpacesCommand = exports.de_ListSourceRepositoryBranchesCommand = exports.de_ListSourceRepositoriesCommand = exports.de_ListProjectsCommand = exports.de_ListEventLogsCommand = exports.de_ListDevEnvironmentSessionsCommand = exports.de_ListDevEnvironmentsCommand = exports.de_ListAccessTokensCommand = exports.de_GetWorkflowRunCommand = exports.de_GetWorkflowCommand = exports.de_GetUserDetailsCommand = exports.de_GetSubscriptionCommand = exports.de_GetSpaceCommand = exports.de_GetSourceRepositoryCloneUrlsCommand = exports.de_GetSourceRepositoryCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const uuid_1 = require("uuid");
|
|
7
8
|
const CodeCatalystServiceException_1 = require("../models/CodeCatalystServiceException");
|
|
8
9
|
const models_0_1 = require("../models/models_0");
|
|
9
10
|
const se_CreateAccessTokenCommand = async (input, context) => {
|
|
@@ -46,6 +47,7 @@ const se_CreateDevEnvironmentCommand = async (input, context) => {
|
|
|
46
47
|
instanceType: [],
|
|
47
48
|
persistentStorage: (_) => (0, smithy_client_1._json)(_),
|
|
48
49
|
repositories: (_) => (0, smithy_client_1._json)(_),
|
|
50
|
+
vpcConnectionName: [],
|
|
49
51
|
}));
|
|
50
52
|
return new protocol_http_1.HttpRequest({
|
|
51
53
|
protocol,
|
|
@@ -357,6 +359,46 @@ const se_GetUserDetailsCommand = async (input, context) => {
|
|
|
357
359
|
});
|
|
358
360
|
};
|
|
359
361
|
exports.se_GetUserDetailsCommand = se_GetUserDetailsCommand;
|
|
362
|
+
const se_GetWorkflowCommand = async (input, context) => {
|
|
363
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
364
|
+
const headers = {};
|
|
365
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
366
|
+
"/v1/spaces/{spaceName}/projects/{projectName}/workflows/{id}";
|
|
367
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
|
|
368
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
369
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
370
|
+
let body;
|
|
371
|
+
return new protocol_http_1.HttpRequest({
|
|
372
|
+
protocol,
|
|
373
|
+
hostname,
|
|
374
|
+
port,
|
|
375
|
+
method: "GET",
|
|
376
|
+
headers,
|
|
377
|
+
path: resolvedPath,
|
|
378
|
+
body,
|
|
379
|
+
});
|
|
380
|
+
};
|
|
381
|
+
exports.se_GetWorkflowCommand = se_GetWorkflowCommand;
|
|
382
|
+
const se_GetWorkflowRunCommand = async (input, context) => {
|
|
383
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
384
|
+
const headers = {};
|
|
385
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
386
|
+
"/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns/{id}";
|
|
387
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
|
|
388
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
389
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
390
|
+
let body;
|
|
391
|
+
return new protocol_http_1.HttpRequest({
|
|
392
|
+
protocol,
|
|
393
|
+
hostname,
|
|
394
|
+
port,
|
|
395
|
+
method: "GET",
|
|
396
|
+
headers,
|
|
397
|
+
path: resolvedPath,
|
|
398
|
+
body,
|
|
399
|
+
});
|
|
400
|
+
};
|
|
401
|
+
exports.se_GetWorkflowRunCommand = se_GetWorkflowRunCommand;
|
|
360
402
|
const se_ListAccessTokensCommand = async (input, context) => {
|
|
361
403
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
362
404
|
const headers = {
|
|
@@ -384,15 +426,14 @@ const se_ListDevEnvironmentsCommand = async (input, context) => {
|
|
|
384
426
|
const headers = {
|
|
385
427
|
"content-type": "application/json",
|
|
386
428
|
};
|
|
387
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
388
|
-
"/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments";
|
|
429
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/devEnvironments";
|
|
389
430
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
|
|
390
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
391
431
|
let body;
|
|
392
432
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
393
433
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
394
434
|
maxResults: [],
|
|
395
435
|
nextToken: [],
|
|
436
|
+
projectName: [],
|
|
396
437
|
}));
|
|
397
438
|
return new protocol_http_1.HttpRequest({
|
|
398
439
|
protocol,
|
|
@@ -553,6 +594,65 @@ const se_ListSpacesCommand = async (input, context) => {
|
|
|
553
594
|
});
|
|
554
595
|
};
|
|
555
596
|
exports.se_ListSpacesCommand = se_ListSpacesCommand;
|
|
597
|
+
const se_ListWorkflowRunsCommand = async (input, context) => {
|
|
598
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
599
|
+
const headers = {
|
|
600
|
+
"content-type": "application/json",
|
|
601
|
+
};
|
|
602
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
603
|
+
"/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns";
|
|
604
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
|
|
605
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
606
|
+
const query = (0, smithy_client_1.map)({
|
|
607
|
+
workflowId: [, input.workflowId],
|
|
608
|
+
nextToken: [, input.nextToken],
|
|
609
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
610
|
+
});
|
|
611
|
+
let body;
|
|
612
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
613
|
+
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
614
|
+
}));
|
|
615
|
+
return new protocol_http_1.HttpRequest({
|
|
616
|
+
protocol,
|
|
617
|
+
hostname,
|
|
618
|
+
port,
|
|
619
|
+
method: "POST",
|
|
620
|
+
headers,
|
|
621
|
+
path: resolvedPath,
|
|
622
|
+
query,
|
|
623
|
+
body,
|
|
624
|
+
});
|
|
625
|
+
};
|
|
626
|
+
exports.se_ListWorkflowRunsCommand = se_ListWorkflowRunsCommand;
|
|
627
|
+
const se_ListWorkflowsCommand = async (input, context) => {
|
|
628
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
629
|
+
const headers = {
|
|
630
|
+
"content-type": "application/json",
|
|
631
|
+
};
|
|
632
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
633
|
+
"/v1/spaces/{spaceName}/projects/{projectName}/workflows";
|
|
634
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
|
|
635
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
636
|
+
const query = (0, smithy_client_1.map)({
|
|
637
|
+
nextToken: [, input.nextToken],
|
|
638
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
639
|
+
});
|
|
640
|
+
let body;
|
|
641
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
642
|
+
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
643
|
+
}));
|
|
644
|
+
return new protocol_http_1.HttpRequest({
|
|
645
|
+
protocol,
|
|
646
|
+
hostname,
|
|
647
|
+
port,
|
|
648
|
+
method: "POST",
|
|
649
|
+
headers,
|
|
650
|
+
path: resolvedPath,
|
|
651
|
+
query,
|
|
652
|
+
body,
|
|
653
|
+
});
|
|
654
|
+
};
|
|
655
|
+
exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
|
|
556
656
|
const se_StartDevEnvironmentCommand = async (input, context) => {
|
|
557
657
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
558
658
|
const headers = {
|
|
@@ -605,6 +705,34 @@ const se_StartDevEnvironmentSessionCommand = async (input, context) => {
|
|
|
605
705
|
});
|
|
606
706
|
};
|
|
607
707
|
exports.se_StartDevEnvironmentSessionCommand = se_StartDevEnvironmentSessionCommand;
|
|
708
|
+
const se_StartWorkflowRunCommand = async (input, context) => {
|
|
709
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
710
|
+
const headers = {
|
|
711
|
+
"content-type": "application/json",
|
|
712
|
+
};
|
|
713
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
714
|
+
"/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns";
|
|
715
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
|
|
716
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
717
|
+
const query = (0, smithy_client_1.map)({
|
|
718
|
+
workflowId: [, (0, smithy_client_1.expectNonNull)(input.workflowId, `workflowId`)],
|
|
719
|
+
});
|
|
720
|
+
let body;
|
|
721
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
722
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
723
|
+
}));
|
|
724
|
+
return new protocol_http_1.HttpRequest({
|
|
725
|
+
protocol,
|
|
726
|
+
hostname,
|
|
727
|
+
port,
|
|
728
|
+
method: "PUT",
|
|
729
|
+
headers,
|
|
730
|
+
path: resolvedPath,
|
|
731
|
+
query,
|
|
732
|
+
body,
|
|
733
|
+
});
|
|
734
|
+
};
|
|
735
|
+
exports.se_StartWorkflowRunCommand = se_StartWorkflowRunCommand;
|
|
608
736
|
const se_StopDevEnvironmentCommand = async (input, context) => {
|
|
609
737
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
610
738
|
const headers = {};
|
|
@@ -803,6 +931,7 @@ const de_CreateDevEnvironmentCommand = async (output, context) => {
|
|
|
803
931
|
id: smithy_client_1.expectString,
|
|
804
932
|
projectName: smithy_client_1.expectString,
|
|
805
933
|
spaceName: smithy_client_1.expectString,
|
|
934
|
+
vpcConnectionName: smithy_client_1.expectString,
|
|
806
935
|
});
|
|
807
936
|
Object.assign(contents, doc);
|
|
808
937
|
return contents;
|
|
@@ -1268,6 +1397,7 @@ const de_GetDevEnvironmentCommand = async (output, context) => {
|
|
|
1268
1397
|
spaceName: smithy_client_1.expectString,
|
|
1269
1398
|
status: smithy_client_1.expectString,
|
|
1270
1399
|
statusReason: smithy_client_1.expectString,
|
|
1400
|
+
vpcConnectionName: smithy_client_1.expectString,
|
|
1271
1401
|
});
|
|
1272
1402
|
Object.assign(contents, doc);
|
|
1273
1403
|
return contents;
|
|
@@ -1617,6 +1747,122 @@ const de_GetUserDetailsCommandError = async (output, context) => {
|
|
|
1617
1747
|
});
|
|
1618
1748
|
}
|
|
1619
1749
|
};
|
|
1750
|
+
const de_GetWorkflowCommand = async (output, context) => {
|
|
1751
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1752
|
+
return de_GetWorkflowCommandError(output, context);
|
|
1753
|
+
}
|
|
1754
|
+
const contents = (0, smithy_client_1.map)({
|
|
1755
|
+
$metadata: deserializeMetadata(output),
|
|
1756
|
+
});
|
|
1757
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1758
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1759
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1760
|
+
definition: smithy_client_1._json,
|
|
1761
|
+
id: smithy_client_1.expectString,
|
|
1762
|
+
lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1763
|
+
name: smithy_client_1.expectString,
|
|
1764
|
+
projectName: smithy_client_1.expectString,
|
|
1765
|
+
runMode: smithy_client_1.expectString,
|
|
1766
|
+
sourceBranchName: smithy_client_1.expectString,
|
|
1767
|
+
sourceRepositoryName: smithy_client_1.expectString,
|
|
1768
|
+
spaceName: smithy_client_1.expectString,
|
|
1769
|
+
status: smithy_client_1.expectString,
|
|
1770
|
+
});
|
|
1771
|
+
Object.assign(contents, doc);
|
|
1772
|
+
return contents;
|
|
1773
|
+
};
|
|
1774
|
+
exports.de_GetWorkflowCommand = de_GetWorkflowCommand;
|
|
1775
|
+
const de_GetWorkflowCommandError = async (output, context) => {
|
|
1776
|
+
const parsedOutput = {
|
|
1777
|
+
...output,
|
|
1778
|
+
body: await parseErrorBody(output.body, context),
|
|
1779
|
+
};
|
|
1780
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
|
+
switch (errorCode) {
|
|
1782
|
+
case "AccessDeniedException":
|
|
1783
|
+
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
1784
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1785
|
+
case "ConflictException":
|
|
1786
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
1787
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1788
|
+
case "ResourceNotFoundException":
|
|
1789
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
1790
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1791
|
+
case "ServiceQuotaExceededException":
|
|
1792
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
1793
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1794
|
+
case "ThrottlingException":
|
|
1795
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
1796
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1797
|
+
case "ValidationException":
|
|
1798
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
1799
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1800
|
+
default:
|
|
1801
|
+
const parsedBody = parsedOutput.body;
|
|
1802
|
+
return throwDefaultError({
|
|
1803
|
+
output,
|
|
1804
|
+
parsedBody,
|
|
1805
|
+
errorCode,
|
|
1806
|
+
});
|
|
1807
|
+
}
|
|
1808
|
+
};
|
|
1809
|
+
const de_GetWorkflowRunCommand = async (output, context) => {
|
|
1810
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1811
|
+
return de_GetWorkflowRunCommandError(output, context);
|
|
1812
|
+
}
|
|
1813
|
+
const contents = (0, smithy_client_1.map)({
|
|
1814
|
+
$metadata: deserializeMetadata(output),
|
|
1815
|
+
});
|
|
1816
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1817
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1818
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1819
|
+
id: smithy_client_1.expectString,
|
|
1820
|
+
lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1821
|
+
projectName: smithy_client_1.expectString,
|
|
1822
|
+
spaceName: smithy_client_1.expectString,
|
|
1823
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1824
|
+
status: smithy_client_1.expectString,
|
|
1825
|
+
statusReasons: smithy_client_1._json,
|
|
1826
|
+
workflowId: smithy_client_1.expectString,
|
|
1827
|
+
});
|
|
1828
|
+
Object.assign(contents, doc);
|
|
1829
|
+
return contents;
|
|
1830
|
+
};
|
|
1831
|
+
exports.de_GetWorkflowRunCommand = de_GetWorkflowRunCommand;
|
|
1832
|
+
const de_GetWorkflowRunCommandError = async (output, context) => {
|
|
1833
|
+
const parsedOutput = {
|
|
1834
|
+
...output,
|
|
1835
|
+
body: await parseErrorBody(output.body, context),
|
|
1836
|
+
};
|
|
1837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
|
+
switch (errorCode) {
|
|
1839
|
+
case "AccessDeniedException":
|
|
1840
|
+
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
1841
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1842
|
+
case "ConflictException":
|
|
1843
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
1844
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1845
|
+
case "ResourceNotFoundException":
|
|
1846
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
1847
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1848
|
+
case "ServiceQuotaExceededException":
|
|
1849
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
1850
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1851
|
+
case "ThrottlingException":
|
|
1852
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
1853
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1854
|
+
case "ValidationException":
|
|
1855
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
1856
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1857
|
+
default:
|
|
1858
|
+
const parsedBody = parsedOutput.body;
|
|
1859
|
+
return throwDefaultError({
|
|
1860
|
+
output,
|
|
1861
|
+
parsedBody,
|
|
1862
|
+
errorCode,
|
|
1863
|
+
});
|
|
1864
|
+
}
|
|
1865
|
+
};
|
|
1620
1866
|
const de_ListAccessTokensCommand = async (output, context) => {
|
|
1621
1867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1622
1868
|
return de_ListAccessTokensCommandError(output, context);
|
|
@@ -2017,6 +2263,106 @@ const de_ListSpacesCommandError = async (output, context) => {
|
|
|
2017
2263
|
});
|
|
2018
2264
|
}
|
|
2019
2265
|
};
|
|
2266
|
+
const de_ListWorkflowRunsCommand = async (output, context) => {
|
|
2267
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2268
|
+
return de_ListWorkflowRunsCommandError(output, context);
|
|
2269
|
+
}
|
|
2270
|
+
const contents = (0, smithy_client_1.map)({
|
|
2271
|
+
$metadata: deserializeMetadata(output),
|
|
2272
|
+
});
|
|
2273
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2274
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2275
|
+
items: (_) => de_WorkflowRunSummaries(_, context),
|
|
2276
|
+
nextToken: smithy_client_1.expectString,
|
|
2277
|
+
});
|
|
2278
|
+
Object.assign(contents, doc);
|
|
2279
|
+
return contents;
|
|
2280
|
+
};
|
|
2281
|
+
exports.de_ListWorkflowRunsCommand = de_ListWorkflowRunsCommand;
|
|
2282
|
+
const de_ListWorkflowRunsCommandError = async (output, context) => {
|
|
2283
|
+
const parsedOutput = {
|
|
2284
|
+
...output,
|
|
2285
|
+
body: await parseErrorBody(output.body, context),
|
|
2286
|
+
};
|
|
2287
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2288
|
+
switch (errorCode) {
|
|
2289
|
+
case "AccessDeniedException":
|
|
2290
|
+
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
2291
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2292
|
+
case "ConflictException":
|
|
2293
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
2294
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2295
|
+
case "ResourceNotFoundException":
|
|
2296
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
2297
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2298
|
+
case "ServiceQuotaExceededException":
|
|
2299
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
2300
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2301
|
+
case "ThrottlingException":
|
|
2302
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
2303
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2304
|
+
case "ValidationException":
|
|
2305
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
2306
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2307
|
+
default:
|
|
2308
|
+
const parsedBody = parsedOutput.body;
|
|
2309
|
+
return throwDefaultError({
|
|
2310
|
+
output,
|
|
2311
|
+
parsedBody,
|
|
2312
|
+
errorCode,
|
|
2313
|
+
});
|
|
2314
|
+
}
|
|
2315
|
+
};
|
|
2316
|
+
const de_ListWorkflowsCommand = async (output, context) => {
|
|
2317
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2318
|
+
return de_ListWorkflowsCommandError(output, context);
|
|
2319
|
+
}
|
|
2320
|
+
const contents = (0, smithy_client_1.map)({
|
|
2321
|
+
$metadata: deserializeMetadata(output),
|
|
2322
|
+
});
|
|
2323
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2324
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2325
|
+
items: (_) => de_WorkflowSummaries(_, context),
|
|
2326
|
+
nextToken: smithy_client_1.expectString,
|
|
2327
|
+
});
|
|
2328
|
+
Object.assign(contents, doc);
|
|
2329
|
+
return contents;
|
|
2330
|
+
};
|
|
2331
|
+
exports.de_ListWorkflowsCommand = de_ListWorkflowsCommand;
|
|
2332
|
+
const de_ListWorkflowsCommandError = async (output, context) => {
|
|
2333
|
+
const parsedOutput = {
|
|
2334
|
+
...output,
|
|
2335
|
+
body: await parseErrorBody(output.body, context),
|
|
2336
|
+
};
|
|
2337
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2338
|
+
switch (errorCode) {
|
|
2339
|
+
case "AccessDeniedException":
|
|
2340
|
+
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
2341
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2342
|
+
case "ConflictException":
|
|
2343
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
2344
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2345
|
+
case "ResourceNotFoundException":
|
|
2346
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
2347
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2348
|
+
case "ServiceQuotaExceededException":
|
|
2349
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
2350
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2351
|
+
case "ThrottlingException":
|
|
2352
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
2353
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2354
|
+
case "ValidationException":
|
|
2355
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
2356
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2357
|
+
default:
|
|
2358
|
+
const parsedBody = parsedOutput.body;
|
|
2359
|
+
return throwDefaultError({
|
|
2360
|
+
output,
|
|
2361
|
+
parsedBody,
|
|
2362
|
+
errorCode,
|
|
2363
|
+
});
|
|
2364
|
+
}
|
|
2365
|
+
};
|
|
2020
2366
|
const de_StartDevEnvironmentCommand = async (output, context) => {
|
|
2021
2367
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2022
2368
|
return de_StartDevEnvironmentCommandError(output, context);
|
|
@@ -2122,6 +2468,58 @@ const de_StartDevEnvironmentSessionCommandError = async (output, context) => {
|
|
|
2122
2468
|
});
|
|
2123
2469
|
}
|
|
2124
2470
|
};
|
|
2471
|
+
const de_StartWorkflowRunCommand = async (output, context) => {
|
|
2472
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2473
|
+
return de_StartWorkflowRunCommandError(output, context);
|
|
2474
|
+
}
|
|
2475
|
+
const contents = (0, smithy_client_1.map)({
|
|
2476
|
+
$metadata: deserializeMetadata(output),
|
|
2477
|
+
});
|
|
2478
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2479
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2480
|
+
id: smithy_client_1.expectString,
|
|
2481
|
+
projectName: smithy_client_1.expectString,
|
|
2482
|
+
spaceName: smithy_client_1.expectString,
|
|
2483
|
+
workflowId: smithy_client_1.expectString,
|
|
2484
|
+
});
|
|
2485
|
+
Object.assign(contents, doc);
|
|
2486
|
+
return contents;
|
|
2487
|
+
};
|
|
2488
|
+
exports.de_StartWorkflowRunCommand = de_StartWorkflowRunCommand;
|
|
2489
|
+
const de_StartWorkflowRunCommandError = async (output, context) => {
|
|
2490
|
+
const parsedOutput = {
|
|
2491
|
+
...output,
|
|
2492
|
+
body: await parseErrorBody(output.body, context),
|
|
2493
|
+
};
|
|
2494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2495
|
+
switch (errorCode) {
|
|
2496
|
+
case "AccessDeniedException":
|
|
2497
|
+
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
2498
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2499
|
+
case "ConflictException":
|
|
2500
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
2501
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2502
|
+
case "ResourceNotFoundException":
|
|
2503
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
2504
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2505
|
+
case "ServiceQuotaExceededException":
|
|
2506
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
2507
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2508
|
+
case "ThrottlingException":
|
|
2509
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
2510
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2511
|
+
case "ValidationException":
|
|
2512
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
2513
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2514
|
+
default:
|
|
2515
|
+
const parsedBody = parsedOutput.body;
|
|
2516
|
+
return throwDefaultError({
|
|
2517
|
+
output,
|
|
2518
|
+
parsedBody,
|
|
2519
|
+
errorCode,
|
|
2520
|
+
});
|
|
2521
|
+
}
|
|
2522
|
+
};
|
|
2125
2523
|
const de_StopDevEnvironmentCommand = async (output, context) => {
|
|
2126
2524
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2127
2525
|
return de_StopDevEnvironmentCommandError(output, context);
|
|
@@ -2560,6 +2958,7 @@ const de_DevEnvironmentSummary = (output, context) => {
|
|
|
2560
2958
|
spaceName: smithy_client_1.expectString,
|
|
2561
2959
|
status: smithy_client_1.expectString,
|
|
2562
2960
|
statusReason: smithy_client_1.expectString,
|
|
2961
|
+
vpcConnectionName: smithy_client_1.expectString,
|
|
2563
2962
|
});
|
|
2564
2963
|
};
|
|
2565
2964
|
const de_DevEnvironmentSummaryList = (output, context) => {
|
|
@@ -2630,6 +3029,47 @@ const de_ListSourceRepositoryBranchesItems = (output, context) => {
|
|
|
2630
3029
|
});
|
|
2631
3030
|
return retVal;
|
|
2632
3031
|
};
|
|
3032
|
+
const de_WorkflowRunSummaries = (output, context) => {
|
|
3033
|
+
const retVal = (output || [])
|
|
3034
|
+
.filter((e) => e != null)
|
|
3035
|
+
.map((entry) => {
|
|
3036
|
+
return de_WorkflowRunSummary(entry, context);
|
|
3037
|
+
});
|
|
3038
|
+
return retVal;
|
|
3039
|
+
};
|
|
3040
|
+
const de_WorkflowRunSummary = (output, context) => {
|
|
3041
|
+
return (0, smithy_client_1.take)(output, {
|
|
3042
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3043
|
+
id: smithy_client_1.expectString,
|
|
3044
|
+
lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3045
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3046
|
+
status: smithy_client_1.expectString,
|
|
3047
|
+
statusReasons: smithy_client_1._json,
|
|
3048
|
+
workflowId: smithy_client_1.expectString,
|
|
3049
|
+
workflowName: smithy_client_1.expectString,
|
|
3050
|
+
});
|
|
3051
|
+
};
|
|
3052
|
+
const de_WorkflowSummaries = (output, context) => {
|
|
3053
|
+
const retVal = (output || [])
|
|
3054
|
+
.filter((e) => e != null)
|
|
3055
|
+
.map((entry) => {
|
|
3056
|
+
return de_WorkflowSummary(entry, context);
|
|
3057
|
+
});
|
|
3058
|
+
return retVal;
|
|
3059
|
+
};
|
|
3060
|
+
const de_WorkflowSummary = (output, context) => {
|
|
3061
|
+
return (0, smithy_client_1.take)(output, {
|
|
3062
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3063
|
+
definition: smithy_client_1._json,
|
|
3064
|
+
id: smithy_client_1.expectString,
|
|
3065
|
+
lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3066
|
+
name: smithy_client_1.expectString,
|
|
3067
|
+
runMode: smithy_client_1.expectString,
|
|
3068
|
+
sourceBranchName: smithy_client_1.expectString,
|
|
3069
|
+
sourceRepositoryName: smithy_client_1.expectString,
|
|
3070
|
+
status: smithy_client_1.expectString,
|
|
3071
|
+
});
|
|
3072
|
+
};
|
|
2633
3073
|
const deserializeMetadata = (output) => ({
|
|
2634
3074
|
httpStatusCode: output.statusCode,
|
|
2635
3075
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
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,
|
|
@@ -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
|
+
}
|