@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.
Files changed (29) hide show
  1. package/dist-cjs/commands/CreateConnectionCommand.js +2 -2
  2. package/dist-cjs/commands/CreateHostCommand.js +2 -2
  3. package/dist-cjs/commands/DeleteConnectionCommand.js +2 -2
  4. package/dist-cjs/commands/DeleteHostCommand.js +2 -2
  5. package/dist-cjs/commands/GetConnectionCommand.js +2 -2
  6. package/dist-cjs/commands/GetHostCommand.js +2 -2
  7. package/dist-cjs/commands/ListConnectionsCommand.js +2 -2
  8. package/dist-cjs/commands/ListHostsCommand.js +2 -2
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  10. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  11. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  12. package/dist-cjs/commands/UpdateHostCommand.js +2 -2
  13. package/dist-cjs/protocols/Aws_json1_0.js +192 -204
  14. package/dist-es/commands/CreateConnectionCommand.js +3 -3
  15. package/dist-es/commands/CreateHostCommand.js +3 -3
  16. package/dist-es/commands/DeleteConnectionCommand.js +3 -3
  17. package/dist-es/commands/DeleteHostCommand.js +3 -3
  18. package/dist-es/commands/GetConnectionCommand.js +3 -3
  19. package/dist-es/commands/GetHostCommand.js +3 -3
  20. package/dist-es/commands/ListConnectionsCommand.js +3 -3
  21. package/dist-es/commands/ListHostsCommand.js +3 -3
  22. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  23. package/dist-es/commands/TagResourceCommand.js +3 -3
  24. package/dist-es/commands/UntagResourceCommand.js +3 -3
  25. package/dist-es/commands/UpdateHostCommand.js +3 -3
  26. package/dist-es/protocols/Aws_json1_0.js +167 -179
  27. package/dist-types/protocols/Aws_json1_0.d.ts +96 -24
  28. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -24
  29. 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 serializeAws_json1_0CreateConnectionCommand = async (input, context) => {
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(serializeAws_json1_0CreateConnectionInput(input, context));
11
+ body = JSON.stringify(se_CreateConnectionInput(input, context));
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
- export const serializeAws_json1_0CreateHostCommand = async (input, context) => {
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(serializeAws_json1_0CreateHostInput(input, context));
20
+ body = JSON.stringify(se_CreateHostInput(input, context));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
- export const serializeAws_json1_0DeleteConnectionCommand = async (input, context) => {
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(serializeAws_json1_0DeleteConnectionInput(input, context));
29
+ body = JSON.stringify(se_DeleteConnectionInput(input, context));
30
30
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
31
  };
32
- export const serializeAws_json1_0DeleteHostCommand = async (input, context) => {
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(serializeAws_json1_0DeleteHostInput(input, context));
38
+ body = JSON.stringify(se_DeleteHostInput(input, context));
39
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
40
  };
41
- export const serializeAws_json1_0GetConnectionCommand = async (input, context) => {
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(serializeAws_json1_0GetConnectionInput(input, context));
47
+ body = JSON.stringify(se_GetConnectionInput(input, context));
48
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
49
  };
50
- export const serializeAws_json1_0GetHostCommand = async (input, context) => {
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(serializeAws_json1_0GetHostInput(input, context));
56
+ body = JSON.stringify(se_GetHostInput(input, context));
57
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
58
  };
59
- export const serializeAws_json1_0ListConnectionsCommand = async (input, context) => {
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(serializeAws_json1_0ListConnectionsInput(input, context));
65
+ body = JSON.stringify(se_ListConnectionsInput(input, context));
66
66
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
67
  };
68
- export const serializeAws_json1_0ListHostsCommand = async (input, context) => {
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(serializeAws_json1_0ListHostsInput(input, context));
74
+ body = JSON.stringify(se_ListHostsInput(input, context));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
- export const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) => {
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(serializeAws_json1_0ListTagsForResourceInput(input, context));
83
+ body = JSON.stringify(se_ListTagsForResourceInput(input, context));
84
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
85
  };
86
- export const serializeAws_json1_0TagResourceCommand = async (input, context) => {
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(serializeAws_json1_0TagResourceInput(input, context));
92
+ body = JSON.stringify(se_TagResourceInput(input, context));
93
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
94
  };
95
- export const serializeAws_json1_0UntagResourceCommand = async (input, context) => {
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(serializeAws_json1_0UntagResourceInput(input, context));
101
+ body = JSON.stringify(se_UntagResourceInput(input, context));
102
102
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
103
  };
104
- export const serializeAws_json1_0UpdateHostCommand = async (input, context) => {
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(serializeAws_json1_0UpdateHostInput(input, context));
110
+ body = JSON.stringify(se_UpdateHostInput(input, context));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
- export const deserializeAws_json1_0CreateConnectionCommand = async (output, context) => {
113
+ export const de_CreateConnectionCommand = async (output, context) => {
114
114
  if (output.statusCode >= 300) {
115
- return deserializeAws_json1_0CreateConnectionCommandError(output, context);
115
+ return de_CreateConnectionCommandError(output, context);
116
116
  }
117
117
  const data = await parseBody(output.body, context);
118
118
  let contents = {};
119
- contents = deserializeAws_json1_0CreateConnectionOutput(data, context);
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 deserializeAws_json1_0CreateConnectionCommandError = async (output, context) => {
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 deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
135
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
136
136
  case "ResourceNotFoundException":
137
137
  case "com.amazonaws.codestarconnections#ResourceNotFoundException":
138
- throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
138
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
139
139
  case "ResourceUnavailableException":
140
140
  case "com.amazonaws.codestarconnections#ResourceUnavailableException":
141
- throw await deserializeAws_json1_0ResourceUnavailableExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_0CreateHostCommand = async (output, context) => {
152
+ export const de_CreateHostCommand = async (output, context) => {
153
153
  if (output.statusCode >= 300) {
154
- return deserializeAws_json1_0CreateHostCommandError(output, context);
154
+ return de_CreateHostCommandError(output, context);
155
155
  }
156
156
  const data = await parseBody(output.body, context);
157
157
  let contents = {};
158
- contents = deserializeAws_json1_0CreateHostOutput(data, context);
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 deserializeAws_json1_0CreateHostCommandError = async (output, context) => {
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 deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_0DeleteConnectionCommand = async (output, context) => {
185
+ export const de_DeleteConnectionCommand = async (output, context) => {
186
186
  if (output.statusCode >= 300) {
187
- return deserializeAws_json1_0DeleteConnectionCommandError(output, context);
187
+ return de_DeleteConnectionCommandError(output, context);
188
188
  }
189
189
  const data = await parseBody(output.body, context);
190
190
  let contents = {};
191
- contents = deserializeAws_json1_0DeleteConnectionOutput(data, context);
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 deserializeAws_json1_0DeleteConnectionCommandError = async (output, context) => {
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 deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_0DeleteHostCommand = async (output, context) => {
218
+ export const de_DeleteHostCommand = async (output, context) => {
219
219
  if (output.statusCode >= 300) {
220
- return deserializeAws_json1_0DeleteHostCommandError(output, context);
220
+ return de_DeleteHostCommandError(output, context);
221
221
  }
222
222
  const data = await parseBody(output.body, context);
223
223
  let contents = {};
224
- contents = deserializeAws_json1_0DeleteHostOutput(data, context);
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 deserializeAws_json1_0DeleteHostCommandError = async (output, context) => {
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 deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
240
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
241
241
  case "ResourceUnavailableException":
242
242
  case "com.amazonaws.codestarconnections#ResourceUnavailableException":
243
- throw await deserializeAws_json1_0ResourceUnavailableExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_0GetConnectionCommand = async (output, context) => {
254
+ export const de_GetConnectionCommand = async (output, context) => {
255
255
  if (output.statusCode >= 300) {
256
- return deserializeAws_json1_0GetConnectionCommandError(output, context);
256
+ return de_GetConnectionCommandError(output, context);
257
257
  }
258
258
  const data = await parseBody(output.body, context);
259
259
  let contents = {};
260
- contents = deserializeAws_json1_0GetConnectionOutput(data, context);
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 deserializeAws_json1_0GetConnectionCommandError = async (output, context) => {
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 deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
276
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
277
277
  case "ResourceUnavailableException":
278
278
  case "com.amazonaws.codestarconnections#ResourceUnavailableException":
279
- throw await deserializeAws_json1_0ResourceUnavailableExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_0GetHostCommand = async (output, context) => {
290
+ export const de_GetHostCommand = async (output, context) => {
291
291
  if (output.statusCode >= 300) {
292
- return deserializeAws_json1_0GetHostCommandError(output, context);
292
+ return de_GetHostCommandError(output, context);
293
293
  }
294
294
  const data = await parseBody(output.body, context);
295
295
  let contents = {};
296
- contents = deserializeAws_json1_0GetHostOutput(data, context);
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 deserializeAws_json1_0GetHostCommandError = async (output, context) => {
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 deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
312
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
313
313
  case "ResourceUnavailableException":
314
314
  case "com.amazonaws.codestarconnections#ResourceUnavailableException":
315
- throw await deserializeAws_json1_0ResourceUnavailableExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_0ListConnectionsCommand = async (output, context) => {
326
+ export const de_ListConnectionsCommand = async (output, context) => {
327
327
  if (output.statusCode >= 300) {
328
- return deserializeAws_json1_0ListConnectionsCommandError(output, context);
328
+ return de_ListConnectionsCommandError(output, context);
329
329
  }
330
330
  const data = await parseBody(output.body, context);
331
331
  let contents = {};
332
- contents = deserializeAws_json1_0ListConnectionsOutput(data, context);
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 deserializeAws_json1_0ListConnectionsCommandError = async (output, context) => {
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 deserializeAws_json1_0ListHostsCommand = async (output, context) => {
353
+ export const de_ListHostsCommand = async (output, context) => {
354
354
  if (output.statusCode >= 300) {
355
- return deserializeAws_json1_0ListHostsCommandError(output, context);
355
+ return de_ListHostsCommandError(output, context);
356
356
  }
357
357
  const data = await parseBody(output.body, context);
358
358
  let contents = {};
359
- contents = deserializeAws_json1_0ListHostsOutput(data, context);
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 deserializeAws_json1_0ListHostsCommandError = async (output, context) => {
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 deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
380
+ export const de_ListTagsForResourceCommand = async (output, context) => {
381
381
  if (output.statusCode >= 300) {
382
- return deserializeAws_json1_0ListTagsForResourceCommandError(output, context);
382
+ return de_ListTagsForResourceCommandError(output, context);
383
383
  }
384
384
  const data = await parseBody(output.body, context);
385
385
  let contents = {};
386
- contents = deserializeAws_json1_0ListTagsForResourceOutput(data, context);
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 deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
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 deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_0TagResourceCommand = async (output, context) => {
413
+ export const de_TagResourceCommand = async (output, context) => {
414
414
  if (output.statusCode >= 300) {
415
- return deserializeAws_json1_0TagResourceCommandError(output, context);
415
+ return de_TagResourceCommandError(output, context);
416
416
  }
417
417
  const data = await parseBody(output.body, context);
418
418
  let contents = {};
419
- contents = deserializeAws_json1_0TagResourceOutput(data, context);
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 deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
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 deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
435
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
436
436
  case "ResourceNotFoundException":
437
437
  case "com.amazonaws.codestarconnections#ResourceNotFoundException":
438
- throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
449
+ export const de_UntagResourceCommand = async (output, context) => {
450
450
  if (output.statusCode >= 300) {
451
- return deserializeAws_json1_0UntagResourceCommandError(output, context);
451
+ return de_UntagResourceCommandError(output, context);
452
452
  }
453
453
  const data = await parseBody(output.body, context);
454
454
  let contents = {};
455
- contents = deserializeAws_json1_0UntagResourceOutput(data, context);
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 deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
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 deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_0UpdateHostCommand = async (output, context) => {
482
+ export const de_UpdateHostCommand = async (output, context) => {
483
483
  if (output.statusCode >= 300) {
484
- return deserializeAws_json1_0UpdateHostCommandError(output, context);
484
+ return de_UpdateHostCommandError(output, context);
485
485
  }
486
486
  const data = await parseBody(output.body, context);
487
487
  let contents = {};
488
- contents = deserializeAws_json1_0UpdateHostOutput(data, context);
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 deserializeAws_json1_0UpdateHostCommandError = async (output, context) => {
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 deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
504
+ throw await de_ConflictExceptionRes(parsedOutput, context);
505
505
  case "ResourceNotFoundException":
506
506
  case "com.amazonaws.codestarconnections#ResourceNotFoundException":
507
- throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
507
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
508
508
  case "ResourceUnavailableException":
509
509
  case "com.amazonaws.codestarconnections#ResourceUnavailableException":
510
- throw await deserializeAws_json1_0ResourceUnavailableExceptionResponse(parsedOutput, context);
510
+ throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
511
511
  case "UnsupportedOperationException":
512
512
  case "com.amazonaws.codestarconnections#UnsupportedOperationException":
513
- throw await deserializeAws_json1_0UnsupportedOperationExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, context) => {
524
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
525
525
  const body = parsedOutput.body;
526
- const deserialized = deserializeAws_json1_0ConflictException(body, context);
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 deserializeAws_json1_0LimitExceededExceptionResponse = async (parsedOutput, context) => {
533
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
534
534
  const body = parsedOutput.body;
535
- const deserialized = deserializeAws_json1_0LimitExceededException(body, context);
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 deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
542
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
543
543
  const body = parsedOutput.body;
544
- const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
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 deserializeAws_json1_0ResourceUnavailableExceptionResponse = async (parsedOutput, context) => {
551
+ const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
552
552
  const body = parsedOutput.body;
553
- const deserialized = deserializeAws_json1_0ResourceUnavailableException(body, context);
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 deserializeAws_json1_0UnsupportedOperationExceptionResponse = async (parsedOutput, context) => {
560
+ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
561
561
  const body = parsedOutput.body;
562
- const deserialized = deserializeAws_json1_0UnsupportedOperationException(body, context);
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 serializeAws_json1_0CreateConnectionInput = (input, context) => {
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: serializeAws_json1_0TagList(input.Tags, context) }),
574
+ ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
575
575
  };
576
576
  };
577
- const serializeAws_json1_0CreateHostInput = (input, context) => {
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: serializeAws_json1_0TagList(input.Tags, context) }),
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 serializeAws_json1_0DeleteConnectionInput = (input, context) => {
586
+ const se_DeleteConnectionInput = (input, context) => {
589
587
  return {
590
588
  ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
591
589
  };
592
590
  };
593
- const serializeAws_json1_0DeleteHostInput = (input, context) => {
591
+ const se_DeleteHostInput = (input, context) => {
594
592
  return {
595
593
  ...(input.HostArn != null && { HostArn: input.HostArn }),
596
594
  };
597
595
  };
598
- const serializeAws_json1_0GetConnectionInput = (input, context) => {
596
+ const se_GetConnectionInput = (input, context) => {
599
597
  return {
600
598
  ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
601
599
  };
602
600
  };
603
- const serializeAws_json1_0GetHostInput = (input, context) => {
601
+ const se_GetHostInput = (input, context) => {
604
602
  return {
605
603
  ...(input.HostArn != null && { HostArn: input.HostArn }),
606
604
  };
607
605
  };
608
- const serializeAws_json1_0ListConnectionsInput = (input, context) => {
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 serializeAws_json1_0ListHostsInput = (input, context) => {
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 serializeAws_json1_0ListTagsForResourceInput = (input, context) => {
620
+ const se_ListTagsForResourceInput = (input, context) => {
623
621
  return {
624
622
  ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
625
623
  };
626
624
  };
627
- const serializeAws_json1_0SecurityGroupIds = (input, context) => {
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 serializeAws_json1_0SubnetIds = (input, context) => {
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 serializeAws_json1_0Tag = (input, context) => {
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 serializeAws_json1_0TagKeyList = (input, context) => {
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 serializeAws_json1_0TagList = (input, context) => {
652
+ const se_TagList = (input, context) => {
655
653
  return input
656
654
  .filter((e) => e != null)
657
655
  .map((entry) => {
658
- return serializeAws_json1_0Tag(entry, context);
656
+ return se_Tag(entry, context);
659
657
  });
660
658
  };
661
- const serializeAws_json1_0TagResourceInput = (input, context) => {
659
+ const se_TagResourceInput = (input, context) => {
662
660
  return {
663
661
  ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
664
- ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
662
+ ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
665
663
  };
666
664
  };
667
- const serializeAws_json1_0UntagResourceInput = (input, context) => {
665
+ const se_UntagResourceInput = (input, context) => {
668
666
  return {
669
667
  ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
670
- ...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
668
+ ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
671
669
  };
672
670
  };
673
- const serializeAws_json1_0UpdateHostInput = (input, context) => {
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 serializeAws_json1_0VpcConfiguration = (input, context) => {
678
+ const se_VpcConfiguration = (input, context) => {
683
679
  return {
684
- ...(input.SecurityGroupIds != null && {
685
- SecurityGroupIds: serializeAws_json1_0SecurityGroupIds(input.SecurityGroupIds, context),
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 deserializeAws_json1_0ConflictException = (output, context) => {
686
+ const de_ConflictException = (output, context) => {
693
687
  return {
694
688
  Message: __expectString(output.Message),
695
689
  };
696
690
  };
697
- const deserializeAws_json1_0Connection = (output, context) => {
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 deserializeAws_json1_0ConnectionList = (output, context) => {
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 deserializeAws_json1_0Connection(entry, context);
708
+ return de_Connection(entry, context);
715
709
  });
716
710
  return retVal;
717
711
  };
718
- const deserializeAws_json1_0CreateConnectionOutput = (output, context) => {
712
+ const de_CreateConnectionOutput = (output, context) => {
719
713
  return {
720
714
  ConnectionArn: __expectString(output.ConnectionArn),
721
- Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
715
+ Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
722
716
  };
723
717
  };
724
- const deserializeAws_json1_0CreateHostOutput = (output, context) => {
718
+ const de_CreateHostOutput = (output, context) => {
725
719
  return {
726
720
  HostArn: __expectString(output.HostArn),
727
- Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
721
+ Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
728
722
  };
729
723
  };
730
- const deserializeAws_json1_0DeleteConnectionOutput = (output, context) => {
724
+ const de_DeleteConnectionOutput = (output, context) => {
731
725
  return {};
732
726
  };
733
- const deserializeAws_json1_0DeleteHostOutput = (output, context) => {
727
+ const de_DeleteHostOutput = (output, context) => {
734
728
  return {};
735
729
  };
736
- const deserializeAws_json1_0GetConnectionOutput = (output, context) => {
730
+ const de_GetConnectionOutput = (output, context) => {
737
731
  return {
738
- Connection: output.Connection != null ? deserializeAws_json1_0Connection(output.Connection, context) : undefined,
732
+ Connection: output.Connection != null ? de_Connection(output.Connection, context) : undefined,
739
733
  };
740
734
  };
741
- const deserializeAws_json1_0GetHostOutput = (output, context) => {
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 deserializeAws_json1_0Host = (output, context) => {
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 deserializeAws_json1_0HostList = (output, context) => {
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 deserializeAws_json1_0Host(entry, context);
762
+ return de_Host(entry, context);
773
763
  });
774
764
  return retVal;
775
765
  };
776
- const deserializeAws_json1_0LimitExceededException = (output, context) => {
766
+ const de_LimitExceededException = (output, context) => {
777
767
  return {
778
768
  Message: __expectString(output.Message),
779
769
  };
780
770
  };
781
- const deserializeAws_json1_0ListConnectionsOutput = (output, context) => {
771
+ const de_ListConnectionsOutput = (output, context) => {
782
772
  return {
783
- Connections: output.Connections != null ? deserializeAws_json1_0ConnectionList(output.Connections, context) : undefined,
773
+ Connections: output.Connections != null ? de_ConnectionList(output.Connections, context) : undefined,
784
774
  NextToken: __expectString(output.NextToken),
785
775
  };
786
776
  };
787
- const deserializeAws_json1_0ListHostsOutput = (output, context) => {
777
+ const de_ListHostsOutput = (output, context) => {
788
778
  return {
789
- Hosts: output.Hosts != null ? deserializeAws_json1_0HostList(output.Hosts, context) : undefined,
779
+ Hosts: output.Hosts != null ? de_HostList(output.Hosts, context) : undefined,
790
780
  NextToken: __expectString(output.NextToken),
791
781
  };
792
782
  };
793
- const deserializeAws_json1_0ListTagsForResourceOutput = (output, context) => {
783
+ const de_ListTagsForResourceOutput = (output, context) => {
794
784
  return {
795
- Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
785
+ Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
796
786
  };
797
787
  };
798
- const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
788
+ const de_ResourceNotFoundException = (output, context) => {
799
789
  return {
800
790
  Message: __expectString(output.Message),
801
791
  };
802
792
  };
803
- const deserializeAws_json1_0ResourceUnavailableException = (output, context) => {
793
+ const de_ResourceUnavailableException = (output, context) => {
804
794
  return {
805
795
  Message: __expectString(output.Message),
806
796
  };
807
797
  };
808
- const deserializeAws_json1_0SecurityGroupIds = (output, context) => {
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 deserializeAws_json1_0SubnetIds = (output, context) => {
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 deserializeAws_json1_0Tag = (output, context) => {
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 deserializeAws_json1_0TagList = (output, context) => {
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 deserializeAws_json1_0Tag(entry, context);
833
+ return de_Tag(entry, context);
844
834
  });
845
835
  return retVal;
846
836
  };
847
- const deserializeAws_json1_0TagResourceOutput = (output, context) => {
837
+ const de_TagResourceOutput = (output, context) => {
848
838
  return {};
849
839
  };
850
- const deserializeAws_json1_0UnsupportedOperationException = (output, context) => {
840
+ const de_UnsupportedOperationException = (output, context) => {
851
841
  return {
852
842
  Message: __expectString(output.Message),
853
843
  };
854
844
  };
855
- const deserializeAws_json1_0UntagResourceOutput = (output, context) => {
845
+ const de_UntagResourceOutput = (output, context) => {
856
846
  return {};
857
847
  };
858
- const deserializeAws_json1_0UpdateHostOutput = (output, context) => {
848
+ const de_UpdateHostOutput = (output, context) => {
859
849
  return {};
860
850
  };
861
- const deserializeAws_json1_0VpcConfiguration = (output, context) => {
851
+ const de_VpcConfiguration = (output, context) => {
862
852
  return {
863
- SecurityGroupIds: output.SecurityGroupIds != null
864
- ? deserializeAws_json1_0SecurityGroupIds(output.SecurityGroupIds, context)
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
  };