@aws-sdk/client-codeconnections 3.545.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 (211) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +500 -0
  3. package/dist-cjs/CodeConnections.js +65 -0
  4. package/dist-cjs/CodeConnectionsClient.js +56 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateConnectionCommand.js +28 -0
  8. package/dist-cjs/commands/CreateHostCommand.js +28 -0
  9. package/dist-cjs/commands/CreateRepositoryLinkCommand.js +28 -0
  10. package/dist-cjs/commands/CreateSyncConfigurationCommand.js +28 -0
  11. package/dist-cjs/commands/DeleteConnectionCommand.js +28 -0
  12. package/dist-cjs/commands/DeleteHostCommand.js +28 -0
  13. package/dist-cjs/commands/DeleteRepositoryLinkCommand.js +28 -0
  14. package/dist-cjs/commands/DeleteSyncConfigurationCommand.js +28 -0
  15. package/dist-cjs/commands/GetConnectionCommand.js +28 -0
  16. package/dist-cjs/commands/GetHostCommand.js +28 -0
  17. package/dist-cjs/commands/GetRepositoryLinkCommand.js +28 -0
  18. package/dist-cjs/commands/GetRepositorySyncStatusCommand.js +28 -0
  19. package/dist-cjs/commands/GetResourceSyncStatusCommand.js +28 -0
  20. package/dist-cjs/commands/GetSyncBlockerSummaryCommand.js +28 -0
  21. package/dist-cjs/commands/GetSyncConfigurationCommand.js +28 -0
  22. package/dist-cjs/commands/ListConnectionsCommand.js +28 -0
  23. package/dist-cjs/commands/ListHostsCommand.js +28 -0
  24. package/dist-cjs/commands/ListRepositoryLinksCommand.js +28 -0
  25. package/dist-cjs/commands/ListRepositorySyncDefinitionsCommand.js +28 -0
  26. package/dist-cjs/commands/ListSyncConfigurationsCommand.js +28 -0
  27. package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
  28. package/dist-cjs/commands/TagResourceCommand.js +28 -0
  29. package/dist-cjs/commands/UntagResourceCommand.js +28 -0
  30. package/dist-cjs/commands/UpdateHostCommand.js +28 -0
  31. package/dist-cjs/commands/UpdateRepositoryLinkCommand.js +28 -0
  32. package/dist-cjs/commands/UpdateSyncBlockerCommand.js +28 -0
  33. package/dist-cjs/commands/UpdateSyncConfigurationCommand.js +28 -0
  34. package/dist-cjs/commands/index.js +30 -0
  35. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  36. package/dist-cjs/endpoint/endpointResolver.js +14 -0
  37. package/dist-cjs/endpoint/ruleset.js +7 -0
  38. package/dist-cjs/extensionConfiguration.js +2 -0
  39. package/dist-cjs/index.js +11 -0
  40. package/dist-cjs/models/CodeConnectionsServiceException.js +12 -0
  41. package/dist-cjs/models/index.js +4 -0
  42. package/dist-cjs/models/models_0.js +285 -0
  43. package/dist-cjs/pagination/Interfaces.js +2 -0
  44. package/dist-cjs/pagination/ListConnectionsPaginator.js +7 -0
  45. package/dist-cjs/pagination/ListHostsPaginator.js +7 -0
  46. package/dist-cjs/pagination/ListRepositoryLinksPaginator.js +7 -0
  47. package/dist-cjs/pagination/ListSyncConfigurationsPaginator.js +7 -0
  48. package/dist-cjs/pagination/index.js +8 -0
  49. package/dist-cjs/protocols/Aws_json1_0.js +928 -0
  50. package/dist-cjs/runtimeConfig.browser.js +39 -0
  51. package/dist-cjs/runtimeConfig.js +49 -0
  52. package/dist-cjs/runtimeConfig.native.js +15 -0
  53. package/dist-cjs/runtimeConfig.shared.js +34 -0
  54. package/dist-cjs/runtimeExtensions.js +25 -0
  55. package/dist-es/CodeConnections.js +61 -0
  56. package/dist-es/CodeConnectionsClient.js +52 -0
  57. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  58. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  59. package/dist-es/commands/CreateConnectionCommand.js +24 -0
  60. package/dist-es/commands/CreateHostCommand.js +24 -0
  61. package/dist-es/commands/CreateRepositoryLinkCommand.js +24 -0
  62. package/dist-es/commands/CreateSyncConfigurationCommand.js +24 -0
  63. package/dist-es/commands/DeleteConnectionCommand.js +24 -0
  64. package/dist-es/commands/DeleteHostCommand.js +24 -0
  65. package/dist-es/commands/DeleteRepositoryLinkCommand.js +24 -0
  66. package/dist-es/commands/DeleteSyncConfigurationCommand.js +24 -0
  67. package/dist-es/commands/GetConnectionCommand.js +24 -0
  68. package/dist-es/commands/GetHostCommand.js +24 -0
  69. package/dist-es/commands/GetRepositoryLinkCommand.js +24 -0
  70. package/dist-es/commands/GetRepositorySyncStatusCommand.js +24 -0
  71. package/dist-es/commands/GetResourceSyncStatusCommand.js +24 -0
  72. package/dist-es/commands/GetSyncBlockerSummaryCommand.js +24 -0
  73. package/dist-es/commands/GetSyncConfigurationCommand.js +24 -0
  74. package/dist-es/commands/ListConnectionsCommand.js +24 -0
  75. package/dist-es/commands/ListHostsCommand.js +24 -0
  76. package/dist-es/commands/ListRepositoryLinksCommand.js +24 -0
  77. package/dist-es/commands/ListRepositorySyncDefinitionsCommand.js +24 -0
  78. package/dist-es/commands/ListSyncConfigurationsCommand.js +24 -0
  79. package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
  80. package/dist-es/commands/TagResourceCommand.js +24 -0
  81. package/dist-es/commands/UntagResourceCommand.js +24 -0
  82. package/dist-es/commands/UpdateHostCommand.js +24 -0
  83. package/dist-es/commands/UpdateRepositoryLinkCommand.js +24 -0
  84. package/dist-es/commands/UpdateSyncBlockerCommand.js +24 -0
  85. package/dist-es/commands/UpdateSyncConfigurationCommand.js +24 -0
  86. package/dist-es/commands/index.js +27 -0
  87. package/dist-es/endpoint/EndpointParameters.js +14 -0
  88. package/dist-es/endpoint/endpointResolver.js +10 -0
  89. package/dist-es/endpoint/ruleset.js +4 -0
  90. package/dist-es/extensionConfiguration.js +1 -0
  91. package/dist-es/index.js +6 -0
  92. package/dist-es/models/CodeConnectionsServiceException.js +8 -0
  93. package/dist-es/models/index.js +1 -0
  94. package/dist-es/models/models_0.js +265 -0
  95. package/dist-es/pagination/Interfaces.js +1 -0
  96. package/dist-es/pagination/ListConnectionsPaginator.js +4 -0
  97. package/dist-es/pagination/ListHostsPaginator.js +4 -0
  98. package/dist-es/pagination/ListRepositoryLinksPaginator.js +4 -0
  99. package/dist-es/pagination/ListSyncConfigurationsPaginator.js +4 -0
  100. package/dist-es/pagination/index.js +5 -0
  101. package/dist-es/protocols/Aws_json1_0.js +870 -0
  102. package/dist-es/runtimeConfig.browser.js +34 -0
  103. package/dist-es/runtimeConfig.js +44 -0
  104. package/dist-es/runtimeConfig.native.js +11 -0
  105. package/dist-es/runtimeConfig.shared.js +30 -0
  106. package/dist-es/runtimeExtensions.js +21 -0
  107. package/dist-types/CodeConnections.d.ts +280 -0
  108. package/dist-types/CodeConnectionsClient.d.ts +276 -0
  109. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  110. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  111. package/dist-types/commands/CreateConnectionCommand.d.ts +84 -0
  112. package/dist-types/commands/CreateHostCommand.d.ts +93 -0
  113. package/dist-types/commands/CreateRepositoryLinkCommand.d.ts +97 -0
  114. package/dist-types/commands/CreateSyncConfigurationCommand.d.ts +101 -0
  115. package/dist-types/commands/DeleteConnectionCommand.d.ts +60 -0
  116. package/dist-types/commands/DeleteHostCommand.d.ts +66 -0
  117. package/dist-types/commands/DeleteRepositoryLinkCommand.d.ts +81 -0
  118. package/dist-types/commands/DeleteSyncConfigurationCommand.d.ts +76 -0
  119. package/dist-types/commands/GetConnectionCommand.d.ts +72 -0
  120. package/dist-types/commands/GetHostCommand.d.ts +79 -0
  121. package/dist-types/commands/GetRepositoryLinkCommand.d.ts +86 -0
  122. package/dist-types/commands/GetRepositorySyncStatusCommand.d.ts +88 -0
  123. package/dist-types/commands/GetResourceSyncStatusCommand.d.ts +141 -0
  124. package/dist-types/commands/GetSyncBlockerSummaryCommand.d.ts +95 -0
  125. package/dist-types/commands/GetSyncConfigurationCommand.d.ts +87 -0
  126. package/dist-types/commands/ListConnectionsCommand.d.ts +75 -0
  127. package/dist-types/commands/ListHostsCommand.d.ts +80 -0
  128. package/dist-types/commands/ListRepositoryLinksCommand.d.ts +89 -0
  129. package/dist-types/commands/ListRepositorySyncDefinitionsCommand.d.ts +83 -0
  130. package/dist-types/commands/ListSyncConfigurationsCommand.d.ts +92 -0
  131. package/dist-types/commands/ListTagsForResourceCommand.d.ts +67 -0
  132. package/dist-types/commands/TagResourceCommand.d.ts +70 -0
  133. package/dist-types/commands/UntagResourceCommand.d.ts +63 -0
  134. package/dist-types/commands/UpdateHostCommand.d.ts +80 -0
  135. package/dist-types/commands/UpdateRepositoryLinkCommand.d.ts +92 -0
  136. package/dist-types/commands/UpdateSyncBlockerCommand.d.ts +99 -0
  137. package/dist-types/commands/UpdateSyncConfigurationCommand.d.ts +99 -0
  138. package/dist-types/commands/index.d.ts +27 -0
  139. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  140. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  141. package/dist-types/endpoint/ruleset.d.ts +2 -0
  142. package/dist-types/extensionConfiguration.d.ts +9 -0
  143. package/dist-types/index.d.ts +92 -0
  144. package/dist-types/models/CodeConnectionsServiceException.d.ts +13 -0
  145. package/dist-types/models/index.d.ts +1 -0
  146. package/dist-types/models/models_0.d.ts +1735 -0
  147. package/dist-types/pagination/Interfaces.d.ts +8 -0
  148. package/dist-types/pagination/ListConnectionsPaginator.d.ts +7 -0
  149. package/dist-types/pagination/ListHostsPaginator.d.ts +7 -0
  150. package/dist-types/pagination/ListRepositoryLinksPaginator.d.ts +7 -0
  151. package/dist-types/pagination/ListSyncConfigurationsPaginator.d.ts +7 -0
  152. package/dist-types/pagination/index.d.ts +5 -0
  153. package/dist-types/protocols/Aws_json1_0.d.ts +245 -0
  154. package/dist-types/runtimeConfig.browser.d.ts +45 -0
  155. package/dist-types/runtimeConfig.d.ts +45 -0
  156. package/dist-types/runtimeConfig.native.d.ts +44 -0
  157. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  158. package/dist-types/runtimeExtensions.d.ts +17 -0
  159. package/dist-types/ts3.4/CodeConnections.d.ts +469 -0
  160. package/dist-types/ts3.4/CodeConnectionsClient.d.ts +283 -0
  161. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  162. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  163. package/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +38 -0
  164. package/dist-types/ts3.4/commands/CreateHostCommand.d.ts +35 -0
  165. package/dist-types/ts3.4/commands/CreateRepositoryLinkCommand.d.ts +39 -0
  166. package/dist-types/ts3.4/commands/CreateSyncConfigurationCommand.d.ts +39 -0
  167. package/dist-types/ts3.4/commands/DeleteConnectionCommand.d.ts +38 -0
  168. package/dist-types/ts3.4/commands/DeleteHostCommand.d.ts +35 -0
  169. package/dist-types/ts3.4/commands/DeleteRepositoryLinkCommand.d.ts +39 -0
  170. package/dist-types/ts3.4/commands/DeleteSyncConfigurationCommand.d.ts +39 -0
  171. package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +35 -0
  172. package/dist-types/ts3.4/commands/GetHostCommand.d.ts +29 -0
  173. package/dist-types/ts3.4/commands/GetRepositoryLinkCommand.d.ts +38 -0
  174. package/dist-types/ts3.4/commands/GetRepositorySyncStatusCommand.d.ts +39 -0
  175. package/dist-types/ts3.4/commands/GetResourceSyncStatusCommand.d.ts +39 -0
  176. package/dist-types/ts3.4/commands/GetSyncBlockerSummaryCommand.d.ts +39 -0
  177. package/dist-types/ts3.4/commands/GetSyncConfigurationCommand.d.ts +39 -0
  178. package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +38 -0
  179. package/dist-types/ts3.4/commands/ListHostsCommand.d.ts +35 -0
  180. package/dist-types/ts3.4/commands/ListRepositoryLinksCommand.d.ts +39 -0
  181. package/dist-types/ts3.4/commands/ListRepositorySyncDefinitionsCommand.d.ts +39 -0
  182. package/dist-types/ts3.4/commands/ListSyncConfigurationsCommand.d.ts +39 -0
  183. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  184. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  185. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
  186. package/dist-types/ts3.4/commands/UpdateHostCommand.d.ts +35 -0
  187. package/dist-types/ts3.4/commands/UpdateRepositoryLinkCommand.d.ts +39 -0
  188. package/dist-types/ts3.4/commands/UpdateSyncBlockerCommand.d.ts +38 -0
  189. package/dist-types/ts3.4/commands/UpdateSyncConfigurationCommand.d.ts +39 -0
  190. package/dist-types/ts3.4/commands/index.d.ts +27 -0
  191. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  192. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  193. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  194. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  195. package/dist-types/ts3.4/index.d.ts +9 -0
  196. package/dist-types/ts3.4/models/CodeConnectionsServiceException.d.ts +8 -0
  197. package/dist-types/ts3.4/models/index.d.ts +1 -0
  198. package/dist-types/ts3.4/models/models_0.d.ts +531 -0
  199. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  200. package/dist-types/ts3.4/pagination/ListConnectionsPaginator.d.ts +11 -0
  201. package/dist-types/ts3.4/pagination/ListHostsPaginator.d.ts +11 -0
  202. package/dist-types/ts3.4/pagination/ListRepositoryLinksPaginator.d.ts +11 -0
  203. package/dist-types/ts3.4/pagination/ListSyncConfigurationsPaginator.d.ts +11 -0
  204. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  205. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +329 -0
  206. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +87 -0
  207. package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
  208. package/dist-types/ts3.4/runtimeConfig.native.d.ts +81 -0
  209. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
  210. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  211. package/package.json +101 -0
package/README.md ADDED
@@ -0,0 +1,500 @@
1
+ <!-- generated file, do not edit directly -->
2
+
3
+ # @aws-sdk/client-codeconnections
4
+
5
+ ## Description
6
+
7
+ AWS SDK for JavaScript CodeConnections Client for Node.js, Browser and React Native.
8
+
9
+ <fullname>AWS CodeConnections</fullname>
10
+
11
+ <p>This Amazon Web Services CodeConnections API Reference provides descriptions and usage examples of
12
+ the operations and data types for the Amazon Web Services CodeConnections API. You can use the
13
+ connections API to work with connections and installations.</p>
14
+ <p>
15
+ <i>Connections</i> are configurations that you use to connect Amazon Web Services
16
+ resources to external code repositories. Each connection is a resource that can be given to
17
+ services such as CodePipeline to connect to a third-party repository such as Bitbucket. For
18
+ example, you can add the connection in CodePipeline so that it triggers your pipeline when a
19
+ code change is made to your third-party code repository. Each connection is named and
20
+ associated with a unique ARN that is used to reference the connection.</p>
21
+ <p>When you create a connection, the console initiates a third-party connection handshake.
22
+ <i>Installations</i> are the apps that are used to conduct this handshake. For
23
+ example, the installation for the Bitbucket provider type is the Bitbucket app. When you
24
+ create a connection, you can choose an existing installation or create one.</p>
25
+ <p>When you want to create a connection to an installed provider type such as GitHub
26
+ Enterprise Server, you create a <i>host</i> for your connections.</p>
27
+ <p>You can work with connections by calling:</p>
28
+ <ul>
29
+ <li>
30
+ <p>
31
+ <a>CreateConnection</a>, which creates a uniquely named connection that can be
32
+ referenced by services such as CodePipeline.</p>
33
+ </li>
34
+ <li>
35
+ <p>
36
+ <a>DeleteConnection</a>, which deletes the specified connection.</p>
37
+ </li>
38
+ <li>
39
+ <p>
40
+ <a>GetConnection</a>, which returns information about the connection, including
41
+ the connection status.</p>
42
+ </li>
43
+ <li>
44
+ <p>
45
+ <a>ListConnections</a>, which lists the connections associated with your
46
+ account.</p>
47
+ </li>
48
+ </ul>
49
+ <p>You can work with hosts by calling:</p>
50
+ <ul>
51
+ <li>
52
+ <p>
53
+ <a>CreateHost</a>, which creates a host that represents the infrastructure where your provider is installed.</p>
54
+ </li>
55
+ <li>
56
+ <p>
57
+ <a>DeleteHost</a>, which deletes the specified host.</p>
58
+ </li>
59
+ <li>
60
+ <p>
61
+ <a>GetHost</a>, which returns information about the host, including
62
+ the setup status.</p>
63
+ </li>
64
+ <li>
65
+ <p>
66
+ <a>ListHosts</a>, which lists the hosts associated with your
67
+ account.</p>
68
+ </li>
69
+ </ul>
70
+ <p>You can work with tags in Amazon Web Services CodeConnections by calling the following:</p>
71
+ <ul>
72
+ <li>
73
+ <p>
74
+ <a>ListTagsForResource</a>, which gets information about Amazon Web Services tags for a
75
+ specified Amazon Resource Name (ARN) in Amazon Web Services CodeConnections.</p>
76
+ </li>
77
+ <li>
78
+ <p>
79
+ <a>TagResource</a>, which adds or updates tags for a resource in Amazon Web Services CodeConnections.</p>
80
+ </li>
81
+ <li>
82
+ <p>
83
+ <a>UntagResource</a>, which removes tags for a resource in Amazon Web Services
84
+ CodeConnections.</p>
85
+ </li>
86
+ </ul>
87
+ <p>For information about how to use Amazon Web Services CodeConnections, see the <a href="https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html">Developer
88
+ Tools User Guide</a>.</p>
89
+
90
+ ## Installing
91
+
92
+ To install the this package, simply type add or install @aws-sdk/client-codeconnections
93
+ using your favorite package manager:
94
+
95
+ - `npm install @aws-sdk/client-codeconnections`
96
+ - `yarn add @aws-sdk/client-codeconnections`
97
+ - `pnpm add @aws-sdk/client-codeconnections`
98
+
99
+ ## Getting Started
100
+
101
+ ### Import
102
+
103
+ The AWS SDK is modulized by clients and commands.
104
+ To send a request, you only need to import the `CodeConnectionsClient` and
105
+ the commands you need, for example `ListHostsCommand`:
106
+
107
+ ```js
108
+ // ES5 example
109
+ const { CodeConnectionsClient, ListHostsCommand } = require("@aws-sdk/client-codeconnections");
110
+ ```
111
+
112
+ ```ts
113
+ // ES6+ example
114
+ import { CodeConnectionsClient, ListHostsCommand } from "@aws-sdk/client-codeconnections";
115
+ ```
116
+
117
+ ### Usage
118
+
119
+ To send a request, you:
120
+
121
+ - Initiate client with configuration (e.g. credentials, region).
122
+ - Initiate command with input parameters.
123
+ - Call `send` operation on client with command object as input.
124
+ - If you are using a custom http handler, you may call `destroy()` to close open connections.
125
+
126
+ ```js
127
+ // a client can be shared by different commands.
128
+ const client = new CodeConnectionsClient({ region: "REGION" });
129
+
130
+ const params = {
131
+ /** input parameters */
132
+ };
133
+ const command = new ListHostsCommand(params);
134
+ ```
135
+
136
+ #### Async/await
137
+
138
+ We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
139
+ operator to wait for the promise returned by send operation as follows:
140
+
141
+ ```js
142
+ // async/await.
143
+ try {
144
+ const data = await client.send(command);
145
+ // process data.
146
+ } catch (error) {
147
+ // error handling.
148
+ } finally {
149
+ // finally.
150
+ }
151
+ ```
152
+
153
+ Async-await is clean, concise, intuitive, easy to debug and has better error handling
154
+ as compared to using Promise chains or callbacks.
155
+
156
+ #### Promises
157
+
158
+ You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
159
+ to execute send operation.
160
+
161
+ ```js
162
+ client.send(command).then(
163
+ (data) => {
164
+ // process data.
165
+ },
166
+ (error) => {
167
+ // error handling.
168
+ }
169
+ );
170
+ ```
171
+
172
+ Promises can also be called using `.catch()` and `.finally()` as follows:
173
+
174
+ ```js
175
+ client
176
+ .send(command)
177
+ .then((data) => {
178
+ // process data.
179
+ })
180
+ .catch((error) => {
181
+ // error handling.
182
+ })
183
+ .finally(() => {
184
+ // finally.
185
+ });
186
+ ```
187
+
188
+ #### Callbacks
189
+
190
+ We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
191
+ but they are supported by the send operation.
192
+
193
+ ```js
194
+ // callbacks.
195
+ client.send(command, (err, data) => {
196
+ // process err and data.
197
+ });
198
+ ```
199
+
200
+ #### v2 compatible style
201
+
202
+ The client can also send requests using v2 compatible style.
203
+ However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post
204
+ on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/)
205
+
206
+ ```ts
207
+ import * as AWS from "@aws-sdk/client-codeconnections";
208
+ const client = new AWS.CodeConnections({ region: "REGION" });
209
+
210
+ // async/await.
211
+ try {
212
+ const data = await client.listHosts(params);
213
+ // process data.
214
+ } catch (error) {
215
+ // error handling.
216
+ }
217
+
218
+ // Promises.
219
+ client
220
+ .listHosts(params)
221
+ .then((data) => {
222
+ // process data.
223
+ })
224
+ .catch((error) => {
225
+ // error handling.
226
+ });
227
+
228
+ // callbacks.
229
+ client.listHosts(params, (err, data) => {
230
+ // process err and data.
231
+ });
232
+ ```
233
+
234
+ ### Troubleshooting
235
+
236
+ When the service returns an exception, the error will include the exception information,
237
+ as well as response metadata (e.g. request id).
238
+
239
+ ```js
240
+ try {
241
+ const data = await client.send(command);
242
+ // process data.
243
+ } catch (error) {
244
+ const { requestId, cfId, extendedRequestId } = error.$metadata;
245
+ console.log({ requestId, cfId, extendedRequestId });
246
+ /**
247
+ * The keys within exceptions are also parsed.
248
+ * You can access them by specifying exception names:
249
+ * if (error.name === 'SomeServiceException') {
250
+ * const value = error.specialKeyInException;
251
+ * }
252
+ */
253
+ }
254
+ ```
255
+
256
+ ## Getting Help
257
+
258
+ Please use these community resources for getting help.
259
+ We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
260
+
261
+ - Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
262
+ or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
263
+ - Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
264
+ on AWS Developer Blog.
265
+ - Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`.
266
+ - Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3).
267
+ - If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose).
268
+
269
+ To test your universal JavaScript code in Node.js, browser and react-native environments,
270
+ visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests).
271
+
272
+ ## Contributing
273
+
274
+ This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-codeconnections` package is updated.
275
+ To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients).
276
+
277
+ ## License
278
+
279
+ This SDK is distributed under the
280
+ [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
281
+ see LICENSE for more information.
282
+
283
+ ## Client Commands (Operations List)
284
+
285
+ <details>
286
+ <summary>
287
+ CreateConnection
288
+ </summary>
289
+
290
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/CreateConnectionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/CreateConnectionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/CreateConnectionCommandOutput/)
291
+
292
+ </details>
293
+ <details>
294
+ <summary>
295
+ CreateHost
296
+ </summary>
297
+
298
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/CreateHostCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/CreateHostCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/CreateHostCommandOutput/)
299
+
300
+ </details>
301
+ <details>
302
+ <summary>
303
+ CreateRepositoryLink
304
+ </summary>
305
+
306
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/CreateRepositoryLinkCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/CreateRepositoryLinkCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/CreateRepositoryLinkCommandOutput/)
307
+
308
+ </details>
309
+ <details>
310
+ <summary>
311
+ CreateSyncConfiguration
312
+ </summary>
313
+
314
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/CreateSyncConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/CreateSyncConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/CreateSyncConfigurationCommandOutput/)
315
+
316
+ </details>
317
+ <details>
318
+ <summary>
319
+ DeleteConnection
320
+ </summary>
321
+
322
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/DeleteConnectionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/DeleteConnectionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/DeleteConnectionCommandOutput/)
323
+
324
+ </details>
325
+ <details>
326
+ <summary>
327
+ DeleteHost
328
+ </summary>
329
+
330
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/DeleteHostCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/DeleteHostCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/DeleteHostCommandOutput/)
331
+
332
+ </details>
333
+ <details>
334
+ <summary>
335
+ DeleteRepositoryLink
336
+ </summary>
337
+
338
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/DeleteRepositoryLinkCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/DeleteRepositoryLinkCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/DeleteRepositoryLinkCommandOutput/)
339
+
340
+ </details>
341
+ <details>
342
+ <summary>
343
+ DeleteSyncConfiguration
344
+ </summary>
345
+
346
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/DeleteSyncConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/DeleteSyncConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/DeleteSyncConfigurationCommandOutput/)
347
+
348
+ </details>
349
+ <details>
350
+ <summary>
351
+ GetConnection
352
+ </summary>
353
+
354
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/GetConnectionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetConnectionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetConnectionCommandOutput/)
355
+
356
+ </details>
357
+ <details>
358
+ <summary>
359
+ GetHost
360
+ </summary>
361
+
362
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/GetHostCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetHostCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetHostCommandOutput/)
363
+
364
+ </details>
365
+ <details>
366
+ <summary>
367
+ GetRepositoryLink
368
+ </summary>
369
+
370
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/GetRepositoryLinkCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetRepositoryLinkCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetRepositoryLinkCommandOutput/)
371
+
372
+ </details>
373
+ <details>
374
+ <summary>
375
+ GetRepositorySyncStatus
376
+ </summary>
377
+
378
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/GetRepositorySyncStatusCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetRepositorySyncStatusCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetRepositorySyncStatusCommandOutput/)
379
+
380
+ </details>
381
+ <details>
382
+ <summary>
383
+ GetResourceSyncStatus
384
+ </summary>
385
+
386
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/GetResourceSyncStatusCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetResourceSyncStatusCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetResourceSyncStatusCommandOutput/)
387
+
388
+ </details>
389
+ <details>
390
+ <summary>
391
+ GetSyncBlockerSummary
392
+ </summary>
393
+
394
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/GetSyncBlockerSummaryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetSyncBlockerSummaryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetSyncBlockerSummaryCommandOutput/)
395
+
396
+ </details>
397
+ <details>
398
+ <summary>
399
+ GetSyncConfiguration
400
+ </summary>
401
+
402
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/GetSyncConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetSyncConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/GetSyncConfigurationCommandOutput/)
403
+
404
+ </details>
405
+ <details>
406
+ <summary>
407
+ ListConnections
408
+ </summary>
409
+
410
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/ListConnectionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/ListConnectionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/ListConnectionsCommandOutput/)
411
+
412
+ </details>
413
+ <details>
414
+ <summary>
415
+ ListHosts
416
+ </summary>
417
+
418
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/ListHostsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/ListHostsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/ListHostsCommandOutput/)
419
+
420
+ </details>
421
+ <details>
422
+ <summary>
423
+ ListRepositoryLinks
424
+ </summary>
425
+
426
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/ListRepositoryLinksCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/ListRepositoryLinksCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/ListRepositoryLinksCommandOutput/)
427
+
428
+ </details>
429
+ <details>
430
+ <summary>
431
+ ListRepositorySyncDefinitions
432
+ </summary>
433
+
434
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/ListRepositorySyncDefinitionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/ListRepositorySyncDefinitionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/ListRepositorySyncDefinitionsCommandOutput/)
435
+
436
+ </details>
437
+ <details>
438
+ <summary>
439
+ ListSyncConfigurations
440
+ </summary>
441
+
442
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/ListSyncConfigurationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/ListSyncConfigurationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/ListSyncConfigurationsCommandOutput/)
443
+
444
+ </details>
445
+ <details>
446
+ <summary>
447
+ ListTagsForResource
448
+ </summary>
449
+
450
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/ListTagsForResourceCommandOutput/)
451
+
452
+ </details>
453
+ <details>
454
+ <summary>
455
+ TagResource
456
+ </summary>
457
+
458
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/TagResourceCommandOutput/)
459
+
460
+ </details>
461
+ <details>
462
+ <summary>
463
+ UntagResource
464
+ </summary>
465
+
466
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/UntagResourceCommandOutput/)
467
+
468
+ </details>
469
+ <details>
470
+ <summary>
471
+ UpdateHost
472
+ </summary>
473
+
474
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/UpdateHostCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/UpdateHostCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/UpdateHostCommandOutput/)
475
+
476
+ </details>
477
+ <details>
478
+ <summary>
479
+ UpdateRepositoryLink
480
+ </summary>
481
+
482
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/UpdateRepositoryLinkCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/UpdateRepositoryLinkCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/UpdateRepositoryLinkCommandOutput/)
483
+
484
+ </details>
485
+ <details>
486
+ <summary>
487
+ UpdateSyncBlocker
488
+ </summary>
489
+
490
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/UpdateSyncBlockerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/UpdateSyncBlockerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/UpdateSyncBlockerCommandOutput/)
491
+
492
+ </details>
493
+ <details>
494
+ <summary>
495
+ UpdateSyncConfiguration
496
+ </summary>
497
+
498
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codeconnections/command/UpdateSyncConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/UpdateSyncConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codeconnections/Interface/UpdateSyncConfigurationCommandOutput/)
499
+
500
+ </details>
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeConnections = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ const CodeConnectionsClient_1 = require("./CodeConnectionsClient");
6
+ const CreateConnectionCommand_1 = require("./commands/CreateConnectionCommand");
7
+ const CreateHostCommand_1 = require("./commands/CreateHostCommand");
8
+ const CreateRepositoryLinkCommand_1 = require("./commands/CreateRepositoryLinkCommand");
9
+ const CreateSyncConfigurationCommand_1 = require("./commands/CreateSyncConfigurationCommand");
10
+ const DeleteConnectionCommand_1 = require("./commands/DeleteConnectionCommand");
11
+ const DeleteHostCommand_1 = require("./commands/DeleteHostCommand");
12
+ const DeleteRepositoryLinkCommand_1 = require("./commands/DeleteRepositoryLinkCommand");
13
+ const DeleteSyncConfigurationCommand_1 = require("./commands/DeleteSyncConfigurationCommand");
14
+ const GetConnectionCommand_1 = require("./commands/GetConnectionCommand");
15
+ const GetHostCommand_1 = require("./commands/GetHostCommand");
16
+ const GetRepositoryLinkCommand_1 = require("./commands/GetRepositoryLinkCommand");
17
+ const GetRepositorySyncStatusCommand_1 = require("./commands/GetRepositorySyncStatusCommand");
18
+ const GetResourceSyncStatusCommand_1 = require("./commands/GetResourceSyncStatusCommand");
19
+ const GetSyncBlockerSummaryCommand_1 = require("./commands/GetSyncBlockerSummaryCommand");
20
+ const GetSyncConfigurationCommand_1 = require("./commands/GetSyncConfigurationCommand");
21
+ const ListConnectionsCommand_1 = require("./commands/ListConnectionsCommand");
22
+ const ListHostsCommand_1 = require("./commands/ListHostsCommand");
23
+ const ListRepositoryLinksCommand_1 = require("./commands/ListRepositoryLinksCommand");
24
+ const ListRepositorySyncDefinitionsCommand_1 = require("./commands/ListRepositorySyncDefinitionsCommand");
25
+ const ListSyncConfigurationsCommand_1 = require("./commands/ListSyncConfigurationsCommand");
26
+ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
27
+ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
28
+ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
29
+ const UpdateHostCommand_1 = require("./commands/UpdateHostCommand");
30
+ const UpdateRepositoryLinkCommand_1 = require("./commands/UpdateRepositoryLinkCommand");
31
+ const UpdateSyncBlockerCommand_1 = require("./commands/UpdateSyncBlockerCommand");
32
+ const UpdateSyncConfigurationCommand_1 = require("./commands/UpdateSyncConfigurationCommand");
33
+ const commands = {
34
+ CreateConnectionCommand: CreateConnectionCommand_1.CreateConnectionCommand,
35
+ CreateHostCommand: CreateHostCommand_1.CreateHostCommand,
36
+ CreateRepositoryLinkCommand: CreateRepositoryLinkCommand_1.CreateRepositoryLinkCommand,
37
+ CreateSyncConfigurationCommand: CreateSyncConfigurationCommand_1.CreateSyncConfigurationCommand,
38
+ DeleteConnectionCommand: DeleteConnectionCommand_1.DeleteConnectionCommand,
39
+ DeleteHostCommand: DeleteHostCommand_1.DeleteHostCommand,
40
+ DeleteRepositoryLinkCommand: DeleteRepositoryLinkCommand_1.DeleteRepositoryLinkCommand,
41
+ DeleteSyncConfigurationCommand: DeleteSyncConfigurationCommand_1.DeleteSyncConfigurationCommand,
42
+ GetConnectionCommand: GetConnectionCommand_1.GetConnectionCommand,
43
+ GetHostCommand: GetHostCommand_1.GetHostCommand,
44
+ GetRepositoryLinkCommand: GetRepositoryLinkCommand_1.GetRepositoryLinkCommand,
45
+ GetRepositorySyncStatusCommand: GetRepositorySyncStatusCommand_1.GetRepositorySyncStatusCommand,
46
+ GetResourceSyncStatusCommand: GetResourceSyncStatusCommand_1.GetResourceSyncStatusCommand,
47
+ GetSyncBlockerSummaryCommand: GetSyncBlockerSummaryCommand_1.GetSyncBlockerSummaryCommand,
48
+ GetSyncConfigurationCommand: GetSyncConfigurationCommand_1.GetSyncConfigurationCommand,
49
+ ListConnectionsCommand: ListConnectionsCommand_1.ListConnectionsCommand,
50
+ ListHostsCommand: ListHostsCommand_1.ListHostsCommand,
51
+ ListRepositoryLinksCommand: ListRepositoryLinksCommand_1.ListRepositoryLinksCommand,
52
+ ListRepositorySyncDefinitionsCommand: ListRepositorySyncDefinitionsCommand_1.ListRepositorySyncDefinitionsCommand,
53
+ ListSyncConfigurationsCommand: ListSyncConfigurationsCommand_1.ListSyncConfigurationsCommand,
54
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
55
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
56
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
57
+ UpdateHostCommand: UpdateHostCommand_1.UpdateHostCommand,
58
+ UpdateRepositoryLinkCommand: UpdateRepositoryLinkCommand_1.UpdateRepositoryLinkCommand,
59
+ UpdateSyncBlockerCommand: UpdateSyncBlockerCommand_1.UpdateSyncBlockerCommand,
60
+ UpdateSyncConfigurationCommand: UpdateSyncConfigurationCommand_1.UpdateSyncConfigurationCommand,
61
+ };
62
+ class CodeConnections extends CodeConnectionsClient_1.CodeConnectionsClient {
63
+ }
64
+ exports.CodeConnections = CodeConnections;
65
+ (0, smithy_client_1.createAggregatedClient)(commands, CodeConnections);
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeConnectionsClient = exports.__Client = void 0;
4
+ const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
5
+ const middleware_logger_1 = require("@aws-sdk/middleware-logger");
6
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
7
+ const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
8
+ const config_resolver_1 = require("@smithy/config-resolver");
9
+ const core_1 = require("@smithy/core");
10
+ const middleware_content_length_1 = require("@smithy/middleware-content-length");
11
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
12
+ const middleware_retry_1 = require("@smithy/middleware-retry");
13
+ const smithy_client_1 = require("@smithy/smithy-client");
14
+ Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
15
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
16
+ const EndpointParameters_1 = require("./endpoint/EndpointParameters");
17
+ const runtimeConfig_1 = require("./runtimeConfig");
18
+ const runtimeExtensions_1 = require("./runtimeExtensions");
19
+ class CodeConnectionsClient extends smithy_client_1.Client {
20
+ constructor(...[configuration]) {
21
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
22
+ const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
23
+ const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
24
+ const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
25
+ const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
26
+ const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
27
+ const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
28
+ const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
29
+ const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
30
+ super(_config_8);
31
+ this.config = _config_8;
32
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
33
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
34
+ this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
35
+ this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
36
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
37
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
38
+ this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
39
+ httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
40
+ identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
41
+ }));
42
+ this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
43
+ }
44
+ destroy() {
45
+ super.destroy();
46
+ }
47
+ getDefaultHttpAuthSchemeParametersProvider() {
48
+ return httpAuthSchemeProvider_1.defaultCodeConnectionsHttpAuthSchemeParametersProvider;
49
+ }
50
+ getIdentityProviderConfigProvider() {
51
+ return async (config) => new core_1.DefaultIdentityProviderConfig({
52
+ "aws.auth#sigv4": config.credentials,
53
+ });
54
+ }
55
+ }
56
+ exports.CodeConnectionsClient = CodeConnectionsClient;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
4
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
5
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
6
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
7
+ let _credentials = runtimeConfig.credentials;
8
+ return {
9
+ setHttpAuthScheme(httpAuthScheme) {
10
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
11
+ if (index === -1) {
12
+ _httpAuthSchemes.push(httpAuthScheme);
13
+ }
14
+ else {
15
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
16
+ }
17
+ },
18
+ httpAuthSchemes() {
19
+ return _httpAuthSchemes;
20
+ },
21
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
22
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
23
+ },
24
+ httpAuthSchemeProvider() {
25
+ return _httpAuthSchemeProvider;
26
+ },
27
+ setCredentials(credentials) {
28
+ _credentials = credentials;
29
+ },
30
+ credentials() {
31
+ return _credentials;
32
+ },
33
+ };
34
+ };
35
+ exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
36
+ const resolveHttpAuthRuntimeConfig = (config) => {
37
+ return {
38
+ httpAuthSchemes: config.httpAuthSchemes(),
39
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
40
+ credentials: config.credentials(),
41
+ };
42
+ };
43
+ exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;