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