@aws-sdk/client-transfer 3.169.0 → 3.170.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/Transfer.js +75 -0
- package/dist-cjs/commands/DeleteHostKeyCommand.js +36 -0
- package/dist-cjs/commands/DescribeHostKeyCommand.js +36 -0
- package/dist-cjs/commands/ImportHostKeyCommand.js +36 -0
- package/dist-cjs/commands/ListHostKeysCommand.js +36 -0
- package/dist-cjs/commands/UpdateHostKeyCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +48 -3
- package/dist-cjs/protocols/Aws_json1_1.js +374 -3
- package/dist-es/Transfer.js +75 -0
- package/dist-es/commands/DeleteHostKeyCommand.js +39 -0
- package/dist-es/commands/DescribeHostKeyCommand.js +39 -0
- package/dist-es/commands/ImportHostKeyCommand.js +39 -0
- package/dist-es/commands/ListHostKeysCommand.js +39 -0
- package/dist-es/commands/UpdateHostKeyCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +11 -0
- package/dist-es/protocols/Aws_json1_1.js +465 -0
- package/dist-types/Transfer.d.ts +35 -0
- package/dist-types/TransferClient.d.ts +7 -2
- package/dist-types/commands/DeleteHostKeyCommand.d.ts +35 -0
- package/dist-types/commands/DescribeHostKeyCommand.d.ts +35 -0
- package/dist-types/commands/ImportHostKeyCommand.d.ts +35 -0
- package/dist-types/commands/ListHostKeysCommand.d.ts +35 -0
- package/dist-types/commands/UpdateHostKeyCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +254 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/ts3.4/Transfer.d.ts +1048 -270
- package/dist-types/ts3.4/TransferClient.d.ts +477 -126
- package/dist-types/ts3.4/commands/CreateAccessCommand.d.ts +34 -17
- package/dist-types/ts3.4/commands/CreateAgreementCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/CreateConnectorCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/CreateServerCommand.d.ts +34 -17
- package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +34 -17
- package/dist-types/ts3.4/commands/CreateWorkflowCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/DeleteAccessCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/DeleteAgreementCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/DeleteCertificateCommand.d.ts +33 -17
- package/dist-types/ts3.4/commands/DeleteConnectorCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/DeleteHostKeyCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/DeleteServerCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/DeleteSshPublicKeyCommand.d.ts +33 -17
- package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/DeleteWorkflowCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/DescribeAccessCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/DescribeAgreementCommand.d.ts +38 -17
- package/dist-types/ts3.4/commands/DescribeCertificateCommand.d.ts +38 -17
- package/dist-types/ts3.4/commands/DescribeConnectorCommand.d.ts +38 -17
- package/dist-types/ts3.4/commands/DescribeExecutionCommand.d.ts +38 -17
- package/dist-types/ts3.4/commands/DescribeHostKeyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeProfileCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/DescribeSecurityPolicyCommand.d.ts +41 -17
- package/dist-types/ts3.4/commands/DescribeServerCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/DescribeUserCommand.d.ts +34 -17
- package/dist-types/ts3.4/commands/DescribeWorkflowCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/ImportCertificateCommand.d.ts +38 -17
- package/dist-types/ts3.4/commands/ImportHostKeyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ImportSshPublicKeyCommand.d.ts +38 -17
- package/dist-types/ts3.4/commands/ListAccessesCommand.d.ts +34 -17
- package/dist-types/ts3.4/commands/ListAgreementsCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/ListCertificatesCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/ListExecutionsCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/ListHostKeysCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +34 -17
- package/dist-types/ts3.4/commands/ListSecurityPoliciesCommand.d.ts +41 -17
- package/dist-types/ts3.4/commands/ListServersCommand.d.ts +34 -17
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -17
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +34 -17
- package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/SendWorkflowStepStateCommand.d.ts +41 -17
- package/dist-types/ts3.4/commands/StartFileTransferCommand.d.ts +38 -17
- package/dist-types/ts3.4/commands/StartServerCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/StopServerCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/TestIdentityProviderCommand.d.ts +41 -17
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/UpdateAccessCommand.d.ts +34 -17
- package/dist-types/ts3.4/commands/UpdateAgreementCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/UpdateCertificateCommand.d.ts +38 -17
- package/dist-types/ts3.4/commands/UpdateConnectorCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/UpdateHostKeyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +37 -17
- package/dist-types/ts3.4/commands/UpdateServerCommand.d.ts +34 -17
- package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +34 -17
- package/dist-types/ts3.4/commands/index.d.ts +58 -53
- package/dist-types/ts3.4/endpoints.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +7 -7
- package/dist-types/ts3.4/models/TransferServiceException.d.ts +8 -6
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +2010 -1748
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -6
- package/dist-types/ts3.4/pagination/ListAccessesPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/ListAgreementsPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/ListCertificatesPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/ListExecutionsPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/ListSecurityPoliciesPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/ListServersPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/index.d.ts +12 -12
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +701 -161
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +66 -38
- package/dist-types/ts3.4/runtimeConfig.d.ts +66 -38
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +67 -37
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -11
- package/dist-types/ts3.4/waiters/index.d.ts +2 -2
- package/dist-types/ts3.4/waiters/waitForServerOffline.d.ts +13 -7
- package/dist-types/ts3.4/waiters/waitForServerOnline.d.ts +13 -7
- package/package.json +35 -35
|
@@ -124,6 +124,17 @@ export var serializeAws_json1_1DeleteConnectorCommand = function (input, context
|
|
|
124
124
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
125
|
});
|
|
126
126
|
}); };
|
|
127
|
+
export var serializeAws_json1_1DeleteHostKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
+
var headers, body;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.1",
|
|
132
|
+
"x-amz-target": "TransferService.DeleteHostKey",
|
|
133
|
+
};
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_1DeleteHostKeyRequest(input, context));
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
127
138
|
export var serializeAws_json1_1DeleteProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
139
|
var headers, body;
|
|
129
140
|
return __generator(this, function (_a) {
|
|
@@ -234,6 +245,17 @@ export var serializeAws_json1_1DescribeExecutionCommand = function (input, conte
|
|
|
234
245
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
235
246
|
});
|
|
236
247
|
}); };
|
|
248
|
+
export var serializeAws_json1_1DescribeHostKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
249
|
+
var headers, body;
|
|
250
|
+
return __generator(this, function (_a) {
|
|
251
|
+
headers = {
|
|
252
|
+
"content-type": "application/x-amz-json-1.1",
|
|
253
|
+
"x-amz-target": "TransferService.DescribeHostKey",
|
|
254
|
+
};
|
|
255
|
+
body = JSON.stringify(serializeAws_json1_1DescribeHostKeyRequest(input, context));
|
|
256
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
257
|
+
});
|
|
258
|
+
}); };
|
|
237
259
|
export var serializeAws_json1_1DescribeProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
238
260
|
var headers, body;
|
|
239
261
|
return __generator(this, function (_a) {
|
|
@@ -300,6 +322,17 @@ export var serializeAws_json1_1ImportCertificateCommand = function (input, conte
|
|
|
300
322
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
301
323
|
});
|
|
302
324
|
}); };
|
|
325
|
+
export var serializeAws_json1_1ImportHostKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
326
|
+
var headers, body;
|
|
327
|
+
return __generator(this, function (_a) {
|
|
328
|
+
headers = {
|
|
329
|
+
"content-type": "application/x-amz-json-1.1",
|
|
330
|
+
"x-amz-target": "TransferService.ImportHostKey",
|
|
331
|
+
};
|
|
332
|
+
body = JSON.stringify(serializeAws_json1_1ImportHostKeyRequest(input, context));
|
|
333
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
334
|
+
});
|
|
335
|
+
}); };
|
|
303
336
|
export var serializeAws_json1_1ImportSshPublicKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
304
337
|
var headers, body;
|
|
305
338
|
return __generator(this, function (_a) {
|
|
@@ -366,6 +399,17 @@ export var serializeAws_json1_1ListExecutionsCommand = function (input, context)
|
|
|
366
399
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
367
400
|
});
|
|
368
401
|
}); };
|
|
402
|
+
export var serializeAws_json1_1ListHostKeysCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
403
|
+
var headers, body;
|
|
404
|
+
return __generator(this, function (_a) {
|
|
405
|
+
headers = {
|
|
406
|
+
"content-type": "application/x-amz-json-1.1",
|
|
407
|
+
"x-amz-target": "TransferService.ListHostKeys",
|
|
408
|
+
};
|
|
409
|
+
body = JSON.stringify(serializeAws_json1_1ListHostKeysRequest(input, context));
|
|
410
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
411
|
+
});
|
|
412
|
+
}); };
|
|
369
413
|
export var serializeAws_json1_1ListProfilesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
370
414
|
var headers, body;
|
|
371
415
|
return __generator(this, function (_a) {
|
|
@@ -553,6 +597,17 @@ export var serializeAws_json1_1UpdateConnectorCommand = function (input, context
|
|
|
553
597
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
554
598
|
});
|
|
555
599
|
}); };
|
|
600
|
+
export var serializeAws_json1_1UpdateHostKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
601
|
+
var headers, body;
|
|
602
|
+
return __generator(this, function (_a) {
|
|
603
|
+
headers = {
|
|
604
|
+
"content-type": "application/x-amz-json-1.1",
|
|
605
|
+
"x-amz-target": "TransferService.UpdateHostKey",
|
|
606
|
+
};
|
|
607
|
+
body = JSON.stringify(serializeAws_json1_1UpdateHostKeyRequest(input, context));
|
|
608
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
609
|
+
});
|
|
610
|
+
}); };
|
|
556
611
|
export var serializeAws_json1_1UpdateProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
557
612
|
var headers, body;
|
|
558
613
|
return __generator(this, function (_a) {
|
|
@@ -1315,6 +1370,73 @@ var deserializeAws_json1_1DeleteConnectorCommandError = function (output, contex
|
|
|
1315
1370
|
}
|
|
1316
1371
|
});
|
|
1317
1372
|
}); };
|
|
1373
|
+
export var deserializeAws_json1_1DeleteHostKeyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1374
|
+
var response;
|
|
1375
|
+
return __generator(this, function (_a) {
|
|
1376
|
+
switch (_a.label) {
|
|
1377
|
+
case 0:
|
|
1378
|
+
if (output.statusCode >= 300) {
|
|
1379
|
+
return [2, deserializeAws_json1_1DeleteHostKeyCommandError(output, context)];
|
|
1380
|
+
}
|
|
1381
|
+
return [4, collectBody(output.body, context)];
|
|
1382
|
+
case 1:
|
|
1383
|
+
_a.sent();
|
|
1384
|
+
response = {
|
|
1385
|
+
$metadata: deserializeMetadata(output),
|
|
1386
|
+
};
|
|
1387
|
+
return [2, Promise.resolve(response)];
|
|
1388
|
+
}
|
|
1389
|
+
});
|
|
1390
|
+
}); };
|
|
1391
|
+
var deserializeAws_json1_1DeleteHostKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1392
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1393
|
+
var _c;
|
|
1394
|
+
return __generator(this, function (_d) {
|
|
1395
|
+
switch (_d.label) {
|
|
1396
|
+
case 0:
|
|
1397
|
+
_a = [__assign({}, output)];
|
|
1398
|
+
_c = {};
|
|
1399
|
+
return [4, parseBody(output.body, context)];
|
|
1400
|
+
case 1:
|
|
1401
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1402
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1403
|
+
_b = errorCode;
|
|
1404
|
+
switch (_b) {
|
|
1405
|
+
case "InternalServiceError": return [3, 2];
|
|
1406
|
+
case "com.amazonaws.transfer#InternalServiceError": return [3, 2];
|
|
1407
|
+
case "InvalidRequestException": return [3, 4];
|
|
1408
|
+
case "com.amazonaws.transfer#InvalidRequestException": return [3, 4];
|
|
1409
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1410
|
+
case "com.amazonaws.transfer#ResourceNotFoundException": return [3, 6];
|
|
1411
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1412
|
+
case "com.amazonaws.transfer#ServiceUnavailableException": return [3, 8];
|
|
1413
|
+
case "ThrottlingException": return [3, 10];
|
|
1414
|
+
case "com.amazonaws.transfer#ThrottlingException": return [3, 10];
|
|
1415
|
+
}
|
|
1416
|
+
return [3, 12];
|
|
1417
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1418
|
+
case 3: throw _d.sent();
|
|
1419
|
+
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1420
|
+
case 5: throw _d.sent();
|
|
1421
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1422
|
+
case 7: throw _d.sent();
|
|
1423
|
+
case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1424
|
+
case 9: throw _d.sent();
|
|
1425
|
+
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1426
|
+
case 11: throw _d.sent();
|
|
1427
|
+
case 12:
|
|
1428
|
+
parsedBody = parsedOutput.body;
|
|
1429
|
+
throwDefaultError({
|
|
1430
|
+
output: output,
|
|
1431
|
+
parsedBody: parsedBody,
|
|
1432
|
+
exceptionCtor: __BaseException,
|
|
1433
|
+
errorCode: errorCode,
|
|
1434
|
+
});
|
|
1435
|
+
_d.label = 13;
|
|
1436
|
+
case 13: return [2];
|
|
1437
|
+
}
|
|
1438
|
+
});
|
|
1439
|
+
}); };
|
|
1318
1440
|
export var deserializeAws_json1_1DeleteProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1319
1441
|
var response;
|
|
1320
1442
|
return __generator(this, function (_a) {
|
|
@@ -1957,6 +2079,69 @@ var deserializeAws_json1_1DescribeExecutionCommandError = function (output, cont
|
|
|
1957
2079
|
}
|
|
1958
2080
|
});
|
|
1959
2081
|
}); };
|
|
2082
|
+
export var deserializeAws_json1_1DescribeHostKeyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2083
|
+
var data, contents, response;
|
|
2084
|
+
return __generator(this, function (_a) {
|
|
2085
|
+
switch (_a.label) {
|
|
2086
|
+
case 0:
|
|
2087
|
+
if (output.statusCode >= 300) {
|
|
2088
|
+
return [2, deserializeAws_json1_1DescribeHostKeyCommandError(output, context)];
|
|
2089
|
+
}
|
|
2090
|
+
return [4, parseBody(output.body, context)];
|
|
2091
|
+
case 1:
|
|
2092
|
+
data = _a.sent();
|
|
2093
|
+
contents = {};
|
|
2094
|
+
contents = deserializeAws_json1_1DescribeHostKeyResponse(data, context);
|
|
2095
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2096
|
+
return [2, Promise.resolve(response)];
|
|
2097
|
+
}
|
|
2098
|
+
});
|
|
2099
|
+
}); };
|
|
2100
|
+
var deserializeAws_json1_1DescribeHostKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2101
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2102
|
+
var _c;
|
|
2103
|
+
return __generator(this, function (_d) {
|
|
2104
|
+
switch (_d.label) {
|
|
2105
|
+
case 0:
|
|
2106
|
+
_a = [__assign({}, output)];
|
|
2107
|
+
_c = {};
|
|
2108
|
+
return [4, parseBody(output.body, context)];
|
|
2109
|
+
case 1:
|
|
2110
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2111
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2112
|
+
_b = errorCode;
|
|
2113
|
+
switch (_b) {
|
|
2114
|
+
case "InternalServiceError": return [3, 2];
|
|
2115
|
+
case "com.amazonaws.transfer#InternalServiceError": return [3, 2];
|
|
2116
|
+
case "InvalidRequestException": return [3, 4];
|
|
2117
|
+
case "com.amazonaws.transfer#InvalidRequestException": return [3, 4];
|
|
2118
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2119
|
+
case "com.amazonaws.transfer#ResourceNotFoundException": return [3, 6];
|
|
2120
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2121
|
+
case "com.amazonaws.transfer#ServiceUnavailableException": return [3, 8];
|
|
2122
|
+
}
|
|
2123
|
+
return [3, 10];
|
|
2124
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
2125
|
+
case 3: throw _d.sent();
|
|
2126
|
+
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2127
|
+
case 5: throw _d.sent();
|
|
2128
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2129
|
+
case 7: throw _d.sent();
|
|
2130
|
+
case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2131
|
+
case 9: throw _d.sent();
|
|
2132
|
+
case 10:
|
|
2133
|
+
parsedBody = parsedOutput.body;
|
|
2134
|
+
throwDefaultError({
|
|
2135
|
+
output: output,
|
|
2136
|
+
parsedBody: parsedBody,
|
|
2137
|
+
exceptionCtor: __BaseException,
|
|
2138
|
+
errorCode: errorCode,
|
|
2139
|
+
});
|
|
2140
|
+
_d.label = 11;
|
|
2141
|
+
case 11: return [2];
|
|
2142
|
+
}
|
|
2143
|
+
});
|
|
2144
|
+
}); };
|
|
1960
2145
|
export var deserializeAws_json1_1DescribeProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1961
2146
|
var data, contents, response;
|
|
1962
2147
|
return __generator(this, function (_a) {
|
|
@@ -2335,6 +2520,77 @@ var deserializeAws_json1_1ImportCertificateCommandError = function (output, cont
|
|
|
2335
2520
|
}
|
|
2336
2521
|
});
|
|
2337
2522
|
}); };
|
|
2523
|
+
export var deserializeAws_json1_1ImportHostKeyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2524
|
+
var data, contents, response;
|
|
2525
|
+
return __generator(this, function (_a) {
|
|
2526
|
+
switch (_a.label) {
|
|
2527
|
+
case 0:
|
|
2528
|
+
if (output.statusCode >= 300) {
|
|
2529
|
+
return [2, deserializeAws_json1_1ImportHostKeyCommandError(output, context)];
|
|
2530
|
+
}
|
|
2531
|
+
return [4, parseBody(output.body, context)];
|
|
2532
|
+
case 1:
|
|
2533
|
+
data = _a.sent();
|
|
2534
|
+
contents = {};
|
|
2535
|
+
contents = deserializeAws_json1_1ImportHostKeyResponse(data, context);
|
|
2536
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2537
|
+
return [2, Promise.resolve(response)];
|
|
2538
|
+
}
|
|
2539
|
+
});
|
|
2540
|
+
}); };
|
|
2541
|
+
var deserializeAws_json1_1ImportHostKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2542
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2543
|
+
var _c;
|
|
2544
|
+
return __generator(this, function (_d) {
|
|
2545
|
+
switch (_d.label) {
|
|
2546
|
+
case 0:
|
|
2547
|
+
_a = [__assign({}, output)];
|
|
2548
|
+
_c = {};
|
|
2549
|
+
return [4, parseBody(output.body, context)];
|
|
2550
|
+
case 1:
|
|
2551
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2552
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2553
|
+
_b = errorCode;
|
|
2554
|
+
switch (_b) {
|
|
2555
|
+
case "InternalServiceError": return [3, 2];
|
|
2556
|
+
case "com.amazonaws.transfer#InternalServiceError": return [3, 2];
|
|
2557
|
+
case "InvalidRequestException": return [3, 4];
|
|
2558
|
+
case "com.amazonaws.transfer#InvalidRequestException": return [3, 4];
|
|
2559
|
+
case "ResourceExistsException": return [3, 6];
|
|
2560
|
+
case "com.amazonaws.transfer#ResourceExistsException": return [3, 6];
|
|
2561
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2562
|
+
case "com.amazonaws.transfer#ResourceNotFoundException": return [3, 8];
|
|
2563
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2564
|
+
case "com.amazonaws.transfer#ServiceUnavailableException": return [3, 10];
|
|
2565
|
+
case "ThrottlingException": return [3, 12];
|
|
2566
|
+
case "com.amazonaws.transfer#ThrottlingException": return [3, 12];
|
|
2567
|
+
}
|
|
2568
|
+
return [3, 14];
|
|
2569
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
2570
|
+
case 3: throw _d.sent();
|
|
2571
|
+
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2572
|
+
case 5: throw _d.sent();
|
|
2573
|
+
case 6: return [4, deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context)];
|
|
2574
|
+
case 7: throw _d.sent();
|
|
2575
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2576
|
+
case 9: throw _d.sent();
|
|
2577
|
+
case 10: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2578
|
+
case 11: throw _d.sent();
|
|
2579
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2580
|
+
case 13: throw _d.sent();
|
|
2581
|
+
case 14:
|
|
2582
|
+
parsedBody = parsedOutput.body;
|
|
2583
|
+
throwDefaultError({
|
|
2584
|
+
output: output,
|
|
2585
|
+
parsedBody: parsedBody,
|
|
2586
|
+
exceptionCtor: __BaseException,
|
|
2587
|
+
errorCode: errorCode,
|
|
2588
|
+
});
|
|
2589
|
+
_d.label = 15;
|
|
2590
|
+
case 15: return [2];
|
|
2591
|
+
}
|
|
2592
|
+
});
|
|
2593
|
+
}); };
|
|
2338
2594
|
export var deserializeAws_json1_1ImportSshPublicKeyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2339
2595
|
var data, contents, response;
|
|
2340
2596
|
return __generator(this, function (_a) {
|
|
@@ -2741,6 +2997,73 @@ var deserializeAws_json1_1ListExecutionsCommandError = function (output, context
|
|
|
2741
2997
|
}
|
|
2742
2998
|
});
|
|
2743
2999
|
}); };
|
|
3000
|
+
export var deserializeAws_json1_1ListHostKeysCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3001
|
+
var data, contents, response;
|
|
3002
|
+
return __generator(this, function (_a) {
|
|
3003
|
+
switch (_a.label) {
|
|
3004
|
+
case 0:
|
|
3005
|
+
if (output.statusCode >= 300) {
|
|
3006
|
+
return [2, deserializeAws_json1_1ListHostKeysCommandError(output, context)];
|
|
3007
|
+
}
|
|
3008
|
+
return [4, parseBody(output.body, context)];
|
|
3009
|
+
case 1:
|
|
3010
|
+
data = _a.sent();
|
|
3011
|
+
contents = {};
|
|
3012
|
+
contents = deserializeAws_json1_1ListHostKeysResponse(data, context);
|
|
3013
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3014
|
+
return [2, Promise.resolve(response)];
|
|
3015
|
+
}
|
|
3016
|
+
});
|
|
3017
|
+
}); };
|
|
3018
|
+
var deserializeAws_json1_1ListHostKeysCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3019
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3020
|
+
var _c;
|
|
3021
|
+
return __generator(this, function (_d) {
|
|
3022
|
+
switch (_d.label) {
|
|
3023
|
+
case 0:
|
|
3024
|
+
_a = [__assign({}, output)];
|
|
3025
|
+
_c = {};
|
|
3026
|
+
return [4, parseBody(output.body, context)];
|
|
3027
|
+
case 1:
|
|
3028
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3029
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3030
|
+
_b = errorCode;
|
|
3031
|
+
switch (_b) {
|
|
3032
|
+
case "InternalServiceError": return [3, 2];
|
|
3033
|
+
case "com.amazonaws.transfer#InternalServiceError": return [3, 2];
|
|
3034
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
3035
|
+
case "com.amazonaws.transfer#InvalidNextTokenException": return [3, 4];
|
|
3036
|
+
case "InvalidRequestException": return [3, 6];
|
|
3037
|
+
case "com.amazonaws.transfer#InvalidRequestException": return [3, 6];
|
|
3038
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
3039
|
+
case "com.amazonaws.transfer#ResourceNotFoundException": return [3, 8];
|
|
3040
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
3041
|
+
case "com.amazonaws.transfer#ServiceUnavailableException": return [3, 10];
|
|
3042
|
+
}
|
|
3043
|
+
return [3, 12];
|
|
3044
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
3045
|
+
case 3: throw _d.sent();
|
|
3046
|
+
case 4: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
3047
|
+
case 5: throw _d.sent();
|
|
3048
|
+
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
3049
|
+
case 7: throw _d.sent();
|
|
3050
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3051
|
+
case 9: throw _d.sent();
|
|
3052
|
+
case 10: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3053
|
+
case 11: throw _d.sent();
|
|
3054
|
+
case 12:
|
|
3055
|
+
parsedBody = parsedOutput.body;
|
|
3056
|
+
throwDefaultError({
|
|
3057
|
+
output: output,
|
|
3058
|
+
parsedBody: parsedBody,
|
|
3059
|
+
exceptionCtor: __BaseException,
|
|
3060
|
+
errorCode: errorCode,
|
|
3061
|
+
});
|
|
3062
|
+
_d.label = 13;
|
|
3063
|
+
case 13: return [2];
|
|
3064
|
+
}
|
|
3065
|
+
});
|
|
3066
|
+
}); };
|
|
2744
3067
|
export var deserializeAws_json1_1ListProfilesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2745
3068
|
var data, contents, response;
|
|
2746
3069
|
return __generator(this, function (_a) {
|
|
@@ -3852,6 +4175,73 @@ var deserializeAws_json1_1UpdateConnectorCommandError = function (output, contex
|
|
|
3852
4175
|
}
|
|
3853
4176
|
});
|
|
3854
4177
|
}); };
|
|
4178
|
+
export var deserializeAws_json1_1UpdateHostKeyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4179
|
+
var data, contents, response;
|
|
4180
|
+
return __generator(this, function (_a) {
|
|
4181
|
+
switch (_a.label) {
|
|
4182
|
+
case 0:
|
|
4183
|
+
if (output.statusCode >= 300) {
|
|
4184
|
+
return [2, deserializeAws_json1_1UpdateHostKeyCommandError(output, context)];
|
|
4185
|
+
}
|
|
4186
|
+
return [4, parseBody(output.body, context)];
|
|
4187
|
+
case 1:
|
|
4188
|
+
data = _a.sent();
|
|
4189
|
+
contents = {};
|
|
4190
|
+
contents = deserializeAws_json1_1UpdateHostKeyResponse(data, context);
|
|
4191
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4192
|
+
return [2, Promise.resolve(response)];
|
|
4193
|
+
}
|
|
4194
|
+
});
|
|
4195
|
+
}); };
|
|
4196
|
+
var deserializeAws_json1_1UpdateHostKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4197
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4198
|
+
var _c;
|
|
4199
|
+
return __generator(this, function (_d) {
|
|
4200
|
+
switch (_d.label) {
|
|
4201
|
+
case 0:
|
|
4202
|
+
_a = [__assign({}, output)];
|
|
4203
|
+
_c = {};
|
|
4204
|
+
return [4, parseBody(output.body, context)];
|
|
4205
|
+
case 1:
|
|
4206
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4207
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4208
|
+
_b = errorCode;
|
|
4209
|
+
switch (_b) {
|
|
4210
|
+
case "InternalServiceError": return [3, 2];
|
|
4211
|
+
case "com.amazonaws.transfer#InternalServiceError": return [3, 2];
|
|
4212
|
+
case "InvalidRequestException": return [3, 4];
|
|
4213
|
+
case "com.amazonaws.transfer#InvalidRequestException": return [3, 4];
|
|
4214
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
4215
|
+
case "com.amazonaws.transfer#ResourceNotFoundException": return [3, 6];
|
|
4216
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
4217
|
+
case "com.amazonaws.transfer#ServiceUnavailableException": return [3, 8];
|
|
4218
|
+
case "ThrottlingException": return [3, 10];
|
|
4219
|
+
case "com.amazonaws.transfer#ThrottlingException": return [3, 10];
|
|
4220
|
+
}
|
|
4221
|
+
return [3, 12];
|
|
4222
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
4223
|
+
case 3: throw _d.sent();
|
|
4224
|
+
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
4225
|
+
case 5: throw _d.sent();
|
|
4226
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4227
|
+
case 7: throw _d.sent();
|
|
4228
|
+
case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
4229
|
+
case 9: throw _d.sent();
|
|
4230
|
+
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4231
|
+
case 11: throw _d.sent();
|
|
4232
|
+
case 12:
|
|
4233
|
+
parsedBody = parsedOutput.body;
|
|
4234
|
+
throwDefaultError({
|
|
4235
|
+
output: output,
|
|
4236
|
+
parsedBody: parsedBody,
|
|
4237
|
+
exceptionCtor: __BaseException,
|
|
4238
|
+
errorCode: errorCode,
|
|
4239
|
+
});
|
|
4240
|
+
_d.label = 13;
|
|
4241
|
+
case 13: return [2];
|
|
4242
|
+
}
|
|
4243
|
+
});
|
|
4244
|
+
}); };
|
|
3855
4245
|
export var deserializeAws_json1_1UpdateProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3856
4246
|
var data, contents, response;
|
|
3857
4247
|
return __generator(this, function (_a) {
|
|
@@ -4227,6 +4617,9 @@ var serializeAws_json1_1DeleteCertificateRequest = function (input, context) {
|
|
|
4227
4617
|
var serializeAws_json1_1DeleteConnectorRequest = function (input, context) {
|
|
4228
4618
|
return __assign({}, (input.ConnectorId != null && { ConnectorId: input.ConnectorId }));
|
|
4229
4619
|
};
|
|
4620
|
+
var serializeAws_json1_1DeleteHostKeyRequest = function (input, context) {
|
|
4621
|
+
return __assign(__assign({}, (input.HostKeyId != null && { HostKeyId: input.HostKeyId })), (input.ServerId != null && { ServerId: input.ServerId }));
|
|
4622
|
+
};
|
|
4230
4623
|
var serializeAws_json1_1DeleteProfileRequest = function (input, context) {
|
|
4231
4624
|
return __assign({}, (input.ProfileId != null && { ProfileId: input.ProfileId }));
|
|
4232
4625
|
};
|
|
@@ -4260,6 +4653,9 @@ var serializeAws_json1_1DescribeConnectorRequest = function (input, context) {
|
|
|
4260
4653
|
var serializeAws_json1_1DescribeExecutionRequest = function (input, context) {
|
|
4261
4654
|
return __assign(__assign({}, (input.ExecutionId != null && { ExecutionId: input.ExecutionId })), (input.WorkflowId != null && { WorkflowId: input.WorkflowId }));
|
|
4262
4655
|
};
|
|
4656
|
+
var serializeAws_json1_1DescribeHostKeyRequest = function (input, context) {
|
|
4657
|
+
return __assign(__assign({}, (input.HostKeyId != null && { HostKeyId: input.HostKeyId })), (input.ServerId != null && { ServerId: input.ServerId }));
|
|
4658
|
+
};
|
|
4263
4659
|
var serializeAws_json1_1DescribeProfileRequest = function (input, context) {
|
|
4264
4660
|
return __assign({}, (input.ProfileId != null && { ProfileId: input.ProfileId }));
|
|
4265
4661
|
};
|
|
@@ -4308,6 +4704,9 @@ var serializeAws_json1_1IdentityProviderDetails = function (input, context) {
|
|
|
4308
4704
|
var serializeAws_json1_1ImportCertificateRequest = function (input, context) {
|
|
4309
4705
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ActiveDate != null && { ActiveDate: Math.round(input.ActiveDate.getTime() / 1000) })), (input.Certificate != null && { Certificate: input.Certificate })), (input.CertificateChain != null && { CertificateChain: input.CertificateChain })), (input.Description != null && { Description: input.Description })), (input.InactiveDate != null && { InactiveDate: Math.round(input.InactiveDate.getTime() / 1000) })), (input.PrivateKey != null && { PrivateKey: input.PrivateKey })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.Usage != null && { Usage: input.Usage }));
|
|
4310
4706
|
};
|
|
4707
|
+
var serializeAws_json1_1ImportHostKeyRequest = function (input, context) {
|
|
4708
|
+
return __assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.HostKeyBody != null && { HostKeyBody: input.HostKeyBody })), (input.ServerId != null && { ServerId: input.ServerId })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
4709
|
+
};
|
|
4311
4710
|
var serializeAws_json1_1ImportSshPublicKeyRequest = function (input, context) {
|
|
4312
4711
|
return __assign(__assign(__assign({}, (input.ServerId != null && { ServerId: input.ServerId })), (input.SshPublicKeyBody != null && { SshPublicKeyBody: input.SshPublicKeyBody })), (input.UserName != null && { UserName: input.UserName }));
|
|
4313
4712
|
};
|
|
@@ -4333,6 +4732,9 @@ var serializeAws_json1_1ListConnectorsRequest = function (input, context) {
|
|
|
4333
4732
|
var serializeAws_json1_1ListExecutionsRequest = function (input, context) {
|
|
4334
4733
|
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.WorkflowId != null && { WorkflowId: input.WorkflowId }));
|
|
4335
4734
|
};
|
|
4735
|
+
var serializeAws_json1_1ListHostKeysRequest = function (input, context) {
|
|
4736
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ServerId != null && { ServerId: input.ServerId }));
|
|
4737
|
+
};
|
|
4336
4738
|
var serializeAws_json1_1ListProfilesRequest = function (input, context) {
|
|
4337
4739
|
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ProfileType != null && { ProfileType: input.ProfileType }));
|
|
4338
4740
|
};
|
|
@@ -4464,6 +4866,9 @@ var serializeAws_json1_1UpdateCertificateRequest = function (input, context) {
|
|
|
4464
4866
|
var serializeAws_json1_1UpdateConnectorRequest = function (input, context) {
|
|
4465
4867
|
return __assign(__assign(__assign(__assign(__assign({}, (input.AccessRole != null && { AccessRole: input.AccessRole })), (input.As2Config != null && { As2Config: serializeAws_json1_1As2ConnectorConfig(input.As2Config, context) })), (input.ConnectorId != null && { ConnectorId: input.ConnectorId })), (input.LoggingRole != null && { LoggingRole: input.LoggingRole })), (input.Url != null && { Url: input.Url }));
|
|
4466
4868
|
};
|
|
4869
|
+
var serializeAws_json1_1UpdateHostKeyRequest = function (input, context) {
|
|
4870
|
+
return __assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.HostKeyId != null && { HostKeyId: input.HostKeyId })), (input.ServerId != null && { ServerId: input.ServerId }));
|
|
4871
|
+
};
|
|
4467
4872
|
var serializeAws_json1_1UpdateProfileRequest = function (input, context) {
|
|
4468
4873
|
return __assign(__assign({}, (input.CertificateIds != null && {
|
|
4469
4874
|
CertificateIds: serializeAws_json1_1CertificateIds(input.CertificateIds, context),
|
|
@@ -4730,6 +5135,19 @@ var deserializeAws_json1_1DescribedExecution = function (output, context) {
|
|
|
4730
5135
|
Status: __expectString(output.Status),
|
|
4731
5136
|
};
|
|
4732
5137
|
};
|
|
5138
|
+
var deserializeAws_json1_1DescribedHostKey = function (output, context) {
|
|
5139
|
+
return {
|
|
5140
|
+
Arn: __expectString(output.Arn),
|
|
5141
|
+
DateImported: output.DateImported != null
|
|
5142
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateImported)))
|
|
5143
|
+
: undefined,
|
|
5144
|
+
Description: __expectString(output.Description),
|
|
5145
|
+
HostKeyFingerprint: __expectString(output.HostKeyFingerprint),
|
|
5146
|
+
HostKeyId: __expectString(output.HostKeyId),
|
|
5147
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
5148
|
+
Type: __expectString(output.Type),
|
|
5149
|
+
};
|
|
5150
|
+
};
|
|
4733
5151
|
var deserializeAws_json1_1DescribedProfile = function (output, context) {
|
|
4734
5152
|
return {
|
|
4735
5153
|
Arn: __expectString(output.Arn),
|
|
@@ -4815,6 +5233,11 @@ var deserializeAws_json1_1DescribeExecutionResponse = function (output, context)
|
|
|
4815
5233
|
WorkflowId: __expectString(output.WorkflowId),
|
|
4816
5234
|
};
|
|
4817
5235
|
};
|
|
5236
|
+
var deserializeAws_json1_1DescribeHostKeyResponse = function (output, context) {
|
|
5237
|
+
return {
|
|
5238
|
+
HostKey: output.HostKey != null ? deserializeAws_json1_1DescribedHostKey(output.HostKey, context) : undefined,
|
|
5239
|
+
};
|
|
5240
|
+
};
|
|
4818
5241
|
var deserializeAws_json1_1DescribeProfileResponse = function (output, context) {
|
|
4819
5242
|
return {
|
|
4820
5243
|
Profile: output.Profile != null ? deserializeAws_json1_1DescribedProfile(output.Profile, context) : undefined,
|
|
@@ -4932,6 +5355,12 @@ var deserializeAws_json1_1ImportCertificateResponse = function (output, context)
|
|
|
4932
5355
|
CertificateId: __expectString(output.CertificateId),
|
|
4933
5356
|
};
|
|
4934
5357
|
};
|
|
5358
|
+
var deserializeAws_json1_1ImportHostKeyResponse = function (output, context) {
|
|
5359
|
+
return {
|
|
5360
|
+
HostKeyId: __expectString(output.HostKeyId),
|
|
5361
|
+
ServerId: __expectString(output.ServerId),
|
|
5362
|
+
};
|
|
5363
|
+
};
|
|
4935
5364
|
var deserializeAws_json1_1ImportSshPublicKeyResponse = function (output, context) {
|
|
4936
5365
|
return {
|
|
4937
5366
|
ServerId: __expectString(output.ServerId),
|
|
@@ -5096,6 +5525,29 @@ var deserializeAws_json1_1ListedExecutions = function (output, context) {
|
|
|
5096
5525
|
});
|
|
5097
5526
|
return retVal;
|
|
5098
5527
|
};
|
|
5528
|
+
var deserializeAws_json1_1ListedHostKey = function (output, context) {
|
|
5529
|
+
return {
|
|
5530
|
+
Arn: __expectString(output.Arn),
|
|
5531
|
+
DateImported: output.DateImported != null
|
|
5532
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateImported)))
|
|
5533
|
+
: undefined,
|
|
5534
|
+
Description: __expectString(output.Description),
|
|
5535
|
+
Fingerprint: __expectString(output.Fingerprint),
|
|
5536
|
+
HostKeyId: __expectString(output.HostKeyId),
|
|
5537
|
+
Type: __expectString(output.Type),
|
|
5538
|
+
};
|
|
5539
|
+
};
|
|
5540
|
+
var deserializeAws_json1_1ListedHostKeys = function (output, context) {
|
|
5541
|
+
var retVal = (output || [])
|
|
5542
|
+
.filter(function (e) { return e != null; })
|
|
5543
|
+
.map(function (entry) {
|
|
5544
|
+
if (entry === null) {
|
|
5545
|
+
return null;
|
|
5546
|
+
}
|
|
5547
|
+
return deserializeAws_json1_1ListedHostKey(entry, context);
|
|
5548
|
+
});
|
|
5549
|
+
return retVal;
|
|
5550
|
+
};
|
|
5099
5551
|
var deserializeAws_json1_1ListedProfile = function (output, context) {
|
|
5100
5552
|
return {
|
|
5101
5553
|
Arn: __expectString(output.Arn),
|
|
@@ -5184,6 +5636,13 @@ var deserializeAws_json1_1ListExecutionsResponse = function (output, context) {
|
|
|
5184
5636
|
WorkflowId: __expectString(output.WorkflowId),
|
|
5185
5637
|
};
|
|
5186
5638
|
};
|
|
5639
|
+
var deserializeAws_json1_1ListHostKeysResponse = function (output, context) {
|
|
5640
|
+
return {
|
|
5641
|
+
HostKeys: output.HostKeys != null ? deserializeAws_json1_1ListedHostKeys(output.HostKeys, context) : undefined,
|
|
5642
|
+
NextToken: __expectString(output.NextToken),
|
|
5643
|
+
ServerId: __expectString(output.ServerId),
|
|
5644
|
+
};
|
|
5645
|
+
};
|
|
5187
5646
|
var deserializeAws_json1_1ListProfilesResponse = function (output, context) {
|
|
5188
5647
|
return {
|
|
5189
5648
|
NextToken: __expectString(output.NextToken),
|
|
@@ -5463,6 +5922,12 @@ var deserializeAws_json1_1UpdateConnectorResponse = function (output, context) {
|
|
|
5463
5922
|
ConnectorId: __expectString(output.ConnectorId),
|
|
5464
5923
|
};
|
|
5465
5924
|
};
|
|
5925
|
+
var deserializeAws_json1_1UpdateHostKeyResponse = function (output, context) {
|
|
5926
|
+
return {
|
|
5927
|
+
HostKeyId: __expectString(output.HostKeyId),
|
|
5928
|
+
ServerId: __expectString(output.ServerId),
|
|
5929
|
+
};
|
|
5930
|
+
};
|
|
5466
5931
|
var deserializeAws_json1_1UpdateProfileResponse = function (output, context) {
|
|
5467
5932
|
return {
|
|
5468
5933
|
ProfileId: __expectString(output.ProfileId),
|