@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateUserCommand = exports.deserializeAws_json1_1UpdateServerCommand = exports.deserializeAws_json1_1UpdateProfileCommand = exports.deserializeAws_json1_1UpdateConnectorCommand = exports.deserializeAws_json1_1UpdateCertificateCommand = exports.deserializeAws_json1_1UpdateAgreementCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TestIdentityProviderCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopServerCommand = exports.serializeAws_json1_1StartServerCommand = exports.serializeAws_json1_1StartFileTransferCommand = exports.serializeAws_json1_1SendWorkflowStepStateCommand = exports.serializeAws_json1_1ListWorkflowsCommand = exports.serializeAws_json1_1ListUsersCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListServersCommand = exports.serializeAws_json1_1ListSecurityPoliciesCommand = exports.serializeAws_json1_1ListProfilesCommand = exports.serializeAws_json1_1ListHostKeysCommand = exports.serializeAws_json1_1ListExecutionsCommand = exports.serializeAws_json1_1ListConnectorsCommand = exports.serializeAws_json1_1ListCertificatesCommand = exports.serializeAws_json1_1ListAgreementsCommand = exports.serializeAws_json1_1ListAccessesCommand = exports.serializeAws_json1_1ImportSshPublicKeyCommand = exports.serializeAws_json1_1ImportHostKeyCommand = exports.serializeAws_json1_1ImportCertificateCommand = exports.serializeAws_json1_1DescribeWorkflowCommand = exports.serializeAws_json1_1DescribeUserCommand = exports.serializeAws_json1_1DescribeServerCommand = exports.serializeAws_json1_1DescribeSecurityPolicyCommand = exports.serializeAws_json1_1DescribeProfileCommand = exports.serializeAws_json1_1DescribeHostKeyCommand = exports.serializeAws_json1_1DescribeExecutionCommand = exports.serializeAws_json1_1DescribeConnectorCommand = exports.serializeAws_json1_1DescribeCertificateCommand = exports.serializeAws_json1_1DescribeAgreementCommand = exports.serializeAws_json1_1DescribeAccessCommand = exports.serializeAws_json1_1DeleteWorkflowCommand = exports.serializeAws_json1_1DeleteUserCommand = exports.serializeAws_json1_1DeleteSshPublicKeyCommand = exports.serializeAws_json1_1DeleteServerCommand = exports.serializeAws_json1_1DeleteProfileCommand = exports.serializeAws_json1_1DeleteHostKeyCommand = exports.serializeAws_json1_1DeleteConnectorCommand = exports.serializeAws_json1_1DeleteCertificateCommand = exports.serializeAws_json1_1DeleteAgreementCommand = exports.serializeAws_json1_1DeleteAccessCommand = exports.serializeAws_json1_1CreateWorkflowCommand = exports.serializeAws_json1_1CreateUserCommand = exports.serializeAws_json1_1CreateServerCommand = exports.serializeAws_json1_1CreateProfileCommand = exports.serializeAws_json1_1CreateConnectorCommand = exports.serializeAws_json1_1CreateAgreementCommand = exports.serializeAws_json1_1CreateAccessCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1ListUsersCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListServersCommand = exports.deserializeAws_json1_1ListSecurityPoliciesCommand = exports.deserializeAws_json1_1ListProfilesCommand = exports.deserializeAws_json1_1ListHostKeysCommand = exports.deserializeAws_json1_1ListExecutionsCommand = exports.deserializeAws_json1_1ListConnectorsCommand = exports.deserializeAws_json1_1ListCertificatesCommand = exports.deserializeAws_json1_1ListAgreementsCommand = exports.deserializeAws_json1_1ListAccessesCommand = exports.deserializeAws_json1_1ImportSshPublicKeyCommand = exports.deserializeAws_json1_1ImportHostKeyCommand = exports.deserializeAws_json1_1ImportCertificateCommand = exports.deserializeAws_json1_1DescribeWorkflowCommand = exports.deserializeAws_json1_1DescribeUserCommand = exports.deserializeAws_json1_1DescribeServerCommand = exports.deserializeAws_json1_1DescribeSecurityPolicyCommand = exports.deserializeAws_json1_1DescribeProfileCommand = exports.deserializeAws_json1_1DescribeHostKeyCommand = exports.deserializeAws_json1_1DescribeExecutionCommand = exports.deserializeAws_json1_1DescribeConnectorCommand = exports.deserializeAws_json1_1DescribeCertificateCommand = exports.deserializeAws_json1_1DescribeAgreementCommand = exports.deserializeAws_json1_1DescribeAccessCommand = exports.deserializeAws_json1_1DeleteWorkflowCommand = exports.deserializeAws_json1_1DeleteUserCommand = exports.deserializeAws_json1_1DeleteSshPublicKeyCommand = exports.deserializeAws_json1_1DeleteServerCommand = exports.deserializeAws_json1_1DeleteProfileCommand = exports.deserializeAws_json1_1DeleteHostKeyCommand = exports.deserializeAws_json1_1DeleteConnectorCommand = exports.deserializeAws_json1_1DeleteCertificateCommand = exports.deserializeAws_json1_1DeleteAgreementCommand = exports.deserializeAws_json1_1DeleteAccessCommand = exports.deserializeAws_json1_1CreateWorkflowCommand = exports.deserializeAws_json1_1CreateUserCommand = exports.deserializeAws_json1_1CreateServerCommand = exports.deserializeAws_json1_1CreateProfileCommand = exports.deserializeAws_json1_1CreateConnectorCommand = exports.deserializeAws_json1_1CreateAgreementCommand = exports.deserializeAws_json1_1CreateAccessCommand = exports.serializeAws_json1_1UpdateUserCommand = exports.serializeAws_json1_1UpdateServerCommand = exports.serializeAws_json1_1UpdateProfileCommand = exports.serializeAws_json1_1UpdateHostKeyCommand = exports.serializeAws_json1_1UpdateConnectorCommand = exports.serializeAws_json1_1UpdateCertificateCommand = exports.serializeAws_json1_1UpdateAgreementCommand = exports.serializeAws_json1_1UpdateAccessCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateUserCommand = exports.deserializeAws_json1_1UpdateServerCommand = exports.deserializeAws_json1_1UpdateProfileCommand = exports.deserializeAws_json1_1UpdateHostKeyCommand = exports.deserializeAws_json1_1UpdateConnectorCommand = exports.deserializeAws_json1_1UpdateCertificateCommand = exports.deserializeAws_json1_1UpdateAgreementCommand = exports.deserializeAws_json1_1UpdateAccessCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TestIdentityProviderCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopServerCommand = exports.deserializeAws_json1_1StartServerCommand = exports.deserializeAws_json1_1StartFileTransferCommand = exports.deserializeAws_json1_1SendWorkflowStepStateCommand = exports.deserializeAws_json1_1ListWorkflowsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
@@ -117,6 +117,16 @@ const serializeAws_json1_1DeleteConnectorCommand = async (input, context) => {
|
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
exports.serializeAws_json1_1DeleteConnectorCommand = serializeAws_json1_1DeleteConnectorCommand;
|
|
120
|
+
const serializeAws_json1_1DeleteHostKeyCommand = async (input, context) => {
|
|
121
|
+
const headers = {
|
|
122
|
+
"content-type": "application/x-amz-json-1.1",
|
|
123
|
+
"x-amz-target": "TransferService.DeleteHostKey",
|
|
124
|
+
};
|
|
125
|
+
let body;
|
|
126
|
+
body = JSON.stringify(serializeAws_json1_1DeleteHostKeyRequest(input, context));
|
|
127
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
+
};
|
|
129
|
+
exports.serializeAws_json1_1DeleteHostKeyCommand = serializeAws_json1_1DeleteHostKeyCommand;
|
|
120
130
|
const serializeAws_json1_1DeleteProfileCommand = async (input, context) => {
|
|
121
131
|
const headers = {
|
|
122
132
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -217,6 +227,16 @@ const serializeAws_json1_1DescribeExecutionCommand = async (input, context) => {
|
|
|
217
227
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
228
|
};
|
|
219
229
|
exports.serializeAws_json1_1DescribeExecutionCommand = serializeAws_json1_1DescribeExecutionCommand;
|
|
230
|
+
const serializeAws_json1_1DescribeHostKeyCommand = async (input, context) => {
|
|
231
|
+
const headers = {
|
|
232
|
+
"content-type": "application/x-amz-json-1.1",
|
|
233
|
+
"x-amz-target": "TransferService.DescribeHostKey",
|
|
234
|
+
};
|
|
235
|
+
let body;
|
|
236
|
+
body = JSON.stringify(serializeAws_json1_1DescribeHostKeyRequest(input, context));
|
|
237
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
+
};
|
|
239
|
+
exports.serializeAws_json1_1DescribeHostKeyCommand = serializeAws_json1_1DescribeHostKeyCommand;
|
|
220
240
|
const serializeAws_json1_1DescribeProfileCommand = async (input, context) => {
|
|
221
241
|
const headers = {
|
|
222
242
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -277,6 +297,16 @@ const serializeAws_json1_1ImportCertificateCommand = async (input, context) => {
|
|
|
277
297
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
278
298
|
};
|
|
279
299
|
exports.serializeAws_json1_1ImportCertificateCommand = serializeAws_json1_1ImportCertificateCommand;
|
|
300
|
+
const serializeAws_json1_1ImportHostKeyCommand = async (input, context) => {
|
|
301
|
+
const headers = {
|
|
302
|
+
"content-type": "application/x-amz-json-1.1",
|
|
303
|
+
"x-amz-target": "TransferService.ImportHostKey",
|
|
304
|
+
};
|
|
305
|
+
let body;
|
|
306
|
+
body = JSON.stringify(serializeAws_json1_1ImportHostKeyRequest(input, context));
|
|
307
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
|
+
};
|
|
309
|
+
exports.serializeAws_json1_1ImportHostKeyCommand = serializeAws_json1_1ImportHostKeyCommand;
|
|
280
310
|
const serializeAws_json1_1ImportSshPublicKeyCommand = async (input, context) => {
|
|
281
311
|
const headers = {
|
|
282
312
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -337,6 +367,16 @@ const serializeAws_json1_1ListExecutionsCommand = async (input, context) => {
|
|
|
337
367
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
368
|
};
|
|
339
369
|
exports.serializeAws_json1_1ListExecutionsCommand = serializeAws_json1_1ListExecutionsCommand;
|
|
370
|
+
const serializeAws_json1_1ListHostKeysCommand = async (input, context) => {
|
|
371
|
+
const headers = {
|
|
372
|
+
"content-type": "application/x-amz-json-1.1",
|
|
373
|
+
"x-amz-target": "TransferService.ListHostKeys",
|
|
374
|
+
};
|
|
375
|
+
let body;
|
|
376
|
+
body = JSON.stringify(serializeAws_json1_1ListHostKeysRequest(input, context));
|
|
377
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
378
|
+
};
|
|
379
|
+
exports.serializeAws_json1_1ListHostKeysCommand = serializeAws_json1_1ListHostKeysCommand;
|
|
340
380
|
const serializeAws_json1_1ListProfilesCommand = async (input, context) => {
|
|
341
381
|
const headers = {
|
|
342
382
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -507,6 +547,16 @@ const serializeAws_json1_1UpdateConnectorCommand = async (input, context) => {
|
|
|
507
547
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
508
548
|
};
|
|
509
549
|
exports.serializeAws_json1_1UpdateConnectorCommand = serializeAws_json1_1UpdateConnectorCommand;
|
|
550
|
+
const serializeAws_json1_1UpdateHostKeyCommand = async (input, context) => {
|
|
551
|
+
const headers = {
|
|
552
|
+
"content-type": "application/x-amz-json-1.1",
|
|
553
|
+
"x-amz-target": "TransferService.UpdateHostKey",
|
|
554
|
+
};
|
|
555
|
+
let body;
|
|
556
|
+
body = JSON.stringify(serializeAws_json1_1UpdateHostKeyRequest(input, context));
|
|
557
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
558
|
+
};
|
|
559
|
+
exports.serializeAws_json1_1UpdateHostKeyCommand = serializeAws_json1_1UpdateHostKeyCommand;
|
|
510
560
|
const serializeAws_json1_1UpdateProfileCommand = async (input, context) => {
|
|
511
561
|
const headers = {
|
|
512
562
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1025,6 +1075,49 @@ const deserializeAws_json1_1DeleteConnectorCommandError = async (output, context
|
|
|
1025
1075
|
});
|
|
1026
1076
|
}
|
|
1027
1077
|
};
|
|
1078
|
+
const deserializeAws_json1_1DeleteHostKeyCommand = async (output, context) => {
|
|
1079
|
+
if (output.statusCode >= 300) {
|
|
1080
|
+
return deserializeAws_json1_1DeleteHostKeyCommandError(output, context);
|
|
1081
|
+
}
|
|
1082
|
+
await collectBody(output.body, context);
|
|
1083
|
+
const response = {
|
|
1084
|
+
$metadata: deserializeMetadata(output),
|
|
1085
|
+
};
|
|
1086
|
+
return Promise.resolve(response);
|
|
1087
|
+
};
|
|
1088
|
+
exports.deserializeAws_json1_1DeleteHostKeyCommand = deserializeAws_json1_1DeleteHostKeyCommand;
|
|
1089
|
+
const deserializeAws_json1_1DeleteHostKeyCommandError = async (output, context) => {
|
|
1090
|
+
const parsedOutput = {
|
|
1091
|
+
...output,
|
|
1092
|
+
body: await parseBody(output.body, context),
|
|
1093
|
+
};
|
|
1094
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
+
switch (errorCode) {
|
|
1096
|
+
case "InternalServiceError":
|
|
1097
|
+
case "com.amazonaws.transfer#InternalServiceError":
|
|
1098
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1099
|
+
case "InvalidRequestException":
|
|
1100
|
+
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1101
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1102
|
+
case "ResourceNotFoundException":
|
|
1103
|
+
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1104
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1105
|
+
case "ServiceUnavailableException":
|
|
1106
|
+
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1107
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1108
|
+
case "ThrottlingException":
|
|
1109
|
+
case "com.amazonaws.transfer#ThrottlingException":
|
|
1110
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1111
|
+
default:
|
|
1112
|
+
const parsedBody = parsedOutput.body;
|
|
1113
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1114
|
+
output,
|
|
1115
|
+
parsedBody,
|
|
1116
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1117
|
+
errorCode,
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1028
1121
|
const deserializeAws_json1_1DeleteProfileCommand = async (output, context) => {
|
|
1029
1122
|
if (output.statusCode >= 300) {
|
|
1030
1123
|
return deserializeAws_json1_1DeleteProfileCommandError(output, context);
|
|
@@ -1449,6 +1542,49 @@ const deserializeAws_json1_1DescribeExecutionCommandError = async (output, conte
|
|
|
1449
1542
|
});
|
|
1450
1543
|
}
|
|
1451
1544
|
};
|
|
1545
|
+
const deserializeAws_json1_1DescribeHostKeyCommand = async (output, context) => {
|
|
1546
|
+
if (output.statusCode >= 300) {
|
|
1547
|
+
return deserializeAws_json1_1DescribeHostKeyCommandError(output, context);
|
|
1548
|
+
}
|
|
1549
|
+
const data = await parseBody(output.body, context);
|
|
1550
|
+
let contents = {};
|
|
1551
|
+
contents = deserializeAws_json1_1DescribeHostKeyResponse(data, context);
|
|
1552
|
+
const response = {
|
|
1553
|
+
$metadata: deserializeMetadata(output),
|
|
1554
|
+
...contents,
|
|
1555
|
+
};
|
|
1556
|
+
return Promise.resolve(response);
|
|
1557
|
+
};
|
|
1558
|
+
exports.deserializeAws_json1_1DescribeHostKeyCommand = deserializeAws_json1_1DescribeHostKeyCommand;
|
|
1559
|
+
const deserializeAws_json1_1DescribeHostKeyCommandError = async (output, context) => {
|
|
1560
|
+
const parsedOutput = {
|
|
1561
|
+
...output,
|
|
1562
|
+
body: await parseBody(output.body, context),
|
|
1563
|
+
};
|
|
1564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
|
+
switch (errorCode) {
|
|
1566
|
+
case "InternalServiceError":
|
|
1567
|
+
case "com.amazonaws.transfer#InternalServiceError":
|
|
1568
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1569
|
+
case "InvalidRequestException":
|
|
1570
|
+
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1571
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1572
|
+
case "ResourceNotFoundException":
|
|
1573
|
+
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1574
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1575
|
+
case "ServiceUnavailableException":
|
|
1576
|
+
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1577
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1578
|
+
default:
|
|
1579
|
+
const parsedBody = parsedOutput.body;
|
|
1580
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1581
|
+
output,
|
|
1582
|
+
parsedBody,
|
|
1583
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1584
|
+
errorCode,
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
};
|
|
1452
1588
|
const deserializeAws_json1_1DescribeProfileCommand = async (output, context) => {
|
|
1453
1589
|
if (output.statusCode >= 300) {
|
|
1454
1590
|
return deserializeAws_json1_1DescribeProfileCommandError(output, context);
|
|
@@ -1707,6 +1843,55 @@ const deserializeAws_json1_1ImportCertificateCommandError = async (output, conte
|
|
|
1707
1843
|
});
|
|
1708
1844
|
}
|
|
1709
1845
|
};
|
|
1846
|
+
const deserializeAws_json1_1ImportHostKeyCommand = async (output, context) => {
|
|
1847
|
+
if (output.statusCode >= 300) {
|
|
1848
|
+
return deserializeAws_json1_1ImportHostKeyCommandError(output, context);
|
|
1849
|
+
}
|
|
1850
|
+
const data = await parseBody(output.body, context);
|
|
1851
|
+
let contents = {};
|
|
1852
|
+
contents = deserializeAws_json1_1ImportHostKeyResponse(data, context);
|
|
1853
|
+
const response = {
|
|
1854
|
+
$metadata: deserializeMetadata(output),
|
|
1855
|
+
...contents,
|
|
1856
|
+
};
|
|
1857
|
+
return Promise.resolve(response);
|
|
1858
|
+
};
|
|
1859
|
+
exports.deserializeAws_json1_1ImportHostKeyCommand = deserializeAws_json1_1ImportHostKeyCommand;
|
|
1860
|
+
const deserializeAws_json1_1ImportHostKeyCommandError = async (output, context) => {
|
|
1861
|
+
const parsedOutput = {
|
|
1862
|
+
...output,
|
|
1863
|
+
body: await parseBody(output.body, context),
|
|
1864
|
+
};
|
|
1865
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
|
+
switch (errorCode) {
|
|
1867
|
+
case "InternalServiceError":
|
|
1868
|
+
case "com.amazonaws.transfer#InternalServiceError":
|
|
1869
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1870
|
+
case "InvalidRequestException":
|
|
1871
|
+
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1872
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1873
|
+
case "ResourceExistsException":
|
|
1874
|
+
case "com.amazonaws.transfer#ResourceExistsException":
|
|
1875
|
+
throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
|
|
1876
|
+
case "ResourceNotFoundException":
|
|
1877
|
+
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1878
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1879
|
+
case "ServiceUnavailableException":
|
|
1880
|
+
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1881
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1882
|
+
case "ThrottlingException":
|
|
1883
|
+
case "com.amazonaws.transfer#ThrottlingException":
|
|
1884
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1885
|
+
default:
|
|
1886
|
+
const parsedBody = parsedOutput.body;
|
|
1887
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1888
|
+
output,
|
|
1889
|
+
parsedBody,
|
|
1890
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
1891
|
+
errorCode,
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1894
|
+
};
|
|
1710
1895
|
const deserializeAws_json1_1ImportSshPublicKeyCommand = async (output, context) => {
|
|
1711
1896
|
if (output.statusCode >= 300) {
|
|
1712
1897
|
return deserializeAws_json1_1ImportSshPublicKeyCommandError(output, context);
|
|
@@ -1986,6 +2171,52 @@ const deserializeAws_json1_1ListExecutionsCommandError = async (output, context)
|
|
|
1986
2171
|
});
|
|
1987
2172
|
}
|
|
1988
2173
|
};
|
|
2174
|
+
const deserializeAws_json1_1ListHostKeysCommand = async (output, context) => {
|
|
2175
|
+
if (output.statusCode >= 300) {
|
|
2176
|
+
return deserializeAws_json1_1ListHostKeysCommandError(output, context);
|
|
2177
|
+
}
|
|
2178
|
+
const data = await parseBody(output.body, context);
|
|
2179
|
+
let contents = {};
|
|
2180
|
+
contents = deserializeAws_json1_1ListHostKeysResponse(data, context);
|
|
2181
|
+
const response = {
|
|
2182
|
+
$metadata: deserializeMetadata(output),
|
|
2183
|
+
...contents,
|
|
2184
|
+
};
|
|
2185
|
+
return Promise.resolve(response);
|
|
2186
|
+
};
|
|
2187
|
+
exports.deserializeAws_json1_1ListHostKeysCommand = deserializeAws_json1_1ListHostKeysCommand;
|
|
2188
|
+
const deserializeAws_json1_1ListHostKeysCommandError = async (output, context) => {
|
|
2189
|
+
const parsedOutput = {
|
|
2190
|
+
...output,
|
|
2191
|
+
body: await parseBody(output.body, context),
|
|
2192
|
+
};
|
|
2193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
+
switch (errorCode) {
|
|
2195
|
+
case "InternalServiceError":
|
|
2196
|
+
case "com.amazonaws.transfer#InternalServiceError":
|
|
2197
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
2198
|
+
case "InvalidNextTokenException":
|
|
2199
|
+
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2200
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2201
|
+
case "InvalidRequestException":
|
|
2202
|
+
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2203
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2204
|
+
case "ResourceNotFoundException":
|
|
2205
|
+
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2206
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2207
|
+
case "ServiceUnavailableException":
|
|
2208
|
+
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2209
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2210
|
+
default:
|
|
2211
|
+
const parsedBody = parsedOutput.body;
|
|
2212
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2213
|
+
output,
|
|
2214
|
+
parsedBody,
|
|
2215
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
2216
|
+
errorCode,
|
|
2217
|
+
});
|
|
2218
|
+
}
|
|
2219
|
+
};
|
|
1989
2220
|
const deserializeAws_json1_1ListProfilesCommand = async (output, context) => {
|
|
1990
2221
|
if (output.statusCode >= 300) {
|
|
1991
2222
|
return deserializeAws_json1_1ListProfilesCommandError(output, context);
|
|
@@ -2735,6 +2966,52 @@ const deserializeAws_json1_1UpdateConnectorCommandError = async (output, context
|
|
|
2735
2966
|
});
|
|
2736
2967
|
}
|
|
2737
2968
|
};
|
|
2969
|
+
const deserializeAws_json1_1UpdateHostKeyCommand = async (output, context) => {
|
|
2970
|
+
if (output.statusCode >= 300) {
|
|
2971
|
+
return deserializeAws_json1_1UpdateHostKeyCommandError(output, context);
|
|
2972
|
+
}
|
|
2973
|
+
const data = await parseBody(output.body, context);
|
|
2974
|
+
let contents = {};
|
|
2975
|
+
contents = deserializeAws_json1_1UpdateHostKeyResponse(data, context);
|
|
2976
|
+
const response = {
|
|
2977
|
+
$metadata: deserializeMetadata(output),
|
|
2978
|
+
...contents,
|
|
2979
|
+
};
|
|
2980
|
+
return Promise.resolve(response);
|
|
2981
|
+
};
|
|
2982
|
+
exports.deserializeAws_json1_1UpdateHostKeyCommand = deserializeAws_json1_1UpdateHostKeyCommand;
|
|
2983
|
+
const deserializeAws_json1_1UpdateHostKeyCommandError = async (output, context) => {
|
|
2984
|
+
const parsedOutput = {
|
|
2985
|
+
...output,
|
|
2986
|
+
body: await parseBody(output.body, context),
|
|
2987
|
+
};
|
|
2988
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2989
|
+
switch (errorCode) {
|
|
2990
|
+
case "InternalServiceError":
|
|
2991
|
+
case "com.amazonaws.transfer#InternalServiceError":
|
|
2992
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
2993
|
+
case "InvalidRequestException":
|
|
2994
|
+
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2995
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2996
|
+
case "ResourceNotFoundException":
|
|
2997
|
+
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2998
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2999
|
+
case "ServiceUnavailableException":
|
|
3000
|
+
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
3001
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3002
|
+
case "ThrottlingException":
|
|
3003
|
+
case "com.amazonaws.transfer#ThrottlingException":
|
|
3004
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3005
|
+
default:
|
|
3006
|
+
const parsedBody = parsedOutput.body;
|
|
3007
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3008
|
+
output,
|
|
3009
|
+
parsedBody,
|
|
3010
|
+
exceptionCtor: TransferServiceException_1.TransferServiceException,
|
|
3011
|
+
errorCode,
|
|
3012
|
+
});
|
|
3013
|
+
}
|
|
3014
|
+
};
|
|
2738
3015
|
const deserializeAws_json1_1UpdateProfileCommand = async (output, context) => {
|
|
2739
3016
|
if (output.statusCode >= 300) {
|
|
2740
3017
|
return deserializeAws_json1_1UpdateProfileCommandError(output, context);
|
|
@@ -3135,6 +3412,12 @@ const serializeAws_json1_1DeleteConnectorRequest = (input, context) => {
|
|
|
3135
3412
|
...(input.ConnectorId != null && { ConnectorId: input.ConnectorId }),
|
|
3136
3413
|
};
|
|
3137
3414
|
};
|
|
3415
|
+
const serializeAws_json1_1DeleteHostKeyRequest = (input, context) => {
|
|
3416
|
+
return {
|
|
3417
|
+
...(input.HostKeyId != null && { HostKeyId: input.HostKeyId }),
|
|
3418
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3419
|
+
};
|
|
3420
|
+
};
|
|
3138
3421
|
const serializeAws_json1_1DeleteProfileRequest = (input, context) => {
|
|
3139
3422
|
return {
|
|
3140
3423
|
...(input.ProfileId != null && { ProfileId: input.ProfileId }),
|
|
@@ -3197,6 +3480,12 @@ const serializeAws_json1_1DescribeExecutionRequest = (input, context) => {
|
|
|
3197
3480
|
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
3198
3481
|
};
|
|
3199
3482
|
};
|
|
3483
|
+
const serializeAws_json1_1DescribeHostKeyRequest = (input, context) => {
|
|
3484
|
+
return {
|
|
3485
|
+
...(input.HostKeyId != null && { HostKeyId: input.HostKeyId }),
|
|
3486
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3487
|
+
};
|
|
3488
|
+
};
|
|
3200
3489
|
const serializeAws_json1_1DescribeProfileRequest = (input, context) => {
|
|
3201
3490
|
return {
|
|
3202
3491
|
...(input.ProfileId != null && { ProfileId: input.ProfileId }),
|
|
@@ -3282,6 +3571,14 @@ const serializeAws_json1_1ImportCertificateRequest = (input, context) => {
|
|
|
3282
3571
|
...(input.Usage != null && { Usage: input.Usage }),
|
|
3283
3572
|
};
|
|
3284
3573
|
};
|
|
3574
|
+
const serializeAws_json1_1ImportHostKeyRequest = (input, context) => {
|
|
3575
|
+
return {
|
|
3576
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3577
|
+
...(input.HostKeyBody != null && { HostKeyBody: input.HostKeyBody }),
|
|
3578
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3579
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3580
|
+
};
|
|
3581
|
+
};
|
|
3285
3582
|
const serializeAws_json1_1ImportSshPublicKeyRequest = (input, context) => {
|
|
3286
3583
|
return {
|
|
3287
3584
|
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
@@ -3332,6 +3629,13 @@ const serializeAws_json1_1ListExecutionsRequest = (input, context) => {
|
|
|
3332
3629
|
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
3333
3630
|
};
|
|
3334
3631
|
};
|
|
3632
|
+
const serializeAws_json1_1ListHostKeysRequest = (input, context) => {
|
|
3633
|
+
return {
|
|
3634
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3635
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3636
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3637
|
+
};
|
|
3638
|
+
};
|
|
3335
3639
|
const serializeAws_json1_1ListProfilesRequest = (input, context) => {
|
|
3336
3640
|
return {
|
|
3337
3641
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -3559,6 +3863,13 @@ const serializeAws_json1_1UpdateConnectorRequest = (input, context) => {
|
|
|
3559
3863
|
...(input.Url != null && { Url: input.Url }),
|
|
3560
3864
|
};
|
|
3561
3865
|
};
|
|
3866
|
+
const serializeAws_json1_1UpdateHostKeyRequest = (input, context) => {
|
|
3867
|
+
return {
|
|
3868
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3869
|
+
...(input.HostKeyId != null && { HostKeyId: input.HostKeyId }),
|
|
3870
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
3871
|
+
};
|
|
3872
|
+
};
|
|
3562
3873
|
const serializeAws_json1_1UpdateProfileRequest = (input, context) => {
|
|
3563
3874
|
return {
|
|
3564
3875
|
...(input.CertificateIds != null && {
|
|
@@ -3862,6 +4173,19 @@ const deserializeAws_json1_1DescribedExecution = (output, context) => {
|
|
|
3862
4173
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3863
4174
|
};
|
|
3864
4175
|
};
|
|
4176
|
+
const deserializeAws_json1_1DescribedHostKey = (output, context) => {
|
|
4177
|
+
return {
|
|
4178
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4179
|
+
DateImported: output.DateImported != null
|
|
4180
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateImported)))
|
|
4181
|
+
: undefined,
|
|
4182
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4183
|
+
HostKeyFingerprint: (0, smithy_client_1.expectString)(output.HostKeyFingerprint),
|
|
4184
|
+
HostKeyId: (0, smithy_client_1.expectString)(output.HostKeyId),
|
|
4185
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
4186
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4187
|
+
};
|
|
4188
|
+
};
|
|
3865
4189
|
const deserializeAws_json1_1DescribedProfile = (output, context) => {
|
|
3866
4190
|
return {
|
|
3867
4191
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -3947,6 +4271,11 @@ const deserializeAws_json1_1DescribeExecutionResponse = (output, context) => {
|
|
|
3947
4271
|
WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
|
|
3948
4272
|
};
|
|
3949
4273
|
};
|
|
4274
|
+
const deserializeAws_json1_1DescribeHostKeyResponse = (output, context) => {
|
|
4275
|
+
return {
|
|
4276
|
+
HostKey: output.HostKey != null ? deserializeAws_json1_1DescribedHostKey(output.HostKey, context) : undefined,
|
|
4277
|
+
};
|
|
4278
|
+
};
|
|
3950
4279
|
const deserializeAws_json1_1DescribeProfileResponse = (output, context) => {
|
|
3951
4280
|
return {
|
|
3952
4281
|
Profile: output.Profile != null ? deserializeAws_json1_1DescribedProfile(output.Profile, context) : undefined,
|
|
@@ -4064,6 +4393,12 @@ const deserializeAws_json1_1ImportCertificateResponse = (output, context) => {
|
|
|
4064
4393
|
CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
|
|
4065
4394
|
};
|
|
4066
4395
|
};
|
|
4396
|
+
const deserializeAws_json1_1ImportHostKeyResponse = (output, context) => {
|
|
4397
|
+
return {
|
|
4398
|
+
HostKeyId: (0, smithy_client_1.expectString)(output.HostKeyId),
|
|
4399
|
+
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4400
|
+
};
|
|
4401
|
+
};
|
|
4067
4402
|
const deserializeAws_json1_1ImportSshPublicKeyResponse = (output, context) => {
|
|
4068
4403
|
return {
|
|
4069
4404
|
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
@@ -4228,6 +4563,29 @@ const deserializeAws_json1_1ListedExecutions = (output, context) => {
|
|
|
4228
4563
|
});
|
|
4229
4564
|
return retVal;
|
|
4230
4565
|
};
|
|
4566
|
+
const deserializeAws_json1_1ListedHostKey = (output, context) => {
|
|
4567
|
+
return {
|
|
4568
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4569
|
+
DateImported: output.DateImported != null
|
|
4570
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateImported)))
|
|
4571
|
+
: undefined,
|
|
4572
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4573
|
+
Fingerprint: (0, smithy_client_1.expectString)(output.Fingerprint),
|
|
4574
|
+
HostKeyId: (0, smithy_client_1.expectString)(output.HostKeyId),
|
|
4575
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4576
|
+
};
|
|
4577
|
+
};
|
|
4578
|
+
const deserializeAws_json1_1ListedHostKeys = (output, context) => {
|
|
4579
|
+
const retVal = (output || [])
|
|
4580
|
+
.filter((e) => e != null)
|
|
4581
|
+
.map((entry) => {
|
|
4582
|
+
if (entry === null) {
|
|
4583
|
+
return null;
|
|
4584
|
+
}
|
|
4585
|
+
return deserializeAws_json1_1ListedHostKey(entry, context);
|
|
4586
|
+
});
|
|
4587
|
+
return retVal;
|
|
4588
|
+
};
|
|
4231
4589
|
const deserializeAws_json1_1ListedProfile = (output, context) => {
|
|
4232
4590
|
return {
|
|
4233
4591
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -4316,6 +4674,13 @@ const deserializeAws_json1_1ListExecutionsResponse = (output, context) => {
|
|
|
4316
4674
|
WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
|
|
4317
4675
|
};
|
|
4318
4676
|
};
|
|
4677
|
+
const deserializeAws_json1_1ListHostKeysResponse = (output, context) => {
|
|
4678
|
+
return {
|
|
4679
|
+
HostKeys: output.HostKeys != null ? deserializeAws_json1_1ListedHostKeys(output.HostKeys, context) : undefined,
|
|
4680
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4681
|
+
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4682
|
+
};
|
|
4683
|
+
};
|
|
4319
4684
|
const deserializeAws_json1_1ListProfilesResponse = (output, context) => {
|
|
4320
4685
|
return {
|
|
4321
4686
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4595,6 +4960,12 @@ const deserializeAws_json1_1UpdateConnectorResponse = (output, context) => {
|
|
|
4595
4960
|
ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
|
|
4596
4961
|
};
|
|
4597
4962
|
};
|
|
4963
|
+
const deserializeAws_json1_1UpdateHostKeyResponse = (output, context) => {
|
|
4964
|
+
return {
|
|
4965
|
+
HostKeyId: (0, smithy_client_1.expectString)(output.HostKeyId),
|
|
4966
|
+
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
4967
|
+
};
|
|
4968
|
+
};
|
|
4598
4969
|
const deserializeAws_json1_1UpdateProfileResponse = (output, context) => {
|
|
4599
4970
|
return {
|
|
4600
4971
|
ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
|