@aws-sdk/client-codestar-connections 3.303.0 → 3.309.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/commands/CreateConnectionCommand.js +2 -2
- package/dist-cjs/commands/CreateHostCommand.js +2 -2
- package/dist-cjs/commands/DeleteConnectionCommand.js +2 -2
- package/dist-cjs/commands/DeleteHostCommand.js +2 -2
- package/dist-cjs/commands/GetConnectionCommand.js +2 -2
- package/dist-cjs/commands/GetHostCommand.js +2 -2
- package/dist-cjs/commands/ListConnectionsCommand.js +2 -2
- package/dist-cjs/commands/ListHostsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateHostCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_0.js +192 -204
- package/dist-es/commands/CreateConnectionCommand.js +3 -3
- package/dist-es/commands/CreateHostCommand.js +3 -3
- package/dist-es/commands/DeleteConnectionCommand.js +3 -3
- package/dist-es/commands/DeleteHostCommand.js +3 -3
- package/dist-es/commands/GetConnectionCommand.js +3 -3
- package/dist-es/commands/GetHostCommand.js +3 -3
- package/dist-es/commands/ListConnectionsCommand.js +3 -3
- package/dist-es/commands/ListHostsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateHostCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_0.js +167 -179
- package/dist-types/protocols/Aws_json1_0.d.ts +96 -24
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -24
- package/package.json +29 -29
|
@@ -2,128 +2,128 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectString as __expectString, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { CodeStarConnectionsServiceException as __BaseException } from "../models/CodeStarConnectionsServiceException";
|
|
4
4
|
import { ConflictException, LimitExceededException, ResourceNotFoundException, ResourceUnavailableException, UnsupportedOperationException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateConnectionCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.0",
|
|
8
8
|
"x-amz-target": "CodeStar_connections_20191201.CreateConnection",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_CreateConnectionInput(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_CreateHostCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.0",
|
|
17
17
|
"x-amz-target": "CodeStar_connections_20191201.CreateHost",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_CreateHostInput(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_DeleteConnectionCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.0",
|
|
26
26
|
"x-amz-target": "CodeStar_connections_20191201.DeleteConnection",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_DeleteConnectionInput(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_DeleteHostCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.0",
|
|
35
35
|
"x-amz-target": "CodeStar_connections_20191201.DeleteHost",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_DeleteHostInput(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_GetConnectionCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.0",
|
|
44
44
|
"x-amz-target": "CodeStar_connections_20191201.GetConnection",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_GetConnectionInput(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_GetHostCommand = async (input, context) => {
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/x-amz-json-1.0",
|
|
53
53
|
"x-amz-target": "CodeStar_connections_20191201.GetHost",
|
|
54
54
|
};
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(se_GetHostInput(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const se_ListConnectionsCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.0",
|
|
62
62
|
"x-amz-target": "CodeStar_connections_20191201.ListConnections",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_ListConnectionsInput(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_ListHostsCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.0",
|
|
71
71
|
"x-amz-target": "CodeStar_connections_20191201.ListHosts",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_ListHostsInput(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
export const
|
|
77
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/x-amz-json-1.0",
|
|
80
80
|
"x-amz-target": "CodeStar_connections_20191201.ListTagsForResource",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify(se_ListTagsForResourceInput(input, context));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
87
87
|
const headers = {
|
|
88
88
|
"content-type": "application/x-amz-json-1.0",
|
|
89
89
|
"x-amz-target": "CodeStar_connections_20191201.TagResource",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(se_TagResourceInput(input, context));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
|
-
export const
|
|
95
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
96
96
|
const headers = {
|
|
97
97
|
"content-type": "application/x-amz-json-1.0",
|
|
98
98
|
"x-amz-target": "CodeStar_connections_20191201.UntagResource",
|
|
99
99
|
};
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
101
|
+
body = JSON.stringify(se_UntagResourceInput(input, context));
|
|
102
102
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
103
|
};
|
|
104
|
-
export const
|
|
104
|
+
export const se_UpdateHostCommand = async (input, context) => {
|
|
105
105
|
const headers = {
|
|
106
106
|
"content-type": "application/x-amz-json-1.0",
|
|
107
107
|
"x-amz-target": "CodeStar_connections_20191201.UpdateHost",
|
|
108
108
|
};
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(se_UpdateHostInput(input, context));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
|
-
export const
|
|
113
|
+
export const de_CreateConnectionCommand = async (output, context) => {
|
|
114
114
|
if (output.statusCode >= 300) {
|
|
115
|
-
return
|
|
115
|
+
return de_CreateConnectionCommandError(output, context);
|
|
116
116
|
}
|
|
117
117
|
const data = await parseBody(output.body, context);
|
|
118
118
|
let contents = {};
|
|
119
|
-
contents =
|
|
119
|
+
contents = de_CreateConnectionOutput(data, context);
|
|
120
120
|
const response = {
|
|
121
121
|
$metadata: deserializeMetadata(output),
|
|
122
122
|
...contents,
|
|
123
123
|
};
|
|
124
124
|
return Promise.resolve(response);
|
|
125
125
|
};
|
|
126
|
-
const
|
|
126
|
+
const de_CreateConnectionCommandError = async (output, context) => {
|
|
127
127
|
const parsedOutput = {
|
|
128
128
|
...output,
|
|
129
129
|
body: await parseErrorBody(output.body, context),
|
|
@@ -132,13 +132,13 @@ const deserializeAws_json1_0CreateConnectionCommandError = async (output, contex
|
|
|
132
132
|
switch (errorCode) {
|
|
133
133
|
case "LimitExceededException":
|
|
134
134
|
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
135
|
-
throw await
|
|
135
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
136
136
|
case "ResourceNotFoundException":
|
|
137
137
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
138
|
-
throw await
|
|
138
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
139
139
|
case "ResourceUnavailableException":
|
|
140
140
|
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
141
|
-
throw await
|
|
141
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
142
142
|
default:
|
|
143
143
|
const parsedBody = parsedOutput.body;
|
|
144
144
|
throwDefaultError({
|
|
@@ -149,20 +149,20 @@ const deserializeAws_json1_0CreateConnectionCommandError = async (output, contex
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
|
-
export const
|
|
152
|
+
export const de_CreateHostCommand = async (output, context) => {
|
|
153
153
|
if (output.statusCode >= 300) {
|
|
154
|
-
return
|
|
154
|
+
return de_CreateHostCommandError(output, context);
|
|
155
155
|
}
|
|
156
156
|
const data = await parseBody(output.body, context);
|
|
157
157
|
let contents = {};
|
|
158
|
-
contents =
|
|
158
|
+
contents = de_CreateHostOutput(data, context);
|
|
159
159
|
const response = {
|
|
160
160
|
$metadata: deserializeMetadata(output),
|
|
161
161
|
...contents,
|
|
162
162
|
};
|
|
163
163
|
return Promise.resolve(response);
|
|
164
164
|
};
|
|
165
|
-
const
|
|
165
|
+
const de_CreateHostCommandError = async (output, context) => {
|
|
166
166
|
const parsedOutput = {
|
|
167
167
|
...output,
|
|
168
168
|
body: await parseErrorBody(output.body, context),
|
|
@@ -171,7 +171,7 @@ const deserializeAws_json1_0CreateHostCommandError = async (output, context) =>
|
|
|
171
171
|
switch (errorCode) {
|
|
172
172
|
case "LimitExceededException":
|
|
173
173
|
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
174
|
-
throw await
|
|
174
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
175
175
|
default:
|
|
176
176
|
const parsedBody = parsedOutput.body;
|
|
177
177
|
throwDefaultError({
|
|
@@ -182,20 +182,20 @@ const deserializeAws_json1_0CreateHostCommandError = async (output, context) =>
|
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
-
export const
|
|
185
|
+
export const de_DeleteConnectionCommand = async (output, context) => {
|
|
186
186
|
if (output.statusCode >= 300) {
|
|
187
|
-
return
|
|
187
|
+
return de_DeleteConnectionCommandError(output, context);
|
|
188
188
|
}
|
|
189
189
|
const data = await parseBody(output.body, context);
|
|
190
190
|
let contents = {};
|
|
191
|
-
contents =
|
|
191
|
+
contents = de_DeleteConnectionOutput(data, context);
|
|
192
192
|
const response = {
|
|
193
193
|
$metadata: deserializeMetadata(output),
|
|
194
194
|
...contents,
|
|
195
195
|
};
|
|
196
196
|
return Promise.resolve(response);
|
|
197
197
|
};
|
|
198
|
-
const
|
|
198
|
+
const de_DeleteConnectionCommandError = async (output, context) => {
|
|
199
199
|
const parsedOutput = {
|
|
200
200
|
...output,
|
|
201
201
|
body: await parseErrorBody(output.body, context),
|
|
@@ -204,7 +204,7 @@ const deserializeAws_json1_0DeleteConnectionCommandError = async (output, contex
|
|
|
204
204
|
switch (errorCode) {
|
|
205
205
|
case "ResourceNotFoundException":
|
|
206
206
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
207
|
-
throw await
|
|
207
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
208
208
|
default:
|
|
209
209
|
const parsedBody = parsedOutput.body;
|
|
210
210
|
throwDefaultError({
|
|
@@ -215,20 +215,20 @@ const deserializeAws_json1_0DeleteConnectionCommandError = async (output, contex
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
|
-
export const
|
|
218
|
+
export const de_DeleteHostCommand = async (output, context) => {
|
|
219
219
|
if (output.statusCode >= 300) {
|
|
220
|
-
return
|
|
220
|
+
return de_DeleteHostCommandError(output, context);
|
|
221
221
|
}
|
|
222
222
|
const data = await parseBody(output.body, context);
|
|
223
223
|
let contents = {};
|
|
224
|
-
contents =
|
|
224
|
+
contents = de_DeleteHostOutput(data, context);
|
|
225
225
|
const response = {
|
|
226
226
|
$metadata: deserializeMetadata(output),
|
|
227
227
|
...contents,
|
|
228
228
|
};
|
|
229
229
|
return Promise.resolve(response);
|
|
230
230
|
};
|
|
231
|
-
const
|
|
231
|
+
const de_DeleteHostCommandError = async (output, context) => {
|
|
232
232
|
const parsedOutput = {
|
|
233
233
|
...output,
|
|
234
234
|
body: await parseErrorBody(output.body, context),
|
|
@@ -237,10 +237,10 @@ const deserializeAws_json1_0DeleteHostCommandError = async (output, context) =>
|
|
|
237
237
|
switch (errorCode) {
|
|
238
238
|
case "ResourceNotFoundException":
|
|
239
239
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
240
|
-
throw await
|
|
240
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
241
241
|
case "ResourceUnavailableException":
|
|
242
242
|
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
243
|
-
throw await
|
|
243
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
244
244
|
default:
|
|
245
245
|
const parsedBody = parsedOutput.body;
|
|
246
246
|
throwDefaultError({
|
|
@@ -251,20 +251,20 @@ const deserializeAws_json1_0DeleteHostCommandError = async (output, context) =>
|
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
|
-
export const
|
|
254
|
+
export const de_GetConnectionCommand = async (output, context) => {
|
|
255
255
|
if (output.statusCode >= 300) {
|
|
256
|
-
return
|
|
256
|
+
return de_GetConnectionCommandError(output, context);
|
|
257
257
|
}
|
|
258
258
|
const data = await parseBody(output.body, context);
|
|
259
259
|
let contents = {};
|
|
260
|
-
contents =
|
|
260
|
+
contents = de_GetConnectionOutput(data, context);
|
|
261
261
|
const response = {
|
|
262
262
|
$metadata: deserializeMetadata(output),
|
|
263
263
|
...contents,
|
|
264
264
|
};
|
|
265
265
|
return Promise.resolve(response);
|
|
266
266
|
};
|
|
267
|
-
const
|
|
267
|
+
const de_GetConnectionCommandError = async (output, context) => {
|
|
268
268
|
const parsedOutput = {
|
|
269
269
|
...output,
|
|
270
270
|
body: await parseErrorBody(output.body, context),
|
|
@@ -273,10 +273,10 @@ const deserializeAws_json1_0GetConnectionCommandError = async (output, context)
|
|
|
273
273
|
switch (errorCode) {
|
|
274
274
|
case "ResourceNotFoundException":
|
|
275
275
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
276
|
-
throw await
|
|
276
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
277
277
|
case "ResourceUnavailableException":
|
|
278
278
|
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
279
|
-
throw await
|
|
279
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
280
280
|
default:
|
|
281
281
|
const parsedBody = parsedOutput.body;
|
|
282
282
|
throwDefaultError({
|
|
@@ -287,20 +287,20 @@ const deserializeAws_json1_0GetConnectionCommandError = async (output, context)
|
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
289
|
};
|
|
290
|
-
export const
|
|
290
|
+
export const de_GetHostCommand = async (output, context) => {
|
|
291
291
|
if (output.statusCode >= 300) {
|
|
292
|
-
return
|
|
292
|
+
return de_GetHostCommandError(output, context);
|
|
293
293
|
}
|
|
294
294
|
const data = await parseBody(output.body, context);
|
|
295
295
|
let contents = {};
|
|
296
|
-
contents =
|
|
296
|
+
contents = de_GetHostOutput(data, context);
|
|
297
297
|
const response = {
|
|
298
298
|
$metadata: deserializeMetadata(output),
|
|
299
299
|
...contents,
|
|
300
300
|
};
|
|
301
301
|
return Promise.resolve(response);
|
|
302
302
|
};
|
|
303
|
-
const
|
|
303
|
+
const de_GetHostCommandError = async (output, context) => {
|
|
304
304
|
const parsedOutput = {
|
|
305
305
|
...output,
|
|
306
306
|
body: await parseErrorBody(output.body, context),
|
|
@@ -309,10 +309,10 @@ const deserializeAws_json1_0GetHostCommandError = async (output, context) => {
|
|
|
309
309
|
switch (errorCode) {
|
|
310
310
|
case "ResourceNotFoundException":
|
|
311
311
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
312
|
-
throw await
|
|
312
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
313
313
|
case "ResourceUnavailableException":
|
|
314
314
|
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
315
|
-
throw await
|
|
315
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
316
316
|
default:
|
|
317
317
|
const parsedBody = parsedOutput.body;
|
|
318
318
|
throwDefaultError({
|
|
@@ -323,20 +323,20 @@ const deserializeAws_json1_0GetHostCommandError = async (output, context) => {
|
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
|
-
export const
|
|
326
|
+
export const de_ListConnectionsCommand = async (output, context) => {
|
|
327
327
|
if (output.statusCode >= 300) {
|
|
328
|
-
return
|
|
328
|
+
return de_ListConnectionsCommandError(output, context);
|
|
329
329
|
}
|
|
330
330
|
const data = await parseBody(output.body, context);
|
|
331
331
|
let contents = {};
|
|
332
|
-
contents =
|
|
332
|
+
contents = de_ListConnectionsOutput(data, context);
|
|
333
333
|
const response = {
|
|
334
334
|
$metadata: deserializeMetadata(output),
|
|
335
335
|
...contents,
|
|
336
336
|
};
|
|
337
337
|
return Promise.resolve(response);
|
|
338
338
|
};
|
|
339
|
-
const
|
|
339
|
+
const de_ListConnectionsCommandError = async (output, context) => {
|
|
340
340
|
const parsedOutput = {
|
|
341
341
|
...output,
|
|
342
342
|
body: await parseErrorBody(output.body, context),
|
|
@@ -350,20 +350,20 @@ const deserializeAws_json1_0ListConnectionsCommandError = async (output, context
|
|
|
350
350
|
errorCode,
|
|
351
351
|
});
|
|
352
352
|
};
|
|
353
|
-
export const
|
|
353
|
+
export const de_ListHostsCommand = async (output, context) => {
|
|
354
354
|
if (output.statusCode >= 300) {
|
|
355
|
-
return
|
|
355
|
+
return de_ListHostsCommandError(output, context);
|
|
356
356
|
}
|
|
357
357
|
const data = await parseBody(output.body, context);
|
|
358
358
|
let contents = {};
|
|
359
|
-
contents =
|
|
359
|
+
contents = de_ListHostsOutput(data, context);
|
|
360
360
|
const response = {
|
|
361
361
|
$metadata: deserializeMetadata(output),
|
|
362
362
|
...contents,
|
|
363
363
|
};
|
|
364
364
|
return Promise.resolve(response);
|
|
365
365
|
};
|
|
366
|
-
const
|
|
366
|
+
const de_ListHostsCommandError = async (output, context) => {
|
|
367
367
|
const parsedOutput = {
|
|
368
368
|
...output,
|
|
369
369
|
body: await parseErrorBody(output.body, context),
|
|
@@ -377,20 +377,20 @@ const deserializeAws_json1_0ListHostsCommandError = async (output, context) => {
|
|
|
377
377
|
errorCode,
|
|
378
378
|
});
|
|
379
379
|
};
|
|
380
|
-
export const
|
|
380
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
381
381
|
if (output.statusCode >= 300) {
|
|
382
|
-
return
|
|
382
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
383
383
|
}
|
|
384
384
|
const data = await parseBody(output.body, context);
|
|
385
385
|
let contents = {};
|
|
386
|
-
contents =
|
|
386
|
+
contents = de_ListTagsForResourceOutput(data, context);
|
|
387
387
|
const response = {
|
|
388
388
|
$metadata: deserializeMetadata(output),
|
|
389
389
|
...contents,
|
|
390
390
|
};
|
|
391
391
|
return Promise.resolve(response);
|
|
392
392
|
};
|
|
393
|
-
const
|
|
393
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
394
394
|
const parsedOutput = {
|
|
395
395
|
...output,
|
|
396
396
|
body: await parseErrorBody(output.body, context),
|
|
@@ -399,7 +399,7 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
399
399
|
switch (errorCode) {
|
|
400
400
|
case "ResourceNotFoundException":
|
|
401
401
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
402
|
-
throw await
|
|
402
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
403
403
|
default:
|
|
404
404
|
const parsedBody = parsedOutput.body;
|
|
405
405
|
throwDefaultError({
|
|
@@ -410,20 +410,20 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
|
-
export const
|
|
413
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
414
414
|
if (output.statusCode >= 300) {
|
|
415
|
-
return
|
|
415
|
+
return de_TagResourceCommandError(output, context);
|
|
416
416
|
}
|
|
417
417
|
const data = await parseBody(output.body, context);
|
|
418
418
|
let contents = {};
|
|
419
|
-
contents =
|
|
419
|
+
contents = de_TagResourceOutput(data, context);
|
|
420
420
|
const response = {
|
|
421
421
|
$metadata: deserializeMetadata(output),
|
|
422
422
|
...contents,
|
|
423
423
|
};
|
|
424
424
|
return Promise.resolve(response);
|
|
425
425
|
};
|
|
426
|
-
const
|
|
426
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
427
427
|
const parsedOutput = {
|
|
428
428
|
...output,
|
|
429
429
|
body: await parseErrorBody(output.body, context),
|
|
@@ -432,10 +432,10 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
432
432
|
switch (errorCode) {
|
|
433
433
|
case "LimitExceededException":
|
|
434
434
|
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
435
|
-
throw await
|
|
435
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
436
436
|
case "ResourceNotFoundException":
|
|
437
437
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
438
|
-
throw await
|
|
438
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
439
439
|
default:
|
|
440
440
|
const parsedBody = parsedOutput.body;
|
|
441
441
|
throwDefaultError({
|
|
@@ -446,20 +446,20 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
448
|
};
|
|
449
|
-
export const
|
|
449
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
450
450
|
if (output.statusCode >= 300) {
|
|
451
|
-
return
|
|
451
|
+
return de_UntagResourceCommandError(output, context);
|
|
452
452
|
}
|
|
453
453
|
const data = await parseBody(output.body, context);
|
|
454
454
|
let contents = {};
|
|
455
|
-
contents =
|
|
455
|
+
contents = de_UntagResourceOutput(data, context);
|
|
456
456
|
const response = {
|
|
457
457
|
$metadata: deserializeMetadata(output),
|
|
458
458
|
...contents,
|
|
459
459
|
};
|
|
460
460
|
return Promise.resolve(response);
|
|
461
461
|
};
|
|
462
|
-
const
|
|
462
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
463
463
|
const parsedOutput = {
|
|
464
464
|
...output,
|
|
465
465
|
body: await parseErrorBody(output.body, context),
|
|
@@ -468,7 +468,7 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
468
468
|
switch (errorCode) {
|
|
469
469
|
case "ResourceNotFoundException":
|
|
470
470
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
471
|
-
throw await
|
|
471
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
472
472
|
default:
|
|
473
473
|
const parsedBody = parsedOutput.body;
|
|
474
474
|
throwDefaultError({
|
|
@@ -479,20 +479,20 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
|
-
export const
|
|
482
|
+
export const de_UpdateHostCommand = async (output, context) => {
|
|
483
483
|
if (output.statusCode >= 300) {
|
|
484
|
-
return
|
|
484
|
+
return de_UpdateHostCommandError(output, context);
|
|
485
485
|
}
|
|
486
486
|
const data = await parseBody(output.body, context);
|
|
487
487
|
let contents = {};
|
|
488
|
-
contents =
|
|
488
|
+
contents = de_UpdateHostOutput(data, context);
|
|
489
489
|
const response = {
|
|
490
490
|
$metadata: deserializeMetadata(output),
|
|
491
491
|
...contents,
|
|
492
492
|
};
|
|
493
493
|
return Promise.resolve(response);
|
|
494
494
|
};
|
|
495
|
-
const
|
|
495
|
+
const de_UpdateHostCommandError = async (output, context) => {
|
|
496
496
|
const parsedOutput = {
|
|
497
497
|
...output,
|
|
498
498
|
body: await parseErrorBody(output.body, context),
|
|
@@ -501,16 +501,16 @@ const deserializeAws_json1_0UpdateHostCommandError = async (output, context) =>
|
|
|
501
501
|
switch (errorCode) {
|
|
502
502
|
case "ConflictException":
|
|
503
503
|
case "com.amazonaws.codestarconnections#ConflictException":
|
|
504
|
-
throw await
|
|
504
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
505
505
|
case "ResourceNotFoundException":
|
|
506
506
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
507
|
-
throw await
|
|
507
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
508
508
|
case "ResourceUnavailableException":
|
|
509
509
|
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
510
|
-
throw await
|
|
510
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
511
511
|
case "UnsupportedOperationException":
|
|
512
512
|
case "com.amazonaws.codestarconnections#UnsupportedOperationException":
|
|
513
|
-
throw await
|
|
513
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
514
514
|
default:
|
|
515
515
|
const parsedBody = parsedOutput.body;
|
|
516
516
|
throwDefaultError({
|
|
@@ -521,91 +521,89 @@ const deserializeAws_json1_0UpdateHostCommandError = async (output, context) =>
|
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
|
-
const
|
|
524
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
525
525
|
const body = parsedOutput.body;
|
|
526
|
-
const deserialized =
|
|
526
|
+
const deserialized = de_ConflictException(body, context);
|
|
527
527
|
const exception = new ConflictException({
|
|
528
528
|
$metadata: deserializeMetadata(parsedOutput),
|
|
529
529
|
...deserialized,
|
|
530
530
|
});
|
|
531
531
|
return __decorateServiceException(exception, body);
|
|
532
532
|
};
|
|
533
|
-
const
|
|
533
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
534
534
|
const body = parsedOutput.body;
|
|
535
|
-
const deserialized =
|
|
535
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
536
536
|
const exception = new LimitExceededException({
|
|
537
537
|
$metadata: deserializeMetadata(parsedOutput),
|
|
538
538
|
...deserialized,
|
|
539
539
|
});
|
|
540
540
|
return __decorateServiceException(exception, body);
|
|
541
541
|
};
|
|
542
|
-
const
|
|
542
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
543
543
|
const body = parsedOutput.body;
|
|
544
|
-
const deserialized =
|
|
544
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
545
545
|
const exception = new ResourceNotFoundException({
|
|
546
546
|
$metadata: deserializeMetadata(parsedOutput),
|
|
547
547
|
...deserialized,
|
|
548
548
|
});
|
|
549
549
|
return __decorateServiceException(exception, body);
|
|
550
550
|
};
|
|
551
|
-
const
|
|
551
|
+
const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
552
552
|
const body = parsedOutput.body;
|
|
553
|
-
const deserialized =
|
|
553
|
+
const deserialized = de_ResourceUnavailableException(body, context);
|
|
554
554
|
const exception = new ResourceUnavailableException({
|
|
555
555
|
$metadata: deserializeMetadata(parsedOutput),
|
|
556
556
|
...deserialized,
|
|
557
557
|
});
|
|
558
558
|
return __decorateServiceException(exception, body);
|
|
559
559
|
};
|
|
560
|
-
const
|
|
560
|
+
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
561
561
|
const body = parsedOutput.body;
|
|
562
|
-
const deserialized =
|
|
562
|
+
const deserialized = de_UnsupportedOperationException(body, context);
|
|
563
563
|
const exception = new UnsupportedOperationException({
|
|
564
564
|
$metadata: deserializeMetadata(parsedOutput),
|
|
565
565
|
...deserialized,
|
|
566
566
|
});
|
|
567
567
|
return __decorateServiceException(exception, body);
|
|
568
568
|
};
|
|
569
|
-
const
|
|
569
|
+
const se_CreateConnectionInput = (input, context) => {
|
|
570
570
|
return {
|
|
571
571
|
...(input.ConnectionName != null && { ConnectionName: input.ConnectionName }),
|
|
572
572
|
...(input.HostArn != null && { HostArn: input.HostArn }),
|
|
573
573
|
...(input.ProviderType != null && { ProviderType: input.ProviderType }),
|
|
574
|
-
...(input.Tags != null && { Tags:
|
|
574
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
575
575
|
};
|
|
576
576
|
};
|
|
577
|
-
const
|
|
577
|
+
const se_CreateHostInput = (input, context) => {
|
|
578
578
|
return {
|
|
579
579
|
...(input.Name != null && { Name: input.Name }),
|
|
580
580
|
...(input.ProviderEndpoint != null && { ProviderEndpoint: input.ProviderEndpoint }),
|
|
581
581
|
...(input.ProviderType != null && { ProviderType: input.ProviderType }),
|
|
582
|
-
...(input.Tags != null && { Tags:
|
|
583
|
-
...(input.VpcConfiguration != null && {
|
|
584
|
-
VpcConfiguration: serializeAws_json1_0VpcConfiguration(input.VpcConfiguration, context),
|
|
585
|
-
}),
|
|
582
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
583
|
+
...(input.VpcConfiguration != null && { VpcConfiguration: se_VpcConfiguration(input.VpcConfiguration, context) }),
|
|
586
584
|
};
|
|
587
585
|
};
|
|
588
|
-
const
|
|
586
|
+
const se_DeleteConnectionInput = (input, context) => {
|
|
589
587
|
return {
|
|
590
588
|
...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
|
|
591
589
|
};
|
|
592
590
|
};
|
|
593
|
-
const
|
|
591
|
+
const se_DeleteHostInput = (input, context) => {
|
|
594
592
|
return {
|
|
595
593
|
...(input.HostArn != null && { HostArn: input.HostArn }),
|
|
596
594
|
};
|
|
597
595
|
};
|
|
598
|
-
const
|
|
596
|
+
const se_GetConnectionInput = (input, context) => {
|
|
599
597
|
return {
|
|
600
598
|
...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
|
|
601
599
|
};
|
|
602
600
|
};
|
|
603
|
-
const
|
|
601
|
+
const se_GetHostInput = (input, context) => {
|
|
604
602
|
return {
|
|
605
603
|
...(input.HostArn != null && { HostArn: input.HostArn }),
|
|
606
604
|
};
|
|
607
605
|
};
|
|
608
|
-
const
|
|
606
|
+
const se_ListConnectionsInput = (input, context) => {
|
|
609
607
|
return {
|
|
610
608
|
...(input.HostArnFilter != null && { HostArnFilter: input.HostArnFilter }),
|
|
611
609
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -613,88 +611,84 @@ const serializeAws_json1_0ListConnectionsInput = (input, context) => {
|
|
|
613
611
|
...(input.ProviderTypeFilter != null && { ProviderTypeFilter: input.ProviderTypeFilter }),
|
|
614
612
|
};
|
|
615
613
|
};
|
|
616
|
-
const
|
|
614
|
+
const se_ListHostsInput = (input, context) => {
|
|
617
615
|
return {
|
|
618
616
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
619
617
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
620
618
|
};
|
|
621
619
|
};
|
|
622
|
-
const
|
|
620
|
+
const se_ListTagsForResourceInput = (input, context) => {
|
|
623
621
|
return {
|
|
624
622
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
625
623
|
};
|
|
626
624
|
};
|
|
627
|
-
const
|
|
625
|
+
const se_SecurityGroupIds = (input, context) => {
|
|
628
626
|
return input
|
|
629
627
|
.filter((e) => e != null)
|
|
630
628
|
.map((entry) => {
|
|
631
629
|
return entry;
|
|
632
630
|
});
|
|
633
631
|
};
|
|
634
|
-
const
|
|
632
|
+
const se_SubnetIds = (input, context) => {
|
|
635
633
|
return input
|
|
636
634
|
.filter((e) => e != null)
|
|
637
635
|
.map((entry) => {
|
|
638
636
|
return entry;
|
|
639
637
|
});
|
|
640
638
|
};
|
|
641
|
-
const
|
|
639
|
+
const se_Tag = (input, context) => {
|
|
642
640
|
return {
|
|
643
641
|
...(input.Key != null && { Key: input.Key }),
|
|
644
642
|
...(input.Value != null && { Value: input.Value }),
|
|
645
643
|
};
|
|
646
644
|
};
|
|
647
|
-
const
|
|
645
|
+
const se_TagKeyList = (input, context) => {
|
|
648
646
|
return input
|
|
649
647
|
.filter((e) => e != null)
|
|
650
648
|
.map((entry) => {
|
|
651
649
|
return entry;
|
|
652
650
|
});
|
|
653
651
|
};
|
|
654
|
-
const
|
|
652
|
+
const se_TagList = (input, context) => {
|
|
655
653
|
return input
|
|
656
654
|
.filter((e) => e != null)
|
|
657
655
|
.map((entry) => {
|
|
658
|
-
return
|
|
656
|
+
return se_Tag(entry, context);
|
|
659
657
|
});
|
|
660
658
|
};
|
|
661
|
-
const
|
|
659
|
+
const se_TagResourceInput = (input, context) => {
|
|
662
660
|
return {
|
|
663
661
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
664
|
-
...(input.Tags != null && { Tags:
|
|
662
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
665
663
|
};
|
|
666
664
|
};
|
|
667
|
-
const
|
|
665
|
+
const se_UntagResourceInput = (input, context) => {
|
|
668
666
|
return {
|
|
669
667
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
670
|
-
...(input.TagKeys != null && { TagKeys:
|
|
668
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
671
669
|
};
|
|
672
670
|
};
|
|
673
|
-
const
|
|
671
|
+
const se_UpdateHostInput = (input, context) => {
|
|
674
672
|
return {
|
|
675
673
|
...(input.HostArn != null && { HostArn: input.HostArn }),
|
|
676
674
|
...(input.ProviderEndpoint != null && { ProviderEndpoint: input.ProviderEndpoint }),
|
|
677
|
-
...(input.VpcConfiguration != null && {
|
|
678
|
-
VpcConfiguration: serializeAws_json1_0VpcConfiguration(input.VpcConfiguration, context),
|
|
679
|
-
}),
|
|
675
|
+
...(input.VpcConfiguration != null && { VpcConfiguration: se_VpcConfiguration(input.VpcConfiguration, context) }),
|
|
680
676
|
};
|
|
681
677
|
};
|
|
682
|
-
const
|
|
678
|
+
const se_VpcConfiguration = (input, context) => {
|
|
683
679
|
return {
|
|
684
|
-
...(input.SecurityGroupIds != null && {
|
|
685
|
-
|
|
686
|
-
}),
|
|
687
|
-
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_0SubnetIds(input.SubnetIds, context) }),
|
|
680
|
+
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupIds(input.SecurityGroupIds, context) }),
|
|
681
|
+
...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
|
|
688
682
|
...(input.TlsCertificate != null && { TlsCertificate: input.TlsCertificate }),
|
|
689
683
|
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
690
684
|
};
|
|
691
685
|
};
|
|
692
|
-
const
|
|
686
|
+
const de_ConflictException = (output, context) => {
|
|
693
687
|
return {
|
|
694
688
|
Message: __expectString(output.Message),
|
|
695
689
|
};
|
|
696
690
|
};
|
|
697
|
-
const
|
|
691
|
+
const de_Connection = (output, context) => {
|
|
698
692
|
return {
|
|
699
693
|
ConnectionArn: __expectString(output.ConnectionArn),
|
|
700
694
|
ConnectionName: __expectString(output.ConnectionName),
|
|
@@ -704,52 +698,50 @@ const deserializeAws_json1_0Connection = (output, context) => {
|
|
|
704
698
|
ProviderType: __expectString(output.ProviderType),
|
|
705
699
|
};
|
|
706
700
|
};
|
|
707
|
-
const
|
|
701
|
+
const de_ConnectionList = (output, context) => {
|
|
708
702
|
const retVal = (output || [])
|
|
709
703
|
.filter((e) => e != null)
|
|
710
704
|
.map((entry) => {
|
|
711
705
|
if (entry === null) {
|
|
712
706
|
return null;
|
|
713
707
|
}
|
|
714
|
-
return
|
|
708
|
+
return de_Connection(entry, context);
|
|
715
709
|
});
|
|
716
710
|
return retVal;
|
|
717
711
|
};
|
|
718
|
-
const
|
|
712
|
+
const de_CreateConnectionOutput = (output, context) => {
|
|
719
713
|
return {
|
|
720
714
|
ConnectionArn: __expectString(output.ConnectionArn),
|
|
721
|
-
Tags: output.Tags != null ?
|
|
715
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
722
716
|
};
|
|
723
717
|
};
|
|
724
|
-
const
|
|
718
|
+
const de_CreateHostOutput = (output, context) => {
|
|
725
719
|
return {
|
|
726
720
|
HostArn: __expectString(output.HostArn),
|
|
727
|
-
Tags: output.Tags != null ?
|
|
721
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
728
722
|
};
|
|
729
723
|
};
|
|
730
|
-
const
|
|
724
|
+
const de_DeleteConnectionOutput = (output, context) => {
|
|
731
725
|
return {};
|
|
732
726
|
};
|
|
733
|
-
const
|
|
727
|
+
const de_DeleteHostOutput = (output, context) => {
|
|
734
728
|
return {};
|
|
735
729
|
};
|
|
736
|
-
const
|
|
730
|
+
const de_GetConnectionOutput = (output, context) => {
|
|
737
731
|
return {
|
|
738
|
-
Connection: output.Connection != null ?
|
|
732
|
+
Connection: output.Connection != null ? de_Connection(output.Connection, context) : undefined,
|
|
739
733
|
};
|
|
740
734
|
};
|
|
741
|
-
const
|
|
735
|
+
const de_GetHostOutput = (output, context) => {
|
|
742
736
|
return {
|
|
743
737
|
Name: __expectString(output.Name),
|
|
744
738
|
ProviderEndpoint: __expectString(output.ProviderEndpoint),
|
|
745
739
|
ProviderType: __expectString(output.ProviderType),
|
|
746
740
|
Status: __expectString(output.Status),
|
|
747
|
-
VpcConfiguration: output.VpcConfiguration != null
|
|
748
|
-
? deserializeAws_json1_0VpcConfiguration(output.VpcConfiguration, context)
|
|
749
|
-
: undefined,
|
|
741
|
+
VpcConfiguration: output.VpcConfiguration != null ? de_VpcConfiguration(output.VpcConfiguration, context) : undefined,
|
|
750
742
|
};
|
|
751
743
|
};
|
|
752
|
-
const
|
|
744
|
+
const de_Host = (output, context) => {
|
|
753
745
|
return {
|
|
754
746
|
HostArn: __expectString(output.HostArn),
|
|
755
747
|
Name: __expectString(output.Name),
|
|
@@ -757,55 +749,53 @@ const deserializeAws_json1_0Host = (output, context) => {
|
|
|
757
749
|
ProviderType: __expectString(output.ProviderType),
|
|
758
750
|
Status: __expectString(output.Status),
|
|
759
751
|
StatusMessage: __expectString(output.StatusMessage),
|
|
760
|
-
VpcConfiguration: output.VpcConfiguration != null
|
|
761
|
-
? deserializeAws_json1_0VpcConfiguration(output.VpcConfiguration, context)
|
|
762
|
-
: undefined,
|
|
752
|
+
VpcConfiguration: output.VpcConfiguration != null ? de_VpcConfiguration(output.VpcConfiguration, context) : undefined,
|
|
763
753
|
};
|
|
764
754
|
};
|
|
765
|
-
const
|
|
755
|
+
const de_HostList = (output, context) => {
|
|
766
756
|
const retVal = (output || [])
|
|
767
757
|
.filter((e) => e != null)
|
|
768
758
|
.map((entry) => {
|
|
769
759
|
if (entry === null) {
|
|
770
760
|
return null;
|
|
771
761
|
}
|
|
772
|
-
return
|
|
762
|
+
return de_Host(entry, context);
|
|
773
763
|
});
|
|
774
764
|
return retVal;
|
|
775
765
|
};
|
|
776
|
-
const
|
|
766
|
+
const de_LimitExceededException = (output, context) => {
|
|
777
767
|
return {
|
|
778
768
|
Message: __expectString(output.Message),
|
|
779
769
|
};
|
|
780
770
|
};
|
|
781
|
-
const
|
|
771
|
+
const de_ListConnectionsOutput = (output, context) => {
|
|
782
772
|
return {
|
|
783
|
-
Connections: output.Connections != null ?
|
|
773
|
+
Connections: output.Connections != null ? de_ConnectionList(output.Connections, context) : undefined,
|
|
784
774
|
NextToken: __expectString(output.NextToken),
|
|
785
775
|
};
|
|
786
776
|
};
|
|
787
|
-
const
|
|
777
|
+
const de_ListHostsOutput = (output, context) => {
|
|
788
778
|
return {
|
|
789
|
-
Hosts: output.Hosts != null ?
|
|
779
|
+
Hosts: output.Hosts != null ? de_HostList(output.Hosts, context) : undefined,
|
|
790
780
|
NextToken: __expectString(output.NextToken),
|
|
791
781
|
};
|
|
792
782
|
};
|
|
793
|
-
const
|
|
783
|
+
const de_ListTagsForResourceOutput = (output, context) => {
|
|
794
784
|
return {
|
|
795
|
-
Tags: output.Tags != null ?
|
|
785
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
796
786
|
};
|
|
797
787
|
};
|
|
798
|
-
const
|
|
788
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
799
789
|
return {
|
|
800
790
|
Message: __expectString(output.Message),
|
|
801
791
|
};
|
|
802
792
|
};
|
|
803
|
-
const
|
|
793
|
+
const de_ResourceUnavailableException = (output, context) => {
|
|
804
794
|
return {
|
|
805
795
|
Message: __expectString(output.Message),
|
|
806
796
|
};
|
|
807
797
|
};
|
|
808
|
-
const
|
|
798
|
+
const de_SecurityGroupIds = (output, context) => {
|
|
809
799
|
const retVal = (output || [])
|
|
810
800
|
.filter((e) => e != null)
|
|
811
801
|
.map((entry) => {
|
|
@@ -816,7 +806,7 @@ const deserializeAws_json1_0SecurityGroupIds = (output, context) => {
|
|
|
816
806
|
});
|
|
817
807
|
return retVal;
|
|
818
808
|
};
|
|
819
|
-
const
|
|
809
|
+
const de_SubnetIds = (output, context) => {
|
|
820
810
|
const retVal = (output || [])
|
|
821
811
|
.filter((e) => e != null)
|
|
822
812
|
.map((entry) => {
|
|
@@ -827,43 +817,41 @@ const deserializeAws_json1_0SubnetIds = (output, context) => {
|
|
|
827
817
|
});
|
|
828
818
|
return retVal;
|
|
829
819
|
};
|
|
830
|
-
const
|
|
820
|
+
const de_Tag = (output, context) => {
|
|
831
821
|
return {
|
|
832
822
|
Key: __expectString(output.Key),
|
|
833
823
|
Value: __expectString(output.Value),
|
|
834
824
|
};
|
|
835
825
|
};
|
|
836
|
-
const
|
|
826
|
+
const de_TagList = (output, context) => {
|
|
837
827
|
const retVal = (output || [])
|
|
838
828
|
.filter((e) => e != null)
|
|
839
829
|
.map((entry) => {
|
|
840
830
|
if (entry === null) {
|
|
841
831
|
return null;
|
|
842
832
|
}
|
|
843
|
-
return
|
|
833
|
+
return de_Tag(entry, context);
|
|
844
834
|
});
|
|
845
835
|
return retVal;
|
|
846
836
|
};
|
|
847
|
-
const
|
|
837
|
+
const de_TagResourceOutput = (output, context) => {
|
|
848
838
|
return {};
|
|
849
839
|
};
|
|
850
|
-
const
|
|
840
|
+
const de_UnsupportedOperationException = (output, context) => {
|
|
851
841
|
return {
|
|
852
842
|
Message: __expectString(output.Message),
|
|
853
843
|
};
|
|
854
844
|
};
|
|
855
|
-
const
|
|
845
|
+
const de_UntagResourceOutput = (output, context) => {
|
|
856
846
|
return {};
|
|
857
847
|
};
|
|
858
|
-
const
|
|
848
|
+
const de_UpdateHostOutput = (output, context) => {
|
|
859
849
|
return {};
|
|
860
850
|
};
|
|
861
|
-
const
|
|
851
|
+
const de_VpcConfiguration = (output, context) => {
|
|
862
852
|
return {
|
|
863
|
-
SecurityGroupIds: output.SecurityGroupIds != null
|
|
864
|
-
|
|
865
|
-
: undefined,
|
|
866
|
-
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_0SubnetIds(output.SubnetIds, context) : undefined,
|
|
853
|
+
SecurityGroupIds: output.SecurityGroupIds != null ? de_SecurityGroupIds(output.SecurityGroupIds, context) : undefined,
|
|
854
|
+
SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
|
|
867
855
|
TlsCertificate: __expectString(output.TlsCertificate),
|
|
868
856
|
VpcId: __expectString(output.VpcId),
|
|
869
857
|
};
|