@aws-sdk/client-codecatalyst 3.477.0 → 3.481.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 (197) hide show
  1. package/dist-cjs/commands/CreateAccessTokenCommand.js +18 -40
  2. package/dist-cjs/commands/CreateDevEnvironmentCommand.js +18 -40
  3. package/dist-cjs/commands/CreateProjectCommand.js +18 -40
  4. package/dist-cjs/commands/CreateSourceRepositoryBranchCommand.js +18 -40
  5. package/dist-cjs/commands/CreateSourceRepositoryCommand.js +18 -40
  6. package/dist-cjs/commands/DeleteAccessTokenCommand.js +18 -40
  7. package/dist-cjs/commands/DeleteDevEnvironmentCommand.js +18 -40
  8. package/dist-cjs/commands/DeleteProjectCommand.js +18 -40
  9. package/dist-cjs/commands/DeleteSourceRepositoryCommand.js +18 -40
  10. package/dist-cjs/commands/DeleteSpaceCommand.js +18 -40
  11. package/dist-cjs/commands/GetDevEnvironmentCommand.js +18 -40
  12. package/dist-cjs/commands/GetProjectCommand.js +18 -40
  13. package/dist-cjs/commands/GetSourceRepositoryCloneUrlsCommand.js +18 -40
  14. package/dist-cjs/commands/GetSourceRepositoryCommand.js +18 -40
  15. package/dist-cjs/commands/GetSpaceCommand.js +18 -40
  16. package/dist-cjs/commands/GetSubscriptionCommand.js +18 -40
  17. package/dist-cjs/commands/GetUserDetailsCommand.js +18 -40
  18. package/dist-cjs/commands/GetWorkflowCommand.js +18 -40
  19. package/dist-cjs/commands/GetWorkflowRunCommand.js +18 -40
  20. package/dist-cjs/commands/ListAccessTokensCommand.js +18 -40
  21. package/dist-cjs/commands/ListDevEnvironmentSessionsCommand.js +18 -40
  22. package/dist-cjs/commands/ListDevEnvironmentsCommand.js +18 -40
  23. package/dist-cjs/commands/ListEventLogsCommand.js +18 -40
  24. package/dist-cjs/commands/ListProjectsCommand.js +18 -40
  25. package/dist-cjs/commands/ListSourceRepositoriesCommand.js +18 -40
  26. package/dist-cjs/commands/ListSourceRepositoryBranchesCommand.js +18 -40
  27. package/dist-cjs/commands/ListSpacesCommand.js +18 -40
  28. package/dist-cjs/commands/ListWorkflowRunsCommand.js +18 -40
  29. package/dist-cjs/commands/ListWorkflowsCommand.js +18 -40
  30. package/dist-cjs/commands/StartDevEnvironmentCommand.js +18 -40
  31. package/dist-cjs/commands/StartDevEnvironmentSessionCommand.js +18 -40
  32. package/dist-cjs/commands/StartWorkflowRunCommand.js +18 -40
  33. package/dist-cjs/commands/StopDevEnvironmentCommand.js +18 -40
  34. package/dist-cjs/commands/StopDevEnvironmentSessionCommand.js +18 -40
  35. package/dist-cjs/commands/UpdateDevEnvironmentCommand.js +18 -40
  36. package/dist-cjs/commands/UpdateProjectCommand.js +18 -40
  37. package/dist-cjs/commands/UpdateSpaceCommand.js +18 -40
  38. package/dist-cjs/commands/VerifySessionCommand.js +18 -40
  39. package/dist-cjs/endpoint/EndpointParameters.js +6 -1
  40. package/dist-cjs/pagination/ListAccessTokensPaginator.js +2 -24
  41. package/dist-cjs/pagination/ListDevEnvironmentSessionsPaginator.js +2 -24
  42. package/dist-cjs/pagination/ListDevEnvironmentsPaginator.js +2 -24
  43. package/dist-cjs/pagination/ListEventLogsPaginator.js +2 -24
  44. package/dist-cjs/pagination/ListProjectsPaginator.js +2 -24
  45. package/dist-cjs/pagination/ListSourceRepositoriesPaginator.js +2 -24
  46. package/dist-cjs/pagination/ListSourceRepositoryBranchesPaginator.js +2 -24
  47. package/dist-cjs/pagination/ListSpacesPaginator.js +2 -23
  48. package/dist-cjs/pagination/ListWorkflowRunsPaginator.js +2 -24
  49. package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
  50. package/dist-es/commands/CreateAccessTokenCommand.js +18 -40
  51. package/dist-es/commands/CreateDevEnvironmentCommand.js +18 -40
  52. package/dist-es/commands/CreateProjectCommand.js +18 -40
  53. package/dist-es/commands/CreateSourceRepositoryBranchCommand.js +18 -40
  54. package/dist-es/commands/CreateSourceRepositoryCommand.js +18 -40
  55. package/dist-es/commands/DeleteAccessTokenCommand.js +18 -40
  56. package/dist-es/commands/DeleteDevEnvironmentCommand.js +18 -40
  57. package/dist-es/commands/DeleteProjectCommand.js +18 -40
  58. package/dist-es/commands/DeleteSourceRepositoryCommand.js +18 -40
  59. package/dist-es/commands/DeleteSpaceCommand.js +18 -40
  60. package/dist-es/commands/GetDevEnvironmentCommand.js +18 -40
  61. package/dist-es/commands/GetProjectCommand.js +18 -40
  62. package/dist-es/commands/GetSourceRepositoryCloneUrlsCommand.js +18 -40
  63. package/dist-es/commands/GetSourceRepositoryCommand.js +18 -40
  64. package/dist-es/commands/GetSpaceCommand.js +18 -40
  65. package/dist-es/commands/GetSubscriptionCommand.js +18 -40
  66. package/dist-es/commands/GetUserDetailsCommand.js +18 -40
  67. package/dist-es/commands/GetWorkflowCommand.js +18 -40
  68. package/dist-es/commands/GetWorkflowRunCommand.js +18 -40
  69. package/dist-es/commands/ListAccessTokensCommand.js +18 -40
  70. package/dist-es/commands/ListDevEnvironmentSessionsCommand.js +18 -40
  71. package/dist-es/commands/ListDevEnvironmentsCommand.js +18 -40
  72. package/dist-es/commands/ListEventLogsCommand.js +18 -40
  73. package/dist-es/commands/ListProjectsCommand.js +18 -40
  74. package/dist-es/commands/ListSourceRepositoriesCommand.js +18 -40
  75. package/dist-es/commands/ListSourceRepositoryBranchesCommand.js +18 -40
  76. package/dist-es/commands/ListSpacesCommand.js +18 -40
  77. package/dist-es/commands/ListWorkflowRunsCommand.js +18 -40
  78. package/dist-es/commands/ListWorkflowsCommand.js +18 -40
  79. package/dist-es/commands/StartDevEnvironmentCommand.js +18 -40
  80. package/dist-es/commands/StartDevEnvironmentSessionCommand.js +18 -40
  81. package/dist-es/commands/StartWorkflowRunCommand.js +18 -40
  82. package/dist-es/commands/StopDevEnvironmentCommand.js +18 -40
  83. package/dist-es/commands/StopDevEnvironmentSessionCommand.js +18 -40
  84. package/dist-es/commands/UpdateDevEnvironmentCommand.js +18 -40
  85. package/dist-es/commands/UpdateProjectCommand.js +18 -40
  86. package/dist-es/commands/UpdateSpaceCommand.js +18 -40
  87. package/dist-es/commands/VerifySessionCommand.js +18 -40
  88. package/dist-es/endpoint/EndpointParameters.js +5 -0
  89. package/dist-es/pagination/ListAccessTokensPaginator.js +2 -23
  90. package/dist-es/pagination/ListDevEnvironmentSessionsPaginator.js +2 -23
  91. package/dist-es/pagination/ListDevEnvironmentsPaginator.js +2 -23
  92. package/dist-es/pagination/ListEventLogsPaginator.js +2 -23
  93. package/dist-es/pagination/ListProjectsPaginator.js +2 -23
  94. package/dist-es/pagination/ListSourceRepositoriesPaginator.js +2 -23
  95. package/dist-es/pagination/ListSourceRepositoryBranchesPaginator.js +2 -23
  96. package/dist-es/pagination/ListSpacesPaginator.js +2 -22
  97. package/dist-es/pagination/ListWorkflowRunsPaginator.js +2 -23
  98. package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
  99. package/dist-types/commands/CreateAccessTokenCommand.d.ts +6 -21
  100. package/dist-types/commands/CreateDevEnvironmentCommand.d.ts +6 -21
  101. package/dist-types/commands/CreateProjectCommand.d.ts +6 -21
  102. package/dist-types/commands/CreateSourceRepositoryBranchCommand.d.ts +6 -21
  103. package/dist-types/commands/CreateSourceRepositoryCommand.d.ts +6 -21
  104. package/dist-types/commands/DeleteAccessTokenCommand.d.ts +6 -21
  105. package/dist-types/commands/DeleteDevEnvironmentCommand.d.ts +6 -21
  106. package/dist-types/commands/DeleteProjectCommand.d.ts +6 -21
  107. package/dist-types/commands/DeleteSourceRepositoryCommand.d.ts +6 -21
  108. package/dist-types/commands/DeleteSpaceCommand.d.ts +6 -21
  109. package/dist-types/commands/GetDevEnvironmentCommand.d.ts +6 -21
  110. package/dist-types/commands/GetProjectCommand.d.ts +6 -21
  111. package/dist-types/commands/GetSourceRepositoryCloneUrlsCommand.d.ts +6 -21
  112. package/dist-types/commands/GetSourceRepositoryCommand.d.ts +6 -21
  113. package/dist-types/commands/GetSpaceCommand.d.ts +6 -21
  114. package/dist-types/commands/GetSubscriptionCommand.d.ts +6 -21
  115. package/dist-types/commands/GetUserDetailsCommand.d.ts +6 -21
  116. package/dist-types/commands/GetWorkflowCommand.d.ts +6 -21
  117. package/dist-types/commands/GetWorkflowRunCommand.d.ts +6 -21
  118. package/dist-types/commands/ListAccessTokensCommand.d.ts +6 -21
  119. package/dist-types/commands/ListDevEnvironmentSessionsCommand.d.ts +6 -21
  120. package/dist-types/commands/ListDevEnvironmentsCommand.d.ts +6 -21
  121. package/dist-types/commands/ListEventLogsCommand.d.ts +6 -21
  122. package/dist-types/commands/ListProjectsCommand.d.ts +6 -21
  123. package/dist-types/commands/ListSourceRepositoriesCommand.d.ts +6 -21
  124. package/dist-types/commands/ListSourceRepositoryBranchesCommand.d.ts +6 -21
  125. package/dist-types/commands/ListSpacesCommand.d.ts +6 -21
  126. package/dist-types/commands/ListWorkflowRunsCommand.d.ts +6 -21
  127. package/dist-types/commands/ListWorkflowsCommand.d.ts +6 -21
  128. package/dist-types/commands/StartDevEnvironmentCommand.d.ts +6 -21
  129. package/dist-types/commands/StartDevEnvironmentSessionCommand.d.ts +6 -21
  130. package/dist-types/commands/StartWorkflowRunCommand.d.ts +6 -21
  131. package/dist-types/commands/StopDevEnvironmentCommand.d.ts +6 -21
  132. package/dist-types/commands/StopDevEnvironmentSessionCommand.d.ts +6 -21
  133. package/dist-types/commands/UpdateDevEnvironmentCommand.d.ts +6 -21
  134. package/dist-types/commands/UpdateProjectCommand.d.ts +6 -21
  135. package/dist-types/commands/UpdateSpaceCommand.d.ts +6 -21
  136. package/dist-types/commands/VerifySessionCommand.d.ts +6 -21
  137. package/dist-types/endpoint/EndpointParameters.d.ts +14 -0
  138. package/dist-types/pagination/ListAccessTokensPaginator.d.ts +1 -1
  139. package/dist-types/pagination/ListDevEnvironmentSessionsPaginator.d.ts +1 -1
  140. package/dist-types/pagination/ListDevEnvironmentsPaginator.d.ts +1 -1
  141. package/dist-types/pagination/ListEventLogsPaginator.d.ts +1 -1
  142. package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
  143. package/dist-types/pagination/ListSourceRepositoriesPaginator.d.ts +1 -1
  144. package/dist-types/pagination/ListSourceRepositoryBranchesPaginator.d.ts +1 -1
  145. package/dist-types/pagination/ListSpacesPaginator.d.ts +1 -1
  146. package/dist-types/pagination/ListWorkflowRunsPaginator.d.ts +1 -1
  147. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
  148. package/dist-types/ts3.4/commands/CreateAccessTokenCommand.d.ts +14 -23
  149. package/dist-types/ts3.4/commands/CreateDevEnvironmentCommand.d.ts +12 -24
  150. package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +14 -23
  151. package/dist-types/ts3.4/commands/CreateSourceRepositoryBranchCommand.d.ts +12 -24
  152. package/dist-types/ts3.4/commands/CreateSourceRepositoryCommand.d.ts +12 -24
  153. package/dist-types/ts3.4/commands/DeleteAccessTokenCommand.d.ts +14 -23
  154. package/dist-types/ts3.4/commands/DeleteDevEnvironmentCommand.d.ts +12 -24
  155. package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +14 -23
  156. package/dist-types/ts3.4/commands/DeleteSourceRepositoryCommand.d.ts +12 -24
  157. package/dist-types/ts3.4/commands/DeleteSpaceCommand.d.ts +14 -23
  158. package/dist-types/ts3.4/commands/GetDevEnvironmentCommand.d.ts +14 -23
  159. package/dist-types/ts3.4/commands/GetProjectCommand.d.ts +14 -23
  160. package/dist-types/ts3.4/commands/GetSourceRepositoryCloneUrlsCommand.d.ts +12 -24
  161. package/dist-types/ts3.4/commands/GetSourceRepositoryCommand.d.ts +14 -23
  162. package/dist-types/ts3.4/commands/GetSpaceCommand.d.ts +14 -23
  163. package/dist-types/ts3.4/commands/GetSubscriptionCommand.d.ts +14 -23
  164. package/dist-types/ts3.4/commands/GetUserDetailsCommand.d.ts +14 -23
  165. package/dist-types/ts3.4/commands/GetWorkflowCommand.d.ts +14 -23
  166. package/dist-types/ts3.4/commands/GetWorkflowRunCommand.d.ts +14 -23
  167. package/dist-types/ts3.4/commands/ListAccessTokensCommand.d.ts +14 -23
  168. package/dist-types/ts3.4/commands/ListDevEnvironmentSessionsCommand.d.ts +12 -24
  169. package/dist-types/ts3.4/commands/ListDevEnvironmentsCommand.d.ts +14 -23
  170. package/dist-types/ts3.4/commands/ListEventLogsCommand.d.ts +14 -23
  171. package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +14 -23
  172. package/dist-types/ts3.4/commands/ListSourceRepositoriesCommand.d.ts +12 -24
  173. package/dist-types/ts3.4/commands/ListSourceRepositoryBranchesCommand.d.ts +12 -24
  174. package/dist-types/ts3.4/commands/ListSpacesCommand.d.ts +14 -23
  175. package/dist-types/ts3.4/commands/ListWorkflowRunsCommand.d.ts +14 -23
  176. package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +14 -23
  177. package/dist-types/ts3.4/commands/StartDevEnvironmentCommand.d.ts +14 -23
  178. package/dist-types/ts3.4/commands/StartDevEnvironmentSessionCommand.d.ts +12 -24
  179. package/dist-types/ts3.4/commands/StartWorkflowRunCommand.d.ts +14 -23
  180. package/dist-types/ts3.4/commands/StopDevEnvironmentCommand.d.ts +14 -23
  181. package/dist-types/ts3.4/commands/StopDevEnvironmentSessionCommand.d.ts +12 -24
  182. package/dist-types/ts3.4/commands/UpdateDevEnvironmentCommand.d.ts +12 -24
  183. package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +14 -23
  184. package/dist-types/ts3.4/commands/UpdateSpaceCommand.d.ts +14 -23
  185. package/dist-types/ts3.4/commands/VerifySessionCommand.d.ts +14 -23
  186. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +14 -0
  187. package/dist-types/ts3.4/pagination/ListAccessTokensPaginator.d.ts +3 -3
  188. package/dist-types/ts3.4/pagination/ListDevEnvironmentSessionsPaginator.d.ts +3 -3
  189. package/dist-types/ts3.4/pagination/ListDevEnvironmentsPaginator.d.ts +3 -3
  190. package/dist-types/ts3.4/pagination/ListEventLogsPaginator.d.ts +3 -3
  191. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
  192. package/dist-types/ts3.4/pagination/ListSourceRepositoriesPaginator.d.ts +3 -3
  193. package/dist-types/ts3.4/pagination/ListSourceRepositoryBranchesPaginator.d.ts +3 -3
  194. package/dist-types/ts3.4/pagination/ListSpacesPaginator.d.ts +3 -3
  195. package/dist-types/ts3.4/pagination/ListWorkflowRunsPaginator.d.ts +3 -3
  196. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
  197. package/package.json +10 -10
@@ -5,46 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateSpaceCommand extends smithy_client_1.Command {
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
- constructor(input) {
19
- super();
20
- this.input = input;
21
- }
22
- resolveMiddleware(clientStack, configuration, options) {
23
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateSpaceCommand.getEndpointParameterInstructions()));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "CodeCatalystClient";
28
- const commandName = "UpdateSpaceCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [types_1.SMITHY_CONTEXT_KEY]: {
36
- service: "CodeCatalyst",
37
- operation: "UpdateSpace",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return (0, Aws_restJson1_1.se_UpdateSpaceCommand)(input, context);
45
- }
46
- deserialize(output, context) {
47
- return (0, Aws_restJson1_1.de_UpdateSpaceCommand)(output, context);
48
- }
10
+ class UpdateSpaceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("CodeCatalyst", "UpdateSpace", {})
22
+ .n("CodeCatalystClient", "UpdateSpaceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateSpaceCommand)
25
+ .de(Aws_restJson1_1.de_UpdateSpaceCommand)
26
+ .build() {
49
27
  }
50
28
  exports.UpdateSpaceCommand = UpdateSpaceCommand;
@@ -5,46 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class VerifySessionCommand extends smithy_client_1.Command {
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
- constructor(input) {
19
- super();
20
- this.input = input;
21
- }
22
- resolveMiddleware(clientStack, configuration, options) {
23
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, VerifySessionCommand.getEndpointParameterInstructions()));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "CodeCatalystClient";
28
- const commandName = "VerifySessionCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [types_1.SMITHY_CONTEXT_KEY]: {
36
- service: "CodeCatalyst",
37
- operation: "VerifySession",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return (0, Aws_restJson1_1.se_VerifySessionCommand)(input, context);
45
- }
46
- deserialize(output, context) {
47
- return (0, Aws_restJson1_1.de_VerifySessionCommand)(output, context);
48
- }
10
+ class VerifySessionCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("CodeCatalyst", "VerifySession", {})
22
+ .n("CodeCatalystClient", "VerifySessionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_VerifySessionCommand)
25
+ .de(Aws_restJson1_1.de_VerifySessionCommand)
26
+ .build() {
49
27
  }
50
28
  exports.VerifySessionCommand = VerifySessionCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -9,3 +9,8 @@ const resolveClientEndpointParameters = (options) => {
9
9
  };
10
10
  };
11
11
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
12
+ exports.commonParams = {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ };
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAccessTokens = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListAccessTokensCommand_1 = require("../commands/ListAccessTokensCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAccessTokensCommand_1.ListAccessTokensCommand(input), ...args);
8
- };
9
- async function* paginateListAccessTokens(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAccessTokens = paginateListAccessTokens;
7
+ exports.paginateListAccessTokens = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListAccessTokensCommand_1.ListAccessTokensCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDevEnvironmentSessions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListDevEnvironmentSessionsCommand_1 = require("../commands/ListDevEnvironmentSessionsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDevEnvironmentSessionsCommand_1.ListDevEnvironmentSessionsCommand(input), ...args);
8
- };
9
- async function* paginateListDevEnvironmentSessions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDevEnvironmentSessions = paginateListDevEnvironmentSessions;
7
+ exports.paginateListDevEnvironmentSessions = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListDevEnvironmentSessionsCommand_1.ListDevEnvironmentSessionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDevEnvironments = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListDevEnvironmentsCommand_1 = require("../commands/ListDevEnvironmentsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDevEnvironmentsCommand_1.ListDevEnvironmentsCommand(input), ...args);
8
- };
9
- async function* paginateListDevEnvironments(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDevEnvironments = paginateListDevEnvironments;
7
+ exports.paginateListDevEnvironments = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListDevEnvironmentsCommand_1.ListDevEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEventLogs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListEventLogsCommand_1 = require("../commands/ListEventLogsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEventLogsCommand_1.ListEventLogsCommand(input), ...args);
8
- };
9
- async function* paginateListEventLogs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListEventLogs = paginateListEventLogs;
7
+ exports.paginateListEventLogs = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListEventLogsCommand_1.ListEventLogsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListProjects = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListProjectsCommand_1 = require("../commands/ListProjectsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListProjectsCommand_1.ListProjectsCommand(input), ...args);
8
- };
9
- async function* paginateListProjects(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListProjects = paginateListProjects;
7
+ exports.paginateListProjects = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListProjectsCommand_1.ListProjectsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSourceRepositories = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListSourceRepositoriesCommand_1 = require("../commands/ListSourceRepositoriesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSourceRepositoriesCommand_1.ListSourceRepositoriesCommand(input), ...args);
8
- };
9
- async function* paginateListSourceRepositories(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSourceRepositories = paginateListSourceRepositories;
7
+ exports.paginateListSourceRepositories = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListSourceRepositoriesCommand_1.ListSourceRepositoriesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSourceRepositoryBranches = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListSourceRepositoryBranchesCommand_1 = require("../commands/ListSourceRepositoryBranchesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSourceRepositoryBranchesCommand_1.ListSourceRepositoryBranchesCommand(input), ...args);
8
- };
9
- async function* paginateListSourceRepositoryBranches(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSourceRepositoryBranches = paginateListSourceRepositoryBranches;
7
+ exports.paginateListSourceRepositoryBranches = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListSourceRepositoryBranchesCommand_1.ListSourceRepositoryBranchesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSpaces = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListSpacesCommand_1 = require("../commands/ListSpacesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSpacesCommand_1.ListSpacesCommand(input), ...args);
8
- };
9
- async function* paginateListSpaces(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.nextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateListSpaces = paginateListSpaces;
7
+ exports.paginateListSpaces = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListSpacesCommand_1.ListSpacesCommand, "nextToken", "nextToken", "");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWorkflowRuns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListWorkflowRunsCommand_1 = require("../commands/ListWorkflowRunsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWorkflowRunsCommand_1.ListWorkflowRunsCommand(input), ...args);
8
- };
9
- async function* paginateListWorkflowRuns(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListWorkflowRuns = paginateListWorkflowRuns;
7
+ exports.paginateListWorkflowRuns = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListWorkflowRunsCommand_1.ListWorkflowRunsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWorkflows = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListWorkflowsCommand_1 = require("../commands/ListWorkflowsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWorkflowsCommand_1.ListWorkflowsCommand(input), ...args);
8
- };
9
- async function* paginateListWorkflows(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListWorkflows = paginateListWorkflows;
7
+ exports.paginateListWorkflows = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListWorkflowsCommand_1.ListWorkflowsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,47 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { CreateAccessTokenResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_CreateAccessTokenCommand, se_CreateAccessTokenCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class CreateAccessTokenCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateAccessTokenCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CodeCatalystClient";
26
- const commandName = "CreateAccessTokenCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: CreateAccessTokenResponseFilterSensitiveLog,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeCatalyst",
35
- operation: "CreateAccessToken",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateAccessTokenCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateAccessTokenCommand(output, context);
46
- }
8
+ export class CreateAccessTokenCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("CodeCatalyst", "CreateAccessToken", {})
20
+ .n("CodeCatalystClient", "CreateAccessTokenCommand")
21
+ .f(void 0, CreateAccessTokenResponseFilterSensitiveLog)
22
+ .ser(se_CreateAccessTokenCommand)
23
+ .de(de_CreateAccessTokenCommand)
24
+ .build() {
47
25
  }
@@ -1,46 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateDevEnvironmentCommand, se_CreateDevEnvironmentCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateDevEnvironmentCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- };
14
- }
15
- constructor(input) {
16
- super();
17
- this.input = input;
18
- }
19
- resolveMiddleware(clientStack, configuration, options) {
20
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateDevEnvironmentCommand.getEndpointParameterInstructions()));
22
- const stack = clientStack.concat(this.middlewareStack);
23
- const { logger } = configuration;
24
- const clientName = "CodeCatalystClient";
25
- const commandName = "CreateDevEnvironmentCommand";
26
- const handlerExecutionContext = {
27
- logger,
28
- clientName,
29
- commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
- outputFilterSensitiveLog: (_) => _,
32
- [SMITHY_CONTEXT_KEY]: {
33
- service: "CodeCatalyst",
34
- operation: "CreateDevEnvironment",
35
- },
36
- };
37
- const { requestHandler } = configuration;
38
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
39
- }
40
- serialize(input, context) {
41
- return se_CreateDevEnvironmentCommand(input, context);
42
- }
43
- deserialize(output, context) {
44
- return de_CreateDevEnvironmentCommand(output, context);
45
- }
7
+ export class CreateDevEnvironmentCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CodeCatalyst", "CreateDevEnvironment", {})
19
+ .n("CodeCatalystClient", "CreateDevEnvironmentCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateDevEnvironmentCommand)
22
+ .de(de_CreateDevEnvironmentCommand)
23
+ .build() {
46
24
  }