@aws-sdk/client-codecatalyst 3.315.0 → 3.319.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.
- package/README.md +10 -6
- package/dist-cjs/CodeCatalyst.js +29 -350
- package/dist-cjs/models/models_0.js +1 -5
- package/dist-es/CodeCatalyst.js +29 -350
- package/dist-es/models/models_0.js +0 -4
- package/dist-types/CodeCatalyst.d.ts +147 -179
- package/dist-types/CodeCatalystClient.d.ts +11 -7
- package/dist-types/commands/CreateAccessTokenCommand.d.ts +3 -2
- package/dist-types/commands/CreateDevEnvironmentCommand.d.ts +2 -2
- package/dist-types/commands/ListAccessTokensCommand.d.ts +1 -1
- package/dist-types/commands/ListDevEnvironmentsCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +3 -15
- package/dist-types/ts3.4/CodeCatalyst.d.ts +4 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -6
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -9,11 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
AWS SDK for JavaScript CodeCatalyst Client for Node.js, Browser and React Native.
|
|
11
11
|
|
|
12
|
-
<note>
|
|
13
|
-
<p>
|
|
14
|
-
<b>Amazon CodeCatalyst is in preview release and subject to change.</b>
|
|
15
|
-
</p>
|
|
16
|
-
</note>
|
|
17
12
|
<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
|
|
18
13
|
API to work with the following objects. </p>
|
|
19
14
|
<p>Dev Environments and the Amazon Web Services Toolkits, by calling the following:</p>
|
|
@@ -54,6 +49,10 @@ repository.</p>
|
|
|
54
49
|
</li>
|
|
55
50
|
<li>
|
|
56
51
|
<p>
|
|
52
|
+
<a>GetSpace</a>, which returns information about a space.</p>
|
|
53
|
+
</li>
|
|
54
|
+
<li>
|
|
55
|
+
<p>
|
|
57
56
|
<a>GetSubscription</a>, which returns information about the Amazon Web Services account used for billing purposes
|
|
58
57
|
and the billing plan for the space.</p>
|
|
59
58
|
</li>
|
|
@@ -63,7 +62,7 @@ and the billing plan for the space.</p>
|
|
|
63
62
|
</li>
|
|
64
63
|
<li>
|
|
65
64
|
<p>
|
|
66
|
-
<a>ListDevEnvironments</a>, which
|
|
65
|
+
<a>ListDevEnvironments</a>, which retrieves a list of Dev Environments in a project.</p>
|
|
67
66
|
</li>
|
|
68
67
|
<li>
|
|
69
68
|
<p>
|
|
@@ -121,6 +120,11 @@ and the billing plan for the space.</p>
|
|
|
121
120
|
<a>ListEventLogs</a>, which retrieves a list of events that occurred during a specified time period in a space.</p>
|
|
122
121
|
</li>
|
|
123
122
|
</ul>
|
|
123
|
+
<note>
|
|
124
|
+
<p>If you are using the Amazon CodeCatalyst APIs with an SDK or the CLI, you must configure your computer to work with Amazon CodeCatalyst and single sign-on (SSO).
|
|
125
|
+
For more information, see <a href="https://docs.aws.amazon.com/codecatalyst/latest/userguide/set-up-cli.html">Setting up to use the CLI with Amazon CodeCatalyst</a>
|
|
126
|
+
and the SSO documentation for your SDK.</p>
|
|
127
|
+
</note>
|
|
124
128
|
|
|
125
129
|
## Installing
|
|
126
130
|
|
package/dist-cjs/CodeCatalyst.js
CHANGED
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StartDevEnvironmentSessionResponseFilterSensitiveLog = exports.DevEnvironmentAccessDetailsFilterSensitiveLog = exports.CreateAccessTokenResponseFilterSensitiveLog = exports.FilterKey = exports.ComparisonOperator = exports.DevEnvironmentSessionType = exports.DevEnvironmentStatus = exports._InstanceType = exports.UserType = exports.OperationType = exports.
|
|
3
|
+
exports.StartDevEnvironmentSessionResponseFilterSensitiveLog = exports.DevEnvironmentAccessDetailsFilterSensitiveLog = exports.CreateAccessTokenResponseFilterSensitiveLog = exports.FilterKey = exports.ComparisonOperator = exports.DevEnvironmentSessionType = exports.DevEnvironmentStatus = exports._InstanceType = exports.UserType = exports.OperationType = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const CodeCatalystServiceException_1 = require("./CodeCatalystServiceException");
|
|
6
6
|
class AccessDeniedException extends CodeCatalystServiceException_1.CodeCatalystServiceException {
|
|
@@ -82,10 +82,6 @@ class ValidationException extends CodeCatalystServiceException_1.CodeCatalystSer
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
exports.ValidationException = ValidationException;
|
|
85
|
-
exports.CatalogActionVersionFileRecordType = {
|
|
86
|
-
LICENSE: "LICENSE",
|
|
87
|
-
README: "README",
|
|
88
|
-
};
|
|
89
85
|
exports.OperationType = {
|
|
90
86
|
MUTATION: "MUTATION",
|
|
91
87
|
READONLY: "READONLY",
|