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