@aws-sdk/client-codestar-connections 3.312.0 → 3.315.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/protocols/Aws_json1_0.js +54 -355
- package/dist-es/protocols/Aws_json1_0.js +55 -356
- package/package.json +6 -6
|
@@ -8,84 +8,84 @@ const models_0_1 = require("../models/models_0");
|
|
|
8
8
|
const se_CreateConnectionCommand = async (input, context) => {
|
|
9
9
|
const headers = sharedHeaders("CreateConnection");
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
14
|
exports.se_CreateConnectionCommand = se_CreateConnectionCommand;
|
|
15
15
|
const se_CreateHostCommand = async (input, context) => {
|
|
16
16
|
const headers = sharedHeaders("CreateHost");
|
|
17
17
|
let body;
|
|
18
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
19
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
20
|
};
|
|
21
21
|
exports.se_CreateHostCommand = se_CreateHostCommand;
|
|
22
22
|
const se_DeleteConnectionCommand = async (input, context) => {
|
|
23
23
|
const headers = sharedHeaders("DeleteConnection");
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
28
|
exports.se_DeleteConnectionCommand = se_DeleteConnectionCommand;
|
|
29
29
|
const se_DeleteHostCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("DeleteHost");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
exports.se_DeleteHostCommand = se_DeleteHostCommand;
|
|
36
36
|
const se_GetConnectionCommand = async (input, context) => {
|
|
37
37
|
const headers = sharedHeaders("GetConnection");
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
42
|
exports.se_GetConnectionCommand = se_GetConnectionCommand;
|
|
43
43
|
const se_GetHostCommand = async (input, context) => {
|
|
44
44
|
const headers = sharedHeaders("GetHost");
|
|
45
45
|
let body;
|
|
46
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
48
|
};
|
|
49
49
|
exports.se_GetHostCommand = se_GetHostCommand;
|
|
50
50
|
const se_ListConnectionsCommand = async (input, context) => {
|
|
51
51
|
const headers = sharedHeaders("ListConnections");
|
|
52
52
|
let body;
|
|
53
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
54
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
55
|
};
|
|
56
56
|
exports.se_ListConnectionsCommand = se_ListConnectionsCommand;
|
|
57
57
|
const se_ListHostsCommand = async (input, context) => {
|
|
58
58
|
const headers = sharedHeaders("ListHosts");
|
|
59
59
|
let body;
|
|
60
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
61
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
62
|
};
|
|
63
63
|
exports.se_ListHostsCommand = se_ListHostsCommand;
|
|
64
64
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
65
65
|
const headers = sharedHeaders("ListTagsForResource");
|
|
66
66
|
let body;
|
|
67
|
-
body = JSON.stringify(
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
68
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
69
|
};
|
|
70
70
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
71
71
|
const se_TagResourceCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("TagResource");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
78
78
|
const se_UntagResourceCommand = async (input, context) => {
|
|
79
79
|
const headers = sharedHeaders("UntagResource");
|
|
80
80
|
let body;
|
|
81
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
82
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
83
|
};
|
|
84
84
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
85
85
|
const se_UpdateHostCommand = async (input, context) => {
|
|
86
86
|
const headers = sharedHeaders("UpdateHost");
|
|
87
87
|
let body;
|
|
88
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
89
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
90
|
};
|
|
91
91
|
exports.se_UpdateHostCommand = se_UpdateHostCommand;
|
|
@@ -95,12 +95,12 @@ const de_CreateConnectionCommand = async (output, context) => {
|
|
|
95
95
|
}
|
|
96
96
|
const data = await parseBody(output.body, context);
|
|
97
97
|
let contents = {};
|
|
98
|
-
contents =
|
|
98
|
+
contents = (0, smithy_client_1._json)(data);
|
|
99
99
|
const response = {
|
|
100
100
|
$metadata: deserializeMetadata(output),
|
|
101
101
|
...contents,
|
|
102
102
|
};
|
|
103
|
-
return
|
|
103
|
+
return response;
|
|
104
104
|
};
|
|
105
105
|
exports.de_CreateConnectionCommand = de_CreateConnectionCommand;
|
|
106
106
|
const de_CreateConnectionCommandError = async (output, context) => {
|
|
@@ -121,10 +121,9 @@ const de_CreateConnectionCommandError = async (output, context) => {
|
|
|
121
121
|
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
122
122
|
default:
|
|
123
123
|
const parsedBody = parsedOutput.body;
|
|
124
|
-
|
|
124
|
+
return throwDefaultError({
|
|
125
125
|
output,
|
|
126
126
|
parsedBody,
|
|
127
|
-
exceptionCtor: CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException,
|
|
128
127
|
errorCode,
|
|
129
128
|
});
|
|
130
129
|
}
|
|
@@ -135,12 +134,12 @@ const de_CreateHostCommand = async (output, context) => {
|
|
|
135
134
|
}
|
|
136
135
|
const data = await parseBody(output.body, context);
|
|
137
136
|
let contents = {};
|
|
138
|
-
contents =
|
|
137
|
+
contents = (0, smithy_client_1._json)(data);
|
|
139
138
|
const response = {
|
|
140
139
|
$metadata: deserializeMetadata(output),
|
|
141
140
|
...contents,
|
|
142
141
|
};
|
|
143
|
-
return
|
|
142
|
+
return response;
|
|
144
143
|
};
|
|
145
144
|
exports.de_CreateHostCommand = de_CreateHostCommand;
|
|
146
145
|
const de_CreateHostCommandError = async (output, context) => {
|
|
@@ -155,10 +154,9 @@ const de_CreateHostCommandError = async (output, context) => {
|
|
|
155
154
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
156
155
|
default:
|
|
157
156
|
const parsedBody = parsedOutput.body;
|
|
158
|
-
|
|
157
|
+
return throwDefaultError({
|
|
159
158
|
output,
|
|
160
159
|
parsedBody,
|
|
161
|
-
exceptionCtor: CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException,
|
|
162
160
|
errorCode,
|
|
163
161
|
});
|
|
164
162
|
}
|
|
@@ -169,12 +167,12 @@ const de_DeleteConnectionCommand = async (output, context) => {
|
|
|
169
167
|
}
|
|
170
168
|
const data = await parseBody(output.body, context);
|
|
171
169
|
let contents = {};
|
|
172
|
-
contents =
|
|
170
|
+
contents = (0, smithy_client_1._json)(data);
|
|
173
171
|
const response = {
|
|
174
172
|
$metadata: deserializeMetadata(output),
|
|
175
173
|
...contents,
|
|
176
174
|
};
|
|
177
|
-
return
|
|
175
|
+
return response;
|
|
178
176
|
};
|
|
179
177
|
exports.de_DeleteConnectionCommand = de_DeleteConnectionCommand;
|
|
180
178
|
const de_DeleteConnectionCommandError = async (output, context) => {
|
|
@@ -189,10 +187,9 @@ const de_DeleteConnectionCommandError = async (output, context) => {
|
|
|
189
187
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
190
188
|
default:
|
|
191
189
|
const parsedBody = parsedOutput.body;
|
|
192
|
-
|
|
190
|
+
return throwDefaultError({
|
|
193
191
|
output,
|
|
194
192
|
parsedBody,
|
|
195
|
-
exceptionCtor: CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException,
|
|
196
193
|
errorCode,
|
|
197
194
|
});
|
|
198
195
|
}
|
|
@@ -203,12 +200,12 @@ const de_DeleteHostCommand = async (output, context) => {
|
|
|
203
200
|
}
|
|
204
201
|
const data = await parseBody(output.body, context);
|
|
205
202
|
let contents = {};
|
|
206
|
-
contents =
|
|
203
|
+
contents = (0, smithy_client_1._json)(data);
|
|
207
204
|
const response = {
|
|
208
205
|
$metadata: deserializeMetadata(output),
|
|
209
206
|
...contents,
|
|
210
207
|
};
|
|
211
|
-
return
|
|
208
|
+
return response;
|
|
212
209
|
};
|
|
213
210
|
exports.de_DeleteHostCommand = de_DeleteHostCommand;
|
|
214
211
|
const de_DeleteHostCommandError = async (output, context) => {
|
|
@@ -226,10 +223,9 @@ const de_DeleteHostCommandError = async (output, context) => {
|
|
|
226
223
|
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
227
224
|
default:
|
|
228
225
|
const parsedBody = parsedOutput.body;
|
|
229
|
-
|
|
226
|
+
return throwDefaultError({
|
|
230
227
|
output,
|
|
231
228
|
parsedBody,
|
|
232
|
-
exceptionCtor: CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException,
|
|
233
229
|
errorCode,
|
|
234
230
|
});
|
|
235
231
|
}
|
|
@@ -240,12 +236,12 @@ const de_GetConnectionCommand = async (output, context) => {
|
|
|
240
236
|
}
|
|
241
237
|
const data = await parseBody(output.body, context);
|
|
242
238
|
let contents = {};
|
|
243
|
-
contents =
|
|
239
|
+
contents = (0, smithy_client_1._json)(data);
|
|
244
240
|
const response = {
|
|
245
241
|
$metadata: deserializeMetadata(output),
|
|
246
242
|
...contents,
|
|
247
243
|
};
|
|
248
|
-
return
|
|
244
|
+
return response;
|
|
249
245
|
};
|
|
250
246
|
exports.de_GetConnectionCommand = de_GetConnectionCommand;
|
|
251
247
|
const de_GetConnectionCommandError = async (output, context) => {
|
|
@@ -263,10 +259,9 @@ const de_GetConnectionCommandError = async (output, context) => {
|
|
|
263
259
|
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
264
260
|
default:
|
|
265
261
|
const parsedBody = parsedOutput.body;
|
|
266
|
-
|
|
262
|
+
return throwDefaultError({
|
|
267
263
|
output,
|
|
268
264
|
parsedBody,
|
|
269
|
-
exceptionCtor: CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException,
|
|
270
265
|
errorCode,
|
|
271
266
|
});
|
|
272
267
|
}
|
|
@@ -277,12 +272,12 @@ const de_GetHostCommand = async (output, context) => {
|
|
|
277
272
|
}
|
|
278
273
|
const data = await parseBody(output.body, context);
|
|
279
274
|
let contents = {};
|
|
280
|
-
contents =
|
|
275
|
+
contents = (0, smithy_client_1._json)(data);
|
|
281
276
|
const response = {
|
|
282
277
|
$metadata: deserializeMetadata(output),
|
|
283
278
|
...contents,
|
|
284
279
|
};
|
|
285
|
-
return
|
|
280
|
+
return response;
|
|
286
281
|
};
|
|
287
282
|
exports.de_GetHostCommand = de_GetHostCommand;
|
|
288
283
|
const de_GetHostCommandError = async (output, context) => {
|
|
@@ -300,10 +295,9 @@ const de_GetHostCommandError = async (output, context) => {
|
|
|
300
295
|
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
301
296
|
default:
|
|
302
297
|
const parsedBody = parsedOutput.body;
|
|
303
|
-
|
|
298
|
+
return throwDefaultError({
|
|
304
299
|
output,
|
|
305
300
|
parsedBody,
|
|
306
|
-
exceptionCtor: CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException,
|
|
307
301
|
errorCode,
|
|
308
302
|
});
|
|
309
303
|
}
|
|
@@ -314,12 +308,12 @@ const de_ListConnectionsCommand = async (output, context) => {
|
|
|
314
308
|
}
|
|
315
309
|
const data = await parseBody(output.body, context);
|
|
316
310
|
let contents = {};
|
|
317
|
-
contents =
|
|
311
|
+
contents = (0, smithy_client_1._json)(data);
|
|
318
312
|
const response = {
|
|
319
313
|
$metadata: deserializeMetadata(output),
|
|
320
314
|
...contents,
|
|
321
315
|
};
|
|
322
|
-
return
|
|
316
|
+
return response;
|
|
323
317
|
};
|
|
324
318
|
exports.de_ListConnectionsCommand = de_ListConnectionsCommand;
|
|
325
319
|
const de_ListConnectionsCommandError = async (output, context) => {
|
|
@@ -329,10 +323,9 @@ const de_ListConnectionsCommandError = async (output, context) => {
|
|
|
329
323
|
};
|
|
330
324
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
331
325
|
const parsedBody = parsedOutput.body;
|
|
332
|
-
|
|
326
|
+
return throwDefaultError({
|
|
333
327
|
output,
|
|
334
328
|
parsedBody,
|
|
335
|
-
exceptionCtor: CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException,
|
|
336
329
|
errorCode,
|
|
337
330
|
});
|
|
338
331
|
};
|
|
@@ -342,12 +335,12 @@ const de_ListHostsCommand = async (output, context) => {
|
|
|
342
335
|
}
|
|
343
336
|
const data = await parseBody(output.body, context);
|
|
344
337
|
let contents = {};
|
|
345
|
-
contents =
|
|
338
|
+
contents = (0, smithy_client_1._json)(data);
|
|
346
339
|
const response = {
|
|
347
340
|
$metadata: deserializeMetadata(output),
|
|
348
341
|
...contents,
|
|
349
342
|
};
|
|
350
|
-
return
|
|
343
|
+
return response;
|
|
351
344
|
};
|
|
352
345
|
exports.de_ListHostsCommand = de_ListHostsCommand;
|
|
353
346
|
const de_ListHostsCommandError = async (output, context) => {
|
|
@@ -357,10 +350,9 @@ const de_ListHostsCommandError = async (output, context) => {
|
|
|
357
350
|
};
|
|
358
351
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
352
|
const parsedBody = parsedOutput.body;
|
|
360
|
-
|
|
353
|
+
return throwDefaultError({
|
|
361
354
|
output,
|
|
362
355
|
parsedBody,
|
|
363
|
-
exceptionCtor: CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException,
|
|
364
356
|
errorCode,
|
|
365
357
|
});
|
|
366
358
|
};
|
|
@@ -370,12 +362,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
370
362
|
}
|
|
371
363
|
const data = await parseBody(output.body, context);
|
|
372
364
|
let contents = {};
|
|
373
|
-
contents =
|
|
365
|
+
contents = (0, smithy_client_1._json)(data);
|
|
374
366
|
const response = {
|
|
375
367
|
$metadata: deserializeMetadata(output),
|
|
376
368
|
...contents,
|
|
377
369
|
};
|
|
378
|
-
return
|
|
370
|
+
return response;
|
|
379
371
|
};
|
|
380
372
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
381
373
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -390,10 +382,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
390
382
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
391
383
|
default:
|
|
392
384
|
const parsedBody = parsedOutput.body;
|
|
393
|
-
|
|
385
|
+
return throwDefaultError({
|
|
394
386
|
output,
|
|
395
387
|
parsedBody,
|
|
396
|
-
exceptionCtor: CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException,
|
|
397
388
|
errorCode,
|
|
398
389
|
});
|
|
399
390
|
}
|
|
@@ -404,12 +395,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
404
395
|
}
|
|
405
396
|
const data = await parseBody(output.body, context);
|
|
406
397
|
let contents = {};
|
|
407
|
-
contents =
|
|
398
|
+
contents = (0, smithy_client_1._json)(data);
|
|
408
399
|
const response = {
|
|
409
400
|
$metadata: deserializeMetadata(output),
|
|
410
401
|
...contents,
|
|
411
402
|
};
|
|
412
|
-
return
|
|
403
|
+
return response;
|
|
413
404
|
};
|
|
414
405
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
415
406
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -427,10 +418,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
427
418
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
428
419
|
default:
|
|
429
420
|
const parsedBody = parsedOutput.body;
|
|
430
|
-
|
|
421
|
+
return throwDefaultError({
|
|
431
422
|
output,
|
|
432
423
|
parsedBody,
|
|
433
|
-
exceptionCtor: CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException,
|
|
434
424
|
errorCode,
|
|
435
425
|
});
|
|
436
426
|
}
|
|
@@ -441,12 +431,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
441
431
|
}
|
|
442
432
|
const data = await parseBody(output.body, context);
|
|
443
433
|
let contents = {};
|
|
444
|
-
contents =
|
|
434
|
+
contents = (0, smithy_client_1._json)(data);
|
|
445
435
|
const response = {
|
|
446
436
|
$metadata: deserializeMetadata(output),
|
|
447
437
|
...contents,
|
|
448
438
|
};
|
|
449
|
-
return
|
|
439
|
+
return response;
|
|
450
440
|
};
|
|
451
441
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
452
442
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -461,10 +451,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
461
451
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
462
452
|
default:
|
|
463
453
|
const parsedBody = parsedOutput.body;
|
|
464
|
-
|
|
454
|
+
return throwDefaultError({
|
|
465
455
|
output,
|
|
466
456
|
parsedBody,
|
|
467
|
-
exceptionCtor: CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException,
|
|
468
457
|
errorCode,
|
|
469
458
|
});
|
|
470
459
|
}
|
|
@@ -475,12 +464,12 @@ const de_UpdateHostCommand = async (output, context) => {
|
|
|
475
464
|
}
|
|
476
465
|
const data = await parseBody(output.body, context);
|
|
477
466
|
let contents = {};
|
|
478
|
-
contents =
|
|
467
|
+
contents = (0, smithy_client_1._json)(data);
|
|
479
468
|
const response = {
|
|
480
469
|
$metadata: deserializeMetadata(output),
|
|
481
470
|
...contents,
|
|
482
471
|
};
|
|
483
|
-
return
|
|
472
|
+
return response;
|
|
484
473
|
};
|
|
485
474
|
exports.de_UpdateHostCommand = de_UpdateHostCommand;
|
|
486
475
|
const de_UpdateHostCommandError = async (output, context) => {
|
|
@@ -504,17 +493,16 @@ const de_UpdateHostCommandError = async (output, context) => {
|
|
|
504
493
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
505
494
|
default:
|
|
506
495
|
const parsedBody = parsedOutput.body;
|
|
507
|
-
|
|
496
|
+
return throwDefaultError({
|
|
508
497
|
output,
|
|
509
498
|
parsedBody,
|
|
510
|
-
exceptionCtor: CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException,
|
|
511
499
|
errorCode,
|
|
512
500
|
});
|
|
513
501
|
}
|
|
514
502
|
};
|
|
515
503
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
516
504
|
const body = parsedOutput.body;
|
|
517
|
-
const deserialized =
|
|
505
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
518
506
|
const exception = new models_0_1.ConflictException({
|
|
519
507
|
$metadata: deserializeMetadata(parsedOutput),
|
|
520
508
|
...deserialized,
|
|
@@ -523,7 +511,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
523
511
|
};
|
|
524
512
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
525
513
|
const body = parsedOutput.body;
|
|
526
|
-
const deserialized =
|
|
514
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
527
515
|
const exception = new models_0_1.LimitExceededException({
|
|
528
516
|
$metadata: deserializeMetadata(parsedOutput),
|
|
529
517
|
...deserialized,
|
|
@@ -532,7 +520,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
532
520
|
};
|
|
533
521
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
534
522
|
const body = parsedOutput.body;
|
|
535
|
-
const deserialized =
|
|
523
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
536
524
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
537
525
|
$metadata: deserializeMetadata(parsedOutput),
|
|
538
526
|
...deserialized,
|
|
@@ -541,7 +529,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
541
529
|
};
|
|
542
530
|
const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
543
531
|
const body = parsedOutput.body;
|
|
544
|
-
const deserialized =
|
|
532
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
545
533
|
const exception = new models_0_1.ResourceUnavailableException({
|
|
546
534
|
$metadata: deserializeMetadata(parsedOutput),
|
|
547
535
|
...deserialized,
|
|
@@ -550,303 +538,13 @@ const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
550
538
|
};
|
|
551
539
|
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
552
540
|
const body = parsedOutput.body;
|
|
553
|
-
const deserialized =
|
|
541
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
554
542
|
const exception = new models_0_1.UnsupportedOperationException({
|
|
555
543
|
$metadata: deserializeMetadata(parsedOutput),
|
|
556
544
|
...deserialized,
|
|
557
545
|
});
|
|
558
546
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
559
547
|
};
|
|
560
|
-
const se_CreateConnectionInput = (input, context) => {
|
|
561
|
-
return {
|
|
562
|
-
...(input.ConnectionName != null && { ConnectionName: input.ConnectionName }),
|
|
563
|
-
...(input.HostArn != null && { HostArn: input.HostArn }),
|
|
564
|
-
...(input.ProviderType != null && { ProviderType: input.ProviderType }),
|
|
565
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
const se_CreateHostInput = (input, context) => {
|
|
569
|
-
return {
|
|
570
|
-
...(input.Name != null && { Name: input.Name }),
|
|
571
|
-
...(input.ProviderEndpoint != null && { ProviderEndpoint: input.ProviderEndpoint }),
|
|
572
|
-
...(input.ProviderType != null && { ProviderType: input.ProviderType }),
|
|
573
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
574
|
-
...(input.VpcConfiguration != null && { VpcConfiguration: se_VpcConfiguration(input.VpcConfiguration, context) }),
|
|
575
|
-
};
|
|
576
|
-
};
|
|
577
|
-
const se_DeleteConnectionInput = (input, context) => {
|
|
578
|
-
return {
|
|
579
|
-
...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
|
|
580
|
-
};
|
|
581
|
-
};
|
|
582
|
-
const se_DeleteHostInput = (input, context) => {
|
|
583
|
-
return {
|
|
584
|
-
...(input.HostArn != null && { HostArn: input.HostArn }),
|
|
585
|
-
};
|
|
586
|
-
};
|
|
587
|
-
const se_GetConnectionInput = (input, context) => {
|
|
588
|
-
return {
|
|
589
|
-
...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
|
|
590
|
-
};
|
|
591
|
-
};
|
|
592
|
-
const se_GetHostInput = (input, context) => {
|
|
593
|
-
return {
|
|
594
|
-
...(input.HostArn != null && { HostArn: input.HostArn }),
|
|
595
|
-
};
|
|
596
|
-
};
|
|
597
|
-
const se_ListConnectionsInput = (input, context) => {
|
|
598
|
-
return {
|
|
599
|
-
...(input.HostArnFilter != null && { HostArnFilter: input.HostArnFilter }),
|
|
600
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
601
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
602
|
-
...(input.ProviderTypeFilter != null && { ProviderTypeFilter: input.ProviderTypeFilter }),
|
|
603
|
-
};
|
|
604
|
-
};
|
|
605
|
-
const se_ListHostsInput = (input, context) => {
|
|
606
|
-
return {
|
|
607
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
608
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
609
|
-
};
|
|
610
|
-
};
|
|
611
|
-
const se_ListTagsForResourceInput = (input, context) => {
|
|
612
|
-
return {
|
|
613
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
614
|
-
};
|
|
615
|
-
};
|
|
616
|
-
const se_SecurityGroupIds = (input, context) => {
|
|
617
|
-
return input
|
|
618
|
-
.filter((e) => e != null)
|
|
619
|
-
.map((entry) => {
|
|
620
|
-
return entry;
|
|
621
|
-
});
|
|
622
|
-
};
|
|
623
|
-
const se_SubnetIds = (input, context) => {
|
|
624
|
-
return input
|
|
625
|
-
.filter((e) => e != null)
|
|
626
|
-
.map((entry) => {
|
|
627
|
-
return entry;
|
|
628
|
-
});
|
|
629
|
-
};
|
|
630
|
-
const se_Tag = (input, context) => {
|
|
631
|
-
return {
|
|
632
|
-
...(input.Key != null && { Key: input.Key }),
|
|
633
|
-
...(input.Value != null && { Value: input.Value }),
|
|
634
|
-
};
|
|
635
|
-
};
|
|
636
|
-
const se_TagKeyList = (input, context) => {
|
|
637
|
-
return input
|
|
638
|
-
.filter((e) => e != null)
|
|
639
|
-
.map((entry) => {
|
|
640
|
-
return entry;
|
|
641
|
-
});
|
|
642
|
-
};
|
|
643
|
-
const se_TagList = (input, context) => {
|
|
644
|
-
return input
|
|
645
|
-
.filter((e) => e != null)
|
|
646
|
-
.map((entry) => {
|
|
647
|
-
return se_Tag(entry, context);
|
|
648
|
-
});
|
|
649
|
-
};
|
|
650
|
-
const se_TagResourceInput = (input, context) => {
|
|
651
|
-
return {
|
|
652
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
653
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
654
|
-
};
|
|
655
|
-
};
|
|
656
|
-
const se_UntagResourceInput = (input, context) => {
|
|
657
|
-
return {
|
|
658
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
659
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
660
|
-
};
|
|
661
|
-
};
|
|
662
|
-
const se_UpdateHostInput = (input, context) => {
|
|
663
|
-
return {
|
|
664
|
-
...(input.HostArn != null && { HostArn: input.HostArn }),
|
|
665
|
-
...(input.ProviderEndpoint != null && { ProviderEndpoint: input.ProviderEndpoint }),
|
|
666
|
-
...(input.VpcConfiguration != null && { VpcConfiguration: se_VpcConfiguration(input.VpcConfiguration, context) }),
|
|
667
|
-
};
|
|
668
|
-
};
|
|
669
|
-
const se_VpcConfiguration = (input, context) => {
|
|
670
|
-
return {
|
|
671
|
-
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupIds(input.SecurityGroupIds, context) }),
|
|
672
|
-
...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
|
|
673
|
-
...(input.TlsCertificate != null && { TlsCertificate: input.TlsCertificate }),
|
|
674
|
-
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
675
|
-
};
|
|
676
|
-
};
|
|
677
|
-
const de_ConflictException = (output, context) => {
|
|
678
|
-
return {
|
|
679
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
680
|
-
};
|
|
681
|
-
};
|
|
682
|
-
const de_Connection = (output, context) => {
|
|
683
|
-
return {
|
|
684
|
-
ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
|
|
685
|
-
ConnectionName: (0, smithy_client_1.expectString)(output.ConnectionName),
|
|
686
|
-
ConnectionStatus: (0, smithy_client_1.expectString)(output.ConnectionStatus),
|
|
687
|
-
HostArn: (0, smithy_client_1.expectString)(output.HostArn),
|
|
688
|
-
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
689
|
-
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
690
|
-
};
|
|
691
|
-
};
|
|
692
|
-
const de_ConnectionList = (output, context) => {
|
|
693
|
-
const retVal = (output || [])
|
|
694
|
-
.filter((e) => e != null)
|
|
695
|
-
.map((entry) => {
|
|
696
|
-
if (entry === null) {
|
|
697
|
-
return null;
|
|
698
|
-
}
|
|
699
|
-
return de_Connection(entry, context);
|
|
700
|
-
});
|
|
701
|
-
return retVal;
|
|
702
|
-
};
|
|
703
|
-
const de_CreateConnectionOutput = (output, context) => {
|
|
704
|
-
return {
|
|
705
|
-
ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
|
|
706
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
707
|
-
};
|
|
708
|
-
};
|
|
709
|
-
const de_CreateHostOutput = (output, context) => {
|
|
710
|
-
return {
|
|
711
|
-
HostArn: (0, smithy_client_1.expectString)(output.HostArn),
|
|
712
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
713
|
-
};
|
|
714
|
-
};
|
|
715
|
-
const de_DeleteConnectionOutput = (output, context) => {
|
|
716
|
-
return {};
|
|
717
|
-
};
|
|
718
|
-
const de_DeleteHostOutput = (output, context) => {
|
|
719
|
-
return {};
|
|
720
|
-
};
|
|
721
|
-
const de_GetConnectionOutput = (output, context) => {
|
|
722
|
-
return {
|
|
723
|
-
Connection: output.Connection != null ? de_Connection(output.Connection, context) : undefined,
|
|
724
|
-
};
|
|
725
|
-
};
|
|
726
|
-
const de_GetHostOutput = (output, context) => {
|
|
727
|
-
return {
|
|
728
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
729
|
-
ProviderEndpoint: (0, smithy_client_1.expectString)(output.ProviderEndpoint),
|
|
730
|
-
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
731
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
732
|
-
VpcConfiguration: output.VpcConfiguration != null ? de_VpcConfiguration(output.VpcConfiguration, context) : undefined,
|
|
733
|
-
};
|
|
734
|
-
};
|
|
735
|
-
const de_Host = (output, context) => {
|
|
736
|
-
return {
|
|
737
|
-
HostArn: (0, smithy_client_1.expectString)(output.HostArn),
|
|
738
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
739
|
-
ProviderEndpoint: (0, smithy_client_1.expectString)(output.ProviderEndpoint),
|
|
740
|
-
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
741
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
742
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
743
|
-
VpcConfiguration: output.VpcConfiguration != null ? de_VpcConfiguration(output.VpcConfiguration, context) : undefined,
|
|
744
|
-
};
|
|
745
|
-
};
|
|
746
|
-
const de_HostList = (output, context) => {
|
|
747
|
-
const retVal = (output || [])
|
|
748
|
-
.filter((e) => e != null)
|
|
749
|
-
.map((entry) => {
|
|
750
|
-
if (entry === null) {
|
|
751
|
-
return null;
|
|
752
|
-
}
|
|
753
|
-
return de_Host(entry, context);
|
|
754
|
-
});
|
|
755
|
-
return retVal;
|
|
756
|
-
};
|
|
757
|
-
const de_LimitExceededException = (output, context) => {
|
|
758
|
-
return {
|
|
759
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
760
|
-
};
|
|
761
|
-
};
|
|
762
|
-
const de_ListConnectionsOutput = (output, context) => {
|
|
763
|
-
return {
|
|
764
|
-
Connections: output.Connections != null ? de_ConnectionList(output.Connections, context) : undefined,
|
|
765
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
766
|
-
};
|
|
767
|
-
};
|
|
768
|
-
const de_ListHostsOutput = (output, context) => {
|
|
769
|
-
return {
|
|
770
|
-
Hosts: output.Hosts != null ? de_HostList(output.Hosts, context) : undefined,
|
|
771
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
772
|
-
};
|
|
773
|
-
};
|
|
774
|
-
const de_ListTagsForResourceOutput = (output, context) => {
|
|
775
|
-
return {
|
|
776
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
777
|
-
};
|
|
778
|
-
};
|
|
779
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
780
|
-
return {
|
|
781
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
782
|
-
};
|
|
783
|
-
};
|
|
784
|
-
const de_ResourceUnavailableException = (output, context) => {
|
|
785
|
-
return {
|
|
786
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
787
|
-
};
|
|
788
|
-
};
|
|
789
|
-
const de_SecurityGroupIds = (output, context) => {
|
|
790
|
-
const retVal = (output || [])
|
|
791
|
-
.filter((e) => e != null)
|
|
792
|
-
.map((entry) => {
|
|
793
|
-
if (entry === null) {
|
|
794
|
-
return null;
|
|
795
|
-
}
|
|
796
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
797
|
-
});
|
|
798
|
-
return retVal;
|
|
799
|
-
};
|
|
800
|
-
const de_SubnetIds = (output, context) => {
|
|
801
|
-
const retVal = (output || [])
|
|
802
|
-
.filter((e) => e != null)
|
|
803
|
-
.map((entry) => {
|
|
804
|
-
if (entry === null) {
|
|
805
|
-
return null;
|
|
806
|
-
}
|
|
807
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
808
|
-
});
|
|
809
|
-
return retVal;
|
|
810
|
-
};
|
|
811
|
-
const de_Tag = (output, context) => {
|
|
812
|
-
return {
|
|
813
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
814
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
815
|
-
};
|
|
816
|
-
};
|
|
817
|
-
const de_TagList = (output, context) => {
|
|
818
|
-
const retVal = (output || [])
|
|
819
|
-
.filter((e) => e != null)
|
|
820
|
-
.map((entry) => {
|
|
821
|
-
if (entry === null) {
|
|
822
|
-
return null;
|
|
823
|
-
}
|
|
824
|
-
return de_Tag(entry, context);
|
|
825
|
-
});
|
|
826
|
-
return retVal;
|
|
827
|
-
};
|
|
828
|
-
const de_TagResourceOutput = (output, context) => {
|
|
829
|
-
return {};
|
|
830
|
-
};
|
|
831
|
-
const de_UnsupportedOperationException = (output, context) => {
|
|
832
|
-
return {
|
|
833
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
834
|
-
};
|
|
835
|
-
};
|
|
836
|
-
const de_UntagResourceOutput = (output, context) => {
|
|
837
|
-
return {};
|
|
838
|
-
};
|
|
839
|
-
const de_UpdateHostOutput = (output, context) => {
|
|
840
|
-
return {};
|
|
841
|
-
};
|
|
842
|
-
const de_VpcConfiguration = (output, context) => {
|
|
843
|
-
return {
|
|
844
|
-
SecurityGroupIds: output.SecurityGroupIds != null ? de_SecurityGroupIds(output.SecurityGroupIds, context) : undefined,
|
|
845
|
-
SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
|
|
846
|
-
TlsCertificate: (0, smithy_client_1.expectString)(output.TlsCertificate),
|
|
847
|
-
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
848
|
-
};
|
|
849
|
-
};
|
|
850
548
|
const deserializeMetadata = (output) => ({
|
|
851
549
|
httpStatusCode: output.statusCode,
|
|
852
550
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -860,6 +558,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
860
558
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
861
559
|
};
|
|
862
560
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
561
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException);
|
|
863
562
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
864
563
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
865
564
|
const contents = {
|