@aws-sdk/client-codecatalyst 3.279.0 → 3.282.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.
Files changed (48) hide show
  1. package/README.md +207 -0
  2. package/dist-cjs/CodeCatalyst.js +15 -0
  3. package/dist-cjs/commands/StopDevEnvironmentSessionCommand.js +45 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +9 -1
  6. package/dist-cjs/protocols/Aws_restJson1.js +83 -1
  7. package/dist-es/CodeCatalyst.js +15 -0
  8. package/dist-es/commands/StopDevEnvironmentSessionCommand.js +41 -0
  9. package/dist-es/commands/index.js +1 -0
  10. package/dist-es/models/models_0.js +6 -0
  11. package/dist-es/protocols/Aws_restJson1.js +80 -0
  12. package/dist-types/CodeCatalyst.d.ts +16 -1
  13. package/dist-types/CodeCatalystClient.d.ts +7 -2
  14. package/dist-types/commands/CreateAccessTokenCommand.d.ts +6 -0
  15. package/dist-types/commands/CreateDevEnvironmentCommand.d.ts +11 -1
  16. package/dist-types/commands/CreateProjectCommand.d.ts +6 -0
  17. package/dist-types/commands/CreateSourceRepositoryBranchCommand.d.ts +6 -0
  18. package/dist-types/commands/DeleteAccessTokenCommand.d.ts +6 -0
  19. package/dist-types/commands/DeleteDevEnvironmentCommand.d.ts +6 -0
  20. package/dist-types/commands/GetDevEnvironmentCommand.d.ts +6 -0
  21. package/dist-types/commands/GetProjectCommand.d.ts +6 -0
  22. package/dist-types/commands/GetSourceRepositoryCloneUrlsCommand.d.ts +6 -0
  23. package/dist-types/commands/GetSpaceCommand.d.ts +6 -0
  24. package/dist-types/commands/GetSubscriptionCommand.d.ts +6 -0
  25. package/dist-types/commands/GetUserDetailsCommand.d.ts +6 -0
  26. package/dist-types/commands/ListAccessTokensCommand.d.ts +6 -0
  27. package/dist-types/commands/ListDevEnvironmentsCommand.d.ts +6 -0
  28. package/dist-types/commands/ListEventLogsCommand.d.ts +6 -0
  29. package/dist-types/commands/ListProjectsCommand.d.ts +6 -0
  30. package/dist-types/commands/ListSourceRepositoriesCommand.d.ts +6 -0
  31. package/dist-types/commands/ListSourceRepositoryBranchesCommand.d.ts +6 -0
  32. package/dist-types/commands/ListSpacesCommand.d.ts +6 -0
  33. package/dist-types/commands/StartDevEnvironmentCommand.d.ts +6 -0
  34. package/dist-types/commands/StartDevEnvironmentSessionCommand.d.ts +6 -0
  35. package/dist-types/commands/StopDevEnvironmentCommand.d.ts +6 -0
  36. package/dist-types/commands/StopDevEnvironmentSessionCommand.d.ts +43 -0
  37. package/dist-types/commands/UpdateDevEnvironmentCommand.d.ts +6 -0
  38. package/dist-types/commands/VerifySessionCommand.d.ts +6 -0
  39. package/dist-types/commands/index.d.ts +1 -0
  40. package/dist-types/models/models_0.d.ts +61 -11
  41. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  42. package/dist-types/ts3.4/CodeCatalyst.d.ts +17 -0
  43. package/dist-types/ts3.4/CodeCatalystClient.d.ts +6 -0
  44. package/dist-types/ts3.4/commands/StopDevEnvironmentSessionCommand.d.ts +41 -0
  45. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +22 -3
  47. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  48. package/package.json +15 -15
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>
@@ -310,3 +314,206 @@ To contribute to client you can check our [generate clients scripts](https://git
310
314
  This SDK is distributed under the
311
315
  [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
312
316
  see LICENSE for more information.
317
+
318
+ ## Client Commands (Operations List)
319
+
320
+ <details>
321
+ <summary>
322
+ CreateAccessToken
323
+ </summary>
324
+
325
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/createaccesstokencommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/createaccesstokencommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/createaccesstokencommandoutput.html)
326
+
327
+ </details>
328
+ <details>
329
+ <summary>
330
+ CreateDevEnvironment
331
+ </summary>
332
+
333
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/createdevenvironmentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/createdevenvironmentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/createdevenvironmentcommandoutput.html)
334
+
335
+ </details>
336
+ <details>
337
+ <summary>
338
+ CreateProject
339
+ </summary>
340
+
341
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/createprojectcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/createprojectcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/createprojectcommandoutput.html)
342
+
343
+ </details>
344
+ <details>
345
+ <summary>
346
+ CreateSourceRepositoryBranch
347
+ </summary>
348
+
349
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/createsourcerepositorybranchcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/createsourcerepositorybranchcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/createsourcerepositorybranchcommandoutput.html)
350
+
351
+ </details>
352
+ <details>
353
+ <summary>
354
+ DeleteAccessToken
355
+ </summary>
356
+
357
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/deleteaccesstokencommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/deleteaccesstokencommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/deleteaccesstokencommandoutput.html)
358
+
359
+ </details>
360
+ <details>
361
+ <summary>
362
+ DeleteDevEnvironment
363
+ </summary>
364
+
365
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/deletedevenvironmentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/deletedevenvironmentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/deletedevenvironmentcommandoutput.html)
366
+
367
+ </details>
368
+ <details>
369
+ <summary>
370
+ GetDevEnvironment
371
+ </summary>
372
+
373
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/getdevenvironmentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getdevenvironmentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getdevenvironmentcommandoutput.html)
374
+
375
+ </details>
376
+ <details>
377
+ <summary>
378
+ GetProject
379
+ </summary>
380
+
381
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/getprojectcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getprojectcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getprojectcommandoutput.html)
382
+
383
+ </details>
384
+ <details>
385
+ <summary>
386
+ GetSourceRepositoryCloneUrls
387
+ </summary>
388
+
389
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/getsourcerepositorycloneurlscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getsourcerepositorycloneurlscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getsourcerepositorycloneurlscommandoutput.html)
390
+
391
+ </details>
392
+ <details>
393
+ <summary>
394
+ GetSpace
395
+ </summary>
396
+
397
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/getspacecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getspacecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getspacecommandoutput.html)
398
+
399
+ </details>
400
+ <details>
401
+ <summary>
402
+ GetSubscription
403
+ </summary>
404
+
405
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/getsubscriptioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getsubscriptioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getsubscriptioncommandoutput.html)
406
+
407
+ </details>
408
+ <details>
409
+ <summary>
410
+ GetUserDetails
411
+ </summary>
412
+
413
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/getuserdetailscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getuserdetailscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/getuserdetailscommandoutput.html)
414
+
415
+ </details>
416
+ <details>
417
+ <summary>
418
+ ListAccessTokens
419
+ </summary>
420
+
421
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/listaccesstokenscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listaccesstokenscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listaccesstokenscommandoutput.html)
422
+
423
+ </details>
424
+ <details>
425
+ <summary>
426
+ ListDevEnvironments
427
+ </summary>
428
+
429
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/listdevenvironmentscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listdevenvironmentscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listdevenvironmentscommandoutput.html)
430
+
431
+ </details>
432
+ <details>
433
+ <summary>
434
+ ListEventLogs
435
+ </summary>
436
+
437
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/listeventlogscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listeventlogscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listeventlogscommandoutput.html)
438
+
439
+ </details>
440
+ <details>
441
+ <summary>
442
+ ListProjects
443
+ </summary>
444
+
445
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/listprojectscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listprojectscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listprojectscommandoutput.html)
446
+
447
+ </details>
448
+ <details>
449
+ <summary>
450
+ ListSourceRepositories
451
+ </summary>
452
+
453
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/listsourcerepositoriescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listsourcerepositoriescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listsourcerepositoriescommandoutput.html)
454
+
455
+ </details>
456
+ <details>
457
+ <summary>
458
+ ListSourceRepositoryBranches
459
+ </summary>
460
+
461
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/listsourcerepositorybranchescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listsourcerepositorybranchescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listsourcerepositorybranchescommandoutput.html)
462
+
463
+ </details>
464
+ <details>
465
+ <summary>
466
+ ListSpaces
467
+ </summary>
468
+
469
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/listspacescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listspacescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/listspacescommandoutput.html)
470
+
471
+ </details>
472
+ <details>
473
+ <summary>
474
+ StartDevEnvironment
475
+ </summary>
476
+
477
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/startdevenvironmentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/startdevenvironmentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/startdevenvironmentcommandoutput.html)
478
+
479
+ </details>
480
+ <details>
481
+ <summary>
482
+ StartDevEnvironmentSession
483
+ </summary>
484
+
485
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/startdevenvironmentsessioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/startdevenvironmentsessioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/startdevenvironmentsessioncommandoutput.html)
486
+
487
+ </details>
488
+ <details>
489
+ <summary>
490
+ StopDevEnvironment
491
+ </summary>
492
+
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)
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
+
503
+ </details>
504
+ <details>
505
+ <summary>
506
+ UpdateDevEnvironment
507
+ </summary>
508
+
509
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/updatedevenvironmentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/updatedevenvironmentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/updatedevenvironmentcommandoutput.html)
510
+
511
+ </details>
512
+ <details>
513
+ <summary>
514
+ VerifySession
515
+ </summary>
516
+
517
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/classes/verifysessioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/verifysessioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecatalyst/interfaces/verifysessioncommandoutput.html)
518
+
519
+ </details>
@@ -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,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);
@@ -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
  });