@aws-sdk/client-codecatalyst 3.281.0 → 3.287.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 +12 -0
- package/dist-cjs/CodeCatalyst.js +15 -0
- package/dist-cjs/commands/StopDevEnvironmentSessionCommand.js +45 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +9 -1
- package/dist-cjs/pagination/ListAccessTokensPaginator.js +1 -8
- package/dist-cjs/pagination/ListDevEnvironmentsPaginator.js +1 -8
- package/dist-cjs/pagination/ListEventLogsPaginator.js +1 -8
- package/dist-cjs/pagination/ListProjectsPaginator.js +1 -8
- package/dist-cjs/pagination/ListSourceRepositoriesPaginator.js +1 -8
- package/dist-cjs/pagination/ListSourceRepositoryBranchesPaginator.js +1 -8
- package/dist-cjs/pagination/ListSpacesPaginator.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +83 -1
- package/dist-es/CodeCatalyst.js +15 -0
- package/dist-es/commands/StopDevEnvironmentSessionCommand.js +41 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/pagination/ListAccessTokensPaginator.js +1 -8
- package/dist-es/pagination/ListDevEnvironmentsPaginator.js +1 -8
- package/dist-es/pagination/ListEventLogsPaginator.js +1 -8
- package/dist-es/pagination/ListProjectsPaginator.js +1 -8
- package/dist-es/pagination/ListSourceRepositoriesPaginator.js +1 -8
- package/dist-es/pagination/ListSourceRepositoryBranchesPaginator.js +1 -8
- package/dist-es/pagination/ListSpacesPaginator.js +1 -8
- package/dist-es/protocols/Aws_restJson1.js +80 -0
- package/dist-types/CodeCatalyst.d.ts +16 -1
- package/dist-types/CodeCatalystClient.d.ts +7 -2
- package/dist-types/commands/CreateDevEnvironmentCommand.d.ts +5 -1
- package/dist-types/commands/StopDevEnvironmentSessionCommand.d.ts +43 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +61 -11
- package/dist-types/pagination/Interfaces.d.ts +1 -2
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/CodeCatalyst.d.ts +17 -0
- package/dist-types/ts3.4/CodeCatalystClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/StopDevEnvironmentSessionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -3
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +17 -17
package/README.md
CHANGED
|
@@ -95,6 +95,10 @@ and the billing plan for the space.</p>
|
|
|
95
95
|
</li>
|
|
96
96
|
<li>
|
|
97
97
|
<p>
|
|
98
|
+
<a>StopDevEnvironmentSession</a>, which stops a session for a specified Dev Environment.</p>
|
|
99
|
+
</li>
|
|
100
|
+
<li>
|
|
101
|
+
<p>
|
|
98
102
|
<a>UpdateDevEnvironment</a>, which changes one or more values for a Dev Environment.</p>
|
|
99
103
|
</li>
|
|
100
104
|
<li>
|
|
@@ -488,6 +492,14 @@ StopDevEnvironment
|
|
|
488
492
|
|
|
489
493
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/stopdevenvironmentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/stopdevenvironmentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/stopdevenvironmentcommandoutput.html)
|
|
490
494
|
|
|
495
|
+
</details>
|
|
496
|
+
<details>
|
|
497
|
+
<summary>
|
|
498
|
+
StopDevEnvironmentSession
|
|
499
|
+
</summary>
|
|
500
|
+
|
|
501
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/stopdevenvironmentsessioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/stopdevenvironmentsessioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/stopdevenvironmentsessioncommandoutput.html)
|
|
502
|
+
|
|
491
503
|
</details>
|
|
492
504
|
<details>
|
|
493
505
|
<summary>
|
package/dist-cjs/CodeCatalyst.js
CHANGED
|
@@ -24,6 +24,7 @@ const ListSpacesCommand_1 = require("./commands/ListSpacesCommand");
|
|
|
24
24
|
const StartDevEnvironmentCommand_1 = require("./commands/StartDevEnvironmentCommand");
|
|
25
25
|
const StartDevEnvironmentSessionCommand_1 = require("./commands/StartDevEnvironmentSessionCommand");
|
|
26
26
|
const StopDevEnvironmentCommand_1 = require("./commands/StopDevEnvironmentCommand");
|
|
27
|
+
const StopDevEnvironmentSessionCommand_1 = require("./commands/StopDevEnvironmentSessionCommand");
|
|
27
28
|
const UpdateDevEnvironmentCommand_1 = require("./commands/UpdateDevEnvironmentCommand");
|
|
28
29
|
const VerifySessionCommand_1 = require("./commands/VerifySessionCommand");
|
|
29
30
|
class CodeCatalyst extends CodeCatalystClient_1.CodeCatalystClient {
|
|
@@ -335,6 +336,20 @@ class CodeCatalyst extends CodeCatalystClient_1.CodeCatalystClient {
|
|
|
335
336
|
return this.send(command, optionsOrCb);
|
|
336
337
|
}
|
|
337
338
|
}
|
|
339
|
+
stopDevEnvironmentSession(args, optionsOrCb, cb) {
|
|
340
|
+
const command = new StopDevEnvironmentSessionCommand_1.StopDevEnvironmentSessionCommand(args);
|
|
341
|
+
if (typeof optionsOrCb === "function") {
|
|
342
|
+
this.send(command, optionsOrCb);
|
|
343
|
+
}
|
|
344
|
+
else if (typeof cb === "function") {
|
|
345
|
+
if (typeof optionsOrCb !== "object")
|
|
346
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
347
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
return this.send(command, optionsOrCb);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
338
353
|
updateDevEnvironment(args, optionsOrCb, cb) {
|
|
339
354
|
const command = new UpdateDevEnvironmentCommand_1.UpdateDevEnvironmentCommand(args);
|
|
340
355
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StopDevEnvironmentSessionCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class StopDevEnvironmentSessionCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StopDevEnvironmentSessionCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "CodeCatalystClient";
|
|
27
|
+
const commandName = "StopDevEnvironmentSessionCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: models_0_1.StopDevEnvironmentSessionRequestFilterSensitiveLog,
|
|
33
|
+
outputFilterSensitiveLog: models_0_1.StopDevEnvironmentSessionResponseFilterSensitiveLog,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1StopDevEnvironmentSessionCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1StopDevEnvironmentSessionCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.StopDevEnvironmentSessionCommand = StopDevEnvironmentSessionCommand;
|
|
@@ -23,5 +23,6 @@ tslib_1.__exportStar(require("./ListSpacesCommand"), exports);
|
|
|
23
23
|
tslib_1.__exportStar(require("./StartDevEnvironmentCommand"), exports);
|
|
24
24
|
tslib_1.__exportStar(require("./StartDevEnvironmentSessionCommand"), exports);
|
|
25
25
|
tslib_1.__exportStar(require("./StopDevEnvironmentCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./StopDevEnvironmentSessionCommand"), exports);
|
|
26
27
|
tslib_1.__exportStar(require("./UpdateDevEnvironmentCommand"), exports);
|
|
27
28
|
tslib_1.__exportStar(require("./VerifySessionCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FilterFilterSensitiveLog = exports.GetDevEnvironmentResponseFilterSensitiveLog = exports.DevEnvironmentRepositorySummaryFilterSensitiveLog = exports.PersistentStorageFilterSensitiveLog = exports.IdeFilterSensitiveLog = exports.GetDevEnvironmentRequestFilterSensitiveLog = exports.DeleteDevEnvironmentResponseFilterSensitiveLog = exports.DeleteDevEnvironmentRequestFilterSensitiveLog = exports.CreateDevEnvironmentResponseFilterSensitiveLog = exports.CreateDevEnvironmentRequestFilterSensitiveLog = exports.RepositoryInputFilterSensitiveLog = exports.PersistentStorageConfigurationFilterSensitiveLog = exports.IdeConfigurationFilterSensitiveLog = exports.CreateProjectResponseFilterSensitiveLog = exports.CreateProjectRequestFilterSensitiveLog = exports.ListSpacesResponseFilterSensitiveLog = exports.SpaceSummaryFilterSensitiveLog = exports.ListSpacesRequestFilterSensitiveLog = exports.GetSpaceResponseFilterSensitiveLog = exports.GetSpaceRequestFilterSensitiveLog = exports.ListEventLogsResponseFilterSensitiveLog = exports.EventLogEntryFilterSensitiveLog = exports.UserIdentityFilterSensitiveLog = exports.EventPayloadFilterSensitiveLog = exports.ProjectInformationFilterSensitiveLog = exports.ListEventLogsRequestFilterSensitiveLog = exports.GetUserDetailsResponseFilterSensitiveLog = exports.EmailAddressFilterSensitiveLog = exports.GetUserDetailsRequestFilterSensitiveLog = exports.ListAccessTokensResponseFilterSensitiveLog = exports.AccessTokenSummaryFilterSensitiveLog = exports.ListAccessTokensRequestFilterSensitiveLog = exports.DeleteAccessTokenResponseFilterSensitiveLog = exports.DeleteAccessTokenRequestFilterSensitiveLog = exports.CreateAccessTokenResponseFilterSensitiveLog = exports.CreateAccessTokenRequestFilterSensitiveLog = exports.FilterKey = exports.ComparisonOperator = exports.DevEnvironmentSessionType = exports.DevEnvironmentStatus = exports._InstanceType = exports.UserType = exports.OperationType = exports.CatalogActionVersionFileRecordType = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
-
exports.VerifySessionResponseFilterSensitiveLog = exports.GetSubscriptionResponseFilterSensitiveLog = exports.GetSubscriptionRequestFilterSensitiveLog = exports.ListSourceRepositoryBranchesResponseFilterSensitiveLog = exports.ListSourceRepositoryBranchesItemFilterSensitiveLog = exports.ListSourceRepositoryBranchesRequestFilterSensitiveLog = exports.CreateSourceRepositoryBranchResponseFilterSensitiveLog = exports.CreateSourceRepositoryBranchRequestFilterSensitiveLog = exports.ListSourceRepositoriesResponseFilterSensitiveLog = exports.ListSourceRepositoriesItemFilterSensitiveLog = exports.ListSourceRepositoriesRequestFilterSensitiveLog = exports.GetSourceRepositoryCloneUrlsResponseFilterSensitiveLog = exports.GetSourceRepositoryCloneUrlsRequestFilterSensitiveLog = exports.ListProjectsResponseFilterSensitiveLog = exports.ProjectSummaryFilterSensitiveLog = exports.ListProjectsRequestFilterSensitiveLog = exports.ProjectListFilterFilterSensitiveLog = exports.GetProjectResponseFilterSensitiveLog = exports.GetProjectRequestFilterSensitiveLog = exports.UpdateDevEnvironmentResponseFilterSensitiveLog = exports.UpdateDevEnvironmentRequestFilterSensitiveLog = exports.StopDevEnvironmentResponseFilterSensitiveLog = exports.StopDevEnvironmentRequestFilterSensitiveLog = exports.StartDevEnvironmentSessionResponseFilterSensitiveLog = exports.DevEnvironmentAccessDetailsFilterSensitiveLog = exports.StartDevEnvironmentSessionRequestFilterSensitiveLog = exports.DevEnvironmentSessionConfigurationFilterSensitiveLog = exports.ExecuteCommandSessionConfigurationFilterSensitiveLog = exports.StartDevEnvironmentResponseFilterSensitiveLog = exports.StartDevEnvironmentRequestFilterSensitiveLog = exports.ListDevEnvironmentsResponseFilterSensitiveLog = exports.DevEnvironmentSummaryFilterSensitiveLog = exports.ListDevEnvironmentsRequestFilterSensitiveLog = void 0;
|
|
4
|
+
exports.VerifySessionResponseFilterSensitiveLog = exports.GetSubscriptionResponseFilterSensitiveLog = exports.GetSubscriptionRequestFilterSensitiveLog = exports.ListSourceRepositoryBranchesResponseFilterSensitiveLog = exports.ListSourceRepositoryBranchesItemFilterSensitiveLog = exports.ListSourceRepositoryBranchesRequestFilterSensitiveLog = exports.CreateSourceRepositoryBranchResponseFilterSensitiveLog = exports.CreateSourceRepositoryBranchRequestFilterSensitiveLog = exports.ListSourceRepositoriesResponseFilterSensitiveLog = exports.ListSourceRepositoriesItemFilterSensitiveLog = exports.ListSourceRepositoriesRequestFilterSensitiveLog = exports.GetSourceRepositoryCloneUrlsResponseFilterSensitiveLog = exports.GetSourceRepositoryCloneUrlsRequestFilterSensitiveLog = exports.ListProjectsResponseFilterSensitiveLog = exports.ProjectSummaryFilterSensitiveLog = exports.ListProjectsRequestFilterSensitiveLog = exports.ProjectListFilterFilterSensitiveLog = exports.GetProjectResponseFilterSensitiveLog = exports.GetProjectRequestFilterSensitiveLog = exports.UpdateDevEnvironmentResponseFilterSensitiveLog = exports.UpdateDevEnvironmentRequestFilterSensitiveLog = exports.StopDevEnvironmentSessionResponseFilterSensitiveLog = exports.StopDevEnvironmentSessionRequestFilterSensitiveLog = exports.StopDevEnvironmentResponseFilterSensitiveLog = exports.StopDevEnvironmentRequestFilterSensitiveLog = exports.StartDevEnvironmentSessionResponseFilterSensitiveLog = exports.DevEnvironmentAccessDetailsFilterSensitiveLog = exports.StartDevEnvironmentSessionRequestFilterSensitiveLog = exports.DevEnvironmentSessionConfigurationFilterSensitiveLog = exports.ExecuteCommandSessionConfigurationFilterSensitiveLog = exports.StartDevEnvironmentResponseFilterSensitiveLog = exports.StartDevEnvironmentRequestFilterSensitiveLog = exports.ListDevEnvironmentsResponseFilterSensitiveLog = exports.DevEnvironmentSummaryFilterSensitiveLog = exports.ListDevEnvironmentsRequestFilterSensitiveLog = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const CodeCatalystServiceException_1 = require("./CodeCatalystServiceException");
|
|
7
7
|
class AccessDeniedException extends CodeCatalystServiceException_1.CodeCatalystServiceException {
|
|
@@ -330,6 +330,14 @@ const StopDevEnvironmentResponseFilterSensitiveLog = (obj) => ({
|
|
|
330
330
|
...obj,
|
|
331
331
|
});
|
|
332
332
|
exports.StopDevEnvironmentResponseFilterSensitiveLog = StopDevEnvironmentResponseFilterSensitiveLog;
|
|
333
|
+
const StopDevEnvironmentSessionRequestFilterSensitiveLog = (obj) => ({
|
|
334
|
+
...obj,
|
|
335
|
+
});
|
|
336
|
+
exports.StopDevEnvironmentSessionRequestFilterSensitiveLog = StopDevEnvironmentSessionRequestFilterSensitiveLog;
|
|
337
|
+
const StopDevEnvironmentSessionResponseFilterSensitiveLog = (obj) => ({
|
|
338
|
+
...obj,
|
|
339
|
+
});
|
|
340
|
+
exports.StopDevEnvironmentSessionResponseFilterSensitiveLog = StopDevEnvironmentSessionResponseFilterSensitiveLog;
|
|
333
341
|
const UpdateDevEnvironmentRequestFilterSensitiveLog = (obj) => ({
|
|
334
342
|
...obj,
|
|
335
343
|
});
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccessTokens = void 0;
|
|
4
|
-
const CodeCatalyst_1 = require("../CodeCatalyst");
|
|
5
4
|
const CodeCatalystClient_1 = require("../CodeCatalystClient");
|
|
6
5
|
const ListAccessTokensCommand_1 = require("../commands/ListAccessTokensCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListAccessTokensCommand_1.ListAccessTokensCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listAccessTokens(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListAccessTokens(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListAccessTokens(config, input, ...additionalArguments)
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
16
|
+
if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDevEnvironments = void 0;
|
|
4
|
-
const CodeCatalyst_1 = require("../CodeCatalyst");
|
|
5
4
|
const CodeCatalystClient_1 = require("../CodeCatalystClient");
|
|
6
5
|
const ListDevEnvironmentsCommand_1 = require("../commands/ListDevEnvironmentsCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListDevEnvironmentsCommand_1.ListDevEnvironmentsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listDevEnvironments(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListDevEnvironments(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListDevEnvironments(config, input, ...additionalArgument
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
16
|
+
if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListEventLogs = void 0;
|
|
4
|
-
const CodeCatalyst_1 = require("../CodeCatalyst");
|
|
5
4
|
const CodeCatalystClient_1 = require("../CodeCatalystClient");
|
|
6
5
|
const ListEventLogsCommand_1 = require("../commands/ListEventLogsCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListEventLogsCommand_1.ListEventLogsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listEventLogs(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListEventLogs(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListEventLogs(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
16
|
+
if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListProjects = void 0;
|
|
4
|
-
const CodeCatalyst_1 = require("../CodeCatalyst");
|
|
5
4
|
const CodeCatalystClient_1 = require("../CodeCatalystClient");
|
|
6
5
|
const ListProjectsCommand_1 = require("../commands/ListProjectsCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListProjectsCommand_1.ListProjectsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listProjects(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListProjects(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListProjects(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
16
|
+
if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSourceRepositories = void 0;
|
|
4
|
-
const CodeCatalyst_1 = require("../CodeCatalyst");
|
|
5
4
|
const CodeCatalystClient_1 = require("../CodeCatalystClient");
|
|
6
5
|
const ListSourceRepositoriesCommand_1 = require("../commands/ListSourceRepositoriesCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListSourceRepositoriesCommand_1.ListSourceRepositoriesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listSourceRepositories(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListSourceRepositories(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListSourceRepositories(config, input, ...additionalArgum
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
16
|
+
if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSourceRepositoryBranches = void 0;
|
|
4
|
-
const CodeCatalyst_1 = require("../CodeCatalyst");
|
|
5
4
|
const CodeCatalystClient_1 = require("../CodeCatalystClient");
|
|
6
5
|
const ListSourceRepositoryBranchesCommand_1 = require("../commands/ListSourceRepositoryBranchesCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListSourceRepositoryBranchesCommand_1.ListSourceRepositoryBranchesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listSourceRepositoryBranches(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListSourceRepositoryBranches(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListSourceRepositoryBranches(config, input, ...additiona
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
15
|
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
16
|
+
if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,25 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSpaces = void 0;
|
|
4
|
-
const CodeCatalyst_1 = require("../CodeCatalyst");
|
|
5
4
|
const CodeCatalystClient_1 = require("../CodeCatalystClient");
|
|
6
5
|
const ListSpacesCommand_1 = require("../commands/ListSpacesCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListSpacesCommand_1.ListSpacesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listSpaces(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListSpaces(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
16
12
|
let page;
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.nextToken = token;
|
|
19
|
-
if (config.client instanceof
|
|
20
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
21
|
-
}
|
|
22
|
-
else if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
15
|
+
if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
|
|
23
16
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
24
17
|
}
|
|
25
18
|
else {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1VerifySessionCommand = exports.deserializeAws_restJson1UpdateDevEnvironmentCommand = exports.deserializeAws_restJson1StopDevEnvironmentCommand = exports.deserializeAws_restJson1StartDevEnvironmentSessionCommand = exports.deserializeAws_restJson1StartDevEnvironmentCommand = exports.deserializeAws_restJson1ListSpacesCommand = exports.deserializeAws_restJson1ListSourceRepositoryBranchesCommand = exports.deserializeAws_restJson1ListSourceRepositoriesCommand = exports.deserializeAws_restJson1ListProjectsCommand = exports.deserializeAws_restJson1ListEventLogsCommand = exports.deserializeAws_restJson1ListDevEnvironmentsCommand = exports.deserializeAws_restJson1ListAccessTokensCommand = exports.deserializeAws_restJson1GetUserDetailsCommand = exports.deserializeAws_restJson1GetSubscriptionCommand = exports.deserializeAws_restJson1GetSpaceCommand = exports.deserializeAws_restJson1GetSourceRepositoryCloneUrlsCommand = exports.deserializeAws_restJson1GetProjectCommand = exports.deserializeAws_restJson1GetDevEnvironmentCommand = exports.deserializeAws_restJson1DeleteDevEnvironmentCommand = exports.deserializeAws_restJson1DeleteAccessTokenCommand = exports.deserializeAws_restJson1CreateSourceRepositoryBranchCommand = exports.deserializeAws_restJson1CreateProjectCommand = exports.deserializeAws_restJson1CreateDevEnvironmentCommand = exports.deserializeAws_restJson1CreateAccessTokenCommand = exports.serializeAws_restJson1VerifySessionCommand = exports.serializeAws_restJson1UpdateDevEnvironmentCommand = exports.serializeAws_restJson1StopDevEnvironmentCommand = exports.serializeAws_restJson1StartDevEnvironmentSessionCommand = exports.serializeAws_restJson1StartDevEnvironmentCommand = exports.serializeAws_restJson1ListSpacesCommand = exports.serializeAws_restJson1ListSourceRepositoryBranchesCommand = exports.serializeAws_restJson1ListSourceRepositoriesCommand = exports.serializeAws_restJson1ListProjectsCommand = exports.serializeAws_restJson1ListEventLogsCommand = exports.serializeAws_restJson1ListDevEnvironmentsCommand = exports.serializeAws_restJson1ListAccessTokensCommand = exports.serializeAws_restJson1GetUserDetailsCommand = exports.serializeAws_restJson1GetSubscriptionCommand = exports.serializeAws_restJson1GetSpaceCommand = exports.serializeAws_restJson1GetSourceRepositoryCloneUrlsCommand = exports.serializeAws_restJson1GetProjectCommand = exports.serializeAws_restJson1GetDevEnvironmentCommand = exports.serializeAws_restJson1DeleteDevEnvironmentCommand = exports.serializeAws_restJson1DeleteAccessTokenCommand = exports.serializeAws_restJson1CreateSourceRepositoryBranchCommand = exports.serializeAws_restJson1CreateProjectCommand = exports.serializeAws_restJson1CreateDevEnvironmentCommand = exports.serializeAws_restJson1CreateAccessTokenCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1VerifySessionCommand = exports.deserializeAws_restJson1UpdateDevEnvironmentCommand = exports.deserializeAws_restJson1StopDevEnvironmentSessionCommand = exports.deserializeAws_restJson1StopDevEnvironmentCommand = exports.deserializeAws_restJson1StartDevEnvironmentSessionCommand = exports.deserializeAws_restJson1StartDevEnvironmentCommand = exports.deserializeAws_restJson1ListSpacesCommand = exports.deserializeAws_restJson1ListSourceRepositoryBranchesCommand = exports.deserializeAws_restJson1ListSourceRepositoriesCommand = exports.deserializeAws_restJson1ListProjectsCommand = exports.deserializeAws_restJson1ListEventLogsCommand = exports.deserializeAws_restJson1ListDevEnvironmentsCommand = exports.deserializeAws_restJson1ListAccessTokensCommand = exports.deserializeAws_restJson1GetUserDetailsCommand = exports.deserializeAws_restJson1GetSubscriptionCommand = exports.deserializeAws_restJson1GetSpaceCommand = exports.deserializeAws_restJson1GetSourceRepositoryCloneUrlsCommand = exports.deserializeAws_restJson1GetProjectCommand = exports.deserializeAws_restJson1GetDevEnvironmentCommand = exports.deserializeAws_restJson1DeleteDevEnvironmentCommand = exports.deserializeAws_restJson1DeleteAccessTokenCommand = exports.deserializeAws_restJson1CreateSourceRepositoryBranchCommand = exports.deserializeAws_restJson1CreateProjectCommand = exports.deserializeAws_restJson1CreateDevEnvironmentCommand = exports.deserializeAws_restJson1CreateAccessTokenCommand = exports.serializeAws_restJson1VerifySessionCommand = exports.serializeAws_restJson1UpdateDevEnvironmentCommand = exports.serializeAws_restJson1StopDevEnvironmentSessionCommand = exports.serializeAws_restJson1StopDevEnvironmentCommand = exports.serializeAws_restJson1StartDevEnvironmentSessionCommand = exports.serializeAws_restJson1StartDevEnvironmentCommand = exports.serializeAws_restJson1ListSpacesCommand = exports.serializeAws_restJson1ListSourceRepositoryBranchesCommand = exports.serializeAws_restJson1ListSourceRepositoriesCommand = exports.serializeAws_restJson1ListProjectsCommand = exports.serializeAws_restJson1ListEventLogsCommand = exports.serializeAws_restJson1ListDevEnvironmentsCommand = exports.serializeAws_restJson1ListAccessTokensCommand = exports.serializeAws_restJson1GetUserDetailsCommand = exports.serializeAws_restJson1GetSubscriptionCommand = exports.serializeAws_restJson1GetSpaceCommand = exports.serializeAws_restJson1GetSourceRepositoryCloneUrlsCommand = exports.serializeAws_restJson1GetProjectCommand = exports.serializeAws_restJson1GetDevEnvironmentCommand = exports.serializeAws_restJson1DeleteDevEnvironmentCommand = exports.serializeAws_restJson1DeleteAccessTokenCommand = exports.serializeAws_restJson1CreateSourceRepositoryBranchCommand = exports.serializeAws_restJson1CreateProjectCommand = exports.serializeAws_restJson1CreateDevEnvironmentCommand = exports.serializeAws_restJson1CreateAccessTokenCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const CodeCatalystServiceException_1 = require("../models/CodeCatalystServiceException");
|
|
@@ -504,6 +504,27 @@ const serializeAws_restJson1StopDevEnvironmentCommand = async (input, context) =
|
|
|
504
504
|
});
|
|
505
505
|
};
|
|
506
506
|
exports.serializeAws_restJson1StopDevEnvironmentCommand = serializeAws_restJson1StopDevEnvironmentCommand;
|
|
507
|
+
const serializeAws_restJson1StopDevEnvironmentSessionCommand = async (input, context) => {
|
|
508
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
509
|
+
const headers = {};
|
|
510
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
511
|
+
"/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session/{sessionId}";
|
|
512
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "spaceName", () => input.spaceName, "{spaceName}", false);
|
|
513
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
514
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
515
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sessionId", () => input.sessionId, "{sessionId}", false);
|
|
516
|
+
let body;
|
|
517
|
+
return new protocol_http_1.HttpRequest({
|
|
518
|
+
protocol,
|
|
519
|
+
hostname,
|
|
520
|
+
port,
|
|
521
|
+
method: "DELETE",
|
|
522
|
+
headers,
|
|
523
|
+
path: resolvedPath,
|
|
524
|
+
body,
|
|
525
|
+
});
|
|
526
|
+
};
|
|
527
|
+
exports.serializeAws_restJson1StopDevEnvironmentSessionCommand = serializeAws_restJson1StopDevEnvironmentSessionCommand;
|
|
507
528
|
const serializeAws_restJson1UpdateDevEnvironmentCommand = async (input, context) => {
|
|
508
529
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
509
530
|
const headers = {
|
|
@@ -560,6 +581,9 @@ const deserializeAws_restJson1CreateAccessTokenCommand = async (output, context)
|
|
|
560
581
|
$metadata: deserializeMetadata(output),
|
|
561
582
|
});
|
|
562
583
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
584
|
+
if (data.accessTokenId != null) {
|
|
585
|
+
contents.accessTokenId = (0, smithy_client_1.expectString)(data.accessTokenId);
|
|
586
|
+
}
|
|
563
587
|
if (data.expiresTime != null) {
|
|
564
588
|
contents.expiresTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.expiresTime));
|
|
565
589
|
}
|
|
@@ -1783,6 +1807,64 @@ const deserializeAws_restJson1StopDevEnvironmentCommandError = async (output, co
|
|
|
1783
1807
|
});
|
|
1784
1808
|
}
|
|
1785
1809
|
};
|
|
1810
|
+
const deserializeAws_restJson1StopDevEnvironmentSessionCommand = async (output, context) => {
|
|
1811
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1812
|
+
return deserializeAws_restJson1StopDevEnvironmentSessionCommandError(output, context);
|
|
1813
|
+
}
|
|
1814
|
+
const contents = map({
|
|
1815
|
+
$metadata: deserializeMetadata(output),
|
|
1816
|
+
});
|
|
1817
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1818
|
+
if (data.id != null) {
|
|
1819
|
+
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
1820
|
+
}
|
|
1821
|
+
if (data.projectName != null) {
|
|
1822
|
+
contents.projectName = (0, smithy_client_1.expectString)(data.projectName);
|
|
1823
|
+
}
|
|
1824
|
+
if (data.sessionId != null) {
|
|
1825
|
+
contents.sessionId = (0, smithy_client_1.expectString)(data.sessionId);
|
|
1826
|
+
}
|
|
1827
|
+
if (data.spaceName != null) {
|
|
1828
|
+
contents.spaceName = (0, smithy_client_1.expectString)(data.spaceName);
|
|
1829
|
+
}
|
|
1830
|
+
return contents;
|
|
1831
|
+
};
|
|
1832
|
+
exports.deserializeAws_restJson1StopDevEnvironmentSessionCommand = deserializeAws_restJson1StopDevEnvironmentSessionCommand;
|
|
1833
|
+
const deserializeAws_restJson1StopDevEnvironmentSessionCommandError = async (output, context) => {
|
|
1834
|
+
const parsedOutput = {
|
|
1835
|
+
...output,
|
|
1836
|
+
body: await parseErrorBody(output.body, context),
|
|
1837
|
+
};
|
|
1838
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
|
+
switch (errorCode) {
|
|
1840
|
+
case "AccessDeniedException":
|
|
1841
|
+
case "com.amazonaws.codecatalyst#AccessDeniedException":
|
|
1842
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1843
|
+
case "ConflictException":
|
|
1844
|
+
case "com.amazonaws.codecatalyst#ConflictException":
|
|
1845
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1846
|
+
case "ResourceNotFoundException":
|
|
1847
|
+
case "com.amazonaws.codecatalyst#ResourceNotFoundException":
|
|
1848
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1849
|
+
case "ServiceQuotaExceededException":
|
|
1850
|
+
case "com.amazonaws.codecatalyst#ServiceQuotaExceededException":
|
|
1851
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1852
|
+
case "ThrottlingException":
|
|
1853
|
+
case "com.amazonaws.codecatalyst#ThrottlingException":
|
|
1854
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1855
|
+
case "ValidationException":
|
|
1856
|
+
case "com.amazonaws.codecatalyst#ValidationException":
|
|
1857
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1858
|
+
default:
|
|
1859
|
+
const parsedBody = parsedOutput.body;
|
|
1860
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1861
|
+
output,
|
|
1862
|
+
parsedBody,
|
|
1863
|
+
exceptionCtor: CodeCatalystServiceException_1.CodeCatalystServiceException,
|
|
1864
|
+
errorCode,
|
|
1865
|
+
});
|
|
1866
|
+
}
|
|
1867
|
+
};
|
|
1786
1868
|
const deserializeAws_restJson1UpdateDevEnvironmentCommand = async (output, context) => {
|
|
1787
1869
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1788
1870
|
return deserializeAws_restJson1UpdateDevEnvironmentCommandError(output, context);
|
package/dist-es/CodeCatalyst.js
CHANGED
|
@@ -21,6 +21,7 @@ import { ListSpacesCommand } from "./commands/ListSpacesCommand";
|
|
|
21
21
|
import { StartDevEnvironmentCommand, } from "./commands/StartDevEnvironmentCommand";
|
|
22
22
|
import { StartDevEnvironmentSessionCommand, } from "./commands/StartDevEnvironmentSessionCommand";
|
|
23
23
|
import { StopDevEnvironmentCommand, } from "./commands/StopDevEnvironmentCommand";
|
|
24
|
+
import { StopDevEnvironmentSessionCommand, } from "./commands/StopDevEnvironmentSessionCommand";
|
|
24
25
|
import { UpdateDevEnvironmentCommand, } from "./commands/UpdateDevEnvironmentCommand";
|
|
25
26
|
import { VerifySessionCommand, } from "./commands/VerifySessionCommand";
|
|
26
27
|
export class CodeCatalyst extends CodeCatalystClient {
|
|
@@ -332,6 +333,20 @@ export class CodeCatalyst extends CodeCatalystClient {
|
|
|
332
333
|
return this.send(command, optionsOrCb);
|
|
333
334
|
}
|
|
334
335
|
}
|
|
336
|
+
stopDevEnvironmentSession(args, optionsOrCb, cb) {
|
|
337
|
+
const command = new StopDevEnvironmentSessionCommand(args);
|
|
338
|
+
if (typeof optionsOrCb === "function") {
|
|
339
|
+
this.send(command, optionsOrCb);
|
|
340
|
+
}
|
|
341
|
+
else if (typeof cb === "function") {
|
|
342
|
+
if (typeof optionsOrCb !== "object")
|
|
343
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
344
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
return this.send(command, optionsOrCb);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
335
350
|
updateDevEnvironment(args, optionsOrCb, cb) {
|
|
336
351
|
const command = new UpdateDevEnvironmentCommand(args);
|
|
337
352
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { StopDevEnvironmentSessionRequestFilterSensitiveLog, StopDevEnvironmentSessionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1StopDevEnvironmentSessionCommand, serializeAws_restJson1StopDevEnvironmentSessionCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class StopDevEnvironmentSessionCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
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
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, StopDevEnvironmentSessionCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "CodeCatalystClient";
|
|
24
|
+
const commandName = "StopDevEnvironmentSessionCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: StopDevEnvironmentSessionRequestFilterSensitiveLog,
|
|
30
|
+
outputFilterSensitiveLog: StopDevEnvironmentSessionResponseFilterSensitiveLog,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_restJson1StopDevEnvironmentSessionCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_restJson1StopDevEnvironmentSessionCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -20,5 +20,6 @@ export * from "./ListSpacesCommand";
|
|
|
20
20
|
export * from "./StartDevEnvironmentCommand";
|
|
21
21
|
export * from "./StartDevEnvironmentSessionCommand";
|
|
22
22
|
export * from "./StopDevEnvironmentCommand";
|
|
23
|
+
export * from "./StopDevEnvironmentSessionCommand";
|
|
23
24
|
export * from "./UpdateDevEnvironmentCommand";
|
|
24
25
|
export * from "./VerifySessionCommand";
|
|
@@ -272,6 +272,12 @@ export const StopDevEnvironmentRequestFilterSensitiveLog = (obj) => ({
|
|
|
272
272
|
export const StopDevEnvironmentResponseFilterSensitiveLog = (obj) => ({
|
|
273
273
|
...obj,
|
|
274
274
|
});
|
|
275
|
+
export const StopDevEnvironmentSessionRequestFilterSensitiveLog = (obj) => ({
|
|
276
|
+
...obj,
|
|
277
|
+
});
|
|
278
|
+
export const StopDevEnvironmentSessionResponseFilterSensitiveLog = (obj) => ({
|
|
279
|
+
...obj,
|
|
280
|
+
});
|
|
275
281
|
export const UpdateDevEnvironmentRequestFilterSensitiveLog = (obj) => ({
|
|
276
282
|
...obj,
|
|
277
283
|
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { CodeCatalyst } from "../CodeCatalyst";
|
|
2
1
|
import { CodeCatalystClient } from "../CodeCatalystClient";
|
|
3
2
|
import { ListAccessTokensCommand, } from "../commands/ListAccessTokensCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListAccessTokensCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listAccessTokens(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListAccessTokens(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListAccessTokens(config, input, ...additionalArgu
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof CodeCatalystClient) {
|
|
13
|
+
if (config.client instanceof CodeCatalystClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { CodeCatalyst } from "../CodeCatalyst";
|
|
2
1
|
import { CodeCatalystClient } from "../CodeCatalystClient";
|
|
3
2
|
import { ListDevEnvironmentsCommand, } from "../commands/ListDevEnvironmentsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListDevEnvironmentsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listDevEnvironments(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListDevEnvironments(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListDevEnvironments(config, input, ...additionalA
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof CodeCatalystClient) {
|
|
13
|
+
if (config.client instanceof CodeCatalystClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { CodeCatalyst } from "../CodeCatalyst";
|
|
2
1
|
import { CodeCatalystClient } from "../CodeCatalystClient";
|
|
3
2
|
import { ListEventLogsCommand, } from "../commands/ListEventLogsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListEventLogsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listEventLogs(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListEventLogs(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListEventLogs(config, input, ...additionalArgumen
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof CodeCatalystClient) {
|
|
13
|
+
if (config.client instanceof CodeCatalystClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|