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