@aws-sdk/client-codecatalyst 3.222.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 (195) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +312 -0
  3. package/dist-cjs/CodeCatalyst.js +367 -0
  4. package/dist-cjs/CodeCatalystClient.js +40 -0
  5. package/dist-cjs/commands/CreateAccessTokenCommand.js +45 -0
  6. package/dist-cjs/commands/CreateDevEnvironmentCommand.js +45 -0
  7. package/dist-cjs/commands/CreateProjectCommand.js +45 -0
  8. package/dist-cjs/commands/CreateSourceRepositoryBranchCommand.js +45 -0
  9. package/dist-cjs/commands/DeleteAccessTokenCommand.js +45 -0
  10. package/dist-cjs/commands/DeleteDevEnvironmentCommand.js +45 -0
  11. package/dist-cjs/commands/GetDevEnvironmentCommand.js +45 -0
  12. package/dist-cjs/commands/GetProjectCommand.js +45 -0
  13. package/dist-cjs/commands/GetSourceRepositoryCloneUrlsCommand.js +45 -0
  14. package/dist-cjs/commands/GetSpaceCommand.js +45 -0
  15. package/dist-cjs/commands/GetSubscriptionCommand.js +45 -0
  16. package/dist-cjs/commands/GetUserDetailsCommand.js +45 -0
  17. package/dist-cjs/commands/ListAccessTokensCommand.js +45 -0
  18. package/dist-cjs/commands/ListDevEnvironmentsCommand.js +45 -0
  19. package/dist-cjs/commands/ListEventLogsCommand.js +45 -0
  20. package/dist-cjs/commands/ListProjectsCommand.js +45 -0
  21. package/dist-cjs/commands/ListSourceRepositoriesCommand.js +45 -0
  22. package/dist-cjs/commands/ListSourceRepositoryBranchesCommand.js +45 -0
  23. package/dist-cjs/commands/ListSpacesCommand.js +45 -0
  24. package/dist-cjs/commands/StartDevEnvironmentCommand.js +45 -0
  25. package/dist-cjs/commands/StartDevEnvironmentSessionCommand.js +45 -0
  26. package/dist-cjs/commands/StopDevEnvironmentCommand.js +45 -0
  27. package/dist-cjs/commands/UpdateDevEnvironmentCommand.js +45 -0
  28. package/dist-cjs/commands/VerifySessionCommand.js +45 -0
  29. package/dist-cjs/commands/index.js +27 -0
  30. package/dist-cjs/endpoint/EndpointParameters.js +11 -0
  31. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  32. package/dist-cjs/endpoint/ruleset.js +214 -0
  33. package/dist-cjs/index.js +11 -0
  34. package/dist-cjs/models/CodeCatalystServiceException.js +11 -0
  35. package/dist-cjs/models/index.js +4 -0
  36. package/dist-cjs/models/models_0.js +416 -0
  37. package/dist-cjs/pagination/Interfaces.js +2 -0
  38. package/dist-cjs/pagination/ListAccessTokensPaginator.js +36 -0
  39. package/dist-cjs/pagination/ListDevEnvironmentsPaginator.js +36 -0
  40. package/dist-cjs/pagination/ListEventLogsPaginator.js +36 -0
  41. package/dist-cjs/pagination/ListProjectsPaginator.js +36 -0
  42. package/dist-cjs/pagination/ListSourceRepositoriesPaginator.js +36 -0
  43. package/dist-cjs/pagination/ListSourceRepositoryBranchesPaginator.js +36 -0
  44. package/dist-cjs/pagination/ListSpacesPaginator.js +35 -0
  45. package/dist-cjs/pagination/index.js +11 -0
  46. package/dist-cjs/protocols/Aws_restJson1.js +2372 -0
  47. package/dist-cjs/runtimeConfig.browser.js +39 -0
  48. package/dist-cjs/runtimeConfig.js +46 -0
  49. package/dist-cjs/runtimeConfig.native.js +15 -0
  50. package/dist-cjs/runtimeConfig.shared.js +18 -0
  51. package/dist-es/CodeCatalyst.js +363 -0
  52. package/dist-es/CodeCatalystClient.js +36 -0
  53. package/dist-es/commands/CreateAccessTokenCommand.js +41 -0
  54. package/dist-es/commands/CreateDevEnvironmentCommand.js +41 -0
  55. package/dist-es/commands/CreateProjectCommand.js +41 -0
  56. package/dist-es/commands/CreateSourceRepositoryBranchCommand.js +41 -0
  57. package/dist-es/commands/DeleteAccessTokenCommand.js +41 -0
  58. package/dist-es/commands/DeleteDevEnvironmentCommand.js +41 -0
  59. package/dist-es/commands/GetDevEnvironmentCommand.js +41 -0
  60. package/dist-es/commands/GetProjectCommand.js +41 -0
  61. package/dist-es/commands/GetSourceRepositoryCloneUrlsCommand.js +41 -0
  62. package/dist-es/commands/GetSpaceCommand.js +41 -0
  63. package/dist-es/commands/GetSubscriptionCommand.js +41 -0
  64. package/dist-es/commands/GetUserDetailsCommand.js +41 -0
  65. package/dist-es/commands/ListAccessTokensCommand.js +41 -0
  66. package/dist-es/commands/ListDevEnvironmentsCommand.js +41 -0
  67. package/dist-es/commands/ListEventLogsCommand.js +41 -0
  68. package/dist-es/commands/ListProjectsCommand.js +41 -0
  69. package/dist-es/commands/ListSourceRepositoriesCommand.js +41 -0
  70. package/dist-es/commands/ListSourceRepositoryBranchesCommand.js +41 -0
  71. package/dist-es/commands/ListSpacesCommand.js +41 -0
  72. package/dist-es/commands/StartDevEnvironmentCommand.js +41 -0
  73. package/dist-es/commands/StartDevEnvironmentSessionCommand.js +41 -0
  74. package/dist-es/commands/StopDevEnvironmentCommand.js +41 -0
  75. package/dist-es/commands/UpdateDevEnvironmentCommand.js +41 -0
  76. package/dist-es/commands/VerifySessionCommand.js +41 -0
  77. package/dist-es/commands/index.js +24 -0
  78. package/dist-es/endpoint/EndpointParameters.js +7 -0
  79. package/dist-es/endpoint/endpointResolver.js +8 -0
  80. package/dist-es/endpoint/ruleset.js +211 -0
  81. package/dist-es/index.js +6 -0
  82. package/dist-es/models/CodeCatalystServiceException.js +7 -0
  83. package/dist-es/models/index.js +1 -0
  84. package/dist-es/models/models_0.js +337 -0
  85. package/dist-es/pagination/Interfaces.js +1 -0
  86. package/dist-es/pagination/ListAccessTokensPaginator.js +32 -0
  87. package/dist-es/pagination/ListDevEnvironmentsPaginator.js +32 -0
  88. package/dist-es/pagination/ListEventLogsPaginator.js +32 -0
  89. package/dist-es/pagination/ListProjectsPaginator.js +32 -0
  90. package/dist-es/pagination/ListSourceRepositoriesPaginator.js +32 -0
  91. package/dist-es/pagination/ListSourceRepositoryBranchesPaginator.js +32 -0
  92. package/dist-es/pagination/ListSpacesPaginator.js +31 -0
  93. package/dist-es/pagination/index.js +8 -0
  94. package/dist-es/protocols/Aws_restJson1.js +2321 -0
  95. package/dist-es/runtimeConfig.browser.js +34 -0
  96. package/dist-es/runtimeConfig.js +41 -0
  97. package/dist-es/runtimeConfig.native.js +11 -0
  98. package/dist-es/runtimeConfig.shared.js +14 -0
  99. package/dist-types/CodeCatalyst.d.ts +291 -0
  100. package/dist-types/CodeCatalystClient.d.ts +263 -0
  101. package/dist-types/commands/CreateAccessTokenCommand.d.ts +40 -0
  102. package/dist-types/commands/CreateDevEnvironmentCommand.d.ts +38 -0
  103. package/dist-types/commands/CreateProjectCommand.d.ts +37 -0
  104. package/dist-types/commands/CreateSourceRepositoryBranchCommand.d.ts +40 -0
  105. package/dist-types/commands/DeleteAccessTokenCommand.d.ts +37 -0
  106. package/dist-types/commands/DeleteDevEnvironmentCommand.d.ts +37 -0
  107. package/dist-types/commands/GetDevEnvironmentCommand.d.ts +37 -0
  108. package/dist-types/commands/GetProjectCommand.d.ts +37 -0
  109. package/dist-types/commands/GetSourceRepositoryCloneUrlsCommand.d.ts +38 -0
  110. package/dist-types/commands/GetSpaceCommand.d.ts +37 -0
  111. package/dist-types/commands/GetSubscriptionCommand.d.ts +38 -0
  112. package/dist-types/commands/GetUserDetailsCommand.d.ts +37 -0
  113. package/dist-types/commands/ListAccessTokensCommand.d.ts +37 -0
  114. package/dist-types/commands/ListDevEnvironmentsCommand.d.ts +37 -0
  115. package/dist-types/commands/ListEventLogsCommand.d.ts +37 -0
  116. package/dist-types/commands/ListProjectsCommand.d.ts +37 -0
  117. package/dist-types/commands/ListSourceRepositoriesCommand.d.ts +37 -0
  118. package/dist-types/commands/ListSourceRepositoryBranchesCommand.d.ts +37 -0
  119. package/dist-types/commands/ListSpacesCommand.d.ts +37 -0
  120. package/dist-types/commands/StartDevEnvironmentCommand.d.ts +37 -0
  121. package/dist-types/commands/StartDevEnvironmentSessionCommand.d.ts +37 -0
  122. package/dist-types/commands/StopDevEnvironmentCommand.d.ts +37 -0
  123. package/dist-types/commands/UpdateDevEnvironmentCommand.d.ts +37 -0
  124. package/dist-types/commands/VerifySessionCommand.d.ts +37 -0
  125. package/dist-types/commands/index.d.ts +24 -0
  126. package/dist-types/endpoint/EndpointParameters.d.ts +17 -0
  127. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  128. package/dist-types/endpoint/ruleset.d.ts +2 -0
  129. package/dist-types/index.d.ts +6 -0
  130. package/dist-types/models/CodeCatalystServiceException.d.ts +10 -0
  131. package/dist-types/models/index.d.ts +1 -0
  132. package/dist-types/models/models_0.d.ts +1601 -0
  133. package/dist-types/pagination/Interfaces.d.ts +6 -0
  134. package/dist-types/pagination/ListAccessTokensPaginator.d.ts +4 -0
  135. package/dist-types/pagination/ListDevEnvironmentsPaginator.d.ts +4 -0
  136. package/dist-types/pagination/ListEventLogsPaginator.d.ts +4 -0
  137. package/dist-types/pagination/ListProjectsPaginator.d.ts +4 -0
  138. package/dist-types/pagination/ListSourceRepositoriesPaginator.d.ts +4 -0
  139. package/dist-types/pagination/ListSourceRepositoryBranchesPaginator.d.ts +4 -0
  140. package/dist-types/pagination/ListSpacesPaginator.d.ts +4 -0
  141. package/dist-types/pagination/index.d.ts +8 -0
  142. package/dist-types/protocols/Aws_restJson1.d.ts +74 -0
  143. package/dist-types/runtimeConfig.browser.d.ts +36 -0
  144. package/dist-types/runtimeConfig.d.ts +36 -0
  145. package/dist-types/runtimeConfig.native.d.ts +35 -0
  146. package/dist-types/runtimeConfig.shared.d.ts +16 -0
  147. package/dist-types/ts3.4/CodeCatalyst.d.ts +412 -0
  148. package/dist-types/ts3.4/CodeCatalystClient.d.ts +253 -0
  149. package/dist-types/ts3.4/commands/CreateAccessTokenCommand.d.ts +38 -0
  150. package/dist-types/ts3.4/commands/CreateDevEnvironmentCommand.d.ts +41 -0
  151. package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +37 -0
  152. package/dist-types/ts3.4/commands/CreateSourceRepositoryBranchCommand.d.ts +41 -0
  153. package/dist-types/ts3.4/commands/DeleteAccessTokenCommand.d.ts +38 -0
  154. package/dist-types/ts3.4/commands/DeleteDevEnvironmentCommand.d.ts +41 -0
  155. package/dist-types/ts3.4/commands/GetDevEnvironmentCommand.d.ts +38 -0
  156. package/dist-types/ts3.4/commands/GetProjectCommand.d.ts +34 -0
  157. package/dist-types/ts3.4/commands/GetSourceRepositoryCloneUrlsCommand.d.ts +41 -0
  158. package/dist-types/ts3.4/commands/GetSpaceCommand.d.ts +34 -0
  159. package/dist-types/ts3.4/commands/GetSubscriptionCommand.d.ts +37 -0
  160. package/dist-types/ts3.4/commands/GetUserDetailsCommand.d.ts +37 -0
  161. package/dist-types/ts3.4/commands/ListAccessTokensCommand.d.ts +37 -0
  162. package/dist-types/ts3.4/commands/ListDevEnvironmentsCommand.d.ts +38 -0
  163. package/dist-types/ts3.4/commands/ListEventLogsCommand.d.ts +37 -0
  164. package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +34 -0
  165. package/dist-types/ts3.4/commands/ListSourceRepositoriesCommand.d.ts +41 -0
  166. package/dist-types/ts3.4/commands/ListSourceRepositoryBranchesCommand.d.ts +41 -0
  167. package/dist-types/ts3.4/commands/ListSpacesCommand.d.ts +34 -0
  168. package/dist-types/ts3.4/commands/StartDevEnvironmentCommand.d.ts +38 -0
  169. package/dist-types/ts3.4/commands/StartDevEnvironmentSessionCommand.d.ts +41 -0
  170. package/dist-types/ts3.4/commands/StopDevEnvironmentCommand.d.ts +38 -0
  171. package/dist-types/ts3.4/commands/UpdateDevEnvironmentCommand.d.ts +41 -0
  172. package/dist-types/ts3.4/commands/VerifySessionCommand.d.ts +34 -0
  173. package/dist-types/ts3.4/commands/index.d.ts +24 -0
  174. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  175. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  176. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  177. package/dist-types/ts3.4/index.d.ts +6 -0
  178. package/dist-types/ts3.4/models/CodeCatalystServiceException.d.ts +7 -0
  179. package/dist-types/ts3.4/models/index.d.ts +1 -0
  180. package/dist-types/ts3.4/models/models_0.d.ts +662 -0
  181. package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
  182. package/dist-types/ts3.4/pagination/ListAccessTokensPaginator.d.ts +11 -0
  183. package/dist-types/ts3.4/pagination/ListDevEnvironmentsPaginator.d.ts +11 -0
  184. package/dist-types/ts3.4/pagination/ListEventLogsPaginator.d.ts +11 -0
  185. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +11 -0
  186. package/dist-types/ts3.4/pagination/ListSourceRepositoriesPaginator.d.ts +11 -0
  187. package/dist-types/ts3.4/pagination/ListSourceRepositoryBranchesPaginator.d.ts +11 -0
  188. package/dist-types/ts3.4/pagination/ListSpacesPaginator.d.ts +11 -0
  189. package/dist-types/ts3.4/pagination/index.d.ts +8 -0
  190. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +293 -0
  191. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +68 -0
  192. package/dist-types/ts3.4/runtimeConfig.d.ts +68 -0
  193. package/dist-types/ts3.4/runtimeConfig.native.d.ts +57 -0
  194. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
  195. package/package.json +100 -0
@@ -0,0 +1,34 @@
1
+ import packageInfo from "../package.json";
2
+ import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
6
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
7
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
8
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
9
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
11
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
12
+ export const getRuntimeConfig = (config) => {
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ return {
17
+ ...clientSharedValues,
18
+ ...config,
19
+ runtime: "browser",
20
+ defaultsMode,
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
23
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
24
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
25
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
26
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
27
+ sha256: config?.sha256 ?? Sha256,
28
+ streamCollector: config?.streamCollector ?? streamCollector,
29
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
30
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
31
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
32
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
33
+ };
34
+ };
@@ -0,0 +1,41 @@
1
+ import packageInfo from "../package.json";
2
+ import { NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
3
+ import { Hash } from "@aws-sdk/hash-node";
4
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
5
+ import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
6
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
7
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
8
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
9
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
10
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
12
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
13
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
14
+ export const getRuntimeConfig = (config) => {
15
+ emitWarningIfUnsupportedVersion(process.version);
16
+ const defaultsMode = resolveDefaultsModeConfig(config);
17
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
18
+ const clientSharedValues = getSharedRuntimeConfig(config);
19
+ return {
20
+ ...clientSharedValues,
21
+ ...config,
22
+ runtime: "node",
23
+ defaultsMode,
24
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
25
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
26
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
27
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
28
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
29
+ retryMode: config?.retryMode ??
30
+ loadNodeConfig({
31
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
32
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
33
+ }),
34
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
35
+ streamCollector: config?.streamCollector ?? streamCollector,
36
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
37
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
38
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
39
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
40
+ };
41
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,14 @@
1
+ import { NoOpLogger } from "@aws-sdk/smithy-client";
2
+ import { parseUrl } from "@aws-sdk/url-parser";
3
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
4
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
5
+ export const getRuntimeConfig = (config) => ({
6
+ apiVersion: "2022-09-28",
7
+ base64Decoder: config?.base64Decoder ?? fromBase64,
8
+ base64Encoder: config?.base64Encoder ?? toBase64,
9
+ disableHostPrefix: config?.disableHostPrefix ?? false,
10
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
11
+ logger: config?.logger ?? new NoOpLogger(),
12
+ serviceId: config?.serviceId ?? "CodeCatalyst",
13
+ urlParser: config?.urlParser ?? parseUrl,
14
+ });
@@ -0,0 +1,291 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { CodeCatalystClient } from "./CodeCatalystClient";
3
+ import { CreateAccessTokenCommandInput, CreateAccessTokenCommandOutput } from "./commands/CreateAccessTokenCommand";
4
+ import { CreateDevEnvironmentCommandInput, CreateDevEnvironmentCommandOutput } from "./commands/CreateDevEnvironmentCommand";
5
+ import { CreateProjectCommandInput, CreateProjectCommandOutput } from "./commands/CreateProjectCommand";
6
+ import { CreateSourceRepositoryBranchCommandInput, CreateSourceRepositoryBranchCommandOutput } from "./commands/CreateSourceRepositoryBranchCommand";
7
+ import { DeleteAccessTokenCommandInput, DeleteAccessTokenCommandOutput } from "./commands/DeleteAccessTokenCommand";
8
+ import { DeleteDevEnvironmentCommandInput, DeleteDevEnvironmentCommandOutput } from "./commands/DeleteDevEnvironmentCommand";
9
+ import { GetDevEnvironmentCommandInput, GetDevEnvironmentCommandOutput } from "./commands/GetDevEnvironmentCommand";
10
+ import { GetProjectCommandInput, GetProjectCommandOutput } from "./commands/GetProjectCommand";
11
+ import { GetSourceRepositoryCloneUrlsCommandInput, GetSourceRepositoryCloneUrlsCommandOutput } from "./commands/GetSourceRepositoryCloneUrlsCommand";
12
+ import { GetSpaceCommandInput, GetSpaceCommandOutput } from "./commands/GetSpaceCommand";
13
+ import { GetSubscriptionCommandInput, GetSubscriptionCommandOutput } from "./commands/GetSubscriptionCommand";
14
+ import { GetUserDetailsCommandInput, GetUserDetailsCommandOutput } from "./commands/GetUserDetailsCommand";
15
+ import { ListAccessTokensCommandInput, ListAccessTokensCommandOutput } from "./commands/ListAccessTokensCommand";
16
+ import { ListDevEnvironmentsCommandInput, ListDevEnvironmentsCommandOutput } from "./commands/ListDevEnvironmentsCommand";
17
+ import { ListEventLogsCommandInput, ListEventLogsCommandOutput } from "./commands/ListEventLogsCommand";
18
+ import { ListProjectsCommandInput, ListProjectsCommandOutput } from "./commands/ListProjectsCommand";
19
+ import { ListSourceRepositoriesCommandInput, ListSourceRepositoriesCommandOutput } from "./commands/ListSourceRepositoriesCommand";
20
+ import { ListSourceRepositoryBranchesCommandInput, ListSourceRepositoryBranchesCommandOutput } from "./commands/ListSourceRepositoryBranchesCommand";
21
+ import { ListSpacesCommandInput, ListSpacesCommandOutput } from "./commands/ListSpacesCommand";
22
+ import { StartDevEnvironmentCommandInput, StartDevEnvironmentCommandOutput } from "./commands/StartDevEnvironmentCommand";
23
+ import { StartDevEnvironmentSessionCommandInput, StartDevEnvironmentSessionCommandOutput } from "./commands/StartDevEnvironmentSessionCommand";
24
+ import { StopDevEnvironmentCommandInput, StopDevEnvironmentCommandOutput } from "./commands/StopDevEnvironmentCommand";
25
+ import { UpdateDevEnvironmentCommandInput, UpdateDevEnvironmentCommandOutput } from "./commands/UpdateDevEnvironmentCommand";
26
+ import { VerifySessionCommandInput, VerifySessionCommandOutput } from "./commands/VerifySessionCommand";
27
+ /**
28
+ * <note>
29
+ * <p>
30
+ * <b>Amazon CodeCatalyst is in preview release and subject to change.</b>
31
+ * </p>
32
+ * </note>
33
+ * <p>Welcome to the Amazon CodeCatalyst API reference. This reference provides descriptions of operations and data types for Amazon CodeCatalyst. You can use the Amazon CodeCatalyst
34
+ * API to work with the following objects. </p>
35
+ * <p>Dev Environments and the Amazon Web Services Toolkits, by calling the following:</p>
36
+ * <ul>
37
+ * <li>
38
+ * <p>
39
+ * <a>CreateAccessToken</a>, which creates a personal access token (PAT) for the current user.</p>
40
+ * </li>
41
+ * <li>
42
+ * <p>
43
+ * <a>CreateDevEnvironment</a>, which creates a Dev Environment,
44
+ * where you can quickly work on the code stored in the source repositories of your project.</p>
45
+ * </li>
46
+ * <li>
47
+ * <p>
48
+ * <a>CreateProject</a> which creates a project in a specified space.</p>
49
+ * </li>
50
+ * <li>
51
+ * <p>
52
+ * <a>CreateSourceRepositoryBranch</a>, which creates a branch in a specified repository where you can work on code.</p>
53
+ * </li>
54
+ * <li>
55
+ * <p>
56
+ * <a>DeleteDevEnvironment</a>, which deletes a Dev Environment.</p>
57
+ * </li>
58
+ * <li>
59
+ * <p>
60
+ * <a>GetDevEnvironment</a>, which returns information about a Dev Environment.</p>
61
+ * </li>
62
+ * <li>
63
+ * <p>
64
+ * <a>GetProject</a>, which returns information about a project.</p>
65
+ * </li>
66
+ * <li>
67
+ * <p>
68
+ * <a>GetSourceRepositoryCloneUrls</a>, which returns information about the URLs that can be used with a Git client to clone a source
69
+ * repository.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>
73
+ * <a>GetSubscription</a>, which returns information about the Amazon Web Services account used for billing purposes
74
+ * and the billing plan for the space.</p>
75
+ * </li>
76
+ * <li>
77
+ * <p>
78
+ * <a>GetUserDetails</a>, which returns information about a user in Amazon CodeCatalyst.</p>
79
+ * </li>
80
+ * <li>
81
+ * <p>
82
+ * <a>ListDevEnvironments</a>, which retrives a list of Dev Environments in a project.</p>
83
+ * </li>
84
+ * <li>
85
+ * <p>
86
+ * <a>ListProjects</a>, which retrieves a list of projects in a space.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>
90
+ * <a>ListSourceRepositories</a>, which retrieves a list of source repositories in a project.</p>
91
+ * </li>
92
+ * <li>
93
+ * <p>
94
+ * <a>ListSourceRepositoryBranches</a>, which retrieves a list of branches in a source repository.</p>
95
+ * </li>
96
+ * <li>
97
+ * <p>
98
+ * <a>ListSpaces</a>, which retrieves a list of spaces.</p>
99
+ * </li>
100
+ * <li>
101
+ * <p>
102
+ * <a>StartDevEnvironment</a>, which starts a specified Dev Environment and puts it into an active state.</p>
103
+ * </li>
104
+ * <li>
105
+ * <p>
106
+ * <a>StartDevEnvironmentSession</a>, which starts a session to a specified Dev Environment.</p>
107
+ * </li>
108
+ * <li>
109
+ * <p>
110
+ * <a>StopDevEnvironment</a>, which stops a specified Dev Environment and puts it into an stopped state.</p>
111
+ * </li>
112
+ * <li>
113
+ * <p>
114
+ * <a>UpdateDevEnvironment</a>, which changes one or more values for a Dev Environment.</p>
115
+ * </li>
116
+ * <li>
117
+ * <p>
118
+ * <a>VerifySession</a>, which verifies whether the calling user has a valid Amazon CodeCatalyst login and session.</p>
119
+ * </li>
120
+ * </ul>
121
+ * <p>Security, activity, and resource management in Amazon CodeCatalyst, by calling the following:</p>
122
+ * <ul>
123
+ * <li>
124
+ * <p>
125
+ * <a>DeleteAccessToken</a>, which deletes a specified personal access token (PAT).</p>
126
+ * </li>
127
+ * <li>
128
+ * <p>
129
+ * <a>ListAccessTokens</a>, which lists all personal access tokens (PATs) associated with a user.</p>
130
+ * </li>
131
+ * <li>
132
+ * <p>
133
+ * <a>ListEventLogs</a>, which retrieves a list of events that occurred during a specified time period in a space.</p>
134
+ * </li>
135
+ * </ul>
136
+ */
137
+ export declare class CodeCatalyst extends CodeCatalystClient {
138
+ /**
139
+ * <p>Creates a personal access token (PAT) for the current user. A personal access token (PAT) is similar to a password.
140
+ * It is associated with your user account. You use PATs to access Amazon CodeCatalyst resources such as source repositories from third-party applications
141
+ * like Git and integrated development environments (IDEs). For more information, see
142
+ * <a href="https://docs.aws.amazon.com/codecatalyst/latest/userguide/ipa-tokens-keys.html">Managing personal access tokens in Amazon CodeCatalyst</a>.</p>
143
+ */
144
+ createAccessToken(args: CreateAccessTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateAccessTokenCommandOutput>;
145
+ createAccessToken(args: CreateAccessTokenCommandInput, cb: (err: any, data?: CreateAccessTokenCommandOutput) => void): void;
146
+ createAccessToken(args: CreateAccessTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAccessTokenCommandOutput) => void): void;
147
+ /**
148
+ * <p>Creates a Dev Environment in Amazon CodeCatalyst, a cloud-based development Dev Environment that you can use to quickly work on the code stored in the source repositories of your project.
149
+ * By default, a Dev Environment is configured to have a 2 core processor, 4GB of RAM, and 16GB of persistent storage. </p>
150
+ */
151
+ createDevEnvironment(args: CreateDevEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<CreateDevEnvironmentCommandOutput>;
152
+ createDevEnvironment(args: CreateDevEnvironmentCommandInput, cb: (err: any, data?: CreateDevEnvironmentCommandOutput) => void): void;
153
+ createDevEnvironment(args: CreateDevEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDevEnvironmentCommandOutput) => void): void;
154
+ /**
155
+ * <p>Creates a project in a specified space.</p>
156
+ */
157
+ createProject(args: CreateProjectCommandInput, options?: __HttpHandlerOptions): Promise<CreateProjectCommandOutput>;
158
+ createProject(args: CreateProjectCommandInput, cb: (err: any, data?: CreateProjectCommandOutput) => void): void;
159
+ createProject(args: CreateProjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProjectCommandOutput) => void): void;
160
+ /**
161
+ * <p>Creates a branch in a specified source repository in Amazon CodeCatalyst. </p>
162
+ * <note>
163
+ * <p>This API only creates a branch in a source repository hosted in Amazon CodeCatalyst. You cannot use this API to create a branch in a linked repository.</p>
164
+ * </note>
165
+ */
166
+ createSourceRepositoryBranch(args: CreateSourceRepositoryBranchCommandInput, options?: __HttpHandlerOptions): Promise<CreateSourceRepositoryBranchCommandOutput>;
167
+ createSourceRepositoryBranch(args: CreateSourceRepositoryBranchCommandInput, cb: (err: any, data?: CreateSourceRepositoryBranchCommandOutput) => void): void;
168
+ createSourceRepositoryBranch(args: CreateSourceRepositoryBranchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSourceRepositoryBranchCommandOutput) => void): void;
169
+ /**
170
+ * <p>Deletes a specified personal access token (PAT). A personal access token can only be deleted by the user who created it.</p>
171
+ */
172
+ deleteAccessToken(args: DeleteAccessTokenCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAccessTokenCommandOutput>;
173
+ deleteAccessToken(args: DeleteAccessTokenCommandInput, cb: (err: any, data?: DeleteAccessTokenCommandOutput) => void): void;
174
+ deleteAccessToken(args: DeleteAccessTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAccessTokenCommandOutput) => void): void;
175
+ /**
176
+ * <p>Deletes a Dev Environment. </p>
177
+ */
178
+ deleteDevEnvironment(args: DeleteDevEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDevEnvironmentCommandOutput>;
179
+ deleteDevEnvironment(args: DeleteDevEnvironmentCommandInput, cb: (err: any, data?: DeleteDevEnvironmentCommandOutput) => void): void;
180
+ deleteDevEnvironment(args: DeleteDevEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDevEnvironmentCommandOutput) => void): void;
181
+ /**
182
+ * <p>Returns information about a Dev Environment for a source repository in a project. Dev Environments are specific to the user who creates them.</p>
183
+ */
184
+ getDevEnvironment(args: GetDevEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<GetDevEnvironmentCommandOutput>;
185
+ getDevEnvironment(args: GetDevEnvironmentCommandInput, cb: (err: any, data?: GetDevEnvironmentCommandOutput) => void): void;
186
+ getDevEnvironment(args: GetDevEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDevEnvironmentCommandOutput) => void): void;
187
+ /**
188
+ * <p>Returns information about a project.</p>
189
+ */
190
+ getProject(args: GetProjectCommandInput, options?: __HttpHandlerOptions): Promise<GetProjectCommandOutput>;
191
+ getProject(args: GetProjectCommandInput, cb: (err: any, data?: GetProjectCommandOutput) => void): void;
192
+ getProject(args: GetProjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProjectCommandOutput) => void): void;
193
+ /**
194
+ * <p>Returns information about the URLs that can be used with a Git client to clone a source
195
+ * repository.</p>
196
+ */
197
+ getSourceRepositoryCloneUrls(args: GetSourceRepositoryCloneUrlsCommandInput, options?: __HttpHandlerOptions): Promise<GetSourceRepositoryCloneUrlsCommandOutput>;
198
+ getSourceRepositoryCloneUrls(args: GetSourceRepositoryCloneUrlsCommandInput, cb: (err: any, data?: GetSourceRepositoryCloneUrlsCommandOutput) => void): void;
199
+ getSourceRepositoryCloneUrls(args: GetSourceRepositoryCloneUrlsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSourceRepositoryCloneUrlsCommandOutput) => void): void;
200
+ /**
201
+ * <p>Returns information about an space.</p>
202
+ */
203
+ getSpace(args: GetSpaceCommandInput, options?: __HttpHandlerOptions): Promise<GetSpaceCommandOutput>;
204
+ getSpace(args: GetSpaceCommandInput, cb: (err: any, data?: GetSpaceCommandOutput) => void): void;
205
+ getSpace(args: GetSpaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSpaceCommandOutput) => void): void;
206
+ /**
207
+ * <p>Returns information about the Amazon Web Services account used for billing purposes
208
+ * and the billing plan for the space.</p>
209
+ */
210
+ getSubscription(args: GetSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetSubscriptionCommandOutput>;
211
+ getSubscription(args: GetSubscriptionCommandInput, cb: (err: any, data?: GetSubscriptionCommandOutput) => void): void;
212
+ getSubscription(args: GetSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSubscriptionCommandOutput) => void): void;
213
+ /**
214
+ * <p>Returns information about a user. </p>
215
+ */
216
+ getUserDetails(args: GetUserDetailsCommandInput, options?: __HttpHandlerOptions): Promise<GetUserDetailsCommandOutput>;
217
+ getUserDetails(args: GetUserDetailsCommandInput, cb: (err: any, data?: GetUserDetailsCommandOutput) => void): void;
218
+ getUserDetails(args: GetUserDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserDetailsCommandOutput) => void): void;
219
+ /**
220
+ * <p>Lists all personal access tokens (PATs) associated with the user who calls the API. You can only list PATs associated with your user account.</p>
221
+ */
222
+ listAccessTokens(args: ListAccessTokensCommandInput, options?: __HttpHandlerOptions): Promise<ListAccessTokensCommandOutput>;
223
+ listAccessTokens(args: ListAccessTokensCommandInput, cb: (err: any, data?: ListAccessTokensCommandOutput) => void): void;
224
+ listAccessTokens(args: ListAccessTokensCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccessTokensCommandOutput) => void): void;
225
+ /**
226
+ * <p>Retrives a list of Dev Environments in a project.</p>
227
+ */
228
+ listDevEnvironments(args: ListDevEnvironmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListDevEnvironmentsCommandOutput>;
229
+ listDevEnvironments(args: ListDevEnvironmentsCommandInput, cb: (err: any, data?: ListDevEnvironmentsCommandOutput) => void): void;
230
+ listDevEnvironments(args: ListDevEnvironmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDevEnvironmentsCommandOutput) => void): void;
231
+ /**
232
+ * <p>Retrieves a list of events that occurred during a specified time period in a space. You can use these events to audit user and system activity in a space.</p>
233
+ */
234
+ listEventLogs(args: ListEventLogsCommandInput, options?: __HttpHandlerOptions): Promise<ListEventLogsCommandOutput>;
235
+ listEventLogs(args: ListEventLogsCommandInput, cb: (err: any, data?: ListEventLogsCommandOutput) => void): void;
236
+ listEventLogs(args: ListEventLogsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEventLogsCommandOutput) => void): void;
237
+ /**
238
+ * <p>Retrieves a list of projects.</p>
239
+ */
240
+ listProjects(args: ListProjectsCommandInput, options?: __HttpHandlerOptions): Promise<ListProjectsCommandOutput>;
241
+ listProjects(args: ListProjectsCommandInput, cb: (err: any, data?: ListProjectsCommandOutput) => void): void;
242
+ listProjects(args: ListProjectsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProjectsCommandOutput) => void): void;
243
+ /**
244
+ * <p>Retrieves a list of source repositories in a project.</p>
245
+ */
246
+ listSourceRepositories(args: ListSourceRepositoriesCommandInput, options?: __HttpHandlerOptions): Promise<ListSourceRepositoriesCommandOutput>;
247
+ listSourceRepositories(args: ListSourceRepositoriesCommandInput, cb: (err: any, data?: ListSourceRepositoriesCommandOutput) => void): void;
248
+ listSourceRepositories(args: ListSourceRepositoriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSourceRepositoriesCommandOutput) => void): void;
249
+ /**
250
+ * <p>Retrieves a list of branches in a specified source repository.</p>
251
+ */
252
+ listSourceRepositoryBranches(args: ListSourceRepositoryBranchesCommandInput, options?: __HttpHandlerOptions): Promise<ListSourceRepositoryBranchesCommandOutput>;
253
+ listSourceRepositoryBranches(args: ListSourceRepositoryBranchesCommandInput, cb: (err: any, data?: ListSourceRepositoryBranchesCommandOutput) => void): void;
254
+ listSourceRepositoryBranches(args: ListSourceRepositoryBranchesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSourceRepositoryBranchesCommandOutput) => void): void;
255
+ /**
256
+ * <p>Retrieves a list of spaces.</p>
257
+ */
258
+ listSpaces(args: ListSpacesCommandInput, options?: __HttpHandlerOptions): Promise<ListSpacesCommandOutput>;
259
+ listSpaces(args: ListSpacesCommandInput, cb: (err: any, data?: ListSpacesCommandOutput) => void): void;
260
+ listSpaces(args: ListSpacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSpacesCommandOutput) => void): void;
261
+ /**
262
+ * <p>Starts a specified Dev Environment and puts it into an active state. </p>
263
+ */
264
+ startDevEnvironment(args: StartDevEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<StartDevEnvironmentCommandOutput>;
265
+ startDevEnvironment(args: StartDevEnvironmentCommandInput, cb: (err: any, data?: StartDevEnvironmentCommandOutput) => void): void;
266
+ startDevEnvironment(args: StartDevEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDevEnvironmentCommandOutput) => void): void;
267
+ /**
268
+ * <p>Starts a session for a specified Dev Environment.</p>
269
+ */
270
+ startDevEnvironmentSession(args: StartDevEnvironmentSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartDevEnvironmentSessionCommandOutput>;
271
+ startDevEnvironmentSession(args: StartDevEnvironmentSessionCommandInput, cb: (err: any, data?: StartDevEnvironmentSessionCommandOutput) => void): void;
272
+ startDevEnvironmentSession(args: StartDevEnvironmentSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDevEnvironmentSessionCommandOutput) => void): void;
273
+ /**
274
+ * <p>Pauses a specified Dev Environment and places it in a non-running state. Stopped Dev Environments do not consume compute minutes.</p>
275
+ */
276
+ stopDevEnvironment(args: StopDevEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<StopDevEnvironmentCommandOutput>;
277
+ stopDevEnvironment(args: StopDevEnvironmentCommandInput, cb: (err: any, data?: StopDevEnvironmentCommandOutput) => void): void;
278
+ stopDevEnvironment(args: StopDevEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopDevEnvironmentCommandOutput) => void): void;
279
+ /**
280
+ * <p>Changes one or more values for a Dev Environment. Updating certain values of the Dev Environment will cause a restart.</p>
281
+ */
282
+ updateDevEnvironment(args: UpdateDevEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDevEnvironmentCommandOutput>;
283
+ updateDevEnvironment(args: UpdateDevEnvironmentCommandInput, cb: (err: any, data?: UpdateDevEnvironmentCommandOutput) => void): void;
284
+ updateDevEnvironment(args: UpdateDevEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDevEnvironmentCommandOutput) => void): void;
285
+ /**
286
+ * <p>Verifies whether the calling user has a valid Amazon CodeCatalyst login and session. If successful, this returns the ID of the user in Amazon CodeCatalyst.</p>
287
+ */
288
+ verifySession(args: VerifySessionCommandInput, options?: __HttpHandlerOptions): Promise<VerifySessionCommandOutput>;
289
+ verifySession(args: VerifySessionCommandInput, cb: (err: any, data?: VerifySessionCommandOutput) => void): void;
290
+ verifySession(args: VerifySessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifySessionCommandOutput) => void): void;
291
+ }