@aws-sdk/client-transfer 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +437 -2282
- package/dist-es/protocols/Aws_json1_1.js +438 -2283
- package/package.json +6 -6
|
@@ -8,582 +8,408 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const TransferServiceException_1 = require("../models/TransferServiceException");
|
|
10
10
|
const se_CreateAccessCommand = async (input, context) => {
|
|
11
|
-
const headers =
|
|
12
|
-
"content-type": "application/x-amz-json-1.1",
|
|
13
|
-
"x-amz-target": "TransferService.CreateAccess",
|
|
14
|
-
};
|
|
11
|
+
const headers = sharedHeaders("CreateAccess");
|
|
15
12
|
let body;
|
|
16
|
-
body = JSON.stringify(
|
|
13
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
17
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
15
|
};
|
|
19
16
|
exports.se_CreateAccessCommand = se_CreateAccessCommand;
|
|
20
17
|
const se_CreateAgreementCommand = async (input, context) => {
|
|
21
|
-
const headers =
|
|
22
|
-
"content-type": "application/x-amz-json-1.1",
|
|
23
|
-
"x-amz-target": "TransferService.CreateAgreement",
|
|
24
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CreateAgreement");
|
|
25
19
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
22
|
};
|
|
29
23
|
exports.se_CreateAgreementCommand = se_CreateAgreementCommand;
|
|
30
24
|
const se_CreateConnectorCommand = async (input, context) => {
|
|
31
|
-
const headers =
|
|
32
|
-
"content-type": "application/x-amz-json-1.1",
|
|
33
|
-
"x-amz-target": "TransferService.CreateConnector",
|
|
34
|
-
};
|
|
25
|
+
const headers = sharedHeaders("CreateConnector");
|
|
35
26
|
let body;
|
|
36
|
-
body = JSON.stringify(
|
|
27
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
37
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
29
|
};
|
|
39
30
|
exports.se_CreateConnectorCommand = se_CreateConnectorCommand;
|
|
40
31
|
const se_CreateProfileCommand = async (input, context) => {
|
|
41
|
-
const headers =
|
|
42
|
-
"content-type": "application/x-amz-json-1.1",
|
|
43
|
-
"x-amz-target": "TransferService.CreateProfile",
|
|
44
|
-
};
|
|
32
|
+
const headers = sharedHeaders("CreateProfile");
|
|
45
33
|
let body;
|
|
46
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
36
|
};
|
|
49
37
|
exports.se_CreateProfileCommand = se_CreateProfileCommand;
|
|
50
38
|
const se_CreateServerCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "TransferService.CreateServer",
|
|
54
|
-
};
|
|
39
|
+
const headers = sharedHeaders("CreateServer");
|
|
55
40
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
41
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
57
42
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
43
|
};
|
|
59
44
|
exports.se_CreateServerCommand = se_CreateServerCommand;
|
|
60
45
|
const se_CreateUserCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.1",
|
|
63
|
-
"x-amz-target": "TransferService.CreateUser",
|
|
64
|
-
};
|
|
46
|
+
const headers = sharedHeaders("CreateUser");
|
|
65
47
|
let body;
|
|
66
|
-
body = JSON.stringify(
|
|
48
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
67
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
50
|
};
|
|
69
51
|
exports.se_CreateUserCommand = se_CreateUserCommand;
|
|
70
52
|
const se_CreateWorkflowCommand = async (input, context) => {
|
|
71
|
-
const headers =
|
|
72
|
-
"content-type": "application/x-amz-json-1.1",
|
|
73
|
-
"x-amz-target": "TransferService.CreateWorkflow",
|
|
74
|
-
};
|
|
53
|
+
const headers = sharedHeaders("CreateWorkflow");
|
|
75
54
|
let body;
|
|
76
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
57
|
};
|
|
79
58
|
exports.se_CreateWorkflowCommand = se_CreateWorkflowCommand;
|
|
80
59
|
const se_DeleteAccessCommand = async (input, context) => {
|
|
81
|
-
const headers =
|
|
82
|
-
"content-type": "application/x-amz-json-1.1",
|
|
83
|
-
"x-amz-target": "TransferService.DeleteAccess",
|
|
84
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DeleteAccess");
|
|
85
61
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
87
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
64
|
};
|
|
89
65
|
exports.se_DeleteAccessCommand = se_DeleteAccessCommand;
|
|
90
66
|
const se_DeleteAgreementCommand = async (input, context) => {
|
|
91
|
-
const headers =
|
|
92
|
-
"content-type": "application/x-amz-json-1.1",
|
|
93
|
-
"x-amz-target": "TransferService.DeleteAgreement",
|
|
94
|
-
};
|
|
67
|
+
const headers = sharedHeaders("DeleteAgreement");
|
|
95
68
|
let body;
|
|
96
|
-
body = JSON.stringify(
|
|
69
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
71
|
};
|
|
99
72
|
exports.se_DeleteAgreementCommand = se_DeleteAgreementCommand;
|
|
100
73
|
const se_DeleteCertificateCommand = async (input, context) => {
|
|
101
|
-
const headers =
|
|
102
|
-
"content-type": "application/x-amz-json-1.1",
|
|
103
|
-
"x-amz-target": "TransferService.DeleteCertificate",
|
|
104
|
-
};
|
|
74
|
+
const headers = sharedHeaders("DeleteCertificate");
|
|
105
75
|
let body;
|
|
106
|
-
body = JSON.stringify(
|
|
76
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
107
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
78
|
};
|
|
109
79
|
exports.se_DeleteCertificateCommand = se_DeleteCertificateCommand;
|
|
110
80
|
const se_DeleteConnectorCommand = async (input, context) => {
|
|
111
|
-
const headers =
|
|
112
|
-
"content-type": "application/x-amz-json-1.1",
|
|
113
|
-
"x-amz-target": "TransferService.DeleteConnector",
|
|
114
|
-
};
|
|
81
|
+
const headers = sharedHeaders("DeleteConnector");
|
|
115
82
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
85
|
};
|
|
119
86
|
exports.se_DeleteConnectorCommand = se_DeleteConnectorCommand;
|
|
120
87
|
const se_DeleteHostKeyCommand = async (input, context) => {
|
|
121
|
-
const headers =
|
|
122
|
-
"content-type": "application/x-amz-json-1.1",
|
|
123
|
-
"x-amz-target": "TransferService.DeleteHostKey",
|
|
124
|
-
};
|
|
88
|
+
const headers = sharedHeaders("DeleteHostKey");
|
|
125
89
|
let body;
|
|
126
|
-
body = JSON.stringify(
|
|
90
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
127
91
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
92
|
};
|
|
129
93
|
exports.se_DeleteHostKeyCommand = se_DeleteHostKeyCommand;
|
|
130
94
|
const se_DeleteProfileCommand = async (input, context) => {
|
|
131
|
-
const headers =
|
|
132
|
-
"content-type": "application/x-amz-json-1.1",
|
|
133
|
-
"x-amz-target": "TransferService.DeleteProfile",
|
|
134
|
-
};
|
|
95
|
+
const headers = sharedHeaders("DeleteProfile");
|
|
135
96
|
let body;
|
|
136
|
-
body = JSON.stringify(
|
|
97
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
137
98
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
99
|
};
|
|
139
100
|
exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
|
|
140
101
|
const se_DeleteServerCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "TransferService.DeleteServer",
|
|
144
|
-
};
|
|
102
|
+
const headers = sharedHeaders("DeleteServer");
|
|
145
103
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
106
|
};
|
|
149
107
|
exports.se_DeleteServerCommand = se_DeleteServerCommand;
|
|
150
108
|
const se_DeleteSshPublicKeyCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-amz-json-1.1",
|
|
153
|
-
"x-amz-target": "TransferService.DeleteSshPublicKey",
|
|
154
|
-
};
|
|
109
|
+
const headers = sharedHeaders("DeleteSshPublicKey");
|
|
155
110
|
let body;
|
|
156
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
157
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
113
|
};
|
|
159
114
|
exports.se_DeleteSshPublicKeyCommand = se_DeleteSshPublicKeyCommand;
|
|
160
115
|
const se_DeleteUserCommand = async (input, context) => {
|
|
161
|
-
const headers =
|
|
162
|
-
"content-type": "application/x-amz-json-1.1",
|
|
163
|
-
"x-amz-target": "TransferService.DeleteUser",
|
|
164
|
-
};
|
|
116
|
+
const headers = sharedHeaders("DeleteUser");
|
|
165
117
|
let body;
|
|
166
|
-
body = JSON.stringify(
|
|
118
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
167
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
120
|
};
|
|
169
121
|
exports.se_DeleteUserCommand = se_DeleteUserCommand;
|
|
170
122
|
const se_DeleteWorkflowCommand = async (input, context) => {
|
|
171
|
-
const headers =
|
|
172
|
-
"content-type": "application/x-amz-json-1.1",
|
|
173
|
-
"x-amz-target": "TransferService.DeleteWorkflow",
|
|
174
|
-
};
|
|
123
|
+
const headers = sharedHeaders("DeleteWorkflow");
|
|
175
124
|
let body;
|
|
176
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
177
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
127
|
};
|
|
179
128
|
exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
|
|
180
129
|
const se_DescribeAccessCommand = async (input, context) => {
|
|
181
|
-
const headers =
|
|
182
|
-
"content-type": "application/x-amz-json-1.1",
|
|
183
|
-
"x-amz-target": "TransferService.DescribeAccess",
|
|
184
|
-
};
|
|
130
|
+
const headers = sharedHeaders("DescribeAccess");
|
|
185
131
|
let body;
|
|
186
|
-
body = JSON.stringify(
|
|
132
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
187
133
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
188
134
|
};
|
|
189
135
|
exports.se_DescribeAccessCommand = se_DescribeAccessCommand;
|
|
190
136
|
const se_DescribeAgreementCommand = async (input, context) => {
|
|
191
|
-
const headers =
|
|
192
|
-
"content-type": "application/x-amz-json-1.1",
|
|
193
|
-
"x-amz-target": "TransferService.DescribeAgreement",
|
|
194
|
-
};
|
|
137
|
+
const headers = sharedHeaders("DescribeAgreement");
|
|
195
138
|
let body;
|
|
196
|
-
body = JSON.stringify(
|
|
139
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
197
140
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
141
|
};
|
|
199
142
|
exports.se_DescribeAgreementCommand = se_DescribeAgreementCommand;
|
|
200
143
|
const se_DescribeCertificateCommand = async (input, context) => {
|
|
201
|
-
const headers =
|
|
202
|
-
"content-type": "application/x-amz-json-1.1",
|
|
203
|
-
"x-amz-target": "TransferService.DescribeCertificate",
|
|
204
|
-
};
|
|
144
|
+
const headers = sharedHeaders("DescribeCertificate");
|
|
205
145
|
let body;
|
|
206
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
207
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
148
|
};
|
|
209
149
|
exports.se_DescribeCertificateCommand = se_DescribeCertificateCommand;
|
|
210
150
|
const se_DescribeConnectorCommand = async (input, context) => {
|
|
211
|
-
const headers =
|
|
212
|
-
"content-type": "application/x-amz-json-1.1",
|
|
213
|
-
"x-amz-target": "TransferService.DescribeConnector",
|
|
214
|
-
};
|
|
151
|
+
const headers = sharedHeaders("DescribeConnector");
|
|
215
152
|
let body;
|
|
216
|
-
body = JSON.stringify(
|
|
153
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
217
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
155
|
};
|
|
219
156
|
exports.se_DescribeConnectorCommand = se_DescribeConnectorCommand;
|
|
220
157
|
const se_DescribeExecutionCommand = async (input, context) => {
|
|
221
|
-
const headers =
|
|
222
|
-
"content-type": "application/x-amz-json-1.1",
|
|
223
|
-
"x-amz-target": "TransferService.DescribeExecution",
|
|
224
|
-
};
|
|
158
|
+
const headers = sharedHeaders("DescribeExecution");
|
|
225
159
|
let body;
|
|
226
|
-
body = JSON.stringify(
|
|
160
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
227
161
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
162
|
};
|
|
229
163
|
exports.se_DescribeExecutionCommand = se_DescribeExecutionCommand;
|
|
230
164
|
const se_DescribeHostKeyCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "TransferService.DescribeHostKey",
|
|
234
|
-
};
|
|
165
|
+
const headers = sharedHeaders("DescribeHostKey");
|
|
235
166
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
167
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
168
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
169
|
};
|
|
239
170
|
exports.se_DescribeHostKeyCommand = se_DescribeHostKeyCommand;
|
|
240
171
|
const se_DescribeProfileCommand = async (input, context) => {
|
|
241
|
-
const headers =
|
|
242
|
-
"content-type": "application/x-amz-json-1.1",
|
|
243
|
-
"x-amz-target": "TransferService.DescribeProfile",
|
|
244
|
-
};
|
|
172
|
+
const headers = sharedHeaders("DescribeProfile");
|
|
245
173
|
let body;
|
|
246
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
247
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
176
|
};
|
|
249
177
|
exports.se_DescribeProfileCommand = se_DescribeProfileCommand;
|
|
250
178
|
const se_DescribeSecurityPolicyCommand = async (input, context) => {
|
|
251
|
-
const headers =
|
|
252
|
-
"content-type": "application/x-amz-json-1.1",
|
|
253
|
-
"x-amz-target": "TransferService.DescribeSecurityPolicy",
|
|
254
|
-
};
|
|
179
|
+
const headers = sharedHeaders("DescribeSecurityPolicy");
|
|
255
180
|
let body;
|
|
256
|
-
body = JSON.stringify(
|
|
181
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
257
182
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
183
|
};
|
|
259
184
|
exports.se_DescribeSecurityPolicyCommand = se_DescribeSecurityPolicyCommand;
|
|
260
185
|
const se_DescribeServerCommand = async (input, context) => {
|
|
261
|
-
const headers =
|
|
262
|
-
"content-type": "application/x-amz-json-1.1",
|
|
263
|
-
"x-amz-target": "TransferService.DescribeServer",
|
|
264
|
-
};
|
|
186
|
+
const headers = sharedHeaders("DescribeServer");
|
|
265
187
|
let body;
|
|
266
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
190
|
};
|
|
269
191
|
exports.se_DescribeServerCommand = se_DescribeServerCommand;
|
|
270
192
|
const se_DescribeUserCommand = async (input, context) => {
|
|
271
|
-
const headers =
|
|
272
|
-
"content-type": "application/x-amz-json-1.1",
|
|
273
|
-
"x-amz-target": "TransferService.DescribeUser",
|
|
274
|
-
};
|
|
193
|
+
const headers = sharedHeaders("DescribeUser");
|
|
275
194
|
let body;
|
|
276
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
277
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
278
197
|
};
|
|
279
198
|
exports.se_DescribeUserCommand = se_DescribeUserCommand;
|
|
280
199
|
const se_DescribeWorkflowCommand = async (input, context) => {
|
|
281
|
-
const headers =
|
|
282
|
-
"content-type": "application/x-amz-json-1.1",
|
|
283
|
-
"x-amz-target": "TransferService.DescribeWorkflow",
|
|
284
|
-
};
|
|
200
|
+
const headers = sharedHeaders("DescribeWorkflow");
|
|
285
201
|
let body;
|
|
286
|
-
body = JSON.stringify(
|
|
202
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
287
203
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
204
|
};
|
|
289
205
|
exports.se_DescribeWorkflowCommand = se_DescribeWorkflowCommand;
|
|
290
206
|
const se_ImportCertificateCommand = async (input, context) => {
|
|
291
|
-
const headers =
|
|
292
|
-
"content-type": "application/x-amz-json-1.1",
|
|
293
|
-
"x-amz-target": "TransferService.ImportCertificate",
|
|
294
|
-
};
|
|
207
|
+
const headers = sharedHeaders("ImportCertificate");
|
|
295
208
|
let body;
|
|
296
209
|
body = JSON.stringify(se_ImportCertificateRequest(input, context));
|
|
297
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
211
|
};
|
|
299
212
|
exports.se_ImportCertificateCommand = se_ImportCertificateCommand;
|
|
300
213
|
const se_ImportHostKeyCommand = async (input, context) => {
|
|
301
|
-
const headers =
|
|
302
|
-
"content-type": "application/x-amz-json-1.1",
|
|
303
|
-
"x-amz-target": "TransferService.ImportHostKey",
|
|
304
|
-
};
|
|
214
|
+
const headers = sharedHeaders("ImportHostKey");
|
|
305
215
|
let body;
|
|
306
|
-
body = JSON.stringify(
|
|
216
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
307
217
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
218
|
};
|
|
309
219
|
exports.se_ImportHostKeyCommand = se_ImportHostKeyCommand;
|
|
310
220
|
const se_ImportSshPublicKeyCommand = async (input, context) => {
|
|
311
|
-
const headers =
|
|
312
|
-
"content-type": "application/x-amz-json-1.1",
|
|
313
|
-
"x-amz-target": "TransferService.ImportSshPublicKey",
|
|
314
|
-
};
|
|
221
|
+
const headers = sharedHeaders("ImportSshPublicKey");
|
|
315
222
|
let body;
|
|
316
|
-
body = JSON.stringify(
|
|
223
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
317
224
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
225
|
};
|
|
319
226
|
exports.se_ImportSshPublicKeyCommand = se_ImportSshPublicKeyCommand;
|
|
320
227
|
const se_ListAccessesCommand = async (input, context) => {
|
|
321
|
-
const headers =
|
|
322
|
-
"content-type": "application/x-amz-json-1.1",
|
|
323
|
-
"x-amz-target": "TransferService.ListAccesses",
|
|
324
|
-
};
|
|
228
|
+
const headers = sharedHeaders("ListAccesses");
|
|
325
229
|
let body;
|
|
326
|
-
body = JSON.stringify(
|
|
230
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
327
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
232
|
};
|
|
329
233
|
exports.se_ListAccessesCommand = se_ListAccessesCommand;
|
|
330
234
|
const se_ListAgreementsCommand = async (input, context) => {
|
|
331
|
-
const headers =
|
|
332
|
-
"content-type": "application/x-amz-json-1.1",
|
|
333
|
-
"x-amz-target": "TransferService.ListAgreements",
|
|
334
|
-
};
|
|
235
|
+
const headers = sharedHeaders("ListAgreements");
|
|
335
236
|
let body;
|
|
336
|
-
body = JSON.stringify(
|
|
237
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
337
238
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
239
|
};
|
|
339
240
|
exports.se_ListAgreementsCommand = se_ListAgreementsCommand;
|
|
340
241
|
const se_ListCertificatesCommand = async (input, context) => {
|
|
341
|
-
const headers =
|
|
342
|
-
"content-type": "application/x-amz-json-1.1",
|
|
343
|
-
"x-amz-target": "TransferService.ListCertificates",
|
|
344
|
-
};
|
|
242
|
+
const headers = sharedHeaders("ListCertificates");
|
|
345
243
|
let body;
|
|
346
|
-
body = JSON.stringify(
|
|
244
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
347
245
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
348
246
|
};
|
|
349
247
|
exports.se_ListCertificatesCommand = se_ListCertificatesCommand;
|
|
350
248
|
const se_ListConnectorsCommand = async (input, context) => {
|
|
351
|
-
const headers =
|
|
352
|
-
"content-type": "application/x-amz-json-1.1",
|
|
353
|
-
"x-amz-target": "TransferService.ListConnectors",
|
|
354
|
-
};
|
|
249
|
+
const headers = sharedHeaders("ListConnectors");
|
|
355
250
|
let body;
|
|
356
|
-
body = JSON.stringify(
|
|
251
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
357
252
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
358
253
|
};
|
|
359
254
|
exports.se_ListConnectorsCommand = se_ListConnectorsCommand;
|
|
360
255
|
const se_ListExecutionsCommand = async (input, context) => {
|
|
361
|
-
const headers =
|
|
362
|
-
"content-type": "application/x-amz-json-1.1",
|
|
363
|
-
"x-amz-target": "TransferService.ListExecutions",
|
|
364
|
-
};
|
|
256
|
+
const headers = sharedHeaders("ListExecutions");
|
|
365
257
|
let body;
|
|
366
|
-
body = JSON.stringify(
|
|
258
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
367
259
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
368
260
|
};
|
|
369
261
|
exports.se_ListExecutionsCommand = se_ListExecutionsCommand;
|
|
370
262
|
const se_ListHostKeysCommand = async (input, context) => {
|
|
371
|
-
const headers =
|
|
372
|
-
"content-type": "application/x-amz-json-1.1",
|
|
373
|
-
"x-amz-target": "TransferService.ListHostKeys",
|
|
374
|
-
};
|
|
263
|
+
const headers = sharedHeaders("ListHostKeys");
|
|
375
264
|
let body;
|
|
376
|
-
body = JSON.stringify(
|
|
265
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
377
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
378
267
|
};
|
|
379
268
|
exports.se_ListHostKeysCommand = se_ListHostKeysCommand;
|
|
380
269
|
const se_ListProfilesCommand = async (input, context) => {
|
|
381
|
-
const headers =
|
|
382
|
-
"content-type": "application/x-amz-json-1.1",
|
|
383
|
-
"x-amz-target": "TransferService.ListProfiles",
|
|
384
|
-
};
|
|
270
|
+
const headers = sharedHeaders("ListProfiles");
|
|
385
271
|
let body;
|
|
386
|
-
body = JSON.stringify(
|
|
272
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
387
273
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
274
|
};
|
|
389
275
|
exports.se_ListProfilesCommand = se_ListProfilesCommand;
|
|
390
276
|
const se_ListSecurityPoliciesCommand = async (input, context) => {
|
|
391
|
-
const headers =
|
|
392
|
-
"content-type": "application/x-amz-json-1.1",
|
|
393
|
-
"x-amz-target": "TransferService.ListSecurityPolicies",
|
|
394
|
-
};
|
|
277
|
+
const headers = sharedHeaders("ListSecurityPolicies");
|
|
395
278
|
let body;
|
|
396
|
-
body = JSON.stringify(
|
|
279
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
397
280
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
398
281
|
};
|
|
399
282
|
exports.se_ListSecurityPoliciesCommand = se_ListSecurityPoliciesCommand;
|
|
400
283
|
const se_ListServersCommand = async (input, context) => {
|
|
401
|
-
const headers =
|
|
402
|
-
"content-type": "application/x-amz-json-1.1",
|
|
403
|
-
"x-amz-target": "TransferService.ListServers",
|
|
404
|
-
};
|
|
284
|
+
const headers = sharedHeaders("ListServers");
|
|
405
285
|
let body;
|
|
406
|
-
body = JSON.stringify(
|
|
286
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
407
287
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
288
|
};
|
|
409
289
|
exports.se_ListServersCommand = se_ListServersCommand;
|
|
410
290
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
411
|
-
const headers =
|
|
412
|
-
"content-type": "application/x-amz-json-1.1",
|
|
413
|
-
"x-amz-target": "TransferService.ListTagsForResource",
|
|
414
|
-
};
|
|
291
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
415
292
|
let body;
|
|
416
|
-
body = JSON.stringify(
|
|
293
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
417
294
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
418
295
|
};
|
|
419
296
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
420
297
|
const se_ListUsersCommand = async (input, context) => {
|
|
421
|
-
const headers =
|
|
422
|
-
"content-type": "application/x-amz-json-1.1",
|
|
423
|
-
"x-amz-target": "TransferService.ListUsers",
|
|
424
|
-
};
|
|
298
|
+
const headers = sharedHeaders("ListUsers");
|
|
425
299
|
let body;
|
|
426
|
-
body = JSON.stringify(
|
|
300
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
427
301
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
428
302
|
};
|
|
429
303
|
exports.se_ListUsersCommand = se_ListUsersCommand;
|
|
430
304
|
const se_ListWorkflowsCommand = async (input, context) => {
|
|
431
|
-
const headers =
|
|
432
|
-
"content-type": "application/x-amz-json-1.1",
|
|
433
|
-
"x-amz-target": "TransferService.ListWorkflows",
|
|
434
|
-
};
|
|
305
|
+
const headers = sharedHeaders("ListWorkflows");
|
|
435
306
|
let body;
|
|
436
|
-
body = JSON.stringify(
|
|
307
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
437
308
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
438
309
|
};
|
|
439
310
|
exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
|
|
440
311
|
const se_SendWorkflowStepStateCommand = async (input, context) => {
|
|
441
|
-
const headers =
|
|
442
|
-
"content-type": "application/x-amz-json-1.1",
|
|
443
|
-
"x-amz-target": "TransferService.SendWorkflowStepState",
|
|
444
|
-
};
|
|
312
|
+
const headers = sharedHeaders("SendWorkflowStepState");
|
|
445
313
|
let body;
|
|
446
|
-
body = JSON.stringify(
|
|
314
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
447
315
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
448
316
|
};
|
|
449
317
|
exports.se_SendWorkflowStepStateCommand = se_SendWorkflowStepStateCommand;
|
|
450
318
|
const se_StartFileTransferCommand = async (input, context) => {
|
|
451
|
-
const headers =
|
|
452
|
-
"content-type": "application/x-amz-json-1.1",
|
|
453
|
-
"x-amz-target": "TransferService.StartFileTransfer",
|
|
454
|
-
};
|
|
319
|
+
const headers = sharedHeaders("StartFileTransfer");
|
|
455
320
|
let body;
|
|
456
|
-
body = JSON.stringify(
|
|
321
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
457
322
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
458
323
|
};
|
|
459
324
|
exports.se_StartFileTransferCommand = se_StartFileTransferCommand;
|
|
460
325
|
const se_StartServerCommand = async (input, context) => {
|
|
461
|
-
const headers =
|
|
462
|
-
"content-type": "application/x-amz-json-1.1",
|
|
463
|
-
"x-amz-target": "TransferService.StartServer",
|
|
464
|
-
};
|
|
326
|
+
const headers = sharedHeaders("StartServer");
|
|
465
327
|
let body;
|
|
466
|
-
body = JSON.stringify(
|
|
328
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
467
329
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
468
330
|
};
|
|
469
331
|
exports.se_StartServerCommand = se_StartServerCommand;
|
|
470
332
|
const se_StopServerCommand = async (input, context) => {
|
|
471
|
-
const headers =
|
|
472
|
-
"content-type": "application/x-amz-json-1.1",
|
|
473
|
-
"x-amz-target": "TransferService.StopServer",
|
|
474
|
-
};
|
|
333
|
+
const headers = sharedHeaders("StopServer");
|
|
475
334
|
let body;
|
|
476
|
-
body = JSON.stringify(
|
|
335
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
477
336
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
337
|
};
|
|
479
338
|
exports.se_StopServerCommand = se_StopServerCommand;
|
|
480
339
|
const se_TagResourceCommand = async (input, context) => {
|
|
481
|
-
const headers =
|
|
482
|
-
"content-type": "application/x-amz-json-1.1",
|
|
483
|
-
"x-amz-target": "TransferService.TagResource",
|
|
484
|
-
};
|
|
340
|
+
const headers = sharedHeaders("TagResource");
|
|
485
341
|
let body;
|
|
486
|
-
body = JSON.stringify(
|
|
342
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
487
343
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
488
344
|
};
|
|
489
345
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
490
346
|
const se_TestIdentityProviderCommand = async (input, context) => {
|
|
491
|
-
const headers =
|
|
492
|
-
"content-type": "application/x-amz-json-1.1",
|
|
493
|
-
"x-amz-target": "TransferService.TestIdentityProvider",
|
|
494
|
-
};
|
|
347
|
+
const headers = sharedHeaders("TestIdentityProvider");
|
|
495
348
|
let body;
|
|
496
|
-
body = JSON.stringify(
|
|
349
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
497
350
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
498
351
|
};
|
|
499
352
|
exports.se_TestIdentityProviderCommand = se_TestIdentityProviderCommand;
|
|
500
353
|
const se_UntagResourceCommand = async (input, context) => {
|
|
501
|
-
const headers =
|
|
502
|
-
"content-type": "application/x-amz-json-1.1",
|
|
503
|
-
"x-amz-target": "TransferService.UntagResource",
|
|
504
|
-
};
|
|
354
|
+
const headers = sharedHeaders("UntagResource");
|
|
505
355
|
let body;
|
|
506
|
-
body = JSON.stringify(
|
|
356
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
507
357
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
508
358
|
};
|
|
509
359
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
510
360
|
const se_UpdateAccessCommand = async (input, context) => {
|
|
511
|
-
const headers =
|
|
512
|
-
"content-type": "application/x-amz-json-1.1",
|
|
513
|
-
"x-amz-target": "TransferService.UpdateAccess",
|
|
514
|
-
};
|
|
361
|
+
const headers = sharedHeaders("UpdateAccess");
|
|
515
362
|
let body;
|
|
516
|
-
body = JSON.stringify(
|
|
363
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
517
364
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
518
365
|
};
|
|
519
366
|
exports.se_UpdateAccessCommand = se_UpdateAccessCommand;
|
|
520
367
|
const se_UpdateAgreementCommand = async (input, context) => {
|
|
521
|
-
const headers =
|
|
522
|
-
"content-type": "application/x-amz-json-1.1",
|
|
523
|
-
"x-amz-target": "TransferService.UpdateAgreement",
|
|
524
|
-
};
|
|
368
|
+
const headers = sharedHeaders("UpdateAgreement");
|
|
525
369
|
let body;
|
|
526
|
-
body = JSON.stringify(
|
|
370
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
527
371
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
528
372
|
};
|
|
529
373
|
exports.se_UpdateAgreementCommand = se_UpdateAgreementCommand;
|
|
530
374
|
const se_UpdateCertificateCommand = async (input, context) => {
|
|
531
|
-
const headers =
|
|
532
|
-
"content-type": "application/x-amz-json-1.1",
|
|
533
|
-
"x-amz-target": "TransferService.UpdateCertificate",
|
|
534
|
-
};
|
|
375
|
+
const headers = sharedHeaders("UpdateCertificate");
|
|
535
376
|
let body;
|
|
536
377
|
body = JSON.stringify(se_UpdateCertificateRequest(input, context));
|
|
537
378
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
538
379
|
};
|
|
539
380
|
exports.se_UpdateCertificateCommand = se_UpdateCertificateCommand;
|
|
540
381
|
const se_UpdateConnectorCommand = async (input, context) => {
|
|
541
|
-
const headers =
|
|
542
|
-
"content-type": "application/x-amz-json-1.1",
|
|
543
|
-
"x-amz-target": "TransferService.UpdateConnector",
|
|
544
|
-
};
|
|
382
|
+
const headers = sharedHeaders("UpdateConnector");
|
|
545
383
|
let body;
|
|
546
|
-
body = JSON.stringify(
|
|
384
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
547
385
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
548
386
|
};
|
|
549
387
|
exports.se_UpdateConnectorCommand = se_UpdateConnectorCommand;
|
|
550
388
|
const se_UpdateHostKeyCommand = async (input, context) => {
|
|
551
|
-
const headers =
|
|
552
|
-
"content-type": "application/x-amz-json-1.1",
|
|
553
|
-
"x-amz-target": "TransferService.UpdateHostKey",
|
|
554
|
-
};
|
|
389
|
+
const headers = sharedHeaders("UpdateHostKey");
|
|
555
390
|
let body;
|
|
556
|
-
body = JSON.stringify(
|
|
391
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
557
392
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
558
393
|
};
|
|
559
394
|
exports.se_UpdateHostKeyCommand = se_UpdateHostKeyCommand;
|
|
560
395
|
const se_UpdateProfileCommand = async (input, context) => {
|
|
561
|
-
const headers =
|
|
562
|
-
"content-type": "application/x-amz-json-1.1",
|
|
563
|
-
"x-amz-target": "TransferService.UpdateProfile",
|
|
564
|
-
};
|
|
396
|
+
const headers = sharedHeaders("UpdateProfile");
|
|
565
397
|
let body;
|
|
566
|
-
body = JSON.stringify(
|
|
398
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
567
399
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
568
400
|
};
|
|
569
401
|
exports.se_UpdateProfileCommand = se_UpdateProfileCommand;
|
|
570
402
|
const se_UpdateServerCommand = async (input, context) => {
|
|
571
|
-
const headers =
|
|
572
|
-
"content-type": "application/x-amz-json-1.1",
|
|
573
|
-
"x-amz-target": "TransferService.UpdateServer",
|
|
574
|
-
};
|
|
403
|
+
const headers = sharedHeaders("UpdateServer");
|
|
575
404
|
let body;
|
|
576
|
-
body = JSON.stringify(
|
|
405
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
577
406
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
578
407
|
};
|
|
579
408
|
exports.se_UpdateServerCommand = se_UpdateServerCommand;
|
|
580
409
|
const se_UpdateUserCommand = async (input, context) => {
|
|
581
|
-
const headers =
|
|
582
|
-
"content-type": "application/x-amz-json-1.1",
|
|
583
|
-
"x-amz-target": "TransferService.UpdateUser",
|
|
584
|
-
};
|
|
410
|
+
const headers = sharedHeaders("UpdateUser");
|
|
585
411
|
let body;
|
|
586
|
-
body = JSON.stringify(
|
|
412
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
587
413
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
588
414
|
};
|
|
589
415
|
exports.se_UpdateUserCommand = se_UpdateUserCommand;
|
|
@@ -593,12 +419,12 @@ const de_CreateAccessCommand = async (output, context) => {
|
|
|
593
419
|
}
|
|
594
420
|
const data = await parseBody(output.body, context);
|
|
595
421
|
let contents = {};
|
|
596
|
-
contents =
|
|
422
|
+
contents = (0, smithy_client_1._json)(data);
|
|
597
423
|
const response = {
|
|
598
424
|
$metadata: deserializeMetadata(output),
|
|
599
425
|
...contents,
|
|
600
426
|
};
|
|
601
|
-
return
|
|
427
|
+
return response;
|
|
602
428
|
};
|
|
603
429
|
exports.de_CreateAccessCommand = de_CreateAccessCommand;
|
|
604
430
|
const de_CreateAccessCommandError = async (output, context) => {
|
|
@@ -625,10 +451,9 @@ const de_CreateAccessCommandError = async (output, context) => {
|
|
|
625
451
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
626
452
|
default:
|
|
627
453
|
const parsedBody = parsedOutput.body;
|
|
628
|
-
|
|
454
|
+
return throwDefaultError({
|
|
629
455
|
output,
|
|
630
456
|
parsedBody,
|
|
631
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
632
457
|
errorCode,
|
|
633
458
|
});
|
|
634
459
|
}
|
|
@@ -639,12 +464,12 @@ const de_CreateAgreementCommand = async (output, context) => {
|
|
|
639
464
|
}
|
|
640
465
|
const data = await parseBody(output.body, context);
|
|
641
466
|
let contents = {};
|
|
642
|
-
contents =
|
|
467
|
+
contents = (0, smithy_client_1._json)(data);
|
|
643
468
|
const response = {
|
|
644
469
|
$metadata: deserializeMetadata(output),
|
|
645
470
|
...contents,
|
|
646
471
|
};
|
|
647
|
-
return
|
|
472
|
+
return response;
|
|
648
473
|
};
|
|
649
474
|
exports.de_CreateAgreementCommand = de_CreateAgreementCommand;
|
|
650
475
|
const de_CreateAgreementCommandError = async (output, context) => {
|
|
@@ -674,10 +499,9 @@ const de_CreateAgreementCommandError = async (output, context) => {
|
|
|
674
499
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
675
500
|
default:
|
|
676
501
|
const parsedBody = parsedOutput.body;
|
|
677
|
-
|
|
502
|
+
return throwDefaultError({
|
|
678
503
|
output,
|
|
679
504
|
parsedBody,
|
|
680
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
681
505
|
errorCode,
|
|
682
506
|
});
|
|
683
507
|
}
|
|
@@ -688,12 +512,12 @@ const de_CreateConnectorCommand = async (output, context) => {
|
|
|
688
512
|
}
|
|
689
513
|
const data = await parseBody(output.body, context);
|
|
690
514
|
let contents = {};
|
|
691
|
-
contents =
|
|
515
|
+
contents = (0, smithy_client_1._json)(data);
|
|
692
516
|
const response = {
|
|
693
517
|
$metadata: deserializeMetadata(output),
|
|
694
518
|
...contents,
|
|
695
519
|
};
|
|
696
|
-
return
|
|
520
|
+
return response;
|
|
697
521
|
};
|
|
698
522
|
exports.de_CreateConnectorCommand = de_CreateConnectorCommand;
|
|
699
523
|
const de_CreateConnectorCommandError = async (output, context) => {
|
|
@@ -723,10 +547,9 @@ const de_CreateConnectorCommandError = async (output, context) => {
|
|
|
723
547
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
724
548
|
default:
|
|
725
549
|
const parsedBody = parsedOutput.body;
|
|
726
|
-
|
|
550
|
+
return throwDefaultError({
|
|
727
551
|
output,
|
|
728
552
|
parsedBody,
|
|
729
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
730
553
|
errorCode,
|
|
731
554
|
});
|
|
732
555
|
}
|
|
@@ -737,12 +560,12 @@ const de_CreateProfileCommand = async (output, context) => {
|
|
|
737
560
|
}
|
|
738
561
|
const data = await parseBody(output.body, context);
|
|
739
562
|
let contents = {};
|
|
740
|
-
contents =
|
|
563
|
+
contents = (0, smithy_client_1._json)(data);
|
|
741
564
|
const response = {
|
|
742
565
|
$metadata: deserializeMetadata(output),
|
|
743
566
|
...contents,
|
|
744
567
|
};
|
|
745
|
-
return
|
|
568
|
+
return response;
|
|
746
569
|
};
|
|
747
570
|
exports.de_CreateProfileCommand = de_CreateProfileCommand;
|
|
748
571
|
const de_CreateProfileCommandError = async (output, context) => {
|
|
@@ -769,10 +592,9 @@ const de_CreateProfileCommandError = async (output, context) => {
|
|
|
769
592
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
770
593
|
default:
|
|
771
594
|
const parsedBody = parsedOutput.body;
|
|
772
|
-
|
|
595
|
+
return throwDefaultError({
|
|
773
596
|
output,
|
|
774
597
|
parsedBody,
|
|
775
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
776
598
|
errorCode,
|
|
777
599
|
});
|
|
778
600
|
}
|
|
@@ -783,12 +605,12 @@ const de_CreateServerCommand = async (output, context) => {
|
|
|
783
605
|
}
|
|
784
606
|
const data = await parseBody(output.body, context);
|
|
785
607
|
let contents = {};
|
|
786
|
-
contents =
|
|
608
|
+
contents = (0, smithy_client_1._json)(data);
|
|
787
609
|
const response = {
|
|
788
610
|
$metadata: deserializeMetadata(output),
|
|
789
611
|
...contents,
|
|
790
612
|
};
|
|
791
|
-
return
|
|
613
|
+
return response;
|
|
792
614
|
};
|
|
793
615
|
exports.de_CreateServerCommand = de_CreateServerCommand;
|
|
794
616
|
const de_CreateServerCommandError = async (output, context) => {
|
|
@@ -821,10 +643,9 @@ const de_CreateServerCommandError = async (output, context) => {
|
|
|
821
643
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
822
644
|
default:
|
|
823
645
|
const parsedBody = parsedOutput.body;
|
|
824
|
-
|
|
646
|
+
return throwDefaultError({
|
|
825
647
|
output,
|
|
826
648
|
parsedBody,
|
|
827
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
828
649
|
errorCode,
|
|
829
650
|
});
|
|
830
651
|
}
|
|
@@ -835,12 +656,12 @@ const de_CreateUserCommand = async (output, context) => {
|
|
|
835
656
|
}
|
|
836
657
|
const data = await parseBody(output.body, context);
|
|
837
658
|
let contents = {};
|
|
838
|
-
contents =
|
|
659
|
+
contents = (0, smithy_client_1._json)(data);
|
|
839
660
|
const response = {
|
|
840
661
|
$metadata: deserializeMetadata(output),
|
|
841
662
|
...contents,
|
|
842
663
|
};
|
|
843
|
-
return
|
|
664
|
+
return response;
|
|
844
665
|
};
|
|
845
666
|
exports.de_CreateUserCommand = de_CreateUserCommand;
|
|
846
667
|
const de_CreateUserCommandError = async (output, context) => {
|
|
@@ -867,10 +688,9 @@ const de_CreateUserCommandError = async (output, context) => {
|
|
|
867
688
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
868
689
|
default:
|
|
869
690
|
const parsedBody = parsedOutput.body;
|
|
870
|
-
|
|
691
|
+
return throwDefaultError({
|
|
871
692
|
output,
|
|
872
693
|
parsedBody,
|
|
873
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
874
694
|
errorCode,
|
|
875
695
|
});
|
|
876
696
|
}
|
|
@@ -881,12 +701,12 @@ const de_CreateWorkflowCommand = async (output, context) => {
|
|
|
881
701
|
}
|
|
882
702
|
const data = await parseBody(output.body, context);
|
|
883
703
|
let contents = {};
|
|
884
|
-
contents =
|
|
704
|
+
contents = (0, smithy_client_1._json)(data);
|
|
885
705
|
const response = {
|
|
886
706
|
$metadata: deserializeMetadata(output),
|
|
887
707
|
...contents,
|
|
888
708
|
};
|
|
889
|
-
return
|
|
709
|
+
return response;
|
|
890
710
|
};
|
|
891
711
|
exports.de_CreateWorkflowCommand = de_CreateWorkflowCommand;
|
|
892
712
|
const de_CreateWorkflowCommandError = async (output, context) => {
|
|
@@ -916,10 +736,9 @@ const de_CreateWorkflowCommandError = async (output, context) => {
|
|
|
916
736
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
917
737
|
default:
|
|
918
738
|
const parsedBody = parsedOutput.body;
|
|
919
|
-
|
|
739
|
+
return throwDefaultError({
|
|
920
740
|
output,
|
|
921
741
|
parsedBody,
|
|
922
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
923
742
|
errorCode,
|
|
924
743
|
});
|
|
925
744
|
}
|
|
@@ -932,7 +751,7 @@ const de_DeleteAccessCommand = async (output, context) => {
|
|
|
932
751
|
const response = {
|
|
933
752
|
$metadata: deserializeMetadata(output),
|
|
934
753
|
};
|
|
935
|
-
return
|
|
754
|
+
return response;
|
|
936
755
|
};
|
|
937
756
|
exports.de_DeleteAccessCommand = de_DeleteAccessCommand;
|
|
938
757
|
const de_DeleteAccessCommandError = async (output, context) => {
|
|
@@ -956,10 +775,9 @@ const de_DeleteAccessCommandError = async (output, context) => {
|
|
|
956
775
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
957
776
|
default:
|
|
958
777
|
const parsedBody = parsedOutput.body;
|
|
959
|
-
|
|
778
|
+
return throwDefaultError({
|
|
960
779
|
output,
|
|
961
780
|
parsedBody,
|
|
962
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
963
781
|
errorCode,
|
|
964
782
|
});
|
|
965
783
|
}
|
|
@@ -972,7 +790,7 @@ const de_DeleteAgreementCommand = async (output, context) => {
|
|
|
972
790
|
const response = {
|
|
973
791
|
$metadata: deserializeMetadata(output),
|
|
974
792
|
};
|
|
975
|
-
return
|
|
793
|
+
return response;
|
|
976
794
|
};
|
|
977
795
|
exports.de_DeleteAgreementCommand = de_DeleteAgreementCommand;
|
|
978
796
|
const de_DeleteAgreementCommandError = async (output, context) => {
|
|
@@ -996,10 +814,9 @@ const de_DeleteAgreementCommandError = async (output, context) => {
|
|
|
996
814
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
997
815
|
default:
|
|
998
816
|
const parsedBody = parsedOutput.body;
|
|
999
|
-
|
|
817
|
+
return throwDefaultError({
|
|
1000
818
|
output,
|
|
1001
819
|
parsedBody,
|
|
1002
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1003
820
|
errorCode,
|
|
1004
821
|
});
|
|
1005
822
|
}
|
|
@@ -1012,7 +829,7 @@ const de_DeleteCertificateCommand = async (output, context) => {
|
|
|
1012
829
|
const response = {
|
|
1013
830
|
$metadata: deserializeMetadata(output),
|
|
1014
831
|
};
|
|
1015
|
-
return
|
|
832
|
+
return response;
|
|
1016
833
|
};
|
|
1017
834
|
exports.de_DeleteCertificateCommand = de_DeleteCertificateCommand;
|
|
1018
835
|
const de_DeleteCertificateCommandError = async (output, context) => {
|
|
@@ -1036,10 +853,9 @@ const de_DeleteCertificateCommandError = async (output, context) => {
|
|
|
1036
853
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1037
854
|
default:
|
|
1038
855
|
const parsedBody = parsedOutput.body;
|
|
1039
|
-
|
|
856
|
+
return throwDefaultError({
|
|
1040
857
|
output,
|
|
1041
858
|
parsedBody,
|
|
1042
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1043
859
|
errorCode,
|
|
1044
860
|
});
|
|
1045
861
|
}
|
|
@@ -1052,7 +868,7 @@ const de_DeleteConnectorCommand = async (output, context) => {
|
|
|
1052
868
|
const response = {
|
|
1053
869
|
$metadata: deserializeMetadata(output),
|
|
1054
870
|
};
|
|
1055
|
-
return
|
|
871
|
+
return response;
|
|
1056
872
|
};
|
|
1057
873
|
exports.de_DeleteConnectorCommand = de_DeleteConnectorCommand;
|
|
1058
874
|
const de_DeleteConnectorCommandError = async (output, context) => {
|
|
@@ -1076,10 +892,9 @@ const de_DeleteConnectorCommandError = async (output, context) => {
|
|
|
1076
892
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1077
893
|
default:
|
|
1078
894
|
const parsedBody = parsedOutput.body;
|
|
1079
|
-
|
|
895
|
+
return throwDefaultError({
|
|
1080
896
|
output,
|
|
1081
897
|
parsedBody,
|
|
1082
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1083
898
|
errorCode,
|
|
1084
899
|
});
|
|
1085
900
|
}
|
|
@@ -1092,7 +907,7 @@ const de_DeleteHostKeyCommand = async (output, context) => {
|
|
|
1092
907
|
const response = {
|
|
1093
908
|
$metadata: deserializeMetadata(output),
|
|
1094
909
|
};
|
|
1095
|
-
return
|
|
910
|
+
return response;
|
|
1096
911
|
};
|
|
1097
912
|
exports.de_DeleteHostKeyCommand = de_DeleteHostKeyCommand;
|
|
1098
913
|
const de_DeleteHostKeyCommandError = async (output, context) => {
|
|
@@ -1119,10 +934,9 @@ const de_DeleteHostKeyCommandError = async (output, context) => {
|
|
|
1119
934
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1120
935
|
default:
|
|
1121
936
|
const parsedBody = parsedOutput.body;
|
|
1122
|
-
|
|
937
|
+
return throwDefaultError({
|
|
1123
938
|
output,
|
|
1124
939
|
parsedBody,
|
|
1125
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1126
940
|
errorCode,
|
|
1127
941
|
});
|
|
1128
942
|
}
|
|
@@ -1135,7 +949,7 @@ const de_DeleteProfileCommand = async (output, context) => {
|
|
|
1135
949
|
const response = {
|
|
1136
950
|
$metadata: deserializeMetadata(output),
|
|
1137
951
|
};
|
|
1138
|
-
return
|
|
952
|
+
return response;
|
|
1139
953
|
};
|
|
1140
954
|
exports.de_DeleteProfileCommand = de_DeleteProfileCommand;
|
|
1141
955
|
const de_DeleteProfileCommandError = async (output, context) => {
|
|
@@ -1159,10 +973,9 @@ const de_DeleteProfileCommandError = async (output, context) => {
|
|
|
1159
973
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1160
974
|
default:
|
|
1161
975
|
const parsedBody = parsedOutput.body;
|
|
1162
|
-
|
|
976
|
+
return throwDefaultError({
|
|
1163
977
|
output,
|
|
1164
978
|
parsedBody,
|
|
1165
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1166
979
|
errorCode,
|
|
1167
980
|
});
|
|
1168
981
|
}
|
|
@@ -1175,7 +988,7 @@ const de_DeleteServerCommand = async (output, context) => {
|
|
|
1175
988
|
const response = {
|
|
1176
989
|
$metadata: deserializeMetadata(output),
|
|
1177
990
|
};
|
|
1178
|
-
return
|
|
991
|
+
return response;
|
|
1179
992
|
};
|
|
1180
993
|
exports.de_DeleteServerCommand = de_DeleteServerCommand;
|
|
1181
994
|
const de_DeleteServerCommandError = async (output, context) => {
|
|
@@ -1202,10 +1015,9 @@ const de_DeleteServerCommandError = async (output, context) => {
|
|
|
1202
1015
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1203
1016
|
default:
|
|
1204
1017
|
const parsedBody = parsedOutput.body;
|
|
1205
|
-
|
|
1018
|
+
return throwDefaultError({
|
|
1206
1019
|
output,
|
|
1207
1020
|
parsedBody,
|
|
1208
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1209
1021
|
errorCode,
|
|
1210
1022
|
});
|
|
1211
1023
|
}
|
|
@@ -1218,7 +1030,7 @@ const de_DeleteSshPublicKeyCommand = async (output, context) => {
|
|
|
1218
1030
|
const response = {
|
|
1219
1031
|
$metadata: deserializeMetadata(output),
|
|
1220
1032
|
};
|
|
1221
|
-
return
|
|
1033
|
+
return response;
|
|
1222
1034
|
};
|
|
1223
1035
|
exports.de_DeleteSshPublicKeyCommand = de_DeleteSshPublicKeyCommand;
|
|
1224
1036
|
const de_DeleteSshPublicKeyCommandError = async (output, context) => {
|
|
@@ -1245,10 +1057,9 @@ const de_DeleteSshPublicKeyCommandError = async (output, context) => {
|
|
|
1245
1057
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1246
1058
|
default:
|
|
1247
1059
|
const parsedBody = parsedOutput.body;
|
|
1248
|
-
|
|
1060
|
+
return throwDefaultError({
|
|
1249
1061
|
output,
|
|
1250
1062
|
parsedBody,
|
|
1251
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1252
1063
|
errorCode,
|
|
1253
1064
|
});
|
|
1254
1065
|
}
|
|
@@ -1261,7 +1072,7 @@ const de_DeleteUserCommand = async (output, context) => {
|
|
|
1261
1072
|
const response = {
|
|
1262
1073
|
$metadata: deserializeMetadata(output),
|
|
1263
1074
|
};
|
|
1264
|
-
return
|
|
1075
|
+
return response;
|
|
1265
1076
|
};
|
|
1266
1077
|
exports.de_DeleteUserCommand = de_DeleteUserCommand;
|
|
1267
1078
|
const de_DeleteUserCommandError = async (output, context) => {
|
|
@@ -1285,10 +1096,9 @@ const de_DeleteUserCommandError = async (output, context) => {
|
|
|
1285
1096
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1286
1097
|
default:
|
|
1287
1098
|
const parsedBody = parsedOutput.body;
|
|
1288
|
-
|
|
1099
|
+
return throwDefaultError({
|
|
1289
1100
|
output,
|
|
1290
1101
|
parsedBody,
|
|
1291
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1292
1102
|
errorCode,
|
|
1293
1103
|
});
|
|
1294
1104
|
}
|
|
@@ -1301,7 +1111,7 @@ const de_DeleteWorkflowCommand = async (output, context) => {
|
|
|
1301
1111
|
const response = {
|
|
1302
1112
|
$metadata: deserializeMetadata(output),
|
|
1303
1113
|
};
|
|
1304
|
-
return
|
|
1114
|
+
return response;
|
|
1305
1115
|
};
|
|
1306
1116
|
exports.de_DeleteWorkflowCommand = de_DeleteWorkflowCommand;
|
|
1307
1117
|
const de_DeleteWorkflowCommandError = async (output, context) => {
|
|
@@ -1328,10 +1138,9 @@ const de_DeleteWorkflowCommandError = async (output, context) => {
|
|
|
1328
1138
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1329
1139
|
default:
|
|
1330
1140
|
const parsedBody = parsedOutput.body;
|
|
1331
|
-
|
|
1141
|
+
return throwDefaultError({
|
|
1332
1142
|
output,
|
|
1333
1143
|
parsedBody,
|
|
1334
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1335
1144
|
errorCode,
|
|
1336
1145
|
});
|
|
1337
1146
|
}
|
|
@@ -1342,12 +1151,12 @@ const de_DescribeAccessCommand = async (output, context) => {
|
|
|
1342
1151
|
}
|
|
1343
1152
|
const data = await parseBody(output.body, context);
|
|
1344
1153
|
let contents = {};
|
|
1345
|
-
contents =
|
|
1154
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1346
1155
|
const response = {
|
|
1347
1156
|
$metadata: deserializeMetadata(output),
|
|
1348
1157
|
...contents,
|
|
1349
1158
|
};
|
|
1350
|
-
return
|
|
1159
|
+
return response;
|
|
1351
1160
|
};
|
|
1352
1161
|
exports.de_DescribeAccessCommand = de_DescribeAccessCommand;
|
|
1353
1162
|
const de_DescribeAccessCommandError = async (output, context) => {
|
|
@@ -1371,10 +1180,9 @@ const de_DescribeAccessCommandError = async (output, context) => {
|
|
|
1371
1180
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1372
1181
|
default:
|
|
1373
1182
|
const parsedBody = parsedOutput.body;
|
|
1374
|
-
|
|
1183
|
+
return throwDefaultError({
|
|
1375
1184
|
output,
|
|
1376
1185
|
parsedBody,
|
|
1377
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1378
1186
|
errorCode,
|
|
1379
1187
|
});
|
|
1380
1188
|
}
|
|
@@ -1385,12 +1193,12 @@ const de_DescribeAgreementCommand = async (output, context) => {
|
|
|
1385
1193
|
}
|
|
1386
1194
|
const data = await parseBody(output.body, context);
|
|
1387
1195
|
let contents = {};
|
|
1388
|
-
contents =
|
|
1196
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1389
1197
|
const response = {
|
|
1390
1198
|
$metadata: deserializeMetadata(output),
|
|
1391
1199
|
...contents,
|
|
1392
1200
|
};
|
|
1393
|
-
return
|
|
1201
|
+
return response;
|
|
1394
1202
|
};
|
|
1395
1203
|
exports.de_DescribeAgreementCommand = de_DescribeAgreementCommand;
|
|
1396
1204
|
const de_DescribeAgreementCommandError = async (output, context) => {
|
|
@@ -1414,10 +1222,9 @@ const de_DescribeAgreementCommandError = async (output, context) => {
|
|
|
1414
1222
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1415
1223
|
default:
|
|
1416
1224
|
const parsedBody = parsedOutput.body;
|
|
1417
|
-
|
|
1225
|
+
return throwDefaultError({
|
|
1418
1226
|
output,
|
|
1419
1227
|
parsedBody,
|
|
1420
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1421
1228
|
errorCode,
|
|
1422
1229
|
});
|
|
1423
1230
|
}
|
|
@@ -1433,7 +1240,7 @@ const de_DescribeCertificateCommand = async (output, context) => {
|
|
|
1433
1240
|
$metadata: deserializeMetadata(output),
|
|
1434
1241
|
...contents,
|
|
1435
1242
|
};
|
|
1436
|
-
return
|
|
1243
|
+
return response;
|
|
1437
1244
|
};
|
|
1438
1245
|
exports.de_DescribeCertificateCommand = de_DescribeCertificateCommand;
|
|
1439
1246
|
const de_DescribeCertificateCommandError = async (output, context) => {
|
|
@@ -1457,10 +1264,9 @@ const de_DescribeCertificateCommandError = async (output, context) => {
|
|
|
1457
1264
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1458
1265
|
default:
|
|
1459
1266
|
const parsedBody = parsedOutput.body;
|
|
1460
|
-
|
|
1267
|
+
return throwDefaultError({
|
|
1461
1268
|
output,
|
|
1462
1269
|
parsedBody,
|
|
1463
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1464
1270
|
errorCode,
|
|
1465
1271
|
});
|
|
1466
1272
|
}
|
|
@@ -1471,12 +1277,12 @@ const de_DescribeConnectorCommand = async (output, context) => {
|
|
|
1471
1277
|
}
|
|
1472
1278
|
const data = await parseBody(output.body, context);
|
|
1473
1279
|
let contents = {};
|
|
1474
|
-
contents =
|
|
1280
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1475
1281
|
const response = {
|
|
1476
1282
|
$metadata: deserializeMetadata(output),
|
|
1477
1283
|
...contents,
|
|
1478
1284
|
};
|
|
1479
|
-
return
|
|
1285
|
+
return response;
|
|
1480
1286
|
};
|
|
1481
1287
|
exports.de_DescribeConnectorCommand = de_DescribeConnectorCommand;
|
|
1482
1288
|
const de_DescribeConnectorCommandError = async (output, context) => {
|
|
@@ -1500,10 +1306,9 @@ const de_DescribeConnectorCommandError = async (output, context) => {
|
|
|
1500
1306
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1501
1307
|
default:
|
|
1502
1308
|
const parsedBody = parsedOutput.body;
|
|
1503
|
-
|
|
1309
|
+
return throwDefaultError({
|
|
1504
1310
|
output,
|
|
1505
1311
|
parsedBody,
|
|
1506
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1507
1312
|
errorCode,
|
|
1508
1313
|
});
|
|
1509
1314
|
}
|
|
@@ -1514,12 +1319,12 @@ const de_DescribeExecutionCommand = async (output, context) => {
|
|
|
1514
1319
|
}
|
|
1515
1320
|
const data = await parseBody(output.body, context);
|
|
1516
1321
|
let contents = {};
|
|
1517
|
-
contents =
|
|
1322
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1518
1323
|
const response = {
|
|
1519
1324
|
$metadata: deserializeMetadata(output),
|
|
1520
1325
|
...contents,
|
|
1521
1326
|
};
|
|
1522
|
-
return
|
|
1327
|
+
return response;
|
|
1523
1328
|
};
|
|
1524
1329
|
exports.de_DescribeExecutionCommand = de_DescribeExecutionCommand;
|
|
1525
1330
|
const de_DescribeExecutionCommandError = async (output, context) => {
|
|
@@ -1543,10 +1348,9 @@ const de_DescribeExecutionCommandError = async (output, context) => {
|
|
|
1543
1348
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1544
1349
|
default:
|
|
1545
1350
|
const parsedBody = parsedOutput.body;
|
|
1546
|
-
|
|
1351
|
+
return throwDefaultError({
|
|
1547
1352
|
output,
|
|
1548
1353
|
parsedBody,
|
|
1549
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1550
1354
|
errorCode,
|
|
1551
1355
|
});
|
|
1552
1356
|
}
|
|
@@ -1562,7 +1366,7 @@ const de_DescribeHostKeyCommand = async (output, context) => {
|
|
|
1562
1366
|
$metadata: deserializeMetadata(output),
|
|
1563
1367
|
...contents,
|
|
1564
1368
|
};
|
|
1565
|
-
return
|
|
1369
|
+
return response;
|
|
1566
1370
|
};
|
|
1567
1371
|
exports.de_DescribeHostKeyCommand = de_DescribeHostKeyCommand;
|
|
1568
1372
|
const de_DescribeHostKeyCommandError = async (output, context) => {
|
|
@@ -1586,10 +1390,9 @@ const de_DescribeHostKeyCommandError = async (output, context) => {
|
|
|
1586
1390
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1587
1391
|
default:
|
|
1588
1392
|
const parsedBody = parsedOutput.body;
|
|
1589
|
-
|
|
1393
|
+
return throwDefaultError({
|
|
1590
1394
|
output,
|
|
1591
1395
|
parsedBody,
|
|
1592
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1593
1396
|
errorCode,
|
|
1594
1397
|
});
|
|
1595
1398
|
}
|
|
@@ -1600,12 +1403,12 @@ const de_DescribeProfileCommand = async (output, context) => {
|
|
|
1600
1403
|
}
|
|
1601
1404
|
const data = await parseBody(output.body, context);
|
|
1602
1405
|
let contents = {};
|
|
1603
|
-
contents =
|
|
1406
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1604
1407
|
const response = {
|
|
1605
1408
|
$metadata: deserializeMetadata(output),
|
|
1606
1409
|
...contents,
|
|
1607
1410
|
};
|
|
1608
|
-
return
|
|
1411
|
+
return response;
|
|
1609
1412
|
};
|
|
1610
1413
|
exports.de_DescribeProfileCommand = de_DescribeProfileCommand;
|
|
1611
1414
|
const de_DescribeProfileCommandError = async (output, context) => {
|
|
@@ -1629,10 +1432,9 @@ const de_DescribeProfileCommandError = async (output, context) => {
|
|
|
1629
1432
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1630
1433
|
default:
|
|
1631
1434
|
const parsedBody = parsedOutput.body;
|
|
1632
|
-
|
|
1435
|
+
return throwDefaultError({
|
|
1633
1436
|
output,
|
|
1634
1437
|
parsedBody,
|
|
1635
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1636
1438
|
errorCode,
|
|
1637
1439
|
});
|
|
1638
1440
|
}
|
|
@@ -1643,12 +1445,12 @@ const de_DescribeSecurityPolicyCommand = async (output, context) => {
|
|
|
1643
1445
|
}
|
|
1644
1446
|
const data = await parseBody(output.body, context);
|
|
1645
1447
|
let contents = {};
|
|
1646
|
-
contents =
|
|
1448
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1647
1449
|
const response = {
|
|
1648
1450
|
$metadata: deserializeMetadata(output),
|
|
1649
1451
|
...contents,
|
|
1650
1452
|
};
|
|
1651
|
-
return
|
|
1453
|
+
return response;
|
|
1652
1454
|
};
|
|
1653
1455
|
exports.de_DescribeSecurityPolicyCommand = de_DescribeSecurityPolicyCommand;
|
|
1654
1456
|
const de_DescribeSecurityPolicyCommandError = async (output, context) => {
|
|
@@ -1672,10 +1474,9 @@ const de_DescribeSecurityPolicyCommandError = async (output, context) => {
|
|
|
1672
1474
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1673
1475
|
default:
|
|
1674
1476
|
const parsedBody = parsedOutput.body;
|
|
1675
|
-
|
|
1477
|
+
return throwDefaultError({
|
|
1676
1478
|
output,
|
|
1677
1479
|
parsedBody,
|
|
1678
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1679
1480
|
errorCode,
|
|
1680
1481
|
});
|
|
1681
1482
|
}
|
|
@@ -1686,12 +1487,12 @@ const de_DescribeServerCommand = async (output, context) => {
|
|
|
1686
1487
|
}
|
|
1687
1488
|
const data = await parseBody(output.body, context);
|
|
1688
1489
|
let contents = {};
|
|
1689
|
-
contents =
|
|
1490
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1690
1491
|
const response = {
|
|
1691
1492
|
$metadata: deserializeMetadata(output),
|
|
1692
1493
|
...contents,
|
|
1693
1494
|
};
|
|
1694
|
-
return
|
|
1495
|
+
return response;
|
|
1695
1496
|
};
|
|
1696
1497
|
exports.de_DescribeServerCommand = de_DescribeServerCommand;
|
|
1697
1498
|
const de_DescribeServerCommandError = async (output, context) => {
|
|
@@ -1715,10 +1516,9 @@ const de_DescribeServerCommandError = async (output, context) => {
|
|
|
1715
1516
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1716
1517
|
default:
|
|
1717
1518
|
const parsedBody = parsedOutput.body;
|
|
1718
|
-
|
|
1519
|
+
return throwDefaultError({
|
|
1719
1520
|
output,
|
|
1720
1521
|
parsedBody,
|
|
1721
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1722
1522
|
errorCode,
|
|
1723
1523
|
});
|
|
1724
1524
|
}
|
|
@@ -1734,7 +1534,7 @@ const de_DescribeUserCommand = async (output, context) => {
|
|
|
1734
1534
|
$metadata: deserializeMetadata(output),
|
|
1735
1535
|
...contents,
|
|
1736
1536
|
};
|
|
1737
|
-
return
|
|
1537
|
+
return response;
|
|
1738
1538
|
};
|
|
1739
1539
|
exports.de_DescribeUserCommand = de_DescribeUserCommand;
|
|
1740
1540
|
const de_DescribeUserCommandError = async (output, context) => {
|
|
@@ -1758,10 +1558,9 @@ const de_DescribeUserCommandError = async (output, context) => {
|
|
|
1758
1558
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1759
1559
|
default:
|
|
1760
1560
|
const parsedBody = parsedOutput.body;
|
|
1761
|
-
|
|
1561
|
+
return throwDefaultError({
|
|
1762
1562
|
output,
|
|
1763
1563
|
parsedBody,
|
|
1764
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1765
1564
|
errorCode,
|
|
1766
1565
|
});
|
|
1767
1566
|
}
|
|
@@ -1772,12 +1571,12 @@ const de_DescribeWorkflowCommand = async (output, context) => {
|
|
|
1772
1571
|
}
|
|
1773
1572
|
const data = await parseBody(output.body, context);
|
|
1774
1573
|
let contents = {};
|
|
1775
|
-
contents =
|
|
1574
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1776
1575
|
const response = {
|
|
1777
1576
|
$metadata: deserializeMetadata(output),
|
|
1778
1577
|
...contents,
|
|
1779
1578
|
};
|
|
1780
|
-
return
|
|
1579
|
+
return response;
|
|
1781
1580
|
};
|
|
1782
1581
|
exports.de_DescribeWorkflowCommand = de_DescribeWorkflowCommand;
|
|
1783
1582
|
const de_DescribeWorkflowCommandError = async (output, context) => {
|
|
@@ -1801,10 +1600,9 @@ const de_DescribeWorkflowCommandError = async (output, context) => {
|
|
|
1801
1600
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1802
1601
|
default:
|
|
1803
1602
|
const parsedBody = parsedOutput.body;
|
|
1804
|
-
|
|
1603
|
+
return throwDefaultError({
|
|
1805
1604
|
output,
|
|
1806
1605
|
parsedBody,
|
|
1807
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1808
1606
|
errorCode,
|
|
1809
1607
|
});
|
|
1810
1608
|
}
|
|
@@ -1815,12 +1613,12 @@ const de_ImportCertificateCommand = async (output, context) => {
|
|
|
1815
1613
|
}
|
|
1816
1614
|
const data = await parseBody(output.body, context);
|
|
1817
1615
|
let contents = {};
|
|
1818
|
-
contents =
|
|
1616
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1819
1617
|
const response = {
|
|
1820
1618
|
$metadata: deserializeMetadata(output),
|
|
1821
1619
|
...contents,
|
|
1822
1620
|
};
|
|
1823
|
-
return
|
|
1621
|
+
return response;
|
|
1824
1622
|
};
|
|
1825
1623
|
exports.de_ImportCertificateCommand = de_ImportCertificateCommand;
|
|
1826
1624
|
const de_ImportCertificateCommandError = async (output, context) => {
|
|
@@ -1844,10 +1642,9 @@ const de_ImportCertificateCommandError = async (output, context) => {
|
|
|
1844
1642
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1845
1643
|
default:
|
|
1846
1644
|
const parsedBody = parsedOutput.body;
|
|
1847
|
-
|
|
1645
|
+
return throwDefaultError({
|
|
1848
1646
|
output,
|
|
1849
1647
|
parsedBody,
|
|
1850
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1851
1648
|
errorCode,
|
|
1852
1649
|
});
|
|
1853
1650
|
}
|
|
@@ -1858,12 +1655,12 @@ const de_ImportHostKeyCommand = async (output, context) => {
|
|
|
1858
1655
|
}
|
|
1859
1656
|
const data = await parseBody(output.body, context);
|
|
1860
1657
|
let contents = {};
|
|
1861
|
-
contents =
|
|
1658
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1862
1659
|
const response = {
|
|
1863
1660
|
$metadata: deserializeMetadata(output),
|
|
1864
1661
|
...contents,
|
|
1865
1662
|
};
|
|
1866
|
-
return
|
|
1663
|
+
return response;
|
|
1867
1664
|
};
|
|
1868
1665
|
exports.de_ImportHostKeyCommand = de_ImportHostKeyCommand;
|
|
1869
1666
|
const de_ImportHostKeyCommandError = async (output, context) => {
|
|
@@ -1893,10 +1690,9 @@ const de_ImportHostKeyCommandError = async (output, context) => {
|
|
|
1893
1690
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1894
1691
|
default:
|
|
1895
1692
|
const parsedBody = parsedOutput.body;
|
|
1896
|
-
|
|
1693
|
+
return throwDefaultError({
|
|
1897
1694
|
output,
|
|
1898
1695
|
parsedBody,
|
|
1899
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1900
1696
|
errorCode,
|
|
1901
1697
|
});
|
|
1902
1698
|
}
|
|
@@ -1907,12 +1703,12 @@ const de_ImportSshPublicKeyCommand = async (output, context) => {
|
|
|
1907
1703
|
}
|
|
1908
1704
|
const data = await parseBody(output.body, context);
|
|
1909
1705
|
let contents = {};
|
|
1910
|
-
contents =
|
|
1706
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1911
1707
|
const response = {
|
|
1912
1708
|
$metadata: deserializeMetadata(output),
|
|
1913
1709
|
...contents,
|
|
1914
1710
|
};
|
|
1915
|
-
return
|
|
1711
|
+
return response;
|
|
1916
1712
|
};
|
|
1917
1713
|
exports.de_ImportSshPublicKeyCommand = de_ImportSshPublicKeyCommand;
|
|
1918
1714
|
const de_ImportSshPublicKeyCommandError = async (output, context) => {
|
|
@@ -1942,10 +1738,9 @@ const de_ImportSshPublicKeyCommandError = async (output, context) => {
|
|
|
1942
1738
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1943
1739
|
default:
|
|
1944
1740
|
const parsedBody = parsedOutput.body;
|
|
1945
|
-
|
|
1741
|
+
return throwDefaultError({
|
|
1946
1742
|
output,
|
|
1947
1743
|
parsedBody,
|
|
1948
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1949
1744
|
errorCode,
|
|
1950
1745
|
});
|
|
1951
1746
|
}
|
|
@@ -1956,12 +1751,12 @@ const de_ListAccessesCommand = async (output, context) => {
|
|
|
1956
1751
|
}
|
|
1957
1752
|
const data = await parseBody(output.body, context);
|
|
1958
1753
|
let contents = {};
|
|
1959
|
-
contents =
|
|
1754
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1960
1755
|
const response = {
|
|
1961
1756
|
$metadata: deserializeMetadata(output),
|
|
1962
1757
|
...contents,
|
|
1963
1758
|
};
|
|
1964
|
-
return
|
|
1759
|
+
return response;
|
|
1965
1760
|
};
|
|
1966
1761
|
exports.de_ListAccessesCommand = de_ListAccessesCommand;
|
|
1967
1762
|
const de_ListAccessesCommandError = async (output, context) => {
|
|
@@ -1988,10 +1783,9 @@ const de_ListAccessesCommandError = async (output, context) => {
|
|
|
1988
1783
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1989
1784
|
default:
|
|
1990
1785
|
const parsedBody = parsedOutput.body;
|
|
1991
|
-
|
|
1786
|
+
return throwDefaultError({
|
|
1992
1787
|
output,
|
|
1993
1788
|
parsedBody,
|
|
1994
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1995
1789
|
errorCode,
|
|
1996
1790
|
});
|
|
1997
1791
|
}
|
|
@@ -2002,12 +1796,12 @@ const de_ListAgreementsCommand = async (output, context) => {
|
|
|
2002
1796
|
}
|
|
2003
1797
|
const data = await parseBody(output.body, context);
|
|
2004
1798
|
let contents = {};
|
|
2005
|
-
contents =
|
|
1799
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2006
1800
|
const response = {
|
|
2007
1801
|
$metadata: deserializeMetadata(output),
|
|
2008
1802
|
...contents,
|
|
2009
1803
|
};
|
|
2010
|
-
return
|
|
1804
|
+
return response;
|
|
2011
1805
|
};
|
|
2012
1806
|
exports.de_ListAgreementsCommand = de_ListAgreementsCommand;
|
|
2013
1807
|
const de_ListAgreementsCommandError = async (output, context) => {
|
|
@@ -2034,10 +1828,9 @@ const de_ListAgreementsCommandError = async (output, context) => {
|
|
|
2034
1828
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2035
1829
|
default:
|
|
2036
1830
|
const parsedBody = parsedOutput.body;
|
|
2037
|
-
|
|
1831
|
+
return throwDefaultError({
|
|
2038
1832
|
output,
|
|
2039
1833
|
parsedBody,
|
|
2040
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2041
1834
|
errorCode,
|
|
2042
1835
|
});
|
|
2043
1836
|
}
|
|
@@ -2053,7 +1846,7 @@ const de_ListCertificatesCommand = async (output, context) => {
|
|
|
2053
1846
|
$metadata: deserializeMetadata(output),
|
|
2054
1847
|
...contents,
|
|
2055
1848
|
};
|
|
2056
|
-
return
|
|
1849
|
+
return response;
|
|
2057
1850
|
};
|
|
2058
1851
|
exports.de_ListCertificatesCommand = de_ListCertificatesCommand;
|
|
2059
1852
|
const de_ListCertificatesCommandError = async (output, context) => {
|
|
@@ -2080,10 +1873,9 @@ const de_ListCertificatesCommandError = async (output, context) => {
|
|
|
2080
1873
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2081
1874
|
default:
|
|
2082
1875
|
const parsedBody = parsedOutput.body;
|
|
2083
|
-
|
|
1876
|
+
return throwDefaultError({
|
|
2084
1877
|
output,
|
|
2085
1878
|
parsedBody,
|
|
2086
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2087
1879
|
errorCode,
|
|
2088
1880
|
});
|
|
2089
1881
|
}
|
|
@@ -2094,12 +1886,12 @@ const de_ListConnectorsCommand = async (output, context) => {
|
|
|
2094
1886
|
}
|
|
2095
1887
|
const data = await parseBody(output.body, context);
|
|
2096
1888
|
let contents = {};
|
|
2097
|
-
contents =
|
|
1889
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2098
1890
|
const response = {
|
|
2099
1891
|
$metadata: deserializeMetadata(output),
|
|
2100
1892
|
...contents,
|
|
2101
1893
|
};
|
|
2102
|
-
return
|
|
1894
|
+
return response;
|
|
2103
1895
|
};
|
|
2104
1896
|
exports.de_ListConnectorsCommand = de_ListConnectorsCommand;
|
|
2105
1897
|
const de_ListConnectorsCommandError = async (output, context) => {
|
|
@@ -2126,10 +1918,9 @@ const de_ListConnectorsCommandError = async (output, context) => {
|
|
|
2126
1918
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2127
1919
|
default:
|
|
2128
1920
|
const parsedBody = parsedOutput.body;
|
|
2129
|
-
|
|
1921
|
+
return throwDefaultError({
|
|
2130
1922
|
output,
|
|
2131
1923
|
parsedBody,
|
|
2132
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2133
1924
|
errorCode,
|
|
2134
1925
|
});
|
|
2135
1926
|
}
|
|
@@ -2140,12 +1931,12 @@ const de_ListExecutionsCommand = async (output, context) => {
|
|
|
2140
1931
|
}
|
|
2141
1932
|
const data = await parseBody(output.body, context);
|
|
2142
1933
|
let contents = {};
|
|
2143
|
-
contents =
|
|
1934
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2144
1935
|
const response = {
|
|
2145
1936
|
$metadata: deserializeMetadata(output),
|
|
2146
1937
|
...contents,
|
|
2147
1938
|
};
|
|
2148
|
-
return
|
|
1939
|
+
return response;
|
|
2149
1940
|
};
|
|
2150
1941
|
exports.de_ListExecutionsCommand = de_ListExecutionsCommand;
|
|
2151
1942
|
const de_ListExecutionsCommandError = async (output, context) => {
|
|
@@ -2172,10 +1963,9 @@ const de_ListExecutionsCommandError = async (output, context) => {
|
|
|
2172
1963
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2173
1964
|
default:
|
|
2174
1965
|
const parsedBody = parsedOutput.body;
|
|
2175
|
-
|
|
1966
|
+
return throwDefaultError({
|
|
2176
1967
|
output,
|
|
2177
1968
|
parsedBody,
|
|
2178
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2179
1969
|
errorCode,
|
|
2180
1970
|
});
|
|
2181
1971
|
}
|
|
@@ -2191,7 +1981,7 @@ const de_ListHostKeysCommand = async (output, context) => {
|
|
|
2191
1981
|
$metadata: deserializeMetadata(output),
|
|
2192
1982
|
...contents,
|
|
2193
1983
|
};
|
|
2194
|
-
return
|
|
1984
|
+
return response;
|
|
2195
1985
|
};
|
|
2196
1986
|
exports.de_ListHostKeysCommand = de_ListHostKeysCommand;
|
|
2197
1987
|
const de_ListHostKeysCommandError = async (output, context) => {
|
|
@@ -2218,10 +2008,9 @@ const de_ListHostKeysCommandError = async (output, context) => {
|
|
|
2218
2008
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2219
2009
|
default:
|
|
2220
2010
|
const parsedBody = parsedOutput.body;
|
|
2221
|
-
|
|
2011
|
+
return throwDefaultError({
|
|
2222
2012
|
output,
|
|
2223
2013
|
parsedBody,
|
|
2224
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2225
2014
|
errorCode,
|
|
2226
2015
|
});
|
|
2227
2016
|
}
|
|
@@ -2232,12 +2021,12 @@ const de_ListProfilesCommand = async (output, context) => {
|
|
|
2232
2021
|
}
|
|
2233
2022
|
const data = await parseBody(output.body, context);
|
|
2234
2023
|
let contents = {};
|
|
2235
|
-
contents =
|
|
2024
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2236
2025
|
const response = {
|
|
2237
2026
|
$metadata: deserializeMetadata(output),
|
|
2238
2027
|
...contents,
|
|
2239
2028
|
};
|
|
2240
|
-
return
|
|
2029
|
+
return response;
|
|
2241
2030
|
};
|
|
2242
2031
|
exports.de_ListProfilesCommand = de_ListProfilesCommand;
|
|
2243
2032
|
const de_ListProfilesCommandError = async (output, context) => {
|
|
@@ -2264,10 +2053,9 @@ const de_ListProfilesCommandError = async (output, context) => {
|
|
|
2264
2053
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2265
2054
|
default:
|
|
2266
2055
|
const parsedBody = parsedOutput.body;
|
|
2267
|
-
|
|
2056
|
+
return throwDefaultError({
|
|
2268
2057
|
output,
|
|
2269
2058
|
parsedBody,
|
|
2270
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2271
2059
|
errorCode,
|
|
2272
2060
|
});
|
|
2273
2061
|
}
|
|
@@ -2278,12 +2066,12 @@ const de_ListSecurityPoliciesCommand = async (output, context) => {
|
|
|
2278
2066
|
}
|
|
2279
2067
|
const data = await parseBody(output.body, context);
|
|
2280
2068
|
let contents = {};
|
|
2281
|
-
contents =
|
|
2069
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2282
2070
|
const response = {
|
|
2283
2071
|
$metadata: deserializeMetadata(output),
|
|
2284
2072
|
...contents,
|
|
2285
2073
|
};
|
|
2286
|
-
return
|
|
2074
|
+
return response;
|
|
2287
2075
|
};
|
|
2288
2076
|
exports.de_ListSecurityPoliciesCommand = de_ListSecurityPoliciesCommand;
|
|
2289
2077
|
const de_ListSecurityPoliciesCommandError = async (output, context) => {
|
|
@@ -2307,10 +2095,9 @@ const de_ListSecurityPoliciesCommandError = async (output, context) => {
|
|
|
2307
2095
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2308
2096
|
default:
|
|
2309
2097
|
const parsedBody = parsedOutput.body;
|
|
2310
|
-
|
|
2098
|
+
return throwDefaultError({
|
|
2311
2099
|
output,
|
|
2312
2100
|
parsedBody,
|
|
2313
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2314
2101
|
errorCode,
|
|
2315
2102
|
});
|
|
2316
2103
|
}
|
|
@@ -2321,12 +2108,12 @@ const de_ListServersCommand = async (output, context) => {
|
|
|
2321
2108
|
}
|
|
2322
2109
|
const data = await parseBody(output.body, context);
|
|
2323
2110
|
let contents = {};
|
|
2324
|
-
contents =
|
|
2111
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2325
2112
|
const response = {
|
|
2326
2113
|
$metadata: deserializeMetadata(output),
|
|
2327
2114
|
...contents,
|
|
2328
2115
|
};
|
|
2329
|
-
return
|
|
2116
|
+
return response;
|
|
2330
2117
|
};
|
|
2331
2118
|
exports.de_ListServersCommand = de_ListServersCommand;
|
|
2332
2119
|
const de_ListServersCommandError = async (output, context) => {
|
|
@@ -2350,10 +2137,9 @@ const de_ListServersCommandError = async (output, context) => {
|
|
|
2350
2137
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2351
2138
|
default:
|
|
2352
2139
|
const parsedBody = parsedOutput.body;
|
|
2353
|
-
|
|
2140
|
+
return throwDefaultError({
|
|
2354
2141
|
output,
|
|
2355
2142
|
parsedBody,
|
|
2356
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2357
2143
|
errorCode,
|
|
2358
2144
|
});
|
|
2359
2145
|
}
|
|
@@ -2364,12 +2150,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2364
2150
|
}
|
|
2365
2151
|
const data = await parseBody(output.body, context);
|
|
2366
2152
|
let contents = {};
|
|
2367
|
-
contents =
|
|
2153
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2368
2154
|
const response = {
|
|
2369
2155
|
$metadata: deserializeMetadata(output),
|
|
2370
2156
|
...contents,
|
|
2371
2157
|
};
|
|
2372
|
-
return
|
|
2158
|
+
return response;
|
|
2373
2159
|
};
|
|
2374
2160
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2375
2161
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2393,10 +2179,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2393
2179
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2394
2180
|
default:
|
|
2395
2181
|
const parsedBody = parsedOutput.body;
|
|
2396
|
-
|
|
2182
|
+
return throwDefaultError({
|
|
2397
2183
|
output,
|
|
2398
2184
|
parsedBody,
|
|
2399
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2400
2185
|
errorCode,
|
|
2401
2186
|
});
|
|
2402
2187
|
}
|
|
@@ -2407,12 +2192,12 @@ const de_ListUsersCommand = async (output, context) => {
|
|
|
2407
2192
|
}
|
|
2408
2193
|
const data = await parseBody(output.body, context);
|
|
2409
2194
|
let contents = {};
|
|
2410
|
-
contents =
|
|
2195
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2411
2196
|
const response = {
|
|
2412
2197
|
$metadata: deserializeMetadata(output),
|
|
2413
2198
|
...contents,
|
|
2414
2199
|
};
|
|
2415
|
-
return
|
|
2200
|
+
return response;
|
|
2416
2201
|
};
|
|
2417
2202
|
exports.de_ListUsersCommand = de_ListUsersCommand;
|
|
2418
2203
|
const de_ListUsersCommandError = async (output, context) => {
|
|
@@ -2439,10 +2224,9 @@ const de_ListUsersCommandError = async (output, context) => {
|
|
|
2439
2224
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2440
2225
|
default:
|
|
2441
2226
|
const parsedBody = parsedOutput.body;
|
|
2442
|
-
|
|
2227
|
+
return throwDefaultError({
|
|
2443
2228
|
output,
|
|
2444
2229
|
parsedBody,
|
|
2445
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2446
2230
|
errorCode,
|
|
2447
2231
|
});
|
|
2448
2232
|
}
|
|
@@ -2453,12 +2237,12 @@ const de_ListWorkflowsCommand = async (output, context) => {
|
|
|
2453
2237
|
}
|
|
2454
2238
|
const data = await parseBody(output.body, context);
|
|
2455
2239
|
let contents = {};
|
|
2456
|
-
contents =
|
|
2240
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2457
2241
|
const response = {
|
|
2458
2242
|
$metadata: deserializeMetadata(output),
|
|
2459
2243
|
...contents,
|
|
2460
2244
|
};
|
|
2461
|
-
return
|
|
2245
|
+
return response;
|
|
2462
2246
|
};
|
|
2463
2247
|
exports.de_ListWorkflowsCommand = de_ListWorkflowsCommand;
|
|
2464
2248
|
const de_ListWorkflowsCommandError = async (output, context) => {
|
|
@@ -2482,10 +2266,9 @@ const de_ListWorkflowsCommandError = async (output, context) => {
|
|
|
2482
2266
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2483
2267
|
default:
|
|
2484
2268
|
const parsedBody = parsedOutput.body;
|
|
2485
|
-
|
|
2269
|
+
return throwDefaultError({
|
|
2486
2270
|
output,
|
|
2487
2271
|
parsedBody,
|
|
2488
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2489
2272
|
errorCode,
|
|
2490
2273
|
});
|
|
2491
2274
|
}
|
|
@@ -2496,12 +2279,12 @@ const de_SendWorkflowStepStateCommand = async (output, context) => {
|
|
|
2496
2279
|
}
|
|
2497
2280
|
const data = await parseBody(output.body, context);
|
|
2498
2281
|
let contents = {};
|
|
2499
|
-
contents =
|
|
2282
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2500
2283
|
const response = {
|
|
2501
2284
|
$metadata: deserializeMetadata(output),
|
|
2502
2285
|
...contents,
|
|
2503
2286
|
};
|
|
2504
|
-
return
|
|
2287
|
+
return response;
|
|
2505
2288
|
};
|
|
2506
2289
|
exports.de_SendWorkflowStepStateCommand = de_SendWorkflowStepStateCommand;
|
|
2507
2290
|
const de_SendWorkflowStepStateCommandError = async (output, context) => {
|
|
@@ -2531,10 +2314,9 @@ const de_SendWorkflowStepStateCommandError = async (output, context) => {
|
|
|
2531
2314
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2532
2315
|
default:
|
|
2533
2316
|
const parsedBody = parsedOutput.body;
|
|
2534
|
-
|
|
2317
|
+
return throwDefaultError({
|
|
2535
2318
|
output,
|
|
2536
2319
|
parsedBody,
|
|
2537
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2538
2320
|
errorCode,
|
|
2539
2321
|
});
|
|
2540
2322
|
}
|
|
@@ -2545,12 +2327,12 @@ const de_StartFileTransferCommand = async (output, context) => {
|
|
|
2545
2327
|
}
|
|
2546
2328
|
const data = await parseBody(output.body, context);
|
|
2547
2329
|
let contents = {};
|
|
2548
|
-
contents =
|
|
2330
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2549
2331
|
const response = {
|
|
2550
2332
|
$metadata: deserializeMetadata(output),
|
|
2551
2333
|
...contents,
|
|
2552
2334
|
};
|
|
2553
|
-
return
|
|
2335
|
+
return response;
|
|
2554
2336
|
};
|
|
2555
2337
|
exports.de_StartFileTransferCommand = de_StartFileTransferCommand;
|
|
2556
2338
|
const de_StartFileTransferCommandError = async (output, context) => {
|
|
@@ -2577,10 +2359,9 @@ const de_StartFileTransferCommandError = async (output, context) => {
|
|
|
2577
2359
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2578
2360
|
default:
|
|
2579
2361
|
const parsedBody = parsedOutput.body;
|
|
2580
|
-
|
|
2362
|
+
return throwDefaultError({
|
|
2581
2363
|
output,
|
|
2582
2364
|
parsedBody,
|
|
2583
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2584
2365
|
errorCode,
|
|
2585
2366
|
});
|
|
2586
2367
|
}
|
|
@@ -2593,7 +2374,7 @@ const de_StartServerCommand = async (output, context) => {
|
|
|
2593
2374
|
const response = {
|
|
2594
2375
|
$metadata: deserializeMetadata(output),
|
|
2595
2376
|
};
|
|
2596
|
-
return
|
|
2377
|
+
return response;
|
|
2597
2378
|
};
|
|
2598
2379
|
exports.de_StartServerCommand = de_StartServerCommand;
|
|
2599
2380
|
const de_StartServerCommandError = async (output, context) => {
|
|
@@ -2620,10 +2401,9 @@ const de_StartServerCommandError = async (output, context) => {
|
|
|
2620
2401
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2621
2402
|
default:
|
|
2622
2403
|
const parsedBody = parsedOutput.body;
|
|
2623
|
-
|
|
2404
|
+
return throwDefaultError({
|
|
2624
2405
|
output,
|
|
2625
2406
|
parsedBody,
|
|
2626
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2627
2407
|
errorCode,
|
|
2628
2408
|
});
|
|
2629
2409
|
}
|
|
@@ -2636,7 +2416,7 @@ const de_StopServerCommand = async (output, context) => {
|
|
|
2636
2416
|
const response = {
|
|
2637
2417
|
$metadata: deserializeMetadata(output),
|
|
2638
2418
|
};
|
|
2639
|
-
return
|
|
2419
|
+
return response;
|
|
2640
2420
|
};
|
|
2641
2421
|
exports.de_StopServerCommand = de_StopServerCommand;
|
|
2642
2422
|
const de_StopServerCommandError = async (output, context) => {
|
|
@@ -2663,10 +2443,9 @@ const de_StopServerCommandError = async (output, context) => {
|
|
|
2663
2443
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2664
2444
|
default:
|
|
2665
2445
|
const parsedBody = parsedOutput.body;
|
|
2666
|
-
|
|
2446
|
+
return throwDefaultError({
|
|
2667
2447
|
output,
|
|
2668
2448
|
parsedBody,
|
|
2669
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2670
2449
|
errorCode,
|
|
2671
2450
|
});
|
|
2672
2451
|
}
|
|
@@ -2679,7 +2458,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2679
2458
|
const response = {
|
|
2680
2459
|
$metadata: deserializeMetadata(output),
|
|
2681
2460
|
};
|
|
2682
|
-
return
|
|
2461
|
+
return response;
|
|
2683
2462
|
};
|
|
2684
2463
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2685
2464
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -2703,10 +2482,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2703
2482
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2704
2483
|
default:
|
|
2705
2484
|
const parsedBody = parsedOutput.body;
|
|
2706
|
-
|
|
2485
|
+
return throwDefaultError({
|
|
2707
2486
|
output,
|
|
2708
2487
|
parsedBody,
|
|
2709
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2710
2488
|
errorCode,
|
|
2711
2489
|
});
|
|
2712
2490
|
}
|
|
@@ -2717,12 +2495,12 @@ const de_TestIdentityProviderCommand = async (output, context) => {
|
|
|
2717
2495
|
}
|
|
2718
2496
|
const data = await parseBody(output.body, context);
|
|
2719
2497
|
let contents = {};
|
|
2720
|
-
contents =
|
|
2498
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2721
2499
|
const response = {
|
|
2722
2500
|
$metadata: deserializeMetadata(output),
|
|
2723
2501
|
...contents,
|
|
2724
2502
|
};
|
|
2725
|
-
return
|
|
2503
|
+
return response;
|
|
2726
2504
|
};
|
|
2727
2505
|
exports.de_TestIdentityProviderCommand = de_TestIdentityProviderCommand;
|
|
2728
2506
|
const de_TestIdentityProviderCommandError = async (output, context) => {
|
|
@@ -2746,10 +2524,9 @@ const de_TestIdentityProviderCommandError = async (output, context) => {
|
|
|
2746
2524
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2747
2525
|
default:
|
|
2748
2526
|
const parsedBody = parsedOutput.body;
|
|
2749
|
-
|
|
2527
|
+
return throwDefaultError({
|
|
2750
2528
|
output,
|
|
2751
2529
|
parsedBody,
|
|
2752
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2753
2530
|
errorCode,
|
|
2754
2531
|
});
|
|
2755
2532
|
}
|
|
@@ -2762,7 +2539,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2762
2539
|
const response = {
|
|
2763
2540
|
$metadata: deserializeMetadata(output),
|
|
2764
2541
|
};
|
|
2765
|
-
return
|
|
2542
|
+
return response;
|
|
2766
2543
|
};
|
|
2767
2544
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2768
2545
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -2786,10 +2563,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2786
2563
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2787
2564
|
default:
|
|
2788
2565
|
const parsedBody = parsedOutput.body;
|
|
2789
|
-
|
|
2566
|
+
return throwDefaultError({
|
|
2790
2567
|
output,
|
|
2791
2568
|
parsedBody,
|
|
2792
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2793
2569
|
errorCode,
|
|
2794
2570
|
});
|
|
2795
2571
|
}
|
|
@@ -2800,12 +2576,12 @@ const de_UpdateAccessCommand = async (output, context) => {
|
|
|
2800
2576
|
}
|
|
2801
2577
|
const data = await parseBody(output.body, context);
|
|
2802
2578
|
let contents = {};
|
|
2803
|
-
contents =
|
|
2579
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2804
2580
|
const response = {
|
|
2805
2581
|
$metadata: deserializeMetadata(output),
|
|
2806
2582
|
...contents,
|
|
2807
2583
|
};
|
|
2808
|
-
return
|
|
2584
|
+
return response;
|
|
2809
2585
|
};
|
|
2810
2586
|
exports.de_UpdateAccessCommand = de_UpdateAccessCommand;
|
|
2811
2587
|
const de_UpdateAccessCommandError = async (output, context) => {
|
|
@@ -2835,10 +2611,9 @@ const de_UpdateAccessCommandError = async (output, context) => {
|
|
|
2835
2611
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2836
2612
|
default:
|
|
2837
2613
|
const parsedBody = parsedOutput.body;
|
|
2838
|
-
|
|
2614
|
+
return throwDefaultError({
|
|
2839
2615
|
output,
|
|
2840
2616
|
parsedBody,
|
|
2841
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2842
2617
|
errorCode,
|
|
2843
2618
|
});
|
|
2844
2619
|
}
|
|
@@ -2849,12 +2624,12 @@ const de_UpdateAgreementCommand = async (output, context) => {
|
|
|
2849
2624
|
}
|
|
2850
2625
|
const data = await parseBody(output.body, context);
|
|
2851
2626
|
let contents = {};
|
|
2852
|
-
contents =
|
|
2627
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2853
2628
|
const response = {
|
|
2854
2629
|
$metadata: deserializeMetadata(output),
|
|
2855
2630
|
...contents,
|
|
2856
2631
|
};
|
|
2857
|
-
return
|
|
2632
|
+
return response;
|
|
2858
2633
|
};
|
|
2859
2634
|
exports.de_UpdateAgreementCommand = de_UpdateAgreementCommand;
|
|
2860
2635
|
const de_UpdateAgreementCommandError = async (output, context) => {
|
|
@@ -2884,10 +2659,9 @@ const de_UpdateAgreementCommandError = async (output, context) => {
|
|
|
2884
2659
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2885
2660
|
default:
|
|
2886
2661
|
const parsedBody = parsedOutput.body;
|
|
2887
|
-
|
|
2662
|
+
return throwDefaultError({
|
|
2888
2663
|
output,
|
|
2889
2664
|
parsedBody,
|
|
2890
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2891
2665
|
errorCode,
|
|
2892
2666
|
});
|
|
2893
2667
|
}
|
|
@@ -2898,12 +2672,12 @@ const de_UpdateCertificateCommand = async (output, context) => {
|
|
|
2898
2672
|
}
|
|
2899
2673
|
const data = await parseBody(output.body, context);
|
|
2900
2674
|
let contents = {};
|
|
2901
|
-
contents =
|
|
2675
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2902
2676
|
const response = {
|
|
2903
2677
|
$metadata: deserializeMetadata(output),
|
|
2904
2678
|
...contents,
|
|
2905
2679
|
};
|
|
2906
|
-
return
|
|
2680
|
+
return response;
|
|
2907
2681
|
};
|
|
2908
2682
|
exports.de_UpdateCertificateCommand = de_UpdateCertificateCommand;
|
|
2909
2683
|
const de_UpdateCertificateCommandError = async (output, context) => {
|
|
@@ -2930,10 +2704,9 @@ const de_UpdateCertificateCommandError = async (output, context) => {
|
|
|
2930
2704
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2931
2705
|
default:
|
|
2932
2706
|
const parsedBody = parsedOutput.body;
|
|
2933
|
-
|
|
2707
|
+
return throwDefaultError({
|
|
2934
2708
|
output,
|
|
2935
2709
|
parsedBody,
|
|
2936
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2937
2710
|
errorCode,
|
|
2938
2711
|
});
|
|
2939
2712
|
}
|
|
@@ -2944,12 +2717,12 @@ const de_UpdateConnectorCommand = async (output, context) => {
|
|
|
2944
2717
|
}
|
|
2945
2718
|
const data = await parseBody(output.body, context);
|
|
2946
2719
|
let contents = {};
|
|
2947
|
-
contents =
|
|
2720
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2948
2721
|
const response = {
|
|
2949
2722
|
$metadata: deserializeMetadata(output),
|
|
2950
2723
|
...contents,
|
|
2951
2724
|
};
|
|
2952
|
-
return
|
|
2725
|
+
return response;
|
|
2953
2726
|
};
|
|
2954
2727
|
exports.de_UpdateConnectorCommand = de_UpdateConnectorCommand;
|
|
2955
2728
|
const de_UpdateConnectorCommandError = async (output, context) => {
|
|
@@ -2979,10 +2752,9 @@ const de_UpdateConnectorCommandError = async (output, context) => {
|
|
|
2979
2752
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2980
2753
|
default:
|
|
2981
2754
|
const parsedBody = parsedOutput.body;
|
|
2982
|
-
|
|
2755
|
+
return throwDefaultError({
|
|
2983
2756
|
output,
|
|
2984
2757
|
parsedBody,
|
|
2985
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2986
2758
|
errorCode,
|
|
2987
2759
|
});
|
|
2988
2760
|
}
|
|
@@ -2993,12 +2765,12 @@ const de_UpdateHostKeyCommand = async (output, context) => {
|
|
|
2993
2765
|
}
|
|
2994
2766
|
const data = await parseBody(output.body, context);
|
|
2995
2767
|
let contents = {};
|
|
2996
|
-
contents =
|
|
2768
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2997
2769
|
const response = {
|
|
2998
2770
|
$metadata: deserializeMetadata(output),
|
|
2999
2771
|
...contents,
|
|
3000
2772
|
};
|
|
3001
|
-
return
|
|
2773
|
+
return response;
|
|
3002
2774
|
};
|
|
3003
2775
|
exports.de_UpdateHostKeyCommand = de_UpdateHostKeyCommand;
|
|
3004
2776
|
const de_UpdateHostKeyCommandError = async (output, context) => {
|
|
@@ -3025,10 +2797,9 @@ const de_UpdateHostKeyCommandError = async (output, context) => {
|
|
|
3025
2797
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3026
2798
|
default:
|
|
3027
2799
|
const parsedBody = parsedOutput.body;
|
|
3028
|
-
|
|
2800
|
+
return throwDefaultError({
|
|
3029
2801
|
output,
|
|
3030
2802
|
parsedBody,
|
|
3031
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
3032
2803
|
errorCode,
|
|
3033
2804
|
});
|
|
3034
2805
|
}
|
|
@@ -3039,12 +2810,12 @@ const de_UpdateProfileCommand = async (output, context) => {
|
|
|
3039
2810
|
}
|
|
3040
2811
|
const data = await parseBody(output.body, context);
|
|
3041
2812
|
let contents = {};
|
|
3042
|
-
contents =
|
|
2813
|
+
contents = (0, smithy_client_1._json)(data);
|
|
3043
2814
|
const response = {
|
|
3044
2815
|
$metadata: deserializeMetadata(output),
|
|
3045
2816
|
...contents,
|
|
3046
2817
|
};
|
|
3047
|
-
return
|
|
2818
|
+
return response;
|
|
3048
2819
|
};
|
|
3049
2820
|
exports.de_UpdateProfileCommand = de_UpdateProfileCommand;
|
|
3050
2821
|
const de_UpdateProfileCommandError = async (output, context) => {
|
|
@@ -3071,10 +2842,9 @@ const de_UpdateProfileCommandError = async (output, context) => {
|
|
|
3071
2842
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3072
2843
|
default:
|
|
3073
2844
|
const parsedBody = parsedOutput.body;
|
|
3074
|
-
|
|
2845
|
+
return throwDefaultError({
|
|
3075
2846
|
output,
|
|
3076
2847
|
parsedBody,
|
|
3077
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
3078
2848
|
errorCode,
|
|
3079
2849
|
});
|
|
3080
2850
|
}
|
|
@@ -3085,12 +2855,12 @@ const de_UpdateServerCommand = async (output, context) => {
|
|
|
3085
2855
|
}
|
|
3086
2856
|
const data = await parseBody(output.body, context);
|
|
3087
2857
|
let contents = {};
|
|
3088
|
-
contents =
|
|
2858
|
+
contents = (0, smithy_client_1._json)(data);
|
|
3089
2859
|
const response = {
|
|
3090
2860
|
$metadata: deserializeMetadata(output),
|
|
3091
2861
|
...contents,
|
|
3092
2862
|
};
|
|
3093
|
-
return
|
|
2863
|
+
return response;
|
|
3094
2864
|
};
|
|
3095
2865
|
exports.de_UpdateServerCommand = de_UpdateServerCommand;
|
|
3096
2866
|
const de_UpdateServerCommandError = async (output, context) => {
|
|
@@ -3126,10 +2896,9 @@ const de_UpdateServerCommandError = async (output, context) => {
|
|
|
3126
2896
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3127
2897
|
default:
|
|
3128
2898
|
const parsedBody = parsedOutput.body;
|
|
3129
|
-
|
|
2899
|
+
return throwDefaultError({
|
|
3130
2900
|
output,
|
|
3131
2901
|
parsedBody,
|
|
3132
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
3133
2902
|
errorCode,
|
|
3134
2903
|
});
|
|
3135
2904
|
}
|
|
@@ -3140,12 +2909,12 @@ const de_UpdateUserCommand = async (output, context) => {
|
|
|
3140
2909
|
}
|
|
3141
2910
|
const data = await parseBody(output.body, context);
|
|
3142
2911
|
let contents = {};
|
|
3143
|
-
contents =
|
|
2912
|
+
contents = (0, smithy_client_1._json)(data);
|
|
3144
2913
|
const response = {
|
|
3145
2914
|
$metadata: deserializeMetadata(output),
|
|
3146
2915
|
...contents,
|
|
3147
2916
|
};
|
|
3148
|
-
return
|
|
2917
|
+
return response;
|
|
3149
2918
|
};
|
|
3150
2919
|
exports.de_UpdateUserCommand = de_UpdateUserCommand;
|
|
3151
2920
|
const de_UpdateUserCommandError = async (output, context) => {
|
|
@@ -3172,17 +2941,16 @@ const de_UpdateUserCommandError = async (output, context) => {
|
|
|
3172
2941
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3173
2942
|
default:
|
|
3174
2943
|
const parsedBody = parsedOutput.body;
|
|
3175
|
-
|
|
2944
|
+
return throwDefaultError({
|
|
3176
2945
|
output,
|
|
3177
2946
|
parsedBody,
|
|
3178
|
-
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
3179
2947
|
errorCode,
|
|
3180
2948
|
});
|
|
3181
2949
|
}
|
|
3182
2950
|
};
|
|
3183
2951
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3184
2952
|
const body = parsedOutput.body;
|
|
3185
|
-
const deserialized =
|
|
2953
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3186
2954
|
const exception = new models_0_1.AccessDeniedException({
|
|
3187
2955
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3188
2956
|
...deserialized,
|
|
@@ -3191,7 +2959,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
3191
2959
|
};
|
|
3192
2960
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3193
2961
|
const body = parsedOutput.body;
|
|
3194
|
-
const deserialized =
|
|
2962
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3195
2963
|
const exception = new models_0_1.ConflictException({
|
|
3196
2964
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3197
2965
|
...deserialized,
|
|
@@ -3200,7 +2968,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
3200
2968
|
};
|
|
3201
2969
|
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
3202
2970
|
const body = parsedOutput.body;
|
|
3203
|
-
const deserialized =
|
|
2971
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3204
2972
|
const exception = new models_0_1.InternalServiceError({
|
|
3205
2973
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3206
2974
|
...deserialized,
|
|
@@ -3209,7 +2977,7 @@ const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
|
3209
2977
|
};
|
|
3210
2978
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
3211
2979
|
const body = parsedOutput.body;
|
|
3212
|
-
const deserialized =
|
|
2980
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3213
2981
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
3214
2982
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3215
2983
|
...deserialized,
|
|
@@ -3218,7 +2986,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
3218
2986
|
};
|
|
3219
2987
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
3220
2988
|
const body = parsedOutput.body;
|
|
3221
|
-
const deserialized =
|
|
2989
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3222
2990
|
const exception = new models_0_1.InvalidRequestException({
|
|
3223
2991
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3224
2992
|
...deserialized,
|
|
@@ -3227,7 +2995,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
3227
2995
|
};
|
|
3228
2996
|
const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
|
|
3229
2997
|
const body = parsedOutput.body;
|
|
3230
|
-
const deserialized =
|
|
2998
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3231
2999
|
const exception = new models_0_1.ResourceExistsException({
|
|
3232
3000
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3233
3001
|
...deserialized,
|
|
@@ -3236,7 +3004,7 @@ const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
3236
3004
|
};
|
|
3237
3005
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3238
3006
|
const body = parsedOutput.body;
|
|
3239
|
-
const deserialized =
|
|
3007
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3240
3008
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
3241
3009
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3242
3010
|
...deserialized,
|
|
@@ -3245,7 +3013,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3245
3013
|
};
|
|
3246
3014
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3247
3015
|
const body = parsedOutput.body;
|
|
3248
|
-
const deserialized =
|
|
3016
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3249
3017
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
3250
3018
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3251
3019
|
...deserialized,
|
|
@@ -3254,1809 +3022,196 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
3254
3022
|
};
|
|
3255
3023
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3256
3024
|
const body = parsedOutput.body;
|
|
3257
|
-
const deserialized =
|
|
3025
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3258
3026
|
const exception = new models_0_1.ThrottlingException({
|
|
3259
3027
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3260
3028
|
...deserialized,
|
|
3261
3029
|
});
|
|
3262
3030
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3263
3031
|
};
|
|
3264
|
-
const
|
|
3265
|
-
return input
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3032
|
+
const se_ImportCertificateRequest = (input, context) => {
|
|
3033
|
+
return (0, smithy_client_1.take)(input, {
|
|
3034
|
+
ActiveDate: (_) => Math.round(_.getTime() / 1000),
|
|
3035
|
+
Certificate: [],
|
|
3036
|
+
CertificateChain: [],
|
|
3037
|
+
Description: [],
|
|
3038
|
+
InactiveDate: (_) => Math.round(_.getTime() / 1000),
|
|
3039
|
+
PrivateKey: [],
|
|
3040
|
+
Tags: smithy_client_1._json,
|
|
3041
|
+
Usage: [],
|
|
3269
3042
|
});
|
|
3270
3043
|
};
|
|
3271
|
-
const
|
|
3272
|
-
return {
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
...(input.MdnSigningAlgorithm != null && { MdnSigningAlgorithm: input.MdnSigningAlgorithm }),
|
|
3278
|
-
...(input.MessageSubject != null && { MessageSubject: input.MessageSubject }),
|
|
3279
|
-
...(input.PartnerProfileId != null && { PartnerProfileId: input.PartnerProfileId }),
|
|
3280
|
-
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
3281
|
-
};
|
|
3282
|
-
};
|
|
3283
|
-
const se_As2Transports = (input, context) => {
|
|
3284
|
-
return input
|
|
3285
|
-
.filter((e) => e != null)
|
|
3286
|
-
.map((entry) => {
|
|
3287
|
-
return entry;
|
|
3044
|
+
const se_UpdateCertificateRequest = (input, context) => {
|
|
3045
|
+
return (0, smithy_client_1.take)(input, {
|
|
3046
|
+
ActiveDate: (_) => Math.round(_.getTime() / 1000),
|
|
3047
|
+
CertificateId: [],
|
|
3048
|
+
Description: [],
|
|
3049
|
+
InactiveDate: (_) => Math.round(_.getTime() / 1000),
|
|
3288
3050
|
});
|
|
3289
3051
|
};
|
|
3290
|
-
const
|
|
3291
|
-
return
|
|
3292
|
-
|
|
3293
|
-
.map((entry) => {
|
|
3294
|
-
return entry;
|
|
3052
|
+
const de_DescribeCertificateResponse = (output, context) => {
|
|
3053
|
+
return (0, smithy_client_1.take)(output, {
|
|
3054
|
+
Certificate: (_) => de_DescribedCertificate(_, context),
|
|
3295
3055
|
});
|
|
3296
3056
|
};
|
|
3297
|
-
const
|
|
3298
|
-
return {
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
...(input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType }),
|
|
3315
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3316
|
-
...(input.PosixProfile != null && { PosixProfile: se_PosixProfile(input.PosixProfile, context) }),
|
|
3317
|
-
...(input.Role != null && { Role: input.Role }),
|
|
3318
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3319
|
-
};
|
|
3320
|
-
};
|
|
3321
|
-
const se_CreateAgreementRequest = (input, context) => {
|
|
3322
|
-
return {
|
|
3323
|
-
...(input.AccessRole != null && { AccessRole: input.AccessRole }),
|
|
3324
|
-
...(input.BaseDirectory != null && { BaseDirectory: input.BaseDirectory }),
|
|
3325
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3326
|
-
...(input.LocalProfileId != null && { LocalProfileId: input.LocalProfileId }),
|
|
3327
|
-
...(input.PartnerProfileId != null && { PartnerProfileId: input.PartnerProfileId }),
|
|
3328
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3329
|
-
...(input.Status != null && { Status: input.Status }),
|
|
3330
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3331
|
-
};
|
|
3332
|
-
};
|
|
3333
|
-
const se_CreateConnectorRequest = (input, context) => {
|
|
3334
|
-
return {
|
|
3335
|
-
...(input.AccessRole != null && { AccessRole: input.AccessRole }),
|
|
3336
|
-
...(input.As2Config != null && { As2Config: se_As2ConnectorConfig(input.As2Config, context) }),
|
|
3337
|
-
...(input.LoggingRole != null && { LoggingRole: input.LoggingRole }),
|
|
3338
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3339
|
-
...(input.Url != null && { Url: input.Url }),
|
|
3340
|
-
};
|
|
3341
|
-
};
|
|
3342
|
-
const se_CreateProfileRequest = (input, context) => {
|
|
3343
|
-
return {
|
|
3344
|
-
...(input.As2Id != null && { As2Id: input.As2Id }),
|
|
3345
|
-
...(input.CertificateIds != null && { CertificateIds: se_CertificateIds(input.CertificateIds, context) }),
|
|
3346
|
-
...(input.ProfileType != null && { ProfileType: input.ProfileType }),
|
|
3347
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3348
|
-
};
|
|
3349
|
-
};
|
|
3350
|
-
const se_CreateServerRequest = (input, context) => {
|
|
3351
|
-
return {
|
|
3352
|
-
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
3353
|
-
...(input.Domain != null && { Domain: input.Domain }),
|
|
3354
|
-
...(input.EndpointDetails != null && { EndpointDetails: se_EndpointDetails(input.EndpointDetails, context) }),
|
|
3355
|
-
...(input.EndpointType != null && { EndpointType: input.EndpointType }),
|
|
3356
|
-
...(input.HostKey != null && { HostKey: input.HostKey }),
|
|
3357
|
-
...(input.IdentityProviderDetails != null && {
|
|
3358
|
-
IdentityProviderDetails: se_IdentityProviderDetails(input.IdentityProviderDetails, context),
|
|
3359
|
-
}),
|
|
3360
|
-
...(input.IdentityProviderType != null && { IdentityProviderType: input.IdentityProviderType }),
|
|
3361
|
-
...(input.LoggingRole != null && { LoggingRole: input.LoggingRole }),
|
|
3362
|
-
...(input.PostAuthenticationLoginBanner != null && {
|
|
3363
|
-
PostAuthenticationLoginBanner: input.PostAuthenticationLoginBanner,
|
|
3364
|
-
}),
|
|
3365
|
-
...(input.PreAuthenticationLoginBanner != null && {
|
|
3366
|
-
PreAuthenticationLoginBanner: input.PreAuthenticationLoginBanner,
|
|
3367
|
-
}),
|
|
3368
|
-
...(input.ProtocolDetails != null && { ProtocolDetails: se_ProtocolDetails(input.ProtocolDetails, context) }),
|
|
3369
|
-
...(input.Protocols != null && { Protocols: se_Protocols(input.Protocols, context) }),
|
|
3370
|
-
...(input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName }),
|
|
3371
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3372
|
-
...(input.WorkflowDetails != null && { WorkflowDetails: se_WorkflowDetails(input.WorkflowDetails, context) }),
|
|
3373
|
-
};
|
|
3374
|
-
};
|
|
3375
|
-
const se_CreateUserRequest = (input, context) => {
|
|
3376
|
-
return {
|
|
3377
|
-
...(input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory }),
|
|
3378
|
-
...(input.HomeDirectoryMappings != null && {
|
|
3379
|
-
HomeDirectoryMappings: se_HomeDirectoryMappings(input.HomeDirectoryMappings, context),
|
|
3380
|
-
}),
|
|
3381
|
-
...(input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType }),
|
|
3382
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3383
|
-
...(input.PosixProfile != null && { PosixProfile: se_PosixProfile(input.PosixProfile, context) }),
|
|
3384
|
-
...(input.Role != null && { Role: input.Role }),
|
|
3385
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3386
|
-
...(input.SshPublicKeyBody != null && { SshPublicKeyBody: input.SshPublicKeyBody }),
|
|
3387
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3388
|
-
...(input.UserName != null && { UserName: input.UserName }),
|
|
3389
|
-
};
|
|
3390
|
-
};
|
|
3391
|
-
const se_CreateWorkflowRequest = (input, context) => {
|
|
3392
|
-
return {
|
|
3393
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3394
|
-
...(input.OnExceptionSteps != null && { OnExceptionSteps: se_WorkflowSteps(input.OnExceptionSteps, context) }),
|
|
3395
|
-
...(input.Steps != null && { Steps: se_WorkflowSteps(input.Steps, context) }),
|
|
3396
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3397
|
-
};
|
|
3398
|
-
};
|
|
3399
|
-
const se_CustomStepDetails = (input, context) => {
|
|
3400
|
-
return {
|
|
3401
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3402
|
-
...(input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }),
|
|
3403
|
-
...(input.Target != null && { Target: input.Target }),
|
|
3404
|
-
...(input.TimeoutSeconds != null && { TimeoutSeconds: input.TimeoutSeconds }),
|
|
3405
|
-
};
|
|
3406
|
-
};
|
|
3407
|
-
const se_DecryptStepDetails = (input, context) => {
|
|
3408
|
-
return {
|
|
3409
|
-
...(input.DestinationFileLocation != null && {
|
|
3410
|
-
DestinationFileLocation: se_InputFileLocation(input.DestinationFileLocation, context),
|
|
3411
|
-
}),
|
|
3412
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3413
|
-
...(input.OverwriteExisting != null && { OverwriteExisting: input.OverwriteExisting }),
|
|
3414
|
-
...(input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }),
|
|
3415
|
-
...(input.Type != null && { Type: input.Type }),
|
|
3416
|
-
};
|
|
3057
|
+
const de_DescribedCertificate = (output, context) => {
|
|
3058
|
+
return (0, smithy_client_1.take)(output, {
|
|
3059
|
+
ActiveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3060
|
+
Arn: smithy_client_1.expectString,
|
|
3061
|
+
Certificate: smithy_client_1.expectString,
|
|
3062
|
+
CertificateChain: smithy_client_1.expectString,
|
|
3063
|
+
CertificateId: smithy_client_1.expectString,
|
|
3064
|
+
Description: smithy_client_1.expectString,
|
|
3065
|
+
InactiveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3066
|
+
NotAfterDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3067
|
+
NotBeforeDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3068
|
+
Serial: smithy_client_1.expectString,
|
|
3069
|
+
Status: smithy_client_1.expectString,
|
|
3070
|
+
Tags: smithy_client_1._json,
|
|
3071
|
+
Type: smithy_client_1.expectString,
|
|
3072
|
+
Usage: smithy_client_1.expectString,
|
|
3073
|
+
});
|
|
3417
3074
|
};
|
|
3418
|
-
const
|
|
3419
|
-
return {
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3075
|
+
const de_DescribedHostKey = (output, context) => {
|
|
3076
|
+
return (0, smithy_client_1.take)(output, {
|
|
3077
|
+
Arn: smithy_client_1.expectString,
|
|
3078
|
+
DateImported: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3079
|
+
Description: smithy_client_1.expectString,
|
|
3080
|
+
HostKeyFingerprint: smithy_client_1.expectString,
|
|
3081
|
+
HostKeyId: smithy_client_1.expectString,
|
|
3082
|
+
Tags: smithy_client_1._json,
|
|
3083
|
+
Type: smithy_client_1.expectString,
|
|
3084
|
+
});
|
|
3423
3085
|
};
|
|
3424
|
-
const
|
|
3425
|
-
return {
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3086
|
+
const de_DescribedUser = (output, context) => {
|
|
3087
|
+
return (0, smithy_client_1.take)(output, {
|
|
3088
|
+
Arn: smithy_client_1.expectString,
|
|
3089
|
+
HomeDirectory: smithy_client_1.expectString,
|
|
3090
|
+
HomeDirectoryMappings: smithy_client_1._json,
|
|
3091
|
+
HomeDirectoryType: smithy_client_1.expectString,
|
|
3092
|
+
Policy: smithy_client_1.expectString,
|
|
3093
|
+
PosixProfile: smithy_client_1._json,
|
|
3094
|
+
Role: smithy_client_1.expectString,
|
|
3095
|
+
SshPublicKeys: (_) => de_SshPublicKeys(_, context),
|
|
3096
|
+
Tags: smithy_client_1._json,
|
|
3097
|
+
UserName: smithy_client_1.expectString,
|
|
3098
|
+
});
|
|
3429
3099
|
};
|
|
3430
|
-
const
|
|
3431
|
-
return {
|
|
3432
|
-
|
|
3433
|
-
};
|
|
3100
|
+
const de_DescribeHostKeyResponse = (output, context) => {
|
|
3101
|
+
return (0, smithy_client_1.take)(output, {
|
|
3102
|
+
HostKey: (_) => de_DescribedHostKey(_, context),
|
|
3103
|
+
});
|
|
3434
3104
|
};
|
|
3435
|
-
const
|
|
3436
|
-
return {
|
|
3437
|
-
|
|
3438
|
-
|
|
3105
|
+
const de_DescribeUserResponse = (output, context) => {
|
|
3106
|
+
return (0, smithy_client_1.take)(output, {
|
|
3107
|
+
ServerId: smithy_client_1.expectString,
|
|
3108
|
+
User: (_) => de_DescribedUser(_, context),
|
|
3109
|
+
});
|
|
3439
3110
|
};
|
|
3440
|
-
const
|
|
3441
|
-
return {
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
};
|
|
3111
|
+
const de_ListCertificatesResponse = (output, context) => {
|
|
3112
|
+
return (0, smithy_client_1.take)(output, {
|
|
3113
|
+
Certificates: (_) => de_ListedCertificates(_, context),
|
|
3114
|
+
NextToken: smithy_client_1.expectString,
|
|
3115
|
+
});
|
|
3445
3116
|
};
|
|
3446
|
-
const
|
|
3447
|
-
return {
|
|
3448
|
-
|
|
3449
|
-
|
|
3117
|
+
const de_ListedCertificate = (output, context) => {
|
|
3118
|
+
return (0, smithy_client_1.take)(output, {
|
|
3119
|
+
ActiveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3120
|
+
Arn: smithy_client_1.expectString,
|
|
3121
|
+
CertificateId: smithy_client_1.expectString,
|
|
3122
|
+
Description: smithy_client_1.expectString,
|
|
3123
|
+
InactiveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3124
|
+
Status: smithy_client_1.expectString,
|
|
3125
|
+
Type: smithy_client_1.expectString,
|
|
3126
|
+
Usage: smithy_client_1.expectString,
|
|
3127
|
+
});
|
|
3450
3128
|
};
|
|
3451
|
-
const
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3129
|
+
const de_ListedCertificates = (output, context) => {
|
|
3130
|
+
const retVal = (output || [])
|
|
3131
|
+
.filter((e) => e != null)
|
|
3132
|
+
.map((entry) => {
|
|
3133
|
+
return de_ListedCertificate(entry, context);
|
|
3134
|
+
});
|
|
3135
|
+
return retVal;
|
|
3455
3136
|
};
|
|
3456
|
-
const
|
|
3457
|
-
return {
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3137
|
+
const de_ListedHostKey = (output, context) => {
|
|
3138
|
+
return (0, smithy_client_1.take)(output, {
|
|
3139
|
+
Arn: smithy_client_1.expectString,
|
|
3140
|
+
DateImported: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3141
|
+
Description: smithy_client_1.expectString,
|
|
3142
|
+
Fingerprint: smithy_client_1.expectString,
|
|
3143
|
+
HostKeyId: smithy_client_1.expectString,
|
|
3144
|
+
Type: smithy_client_1.expectString,
|
|
3145
|
+
});
|
|
3462
3146
|
};
|
|
3463
|
-
const
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3147
|
+
const de_ListedHostKeys = (output, context) => {
|
|
3148
|
+
const retVal = (output || [])
|
|
3149
|
+
.filter((e) => e != null)
|
|
3150
|
+
.map((entry) => {
|
|
3151
|
+
return de_ListedHostKey(entry, context);
|
|
3152
|
+
});
|
|
3153
|
+
return retVal;
|
|
3468
3154
|
};
|
|
3469
|
-
const
|
|
3470
|
-
return {
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3155
|
+
const de_ListHostKeysResponse = (output, context) => {
|
|
3156
|
+
return (0, smithy_client_1.take)(output, {
|
|
3157
|
+
HostKeys: (_) => de_ListedHostKeys(_, context),
|
|
3158
|
+
NextToken: smithy_client_1.expectString,
|
|
3159
|
+
ServerId: smithy_client_1.expectString,
|
|
3160
|
+
});
|
|
3474
3161
|
};
|
|
3475
|
-
const
|
|
3476
|
-
return {
|
|
3477
|
-
|
|
3478
|
-
|
|
3162
|
+
const de_SshPublicKey = (output, context) => {
|
|
3163
|
+
return (0, smithy_client_1.take)(output, {
|
|
3164
|
+
DateImported: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3165
|
+
SshPublicKeyBody: smithy_client_1.expectString,
|
|
3166
|
+
SshPublicKeyId: smithy_client_1.expectString,
|
|
3167
|
+
});
|
|
3479
3168
|
};
|
|
3480
|
-
const
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3169
|
+
const de_SshPublicKeys = (output, context) => {
|
|
3170
|
+
const retVal = (output || [])
|
|
3171
|
+
.filter((e) => e != null)
|
|
3172
|
+
.map((entry) => {
|
|
3173
|
+
return de_SshPublicKey(entry, context);
|
|
3174
|
+
});
|
|
3175
|
+
return retVal;
|
|
3485
3176
|
};
|
|
3486
|
-
const
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3177
|
+
const deserializeMetadata = (output) => ({
|
|
3178
|
+
httpStatusCode: output.statusCode,
|
|
3179
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3180
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3181
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
3182
|
+
});
|
|
3183
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
3184
|
+
if (streamBody instanceof Uint8Array) {
|
|
3185
|
+
return Promise.resolve(streamBody);
|
|
3186
|
+
}
|
|
3187
|
+
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3491
3188
|
};
|
|
3492
|
-
const
|
|
3493
|
-
|
|
3494
|
-
|
|
3189
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3190
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(TransferServiceException_1.TransferServiceException);
|
|
3191
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3192
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3193
|
+
const contents = {
|
|
3194
|
+
protocol,
|
|
3195
|
+
hostname,
|
|
3196
|
+
port,
|
|
3197
|
+
method: "POST",
|
|
3198
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3199
|
+
headers,
|
|
3495
3200
|
};
|
|
3201
|
+
if (resolvedHostname !== undefined) {
|
|
3202
|
+
contents.hostname = resolvedHostname;
|
|
3203
|
+
}
|
|
3204
|
+
if (body !== undefined) {
|
|
3205
|
+
contents.body = body;
|
|
3206
|
+
}
|
|
3207
|
+
return new protocol_http_1.HttpRequest(contents);
|
|
3496
3208
|
};
|
|
3497
|
-
|
|
3209
|
+
function sharedHeaders(operation) {
|
|
3498
3210
|
return {
|
|
3499
|
-
|
|
3211
|
+
"content-type": "application/x-amz-json-1.1",
|
|
3212
|
+
"x-amz-target": `TransferService.${operation}`,
|
|
3500
3213
|
};
|
|
3501
|
-
}
|
|
3502
|
-
const se_DescribeExecutionRequest = (input, context) => {
|
|
3503
|
-
return {
|
|
3504
|
-
...(input.ExecutionId != null && { ExecutionId: input.ExecutionId }),
|
|
3505
|
-
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
3506
|
-
};
|
|
3507
|
-
};
|
|
3508
|
-
const se_DescribeHostKeyRequest = (input, context) => {
|
|
3509
|
-
return {
|
|
3510
|
-
...(input.HostKeyId != null && { HostKeyId: input.HostKeyId }),
|
|
3511
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3512
|
-
};
|
|
3513
|
-
};
|
|
3514
|
-
const se_DescribeProfileRequest = (input, context) => {
|
|
3515
|
-
return {
|
|
3516
|
-
...(input.ProfileId != null && { ProfileId: input.ProfileId }),
|
|
3517
|
-
};
|
|
3518
|
-
};
|
|
3519
|
-
const se_DescribeSecurityPolicyRequest = (input, context) => {
|
|
3520
|
-
return {
|
|
3521
|
-
...(input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName }),
|
|
3522
|
-
};
|
|
3523
|
-
};
|
|
3524
|
-
const se_DescribeServerRequest = (input, context) => {
|
|
3525
|
-
return {
|
|
3526
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3527
|
-
};
|
|
3528
|
-
};
|
|
3529
|
-
const se_DescribeUserRequest = (input, context) => {
|
|
3530
|
-
return {
|
|
3531
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3532
|
-
...(input.UserName != null && { UserName: input.UserName }),
|
|
3533
|
-
};
|
|
3534
|
-
};
|
|
3535
|
-
const se_DescribeWorkflowRequest = (input, context) => {
|
|
3536
|
-
return {
|
|
3537
|
-
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
3538
|
-
};
|
|
3539
|
-
};
|
|
3540
|
-
const se_EfsFileLocation = (input, context) => {
|
|
3541
|
-
return {
|
|
3542
|
-
...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
|
|
3543
|
-
...(input.Path != null && { Path: input.Path }),
|
|
3544
|
-
};
|
|
3545
|
-
};
|
|
3546
|
-
const se_EndpointDetails = (input, context) => {
|
|
3547
|
-
return {
|
|
3548
|
-
...(input.AddressAllocationIds != null && {
|
|
3549
|
-
AddressAllocationIds: se_AddressAllocationIds(input.AddressAllocationIds, context),
|
|
3550
|
-
}),
|
|
3551
|
-
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupIds(input.SecurityGroupIds, context) }),
|
|
3552
|
-
...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
|
|
3553
|
-
...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
|
|
3554
|
-
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
3555
|
-
};
|
|
3556
|
-
};
|
|
3557
|
-
const se_FilePaths = (input, context) => {
|
|
3558
|
-
return input
|
|
3559
|
-
.filter((e) => e != null)
|
|
3560
|
-
.map((entry) => {
|
|
3561
|
-
return entry;
|
|
3562
|
-
});
|
|
3563
|
-
};
|
|
3564
|
-
const se_HomeDirectoryMapEntry = (input, context) => {
|
|
3565
|
-
return {
|
|
3566
|
-
...(input.Entry != null && { Entry: input.Entry }),
|
|
3567
|
-
...(input.Target != null && { Target: input.Target }),
|
|
3568
|
-
};
|
|
3569
|
-
};
|
|
3570
|
-
const se_HomeDirectoryMappings = (input, context) => {
|
|
3571
|
-
return input
|
|
3572
|
-
.filter((e) => e != null)
|
|
3573
|
-
.map((entry) => {
|
|
3574
|
-
return se_HomeDirectoryMapEntry(entry, context);
|
|
3575
|
-
});
|
|
3576
|
-
};
|
|
3577
|
-
const se_IdentityProviderDetails = (input, context) => {
|
|
3578
|
-
return {
|
|
3579
|
-
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
3580
|
-
...(input.Function != null && { Function: input.Function }),
|
|
3581
|
-
...(input.InvocationRole != null && { InvocationRole: input.InvocationRole }),
|
|
3582
|
-
...(input.Url != null && { Url: input.Url }),
|
|
3583
|
-
};
|
|
3584
|
-
};
|
|
3585
|
-
const se_ImportCertificateRequest = (input, context) => {
|
|
3586
|
-
return {
|
|
3587
|
-
...(input.ActiveDate != null && { ActiveDate: Math.round(input.ActiveDate.getTime() / 1000) }),
|
|
3588
|
-
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
3589
|
-
...(input.CertificateChain != null && { CertificateChain: input.CertificateChain }),
|
|
3590
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3591
|
-
...(input.InactiveDate != null && { InactiveDate: Math.round(input.InactiveDate.getTime() / 1000) }),
|
|
3592
|
-
...(input.PrivateKey != null && { PrivateKey: input.PrivateKey }),
|
|
3593
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3594
|
-
...(input.Usage != null && { Usage: input.Usage }),
|
|
3595
|
-
};
|
|
3596
|
-
};
|
|
3597
|
-
const se_ImportHostKeyRequest = (input, context) => {
|
|
3598
|
-
return {
|
|
3599
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3600
|
-
...(input.HostKeyBody != null && { HostKeyBody: input.HostKeyBody }),
|
|
3601
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3602
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3603
|
-
};
|
|
3604
|
-
};
|
|
3605
|
-
const se_ImportSshPublicKeyRequest = (input, context) => {
|
|
3606
|
-
return {
|
|
3607
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3608
|
-
...(input.SshPublicKeyBody != null && { SshPublicKeyBody: input.SshPublicKeyBody }),
|
|
3609
|
-
...(input.UserName != null && { UserName: input.UserName }),
|
|
3610
|
-
};
|
|
3611
|
-
};
|
|
3612
|
-
const se_InputFileLocation = (input, context) => {
|
|
3613
|
-
return {
|
|
3614
|
-
...(input.EfsFileLocation != null && { EfsFileLocation: se_EfsFileLocation(input.EfsFileLocation, context) }),
|
|
3615
|
-
...(input.S3FileLocation != null && { S3FileLocation: se_S3InputFileLocation(input.S3FileLocation, context) }),
|
|
3616
|
-
};
|
|
3617
|
-
};
|
|
3618
|
-
const se_ListAccessesRequest = (input, context) => {
|
|
3619
|
-
return {
|
|
3620
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3621
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3622
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3623
|
-
};
|
|
3624
|
-
};
|
|
3625
|
-
const se_ListAgreementsRequest = (input, context) => {
|
|
3626
|
-
return {
|
|
3627
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3628
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3629
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3630
|
-
};
|
|
3631
|
-
};
|
|
3632
|
-
const se_ListCertificatesRequest = (input, context) => {
|
|
3633
|
-
return {
|
|
3634
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3635
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3636
|
-
};
|
|
3637
|
-
};
|
|
3638
|
-
const se_ListConnectorsRequest = (input, context) => {
|
|
3639
|
-
return {
|
|
3640
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3641
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3642
|
-
};
|
|
3643
|
-
};
|
|
3644
|
-
const se_ListExecutionsRequest = (input, context) => {
|
|
3645
|
-
return {
|
|
3646
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3647
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3648
|
-
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
3649
|
-
};
|
|
3650
|
-
};
|
|
3651
|
-
const se_ListHostKeysRequest = (input, context) => {
|
|
3652
|
-
return {
|
|
3653
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3654
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3655
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3656
|
-
};
|
|
3657
|
-
};
|
|
3658
|
-
const se_ListProfilesRequest = (input, context) => {
|
|
3659
|
-
return {
|
|
3660
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3661
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3662
|
-
...(input.ProfileType != null && { ProfileType: input.ProfileType }),
|
|
3663
|
-
};
|
|
3664
|
-
};
|
|
3665
|
-
const se_ListSecurityPoliciesRequest = (input, context) => {
|
|
3666
|
-
return {
|
|
3667
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3668
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3669
|
-
};
|
|
3670
|
-
};
|
|
3671
|
-
const se_ListServersRequest = (input, context) => {
|
|
3672
|
-
return {
|
|
3673
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3674
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3675
|
-
};
|
|
3676
|
-
};
|
|
3677
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
3678
|
-
return {
|
|
3679
|
-
...(input.Arn != null && { Arn: input.Arn }),
|
|
3680
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3681
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3682
|
-
};
|
|
3683
|
-
};
|
|
3684
|
-
const se_ListUsersRequest = (input, context) => {
|
|
3685
|
-
return {
|
|
3686
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3687
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3688
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3689
|
-
};
|
|
3690
|
-
};
|
|
3691
|
-
const se_ListWorkflowsRequest = (input, context) => {
|
|
3692
|
-
return {
|
|
3693
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3694
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3695
|
-
};
|
|
3696
|
-
};
|
|
3697
|
-
const se_OnPartialUploadWorkflowDetails = (input, context) => {
|
|
3698
|
-
return input
|
|
3699
|
-
.filter((e) => e != null)
|
|
3700
|
-
.map((entry) => {
|
|
3701
|
-
return se_WorkflowDetail(entry, context);
|
|
3702
|
-
});
|
|
3703
|
-
};
|
|
3704
|
-
const se_OnUploadWorkflowDetails = (input, context) => {
|
|
3705
|
-
return input
|
|
3706
|
-
.filter((e) => e != null)
|
|
3707
|
-
.map((entry) => {
|
|
3708
|
-
return se_WorkflowDetail(entry, context);
|
|
3709
|
-
});
|
|
3710
|
-
};
|
|
3711
|
-
const se_PosixProfile = (input, context) => {
|
|
3712
|
-
return {
|
|
3713
|
-
...(input.Gid != null && { Gid: input.Gid }),
|
|
3714
|
-
...(input.SecondaryGids != null && { SecondaryGids: se_SecondaryGids(input.SecondaryGids, context) }),
|
|
3715
|
-
...(input.Uid != null && { Uid: input.Uid }),
|
|
3716
|
-
};
|
|
3717
|
-
};
|
|
3718
|
-
const se_ProtocolDetails = (input, context) => {
|
|
3719
|
-
return {
|
|
3720
|
-
...(input.As2Transports != null && { As2Transports: se_As2Transports(input.As2Transports, context) }),
|
|
3721
|
-
...(input.PassiveIp != null && { PassiveIp: input.PassiveIp }),
|
|
3722
|
-
...(input.SetStatOption != null && { SetStatOption: input.SetStatOption }),
|
|
3723
|
-
...(input.TlsSessionResumptionMode != null && { TlsSessionResumptionMode: input.TlsSessionResumptionMode }),
|
|
3724
|
-
};
|
|
3725
|
-
};
|
|
3726
|
-
const se_Protocols = (input, context) => {
|
|
3727
|
-
return input
|
|
3728
|
-
.filter((e) => e != null)
|
|
3729
|
-
.map((entry) => {
|
|
3730
|
-
return entry;
|
|
3731
|
-
});
|
|
3732
|
-
};
|
|
3733
|
-
const se_S3InputFileLocation = (input, context) => {
|
|
3734
|
-
return {
|
|
3735
|
-
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
3736
|
-
...(input.Key != null && { Key: input.Key }),
|
|
3737
|
-
};
|
|
3738
|
-
};
|
|
3739
|
-
const se_S3Tag = (input, context) => {
|
|
3740
|
-
return {
|
|
3741
|
-
...(input.Key != null && { Key: input.Key }),
|
|
3742
|
-
...(input.Value != null && { Value: input.Value }),
|
|
3743
|
-
};
|
|
3744
|
-
};
|
|
3745
|
-
const se_S3Tags = (input, context) => {
|
|
3746
|
-
return input
|
|
3747
|
-
.filter((e) => e != null)
|
|
3748
|
-
.map((entry) => {
|
|
3749
|
-
return se_S3Tag(entry, context);
|
|
3750
|
-
});
|
|
3751
|
-
};
|
|
3752
|
-
const se_SecondaryGids = (input, context) => {
|
|
3753
|
-
return input
|
|
3754
|
-
.filter((e) => e != null)
|
|
3755
|
-
.map((entry) => {
|
|
3756
|
-
return entry;
|
|
3757
|
-
});
|
|
3758
|
-
};
|
|
3759
|
-
const se_SecurityGroupIds = (input, context) => {
|
|
3760
|
-
return input
|
|
3761
|
-
.filter((e) => e != null)
|
|
3762
|
-
.map((entry) => {
|
|
3763
|
-
return entry;
|
|
3764
|
-
});
|
|
3765
|
-
};
|
|
3766
|
-
const se_SendWorkflowStepStateRequest = (input, context) => {
|
|
3767
|
-
return {
|
|
3768
|
-
...(input.ExecutionId != null && { ExecutionId: input.ExecutionId }),
|
|
3769
|
-
...(input.Status != null && { Status: input.Status }),
|
|
3770
|
-
...(input.Token != null && { Token: input.Token }),
|
|
3771
|
-
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
3772
|
-
};
|
|
3773
|
-
};
|
|
3774
|
-
const se_StartFileTransferRequest = (input, context) => {
|
|
3775
|
-
return {
|
|
3776
|
-
...(input.ConnectorId != null && { ConnectorId: input.ConnectorId }),
|
|
3777
|
-
...(input.SendFilePaths != null && { SendFilePaths: se_FilePaths(input.SendFilePaths, context) }),
|
|
3778
|
-
};
|
|
3779
|
-
};
|
|
3780
|
-
const se_StartServerRequest = (input, context) => {
|
|
3781
|
-
return {
|
|
3782
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3783
|
-
};
|
|
3784
|
-
};
|
|
3785
|
-
const se_StopServerRequest = (input, context) => {
|
|
3786
|
-
return {
|
|
3787
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3788
|
-
};
|
|
3789
|
-
};
|
|
3790
|
-
const se_SubnetIds = (input, context) => {
|
|
3791
|
-
return input
|
|
3792
|
-
.filter((e) => e != null)
|
|
3793
|
-
.map((entry) => {
|
|
3794
|
-
return entry;
|
|
3795
|
-
});
|
|
3796
|
-
};
|
|
3797
|
-
const se_Tag = (input, context) => {
|
|
3798
|
-
return {
|
|
3799
|
-
...(input.Key != null && { Key: input.Key }),
|
|
3800
|
-
...(input.Value != null && { Value: input.Value }),
|
|
3801
|
-
};
|
|
3802
|
-
};
|
|
3803
|
-
const se_TagKeys = (input, context) => {
|
|
3804
|
-
return input
|
|
3805
|
-
.filter((e) => e != null)
|
|
3806
|
-
.map((entry) => {
|
|
3807
|
-
return entry;
|
|
3808
|
-
});
|
|
3809
|
-
};
|
|
3810
|
-
const se_TagResourceRequest = (input, context) => {
|
|
3811
|
-
return {
|
|
3812
|
-
...(input.Arn != null && { Arn: input.Arn }),
|
|
3813
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3814
|
-
};
|
|
3815
|
-
};
|
|
3816
|
-
const se_Tags = (input, context) => {
|
|
3817
|
-
return input
|
|
3818
|
-
.filter((e) => e != null)
|
|
3819
|
-
.map((entry) => {
|
|
3820
|
-
return se_Tag(entry, context);
|
|
3821
|
-
});
|
|
3822
|
-
};
|
|
3823
|
-
const se_TagStepDetails = (input, context) => {
|
|
3824
|
-
return {
|
|
3825
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3826
|
-
...(input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }),
|
|
3827
|
-
...(input.Tags != null && { Tags: se_S3Tags(input.Tags, context) }),
|
|
3828
|
-
};
|
|
3829
|
-
};
|
|
3830
|
-
const se_TestIdentityProviderRequest = (input, context) => {
|
|
3831
|
-
return {
|
|
3832
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3833
|
-
...(input.ServerProtocol != null && { ServerProtocol: input.ServerProtocol }),
|
|
3834
|
-
...(input.SourceIp != null && { SourceIp: input.SourceIp }),
|
|
3835
|
-
...(input.UserName != null && { UserName: input.UserName }),
|
|
3836
|
-
...(input.UserPassword != null && { UserPassword: input.UserPassword }),
|
|
3837
|
-
};
|
|
3838
|
-
};
|
|
3839
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
3840
|
-
return {
|
|
3841
|
-
...(input.Arn != null && { Arn: input.Arn }),
|
|
3842
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
|
|
3843
|
-
};
|
|
3844
|
-
};
|
|
3845
|
-
const se_UpdateAccessRequest = (input, context) => {
|
|
3846
|
-
return {
|
|
3847
|
-
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
3848
|
-
...(input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory }),
|
|
3849
|
-
...(input.HomeDirectoryMappings != null && {
|
|
3850
|
-
HomeDirectoryMappings: se_HomeDirectoryMappings(input.HomeDirectoryMappings, context),
|
|
3851
|
-
}),
|
|
3852
|
-
...(input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType }),
|
|
3853
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3854
|
-
...(input.PosixProfile != null && { PosixProfile: se_PosixProfile(input.PosixProfile, context) }),
|
|
3855
|
-
...(input.Role != null && { Role: input.Role }),
|
|
3856
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3857
|
-
};
|
|
3858
|
-
};
|
|
3859
|
-
const se_UpdateAgreementRequest = (input, context) => {
|
|
3860
|
-
return {
|
|
3861
|
-
...(input.AccessRole != null && { AccessRole: input.AccessRole }),
|
|
3862
|
-
...(input.AgreementId != null && { AgreementId: input.AgreementId }),
|
|
3863
|
-
...(input.BaseDirectory != null && { BaseDirectory: input.BaseDirectory }),
|
|
3864
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3865
|
-
...(input.LocalProfileId != null && { LocalProfileId: input.LocalProfileId }),
|
|
3866
|
-
...(input.PartnerProfileId != null && { PartnerProfileId: input.PartnerProfileId }),
|
|
3867
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3868
|
-
...(input.Status != null && { Status: input.Status }),
|
|
3869
|
-
};
|
|
3870
|
-
};
|
|
3871
|
-
const se_UpdateCertificateRequest = (input, context) => {
|
|
3872
|
-
return {
|
|
3873
|
-
...(input.ActiveDate != null && { ActiveDate: Math.round(input.ActiveDate.getTime() / 1000) }),
|
|
3874
|
-
...(input.CertificateId != null && { CertificateId: input.CertificateId }),
|
|
3875
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3876
|
-
...(input.InactiveDate != null && { InactiveDate: Math.round(input.InactiveDate.getTime() / 1000) }),
|
|
3877
|
-
};
|
|
3878
|
-
};
|
|
3879
|
-
const se_UpdateConnectorRequest = (input, context) => {
|
|
3880
|
-
return {
|
|
3881
|
-
...(input.AccessRole != null && { AccessRole: input.AccessRole }),
|
|
3882
|
-
...(input.As2Config != null && { As2Config: se_As2ConnectorConfig(input.As2Config, context) }),
|
|
3883
|
-
...(input.ConnectorId != null && { ConnectorId: input.ConnectorId }),
|
|
3884
|
-
...(input.LoggingRole != null && { LoggingRole: input.LoggingRole }),
|
|
3885
|
-
...(input.Url != null && { Url: input.Url }),
|
|
3886
|
-
};
|
|
3887
|
-
};
|
|
3888
|
-
const se_UpdateHostKeyRequest = (input, context) => {
|
|
3889
|
-
return {
|
|
3890
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3891
|
-
...(input.HostKeyId != null && { HostKeyId: input.HostKeyId }),
|
|
3892
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3893
|
-
};
|
|
3894
|
-
};
|
|
3895
|
-
const se_UpdateProfileRequest = (input, context) => {
|
|
3896
|
-
return {
|
|
3897
|
-
...(input.CertificateIds != null && { CertificateIds: se_CertificateIds(input.CertificateIds, context) }),
|
|
3898
|
-
...(input.ProfileId != null && { ProfileId: input.ProfileId }),
|
|
3899
|
-
};
|
|
3900
|
-
};
|
|
3901
|
-
const se_UpdateServerRequest = (input, context) => {
|
|
3902
|
-
return {
|
|
3903
|
-
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
3904
|
-
...(input.EndpointDetails != null && { EndpointDetails: se_EndpointDetails(input.EndpointDetails, context) }),
|
|
3905
|
-
...(input.EndpointType != null && { EndpointType: input.EndpointType }),
|
|
3906
|
-
...(input.HostKey != null && { HostKey: input.HostKey }),
|
|
3907
|
-
...(input.IdentityProviderDetails != null && {
|
|
3908
|
-
IdentityProviderDetails: se_IdentityProviderDetails(input.IdentityProviderDetails, context),
|
|
3909
|
-
}),
|
|
3910
|
-
...(input.LoggingRole != null && { LoggingRole: input.LoggingRole }),
|
|
3911
|
-
...(input.PostAuthenticationLoginBanner != null && {
|
|
3912
|
-
PostAuthenticationLoginBanner: input.PostAuthenticationLoginBanner,
|
|
3913
|
-
}),
|
|
3914
|
-
...(input.PreAuthenticationLoginBanner != null && {
|
|
3915
|
-
PreAuthenticationLoginBanner: input.PreAuthenticationLoginBanner,
|
|
3916
|
-
}),
|
|
3917
|
-
...(input.ProtocolDetails != null && { ProtocolDetails: se_ProtocolDetails(input.ProtocolDetails, context) }),
|
|
3918
|
-
...(input.Protocols != null && { Protocols: se_Protocols(input.Protocols, context) }),
|
|
3919
|
-
...(input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName }),
|
|
3920
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3921
|
-
...(input.WorkflowDetails != null && { WorkflowDetails: se_WorkflowDetails(input.WorkflowDetails, context) }),
|
|
3922
|
-
};
|
|
3923
|
-
};
|
|
3924
|
-
const se_UpdateUserRequest = (input, context) => {
|
|
3925
|
-
return {
|
|
3926
|
-
...(input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory }),
|
|
3927
|
-
...(input.HomeDirectoryMappings != null && {
|
|
3928
|
-
HomeDirectoryMappings: se_HomeDirectoryMappings(input.HomeDirectoryMappings, context),
|
|
3929
|
-
}),
|
|
3930
|
-
...(input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType }),
|
|
3931
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3932
|
-
...(input.PosixProfile != null && { PosixProfile: se_PosixProfile(input.PosixProfile, context) }),
|
|
3933
|
-
...(input.Role != null && { Role: input.Role }),
|
|
3934
|
-
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3935
|
-
...(input.UserName != null && { UserName: input.UserName }),
|
|
3936
|
-
};
|
|
3937
|
-
};
|
|
3938
|
-
const se_WorkflowDetail = (input, context) => {
|
|
3939
|
-
return {
|
|
3940
|
-
...(input.ExecutionRole != null && { ExecutionRole: input.ExecutionRole }),
|
|
3941
|
-
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
3942
|
-
};
|
|
3943
|
-
};
|
|
3944
|
-
const se_WorkflowDetails = (input, context) => {
|
|
3945
|
-
return {
|
|
3946
|
-
...(input.OnPartialUpload != null && {
|
|
3947
|
-
OnPartialUpload: se_OnPartialUploadWorkflowDetails(input.OnPartialUpload, context),
|
|
3948
|
-
}),
|
|
3949
|
-
...(input.OnUpload != null && { OnUpload: se_OnUploadWorkflowDetails(input.OnUpload, context) }),
|
|
3950
|
-
};
|
|
3951
|
-
};
|
|
3952
|
-
const se_WorkflowStep = (input, context) => {
|
|
3953
|
-
return {
|
|
3954
|
-
...(input.CopyStepDetails != null && { CopyStepDetails: se_CopyStepDetails(input.CopyStepDetails, context) }),
|
|
3955
|
-
...(input.CustomStepDetails != null && {
|
|
3956
|
-
CustomStepDetails: se_CustomStepDetails(input.CustomStepDetails, context),
|
|
3957
|
-
}),
|
|
3958
|
-
...(input.DecryptStepDetails != null && {
|
|
3959
|
-
DecryptStepDetails: se_DecryptStepDetails(input.DecryptStepDetails, context),
|
|
3960
|
-
}),
|
|
3961
|
-
...(input.DeleteStepDetails != null && {
|
|
3962
|
-
DeleteStepDetails: se_DeleteStepDetails(input.DeleteStepDetails, context),
|
|
3963
|
-
}),
|
|
3964
|
-
...(input.TagStepDetails != null && { TagStepDetails: se_TagStepDetails(input.TagStepDetails, context) }),
|
|
3965
|
-
...(input.Type != null && { Type: input.Type }),
|
|
3966
|
-
};
|
|
3967
|
-
};
|
|
3968
|
-
const se_WorkflowSteps = (input, context) => {
|
|
3969
|
-
return input
|
|
3970
|
-
.filter((e) => e != null)
|
|
3971
|
-
.map((entry) => {
|
|
3972
|
-
return se_WorkflowStep(entry, context);
|
|
3973
|
-
});
|
|
3974
|
-
};
|
|
3975
|
-
const de_AccessDeniedException = (output, context) => {
|
|
3976
|
-
return {
|
|
3977
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3978
|
-
};
|
|
3979
|
-
};
|
|
3980
|
-
const de_AddressAllocationIds = (output, context) => {
|
|
3981
|
-
const retVal = (output || [])
|
|
3982
|
-
.filter((e) => e != null)
|
|
3983
|
-
.map((entry) => {
|
|
3984
|
-
if (entry === null) {
|
|
3985
|
-
return null;
|
|
3986
|
-
}
|
|
3987
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3988
|
-
});
|
|
3989
|
-
return retVal;
|
|
3990
|
-
};
|
|
3991
|
-
const de_As2ConnectorConfig = (output, context) => {
|
|
3992
|
-
return {
|
|
3993
|
-
Compression: (0, smithy_client_1.expectString)(output.Compression),
|
|
3994
|
-
EncryptionAlgorithm: (0, smithy_client_1.expectString)(output.EncryptionAlgorithm),
|
|
3995
|
-
LocalProfileId: (0, smithy_client_1.expectString)(output.LocalProfileId),
|
|
3996
|
-
MdnResponse: (0, smithy_client_1.expectString)(output.MdnResponse),
|
|
3997
|
-
MdnSigningAlgorithm: (0, smithy_client_1.expectString)(output.MdnSigningAlgorithm),
|
|
3998
|
-
MessageSubject: (0, smithy_client_1.expectString)(output.MessageSubject),
|
|
3999
|
-
PartnerProfileId: (0, smithy_client_1.expectString)(output.PartnerProfileId),
|
|
4000
|
-
SigningAlgorithm: (0, smithy_client_1.expectString)(output.SigningAlgorithm),
|
|
4001
|
-
};
|
|
4002
|
-
};
|
|
4003
|
-
const de_As2Transports = (output, context) => {
|
|
4004
|
-
const retVal = (output || [])
|
|
4005
|
-
.filter((e) => e != null)
|
|
4006
|
-
.map((entry) => {
|
|
4007
|
-
if (entry === null) {
|
|
4008
|
-
return null;
|
|
4009
|
-
}
|
|
4010
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4011
|
-
});
|
|
4012
|
-
return retVal;
|
|
4013
|
-
};
|
|
4014
|
-
const de_CertificateIds = (output, context) => {
|
|
4015
|
-
const retVal = (output || [])
|
|
4016
|
-
.filter((e) => e != null)
|
|
4017
|
-
.map((entry) => {
|
|
4018
|
-
if (entry === null) {
|
|
4019
|
-
return null;
|
|
4020
|
-
}
|
|
4021
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4022
|
-
});
|
|
4023
|
-
return retVal;
|
|
4024
|
-
};
|
|
4025
|
-
const de_ConflictException = (output, context) => {
|
|
4026
|
-
return {
|
|
4027
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4028
|
-
};
|
|
4029
|
-
};
|
|
4030
|
-
const de_CopyStepDetails = (output, context) => {
|
|
4031
|
-
return {
|
|
4032
|
-
DestinationFileLocation: output.DestinationFileLocation != null
|
|
4033
|
-
? de_InputFileLocation(output.DestinationFileLocation, context)
|
|
4034
|
-
: undefined,
|
|
4035
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4036
|
-
OverwriteExisting: (0, smithy_client_1.expectString)(output.OverwriteExisting),
|
|
4037
|
-
SourceFileLocation: (0, smithy_client_1.expectString)(output.SourceFileLocation),
|
|
4038
|
-
};
|
|
4039
|
-
};
|
|
4040
|
-
const de_CreateAccessResponse = (output, context) => {
|
|
4041
|
-
return {
|
|
4042
|
-
ExternalId: (0, smithy_client_1.expectString)(output.ExternalId),
|
|
4043
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4044
|
-
};
|
|
4045
|
-
};
|
|
4046
|
-
const de_CreateAgreementResponse = (output, context) => {
|
|
4047
|
-
return {
|
|
4048
|
-
AgreementId: (0, smithy_client_1.expectString)(output.AgreementId),
|
|
4049
|
-
};
|
|
4050
|
-
};
|
|
4051
|
-
const de_CreateConnectorResponse = (output, context) => {
|
|
4052
|
-
return {
|
|
4053
|
-
ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
|
|
4054
|
-
};
|
|
4055
|
-
};
|
|
4056
|
-
const de_CreateProfileResponse = (output, context) => {
|
|
4057
|
-
return {
|
|
4058
|
-
ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
|
|
4059
|
-
};
|
|
4060
|
-
};
|
|
4061
|
-
const de_CreateServerResponse = (output, context) => {
|
|
4062
|
-
return {
|
|
4063
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4064
|
-
};
|
|
4065
|
-
};
|
|
4066
|
-
const de_CreateUserResponse = (output, context) => {
|
|
4067
|
-
return {
|
|
4068
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4069
|
-
UserName: (0, smithy_client_1.expectString)(output.UserName),
|
|
4070
|
-
};
|
|
4071
|
-
};
|
|
4072
|
-
const de_CreateWorkflowResponse = (output, context) => {
|
|
4073
|
-
return {
|
|
4074
|
-
WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
|
|
4075
|
-
};
|
|
4076
|
-
};
|
|
4077
|
-
const de_CustomStepDetails = (output, context) => {
|
|
4078
|
-
return {
|
|
4079
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4080
|
-
SourceFileLocation: (0, smithy_client_1.expectString)(output.SourceFileLocation),
|
|
4081
|
-
Target: (0, smithy_client_1.expectString)(output.Target),
|
|
4082
|
-
TimeoutSeconds: (0, smithy_client_1.expectInt32)(output.TimeoutSeconds),
|
|
4083
|
-
};
|
|
4084
|
-
};
|
|
4085
|
-
const de_DecryptStepDetails = (output, context) => {
|
|
4086
|
-
return {
|
|
4087
|
-
DestinationFileLocation: output.DestinationFileLocation != null
|
|
4088
|
-
? de_InputFileLocation(output.DestinationFileLocation, context)
|
|
4089
|
-
: undefined,
|
|
4090
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4091
|
-
OverwriteExisting: (0, smithy_client_1.expectString)(output.OverwriteExisting),
|
|
4092
|
-
SourceFileLocation: (0, smithy_client_1.expectString)(output.SourceFileLocation),
|
|
4093
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4094
|
-
};
|
|
4095
|
-
};
|
|
4096
|
-
const de_DeleteStepDetails = (output, context) => {
|
|
4097
|
-
return {
|
|
4098
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4099
|
-
SourceFileLocation: (0, smithy_client_1.expectString)(output.SourceFileLocation),
|
|
4100
|
-
};
|
|
4101
|
-
};
|
|
4102
|
-
const de_DescribeAccessResponse = (output, context) => {
|
|
4103
|
-
return {
|
|
4104
|
-
Access: output.Access != null ? de_DescribedAccess(output.Access, context) : undefined,
|
|
4105
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4106
|
-
};
|
|
4107
|
-
};
|
|
4108
|
-
const de_DescribeAgreementResponse = (output, context) => {
|
|
4109
|
-
return {
|
|
4110
|
-
Agreement: output.Agreement != null ? de_DescribedAgreement(output.Agreement, context) : undefined,
|
|
4111
|
-
};
|
|
4112
|
-
};
|
|
4113
|
-
const de_DescribeCertificateResponse = (output, context) => {
|
|
4114
|
-
return {
|
|
4115
|
-
Certificate: output.Certificate != null ? de_DescribedCertificate(output.Certificate, context) : undefined,
|
|
4116
|
-
};
|
|
4117
|
-
};
|
|
4118
|
-
const de_DescribeConnectorResponse = (output, context) => {
|
|
4119
|
-
return {
|
|
4120
|
-
Connector: output.Connector != null ? de_DescribedConnector(output.Connector, context) : undefined,
|
|
4121
|
-
};
|
|
4122
|
-
};
|
|
4123
|
-
const de_DescribedAccess = (output, context) => {
|
|
4124
|
-
return {
|
|
4125
|
-
ExternalId: (0, smithy_client_1.expectString)(output.ExternalId),
|
|
4126
|
-
HomeDirectory: (0, smithy_client_1.expectString)(output.HomeDirectory),
|
|
4127
|
-
HomeDirectoryMappings: output.HomeDirectoryMappings != null
|
|
4128
|
-
? de_HomeDirectoryMappings(output.HomeDirectoryMappings, context)
|
|
4129
|
-
: undefined,
|
|
4130
|
-
HomeDirectoryType: (0, smithy_client_1.expectString)(output.HomeDirectoryType),
|
|
4131
|
-
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
4132
|
-
PosixProfile: output.PosixProfile != null ? de_PosixProfile(output.PosixProfile, context) : undefined,
|
|
4133
|
-
Role: (0, smithy_client_1.expectString)(output.Role),
|
|
4134
|
-
};
|
|
4135
|
-
};
|
|
4136
|
-
const de_DescribedAgreement = (output, context) => {
|
|
4137
|
-
return {
|
|
4138
|
-
AccessRole: (0, smithy_client_1.expectString)(output.AccessRole),
|
|
4139
|
-
AgreementId: (0, smithy_client_1.expectString)(output.AgreementId),
|
|
4140
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4141
|
-
BaseDirectory: (0, smithy_client_1.expectString)(output.BaseDirectory),
|
|
4142
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4143
|
-
LocalProfileId: (0, smithy_client_1.expectString)(output.LocalProfileId),
|
|
4144
|
-
PartnerProfileId: (0, smithy_client_1.expectString)(output.PartnerProfileId),
|
|
4145
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4146
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4147
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
4148
|
-
};
|
|
4149
|
-
};
|
|
4150
|
-
const de_DescribedCertificate = (output, context) => {
|
|
4151
|
-
return {
|
|
4152
|
-
ActiveDate: output.ActiveDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActiveDate))) : undefined,
|
|
4153
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4154
|
-
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
4155
|
-
CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
|
|
4156
|
-
CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
|
|
4157
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4158
|
-
InactiveDate: output.InactiveDate != null
|
|
4159
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InactiveDate)))
|
|
4160
|
-
: undefined,
|
|
4161
|
-
NotAfterDate: output.NotAfterDate != null
|
|
4162
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotAfterDate)))
|
|
4163
|
-
: undefined,
|
|
4164
|
-
NotBeforeDate: output.NotBeforeDate != null
|
|
4165
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotBeforeDate)))
|
|
4166
|
-
: undefined,
|
|
4167
|
-
Serial: (0, smithy_client_1.expectString)(output.Serial),
|
|
4168
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4169
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
4170
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4171
|
-
Usage: (0, smithy_client_1.expectString)(output.Usage),
|
|
4172
|
-
};
|
|
4173
|
-
};
|
|
4174
|
-
const de_DescribedConnector = (output, context) => {
|
|
4175
|
-
return {
|
|
4176
|
-
AccessRole: (0, smithy_client_1.expectString)(output.AccessRole),
|
|
4177
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4178
|
-
As2Config: output.As2Config != null ? de_As2ConnectorConfig(output.As2Config, context) : undefined,
|
|
4179
|
-
ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
|
|
4180
|
-
LoggingRole: (0, smithy_client_1.expectString)(output.LoggingRole),
|
|
4181
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
4182
|
-
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
4183
|
-
};
|
|
4184
|
-
};
|
|
4185
|
-
const de_DescribedExecution = (output, context) => {
|
|
4186
|
-
return {
|
|
4187
|
-
ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId),
|
|
4188
|
-
ExecutionRole: (0, smithy_client_1.expectString)(output.ExecutionRole),
|
|
4189
|
-
InitialFileLocation: output.InitialFileLocation != null ? de_FileLocation(output.InitialFileLocation, context) : undefined,
|
|
4190
|
-
LoggingConfiguration: output.LoggingConfiguration != null ? de_LoggingConfiguration(output.LoggingConfiguration, context) : undefined,
|
|
4191
|
-
PosixProfile: output.PosixProfile != null ? de_PosixProfile(output.PosixProfile, context) : undefined,
|
|
4192
|
-
Results: output.Results != null ? de_ExecutionResults(output.Results, context) : undefined,
|
|
4193
|
-
ServiceMetadata: output.ServiceMetadata != null ? de_ServiceMetadata(output.ServiceMetadata, context) : undefined,
|
|
4194
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4195
|
-
};
|
|
4196
|
-
};
|
|
4197
|
-
const de_DescribedHostKey = (output, context) => {
|
|
4198
|
-
return {
|
|
4199
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4200
|
-
DateImported: output.DateImported != null
|
|
4201
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateImported)))
|
|
4202
|
-
: undefined,
|
|
4203
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4204
|
-
HostKeyFingerprint: (0, smithy_client_1.expectString)(output.HostKeyFingerprint),
|
|
4205
|
-
HostKeyId: (0, smithy_client_1.expectString)(output.HostKeyId),
|
|
4206
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
4207
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4208
|
-
};
|
|
4209
|
-
};
|
|
4210
|
-
const de_DescribedProfile = (output, context) => {
|
|
4211
|
-
return {
|
|
4212
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4213
|
-
As2Id: (0, smithy_client_1.expectString)(output.As2Id),
|
|
4214
|
-
CertificateIds: output.CertificateIds != null ? de_CertificateIds(output.CertificateIds, context) : undefined,
|
|
4215
|
-
ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
|
|
4216
|
-
ProfileType: (0, smithy_client_1.expectString)(output.ProfileType),
|
|
4217
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
4218
|
-
};
|
|
4219
|
-
};
|
|
4220
|
-
const de_DescribedSecurityPolicy = (output, context) => {
|
|
4221
|
-
return {
|
|
4222
|
-
Fips: (0, smithy_client_1.expectBoolean)(output.Fips),
|
|
4223
|
-
SecurityPolicyName: (0, smithy_client_1.expectString)(output.SecurityPolicyName),
|
|
4224
|
-
SshCiphers: output.SshCiphers != null ? de_SecurityPolicyOptions(output.SshCiphers, context) : undefined,
|
|
4225
|
-
SshKexs: output.SshKexs != null ? de_SecurityPolicyOptions(output.SshKexs, context) : undefined,
|
|
4226
|
-
SshMacs: output.SshMacs != null ? de_SecurityPolicyOptions(output.SshMacs, context) : undefined,
|
|
4227
|
-
TlsCiphers: output.TlsCiphers != null ? de_SecurityPolicyOptions(output.TlsCiphers, context) : undefined,
|
|
4228
|
-
};
|
|
4229
|
-
};
|
|
4230
|
-
const de_DescribedServer = (output, context) => {
|
|
4231
|
-
return {
|
|
4232
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4233
|
-
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
4234
|
-
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
4235
|
-
EndpointDetails: output.EndpointDetails != null ? de_EndpointDetails(output.EndpointDetails, context) : undefined,
|
|
4236
|
-
EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
|
|
4237
|
-
HostKeyFingerprint: (0, smithy_client_1.expectString)(output.HostKeyFingerprint),
|
|
4238
|
-
IdentityProviderDetails: output.IdentityProviderDetails != null
|
|
4239
|
-
? de_IdentityProviderDetails(output.IdentityProviderDetails, context)
|
|
4240
|
-
: undefined,
|
|
4241
|
-
IdentityProviderType: (0, smithy_client_1.expectString)(output.IdentityProviderType),
|
|
4242
|
-
LoggingRole: (0, smithy_client_1.expectString)(output.LoggingRole),
|
|
4243
|
-
PostAuthenticationLoginBanner: (0, smithy_client_1.expectString)(output.PostAuthenticationLoginBanner),
|
|
4244
|
-
PreAuthenticationLoginBanner: (0, smithy_client_1.expectString)(output.PreAuthenticationLoginBanner),
|
|
4245
|
-
ProtocolDetails: output.ProtocolDetails != null ? de_ProtocolDetails(output.ProtocolDetails, context) : undefined,
|
|
4246
|
-
Protocols: output.Protocols != null ? de_Protocols(output.Protocols, context) : undefined,
|
|
4247
|
-
SecurityPolicyName: (0, smithy_client_1.expectString)(output.SecurityPolicyName),
|
|
4248
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4249
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
4250
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
4251
|
-
UserCount: (0, smithy_client_1.expectInt32)(output.UserCount),
|
|
4252
|
-
WorkflowDetails: output.WorkflowDetails != null ? de_WorkflowDetails(output.WorkflowDetails, context) : undefined,
|
|
4253
|
-
};
|
|
4254
|
-
};
|
|
4255
|
-
const de_DescribedUser = (output, context) => {
|
|
4256
|
-
return {
|
|
4257
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4258
|
-
HomeDirectory: (0, smithy_client_1.expectString)(output.HomeDirectory),
|
|
4259
|
-
HomeDirectoryMappings: output.HomeDirectoryMappings != null
|
|
4260
|
-
? de_HomeDirectoryMappings(output.HomeDirectoryMappings, context)
|
|
4261
|
-
: undefined,
|
|
4262
|
-
HomeDirectoryType: (0, smithy_client_1.expectString)(output.HomeDirectoryType),
|
|
4263
|
-
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
4264
|
-
PosixProfile: output.PosixProfile != null ? de_PosixProfile(output.PosixProfile, context) : undefined,
|
|
4265
|
-
Role: (0, smithy_client_1.expectString)(output.Role),
|
|
4266
|
-
SshPublicKeys: output.SshPublicKeys != null ? de_SshPublicKeys(output.SshPublicKeys, context) : undefined,
|
|
4267
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
4268
|
-
UserName: (0, smithy_client_1.expectString)(output.UserName),
|
|
4269
|
-
};
|
|
4270
|
-
};
|
|
4271
|
-
const de_DescribedWorkflow = (output, context) => {
|
|
4272
|
-
return {
|
|
4273
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4274
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4275
|
-
OnExceptionSteps: output.OnExceptionSteps != null ? de_WorkflowSteps(output.OnExceptionSteps, context) : undefined,
|
|
4276
|
-
Steps: output.Steps != null ? de_WorkflowSteps(output.Steps, context) : undefined,
|
|
4277
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
4278
|
-
WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
|
|
4279
|
-
};
|
|
4280
|
-
};
|
|
4281
|
-
const de_DescribeExecutionResponse = (output, context) => {
|
|
4282
|
-
return {
|
|
4283
|
-
Execution: output.Execution != null ? de_DescribedExecution(output.Execution, context) : undefined,
|
|
4284
|
-
WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
|
|
4285
|
-
};
|
|
4286
|
-
};
|
|
4287
|
-
const de_DescribeHostKeyResponse = (output, context) => {
|
|
4288
|
-
return {
|
|
4289
|
-
HostKey: output.HostKey != null ? de_DescribedHostKey(output.HostKey, context) : undefined,
|
|
4290
|
-
};
|
|
4291
|
-
};
|
|
4292
|
-
const de_DescribeProfileResponse = (output, context) => {
|
|
4293
|
-
return {
|
|
4294
|
-
Profile: output.Profile != null ? de_DescribedProfile(output.Profile, context) : undefined,
|
|
4295
|
-
};
|
|
4296
|
-
};
|
|
4297
|
-
const de_DescribeSecurityPolicyResponse = (output, context) => {
|
|
4298
|
-
return {
|
|
4299
|
-
SecurityPolicy: output.SecurityPolicy != null ? de_DescribedSecurityPolicy(output.SecurityPolicy, context) : undefined,
|
|
4300
|
-
};
|
|
4301
|
-
};
|
|
4302
|
-
const de_DescribeServerResponse = (output, context) => {
|
|
4303
|
-
return {
|
|
4304
|
-
Server: output.Server != null ? de_DescribedServer(output.Server, context) : undefined,
|
|
4305
|
-
};
|
|
4306
|
-
};
|
|
4307
|
-
const de_DescribeUserResponse = (output, context) => {
|
|
4308
|
-
return {
|
|
4309
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4310
|
-
User: output.User != null ? de_DescribedUser(output.User, context) : undefined,
|
|
4311
|
-
};
|
|
4312
|
-
};
|
|
4313
|
-
const de_DescribeWorkflowResponse = (output, context) => {
|
|
4314
|
-
return {
|
|
4315
|
-
Workflow: output.Workflow != null ? de_DescribedWorkflow(output.Workflow, context) : undefined,
|
|
4316
|
-
};
|
|
4317
|
-
};
|
|
4318
|
-
const de_EfsFileLocation = (output, context) => {
|
|
4319
|
-
return {
|
|
4320
|
-
FileSystemId: (0, smithy_client_1.expectString)(output.FileSystemId),
|
|
4321
|
-
Path: (0, smithy_client_1.expectString)(output.Path),
|
|
4322
|
-
};
|
|
4323
|
-
};
|
|
4324
|
-
const de_EndpointDetails = (output, context) => {
|
|
4325
|
-
return {
|
|
4326
|
-
AddressAllocationIds: output.AddressAllocationIds != null ? de_AddressAllocationIds(output.AddressAllocationIds, context) : undefined,
|
|
4327
|
-
SecurityGroupIds: output.SecurityGroupIds != null ? de_SecurityGroupIds(output.SecurityGroupIds, context) : undefined,
|
|
4328
|
-
SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
|
|
4329
|
-
VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
|
|
4330
|
-
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
4331
|
-
};
|
|
4332
|
-
};
|
|
4333
|
-
const de_ExecutionError = (output, context) => {
|
|
4334
|
-
return {
|
|
4335
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4336
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4337
|
-
};
|
|
4338
|
-
};
|
|
4339
|
-
const de_ExecutionResults = (output, context) => {
|
|
4340
|
-
return {
|
|
4341
|
-
OnExceptionSteps: output.OnExceptionSteps != null ? de_ExecutionStepResults(output.OnExceptionSteps, context) : undefined,
|
|
4342
|
-
Steps: output.Steps != null ? de_ExecutionStepResults(output.Steps, context) : undefined,
|
|
4343
|
-
};
|
|
4344
|
-
};
|
|
4345
|
-
const de_ExecutionStepResult = (output, context) => {
|
|
4346
|
-
return {
|
|
4347
|
-
Error: output.Error != null ? de_ExecutionError(output.Error, context) : undefined,
|
|
4348
|
-
Outputs: (0, smithy_client_1.expectString)(output.Outputs),
|
|
4349
|
-
StepType: (0, smithy_client_1.expectString)(output.StepType),
|
|
4350
|
-
};
|
|
4351
|
-
};
|
|
4352
|
-
const de_ExecutionStepResults = (output, context) => {
|
|
4353
|
-
const retVal = (output || [])
|
|
4354
|
-
.filter((e) => e != null)
|
|
4355
|
-
.map((entry) => {
|
|
4356
|
-
if (entry === null) {
|
|
4357
|
-
return null;
|
|
4358
|
-
}
|
|
4359
|
-
return de_ExecutionStepResult(entry, context);
|
|
4360
|
-
});
|
|
4361
|
-
return retVal;
|
|
4362
|
-
};
|
|
4363
|
-
const de_FileLocation = (output, context) => {
|
|
4364
|
-
return {
|
|
4365
|
-
EfsFileLocation: output.EfsFileLocation != null ? de_EfsFileLocation(output.EfsFileLocation, context) : undefined,
|
|
4366
|
-
S3FileLocation: output.S3FileLocation != null ? de_S3FileLocation(output.S3FileLocation, context) : undefined,
|
|
4367
|
-
};
|
|
4368
|
-
};
|
|
4369
|
-
const de_HomeDirectoryMapEntry = (output, context) => {
|
|
4370
|
-
return {
|
|
4371
|
-
Entry: (0, smithy_client_1.expectString)(output.Entry),
|
|
4372
|
-
Target: (0, smithy_client_1.expectString)(output.Target),
|
|
4373
|
-
};
|
|
4374
|
-
};
|
|
4375
|
-
const de_HomeDirectoryMappings = (output, context) => {
|
|
4376
|
-
const retVal = (output || [])
|
|
4377
|
-
.filter((e) => e != null)
|
|
4378
|
-
.map((entry) => {
|
|
4379
|
-
if (entry === null) {
|
|
4380
|
-
return null;
|
|
4381
|
-
}
|
|
4382
|
-
return de_HomeDirectoryMapEntry(entry, context);
|
|
4383
|
-
});
|
|
4384
|
-
return retVal;
|
|
4385
|
-
};
|
|
4386
|
-
const de_IdentityProviderDetails = (output, context) => {
|
|
4387
|
-
return {
|
|
4388
|
-
DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
|
|
4389
|
-
Function: (0, smithy_client_1.expectString)(output.Function),
|
|
4390
|
-
InvocationRole: (0, smithy_client_1.expectString)(output.InvocationRole),
|
|
4391
|
-
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
4392
|
-
};
|
|
4393
|
-
};
|
|
4394
|
-
const de_ImportCertificateResponse = (output, context) => {
|
|
4395
|
-
return {
|
|
4396
|
-
CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
|
|
4397
|
-
};
|
|
4398
|
-
};
|
|
4399
|
-
const de_ImportHostKeyResponse = (output, context) => {
|
|
4400
|
-
return {
|
|
4401
|
-
HostKeyId: (0, smithy_client_1.expectString)(output.HostKeyId),
|
|
4402
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4403
|
-
};
|
|
4404
|
-
};
|
|
4405
|
-
const de_ImportSshPublicKeyResponse = (output, context) => {
|
|
4406
|
-
return {
|
|
4407
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4408
|
-
SshPublicKeyId: (0, smithy_client_1.expectString)(output.SshPublicKeyId),
|
|
4409
|
-
UserName: (0, smithy_client_1.expectString)(output.UserName),
|
|
4410
|
-
};
|
|
4411
|
-
};
|
|
4412
|
-
const de_InputFileLocation = (output, context) => {
|
|
4413
|
-
return {
|
|
4414
|
-
EfsFileLocation: output.EfsFileLocation != null ? de_EfsFileLocation(output.EfsFileLocation, context) : undefined,
|
|
4415
|
-
S3FileLocation: output.S3FileLocation != null ? de_S3InputFileLocation(output.S3FileLocation, context) : undefined,
|
|
4416
|
-
};
|
|
4417
|
-
};
|
|
4418
|
-
const de_InternalServiceError = (output, context) => {
|
|
4419
|
-
return {
|
|
4420
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4421
|
-
};
|
|
4422
|
-
};
|
|
4423
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
4424
|
-
return {
|
|
4425
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4426
|
-
};
|
|
4427
|
-
};
|
|
4428
|
-
const de_InvalidRequestException = (output, context) => {
|
|
4429
|
-
return {
|
|
4430
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4431
|
-
};
|
|
4432
|
-
};
|
|
4433
|
-
const de_ListAccessesResponse = (output, context) => {
|
|
4434
|
-
return {
|
|
4435
|
-
Accesses: output.Accesses != null ? de_ListedAccesses(output.Accesses, context) : undefined,
|
|
4436
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4437
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4438
|
-
};
|
|
4439
|
-
};
|
|
4440
|
-
const de_ListAgreementsResponse = (output, context) => {
|
|
4441
|
-
return {
|
|
4442
|
-
Agreements: output.Agreements != null ? de_ListedAgreements(output.Agreements, context) : undefined,
|
|
4443
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4444
|
-
};
|
|
4445
|
-
};
|
|
4446
|
-
const de_ListCertificatesResponse = (output, context) => {
|
|
4447
|
-
return {
|
|
4448
|
-
Certificates: output.Certificates != null ? de_ListedCertificates(output.Certificates, context) : undefined,
|
|
4449
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4450
|
-
};
|
|
4451
|
-
};
|
|
4452
|
-
const de_ListConnectorsResponse = (output, context) => {
|
|
4453
|
-
return {
|
|
4454
|
-
Connectors: output.Connectors != null ? de_ListedConnectors(output.Connectors, context) : undefined,
|
|
4455
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4456
|
-
};
|
|
4457
|
-
};
|
|
4458
|
-
const de_ListedAccess = (output, context) => {
|
|
4459
|
-
return {
|
|
4460
|
-
ExternalId: (0, smithy_client_1.expectString)(output.ExternalId),
|
|
4461
|
-
HomeDirectory: (0, smithy_client_1.expectString)(output.HomeDirectory),
|
|
4462
|
-
HomeDirectoryType: (0, smithy_client_1.expectString)(output.HomeDirectoryType),
|
|
4463
|
-
Role: (0, smithy_client_1.expectString)(output.Role),
|
|
4464
|
-
};
|
|
4465
|
-
};
|
|
4466
|
-
const de_ListedAccesses = (output, context) => {
|
|
4467
|
-
const retVal = (output || [])
|
|
4468
|
-
.filter((e) => e != null)
|
|
4469
|
-
.map((entry) => {
|
|
4470
|
-
if (entry === null) {
|
|
4471
|
-
return null;
|
|
4472
|
-
}
|
|
4473
|
-
return de_ListedAccess(entry, context);
|
|
4474
|
-
});
|
|
4475
|
-
return retVal;
|
|
4476
|
-
};
|
|
4477
|
-
const de_ListedAgreement = (output, context) => {
|
|
4478
|
-
return {
|
|
4479
|
-
AgreementId: (0, smithy_client_1.expectString)(output.AgreementId),
|
|
4480
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4481
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4482
|
-
LocalProfileId: (0, smithy_client_1.expectString)(output.LocalProfileId),
|
|
4483
|
-
PartnerProfileId: (0, smithy_client_1.expectString)(output.PartnerProfileId),
|
|
4484
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4485
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4486
|
-
};
|
|
4487
|
-
};
|
|
4488
|
-
const de_ListedAgreements = (output, context) => {
|
|
4489
|
-
const retVal = (output || [])
|
|
4490
|
-
.filter((e) => e != null)
|
|
4491
|
-
.map((entry) => {
|
|
4492
|
-
if (entry === null) {
|
|
4493
|
-
return null;
|
|
4494
|
-
}
|
|
4495
|
-
return de_ListedAgreement(entry, context);
|
|
4496
|
-
});
|
|
4497
|
-
return retVal;
|
|
4498
|
-
};
|
|
4499
|
-
const de_ListedCertificate = (output, context) => {
|
|
4500
|
-
return {
|
|
4501
|
-
ActiveDate: output.ActiveDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActiveDate))) : undefined,
|
|
4502
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4503
|
-
CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
|
|
4504
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4505
|
-
InactiveDate: output.InactiveDate != null
|
|
4506
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InactiveDate)))
|
|
4507
|
-
: undefined,
|
|
4508
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4509
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4510
|
-
Usage: (0, smithy_client_1.expectString)(output.Usage),
|
|
4511
|
-
};
|
|
4512
|
-
};
|
|
4513
|
-
const de_ListedCertificates = (output, context) => {
|
|
4514
|
-
const retVal = (output || [])
|
|
4515
|
-
.filter((e) => e != null)
|
|
4516
|
-
.map((entry) => {
|
|
4517
|
-
if (entry === null) {
|
|
4518
|
-
return null;
|
|
4519
|
-
}
|
|
4520
|
-
return de_ListedCertificate(entry, context);
|
|
4521
|
-
});
|
|
4522
|
-
return retVal;
|
|
4523
|
-
};
|
|
4524
|
-
const de_ListedConnector = (output, context) => {
|
|
4525
|
-
return {
|
|
4526
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4527
|
-
ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
|
|
4528
|
-
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
4529
|
-
};
|
|
4530
|
-
};
|
|
4531
|
-
const de_ListedConnectors = (output, context) => {
|
|
4532
|
-
const retVal = (output || [])
|
|
4533
|
-
.filter((e) => e != null)
|
|
4534
|
-
.map((entry) => {
|
|
4535
|
-
if (entry === null) {
|
|
4536
|
-
return null;
|
|
4537
|
-
}
|
|
4538
|
-
return de_ListedConnector(entry, context);
|
|
4539
|
-
});
|
|
4540
|
-
return retVal;
|
|
4541
|
-
};
|
|
4542
|
-
const de_ListedExecution = (output, context) => {
|
|
4543
|
-
return {
|
|
4544
|
-
ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId),
|
|
4545
|
-
InitialFileLocation: output.InitialFileLocation != null ? de_FileLocation(output.InitialFileLocation, context) : undefined,
|
|
4546
|
-
ServiceMetadata: output.ServiceMetadata != null ? de_ServiceMetadata(output.ServiceMetadata, context) : undefined,
|
|
4547
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4548
|
-
};
|
|
4549
|
-
};
|
|
4550
|
-
const de_ListedExecutions = (output, context) => {
|
|
4551
|
-
const retVal = (output || [])
|
|
4552
|
-
.filter((e) => e != null)
|
|
4553
|
-
.map((entry) => {
|
|
4554
|
-
if (entry === null) {
|
|
4555
|
-
return null;
|
|
4556
|
-
}
|
|
4557
|
-
return de_ListedExecution(entry, context);
|
|
4558
|
-
});
|
|
4559
|
-
return retVal;
|
|
4560
|
-
};
|
|
4561
|
-
const de_ListedHostKey = (output, context) => {
|
|
4562
|
-
return {
|
|
4563
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4564
|
-
DateImported: output.DateImported != null
|
|
4565
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateImported)))
|
|
4566
|
-
: undefined,
|
|
4567
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4568
|
-
Fingerprint: (0, smithy_client_1.expectString)(output.Fingerprint),
|
|
4569
|
-
HostKeyId: (0, smithy_client_1.expectString)(output.HostKeyId),
|
|
4570
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4571
|
-
};
|
|
4572
|
-
};
|
|
4573
|
-
const de_ListedHostKeys = (output, context) => {
|
|
4574
|
-
const retVal = (output || [])
|
|
4575
|
-
.filter((e) => e != null)
|
|
4576
|
-
.map((entry) => {
|
|
4577
|
-
if (entry === null) {
|
|
4578
|
-
return null;
|
|
4579
|
-
}
|
|
4580
|
-
return de_ListedHostKey(entry, context);
|
|
4581
|
-
});
|
|
4582
|
-
return retVal;
|
|
4583
|
-
};
|
|
4584
|
-
const de_ListedProfile = (output, context) => {
|
|
4585
|
-
return {
|
|
4586
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4587
|
-
As2Id: (0, smithy_client_1.expectString)(output.As2Id),
|
|
4588
|
-
ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
|
|
4589
|
-
ProfileType: (0, smithy_client_1.expectString)(output.ProfileType),
|
|
4590
|
-
};
|
|
4591
|
-
};
|
|
4592
|
-
const de_ListedProfiles = (output, context) => {
|
|
4593
|
-
const retVal = (output || [])
|
|
4594
|
-
.filter((e) => e != null)
|
|
4595
|
-
.map((entry) => {
|
|
4596
|
-
if (entry === null) {
|
|
4597
|
-
return null;
|
|
4598
|
-
}
|
|
4599
|
-
return de_ListedProfile(entry, context);
|
|
4600
|
-
});
|
|
4601
|
-
return retVal;
|
|
4602
|
-
};
|
|
4603
|
-
const de_ListedServer = (output, context) => {
|
|
4604
|
-
return {
|
|
4605
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4606
|
-
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
4607
|
-
EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
|
|
4608
|
-
IdentityProviderType: (0, smithy_client_1.expectString)(output.IdentityProviderType),
|
|
4609
|
-
LoggingRole: (0, smithy_client_1.expectString)(output.LoggingRole),
|
|
4610
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4611
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
4612
|
-
UserCount: (0, smithy_client_1.expectInt32)(output.UserCount),
|
|
4613
|
-
};
|
|
4614
|
-
};
|
|
4615
|
-
const de_ListedServers = (output, context) => {
|
|
4616
|
-
const retVal = (output || [])
|
|
4617
|
-
.filter((e) => e != null)
|
|
4618
|
-
.map((entry) => {
|
|
4619
|
-
if (entry === null) {
|
|
4620
|
-
return null;
|
|
4621
|
-
}
|
|
4622
|
-
return de_ListedServer(entry, context);
|
|
4623
|
-
});
|
|
4624
|
-
return retVal;
|
|
4625
|
-
};
|
|
4626
|
-
const de_ListedUser = (output, context) => {
|
|
4627
|
-
return {
|
|
4628
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4629
|
-
HomeDirectory: (0, smithy_client_1.expectString)(output.HomeDirectory),
|
|
4630
|
-
HomeDirectoryType: (0, smithy_client_1.expectString)(output.HomeDirectoryType),
|
|
4631
|
-
Role: (0, smithy_client_1.expectString)(output.Role),
|
|
4632
|
-
SshPublicKeyCount: (0, smithy_client_1.expectInt32)(output.SshPublicKeyCount),
|
|
4633
|
-
UserName: (0, smithy_client_1.expectString)(output.UserName),
|
|
4634
|
-
};
|
|
4635
|
-
};
|
|
4636
|
-
const de_ListedUsers = (output, context) => {
|
|
4637
|
-
const retVal = (output || [])
|
|
4638
|
-
.filter((e) => e != null)
|
|
4639
|
-
.map((entry) => {
|
|
4640
|
-
if (entry === null) {
|
|
4641
|
-
return null;
|
|
4642
|
-
}
|
|
4643
|
-
return de_ListedUser(entry, context);
|
|
4644
|
-
});
|
|
4645
|
-
return retVal;
|
|
4646
|
-
};
|
|
4647
|
-
const de_ListedWorkflow = (output, context) => {
|
|
4648
|
-
return {
|
|
4649
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4650
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4651
|
-
WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
|
|
4652
|
-
};
|
|
4653
|
-
};
|
|
4654
|
-
const de_ListedWorkflows = (output, context) => {
|
|
4655
|
-
const retVal = (output || [])
|
|
4656
|
-
.filter((e) => e != null)
|
|
4657
|
-
.map((entry) => {
|
|
4658
|
-
if (entry === null) {
|
|
4659
|
-
return null;
|
|
4660
|
-
}
|
|
4661
|
-
return de_ListedWorkflow(entry, context);
|
|
4662
|
-
});
|
|
4663
|
-
return retVal;
|
|
4664
|
-
};
|
|
4665
|
-
const de_ListExecutionsResponse = (output, context) => {
|
|
4666
|
-
return {
|
|
4667
|
-
Executions: output.Executions != null ? de_ListedExecutions(output.Executions, context) : undefined,
|
|
4668
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4669
|
-
WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
|
|
4670
|
-
};
|
|
4671
|
-
};
|
|
4672
|
-
const de_ListHostKeysResponse = (output, context) => {
|
|
4673
|
-
return {
|
|
4674
|
-
HostKeys: output.HostKeys != null ? de_ListedHostKeys(output.HostKeys, context) : undefined,
|
|
4675
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4676
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4677
|
-
};
|
|
4678
|
-
};
|
|
4679
|
-
const de_ListProfilesResponse = (output, context) => {
|
|
4680
|
-
return {
|
|
4681
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4682
|
-
Profiles: output.Profiles != null ? de_ListedProfiles(output.Profiles, context) : undefined,
|
|
4683
|
-
};
|
|
4684
|
-
};
|
|
4685
|
-
const de_ListSecurityPoliciesResponse = (output, context) => {
|
|
4686
|
-
return {
|
|
4687
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4688
|
-
SecurityPolicyNames: output.SecurityPolicyNames != null ? de_SecurityPolicyNames(output.SecurityPolicyNames, context) : undefined,
|
|
4689
|
-
};
|
|
4690
|
-
};
|
|
4691
|
-
const de_ListServersResponse = (output, context) => {
|
|
4692
|
-
return {
|
|
4693
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4694
|
-
Servers: output.Servers != null ? de_ListedServers(output.Servers, context) : undefined,
|
|
4695
|
-
};
|
|
4696
|
-
};
|
|
4697
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
4698
|
-
return {
|
|
4699
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4700
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4701
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
4702
|
-
};
|
|
4703
|
-
};
|
|
4704
|
-
const de_ListUsersResponse = (output, context) => {
|
|
4705
|
-
return {
|
|
4706
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4707
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4708
|
-
Users: output.Users != null ? de_ListedUsers(output.Users, context) : undefined,
|
|
4709
|
-
};
|
|
4710
|
-
};
|
|
4711
|
-
const de_ListWorkflowsResponse = (output, context) => {
|
|
4712
|
-
return {
|
|
4713
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4714
|
-
Workflows: output.Workflows != null ? de_ListedWorkflows(output.Workflows, context) : undefined,
|
|
4715
|
-
};
|
|
4716
|
-
};
|
|
4717
|
-
const de_LoggingConfiguration = (output, context) => {
|
|
4718
|
-
return {
|
|
4719
|
-
LogGroupName: (0, smithy_client_1.expectString)(output.LogGroupName),
|
|
4720
|
-
LoggingRole: (0, smithy_client_1.expectString)(output.LoggingRole),
|
|
4721
|
-
};
|
|
4722
|
-
};
|
|
4723
|
-
const de_OnPartialUploadWorkflowDetails = (output, context) => {
|
|
4724
|
-
const retVal = (output || [])
|
|
4725
|
-
.filter((e) => e != null)
|
|
4726
|
-
.map((entry) => {
|
|
4727
|
-
if (entry === null) {
|
|
4728
|
-
return null;
|
|
4729
|
-
}
|
|
4730
|
-
return de_WorkflowDetail(entry, context);
|
|
4731
|
-
});
|
|
4732
|
-
return retVal;
|
|
4733
|
-
};
|
|
4734
|
-
const de_OnUploadWorkflowDetails = (output, context) => {
|
|
4735
|
-
const retVal = (output || [])
|
|
4736
|
-
.filter((e) => e != null)
|
|
4737
|
-
.map((entry) => {
|
|
4738
|
-
if (entry === null) {
|
|
4739
|
-
return null;
|
|
4740
|
-
}
|
|
4741
|
-
return de_WorkflowDetail(entry, context);
|
|
4742
|
-
});
|
|
4743
|
-
return retVal;
|
|
4744
|
-
};
|
|
4745
|
-
const de_PosixProfile = (output, context) => {
|
|
4746
|
-
return {
|
|
4747
|
-
Gid: (0, smithy_client_1.expectLong)(output.Gid),
|
|
4748
|
-
SecondaryGids: output.SecondaryGids != null ? de_SecondaryGids(output.SecondaryGids, context) : undefined,
|
|
4749
|
-
Uid: (0, smithy_client_1.expectLong)(output.Uid),
|
|
4750
|
-
};
|
|
4751
|
-
};
|
|
4752
|
-
const de_ProtocolDetails = (output, context) => {
|
|
4753
|
-
return {
|
|
4754
|
-
As2Transports: output.As2Transports != null ? de_As2Transports(output.As2Transports, context) : undefined,
|
|
4755
|
-
PassiveIp: (0, smithy_client_1.expectString)(output.PassiveIp),
|
|
4756
|
-
SetStatOption: (0, smithy_client_1.expectString)(output.SetStatOption),
|
|
4757
|
-
TlsSessionResumptionMode: (0, smithy_client_1.expectString)(output.TlsSessionResumptionMode),
|
|
4758
|
-
};
|
|
4759
|
-
};
|
|
4760
|
-
const de_Protocols = (output, context) => {
|
|
4761
|
-
const retVal = (output || [])
|
|
4762
|
-
.filter((e) => e != null)
|
|
4763
|
-
.map((entry) => {
|
|
4764
|
-
if (entry === null) {
|
|
4765
|
-
return null;
|
|
4766
|
-
}
|
|
4767
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4768
|
-
});
|
|
4769
|
-
return retVal;
|
|
4770
|
-
};
|
|
4771
|
-
const de_ResourceExistsException = (output, context) => {
|
|
4772
|
-
return {
|
|
4773
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4774
|
-
Resource: (0, smithy_client_1.expectString)(output.Resource),
|
|
4775
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
4776
|
-
};
|
|
4777
|
-
};
|
|
4778
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
4779
|
-
return {
|
|
4780
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4781
|
-
Resource: (0, smithy_client_1.expectString)(output.Resource),
|
|
4782
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
4783
|
-
};
|
|
4784
|
-
};
|
|
4785
|
-
const de_S3FileLocation = (output, context) => {
|
|
4786
|
-
return {
|
|
4787
|
-
Bucket: (0, smithy_client_1.expectString)(output.Bucket),
|
|
4788
|
-
Etag: (0, smithy_client_1.expectString)(output.Etag),
|
|
4789
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
4790
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
4791
|
-
};
|
|
4792
|
-
};
|
|
4793
|
-
const de_S3InputFileLocation = (output, context) => {
|
|
4794
|
-
return {
|
|
4795
|
-
Bucket: (0, smithy_client_1.expectString)(output.Bucket),
|
|
4796
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
4797
|
-
};
|
|
4798
|
-
};
|
|
4799
|
-
const de_S3Tag = (output, context) => {
|
|
4800
|
-
return {
|
|
4801
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
4802
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
4803
|
-
};
|
|
4804
|
-
};
|
|
4805
|
-
const de_S3Tags = (output, context) => {
|
|
4806
|
-
const retVal = (output || [])
|
|
4807
|
-
.filter((e) => e != null)
|
|
4808
|
-
.map((entry) => {
|
|
4809
|
-
if (entry === null) {
|
|
4810
|
-
return null;
|
|
4811
|
-
}
|
|
4812
|
-
return de_S3Tag(entry, context);
|
|
4813
|
-
});
|
|
4814
|
-
return retVal;
|
|
4815
|
-
};
|
|
4816
|
-
const de_SecondaryGids = (output, context) => {
|
|
4817
|
-
const retVal = (output || [])
|
|
4818
|
-
.filter((e) => e != null)
|
|
4819
|
-
.map((entry) => {
|
|
4820
|
-
if (entry === null) {
|
|
4821
|
-
return null;
|
|
4822
|
-
}
|
|
4823
|
-
return (0, smithy_client_1.expectLong)(entry);
|
|
4824
|
-
});
|
|
4825
|
-
return retVal;
|
|
4826
|
-
};
|
|
4827
|
-
const de_SecurityGroupIds = (output, context) => {
|
|
4828
|
-
const retVal = (output || [])
|
|
4829
|
-
.filter((e) => e != null)
|
|
4830
|
-
.map((entry) => {
|
|
4831
|
-
if (entry === null) {
|
|
4832
|
-
return null;
|
|
4833
|
-
}
|
|
4834
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4835
|
-
});
|
|
4836
|
-
return retVal;
|
|
4837
|
-
};
|
|
4838
|
-
const de_SecurityPolicyNames = (output, context) => {
|
|
4839
|
-
const retVal = (output || [])
|
|
4840
|
-
.filter((e) => e != null)
|
|
4841
|
-
.map((entry) => {
|
|
4842
|
-
if (entry === null) {
|
|
4843
|
-
return null;
|
|
4844
|
-
}
|
|
4845
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4846
|
-
});
|
|
4847
|
-
return retVal;
|
|
4848
|
-
};
|
|
4849
|
-
const de_SecurityPolicyOptions = (output, context) => {
|
|
4850
|
-
const retVal = (output || [])
|
|
4851
|
-
.filter((e) => e != null)
|
|
4852
|
-
.map((entry) => {
|
|
4853
|
-
if (entry === null) {
|
|
4854
|
-
return null;
|
|
4855
|
-
}
|
|
4856
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4857
|
-
});
|
|
4858
|
-
return retVal;
|
|
4859
|
-
};
|
|
4860
|
-
const de_SendWorkflowStepStateResponse = (output, context) => {
|
|
4861
|
-
return {};
|
|
4862
|
-
};
|
|
4863
|
-
const de_ServiceMetadata = (output, context) => {
|
|
4864
|
-
return {
|
|
4865
|
-
UserDetails: output.UserDetails != null ? de_UserDetails(output.UserDetails, context) : undefined,
|
|
4866
|
-
};
|
|
4867
|
-
};
|
|
4868
|
-
const de_ServiceUnavailableException = (output, context) => {
|
|
4869
|
-
return {
|
|
4870
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4871
|
-
};
|
|
4872
|
-
};
|
|
4873
|
-
const de_SshPublicKey = (output, context) => {
|
|
4874
|
-
return {
|
|
4875
|
-
DateImported: output.DateImported != null
|
|
4876
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateImported)))
|
|
4877
|
-
: undefined,
|
|
4878
|
-
SshPublicKeyBody: (0, smithy_client_1.expectString)(output.SshPublicKeyBody),
|
|
4879
|
-
SshPublicKeyId: (0, smithy_client_1.expectString)(output.SshPublicKeyId),
|
|
4880
|
-
};
|
|
4881
|
-
};
|
|
4882
|
-
const de_SshPublicKeys = (output, context) => {
|
|
4883
|
-
const retVal = (output || [])
|
|
4884
|
-
.filter((e) => e != null)
|
|
4885
|
-
.map((entry) => {
|
|
4886
|
-
if (entry === null) {
|
|
4887
|
-
return null;
|
|
4888
|
-
}
|
|
4889
|
-
return de_SshPublicKey(entry, context);
|
|
4890
|
-
});
|
|
4891
|
-
return retVal;
|
|
4892
|
-
};
|
|
4893
|
-
const de_StartFileTransferResponse = (output, context) => {
|
|
4894
|
-
return {
|
|
4895
|
-
TransferId: (0, smithy_client_1.expectString)(output.TransferId),
|
|
4896
|
-
};
|
|
4897
|
-
};
|
|
4898
|
-
const de_SubnetIds = (output, context) => {
|
|
4899
|
-
const retVal = (output || [])
|
|
4900
|
-
.filter((e) => e != null)
|
|
4901
|
-
.map((entry) => {
|
|
4902
|
-
if (entry === null) {
|
|
4903
|
-
return null;
|
|
4904
|
-
}
|
|
4905
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4906
|
-
});
|
|
4907
|
-
return retVal;
|
|
4908
|
-
};
|
|
4909
|
-
const de_Tag = (output, context) => {
|
|
4910
|
-
return {
|
|
4911
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
4912
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
4913
|
-
};
|
|
4914
|
-
};
|
|
4915
|
-
const de_Tags = (output, context) => {
|
|
4916
|
-
const retVal = (output || [])
|
|
4917
|
-
.filter((e) => e != null)
|
|
4918
|
-
.map((entry) => {
|
|
4919
|
-
if (entry === null) {
|
|
4920
|
-
return null;
|
|
4921
|
-
}
|
|
4922
|
-
return de_Tag(entry, context);
|
|
4923
|
-
});
|
|
4924
|
-
return retVal;
|
|
4925
|
-
};
|
|
4926
|
-
const de_TagStepDetails = (output, context) => {
|
|
4927
|
-
return {
|
|
4928
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4929
|
-
SourceFileLocation: (0, smithy_client_1.expectString)(output.SourceFileLocation),
|
|
4930
|
-
Tags: output.Tags != null ? de_S3Tags(output.Tags, context) : undefined,
|
|
4931
|
-
};
|
|
4932
|
-
};
|
|
4933
|
-
const de_TestIdentityProviderResponse = (output, context) => {
|
|
4934
|
-
return {
|
|
4935
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4936
|
-
Response: (0, smithy_client_1.expectString)(output.Response),
|
|
4937
|
-
StatusCode: (0, smithy_client_1.expectInt32)(output.StatusCode),
|
|
4938
|
-
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
4939
|
-
};
|
|
4940
|
-
};
|
|
4941
|
-
const de_ThrottlingException = (output, context) => {
|
|
4942
|
-
return {
|
|
4943
|
-
RetryAfterSeconds: (0, smithy_client_1.expectString)(output.RetryAfterSeconds),
|
|
4944
|
-
};
|
|
4945
|
-
};
|
|
4946
|
-
const de_UpdateAccessResponse = (output, context) => {
|
|
4947
|
-
return {
|
|
4948
|
-
ExternalId: (0, smithy_client_1.expectString)(output.ExternalId),
|
|
4949
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4950
|
-
};
|
|
4951
|
-
};
|
|
4952
|
-
const de_UpdateAgreementResponse = (output, context) => {
|
|
4953
|
-
return {
|
|
4954
|
-
AgreementId: (0, smithy_client_1.expectString)(output.AgreementId),
|
|
4955
|
-
};
|
|
4956
|
-
};
|
|
4957
|
-
const de_UpdateCertificateResponse = (output, context) => {
|
|
4958
|
-
return {
|
|
4959
|
-
CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
|
|
4960
|
-
};
|
|
4961
|
-
};
|
|
4962
|
-
const de_UpdateConnectorResponse = (output, context) => {
|
|
4963
|
-
return {
|
|
4964
|
-
ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
|
|
4965
|
-
};
|
|
4966
|
-
};
|
|
4967
|
-
const de_UpdateHostKeyResponse = (output, context) => {
|
|
4968
|
-
return {
|
|
4969
|
-
HostKeyId: (0, smithy_client_1.expectString)(output.HostKeyId),
|
|
4970
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4971
|
-
};
|
|
4972
|
-
};
|
|
4973
|
-
const de_UpdateProfileResponse = (output, context) => {
|
|
4974
|
-
return {
|
|
4975
|
-
ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
|
|
4976
|
-
};
|
|
4977
|
-
};
|
|
4978
|
-
const de_UpdateServerResponse = (output, context) => {
|
|
4979
|
-
return {
|
|
4980
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4981
|
-
};
|
|
4982
|
-
};
|
|
4983
|
-
const de_UpdateUserResponse = (output, context) => {
|
|
4984
|
-
return {
|
|
4985
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4986
|
-
UserName: (0, smithy_client_1.expectString)(output.UserName),
|
|
4987
|
-
};
|
|
4988
|
-
};
|
|
4989
|
-
const de_UserDetails = (output, context) => {
|
|
4990
|
-
return {
|
|
4991
|
-
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4992
|
-
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4993
|
-
UserName: (0, smithy_client_1.expectString)(output.UserName),
|
|
4994
|
-
};
|
|
4995
|
-
};
|
|
4996
|
-
const de_WorkflowDetail = (output, context) => {
|
|
4997
|
-
return {
|
|
4998
|
-
ExecutionRole: (0, smithy_client_1.expectString)(output.ExecutionRole),
|
|
4999
|
-
WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
|
|
5000
|
-
};
|
|
5001
|
-
};
|
|
5002
|
-
const de_WorkflowDetails = (output, context) => {
|
|
5003
|
-
return {
|
|
5004
|
-
OnPartialUpload: output.OnPartialUpload != null ? de_OnPartialUploadWorkflowDetails(output.OnPartialUpload, context) : undefined,
|
|
5005
|
-
OnUpload: output.OnUpload != null ? de_OnUploadWorkflowDetails(output.OnUpload, context) : undefined,
|
|
5006
|
-
};
|
|
5007
|
-
};
|
|
5008
|
-
const de_WorkflowStep = (output, context) => {
|
|
5009
|
-
return {
|
|
5010
|
-
CopyStepDetails: output.CopyStepDetails != null ? de_CopyStepDetails(output.CopyStepDetails, context) : undefined,
|
|
5011
|
-
CustomStepDetails: output.CustomStepDetails != null ? de_CustomStepDetails(output.CustomStepDetails, context) : undefined,
|
|
5012
|
-
DecryptStepDetails: output.DecryptStepDetails != null ? de_DecryptStepDetails(output.DecryptStepDetails, context) : undefined,
|
|
5013
|
-
DeleteStepDetails: output.DeleteStepDetails != null ? de_DeleteStepDetails(output.DeleteStepDetails, context) : undefined,
|
|
5014
|
-
TagStepDetails: output.TagStepDetails != null ? de_TagStepDetails(output.TagStepDetails, context) : undefined,
|
|
5015
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
5016
|
-
};
|
|
5017
|
-
};
|
|
5018
|
-
const de_WorkflowSteps = (output, context) => {
|
|
5019
|
-
const retVal = (output || [])
|
|
5020
|
-
.filter((e) => e != null)
|
|
5021
|
-
.map((entry) => {
|
|
5022
|
-
if (entry === null) {
|
|
5023
|
-
return null;
|
|
5024
|
-
}
|
|
5025
|
-
return de_WorkflowStep(entry, context);
|
|
5026
|
-
});
|
|
5027
|
-
return retVal;
|
|
5028
|
-
};
|
|
5029
|
-
const deserializeMetadata = (output) => ({
|
|
5030
|
-
httpStatusCode: output.statusCode,
|
|
5031
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
5032
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
5033
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
5034
|
-
});
|
|
5035
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
5036
|
-
if (streamBody instanceof Uint8Array) {
|
|
5037
|
-
return Promise.resolve(streamBody);
|
|
5038
|
-
}
|
|
5039
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
5040
|
-
};
|
|
5041
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
5042
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
5043
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
5044
|
-
const contents = {
|
|
5045
|
-
protocol,
|
|
5046
|
-
hostname,
|
|
5047
|
-
port,
|
|
5048
|
-
method: "POST",
|
|
5049
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
5050
|
-
headers,
|
|
5051
|
-
};
|
|
5052
|
-
if (resolvedHostname !== undefined) {
|
|
5053
|
-
contents.hostname = resolvedHostname;
|
|
5054
|
-
}
|
|
5055
|
-
if (body !== undefined) {
|
|
5056
|
-
contents.body = body;
|
|
5057
|
-
}
|
|
5058
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
5059
|
-
};
|
|
3214
|
+
}
|
|
5060
3215
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5061
3216
|
if (encoded.length) {
|
|
5062
3217
|
return JSON.parse(encoded);
|