@aws-sdk/client-cloud9 3.489.0 → 3.495.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/dist-cjs/Cloud9.js +1 -37
- package/dist-cjs/Cloud9Client.js +1 -43
- package/dist-cjs/commands/CreateEnvironmentEC2Command.js +1 -29
- package/dist-cjs/commands/CreateEnvironmentMembershipCommand.js +1 -28
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +1 -28
- package/dist-cjs/commands/DeleteEnvironmentMembershipCommand.js +1 -28
- package/dist-cjs/commands/DescribeEnvironmentMembershipsCommand.js +1 -28
- package/dist-cjs/commands/DescribeEnvironmentStatusCommand.js +1 -28
- package/dist-cjs/commands/DescribeEnvironmentsCommand.js +1 -29
- package/dist-cjs/commands/ListEnvironmentsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -29
- package/dist-cjs/commands/UpdateEnvironmentCommand.js +1 -29
- package/dist-cjs/commands/UpdateEnvironmentMembershipCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -16
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1590 -11
- package/dist-cjs/models/Cloud9ServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -217
- package/dist-cjs/pagination/DescribeEnvironmentMembershipsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListEnvironmentsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -6
- package/dist-cjs/protocols/Aws_json1_1.js +1 -908
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,908 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateEnvironmentMembershipCommand = exports.de_UpdateEnvironmentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEnvironmentsCommand = exports.de_DescribeEnvironmentStatusCommand = exports.de_DescribeEnvironmentsCommand = exports.de_DescribeEnvironmentMembershipsCommand = exports.de_DeleteEnvironmentMembershipCommand = exports.de_DeleteEnvironmentCommand = exports.de_CreateEnvironmentMembershipCommand = exports.de_CreateEnvironmentEC2Command = exports.se_UpdateEnvironmentMembershipCommand = exports.se_UpdateEnvironmentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEnvironmentsCommand = exports.se_DescribeEnvironmentStatusCommand = exports.se_DescribeEnvironmentsCommand = exports.se_DescribeEnvironmentMembershipsCommand = exports.se_DeleteEnvironmentMembershipCommand = exports.se_DeleteEnvironmentCommand = exports.se_CreateEnvironmentMembershipCommand = exports.se_CreateEnvironmentEC2Command = void 0;
|
|
4
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const Cloud9ServiceException_1 = require("../models/Cloud9ServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_CreateEnvironmentEC2Command = async (input, context) => {
|
|
9
|
-
const headers = sharedHeaders("CreateEnvironmentEC2");
|
|
10
|
-
let body;
|
|
11
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
-
};
|
|
14
|
-
exports.se_CreateEnvironmentEC2Command = se_CreateEnvironmentEC2Command;
|
|
15
|
-
const se_CreateEnvironmentMembershipCommand = async (input, context) => {
|
|
16
|
-
const headers = sharedHeaders("CreateEnvironmentMembership");
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
19
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
|
-
};
|
|
21
|
-
exports.se_CreateEnvironmentMembershipCommand = se_CreateEnvironmentMembershipCommand;
|
|
22
|
-
const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
23
|
-
const headers = sharedHeaders("DeleteEnvironment");
|
|
24
|
-
let body;
|
|
25
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
|
-
};
|
|
28
|
-
exports.se_DeleteEnvironmentCommand = se_DeleteEnvironmentCommand;
|
|
29
|
-
const se_DeleteEnvironmentMembershipCommand = async (input, context) => {
|
|
30
|
-
const headers = sharedHeaders("DeleteEnvironmentMembership");
|
|
31
|
-
let body;
|
|
32
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
33
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
|
-
};
|
|
35
|
-
exports.se_DeleteEnvironmentMembershipCommand = se_DeleteEnvironmentMembershipCommand;
|
|
36
|
-
const se_DescribeEnvironmentMembershipsCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DescribeEnvironmentMemberships");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
exports.se_DescribeEnvironmentMembershipsCommand = se_DescribeEnvironmentMembershipsCommand;
|
|
43
|
-
const se_DescribeEnvironmentsCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("DescribeEnvironments");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
exports.se_DescribeEnvironmentsCommand = se_DescribeEnvironmentsCommand;
|
|
50
|
-
const se_DescribeEnvironmentStatusCommand = async (input, context) => {
|
|
51
|
-
const headers = sharedHeaders("DescribeEnvironmentStatus");
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
54
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
-
};
|
|
56
|
-
exports.se_DescribeEnvironmentStatusCommand = se_DescribeEnvironmentStatusCommand;
|
|
57
|
-
const se_ListEnvironmentsCommand = async (input, context) => {
|
|
58
|
-
const headers = sharedHeaders("ListEnvironments");
|
|
59
|
-
let body;
|
|
60
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
61
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
|
-
};
|
|
63
|
-
exports.se_ListEnvironmentsCommand = se_ListEnvironmentsCommand;
|
|
64
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
65
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
66
|
-
let body;
|
|
67
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
68
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
|
-
};
|
|
70
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
71
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
72
|
-
const headers = sharedHeaders("TagResource");
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
-
};
|
|
77
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
78
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("UntagResource");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
85
|
-
const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("UpdateEnvironment");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
exports.se_UpdateEnvironmentCommand = se_UpdateEnvironmentCommand;
|
|
92
|
-
const se_UpdateEnvironmentMembershipCommand = async (input, context) => {
|
|
93
|
-
const headers = sharedHeaders("UpdateEnvironmentMembership");
|
|
94
|
-
let body;
|
|
95
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
|
-
};
|
|
98
|
-
exports.se_UpdateEnvironmentMembershipCommand = se_UpdateEnvironmentMembershipCommand;
|
|
99
|
-
const de_CreateEnvironmentEC2Command = async (output, context) => {
|
|
100
|
-
if (output.statusCode >= 300) {
|
|
101
|
-
return de_CreateEnvironmentEC2CommandError(output, context);
|
|
102
|
-
}
|
|
103
|
-
const data = await parseBody(output.body, context);
|
|
104
|
-
let contents = {};
|
|
105
|
-
contents = (0, smithy_client_1._json)(data);
|
|
106
|
-
const response = {
|
|
107
|
-
$metadata: deserializeMetadata(output),
|
|
108
|
-
...contents,
|
|
109
|
-
};
|
|
110
|
-
return response;
|
|
111
|
-
};
|
|
112
|
-
exports.de_CreateEnvironmentEC2Command = de_CreateEnvironmentEC2Command;
|
|
113
|
-
const de_CreateEnvironmentEC2CommandError = async (output, context) => {
|
|
114
|
-
const parsedOutput = {
|
|
115
|
-
...output,
|
|
116
|
-
body: await parseErrorBody(output.body, context),
|
|
117
|
-
};
|
|
118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
119
|
-
switch (errorCode) {
|
|
120
|
-
case "BadRequestException":
|
|
121
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
122
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
123
|
-
case "ConflictException":
|
|
124
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
125
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
126
|
-
case "ForbiddenException":
|
|
127
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
128
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
129
|
-
case "InternalServerErrorException":
|
|
130
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
131
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
132
|
-
case "LimitExceededException":
|
|
133
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
134
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
135
|
-
case "NotFoundException":
|
|
136
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
137
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
138
|
-
case "TooManyRequestsException":
|
|
139
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
140
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
141
|
-
default:
|
|
142
|
-
const parsedBody = parsedOutput.body;
|
|
143
|
-
return throwDefaultError({
|
|
144
|
-
output,
|
|
145
|
-
parsedBody,
|
|
146
|
-
errorCode,
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
const de_CreateEnvironmentMembershipCommand = async (output, context) => {
|
|
151
|
-
if (output.statusCode >= 300) {
|
|
152
|
-
return de_CreateEnvironmentMembershipCommandError(output, context);
|
|
153
|
-
}
|
|
154
|
-
const data = await parseBody(output.body, context);
|
|
155
|
-
let contents = {};
|
|
156
|
-
contents = de_CreateEnvironmentMembershipResult(data, context);
|
|
157
|
-
const response = {
|
|
158
|
-
$metadata: deserializeMetadata(output),
|
|
159
|
-
...contents,
|
|
160
|
-
};
|
|
161
|
-
return response;
|
|
162
|
-
};
|
|
163
|
-
exports.de_CreateEnvironmentMembershipCommand = de_CreateEnvironmentMembershipCommand;
|
|
164
|
-
const de_CreateEnvironmentMembershipCommandError = async (output, context) => {
|
|
165
|
-
const parsedOutput = {
|
|
166
|
-
...output,
|
|
167
|
-
body: await parseErrorBody(output.body, context),
|
|
168
|
-
};
|
|
169
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
170
|
-
switch (errorCode) {
|
|
171
|
-
case "BadRequestException":
|
|
172
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
173
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
174
|
-
case "ConflictException":
|
|
175
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
176
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
177
|
-
case "ForbiddenException":
|
|
178
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
179
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
180
|
-
case "InternalServerErrorException":
|
|
181
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
182
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
183
|
-
case "LimitExceededException":
|
|
184
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
185
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
186
|
-
case "NotFoundException":
|
|
187
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
188
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
189
|
-
case "TooManyRequestsException":
|
|
190
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
191
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
192
|
-
default:
|
|
193
|
-
const parsedBody = parsedOutput.body;
|
|
194
|
-
return throwDefaultError({
|
|
195
|
-
output,
|
|
196
|
-
parsedBody,
|
|
197
|
-
errorCode,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
202
|
-
if (output.statusCode >= 300) {
|
|
203
|
-
return de_DeleteEnvironmentCommandError(output, context);
|
|
204
|
-
}
|
|
205
|
-
const data = await parseBody(output.body, context);
|
|
206
|
-
let contents = {};
|
|
207
|
-
contents = (0, smithy_client_1._json)(data);
|
|
208
|
-
const response = {
|
|
209
|
-
$metadata: deserializeMetadata(output),
|
|
210
|
-
...contents,
|
|
211
|
-
};
|
|
212
|
-
return response;
|
|
213
|
-
};
|
|
214
|
-
exports.de_DeleteEnvironmentCommand = de_DeleteEnvironmentCommand;
|
|
215
|
-
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
216
|
-
const parsedOutput = {
|
|
217
|
-
...output,
|
|
218
|
-
body: await parseErrorBody(output.body, context),
|
|
219
|
-
};
|
|
220
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
221
|
-
switch (errorCode) {
|
|
222
|
-
case "BadRequestException":
|
|
223
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
224
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
225
|
-
case "ConflictException":
|
|
226
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
227
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
228
|
-
case "ForbiddenException":
|
|
229
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
230
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
231
|
-
case "InternalServerErrorException":
|
|
232
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
233
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
234
|
-
case "LimitExceededException":
|
|
235
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
236
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
237
|
-
case "NotFoundException":
|
|
238
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
239
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
240
|
-
case "TooManyRequestsException":
|
|
241
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
242
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
243
|
-
default:
|
|
244
|
-
const parsedBody = parsedOutput.body;
|
|
245
|
-
return throwDefaultError({
|
|
246
|
-
output,
|
|
247
|
-
parsedBody,
|
|
248
|
-
errorCode,
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
const de_DeleteEnvironmentMembershipCommand = async (output, context) => {
|
|
253
|
-
if (output.statusCode >= 300) {
|
|
254
|
-
return de_DeleteEnvironmentMembershipCommandError(output, context);
|
|
255
|
-
}
|
|
256
|
-
const data = await parseBody(output.body, context);
|
|
257
|
-
let contents = {};
|
|
258
|
-
contents = (0, smithy_client_1._json)(data);
|
|
259
|
-
const response = {
|
|
260
|
-
$metadata: deserializeMetadata(output),
|
|
261
|
-
...contents,
|
|
262
|
-
};
|
|
263
|
-
return response;
|
|
264
|
-
};
|
|
265
|
-
exports.de_DeleteEnvironmentMembershipCommand = de_DeleteEnvironmentMembershipCommand;
|
|
266
|
-
const de_DeleteEnvironmentMembershipCommandError = async (output, context) => {
|
|
267
|
-
const parsedOutput = {
|
|
268
|
-
...output,
|
|
269
|
-
body: await parseErrorBody(output.body, context),
|
|
270
|
-
};
|
|
271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
272
|
-
switch (errorCode) {
|
|
273
|
-
case "BadRequestException":
|
|
274
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
275
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
276
|
-
case "ConflictException":
|
|
277
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
278
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
279
|
-
case "ForbiddenException":
|
|
280
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
281
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
282
|
-
case "InternalServerErrorException":
|
|
283
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
284
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
285
|
-
case "LimitExceededException":
|
|
286
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
287
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
288
|
-
case "NotFoundException":
|
|
289
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
290
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
291
|
-
case "TooManyRequestsException":
|
|
292
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
293
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
294
|
-
default:
|
|
295
|
-
const parsedBody = parsedOutput.body;
|
|
296
|
-
return throwDefaultError({
|
|
297
|
-
output,
|
|
298
|
-
parsedBody,
|
|
299
|
-
errorCode,
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
const de_DescribeEnvironmentMembershipsCommand = async (output, context) => {
|
|
304
|
-
if (output.statusCode >= 300) {
|
|
305
|
-
return de_DescribeEnvironmentMembershipsCommandError(output, context);
|
|
306
|
-
}
|
|
307
|
-
const data = await parseBody(output.body, context);
|
|
308
|
-
let contents = {};
|
|
309
|
-
contents = de_DescribeEnvironmentMembershipsResult(data, context);
|
|
310
|
-
const response = {
|
|
311
|
-
$metadata: deserializeMetadata(output),
|
|
312
|
-
...contents,
|
|
313
|
-
};
|
|
314
|
-
return response;
|
|
315
|
-
};
|
|
316
|
-
exports.de_DescribeEnvironmentMembershipsCommand = de_DescribeEnvironmentMembershipsCommand;
|
|
317
|
-
const de_DescribeEnvironmentMembershipsCommandError = async (output, context) => {
|
|
318
|
-
const parsedOutput = {
|
|
319
|
-
...output,
|
|
320
|
-
body: await parseErrorBody(output.body, context),
|
|
321
|
-
};
|
|
322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
323
|
-
switch (errorCode) {
|
|
324
|
-
case "BadRequestException":
|
|
325
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
326
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
327
|
-
case "ConflictException":
|
|
328
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
329
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
330
|
-
case "ForbiddenException":
|
|
331
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
332
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
333
|
-
case "InternalServerErrorException":
|
|
334
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
335
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
336
|
-
case "LimitExceededException":
|
|
337
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
338
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
339
|
-
case "NotFoundException":
|
|
340
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
341
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
342
|
-
case "TooManyRequestsException":
|
|
343
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
344
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
345
|
-
default:
|
|
346
|
-
const parsedBody = parsedOutput.body;
|
|
347
|
-
return throwDefaultError({
|
|
348
|
-
output,
|
|
349
|
-
parsedBody,
|
|
350
|
-
errorCode,
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
const de_DescribeEnvironmentsCommand = async (output, context) => {
|
|
355
|
-
if (output.statusCode >= 300) {
|
|
356
|
-
return de_DescribeEnvironmentsCommandError(output, context);
|
|
357
|
-
}
|
|
358
|
-
const data = await parseBody(output.body, context);
|
|
359
|
-
let contents = {};
|
|
360
|
-
contents = (0, smithy_client_1._json)(data);
|
|
361
|
-
const response = {
|
|
362
|
-
$metadata: deserializeMetadata(output),
|
|
363
|
-
...contents,
|
|
364
|
-
};
|
|
365
|
-
return response;
|
|
366
|
-
};
|
|
367
|
-
exports.de_DescribeEnvironmentsCommand = de_DescribeEnvironmentsCommand;
|
|
368
|
-
const de_DescribeEnvironmentsCommandError = async (output, context) => {
|
|
369
|
-
const parsedOutput = {
|
|
370
|
-
...output,
|
|
371
|
-
body: await parseErrorBody(output.body, context),
|
|
372
|
-
};
|
|
373
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
374
|
-
switch (errorCode) {
|
|
375
|
-
case "BadRequestException":
|
|
376
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
377
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
378
|
-
case "ConflictException":
|
|
379
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
380
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
381
|
-
case "ForbiddenException":
|
|
382
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
383
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
384
|
-
case "InternalServerErrorException":
|
|
385
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
386
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
387
|
-
case "LimitExceededException":
|
|
388
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
389
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
390
|
-
case "NotFoundException":
|
|
391
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
392
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
393
|
-
case "TooManyRequestsException":
|
|
394
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
395
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
396
|
-
default:
|
|
397
|
-
const parsedBody = parsedOutput.body;
|
|
398
|
-
return throwDefaultError({
|
|
399
|
-
output,
|
|
400
|
-
parsedBody,
|
|
401
|
-
errorCode,
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
};
|
|
405
|
-
const de_DescribeEnvironmentStatusCommand = async (output, context) => {
|
|
406
|
-
if (output.statusCode >= 300) {
|
|
407
|
-
return de_DescribeEnvironmentStatusCommandError(output, context);
|
|
408
|
-
}
|
|
409
|
-
const data = await parseBody(output.body, context);
|
|
410
|
-
let contents = {};
|
|
411
|
-
contents = (0, smithy_client_1._json)(data);
|
|
412
|
-
const response = {
|
|
413
|
-
$metadata: deserializeMetadata(output),
|
|
414
|
-
...contents,
|
|
415
|
-
};
|
|
416
|
-
return response;
|
|
417
|
-
};
|
|
418
|
-
exports.de_DescribeEnvironmentStatusCommand = de_DescribeEnvironmentStatusCommand;
|
|
419
|
-
const de_DescribeEnvironmentStatusCommandError = async (output, context) => {
|
|
420
|
-
const parsedOutput = {
|
|
421
|
-
...output,
|
|
422
|
-
body: await parseErrorBody(output.body, context),
|
|
423
|
-
};
|
|
424
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
425
|
-
switch (errorCode) {
|
|
426
|
-
case "BadRequestException":
|
|
427
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
428
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
429
|
-
case "ConflictException":
|
|
430
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
431
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
432
|
-
case "ForbiddenException":
|
|
433
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
434
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
435
|
-
case "InternalServerErrorException":
|
|
436
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
437
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
438
|
-
case "LimitExceededException":
|
|
439
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
440
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
441
|
-
case "NotFoundException":
|
|
442
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
443
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
444
|
-
case "TooManyRequestsException":
|
|
445
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
446
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
447
|
-
default:
|
|
448
|
-
const parsedBody = parsedOutput.body;
|
|
449
|
-
return throwDefaultError({
|
|
450
|
-
output,
|
|
451
|
-
parsedBody,
|
|
452
|
-
errorCode,
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
};
|
|
456
|
-
const de_ListEnvironmentsCommand = async (output, context) => {
|
|
457
|
-
if (output.statusCode >= 300) {
|
|
458
|
-
return de_ListEnvironmentsCommandError(output, context);
|
|
459
|
-
}
|
|
460
|
-
const data = await parseBody(output.body, context);
|
|
461
|
-
let contents = {};
|
|
462
|
-
contents = (0, smithy_client_1._json)(data);
|
|
463
|
-
const response = {
|
|
464
|
-
$metadata: deserializeMetadata(output),
|
|
465
|
-
...contents,
|
|
466
|
-
};
|
|
467
|
-
return response;
|
|
468
|
-
};
|
|
469
|
-
exports.de_ListEnvironmentsCommand = de_ListEnvironmentsCommand;
|
|
470
|
-
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
471
|
-
const parsedOutput = {
|
|
472
|
-
...output,
|
|
473
|
-
body: await parseErrorBody(output.body, context),
|
|
474
|
-
};
|
|
475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
476
|
-
switch (errorCode) {
|
|
477
|
-
case "BadRequestException":
|
|
478
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
479
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ConflictException":
|
|
481
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
482
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
483
|
-
case "ForbiddenException":
|
|
484
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
485
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
486
|
-
case "InternalServerErrorException":
|
|
487
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
488
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
489
|
-
case "LimitExceededException":
|
|
490
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
491
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
492
|
-
case "NotFoundException":
|
|
493
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
494
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
495
|
-
case "TooManyRequestsException":
|
|
496
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
497
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
498
|
-
default:
|
|
499
|
-
const parsedBody = parsedOutput.body;
|
|
500
|
-
return throwDefaultError({
|
|
501
|
-
output,
|
|
502
|
-
parsedBody,
|
|
503
|
-
errorCode,
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
508
|
-
if (output.statusCode >= 300) {
|
|
509
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
510
|
-
}
|
|
511
|
-
const data = await parseBody(output.body, context);
|
|
512
|
-
let contents = {};
|
|
513
|
-
contents = (0, smithy_client_1._json)(data);
|
|
514
|
-
const response = {
|
|
515
|
-
$metadata: deserializeMetadata(output),
|
|
516
|
-
...contents,
|
|
517
|
-
};
|
|
518
|
-
return response;
|
|
519
|
-
};
|
|
520
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
521
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
522
|
-
const parsedOutput = {
|
|
523
|
-
...output,
|
|
524
|
-
body: await parseErrorBody(output.body, context),
|
|
525
|
-
};
|
|
526
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
527
|
-
switch (errorCode) {
|
|
528
|
-
case "BadRequestException":
|
|
529
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
530
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
531
|
-
case "InternalServerErrorException":
|
|
532
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
533
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
534
|
-
case "NotFoundException":
|
|
535
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
536
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
537
|
-
default:
|
|
538
|
-
const parsedBody = parsedOutput.body;
|
|
539
|
-
return throwDefaultError({
|
|
540
|
-
output,
|
|
541
|
-
parsedBody,
|
|
542
|
-
errorCode,
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
547
|
-
if (output.statusCode >= 300) {
|
|
548
|
-
return de_TagResourceCommandError(output, context);
|
|
549
|
-
}
|
|
550
|
-
const data = await parseBody(output.body, context);
|
|
551
|
-
let contents = {};
|
|
552
|
-
contents = (0, smithy_client_1._json)(data);
|
|
553
|
-
const response = {
|
|
554
|
-
$metadata: deserializeMetadata(output),
|
|
555
|
-
...contents,
|
|
556
|
-
};
|
|
557
|
-
return response;
|
|
558
|
-
};
|
|
559
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
560
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
561
|
-
const parsedOutput = {
|
|
562
|
-
...output,
|
|
563
|
-
body: await parseErrorBody(output.body, context),
|
|
564
|
-
};
|
|
565
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
566
|
-
switch (errorCode) {
|
|
567
|
-
case "BadRequestException":
|
|
568
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
569
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
570
|
-
case "ConcurrentAccessException":
|
|
571
|
-
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
572
|
-
throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
|
|
573
|
-
case "InternalServerErrorException":
|
|
574
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
575
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
576
|
-
case "NotFoundException":
|
|
577
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
578
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
579
|
-
default:
|
|
580
|
-
const parsedBody = parsedOutput.body;
|
|
581
|
-
return throwDefaultError({
|
|
582
|
-
output,
|
|
583
|
-
parsedBody,
|
|
584
|
-
errorCode,
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
589
|
-
if (output.statusCode >= 300) {
|
|
590
|
-
return de_UntagResourceCommandError(output, context);
|
|
591
|
-
}
|
|
592
|
-
const data = await parseBody(output.body, context);
|
|
593
|
-
let contents = {};
|
|
594
|
-
contents = (0, smithy_client_1._json)(data);
|
|
595
|
-
const response = {
|
|
596
|
-
$metadata: deserializeMetadata(output),
|
|
597
|
-
...contents,
|
|
598
|
-
};
|
|
599
|
-
return response;
|
|
600
|
-
};
|
|
601
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
602
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
603
|
-
const parsedOutput = {
|
|
604
|
-
...output,
|
|
605
|
-
body: await parseErrorBody(output.body, context),
|
|
606
|
-
};
|
|
607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
608
|
-
switch (errorCode) {
|
|
609
|
-
case "BadRequestException":
|
|
610
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
611
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ConcurrentAccessException":
|
|
613
|
-
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
614
|
-
throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
|
|
615
|
-
case "InternalServerErrorException":
|
|
616
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
617
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
618
|
-
case "NotFoundException":
|
|
619
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
620
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
621
|
-
default:
|
|
622
|
-
const parsedBody = parsedOutput.body;
|
|
623
|
-
return throwDefaultError({
|
|
624
|
-
output,
|
|
625
|
-
parsedBody,
|
|
626
|
-
errorCode,
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
};
|
|
630
|
-
const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
631
|
-
if (output.statusCode >= 300) {
|
|
632
|
-
return de_UpdateEnvironmentCommandError(output, context);
|
|
633
|
-
}
|
|
634
|
-
const data = await parseBody(output.body, context);
|
|
635
|
-
let contents = {};
|
|
636
|
-
contents = (0, smithy_client_1._json)(data);
|
|
637
|
-
const response = {
|
|
638
|
-
$metadata: deserializeMetadata(output),
|
|
639
|
-
...contents,
|
|
640
|
-
};
|
|
641
|
-
return response;
|
|
642
|
-
};
|
|
643
|
-
exports.de_UpdateEnvironmentCommand = de_UpdateEnvironmentCommand;
|
|
644
|
-
const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
645
|
-
const parsedOutput = {
|
|
646
|
-
...output,
|
|
647
|
-
body: await parseErrorBody(output.body, context),
|
|
648
|
-
};
|
|
649
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
|
-
switch (errorCode) {
|
|
651
|
-
case "BadRequestException":
|
|
652
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
653
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
654
|
-
case "ConflictException":
|
|
655
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
656
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
657
|
-
case "ForbiddenException":
|
|
658
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
659
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
660
|
-
case "InternalServerErrorException":
|
|
661
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
662
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
663
|
-
case "LimitExceededException":
|
|
664
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
665
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
666
|
-
case "NotFoundException":
|
|
667
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
668
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
669
|
-
case "TooManyRequestsException":
|
|
670
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
671
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
672
|
-
default:
|
|
673
|
-
const parsedBody = parsedOutput.body;
|
|
674
|
-
return throwDefaultError({
|
|
675
|
-
output,
|
|
676
|
-
parsedBody,
|
|
677
|
-
errorCode,
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
const de_UpdateEnvironmentMembershipCommand = async (output, context) => {
|
|
682
|
-
if (output.statusCode >= 300) {
|
|
683
|
-
return de_UpdateEnvironmentMembershipCommandError(output, context);
|
|
684
|
-
}
|
|
685
|
-
const data = await parseBody(output.body, context);
|
|
686
|
-
let contents = {};
|
|
687
|
-
contents = de_UpdateEnvironmentMembershipResult(data, context);
|
|
688
|
-
const response = {
|
|
689
|
-
$metadata: deserializeMetadata(output),
|
|
690
|
-
...contents,
|
|
691
|
-
};
|
|
692
|
-
return response;
|
|
693
|
-
};
|
|
694
|
-
exports.de_UpdateEnvironmentMembershipCommand = de_UpdateEnvironmentMembershipCommand;
|
|
695
|
-
const de_UpdateEnvironmentMembershipCommandError = async (output, context) => {
|
|
696
|
-
const parsedOutput = {
|
|
697
|
-
...output,
|
|
698
|
-
body: await parseErrorBody(output.body, context),
|
|
699
|
-
};
|
|
700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
-
switch (errorCode) {
|
|
702
|
-
case "BadRequestException":
|
|
703
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
704
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
705
|
-
case "ConflictException":
|
|
706
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
707
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
708
|
-
case "ForbiddenException":
|
|
709
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
710
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
711
|
-
case "InternalServerErrorException":
|
|
712
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
713
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
714
|
-
case "LimitExceededException":
|
|
715
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
716
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
717
|
-
case "NotFoundException":
|
|
718
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
719
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
720
|
-
case "TooManyRequestsException":
|
|
721
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
722
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
723
|
-
default:
|
|
724
|
-
const parsedBody = parsedOutput.body;
|
|
725
|
-
return throwDefaultError({
|
|
726
|
-
output,
|
|
727
|
-
parsedBody,
|
|
728
|
-
errorCode,
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
733
|
-
const body = parsedOutput.body;
|
|
734
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
735
|
-
const exception = new models_0_1.BadRequestException({
|
|
736
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
737
|
-
...deserialized,
|
|
738
|
-
});
|
|
739
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
740
|
-
};
|
|
741
|
-
const de_ConcurrentAccessExceptionRes = async (parsedOutput, context) => {
|
|
742
|
-
const body = parsedOutput.body;
|
|
743
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
744
|
-
const exception = new models_0_1.ConcurrentAccessException({
|
|
745
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
746
|
-
...deserialized,
|
|
747
|
-
});
|
|
748
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
749
|
-
};
|
|
750
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
751
|
-
const body = parsedOutput.body;
|
|
752
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
753
|
-
const exception = new models_0_1.ConflictException({
|
|
754
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
755
|
-
...deserialized,
|
|
756
|
-
});
|
|
757
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
758
|
-
};
|
|
759
|
-
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
760
|
-
const body = parsedOutput.body;
|
|
761
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
762
|
-
const exception = new models_0_1.ForbiddenException({
|
|
763
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
764
|
-
...deserialized,
|
|
765
|
-
});
|
|
766
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
767
|
-
};
|
|
768
|
-
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
769
|
-
const body = parsedOutput.body;
|
|
770
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
771
|
-
const exception = new models_0_1.InternalServerErrorException({
|
|
772
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
773
|
-
...deserialized,
|
|
774
|
-
});
|
|
775
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
776
|
-
};
|
|
777
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
778
|
-
const body = parsedOutput.body;
|
|
779
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
780
|
-
const exception = new models_0_1.LimitExceededException({
|
|
781
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
782
|
-
...deserialized,
|
|
783
|
-
});
|
|
784
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
785
|
-
};
|
|
786
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
787
|
-
const body = parsedOutput.body;
|
|
788
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
789
|
-
const exception = new models_0_1.NotFoundException({
|
|
790
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
791
|
-
...deserialized,
|
|
792
|
-
});
|
|
793
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
794
|
-
};
|
|
795
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
796
|
-
const body = parsedOutput.body;
|
|
797
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
798
|
-
const exception = new models_0_1.TooManyRequestsException({
|
|
799
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
800
|
-
...deserialized,
|
|
801
|
-
});
|
|
802
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
803
|
-
};
|
|
804
|
-
const de_CreateEnvironmentMembershipResult = (output, context) => {
|
|
805
|
-
return (0, smithy_client_1.take)(output, {
|
|
806
|
-
membership: (_) => de_EnvironmentMember(_, context),
|
|
807
|
-
});
|
|
808
|
-
};
|
|
809
|
-
const de_DescribeEnvironmentMembershipsResult = (output, context) => {
|
|
810
|
-
return (0, smithy_client_1.take)(output, {
|
|
811
|
-
memberships: (_) => de_EnvironmentMembersList(_, context),
|
|
812
|
-
nextToken: smithy_client_1.expectString,
|
|
813
|
-
});
|
|
814
|
-
};
|
|
815
|
-
const de_EnvironmentMember = (output, context) => {
|
|
816
|
-
return (0, smithy_client_1.take)(output, {
|
|
817
|
-
environmentId: smithy_client_1.expectString,
|
|
818
|
-
lastAccess: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
819
|
-
permissions: smithy_client_1.expectString,
|
|
820
|
-
userArn: smithy_client_1.expectString,
|
|
821
|
-
userId: smithy_client_1.expectString,
|
|
822
|
-
});
|
|
823
|
-
};
|
|
824
|
-
const de_EnvironmentMembersList = (output, context) => {
|
|
825
|
-
const retVal = (output || [])
|
|
826
|
-
.filter((e) => e != null)
|
|
827
|
-
.map((entry) => {
|
|
828
|
-
return de_EnvironmentMember(entry, context);
|
|
829
|
-
});
|
|
830
|
-
return retVal;
|
|
831
|
-
};
|
|
832
|
-
const de_UpdateEnvironmentMembershipResult = (output, context) => {
|
|
833
|
-
return (0, smithy_client_1.take)(output, {
|
|
834
|
-
membership: (_) => de_EnvironmentMember(_, context),
|
|
835
|
-
});
|
|
836
|
-
};
|
|
837
|
-
const deserializeMetadata = (output) => ({
|
|
838
|
-
httpStatusCode: output.statusCode,
|
|
839
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
840
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
841
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
842
|
-
});
|
|
843
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
844
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(Cloud9ServiceException_1.Cloud9ServiceException);
|
|
845
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
846
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
847
|
-
const contents = {
|
|
848
|
-
protocol,
|
|
849
|
-
hostname,
|
|
850
|
-
port,
|
|
851
|
-
method: "POST",
|
|
852
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
853
|
-
headers,
|
|
854
|
-
};
|
|
855
|
-
if (resolvedHostname !== undefined) {
|
|
856
|
-
contents.hostname = resolvedHostname;
|
|
857
|
-
}
|
|
858
|
-
if (body !== undefined) {
|
|
859
|
-
contents.body = body;
|
|
860
|
-
}
|
|
861
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
862
|
-
};
|
|
863
|
-
function sharedHeaders(operation) {
|
|
864
|
-
return {
|
|
865
|
-
"content-type": "application/x-amz-json-1.1",
|
|
866
|
-
"x-amz-target": `AWSCloud9WorkspaceManagementService.${operation}`,
|
|
867
|
-
};
|
|
868
|
-
}
|
|
869
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
870
|
-
if (encoded.length) {
|
|
871
|
-
return JSON.parse(encoded);
|
|
872
|
-
}
|
|
873
|
-
return {};
|
|
874
|
-
});
|
|
875
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
876
|
-
const value = await parseBody(errorBody, context);
|
|
877
|
-
value.message = value.message ?? value.Message;
|
|
878
|
-
return value;
|
|
879
|
-
};
|
|
880
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
881
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
882
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
883
|
-
let cleanValue = rawValue;
|
|
884
|
-
if (typeof cleanValue === "number") {
|
|
885
|
-
cleanValue = cleanValue.toString();
|
|
886
|
-
}
|
|
887
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
888
|
-
cleanValue = cleanValue.split(",")[0];
|
|
889
|
-
}
|
|
890
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
891
|
-
cleanValue = cleanValue.split(":")[0];
|
|
892
|
-
}
|
|
893
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
894
|
-
cleanValue = cleanValue.split("#")[1];
|
|
895
|
-
}
|
|
896
|
-
return cleanValue;
|
|
897
|
-
};
|
|
898
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
899
|
-
if (headerKey !== undefined) {
|
|
900
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
901
|
-
}
|
|
902
|
-
if (data.code !== undefined) {
|
|
903
|
-
return sanitizeErrorCode(data.code);
|
|
904
|
-
}
|
|
905
|
-
if (data["__type"] !== undefined) {
|
|
906
|
-
return sanitizeErrorCode(data["__type"]);
|
|
907
|
-
}
|
|
908
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|