@aws-sdk/client-codecatalyst 3.315.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CodeCatalyst = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CodeCatalystClient_1 = require("./CodeCatalystClient");
5
6
  const CreateAccessTokenCommand_1 = require("./commands/CreateAccessTokenCommand");
6
7
  const CreateDevEnvironmentCommand_1 = require("./commands/CreateDevEnvironmentCommand");
@@ -27,356 +28,34 @@ const StopDevEnvironmentCommand_1 = require("./commands/StopDevEnvironmentComman
27
28
  const StopDevEnvironmentSessionCommand_1 = require("./commands/StopDevEnvironmentSessionCommand");
28
29
  const UpdateDevEnvironmentCommand_1 = require("./commands/UpdateDevEnvironmentCommand");
29
30
  const VerifySessionCommand_1 = require("./commands/VerifySessionCommand");
31
+ const commands = {
32
+ CreateAccessTokenCommand: CreateAccessTokenCommand_1.CreateAccessTokenCommand,
33
+ CreateDevEnvironmentCommand: CreateDevEnvironmentCommand_1.CreateDevEnvironmentCommand,
34
+ CreateProjectCommand: CreateProjectCommand_1.CreateProjectCommand,
35
+ CreateSourceRepositoryBranchCommand: CreateSourceRepositoryBranchCommand_1.CreateSourceRepositoryBranchCommand,
36
+ DeleteAccessTokenCommand: DeleteAccessTokenCommand_1.DeleteAccessTokenCommand,
37
+ DeleteDevEnvironmentCommand: DeleteDevEnvironmentCommand_1.DeleteDevEnvironmentCommand,
38
+ GetDevEnvironmentCommand: GetDevEnvironmentCommand_1.GetDevEnvironmentCommand,
39
+ GetProjectCommand: GetProjectCommand_1.GetProjectCommand,
40
+ GetSourceRepositoryCloneUrlsCommand: GetSourceRepositoryCloneUrlsCommand_1.GetSourceRepositoryCloneUrlsCommand,
41
+ GetSpaceCommand: GetSpaceCommand_1.GetSpaceCommand,
42
+ GetSubscriptionCommand: GetSubscriptionCommand_1.GetSubscriptionCommand,
43
+ GetUserDetailsCommand: GetUserDetailsCommand_1.GetUserDetailsCommand,
44
+ ListAccessTokensCommand: ListAccessTokensCommand_1.ListAccessTokensCommand,
45
+ ListDevEnvironmentsCommand: ListDevEnvironmentsCommand_1.ListDevEnvironmentsCommand,
46
+ ListEventLogsCommand: ListEventLogsCommand_1.ListEventLogsCommand,
47
+ ListProjectsCommand: ListProjectsCommand_1.ListProjectsCommand,
48
+ ListSourceRepositoriesCommand: ListSourceRepositoriesCommand_1.ListSourceRepositoriesCommand,
49
+ ListSourceRepositoryBranchesCommand: ListSourceRepositoryBranchesCommand_1.ListSourceRepositoryBranchesCommand,
50
+ ListSpacesCommand: ListSpacesCommand_1.ListSpacesCommand,
51
+ StartDevEnvironmentCommand: StartDevEnvironmentCommand_1.StartDevEnvironmentCommand,
52
+ StartDevEnvironmentSessionCommand: StartDevEnvironmentSessionCommand_1.StartDevEnvironmentSessionCommand,
53
+ StopDevEnvironmentCommand: StopDevEnvironmentCommand_1.StopDevEnvironmentCommand,
54
+ StopDevEnvironmentSessionCommand: StopDevEnvironmentSessionCommand_1.StopDevEnvironmentSessionCommand,
55
+ UpdateDevEnvironmentCommand: UpdateDevEnvironmentCommand_1.UpdateDevEnvironmentCommand,
56
+ VerifySessionCommand: VerifySessionCommand_1.VerifySessionCommand,
57
+ };
30
58
  class CodeCatalyst extends CodeCatalystClient_1.CodeCatalystClient {
31
- createAccessToken(args, optionsOrCb, cb) {
32
- const command = new CreateAccessTokenCommand_1.CreateAccessTokenCommand(args);
33
- if (typeof optionsOrCb === "function") {
34
- this.send(command, optionsOrCb);
35
- }
36
- else if (typeof cb === "function") {
37
- if (typeof optionsOrCb !== "object")
38
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
39
- this.send(command, optionsOrCb || {}, cb);
40
- }
41
- else {
42
- return this.send(command, optionsOrCb);
43
- }
44
- }
45
- createDevEnvironment(args, optionsOrCb, cb) {
46
- const command = new CreateDevEnvironmentCommand_1.CreateDevEnvironmentCommand(args);
47
- if (typeof optionsOrCb === "function") {
48
- this.send(command, optionsOrCb);
49
- }
50
- else if (typeof cb === "function") {
51
- if (typeof optionsOrCb !== "object")
52
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
53
- this.send(command, optionsOrCb || {}, cb);
54
- }
55
- else {
56
- return this.send(command, optionsOrCb);
57
- }
58
- }
59
- createProject(args, optionsOrCb, cb) {
60
- const command = new CreateProjectCommand_1.CreateProjectCommand(args);
61
- if (typeof optionsOrCb === "function") {
62
- this.send(command, optionsOrCb);
63
- }
64
- else if (typeof cb === "function") {
65
- if (typeof optionsOrCb !== "object")
66
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
67
- this.send(command, optionsOrCb || {}, cb);
68
- }
69
- else {
70
- return this.send(command, optionsOrCb);
71
- }
72
- }
73
- createSourceRepositoryBranch(args, optionsOrCb, cb) {
74
- const command = new CreateSourceRepositoryBranchCommand_1.CreateSourceRepositoryBranchCommand(args);
75
- if (typeof optionsOrCb === "function") {
76
- this.send(command, optionsOrCb);
77
- }
78
- else if (typeof cb === "function") {
79
- if (typeof optionsOrCb !== "object")
80
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
81
- this.send(command, optionsOrCb || {}, cb);
82
- }
83
- else {
84
- return this.send(command, optionsOrCb);
85
- }
86
- }
87
- deleteAccessToken(args, optionsOrCb, cb) {
88
- const command = new DeleteAccessTokenCommand_1.DeleteAccessTokenCommand(args);
89
- if (typeof optionsOrCb === "function") {
90
- this.send(command, optionsOrCb);
91
- }
92
- else if (typeof cb === "function") {
93
- if (typeof optionsOrCb !== "object")
94
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
95
- this.send(command, optionsOrCb || {}, cb);
96
- }
97
- else {
98
- return this.send(command, optionsOrCb);
99
- }
100
- }
101
- deleteDevEnvironment(args, optionsOrCb, cb) {
102
- const command = new DeleteDevEnvironmentCommand_1.DeleteDevEnvironmentCommand(args);
103
- if (typeof optionsOrCb === "function") {
104
- this.send(command, optionsOrCb);
105
- }
106
- else if (typeof cb === "function") {
107
- if (typeof optionsOrCb !== "object")
108
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
109
- this.send(command, optionsOrCb || {}, cb);
110
- }
111
- else {
112
- return this.send(command, optionsOrCb);
113
- }
114
- }
115
- getDevEnvironment(args, optionsOrCb, cb) {
116
- const command = new GetDevEnvironmentCommand_1.GetDevEnvironmentCommand(args);
117
- if (typeof optionsOrCb === "function") {
118
- this.send(command, optionsOrCb);
119
- }
120
- else if (typeof cb === "function") {
121
- if (typeof optionsOrCb !== "object")
122
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
123
- this.send(command, optionsOrCb || {}, cb);
124
- }
125
- else {
126
- return this.send(command, optionsOrCb);
127
- }
128
- }
129
- getProject(args, optionsOrCb, cb) {
130
- const command = new GetProjectCommand_1.GetProjectCommand(args);
131
- if (typeof optionsOrCb === "function") {
132
- this.send(command, optionsOrCb);
133
- }
134
- else if (typeof cb === "function") {
135
- if (typeof optionsOrCb !== "object")
136
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
137
- this.send(command, optionsOrCb || {}, cb);
138
- }
139
- else {
140
- return this.send(command, optionsOrCb);
141
- }
142
- }
143
- getSourceRepositoryCloneUrls(args, optionsOrCb, cb) {
144
- const command = new GetSourceRepositoryCloneUrlsCommand_1.GetSourceRepositoryCloneUrlsCommand(args);
145
- if (typeof optionsOrCb === "function") {
146
- this.send(command, optionsOrCb);
147
- }
148
- else if (typeof cb === "function") {
149
- if (typeof optionsOrCb !== "object")
150
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
151
- this.send(command, optionsOrCb || {}, cb);
152
- }
153
- else {
154
- return this.send(command, optionsOrCb);
155
- }
156
- }
157
- getSpace(args, optionsOrCb, cb) {
158
- const command = new GetSpaceCommand_1.GetSpaceCommand(args);
159
- if (typeof optionsOrCb === "function") {
160
- this.send(command, optionsOrCb);
161
- }
162
- else if (typeof cb === "function") {
163
- if (typeof optionsOrCb !== "object")
164
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
165
- this.send(command, optionsOrCb || {}, cb);
166
- }
167
- else {
168
- return this.send(command, optionsOrCb);
169
- }
170
- }
171
- getSubscription(args, optionsOrCb, cb) {
172
- const command = new GetSubscriptionCommand_1.GetSubscriptionCommand(args);
173
- if (typeof optionsOrCb === "function") {
174
- this.send(command, optionsOrCb);
175
- }
176
- else if (typeof cb === "function") {
177
- if (typeof optionsOrCb !== "object")
178
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
179
- this.send(command, optionsOrCb || {}, cb);
180
- }
181
- else {
182
- return this.send(command, optionsOrCb);
183
- }
184
- }
185
- getUserDetails(args, optionsOrCb, cb) {
186
- const command = new GetUserDetailsCommand_1.GetUserDetailsCommand(args);
187
- if (typeof optionsOrCb === "function") {
188
- this.send(command, optionsOrCb);
189
- }
190
- else if (typeof cb === "function") {
191
- if (typeof optionsOrCb !== "object")
192
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
193
- this.send(command, optionsOrCb || {}, cb);
194
- }
195
- else {
196
- return this.send(command, optionsOrCb);
197
- }
198
- }
199
- listAccessTokens(args, optionsOrCb, cb) {
200
- const command = new ListAccessTokensCommand_1.ListAccessTokensCommand(args);
201
- if (typeof optionsOrCb === "function") {
202
- this.send(command, optionsOrCb);
203
- }
204
- else if (typeof cb === "function") {
205
- if (typeof optionsOrCb !== "object")
206
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
207
- this.send(command, optionsOrCb || {}, cb);
208
- }
209
- else {
210
- return this.send(command, optionsOrCb);
211
- }
212
- }
213
- listDevEnvironments(args, optionsOrCb, cb) {
214
- const command = new ListDevEnvironmentsCommand_1.ListDevEnvironmentsCommand(args);
215
- if (typeof optionsOrCb === "function") {
216
- this.send(command, optionsOrCb);
217
- }
218
- else if (typeof cb === "function") {
219
- if (typeof optionsOrCb !== "object")
220
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
221
- this.send(command, optionsOrCb || {}, cb);
222
- }
223
- else {
224
- return this.send(command, optionsOrCb);
225
- }
226
- }
227
- listEventLogs(args, optionsOrCb, cb) {
228
- const command = new ListEventLogsCommand_1.ListEventLogsCommand(args);
229
- if (typeof optionsOrCb === "function") {
230
- this.send(command, optionsOrCb);
231
- }
232
- else if (typeof cb === "function") {
233
- if (typeof optionsOrCb !== "object")
234
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
235
- this.send(command, optionsOrCb || {}, cb);
236
- }
237
- else {
238
- return this.send(command, optionsOrCb);
239
- }
240
- }
241
- listProjects(args, optionsOrCb, cb) {
242
- const command = new ListProjectsCommand_1.ListProjectsCommand(args);
243
- if (typeof optionsOrCb === "function") {
244
- this.send(command, optionsOrCb);
245
- }
246
- else if (typeof cb === "function") {
247
- if (typeof optionsOrCb !== "object")
248
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
249
- this.send(command, optionsOrCb || {}, cb);
250
- }
251
- else {
252
- return this.send(command, optionsOrCb);
253
- }
254
- }
255
- listSourceRepositories(args, optionsOrCb, cb) {
256
- const command = new ListSourceRepositoriesCommand_1.ListSourceRepositoriesCommand(args);
257
- if (typeof optionsOrCb === "function") {
258
- this.send(command, optionsOrCb);
259
- }
260
- else if (typeof cb === "function") {
261
- if (typeof optionsOrCb !== "object")
262
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
263
- this.send(command, optionsOrCb || {}, cb);
264
- }
265
- else {
266
- return this.send(command, optionsOrCb);
267
- }
268
- }
269
- listSourceRepositoryBranches(args, optionsOrCb, cb) {
270
- const command = new ListSourceRepositoryBranchesCommand_1.ListSourceRepositoryBranchesCommand(args);
271
- if (typeof optionsOrCb === "function") {
272
- this.send(command, optionsOrCb);
273
- }
274
- else if (typeof cb === "function") {
275
- if (typeof optionsOrCb !== "object")
276
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
277
- this.send(command, optionsOrCb || {}, cb);
278
- }
279
- else {
280
- return this.send(command, optionsOrCb);
281
- }
282
- }
283
- listSpaces(args, optionsOrCb, cb) {
284
- const command = new ListSpacesCommand_1.ListSpacesCommand(args);
285
- if (typeof optionsOrCb === "function") {
286
- this.send(command, optionsOrCb);
287
- }
288
- else if (typeof cb === "function") {
289
- if (typeof optionsOrCb !== "object")
290
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
291
- this.send(command, optionsOrCb || {}, cb);
292
- }
293
- else {
294
- return this.send(command, optionsOrCb);
295
- }
296
- }
297
- startDevEnvironment(args, optionsOrCb, cb) {
298
- const command = new StartDevEnvironmentCommand_1.StartDevEnvironmentCommand(args);
299
- if (typeof optionsOrCb === "function") {
300
- this.send(command, optionsOrCb);
301
- }
302
- else if (typeof cb === "function") {
303
- if (typeof optionsOrCb !== "object")
304
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
305
- this.send(command, optionsOrCb || {}, cb);
306
- }
307
- else {
308
- return this.send(command, optionsOrCb);
309
- }
310
- }
311
- startDevEnvironmentSession(args, optionsOrCb, cb) {
312
- const command = new StartDevEnvironmentSessionCommand_1.StartDevEnvironmentSessionCommand(args);
313
- if (typeof optionsOrCb === "function") {
314
- this.send(command, optionsOrCb);
315
- }
316
- else if (typeof cb === "function") {
317
- if (typeof optionsOrCb !== "object")
318
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
319
- this.send(command, optionsOrCb || {}, cb);
320
- }
321
- else {
322
- return this.send(command, optionsOrCb);
323
- }
324
- }
325
- stopDevEnvironment(args, optionsOrCb, cb) {
326
- const command = new StopDevEnvironmentCommand_1.StopDevEnvironmentCommand(args);
327
- if (typeof optionsOrCb === "function") {
328
- this.send(command, optionsOrCb);
329
- }
330
- else if (typeof cb === "function") {
331
- if (typeof optionsOrCb !== "object")
332
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
333
- this.send(command, optionsOrCb || {}, cb);
334
- }
335
- else {
336
- return this.send(command, optionsOrCb);
337
- }
338
- }
339
- stopDevEnvironmentSession(args, optionsOrCb, cb) {
340
- const command = new StopDevEnvironmentSessionCommand_1.StopDevEnvironmentSessionCommand(args);
341
- if (typeof optionsOrCb === "function") {
342
- this.send(command, optionsOrCb);
343
- }
344
- else if (typeof cb === "function") {
345
- if (typeof optionsOrCb !== "object")
346
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
347
- this.send(command, optionsOrCb || {}, cb);
348
- }
349
- else {
350
- return this.send(command, optionsOrCb);
351
- }
352
- }
353
- updateDevEnvironment(args, optionsOrCb, cb) {
354
- const command = new UpdateDevEnvironmentCommand_1.UpdateDevEnvironmentCommand(args);
355
- if (typeof optionsOrCb === "function") {
356
- this.send(command, optionsOrCb);
357
- }
358
- else if (typeof cb === "function") {
359
- if (typeof optionsOrCb !== "object")
360
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
361
- this.send(command, optionsOrCb || {}, cb);
362
- }
363
- else {
364
- return this.send(command, optionsOrCb);
365
- }
366
- }
367
- verifySession(args, optionsOrCb, cb) {
368
- const command = new VerifySessionCommand_1.VerifySessionCommand(args);
369
- if (typeof optionsOrCb === "function") {
370
- this.send(command, optionsOrCb);
371
- }
372
- else if (typeof cb === "function") {
373
- if (typeof optionsOrCb !== "object")
374
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
375
- this.send(command, optionsOrCb || {}, cb);
376
- }
377
- else {
378
- return this.send(command, optionsOrCb);
379
- }
380
- }
381
59
  }
382
60
  exports.CodeCatalyst = CodeCatalyst;
61
+ (0, smithy_client_1.createAggregatedClient)(commands, CodeCatalyst);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CodeCatalystClient } from "./CodeCatalystClient";
2
3
  import { CreateAccessTokenCommand, } from "./commands/CreateAccessTokenCommand";
3
4
  import { CreateDevEnvironmentCommand, } from "./commands/CreateDevEnvironmentCommand";
@@ -24,355 +25,33 @@ import { StopDevEnvironmentCommand, } from "./commands/StopDevEnvironmentCommand
24
25
  import { StopDevEnvironmentSessionCommand, } from "./commands/StopDevEnvironmentSessionCommand";
25
26
  import { UpdateDevEnvironmentCommand, } from "./commands/UpdateDevEnvironmentCommand";
26
27
  import { VerifySessionCommand, } from "./commands/VerifySessionCommand";
28
+ const commands = {
29
+ CreateAccessTokenCommand,
30
+ CreateDevEnvironmentCommand,
31
+ CreateProjectCommand,
32
+ CreateSourceRepositoryBranchCommand,
33
+ DeleteAccessTokenCommand,
34
+ DeleteDevEnvironmentCommand,
35
+ GetDevEnvironmentCommand,
36
+ GetProjectCommand,
37
+ GetSourceRepositoryCloneUrlsCommand,
38
+ GetSpaceCommand,
39
+ GetSubscriptionCommand,
40
+ GetUserDetailsCommand,
41
+ ListAccessTokensCommand,
42
+ ListDevEnvironmentsCommand,
43
+ ListEventLogsCommand,
44
+ ListProjectsCommand,
45
+ ListSourceRepositoriesCommand,
46
+ ListSourceRepositoryBranchesCommand,
47
+ ListSpacesCommand,
48
+ StartDevEnvironmentCommand,
49
+ StartDevEnvironmentSessionCommand,
50
+ StopDevEnvironmentCommand,
51
+ StopDevEnvironmentSessionCommand,
52
+ UpdateDevEnvironmentCommand,
53
+ VerifySessionCommand,
54
+ };
27
55
  export class CodeCatalyst extends CodeCatalystClient {
28
- createAccessToken(args, optionsOrCb, cb) {
29
- const command = new CreateAccessTokenCommand(args);
30
- if (typeof optionsOrCb === "function") {
31
- this.send(command, optionsOrCb);
32
- }
33
- else if (typeof cb === "function") {
34
- if (typeof optionsOrCb !== "object")
35
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
36
- this.send(command, optionsOrCb || {}, cb);
37
- }
38
- else {
39
- return this.send(command, optionsOrCb);
40
- }
41
- }
42
- createDevEnvironment(args, optionsOrCb, cb) {
43
- const command = new CreateDevEnvironmentCommand(args);
44
- if (typeof optionsOrCb === "function") {
45
- this.send(command, optionsOrCb);
46
- }
47
- else if (typeof cb === "function") {
48
- if (typeof optionsOrCb !== "object")
49
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
50
- this.send(command, optionsOrCb || {}, cb);
51
- }
52
- else {
53
- return this.send(command, optionsOrCb);
54
- }
55
- }
56
- createProject(args, optionsOrCb, cb) {
57
- const command = new CreateProjectCommand(args);
58
- if (typeof optionsOrCb === "function") {
59
- this.send(command, optionsOrCb);
60
- }
61
- else if (typeof cb === "function") {
62
- if (typeof optionsOrCb !== "object")
63
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
64
- this.send(command, optionsOrCb || {}, cb);
65
- }
66
- else {
67
- return this.send(command, optionsOrCb);
68
- }
69
- }
70
- createSourceRepositoryBranch(args, optionsOrCb, cb) {
71
- const command = new CreateSourceRepositoryBranchCommand(args);
72
- if (typeof optionsOrCb === "function") {
73
- this.send(command, optionsOrCb);
74
- }
75
- else if (typeof cb === "function") {
76
- if (typeof optionsOrCb !== "object")
77
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
78
- this.send(command, optionsOrCb || {}, cb);
79
- }
80
- else {
81
- return this.send(command, optionsOrCb);
82
- }
83
- }
84
- deleteAccessToken(args, optionsOrCb, cb) {
85
- const command = new DeleteAccessTokenCommand(args);
86
- if (typeof optionsOrCb === "function") {
87
- this.send(command, optionsOrCb);
88
- }
89
- else if (typeof cb === "function") {
90
- if (typeof optionsOrCb !== "object")
91
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
92
- this.send(command, optionsOrCb || {}, cb);
93
- }
94
- else {
95
- return this.send(command, optionsOrCb);
96
- }
97
- }
98
- deleteDevEnvironment(args, optionsOrCb, cb) {
99
- const command = new DeleteDevEnvironmentCommand(args);
100
- if (typeof optionsOrCb === "function") {
101
- this.send(command, optionsOrCb);
102
- }
103
- else if (typeof cb === "function") {
104
- if (typeof optionsOrCb !== "object")
105
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
106
- this.send(command, optionsOrCb || {}, cb);
107
- }
108
- else {
109
- return this.send(command, optionsOrCb);
110
- }
111
- }
112
- getDevEnvironment(args, optionsOrCb, cb) {
113
- const command = new GetDevEnvironmentCommand(args);
114
- if (typeof optionsOrCb === "function") {
115
- this.send(command, optionsOrCb);
116
- }
117
- else if (typeof cb === "function") {
118
- if (typeof optionsOrCb !== "object")
119
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
120
- this.send(command, optionsOrCb || {}, cb);
121
- }
122
- else {
123
- return this.send(command, optionsOrCb);
124
- }
125
- }
126
- getProject(args, optionsOrCb, cb) {
127
- const command = new GetProjectCommand(args);
128
- if (typeof optionsOrCb === "function") {
129
- this.send(command, optionsOrCb);
130
- }
131
- else if (typeof cb === "function") {
132
- if (typeof optionsOrCb !== "object")
133
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
134
- this.send(command, optionsOrCb || {}, cb);
135
- }
136
- else {
137
- return this.send(command, optionsOrCb);
138
- }
139
- }
140
- getSourceRepositoryCloneUrls(args, optionsOrCb, cb) {
141
- const command = new GetSourceRepositoryCloneUrlsCommand(args);
142
- if (typeof optionsOrCb === "function") {
143
- this.send(command, optionsOrCb);
144
- }
145
- else if (typeof cb === "function") {
146
- if (typeof optionsOrCb !== "object")
147
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
148
- this.send(command, optionsOrCb || {}, cb);
149
- }
150
- else {
151
- return this.send(command, optionsOrCb);
152
- }
153
- }
154
- getSpace(args, optionsOrCb, cb) {
155
- const command = new GetSpaceCommand(args);
156
- if (typeof optionsOrCb === "function") {
157
- this.send(command, optionsOrCb);
158
- }
159
- else if (typeof cb === "function") {
160
- if (typeof optionsOrCb !== "object")
161
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
162
- this.send(command, optionsOrCb || {}, cb);
163
- }
164
- else {
165
- return this.send(command, optionsOrCb);
166
- }
167
- }
168
- getSubscription(args, optionsOrCb, cb) {
169
- const command = new GetSubscriptionCommand(args);
170
- if (typeof optionsOrCb === "function") {
171
- this.send(command, optionsOrCb);
172
- }
173
- else if (typeof cb === "function") {
174
- if (typeof optionsOrCb !== "object")
175
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
176
- this.send(command, optionsOrCb || {}, cb);
177
- }
178
- else {
179
- return this.send(command, optionsOrCb);
180
- }
181
- }
182
- getUserDetails(args, optionsOrCb, cb) {
183
- const command = new GetUserDetailsCommand(args);
184
- if (typeof optionsOrCb === "function") {
185
- this.send(command, optionsOrCb);
186
- }
187
- else if (typeof cb === "function") {
188
- if (typeof optionsOrCb !== "object")
189
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
190
- this.send(command, optionsOrCb || {}, cb);
191
- }
192
- else {
193
- return this.send(command, optionsOrCb);
194
- }
195
- }
196
- listAccessTokens(args, optionsOrCb, cb) {
197
- const command = new ListAccessTokensCommand(args);
198
- if (typeof optionsOrCb === "function") {
199
- this.send(command, optionsOrCb);
200
- }
201
- else if (typeof cb === "function") {
202
- if (typeof optionsOrCb !== "object")
203
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
204
- this.send(command, optionsOrCb || {}, cb);
205
- }
206
- else {
207
- return this.send(command, optionsOrCb);
208
- }
209
- }
210
- listDevEnvironments(args, optionsOrCb, cb) {
211
- const command = new ListDevEnvironmentsCommand(args);
212
- if (typeof optionsOrCb === "function") {
213
- this.send(command, optionsOrCb);
214
- }
215
- else if (typeof cb === "function") {
216
- if (typeof optionsOrCb !== "object")
217
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
218
- this.send(command, optionsOrCb || {}, cb);
219
- }
220
- else {
221
- return this.send(command, optionsOrCb);
222
- }
223
- }
224
- listEventLogs(args, optionsOrCb, cb) {
225
- const command = new ListEventLogsCommand(args);
226
- if (typeof optionsOrCb === "function") {
227
- this.send(command, optionsOrCb);
228
- }
229
- else if (typeof cb === "function") {
230
- if (typeof optionsOrCb !== "object")
231
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
232
- this.send(command, optionsOrCb || {}, cb);
233
- }
234
- else {
235
- return this.send(command, optionsOrCb);
236
- }
237
- }
238
- listProjects(args, optionsOrCb, cb) {
239
- const command = new ListProjectsCommand(args);
240
- if (typeof optionsOrCb === "function") {
241
- this.send(command, optionsOrCb);
242
- }
243
- else if (typeof cb === "function") {
244
- if (typeof optionsOrCb !== "object")
245
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
246
- this.send(command, optionsOrCb || {}, cb);
247
- }
248
- else {
249
- return this.send(command, optionsOrCb);
250
- }
251
- }
252
- listSourceRepositories(args, optionsOrCb, cb) {
253
- const command = new ListSourceRepositoriesCommand(args);
254
- if (typeof optionsOrCb === "function") {
255
- this.send(command, optionsOrCb);
256
- }
257
- else if (typeof cb === "function") {
258
- if (typeof optionsOrCb !== "object")
259
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
260
- this.send(command, optionsOrCb || {}, cb);
261
- }
262
- else {
263
- return this.send(command, optionsOrCb);
264
- }
265
- }
266
- listSourceRepositoryBranches(args, optionsOrCb, cb) {
267
- const command = new ListSourceRepositoryBranchesCommand(args);
268
- if (typeof optionsOrCb === "function") {
269
- this.send(command, optionsOrCb);
270
- }
271
- else if (typeof cb === "function") {
272
- if (typeof optionsOrCb !== "object")
273
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
274
- this.send(command, optionsOrCb || {}, cb);
275
- }
276
- else {
277
- return this.send(command, optionsOrCb);
278
- }
279
- }
280
- listSpaces(args, optionsOrCb, cb) {
281
- const command = new ListSpacesCommand(args);
282
- if (typeof optionsOrCb === "function") {
283
- this.send(command, optionsOrCb);
284
- }
285
- else if (typeof cb === "function") {
286
- if (typeof optionsOrCb !== "object")
287
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
288
- this.send(command, optionsOrCb || {}, cb);
289
- }
290
- else {
291
- return this.send(command, optionsOrCb);
292
- }
293
- }
294
- startDevEnvironment(args, optionsOrCb, cb) {
295
- const command = new StartDevEnvironmentCommand(args);
296
- if (typeof optionsOrCb === "function") {
297
- this.send(command, optionsOrCb);
298
- }
299
- else if (typeof cb === "function") {
300
- if (typeof optionsOrCb !== "object")
301
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
- this.send(command, optionsOrCb || {}, cb);
303
- }
304
- else {
305
- return this.send(command, optionsOrCb);
306
- }
307
- }
308
- startDevEnvironmentSession(args, optionsOrCb, cb) {
309
- const command = new StartDevEnvironmentSessionCommand(args);
310
- if (typeof optionsOrCb === "function") {
311
- this.send(command, optionsOrCb);
312
- }
313
- else if (typeof cb === "function") {
314
- if (typeof optionsOrCb !== "object")
315
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
316
- this.send(command, optionsOrCb || {}, cb);
317
- }
318
- else {
319
- return this.send(command, optionsOrCb);
320
- }
321
- }
322
- stopDevEnvironment(args, optionsOrCb, cb) {
323
- const command = new StopDevEnvironmentCommand(args);
324
- if (typeof optionsOrCb === "function") {
325
- this.send(command, optionsOrCb);
326
- }
327
- else if (typeof cb === "function") {
328
- if (typeof optionsOrCb !== "object")
329
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
330
- this.send(command, optionsOrCb || {}, cb);
331
- }
332
- else {
333
- return this.send(command, optionsOrCb);
334
- }
335
- }
336
- stopDevEnvironmentSession(args, optionsOrCb, cb) {
337
- const command = new StopDevEnvironmentSessionCommand(args);
338
- if (typeof optionsOrCb === "function") {
339
- this.send(command, optionsOrCb);
340
- }
341
- else if (typeof cb === "function") {
342
- if (typeof optionsOrCb !== "object")
343
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
344
- this.send(command, optionsOrCb || {}, cb);
345
- }
346
- else {
347
- return this.send(command, optionsOrCb);
348
- }
349
- }
350
- updateDevEnvironment(args, optionsOrCb, cb) {
351
- const command = new UpdateDevEnvironmentCommand(args);
352
- if (typeof optionsOrCb === "function") {
353
- this.send(command, optionsOrCb);
354
- }
355
- else if (typeof cb === "function") {
356
- if (typeof optionsOrCb !== "object")
357
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
358
- this.send(command, optionsOrCb || {}, cb);
359
- }
360
- else {
361
- return this.send(command, optionsOrCb);
362
- }
363
- }
364
- verifySession(args, optionsOrCb, cb) {
365
- const command = new VerifySessionCommand(args);
366
- if (typeof optionsOrCb === "function") {
367
- this.send(command, optionsOrCb);
368
- }
369
- else if (typeof cb === "function") {
370
- if (typeof optionsOrCb !== "object")
371
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
372
- this.send(command, optionsOrCb || {}, cb);
373
- }
374
- else {
375
- return this.send(command, optionsOrCb);
376
- }
377
- }
378
56
  }
57
+ createAggregatedClient(commands, CodeCatalyst);
@@ -25,308 +25,272 @@ import { StopDevEnvironmentCommandInput, StopDevEnvironmentCommandOutput } from
25
25
  import { StopDevEnvironmentSessionCommandInput, StopDevEnvironmentSessionCommandOutput } from "./commands/StopDevEnvironmentSessionCommand";
26
26
  import { UpdateDevEnvironmentCommandInput, UpdateDevEnvironmentCommandOutput } from "./commands/UpdateDevEnvironmentCommand";
27
27
  import { VerifySessionCommandInput, VerifySessionCommandOutput } from "./commands/VerifySessionCommand";
28
- /**
29
- * @public
30
- * <note>
31
- * <p>
32
- * <b>Amazon CodeCatalyst is in preview release and subject to change.</b>
33
- * </p>
34
- * </note>
35
- * <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
36
- * API to work with the following objects. </p>
37
- * <p>Dev Environments and the Amazon Web Services Toolkits, by calling the following:</p>
38
- * <ul>
39
- * <li>
40
- * <p>
41
- * <a>CreateAccessToken</a>, which creates a personal access token (PAT) for the current user.</p>
42
- * </li>
43
- * <li>
44
- * <p>
45
- * <a>CreateDevEnvironment</a>, which creates a Dev Environment,
46
- * where you can quickly work on the code stored in the source repositories of your project.</p>
47
- * </li>
48
- * <li>
49
- * <p>
50
- * <a>CreateProject</a> which creates a project in a specified space.</p>
51
- * </li>
52
- * <li>
53
- * <p>
54
- * <a>CreateSourceRepositoryBranch</a>, which creates a branch in a specified repository where you can work on code.</p>
55
- * </li>
56
- * <li>
57
- * <p>
58
- * <a>DeleteDevEnvironment</a>, which deletes a Dev Environment.</p>
59
- * </li>
60
- * <li>
61
- * <p>
62
- * <a>GetDevEnvironment</a>, which returns information about a Dev Environment.</p>
63
- * </li>
64
- * <li>
65
- * <p>
66
- * <a>GetProject</a>, which returns information about a project.</p>
67
- * </li>
68
- * <li>
69
- * <p>
70
- * <a>GetSourceRepositoryCloneUrls</a>, which returns information about the URLs that can be used with a Git client to clone a source
71
- * repository.</p>
72
- * </li>
73
- * <li>
74
- * <p>
75
- * <a>GetSubscription</a>, which returns information about the Amazon Web Services account used for billing purposes
76
- * and the billing plan for the space.</p>
77
- * </li>
78
- * <li>
79
- * <p>
80
- * <a>GetUserDetails</a>, which returns information about a user in Amazon CodeCatalyst.</p>
81
- * </li>
82
- * <li>
83
- * <p>
84
- * <a>ListDevEnvironments</a>, which retrives a list of Dev Environments in a project.</p>
85
- * </li>
86
- * <li>
87
- * <p>
88
- * <a>ListProjects</a>, which retrieves a list of projects in a space.</p>
89
- * </li>
90
- * <li>
91
- * <p>
92
- * <a>ListSourceRepositories</a>, which retrieves a list of source repositories in a project.</p>
93
- * </li>
94
- * <li>
95
- * <p>
96
- * <a>ListSourceRepositoryBranches</a>, which retrieves a list of branches in a source repository.</p>
97
- * </li>
98
- * <li>
99
- * <p>
100
- * <a>ListSpaces</a>, which retrieves a list of spaces.</p>
101
- * </li>
102
- * <li>
103
- * <p>
104
- * <a>StartDevEnvironment</a>, which starts a specified Dev Environment and puts it into an active state.</p>
105
- * </li>
106
- * <li>
107
- * <p>
108
- * <a>StartDevEnvironmentSession</a>, which starts a session to a specified Dev Environment.</p>
109
- * </li>
110
- * <li>
111
- * <p>
112
- * <a>StopDevEnvironment</a>, which stops a specified Dev Environment and puts it into an stopped state.</p>
113
- * </li>
114
- * <li>
115
- * <p>
116
- * <a>StopDevEnvironmentSession</a>, which stops a session for a specified Dev Environment.</p>
117
- * </li>
118
- * <li>
119
- * <p>
120
- * <a>UpdateDevEnvironment</a>, which changes one or more values for a Dev Environment.</p>
121
- * </li>
122
- * <li>
123
- * <p>
124
- * <a>VerifySession</a>, which verifies whether the calling user has a valid Amazon CodeCatalyst login and session.</p>
125
- * </li>
126
- * </ul>
127
- * <p>Security, activity, and resource management in Amazon CodeCatalyst, by calling the following:</p>
128
- * <ul>
129
- * <li>
130
- * <p>
131
- * <a>DeleteAccessToken</a>, which deletes a specified personal access token (PAT).</p>
132
- * </li>
133
- * <li>
134
- * <p>
135
- * <a>ListAccessTokens</a>, which lists all personal access tokens (PATs) associated with a user.</p>
136
- * </li>
137
- * <li>
138
- * <p>
139
- * <a>ListEventLogs</a>, which retrieves a list of events that occurred during a specified time period in a space.</p>
140
- * </li>
141
- * </ul>
142
- */
143
- export declare class CodeCatalyst extends CodeCatalystClient {
28
+ export interface CodeCatalyst {
144
29
  /**
145
- * @public
146
- * <p>Creates a personal access token (PAT) for the current user. A personal access token (PAT) is similar to a password.
147
- * It is associated with your user account. You use PATs to access Amazon CodeCatalyst resources such as source repositories from third-party applications
148
- * like Git and integrated development environments (IDEs). For more information, see
149
- * <a href="https://docs.aws.amazon.com/codecatalyst/latest/userguide/ipa-tokens-keys.html">Managing personal access tokens in Amazon CodeCatalyst</a>.</p>
30
+ * @see {@link CreateAccessTokenCommand}
150
31
  */
151
32
  createAccessToken(args: CreateAccessTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateAccessTokenCommandOutput>;
152
33
  createAccessToken(args: CreateAccessTokenCommandInput, cb: (err: any, data?: CreateAccessTokenCommandOutput) => void): void;
153
34
  createAccessToken(args: CreateAccessTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAccessTokenCommandOutput) => void): void;
154
35
  /**
155
- * @public
156
- * <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.
157
- * </p>
158
- * <note>
159
- * <p>When created in the Amazon CodeCatalyst console, by default a Dev Environment is configured to have a 2 core processor, 4GB of RAM, and 16GB of persistent storage. None of these
160
- * defaults apply to a Dev Environment created programmatically.</p>
161
- * </note>
36
+ * @see {@link CreateDevEnvironmentCommand}
162
37
  */
163
38
  createDevEnvironment(args: CreateDevEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<CreateDevEnvironmentCommandOutput>;
164
39
  createDevEnvironment(args: CreateDevEnvironmentCommandInput, cb: (err: any, data?: CreateDevEnvironmentCommandOutput) => void): void;
165
40
  createDevEnvironment(args: CreateDevEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDevEnvironmentCommandOutput) => void): void;
166
41
  /**
167
- * @public
168
- * <p>Creates a project in a specified space.</p>
42
+ * @see {@link CreateProjectCommand}
169
43
  */
170
44
  createProject(args: CreateProjectCommandInput, options?: __HttpHandlerOptions): Promise<CreateProjectCommandOutput>;
171
45
  createProject(args: CreateProjectCommandInput, cb: (err: any, data?: CreateProjectCommandOutput) => void): void;
172
46
  createProject(args: CreateProjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProjectCommandOutput) => void): void;
173
47
  /**
174
- * @public
175
- * <p>Creates a branch in a specified source repository in Amazon CodeCatalyst. </p>
176
- * <note>
177
- * <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>
178
- * </note>
48
+ * @see {@link CreateSourceRepositoryBranchCommand}
179
49
  */
180
50
  createSourceRepositoryBranch(args: CreateSourceRepositoryBranchCommandInput, options?: __HttpHandlerOptions): Promise<CreateSourceRepositoryBranchCommandOutput>;
181
51
  createSourceRepositoryBranch(args: CreateSourceRepositoryBranchCommandInput, cb: (err: any, data?: CreateSourceRepositoryBranchCommandOutput) => void): void;
182
52
  createSourceRepositoryBranch(args: CreateSourceRepositoryBranchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSourceRepositoryBranchCommandOutput) => void): void;
183
53
  /**
184
- * @public
185
- * <p>Deletes a specified personal access token (PAT). A personal access token can only be deleted by the user who created it.</p>
54
+ * @see {@link DeleteAccessTokenCommand}
186
55
  */
187
56
  deleteAccessToken(args: DeleteAccessTokenCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAccessTokenCommandOutput>;
188
57
  deleteAccessToken(args: DeleteAccessTokenCommandInput, cb: (err: any, data?: DeleteAccessTokenCommandOutput) => void): void;
189
58
  deleteAccessToken(args: DeleteAccessTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAccessTokenCommandOutput) => void): void;
190
59
  /**
191
- * @public
192
- * <p>Deletes a Dev Environment. </p>
60
+ * @see {@link DeleteDevEnvironmentCommand}
193
61
  */
194
62
  deleteDevEnvironment(args: DeleteDevEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDevEnvironmentCommandOutput>;
195
63
  deleteDevEnvironment(args: DeleteDevEnvironmentCommandInput, cb: (err: any, data?: DeleteDevEnvironmentCommandOutput) => void): void;
196
64
  deleteDevEnvironment(args: DeleteDevEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDevEnvironmentCommandOutput) => void): void;
197
65
  /**
198
- * @public
199
- * <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>
66
+ * @see {@link GetDevEnvironmentCommand}
200
67
  */
201
68
  getDevEnvironment(args: GetDevEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<GetDevEnvironmentCommandOutput>;
202
69
  getDevEnvironment(args: GetDevEnvironmentCommandInput, cb: (err: any, data?: GetDevEnvironmentCommandOutput) => void): void;
203
70
  getDevEnvironment(args: GetDevEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDevEnvironmentCommandOutput) => void): void;
204
71
  /**
205
- * @public
206
- * <p>Returns information about a project.</p>
72
+ * @see {@link GetProjectCommand}
207
73
  */
208
74
  getProject(args: GetProjectCommandInput, options?: __HttpHandlerOptions): Promise<GetProjectCommandOutput>;
209
75
  getProject(args: GetProjectCommandInput, cb: (err: any, data?: GetProjectCommandOutput) => void): void;
210
76
  getProject(args: GetProjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProjectCommandOutput) => void): void;
211
77
  /**
212
- * @public
213
- * <p>Returns information about the URLs that can be used with a Git client to clone a source
214
- * repository.</p>
78
+ * @see {@link GetSourceRepositoryCloneUrlsCommand}
215
79
  */
216
80
  getSourceRepositoryCloneUrls(args: GetSourceRepositoryCloneUrlsCommandInput, options?: __HttpHandlerOptions): Promise<GetSourceRepositoryCloneUrlsCommandOutput>;
217
81
  getSourceRepositoryCloneUrls(args: GetSourceRepositoryCloneUrlsCommandInput, cb: (err: any, data?: GetSourceRepositoryCloneUrlsCommandOutput) => void): void;
218
82
  getSourceRepositoryCloneUrls(args: GetSourceRepositoryCloneUrlsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSourceRepositoryCloneUrlsCommandOutput) => void): void;
219
83
  /**
220
- * @public
221
- * <p>Returns information about an space.</p>
84
+ * @see {@link GetSpaceCommand}
222
85
  */
223
86
  getSpace(args: GetSpaceCommandInput, options?: __HttpHandlerOptions): Promise<GetSpaceCommandOutput>;
224
87
  getSpace(args: GetSpaceCommandInput, cb: (err: any, data?: GetSpaceCommandOutput) => void): void;
225
88
  getSpace(args: GetSpaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSpaceCommandOutput) => void): void;
226
89
  /**
227
- * @public
228
- * <p>Returns information about the Amazon Web Services account used for billing purposes
229
- * and the billing plan for the space.</p>
90
+ * @see {@link GetSubscriptionCommand}
230
91
  */
231
92
  getSubscription(args: GetSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetSubscriptionCommandOutput>;
232
93
  getSubscription(args: GetSubscriptionCommandInput, cb: (err: any, data?: GetSubscriptionCommandOutput) => void): void;
233
94
  getSubscription(args: GetSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSubscriptionCommandOutput) => void): void;
234
95
  /**
235
- * @public
236
- * <p>Returns information about a user. </p>
96
+ * @see {@link GetUserDetailsCommand}
237
97
  */
238
98
  getUserDetails(args: GetUserDetailsCommandInput, options?: __HttpHandlerOptions): Promise<GetUserDetailsCommandOutput>;
239
99
  getUserDetails(args: GetUserDetailsCommandInput, cb: (err: any, data?: GetUserDetailsCommandOutput) => void): void;
240
100
  getUserDetails(args: GetUserDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserDetailsCommandOutput) => void): void;
241
101
  /**
242
- * @public
243
- * <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>
102
+ * @see {@link ListAccessTokensCommand}
244
103
  */
245
104
  listAccessTokens(args: ListAccessTokensCommandInput, options?: __HttpHandlerOptions): Promise<ListAccessTokensCommandOutput>;
246
105
  listAccessTokens(args: ListAccessTokensCommandInput, cb: (err: any, data?: ListAccessTokensCommandOutput) => void): void;
247
106
  listAccessTokens(args: ListAccessTokensCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccessTokensCommandOutput) => void): void;
248
107
  /**
249
- * @public
250
- * <p>Retrives a list of Dev Environments in a project.</p>
108
+ * @see {@link ListDevEnvironmentsCommand}
251
109
  */
252
110
  listDevEnvironments(args: ListDevEnvironmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListDevEnvironmentsCommandOutput>;
253
111
  listDevEnvironments(args: ListDevEnvironmentsCommandInput, cb: (err: any, data?: ListDevEnvironmentsCommandOutput) => void): void;
254
112
  listDevEnvironments(args: ListDevEnvironmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDevEnvironmentsCommandOutput) => void): void;
255
113
  /**
256
- * @public
257
- * <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>
114
+ * @see {@link ListEventLogsCommand}
258
115
  */
259
116
  listEventLogs(args: ListEventLogsCommandInput, options?: __HttpHandlerOptions): Promise<ListEventLogsCommandOutput>;
260
117
  listEventLogs(args: ListEventLogsCommandInput, cb: (err: any, data?: ListEventLogsCommandOutput) => void): void;
261
118
  listEventLogs(args: ListEventLogsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEventLogsCommandOutput) => void): void;
262
119
  /**
263
- * @public
264
- * <p>Retrieves a list of projects.</p>
120
+ * @see {@link ListProjectsCommand}
265
121
  */
266
122
  listProjects(args: ListProjectsCommandInput, options?: __HttpHandlerOptions): Promise<ListProjectsCommandOutput>;
267
123
  listProjects(args: ListProjectsCommandInput, cb: (err: any, data?: ListProjectsCommandOutput) => void): void;
268
124
  listProjects(args: ListProjectsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProjectsCommandOutput) => void): void;
269
125
  /**
270
- * @public
271
- * <p>Retrieves a list of source repositories in a project.</p>
126
+ * @see {@link ListSourceRepositoriesCommand}
272
127
  */
273
128
  listSourceRepositories(args: ListSourceRepositoriesCommandInput, options?: __HttpHandlerOptions): Promise<ListSourceRepositoriesCommandOutput>;
274
129
  listSourceRepositories(args: ListSourceRepositoriesCommandInput, cb: (err: any, data?: ListSourceRepositoriesCommandOutput) => void): void;
275
130
  listSourceRepositories(args: ListSourceRepositoriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSourceRepositoriesCommandOutput) => void): void;
276
131
  /**
277
- * @public
278
- * <p>Retrieves a list of branches in a specified source repository.</p>
132
+ * @see {@link ListSourceRepositoryBranchesCommand}
279
133
  */
280
134
  listSourceRepositoryBranches(args: ListSourceRepositoryBranchesCommandInput, options?: __HttpHandlerOptions): Promise<ListSourceRepositoryBranchesCommandOutput>;
281
135
  listSourceRepositoryBranches(args: ListSourceRepositoryBranchesCommandInput, cb: (err: any, data?: ListSourceRepositoryBranchesCommandOutput) => void): void;
282
136
  listSourceRepositoryBranches(args: ListSourceRepositoryBranchesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSourceRepositoryBranchesCommandOutput) => void): void;
283
137
  /**
284
- * @public
285
- * <p>Retrieves a list of spaces.</p>
138
+ * @see {@link ListSpacesCommand}
286
139
  */
287
140
  listSpaces(args: ListSpacesCommandInput, options?: __HttpHandlerOptions): Promise<ListSpacesCommandOutput>;
288
141
  listSpaces(args: ListSpacesCommandInput, cb: (err: any, data?: ListSpacesCommandOutput) => void): void;
289
142
  listSpaces(args: ListSpacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSpacesCommandOutput) => void): void;
290
143
  /**
291
- * @public
292
- * <p>Starts a specified Dev Environment and puts it into an active state. </p>
144
+ * @see {@link StartDevEnvironmentCommand}
293
145
  */
294
146
  startDevEnvironment(args: StartDevEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<StartDevEnvironmentCommandOutput>;
295
147
  startDevEnvironment(args: StartDevEnvironmentCommandInput, cb: (err: any, data?: StartDevEnvironmentCommandOutput) => void): void;
296
148
  startDevEnvironment(args: StartDevEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDevEnvironmentCommandOutput) => void): void;
297
149
  /**
298
- * @public
299
- * <p>Starts a session for a specified Dev Environment.</p>
150
+ * @see {@link StartDevEnvironmentSessionCommand}
300
151
  */
301
152
  startDevEnvironmentSession(args: StartDevEnvironmentSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartDevEnvironmentSessionCommandOutput>;
302
153
  startDevEnvironmentSession(args: StartDevEnvironmentSessionCommandInput, cb: (err: any, data?: StartDevEnvironmentSessionCommandOutput) => void): void;
303
154
  startDevEnvironmentSession(args: StartDevEnvironmentSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDevEnvironmentSessionCommandOutput) => void): void;
304
155
  /**
305
- * @public
306
- * <p>Pauses a specified Dev Environment and places it in a non-running state. Stopped Dev Environments do not consume compute minutes.</p>
156
+ * @see {@link StopDevEnvironmentCommand}
307
157
  */
308
158
  stopDevEnvironment(args: StopDevEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<StopDevEnvironmentCommandOutput>;
309
159
  stopDevEnvironment(args: StopDevEnvironmentCommandInput, cb: (err: any, data?: StopDevEnvironmentCommandOutput) => void): void;
310
160
  stopDevEnvironment(args: StopDevEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopDevEnvironmentCommandOutput) => void): void;
311
161
  /**
312
- * @public
313
- * <p>Stops a session for a specified Dev Environment.</p>
162
+ * @see {@link StopDevEnvironmentSessionCommand}
314
163
  */
315
164
  stopDevEnvironmentSession(args: StopDevEnvironmentSessionCommandInput, options?: __HttpHandlerOptions): Promise<StopDevEnvironmentSessionCommandOutput>;
316
165
  stopDevEnvironmentSession(args: StopDevEnvironmentSessionCommandInput, cb: (err: any, data?: StopDevEnvironmentSessionCommandOutput) => void): void;
317
166
  stopDevEnvironmentSession(args: StopDevEnvironmentSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopDevEnvironmentSessionCommandOutput) => void): void;
318
167
  /**
319
- * @public
320
- * <p>Changes one or more values for a Dev Environment. Updating certain values of the Dev Environment will cause a restart.</p>
168
+ * @see {@link UpdateDevEnvironmentCommand}
321
169
  */
322
170
  updateDevEnvironment(args: UpdateDevEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDevEnvironmentCommandOutput>;
323
171
  updateDevEnvironment(args: UpdateDevEnvironmentCommandInput, cb: (err: any, data?: UpdateDevEnvironmentCommandOutput) => void): void;
324
172
  updateDevEnvironment(args: UpdateDevEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDevEnvironmentCommandOutput) => void): void;
325
173
  /**
326
- * @public
327
- * <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>
174
+ * @see {@link VerifySessionCommand}
328
175
  */
329
176
  verifySession(args: VerifySessionCommandInput, options?: __HttpHandlerOptions): Promise<VerifySessionCommandOutput>;
330
177
  verifySession(args: VerifySessionCommandInput, cb: (err: any, data?: VerifySessionCommandOutput) => void): void;
331
178
  verifySession(args: VerifySessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifySessionCommandOutput) => void): void;
332
179
  }
180
+ /**
181
+ * @public
182
+ * <note>
183
+ * <p>
184
+ * <b>Amazon CodeCatalyst is in preview release and subject to change.</b>
185
+ * </p>
186
+ * </note>
187
+ * <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
188
+ * API to work with the following objects. </p>
189
+ * <p>Dev Environments and the Amazon Web Services Toolkits, by calling the following:</p>
190
+ * <ul>
191
+ * <li>
192
+ * <p>
193
+ * <a>CreateAccessToken</a>, which creates a personal access token (PAT) for the current user.</p>
194
+ * </li>
195
+ * <li>
196
+ * <p>
197
+ * <a>CreateDevEnvironment</a>, which creates a Dev Environment,
198
+ * where you can quickly work on the code stored in the source repositories of your project.</p>
199
+ * </li>
200
+ * <li>
201
+ * <p>
202
+ * <a>CreateProject</a> which creates a project in a specified space.</p>
203
+ * </li>
204
+ * <li>
205
+ * <p>
206
+ * <a>CreateSourceRepositoryBranch</a>, which creates a branch in a specified repository where you can work on code.</p>
207
+ * </li>
208
+ * <li>
209
+ * <p>
210
+ * <a>DeleteDevEnvironment</a>, which deletes a Dev Environment.</p>
211
+ * </li>
212
+ * <li>
213
+ * <p>
214
+ * <a>GetDevEnvironment</a>, which returns information about a Dev Environment.</p>
215
+ * </li>
216
+ * <li>
217
+ * <p>
218
+ * <a>GetProject</a>, which returns information about a project.</p>
219
+ * </li>
220
+ * <li>
221
+ * <p>
222
+ * <a>GetSourceRepositoryCloneUrls</a>, which returns information about the URLs that can be used with a Git client to clone a source
223
+ * repository.</p>
224
+ * </li>
225
+ * <li>
226
+ * <p>
227
+ * <a>GetSubscription</a>, which returns information about the Amazon Web Services account used for billing purposes
228
+ * and the billing plan for the space.</p>
229
+ * </li>
230
+ * <li>
231
+ * <p>
232
+ * <a>GetUserDetails</a>, which returns information about a user in Amazon CodeCatalyst.</p>
233
+ * </li>
234
+ * <li>
235
+ * <p>
236
+ * <a>ListDevEnvironments</a>, which retrives a list of Dev Environments in a project.</p>
237
+ * </li>
238
+ * <li>
239
+ * <p>
240
+ * <a>ListProjects</a>, which retrieves a list of projects in a space.</p>
241
+ * </li>
242
+ * <li>
243
+ * <p>
244
+ * <a>ListSourceRepositories</a>, which retrieves a list of source repositories in a project.</p>
245
+ * </li>
246
+ * <li>
247
+ * <p>
248
+ * <a>ListSourceRepositoryBranches</a>, which retrieves a list of branches in a source repository.</p>
249
+ * </li>
250
+ * <li>
251
+ * <p>
252
+ * <a>ListSpaces</a>, which retrieves a list of spaces.</p>
253
+ * </li>
254
+ * <li>
255
+ * <p>
256
+ * <a>StartDevEnvironment</a>, which starts a specified Dev Environment and puts it into an active state.</p>
257
+ * </li>
258
+ * <li>
259
+ * <p>
260
+ * <a>StartDevEnvironmentSession</a>, which starts a session to a specified Dev Environment.</p>
261
+ * </li>
262
+ * <li>
263
+ * <p>
264
+ * <a>StopDevEnvironment</a>, which stops a specified Dev Environment and puts it into an stopped state.</p>
265
+ * </li>
266
+ * <li>
267
+ * <p>
268
+ * <a>StopDevEnvironmentSession</a>, which stops a session for a specified Dev Environment.</p>
269
+ * </li>
270
+ * <li>
271
+ * <p>
272
+ * <a>UpdateDevEnvironment</a>, which changes one or more values for a Dev Environment.</p>
273
+ * </li>
274
+ * <li>
275
+ * <p>
276
+ * <a>VerifySession</a>, which verifies whether the calling user has a valid Amazon CodeCatalyst login and session.</p>
277
+ * </li>
278
+ * </ul>
279
+ * <p>Security, activity, and resource management in Amazon CodeCatalyst, by calling the following:</p>
280
+ * <ul>
281
+ * <li>
282
+ * <p>
283
+ * <a>DeleteAccessToken</a>, which deletes a specified personal access token (PAT).</p>
284
+ * </li>
285
+ * <li>
286
+ * <p>
287
+ * <a>ListAccessTokens</a>, which lists all personal access tokens (PATs) associated with a user.</p>
288
+ * </li>
289
+ * <li>
290
+ * <p>
291
+ * <a>ListEventLogs</a>, which retrieves a list of events that occurred during a specified time period in a space.</p>
292
+ * </li>
293
+ * </ul>
294
+ */
295
+ export declare class CodeCatalyst extends CodeCatalystClient implements CodeCatalyst {
296
+ }
@@ -100,7 +100,7 @@ import {
100
100
  VerifySessionCommandInput,
101
101
  VerifySessionCommandOutput,
102
102
  } from "./commands/VerifySessionCommand";
103
- export declare class CodeCatalyst extends CodeCatalystClient {
103
+ export interface CodeCatalyst {
104
104
  createAccessToken(
105
105
  args: CreateAccessTokenCommandInput,
106
106
  options?: __HttpHandlerOptions
@@ -427,3 +427,6 @@ export declare class CodeCatalyst extends CodeCatalystClient {
427
427
  cb: (err: any, data?: VerifySessionCommandOutput) => void
428
428
  ): void;
429
429
  }
430
+ export declare class CodeCatalyst
431
+ extends CodeCatalystClient
432
+ implements CodeCatalyst {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codecatalyst",
3
3
  "description": "AWS SDK for JavaScript Codecatalyst Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -33,19 +33,19 @@
33
33
  "@aws-sdk/middleware-retry": "3.310.0",
34
34
  "@aws-sdk/middleware-serde": "3.310.0",
35
35
  "@aws-sdk/middleware-stack": "3.310.0",
36
- "@aws-sdk/middleware-token": "3.315.0",
36
+ "@aws-sdk/middleware-token": "3.316.0",
37
37
  "@aws-sdk/middleware-user-agent": "3.310.0",
38
38
  "@aws-sdk/node-config-provider": "3.310.0",
39
39
  "@aws-sdk/node-http-handler": "3.310.0",
40
40
  "@aws-sdk/protocol-http": "3.310.0",
41
- "@aws-sdk/smithy-client": "3.315.0",
41
+ "@aws-sdk/smithy-client": "3.316.0",
42
42
  "@aws-sdk/types": "3.310.0",
43
43
  "@aws-sdk/url-parser": "3.310.0",
44
44
  "@aws-sdk/util-base64": "3.310.0",
45
45
  "@aws-sdk/util-body-length-browser": "3.310.0",
46
46
  "@aws-sdk/util-body-length-node": "3.310.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
49
49
  "@aws-sdk/util-endpoints": "3.310.0",
50
50
  "@aws-sdk/util-retry": "3.310.0",
51
51
  "@aws-sdk/util-user-agent-browser": "3.310.0",