@aws-sdk/client-transfer 3.490.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Transfer.js +1 -129
- package/dist-cjs/TransferClient.js +1 -43
- package/dist-cjs/commands/CreateAccessCommand.js +1 -28
- package/dist-cjs/commands/CreateAgreementCommand.js +1 -28
- package/dist-cjs/commands/CreateConnectorCommand.js +1 -28
- package/dist-cjs/commands/CreateProfileCommand.js +1 -28
- package/dist-cjs/commands/CreateServerCommand.js +1 -29
- package/dist-cjs/commands/CreateUserCommand.js +1 -28
- package/dist-cjs/commands/CreateWorkflowCommand.js +1 -28
- package/dist-cjs/commands/DeleteAccessCommand.js +1 -28
- package/dist-cjs/commands/DeleteAgreementCommand.js +1 -28
- package/dist-cjs/commands/DeleteCertificateCommand.js +1 -28
- package/dist-cjs/commands/DeleteConnectorCommand.js +1 -28
- package/dist-cjs/commands/DeleteHostKeyCommand.js +1 -28
- package/dist-cjs/commands/DeleteProfileCommand.js +1 -28
- package/dist-cjs/commands/DeleteServerCommand.js +1 -28
- package/dist-cjs/commands/DeleteSshPublicKeyCommand.js +1 -28
- package/dist-cjs/commands/DeleteUserCommand.js +1 -28
- package/dist-cjs/commands/DeleteWorkflowCommand.js +1 -28
- package/dist-cjs/commands/DescribeAccessCommand.js +1 -28
- package/dist-cjs/commands/DescribeAgreementCommand.js +1 -28
- package/dist-cjs/commands/DescribeCertificateCommand.js +1 -29
- package/dist-cjs/commands/DescribeConnectorCommand.js +1 -28
- package/dist-cjs/commands/DescribeExecutionCommand.js +1 -28
- package/dist-cjs/commands/DescribeHostKeyCommand.js +1 -28
- package/dist-cjs/commands/DescribeProfileCommand.js +1 -28
- package/dist-cjs/commands/DescribeSecurityPolicyCommand.js +1 -28
- package/dist-cjs/commands/DescribeServerCommand.js +1 -28
- package/dist-cjs/commands/DescribeUserCommand.js +1 -28
- package/dist-cjs/commands/DescribeWorkflowCommand.js +1 -28
- package/dist-cjs/commands/ImportCertificateCommand.js +1 -29
- package/dist-cjs/commands/ImportHostKeyCommand.js +1 -29
- package/dist-cjs/commands/ImportSshPublicKeyCommand.js +1 -28
- package/dist-cjs/commands/ListAccessesCommand.js +1 -28
- package/dist-cjs/commands/ListAgreementsCommand.js +1 -28
- package/dist-cjs/commands/ListCertificatesCommand.js +1 -28
- package/dist-cjs/commands/ListConnectorsCommand.js +1 -28
- package/dist-cjs/commands/ListExecutionsCommand.js +1 -28
- package/dist-cjs/commands/ListHostKeysCommand.js +1 -28
- package/dist-cjs/commands/ListProfilesCommand.js +1 -28
- package/dist-cjs/commands/ListSecurityPoliciesCommand.js +1 -28
- package/dist-cjs/commands/ListServersCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListUsersCommand.js +1 -28
- package/dist-cjs/commands/ListWorkflowsCommand.js +1 -28
- package/dist-cjs/commands/SendWorkflowStepStateCommand.js +1 -28
- package/dist-cjs/commands/StartFileTransferCommand.js +1 -28
- package/dist-cjs/commands/StartServerCommand.js +1 -28
- package/dist-cjs/commands/StopServerCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/TestConnectionCommand.js +1 -28
- package/dist-cjs/commands/TestIdentityProviderCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAccessCommand.js +1 -28
- package/dist-cjs/commands/UpdateAgreementCommand.js +1 -28
- package/dist-cjs/commands/UpdateCertificateCommand.js +1 -28
- package/dist-cjs/commands/UpdateConnectorCommand.js +1 -28
- package/dist-cjs/commands/UpdateHostKeyCommand.js +1 -28
- package/dist-cjs/commands/UpdateProfileCommand.js +1 -28
- package/dist-cjs/commands/UpdateServerCommand.js +1 -29
- package/dist-cjs/commands/UpdateUserCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -62
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +5089 -12
- package/dist-cjs/models/TransferServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -316
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAccessesPaginator.js +1 -7
- package/dist-cjs/pagination/ListAgreementsPaginator.js +1 -7
- package/dist-cjs/pagination/ListCertificatesPaginator.js +1 -7
- package/dist-cjs/pagination/ListConnectorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListExecutionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListProfilesPaginator.js +1 -7
- package/dist-cjs/pagination/ListSecurityPoliciesPaginator.js +1 -7
- package/dist-cjs/pagination/ListServersPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
- package/dist-cjs/pagination/ListUsersPaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkflowsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -15
- package/dist-cjs/protocols/Aws_json1_1.js +1 -3297
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-cjs/waiters/index.js +1 -5
- package/dist-cjs/waiters/waitForServerOffline.js +1 -45
- package/dist-cjs/waiters/waitForServerOnline.js +1 -45
- package/dist-types/commands/DescribeConnectorCommand.d.ts +3 -0
- package/dist-types/commands/DescribeServerCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +14 -1
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/package.json +41 -41
|
@@ -1,3297 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_TestIdentityProviderCommand = exports.se_TestConnectionCommand = exports.se_TagResourceCommand = exports.se_StopServerCommand = exports.se_StartServerCommand = exports.se_StartFileTransferCommand = exports.se_SendWorkflowStepStateCommand = exports.se_ListWorkflowsCommand = exports.se_ListUsersCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServersCommand = exports.se_ListSecurityPoliciesCommand = exports.se_ListProfilesCommand = exports.se_ListHostKeysCommand = exports.se_ListExecutionsCommand = exports.se_ListConnectorsCommand = exports.se_ListCertificatesCommand = exports.se_ListAgreementsCommand = exports.se_ListAccessesCommand = exports.se_ImportSshPublicKeyCommand = exports.se_ImportHostKeyCommand = exports.se_ImportCertificateCommand = exports.se_DescribeWorkflowCommand = exports.se_DescribeUserCommand = exports.se_DescribeServerCommand = exports.se_DescribeSecurityPolicyCommand = exports.se_DescribeProfileCommand = exports.se_DescribeHostKeyCommand = exports.se_DescribeExecutionCommand = exports.se_DescribeConnectorCommand = exports.se_DescribeCertificateCommand = exports.se_DescribeAgreementCommand = exports.se_DescribeAccessCommand = exports.se_DeleteWorkflowCommand = exports.se_DeleteUserCommand = exports.se_DeleteSshPublicKeyCommand = exports.se_DeleteServerCommand = exports.se_DeleteProfileCommand = exports.se_DeleteHostKeyCommand = exports.se_DeleteConnectorCommand = exports.se_DeleteCertificateCommand = exports.se_DeleteAgreementCommand = exports.se_DeleteAccessCommand = exports.se_CreateWorkflowCommand = exports.se_CreateUserCommand = exports.se_CreateServerCommand = exports.se_CreateProfileCommand = exports.se_CreateConnectorCommand = exports.se_CreateAgreementCommand = exports.se_CreateAccessCommand = void 0;
|
|
4
|
-
exports.de_ListTagsForResourceCommand = exports.de_ListServersCommand = exports.de_ListSecurityPoliciesCommand = exports.de_ListProfilesCommand = exports.de_ListHostKeysCommand = exports.de_ListExecutionsCommand = exports.de_ListConnectorsCommand = exports.de_ListCertificatesCommand = exports.de_ListAgreementsCommand = exports.de_ListAccessesCommand = exports.de_ImportSshPublicKeyCommand = exports.de_ImportHostKeyCommand = exports.de_ImportCertificateCommand = exports.de_DescribeWorkflowCommand = exports.de_DescribeUserCommand = exports.de_DescribeServerCommand = exports.de_DescribeSecurityPolicyCommand = exports.de_DescribeProfileCommand = exports.de_DescribeHostKeyCommand = exports.de_DescribeExecutionCommand = exports.de_DescribeConnectorCommand = exports.de_DescribeCertificateCommand = exports.de_DescribeAgreementCommand = exports.de_DescribeAccessCommand = exports.de_DeleteWorkflowCommand = exports.de_DeleteUserCommand = exports.de_DeleteSshPublicKeyCommand = exports.de_DeleteServerCommand = exports.de_DeleteProfileCommand = exports.de_DeleteHostKeyCommand = exports.de_DeleteConnectorCommand = exports.de_DeleteCertificateCommand = exports.de_DeleteAgreementCommand = exports.de_DeleteAccessCommand = exports.de_CreateWorkflowCommand = exports.de_CreateUserCommand = exports.de_CreateServerCommand = exports.de_CreateProfileCommand = exports.de_CreateConnectorCommand = exports.de_CreateAgreementCommand = exports.de_CreateAccessCommand = exports.se_UpdateUserCommand = exports.se_UpdateServerCommand = exports.se_UpdateProfileCommand = exports.se_UpdateHostKeyCommand = exports.se_UpdateConnectorCommand = exports.se_UpdateCertificateCommand = exports.se_UpdateAgreementCommand = exports.se_UpdateAccessCommand = exports.se_UntagResourceCommand = void 0;
|
|
5
|
-
exports.de_UpdateUserCommand = exports.de_UpdateServerCommand = exports.de_UpdateProfileCommand = exports.de_UpdateHostKeyCommand = exports.de_UpdateConnectorCommand = exports.de_UpdateCertificateCommand = exports.de_UpdateAgreementCommand = exports.de_UpdateAccessCommand = exports.de_UntagResourceCommand = exports.de_TestIdentityProviderCommand = exports.de_TestConnectionCommand = exports.de_TagResourceCommand = exports.de_StopServerCommand = exports.de_StartServerCommand = exports.de_StartFileTransferCommand = exports.de_SendWorkflowStepStateCommand = exports.de_ListWorkflowsCommand = exports.de_ListUsersCommand = void 0;
|
|
6
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const TransferServiceException_1 = require("../models/TransferServiceException");
|
|
10
|
-
const se_CreateAccessCommand = async (input, context) => {
|
|
11
|
-
const headers = sharedHeaders("CreateAccess");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
-
};
|
|
16
|
-
exports.se_CreateAccessCommand = se_CreateAccessCommand;
|
|
17
|
-
const se_CreateAgreementCommand = async (input, context) => {
|
|
18
|
-
const headers = sharedHeaders("CreateAgreement");
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
-
};
|
|
23
|
-
exports.se_CreateAgreementCommand = se_CreateAgreementCommand;
|
|
24
|
-
const se_CreateConnectorCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateConnector");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
exports.se_CreateConnectorCommand = se_CreateConnectorCommand;
|
|
31
|
-
const se_CreateProfileCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("CreateProfile");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
exports.se_CreateProfileCommand = se_CreateProfileCommand;
|
|
38
|
-
const se_CreateServerCommand = async (input, context) => {
|
|
39
|
-
const headers = sharedHeaders("CreateServer");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
-
};
|
|
44
|
-
exports.se_CreateServerCommand = se_CreateServerCommand;
|
|
45
|
-
const se_CreateUserCommand = async (input, context) => {
|
|
46
|
-
const headers = sharedHeaders("CreateUser");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
49
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
-
};
|
|
51
|
-
exports.se_CreateUserCommand = se_CreateUserCommand;
|
|
52
|
-
const se_CreateWorkflowCommand = async (input, context) => {
|
|
53
|
-
const headers = sharedHeaders("CreateWorkflow");
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
-
};
|
|
58
|
-
exports.se_CreateWorkflowCommand = se_CreateWorkflowCommand;
|
|
59
|
-
const se_DeleteAccessCommand = async (input, context) => {
|
|
60
|
-
const headers = sharedHeaders("DeleteAccess");
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
|
-
};
|
|
65
|
-
exports.se_DeleteAccessCommand = se_DeleteAccessCommand;
|
|
66
|
-
const se_DeleteAgreementCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DeleteAgreement");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
exports.se_DeleteAgreementCommand = se_DeleteAgreementCommand;
|
|
73
|
-
const se_DeleteCertificateCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("DeleteCertificate");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
exports.se_DeleteCertificateCommand = se_DeleteCertificateCommand;
|
|
80
|
-
const se_DeleteConnectorCommand = async (input, context) => {
|
|
81
|
-
const headers = sharedHeaders("DeleteConnector");
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
exports.se_DeleteConnectorCommand = se_DeleteConnectorCommand;
|
|
87
|
-
const se_DeleteHostKeyCommand = async (input, context) => {
|
|
88
|
-
const headers = sharedHeaders("DeleteHostKey");
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
91
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
|
-
};
|
|
93
|
-
exports.se_DeleteHostKeyCommand = se_DeleteHostKeyCommand;
|
|
94
|
-
const se_DeleteProfileCommand = async (input, context) => {
|
|
95
|
-
const headers = sharedHeaders("DeleteProfile");
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
98
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
|
-
};
|
|
100
|
-
exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
|
|
101
|
-
const se_DeleteServerCommand = async (input, context) => {
|
|
102
|
-
const headers = sharedHeaders("DeleteServer");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
|
-
};
|
|
107
|
-
exports.se_DeleteServerCommand = se_DeleteServerCommand;
|
|
108
|
-
const se_DeleteSshPublicKeyCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("DeleteSshPublicKey");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
exports.se_DeleteSshPublicKeyCommand = se_DeleteSshPublicKeyCommand;
|
|
115
|
-
const se_DeleteUserCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("DeleteUser");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
exports.se_DeleteUserCommand = se_DeleteUserCommand;
|
|
122
|
-
const se_DeleteWorkflowCommand = async (input, context) => {
|
|
123
|
-
const headers = sharedHeaders("DeleteWorkflow");
|
|
124
|
-
let body;
|
|
125
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
|
-
};
|
|
128
|
-
exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
|
|
129
|
-
const se_DescribeAccessCommand = async (input, context) => {
|
|
130
|
-
const headers = sharedHeaders("DescribeAccess");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
133
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
|
-
};
|
|
135
|
-
exports.se_DescribeAccessCommand = se_DescribeAccessCommand;
|
|
136
|
-
const se_DescribeAgreementCommand = async (input, context) => {
|
|
137
|
-
const headers = sharedHeaders("DescribeAgreement");
|
|
138
|
-
let body;
|
|
139
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
140
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
|
-
};
|
|
142
|
-
exports.se_DescribeAgreementCommand = se_DescribeAgreementCommand;
|
|
143
|
-
const se_DescribeCertificateCommand = async (input, context) => {
|
|
144
|
-
const headers = sharedHeaders("DescribeCertificate");
|
|
145
|
-
let body;
|
|
146
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
-
};
|
|
149
|
-
exports.se_DescribeCertificateCommand = se_DescribeCertificateCommand;
|
|
150
|
-
const se_DescribeConnectorCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("DescribeConnector");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
exports.se_DescribeConnectorCommand = se_DescribeConnectorCommand;
|
|
157
|
-
const se_DescribeExecutionCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("DescribeExecution");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
exports.se_DescribeExecutionCommand = se_DescribeExecutionCommand;
|
|
164
|
-
const se_DescribeHostKeyCommand = async (input, context) => {
|
|
165
|
-
const headers = sharedHeaders("DescribeHostKey");
|
|
166
|
-
let body;
|
|
167
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
168
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
|
-
};
|
|
170
|
-
exports.se_DescribeHostKeyCommand = se_DescribeHostKeyCommand;
|
|
171
|
-
const se_DescribeProfileCommand = async (input, context) => {
|
|
172
|
-
const headers = sharedHeaders("DescribeProfile");
|
|
173
|
-
let body;
|
|
174
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
-
};
|
|
177
|
-
exports.se_DescribeProfileCommand = se_DescribeProfileCommand;
|
|
178
|
-
const se_DescribeSecurityPolicyCommand = async (input, context) => {
|
|
179
|
-
const headers = sharedHeaders("DescribeSecurityPolicy");
|
|
180
|
-
let body;
|
|
181
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
182
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
183
|
-
};
|
|
184
|
-
exports.se_DescribeSecurityPolicyCommand = se_DescribeSecurityPolicyCommand;
|
|
185
|
-
const se_DescribeServerCommand = async (input, context) => {
|
|
186
|
-
const headers = sharedHeaders("DescribeServer");
|
|
187
|
-
let body;
|
|
188
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
189
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
|
-
};
|
|
191
|
-
exports.se_DescribeServerCommand = se_DescribeServerCommand;
|
|
192
|
-
const se_DescribeUserCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("DescribeUser");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
exports.se_DescribeUserCommand = se_DescribeUserCommand;
|
|
199
|
-
const se_DescribeWorkflowCommand = async (input, context) => {
|
|
200
|
-
const headers = sharedHeaders("DescribeWorkflow");
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
exports.se_DescribeWorkflowCommand = se_DescribeWorkflowCommand;
|
|
206
|
-
const se_ImportCertificateCommand = async (input, context) => {
|
|
207
|
-
const headers = sharedHeaders("ImportCertificate");
|
|
208
|
-
let body;
|
|
209
|
-
body = JSON.stringify(se_ImportCertificateRequest(input, context));
|
|
210
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
|
-
};
|
|
212
|
-
exports.se_ImportCertificateCommand = se_ImportCertificateCommand;
|
|
213
|
-
const se_ImportHostKeyCommand = async (input, context) => {
|
|
214
|
-
const headers = sharedHeaders("ImportHostKey");
|
|
215
|
-
let body;
|
|
216
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
217
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
|
-
};
|
|
219
|
-
exports.se_ImportHostKeyCommand = se_ImportHostKeyCommand;
|
|
220
|
-
const se_ImportSshPublicKeyCommand = async (input, context) => {
|
|
221
|
-
const headers = sharedHeaders("ImportSshPublicKey");
|
|
222
|
-
let body;
|
|
223
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
224
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
|
-
};
|
|
226
|
-
exports.se_ImportSshPublicKeyCommand = se_ImportSshPublicKeyCommand;
|
|
227
|
-
const se_ListAccessesCommand = async (input, context) => {
|
|
228
|
-
const headers = sharedHeaders("ListAccesses");
|
|
229
|
-
let body;
|
|
230
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
231
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
|
-
};
|
|
233
|
-
exports.se_ListAccessesCommand = se_ListAccessesCommand;
|
|
234
|
-
const se_ListAgreementsCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("ListAgreements");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
exports.se_ListAgreementsCommand = se_ListAgreementsCommand;
|
|
241
|
-
const se_ListCertificatesCommand = async (input, context) => {
|
|
242
|
-
const headers = sharedHeaders("ListCertificates");
|
|
243
|
-
let body;
|
|
244
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
245
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
-
};
|
|
247
|
-
exports.se_ListCertificatesCommand = se_ListCertificatesCommand;
|
|
248
|
-
const se_ListConnectorsCommand = async (input, context) => {
|
|
249
|
-
const headers = sharedHeaders("ListConnectors");
|
|
250
|
-
let body;
|
|
251
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
252
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
253
|
-
};
|
|
254
|
-
exports.se_ListConnectorsCommand = se_ListConnectorsCommand;
|
|
255
|
-
const se_ListExecutionsCommand = async (input, context) => {
|
|
256
|
-
const headers = sharedHeaders("ListExecutions");
|
|
257
|
-
let body;
|
|
258
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
259
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
260
|
-
};
|
|
261
|
-
exports.se_ListExecutionsCommand = se_ListExecutionsCommand;
|
|
262
|
-
const se_ListHostKeysCommand = async (input, context) => {
|
|
263
|
-
const headers = sharedHeaders("ListHostKeys");
|
|
264
|
-
let body;
|
|
265
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
|
-
};
|
|
268
|
-
exports.se_ListHostKeysCommand = se_ListHostKeysCommand;
|
|
269
|
-
const se_ListProfilesCommand = async (input, context) => {
|
|
270
|
-
const headers = sharedHeaders("ListProfiles");
|
|
271
|
-
let body;
|
|
272
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
273
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
|
-
};
|
|
275
|
-
exports.se_ListProfilesCommand = se_ListProfilesCommand;
|
|
276
|
-
const se_ListSecurityPoliciesCommand = async (input, context) => {
|
|
277
|
-
const headers = sharedHeaders("ListSecurityPolicies");
|
|
278
|
-
let body;
|
|
279
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
280
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
-
};
|
|
282
|
-
exports.se_ListSecurityPoliciesCommand = se_ListSecurityPoliciesCommand;
|
|
283
|
-
const se_ListServersCommand = async (input, context) => {
|
|
284
|
-
const headers = sharedHeaders("ListServers");
|
|
285
|
-
let body;
|
|
286
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
287
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
-
};
|
|
289
|
-
exports.se_ListServersCommand = se_ListServersCommand;
|
|
290
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
291
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
292
|
-
let body;
|
|
293
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
294
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
295
|
-
};
|
|
296
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
297
|
-
const se_ListUsersCommand = async (input, context) => {
|
|
298
|
-
const headers = sharedHeaders("ListUsers");
|
|
299
|
-
let body;
|
|
300
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
301
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
302
|
-
};
|
|
303
|
-
exports.se_ListUsersCommand = se_ListUsersCommand;
|
|
304
|
-
const se_ListWorkflowsCommand = async (input, context) => {
|
|
305
|
-
const headers = sharedHeaders("ListWorkflows");
|
|
306
|
-
let body;
|
|
307
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
308
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
309
|
-
};
|
|
310
|
-
exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
|
|
311
|
-
const se_SendWorkflowStepStateCommand = async (input, context) => {
|
|
312
|
-
const headers = sharedHeaders("SendWorkflowStepState");
|
|
313
|
-
let body;
|
|
314
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
315
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
316
|
-
};
|
|
317
|
-
exports.se_SendWorkflowStepStateCommand = se_SendWorkflowStepStateCommand;
|
|
318
|
-
const se_StartFileTransferCommand = async (input, context) => {
|
|
319
|
-
const headers = sharedHeaders("StartFileTransfer");
|
|
320
|
-
let body;
|
|
321
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
322
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
|
-
};
|
|
324
|
-
exports.se_StartFileTransferCommand = se_StartFileTransferCommand;
|
|
325
|
-
const se_StartServerCommand = async (input, context) => {
|
|
326
|
-
const headers = sharedHeaders("StartServer");
|
|
327
|
-
let body;
|
|
328
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
329
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
330
|
-
};
|
|
331
|
-
exports.se_StartServerCommand = se_StartServerCommand;
|
|
332
|
-
const se_StopServerCommand = async (input, context) => {
|
|
333
|
-
const headers = sharedHeaders("StopServer");
|
|
334
|
-
let body;
|
|
335
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
336
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
|
-
};
|
|
338
|
-
exports.se_StopServerCommand = se_StopServerCommand;
|
|
339
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
340
|
-
const headers = sharedHeaders("TagResource");
|
|
341
|
-
let body;
|
|
342
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
343
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
344
|
-
};
|
|
345
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
346
|
-
const se_TestConnectionCommand = async (input, context) => {
|
|
347
|
-
const headers = sharedHeaders("TestConnection");
|
|
348
|
-
let body;
|
|
349
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
350
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
351
|
-
};
|
|
352
|
-
exports.se_TestConnectionCommand = se_TestConnectionCommand;
|
|
353
|
-
const se_TestIdentityProviderCommand = async (input, context) => {
|
|
354
|
-
const headers = sharedHeaders("TestIdentityProvider");
|
|
355
|
-
let body;
|
|
356
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
357
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
358
|
-
};
|
|
359
|
-
exports.se_TestIdentityProviderCommand = se_TestIdentityProviderCommand;
|
|
360
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
361
|
-
const headers = sharedHeaders("UntagResource");
|
|
362
|
-
let body;
|
|
363
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
364
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
|
-
};
|
|
366
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
367
|
-
const se_UpdateAccessCommand = async (input, context) => {
|
|
368
|
-
const headers = sharedHeaders("UpdateAccess");
|
|
369
|
-
let body;
|
|
370
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
371
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
372
|
-
};
|
|
373
|
-
exports.se_UpdateAccessCommand = se_UpdateAccessCommand;
|
|
374
|
-
const se_UpdateAgreementCommand = async (input, context) => {
|
|
375
|
-
const headers = sharedHeaders("UpdateAgreement");
|
|
376
|
-
let body;
|
|
377
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
378
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
379
|
-
};
|
|
380
|
-
exports.se_UpdateAgreementCommand = se_UpdateAgreementCommand;
|
|
381
|
-
const se_UpdateCertificateCommand = async (input, context) => {
|
|
382
|
-
const headers = sharedHeaders("UpdateCertificate");
|
|
383
|
-
let body;
|
|
384
|
-
body = JSON.stringify(se_UpdateCertificateRequest(input, context));
|
|
385
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
386
|
-
};
|
|
387
|
-
exports.se_UpdateCertificateCommand = se_UpdateCertificateCommand;
|
|
388
|
-
const se_UpdateConnectorCommand = async (input, context) => {
|
|
389
|
-
const headers = sharedHeaders("UpdateConnector");
|
|
390
|
-
let body;
|
|
391
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
392
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
393
|
-
};
|
|
394
|
-
exports.se_UpdateConnectorCommand = se_UpdateConnectorCommand;
|
|
395
|
-
const se_UpdateHostKeyCommand = async (input, context) => {
|
|
396
|
-
const headers = sharedHeaders("UpdateHostKey");
|
|
397
|
-
let body;
|
|
398
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
399
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
400
|
-
};
|
|
401
|
-
exports.se_UpdateHostKeyCommand = se_UpdateHostKeyCommand;
|
|
402
|
-
const se_UpdateProfileCommand = async (input, context) => {
|
|
403
|
-
const headers = sharedHeaders("UpdateProfile");
|
|
404
|
-
let body;
|
|
405
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
406
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
407
|
-
};
|
|
408
|
-
exports.se_UpdateProfileCommand = se_UpdateProfileCommand;
|
|
409
|
-
const se_UpdateServerCommand = async (input, context) => {
|
|
410
|
-
const headers = sharedHeaders("UpdateServer");
|
|
411
|
-
let body;
|
|
412
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
413
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
414
|
-
};
|
|
415
|
-
exports.se_UpdateServerCommand = se_UpdateServerCommand;
|
|
416
|
-
const se_UpdateUserCommand = async (input, context) => {
|
|
417
|
-
const headers = sharedHeaders("UpdateUser");
|
|
418
|
-
let body;
|
|
419
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
420
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
421
|
-
};
|
|
422
|
-
exports.se_UpdateUserCommand = se_UpdateUserCommand;
|
|
423
|
-
const de_CreateAccessCommand = async (output, context) => {
|
|
424
|
-
if (output.statusCode >= 300) {
|
|
425
|
-
return de_CreateAccessCommandError(output, context);
|
|
426
|
-
}
|
|
427
|
-
const data = await parseBody(output.body, context);
|
|
428
|
-
let contents = {};
|
|
429
|
-
contents = (0, smithy_client_1._json)(data);
|
|
430
|
-
const response = {
|
|
431
|
-
$metadata: deserializeMetadata(output),
|
|
432
|
-
...contents,
|
|
433
|
-
};
|
|
434
|
-
return response;
|
|
435
|
-
};
|
|
436
|
-
exports.de_CreateAccessCommand = de_CreateAccessCommand;
|
|
437
|
-
const de_CreateAccessCommandError = async (output, context) => {
|
|
438
|
-
const parsedOutput = {
|
|
439
|
-
...output,
|
|
440
|
-
body: await parseErrorBody(output.body, context),
|
|
441
|
-
};
|
|
442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
443
|
-
switch (errorCode) {
|
|
444
|
-
case "InternalServiceError":
|
|
445
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
446
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
447
|
-
case "InvalidRequestException":
|
|
448
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
449
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
450
|
-
case "ResourceExistsException":
|
|
451
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
452
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
453
|
-
case "ResourceNotFoundException":
|
|
454
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
455
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
456
|
-
case "ServiceUnavailableException":
|
|
457
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
458
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
459
|
-
default:
|
|
460
|
-
const parsedBody = parsedOutput.body;
|
|
461
|
-
return throwDefaultError({
|
|
462
|
-
output,
|
|
463
|
-
parsedBody,
|
|
464
|
-
errorCode,
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
const de_CreateAgreementCommand = async (output, context) => {
|
|
469
|
-
if (output.statusCode >= 300) {
|
|
470
|
-
return de_CreateAgreementCommandError(output, context);
|
|
471
|
-
}
|
|
472
|
-
const data = await parseBody(output.body, context);
|
|
473
|
-
let contents = {};
|
|
474
|
-
contents = (0, smithy_client_1._json)(data);
|
|
475
|
-
const response = {
|
|
476
|
-
$metadata: deserializeMetadata(output),
|
|
477
|
-
...contents,
|
|
478
|
-
};
|
|
479
|
-
return response;
|
|
480
|
-
};
|
|
481
|
-
exports.de_CreateAgreementCommand = de_CreateAgreementCommand;
|
|
482
|
-
const de_CreateAgreementCommandError = async (output, context) => {
|
|
483
|
-
const parsedOutput = {
|
|
484
|
-
...output,
|
|
485
|
-
body: await parseErrorBody(output.body, context),
|
|
486
|
-
};
|
|
487
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
488
|
-
switch (errorCode) {
|
|
489
|
-
case "InternalServiceError":
|
|
490
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
491
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
492
|
-
case "InvalidRequestException":
|
|
493
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
494
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
495
|
-
case "ResourceExistsException":
|
|
496
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
497
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
498
|
-
case "ResourceNotFoundException":
|
|
499
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
500
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
501
|
-
case "ServiceUnavailableException":
|
|
502
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
503
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
504
|
-
case "ThrottlingException":
|
|
505
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
506
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
507
|
-
default:
|
|
508
|
-
const parsedBody = parsedOutput.body;
|
|
509
|
-
return throwDefaultError({
|
|
510
|
-
output,
|
|
511
|
-
parsedBody,
|
|
512
|
-
errorCode,
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
};
|
|
516
|
-
const de_CreateConnectorCommand = async (output, context) => {
|
|
517
|
-
if (output.statusCode >= 300) {
|
|
518
|
-
return de_CreateConnectorCommandError(output, context);
|
|
519
|
-
}
|
|
520
|
-
const data = await parseBody(output.body, context);
|
|
521
|
-
let contents = {};
|
|
522
|
-
contents = (0, smithy_client_1._json)(data);
|
|
523
|
-
const response = {
|
|
524
|
-
$metadata: deserializeMetadata(output),
|
|
525
|
-
...contents,
|
|
526
|
-
};
|
|
527
|
-
return response;
|
|
528
|
-
};
|
|
529
|
-
exports.de_CreateConnectorCommand = de_CreateConnectorCommand;
|
|
530
|
-
const de_CreateConnectorCommandError = async (output, context) => {
|
|
531
|
-
const parsedOutput = {
|
|
532
|
-
...output,
|
|
533
|
-
body: await parseErrorBody(output.body, context),
|
|
534
|
-
};
|
|
535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
536
|
-
switch (errorCode) {
|
|
537
|
-
case "InternalServiceError":
|
|
538
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
539
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
540
|
-
case "InvalidRequestException":
|
|
541
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
542
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ResourceExistsException":
|
|
544
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
545
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ResourceNotFoundException":
|
|
547
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
548
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
549
|
-
case "ServiceUnavailableException":
|
|
550
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
551
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
552
|
-
case "ThrottlingException":
|
|
553
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
554
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
555
|
-
default:
|
|
556
|
-
const parsedBody = parsedOutput.body;
|
|
557
|
-
return throwDefaultError({
|
|
558
|
-
output,
|
|
559
|
-
parsedBody,
|
|
560
|
-
errorCode,
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
};
|
|
564
|
-
const de_CreateProfileCommand = async (output, context) => {
|
|
565
|
-
if (output.statusCode >= 300) {
|
|
566
|
-
return de_CreateProfileCommandError(output, context);
|
|
567
|
-
}
|
|
568
|
-
const data = await parseBody(output.body, context);
|
|
569
|
-
let contents = {};
|
|
570
|
-
contents = (0, smithy_client_1._json)(data);
|
|
571
|
-
const response = {
|
|
572
|
-
$metadata: deserializeMetadata(output),
|
|
573
|
-
...contents,
|
|
574
|
-
};
|
|
575
|
-
return response;
|
|
576
|
-
};
|
|
577
|
-
exports.de_CreateProfileCommand = de_CreateProfileCommand;
|
|
578
|
-
const de_CreateProfileCommandError = async (output, context) => {
|
|
579
|
-
const parsedOutput = {
|
|
580
|
-
...output,
|
|
581
|
-
body: await parseErrorBody(output.body, context),
|
|
582
|
-
};
|
|
583
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
584
|
-
switch (errorCode) {
|
|
585
|
-
case "InternalServiceError":
|
|
586
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
587
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
588
|
-
case "InvalidRequestException":
|
|
589
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
590
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
591
|
-
case "ResourceNotFoundException":
|
|
592
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
593
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
594
|
-
case "ServiceUnavailableException":
|
|
595
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
596
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
597
|
-
case "ThrottlingException":
|
|
598
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
599
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
600
|
-
default:
|
|
601
|
-
const parsedBody = parsedOutput.body;
|
|
602
|
-
return throwDefaultError({
|
|
603
|
-
output,
|
|
604
|
-
parsedBody,
|
|
605
|
-
errorCode,
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
};
|
|
609
|
-
const de_CreateServerCommand = async (output, context) => {
|
|
610
|
-
if (output.statusCode >= 300) {
|
|
611
|
-
return de_CreateServerCommandError(output, context);
|
|
612
|
-
}
|
|
613
|
-
const data = await parseBody(output.body, context);
|
|
614
|
-
let contents = {};
|
|
615
|
-
contents = (0, smithy_client_1._json)(data);
|
|
616
|
-
const response = {
|
|
617
|
-
$metadata: deserializeMetadata(output),
|
|
618
|
-
...contents,
|
|
619
|
-
};
|
|
620
|
-
return response;
|
|
621
|
-
};
|
|
622
|
-
exports.de_CreateServerCommand = de_CreateServerCommand;
|
|
623
|
-
const de_CreateServerCommandError = async (output, context) => {
|
|
624
|
-
const parsedOutput = {
|
|
625
|
-
...output,
|
|
626
|
-
body: await parseErrorBody(output.body, context),
|
|
627
|
-
};
|
|
628
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
|
-
switch (errorCode) {
|
|
630
|
-
case "AccessDeniedException":
|
|
631
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
632
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
633
|
-
case "InternalServiceError":
|
|
634
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
635
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
636
|
-
case "InvalidRequestException":
|
|
637
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
638
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
639
|
-
case "ResourceExistsException":
|
|
640
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
641
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
642
|
-
case "ResourceNotFoundException":
|
|
643
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
644
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
645
|
-
case "ServiceUnavailableException":
|
|
646
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
647
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ThrottlingException":
|
|
649
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
650
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
651
|
-
default:
|
|
652
|
-
const parsedBody = parsedOutput.body;
|
|
653
|
-
return throwDefaultError({
|
|
654
|
-
output,
|
|
655
|
-
parsedBody,
|
|
656
|
-
errorCode,
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
};
|
|
660
|
-
const de_CreateUserCommand = async (output, context) => {
|
|
661
|
-
if (output.statusCode >= 300) {
|
|
662
|
-
return de_CreateUserCommandError(output, context);
|
|
663
|
-
}
|
|
664
|
-
const data = await parseBody(output.body, context);
|
|
665
|
-
let contents = {};
|
|
666
|
-
contents = (0, smithy_client_1._json)(data);
|
|
667
|
-
const response = {
|
|
668
|
-
$metadata: deserializeMetadata(output),
|
|
669
|
-
...contents,
|
|
670
|
-
};
|
|
671
|
-
return response;
|
|
672
|
-
};
|
|
673
|
-
exports.de_CreateUserCommand = de_CreateUserCommand;
|
|
674
|
-
const de_CreateUserCommandError = async (output, context) => {
|
|
675
|
-
const parsedOutput = {
|
|
676
|
-
...output,
|
|
677
|
-
body: await parseErrorBody(output.body, context),
|
|
678
|
-
};
|
|
679
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
|
-
switch (errorCode) {
|
|
681
|
-
case "InternalServiceError":
|
|
682
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
683
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
684
|
-
case "InvalidRequestException":
|
|
685
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
686
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
687
|
-
case "ResourceExistsException":
|
|
688
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
689
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
690
|
-
case "ResourceNotFoundException":
|
|
691
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
692
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
693
|
-
case "ServiceUnavailableException":
|
|
694
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
695
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
696
|
-
default:
|
|
697
|
-
const parsedBody = parsedOutput.body;
|
|
698
|
-
return throwDefaultError({
|
|
699
|
-
output,
|
|
700
|
-
parsedBody,
|
|
701
|
-
errorCode,
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
};
|
|
705
|
-
const de_CreateWorkflowCommand = async (output, context) => {
|
|
706
|
-
if (output.statusCode >= 300) {
|
|
707
|
-
return de_CreateWorkflowCommandError(output, context);
|
|
708
|
-
}
|
|
709
|
-
const data = await parseBody(output.body, context);
|
|
710
|
-
let contents = {};
|
|
711
|
-
contents = (0, smithy_client_1._json)(data);
|
|
712
|
-
const response = {
|
|
713
|
-
$metadata: deserializeMetadata(output),
|
|
714
|
-
...contents,
|
|
715
|
-
};
|
|
716
|
-
return response;
|
|
717
|
-
};
|
|
718
|
-
exports.de_CreateWorkflowCommand = de_CreateWorkflowCommand;
|
|
719
|
-
const de_CreateWorkflowCommandError = async (output, context) => {
|
|
720
|
-
const parsedOutput = {
|
|
721
|
-
...output,
|
|
722
|
-
body: await parseErrorBody(output.body, context),
|
|
723
|
-
};
|
|
724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
725
|
-
switch (errorCode) {
|
|
726
|
-
case "AccessDeniedException":
|
|
727
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
728
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
729
|
-
case "InternalServiceError":
|
|
730
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
731
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
732
|
-
case "InvalidRequestException":
|
|
733
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
734
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ResourceExistsException":
|
|
736
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
737
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ServiceUnavailableException":
|
|
739
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
740
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ThrottlingException":
|
|
742
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
743
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
744
|
-
default:
|
|
745
|
-
const parsedBody = parsedOutput.body;
|
|
746
|
-
return throwDefaultError({
|
|
747
|
-
output,
|
|
748
|
-
parsedBody,
|
|
749
|
-
errorCode,
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
|
-
const de_DeleteAccessCommand = async (output, context) => {
|
|
754
|
-
if (output.statusCode >= 300) {
|
|
755
|
-
return de_DeleteAccessCommandError(output, context);
|
|
756
|
-
}
|
|
757
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
758
|
-
const response = {
|
|
759
|
-
$metadata: deserializeMetadata(output),
|
|
760
|
-
};
|
|
761
|
-
return response;
|
|
762
|
-
};
|
|
763
|
-
exports.de_DeleteAccessCommand = de_DeleteAccessCommand;
|
|
764
|
-
const de_DeleteAccessCommandError = async (output, context) => {
|
|
765
|
-
const parsedOutput = {
|
|
766
|
-
...output,
|
|
767
|
-
body: await parseErrorBody(output.body, context),
|
|
768
|
-
};
|
|
769
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
|
-
switch (errorCode) {
|
|
771
|
-
case "InternalServiceError":
|
|
772
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
773
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
774
|
-
case "InvalidRequestException":
|
|
775
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
776
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
777
|
-
case "ResourceNotFoundException":
|
|
778
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
779
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
780
|
-
case "ServiceUnavailableException":
|
|
781
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
782
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
783
|
-
default:
|
|
784
|
-
const parsedBody = parsedOutput.body;
|
|
785
|
-
return throwDefaultError({
|
|
786
|
-
output,
|
|
787
|
-
parsedBody,
|
|
788
|
-
errorCode,
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
};
|
|
792
|
-
const de_DeleteAgreementCommand = async (output, context) => {
|
|
793
|
-
if (output.statusCode >= 300) {
|
|
794
|
-
return de_DeleteAgreementCommandError(output, context);
|
|
795
|
-
}
|
|
796
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
797
|
-
const response = {
|
|
798
|
-
$metadata: deserializeMetadata(output),
|
|
799
|
-
};
|
|
800
|
-
return response;
|
|
801
|
-
};
|
|
802
|
-
exports.de_DeleteAgreementCommand = de_DeleteAgreementCommand;
|
|
803
|
-
const de_DeleteAgreementCommandError = async (output, context) => {
|
|
804
|
-
const parsedOutput = {
|
|
805
|
-
...output,
|
|
806
|
-
body: await parseErrorBody(output.body, context),
|
|
807
|
-
};
|
|
808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
|
-
switch (errorCode) {
|
|
810
|
-
case "InternalServiceError":
|
|
811
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
812
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
813
|
-
case "InvalidRequestException":
|
|
814
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
815
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
816
|
-
case "ResourceNotFoundException":
|
|
817
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
818
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
819
|
-
case "ServiceUnavailableException":
|
|
820
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
821
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
822
|
-
default:
|
|
823
|
-
const parsedBody = parsedOutput.body;
|
|
824
|
-
return throwDefaultError({
|
|
825
|
-
output,
|
|
826
|
-
parsedBody,
|
|
827
|
-
errorCode,
|
|
828
|
-
});
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
|
-
const de_DeleteCertificateCommand = async (output, context) => {
|
|
832
|
-
if (output.statusCode >= 300) {
|
|
833
|
-
return de_DeleteCertificateCommandError(output, context);
|
|
834
|
-
}
|
|
835
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
836
|
-
const response = {
|
|
837
|
-
$metadata: deserializeMetadata(output),
|
|
838
|
-
};
|
|
839
|
-
return response;
|
|
840
|
-
};
|
|
841
|
-
exports.de_DeleteCertificateCommand = de_DeleteCertificateCommand;
|
|
842
|
-
const de_DeleteCertificateCommandError = async (output, context) => {
|
|
843
|
-
const parsedOutput = {
|
|
844
|
-
...output,
|
|
845
|
-
body: await parseErrorBody(output.body, context),
|
|
846
|
-
};
|
|
847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
switch (errorCode) {
|
|
849
|
-
case "InternalServiceError":
|
|
850
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
851
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
852
|
-
case "InvalidRequestException":
|
|
853
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
854
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ResourceNotFoundException":
|
|
856
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
857
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ServiceUnavailableException":
|
|
859
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
860
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
return throwDefaultError({
|
|
864
|
-
output,
|
|
865
|
-
parsedBody,
|
|
866
|
-
errorCode,
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
};
|
|
870
|
-
const de_DeleteConnectorCommand = async (output, context) => {
|
|
871
|
-
if (output.statusCode >= 300) {
|
|
872
|
-
return de_DeleteConnectorCommandError(output, context);
|
|
873
|
-
}
|
|
874
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
875
|
-
const response = {
|
|
876
|
-
$metadata: deserializeMetadata(output),
|
|
877
|
-
};
|
|
878
|
-
return response;
|
|
879
|
-
};
|
|
880
|
-
exports.de_DeleteConnectorCommand = de_DeleteConnectorCommand;
|
|
881
|
-
const de_DeleteConnectorCommandError = async (output, context) => {
|
|
882
|
-
const parsedOutput = {
|
|
883
|
-
...output,
|
|
884
|
-
body: await parseErrorBody(output.body, context),
|
|
885
|
-
};
|
|
886
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
887
|
-
switch (errorCode) {
|
|
888
|
-
case "InternalServiceError":
|
|
889
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
890
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
891
|
-
case "InvalidRequestException":
|
|
892
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
893
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
894
|
-
case "ResourceNotFoundException":
|
|
895
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
896
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
897
|
-
case "ServiceUnavailableException":
|
|
898
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
899
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
900
|
-
default:
|
|
901
|
-
const parsedBody = parsedOutput.body;
|
|
902
|
-
return throwDefaultError({
|
|
903
|
-
output,
|
|
904
|
-
parsedBody,
|
|
905
|
-
errorCode,
|
|
906
|
-
});
|
|
907
|
-
}
|
|
908
|
-
};
|
|
909
|
-
const de_DeleteHostKeyCommand = async (output, context) => {
|
|
910
|
-
if (output.statusCode >= 300) {
|
|
911
|
-
return de_DeleteHostKeyCommandError(output, context);
|
|
912
|
-
}
|
|
913
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
914
|
-
const response = {
|
|
915
|
-
$metadata: deserializeMetadata(output),
|
|
916
|
-
};
|
|
917
|
-
return response;
|
|
918
|
-
};
|
|
919
|
-
exports.de_DeleteHostKeyCommand = de_DeleteHostKeyCommand;
|
|
920
|
-
const de_DeleteHostKeyCommandError = async (output, context) => {
|
|
921
|
-
const parsedOutput = {
|
|
922
|
-
...output,
|
|
923
|
-
body: await parseErrorBody(output.body, context),
|
|
924
|
-
};
|
|
925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
|
-
switch (errorCode) {
|
|
927
|
-
case "InternalServiceError":
|
|
928
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
929
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
930
|
-
case "InvalidRequestException":
|
|
931
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
932
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ResourceNotFoundException":
|
|
934
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
935
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ServiceUnavailableException":
|
|
937
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
938
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
939
|
-
case "ThrottlingException":
|
|
940
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
941
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
942
|
-
default:
|
|
943
|
-
const parsedBody = parsedOutput.body;
|
|
944
|
-
return throwDefaultError({
|
|
945
|
-
output,
|
|
946
|
-
parsedBody,
|
|
947
|
-
errorCode,
|
|
948
|
-
});
|
|
949
|
-
}
|
|
950
|
-
};
|
|
951
|
-
const de_DeleteProfileCommand = async (output, context) => {
|
|
952
|
-
if (output.statusCode >= 300) {
|
|
953
|
-
return de_DeleteProfileCommandError(output, context);
|
|
954
|
-
}
|
|
955
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
956
|
-
const response = {
|
|
957
|
-
$metadata: deserializeMetadata(output),
|
|
958
|
-
};
|
|
959
|
-
return response;
|
|
960
|
-
};
|
|
961
|
-
exports.de_DeleteProfileCommand = de_DeleteProfileCommand;
|
|
962
|
-
const de_DeleteProfileCommandError = async (output, context) => {
|
|
963
|
-
const parsedOutput = {
|
|
964
|
-
...output,
|
|
965
|
-
body: await parseErrorBody(output.body, context),
|
|
966
|
-
};
|
|
967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
-
switch (errorCode) {
|
|
969
|
-
case "InternalServiceError":
|
|
970
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
971
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
972
|
-
case "InvalidRequestException":
|
|
973
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
974
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ResourceNotFoundException":
|
|
976
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ServiceUnavailableException":
|
|
979
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
980
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
981
|
-
default:
|
|
982
|
-
const parsedBody = parsedOutput.body;
|
|
983
|
-
return throwDefaultError({
|
|
984
|
-
output,
|
|
985
|
-
parsedBody,
|
|
986
|
-
errorCode,
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
|
-
};
|
|
990
|
-
const de_DeleteServerCommand = async (output, context) => {
|
|
991
|
-
if (output.statusCode >= 300) {
|
|
992
|
-
return de_DeleteServerCommandError(output, context);
|
|
993
|
-
}
|
|
994
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
995
|
-
const response = {
|
|
996
|
-
$metadata: deserializeMetadata(output),
|
|
997
|
-
};
|
|
998
|
-
return response;
|
|
999
|
-
};
|
|
1000
|
-
exports.de_DeleteServerCommand = de_DeleteServerCommand;
|
|
1001
|
-
const de_DeleteServerCommandError = async (output, context) => {
|
|
1002
|
-
const parsedOutput = {
|
|
1003
|
-
...output,
|
|
1004
|
-
body: await parseErrorBody(output.body, context),
|
|
1005
|
-
};
|
|
1006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
|
-
switch (errorCode) {
|
|
1008
|
-
case "AccessDeniedException":
|
|
1009
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
1010
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "InternalServiceError":
|
|
1012
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1013
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1014
|
-
case "InvalidRequestException":
|
|
1015
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1016
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "ResourceNotFoundException":
|
|
1018
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1019
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "ServiceUnavailableException":
|
|
1021
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1022
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1023
|
-
default:
|
|
1024
|
-
const parsedBody = parsedOutput.body;
|
|
1025
|
-
return throwDefaultError({
|
|
1026
|
-
output,
|
|
1027
|
-
parsedBody,
|
|
1028
|
-
errorCode,
|
|
1029
|
-
});
|
|
1030
|
-
}
|
|
1031
|
-
};
|
|
1032
|
-
const de_DeleteSshPublicKeyCommand = async (output, context) => {
|
|
1033
|
-
if (output.statusCode >= 300) {
|
|
1034
|
-
return de_DeleteSshPublicKeyCommandError(output, context);
|
|
1035
|
-
}
|
|
1036
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1037
|
-
const response = {
|
|
1038
|
-
$metadata: deserializeMetadata(output),
|
|
1039
|
-
};
|
|
1040
|
-
return response;
|
|
1041
|
-
};
|
|
1042
|
-
exports.de_DeleteSshPublicKeyCommand = de_DeleteSshPublicKeyCommand;
|
|
1043
|
-
const de_DeleteSshPublicKeyCommandError = async (output, context) => {
|
|
1044
|
-
const parsedOutput = {
|
|
1045
|
-
...output,
|
|
1046
|
-
body: await parseErrorBody(output.body, context),
|
|
1047
|
-
};
|
|
1048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1049
|
-
switch (errorCode) {
|
|
1050
|
-
case "InternalServiceError":
|
|
1051
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1052
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1053
|
-
case "InvalidRequestException":
|
|
1054
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1055
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ResourceNotFoundException":
|
|
1057
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1058
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ServiceUnavailableException":
|
|
1060
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1061
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "ThrottlingException":
|
|
1063
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
1064
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1065
|
-
default:
|
|
1066
|
-
const parsedBody = parsedOutput.body;
|
|
1067
|
-
return throwDefaultError({
|
|
1068
|
-
output,
|
|
1069
|
-
parsedBody,
|
|
1070
|
-
errorCode,
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
};
|
|
1074
|
-
const de_DeleteUserCommand = async (output, context) => {
|
|
1075
|
-
if (output.statusCode >= 300) {
|
|
1076
|
-
return de_DeleteUserCommandError(output, context);
|
|
1077
|
-
}
|
|
1078
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1079
|
-
const response = {
|
|
1080
|
-
$metadata: deserializeMetadata(output),
|
|
1081
|
-
};
|
|
1082
|
-
return response;
|
|
1083
|
-
};
|
|
1084
|
-
exports.de_DeleteUserCommand = de_DeleteUserCommand;
|
|
1085
|
-
const de_DeleteUserCommandError = async (output, context) => {
|
|
1086
|
-
const parsedOutput = {
|
|
1087
|
-
...output,
|
|
1088
|
-
body: await parseErrorBody(output.body, context),
|
|
1089
|
-
};
|
|
1090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
-
switch (errorCode) {
|
|
1092
|
-
case "InternalServiceError":
|
|
1093
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1094
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1095
|
-
case "InvalidRequestException":
|
|
1096
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1097
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ResourceNotFoundException":
|
|
1099
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ServiceUnavailableException":
|
|
1102
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1103
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1104
|
-
default:
|
|
1105
|
-
const parsedBody = parsedOutput.body;
|
|
1106
|
-
return throwDefaultError({
|
|
1107
|
-
output,
|
|
1108
|
-
parsedBody,
|
|
1109
|
-
errorCode,
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
const de_DeleteWorkflowCommand = async (output, context) => {
|
|
1114
|
-
if (output.statusCode >= 300) {
|
|
1115
|
-
return de_DeleteWorkflowCommandError(output, context);
|
|
1116
|
-
}
|
|
1117
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1118
|
-
const response = {
|
|
1119
|
-
$metadata: deserializeMetadata(output),
|
|
1120
|
-
};
|
|
1121
|
-
return response;
|
|
1122
|
-
};
|
|
1123
|
-
exports.de_DeleteWorkflowCommand = de_DeleteWorkflowCommand;
|
|
1124
|
-
const de_DeleteWorkflowCommandError = async (output, context) => {
|
|
1125
|
-
const parsedOutput = {
|
|
1126
|
-
...output,
|
|
1127
|
-
body: await parseErrorBody(output.body, context),
|
|
1128
|
-
};
|
|
1129
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
|
-
switch (errorCode) {
|
|
1131
|
-
case "AccessDeniedException":
|
|
1132
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
1133
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1134
|
-
case "InternalServiceError":
|
|
1135
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1136
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1137
|
-
case "InvalidRequestException":
|
|
1138
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1139
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "ResourceNotFoundException":
|
|
1141
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1142
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "ServiceUnavailableException":
|
|
1144
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1145
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1146
|
-
default:
|
|
1147
|
-
const parsedBody = parsedOutput.body;
|
|
1148
|
-
return throwDefaultError({
|
|
1149
|
-
output,
|
|
1150
|
-
parsedBody,
|
|
1151
|
-
errorCode,
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
};
|
|
1155
|
-
const de_DescribeAccessCommand = async (output, context) => {
|
|
1156
|
-
if (output.statusCode >= 300) {
|
|
1157
|
-
return de_DescribeAccessCommandError(output, context);
|
|
1158
|
-
}
|
|
1159
|
-
const data = await parseBody(output.body, context);
|
|
1160
|
-
let contents = {};
|
|
1161
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1162
|
-
const response = {
|
|
1163
|
-
$metadata: deserializeMetadata(output),
|
|
1164
|
-
...contents,
|
|
1165
|
-
};
|
|
1166
|
-
return response;
|
|
1167
|
-
};
|
|
1168
|
-
exports.de_DescribeAccessCommand = de_DescribeAccessCommand;
|
|
1169
|
-
const de_DescribeAccessCommandError = async (output, context) => {
|
|
1170
|
-
const parsedOutput = {
|
|
1171
|
-
...output,
|
|
1172
|
-
body: await parseErrorBody(output.body, context),
|
|
1173
|
-
};
|
|
1174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
|
-
switch (errorCode) {
|
|
1176
|
-
case "InternalServiceError":
|
|
1177
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1178
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1179
|
-
case "InvalidRequestException":
|
|
1180
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1181
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ResourceNotFoundException":
|
|
1183
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1184
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ServiceUnavailableException":
|
|
1186
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1187
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1188
|
-
default:
|
|
1189
|
-
const parsedBody = parsedOutput.body;
|
|
1190
|
-
return throwDefaultError({
|
|
1191
|
-
output,
|
|
1192
|
-
parsedBody,
|
|
1193
|
-
errorCode,
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
|
-
};
|
|
1197
|
-
const de_DescribeAgreementCommand = async (output, context) => {
|
|
1198
|
-
if (output.statusCode >= 300) {
|
|
1199
|
-
return de_DescribeAgreementCommandError(output, context);
|
|
1200
|
-
}
|
|
1201
|
-
const data = await parseBody(output.body, context);
|
|
1202
|
-
let contents = {};
|
|
1203
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1204
|
-
const response = {
|
|
1205
|
-
$metadata: deserializeMetadata(output),
|
|
1206
|
-
...contents,
|
|
1207
|
-
};
|
|
1208
|
-
return response;
|
|
1209
|
-
};
|
|
1210
|
-
exports.de_DescribeAgreementCommand = de_DescribeAgreementCommand;
|
|
1211
|
-
const de_DescribeAgreementCommandError = async (output, context) => {
|
|
1212
|
-
const parsedOutput = {
|
|
1213
|
-
...output,
|
|
1214
|
-
body: await parseErrorBody(output.body, context),
|
|
1215
|
-
};
|
|
1216
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
|
-
switch (errorCode) {
|
|
1218
|
-
case "InternalServiceError":
|
|
1219
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1220
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1221
|
-
case "InvalidRequestException":
|
|
1222
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1223
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "ResourceNotFoundException":
|
|
1225
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1226
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "ServiceUnavailableException":
|
|
1228
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1229
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1230
|
-
default:
|
|
1231
|
-
const parsedBody = parsedOutput.body;
|
|
1232
|
-
return throwDefaultError({
|
|
1233
|
-
output,
|
|
1234
|
-
parsedBody,
|
|
1235
|
-
errorCode,
|
|
1236
|
-
});
|
|
1237
|
-
}
|
|
1238
|
-
};
|
|
1239
|
-
const de_DescribeCertificateCommand = async (output, context) => {
|
|
1240
|
-
if (output.statusCode >= 300) {
|
|
1241
|
-
return de_DescribeCertificateCommandError(output, context);
|
|
1242
|
-
}
|
|
1243
|
-
const data = await parseBody(output.body, context);
|
|
1244
|
-
let contents = {};
|
|
1245
|
-
contents = de_DescribeCertificateResponse(data, context);
|
|
1246
|
-
const response = {
|
|
1247
|
-
$metadata: deserializeMetadata(output),
|
|
1248
|
-
...contents,
|
|
1249
|
-
};
|
|
1250
|
-
return response;
|
|
1251
|
-
};
|
|
1252
|
-
exports.de_DescribeCertificateCommand = de_DescribeCertificateCommand;
|
|
1253
|
-
const de_DescribeCertificateCommandError = async (output, context) => {
|
|
1254
|
-
const parsedOutput = {
|
|
1255
|
-
...output,
|
|
1256
|
-
body: await parseErrorBody(output.body, context),
|
|
1257
|
-
};
|
|
1258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1259
|
-
switch (errorCode) {
|
|
1260
|
-
case "InternalServiceError":
|
|
1261
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1262
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1263
|
-
case "InvalidRequestException":
|
|
1264
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1265
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "ResourceNotFoundException":
|
|
1267
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1268
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "ServiceUnavailableException":
|
|
1270
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1271
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1272
|
-
default:
|
|
1273
|
-
const parsedBody = parsedOutput.body;
|
|
1274
|
-
return throwDefaultError({
|
|
1275
|
-
output,
|
|
1276
|
-
parsedBody,
|
|
1277
|
-
errorCode,
|
|
1278
|
-
});
|
|
1279
|
-
}
|
|
1280
|
-
};
|
|
1281
|
-
const de_DescribeConnectorCommand = async (output, context) => {
|
|
1282
|
-
if (output.statusCode >= 300) {
|
|
1283
|
-
return de_DescribeConnectorCommandError(output, context);
|
|
1284
|
-
}
|
|
1285
|
-
const data = await parseBody(output.body, context);
|
|
1286
|
-
let contents = {};
|
|
1287
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1288
|
-
const response = {
|
|
1289
|
-
$metadata: deserializeMetadata(output),
|
|
1290
|
-
...contents,
|
|
1291
|
-
};
|
|
1292
|
-
return response;
|
|
1293
|
-
};
|
|
1294
|
-
exports.de_DescribeConnectorCommand = de_DescribeConnectorCommand;
|
|
1295
|
-
const de_DescribeConnectorCommandError = async (output, context) => {
|
|
1296
|
-
const parsedOutput = {
|
|
1297
|
-
...output,
|
|
1298
|
-
body: await parseErrorBody(output.body, context),
|
|
1299
|
-
};
|
|
1300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
|
-
switch (errorCode) {
|
|
1302
|
-
case "InternalServiceError":
|
|
1303
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1304
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1305
|
-
case "InvalidRequestException":
|
|
1306
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1307
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ResourceNotFoundException":
|
|
1309
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1310
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ServiceUnavailableException":
|
|
1312
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1313
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1314
|
-
default:
|
|
1315
|
-
const parsedBody = parsedOutput.body;
|
|
1316
|
-
return throwDefaultError({
|
|
1317
|
-
output,
|
|
1318
|
-
parsedBody,
|
|
1319
|
-
errorCode,
|
|
1320
|
-
});
|
|
1321
|
-
}
|
|
1322
|
-
};
|
|
1323
|
-
const de_DescribeExecutionCommand = async (output, context) => {
|
|
1324
|
-
if (output.statusCode >= 300) {
|
|
1325
|
-
return de_DescribeExecutionCommandError(output, context);
|
|
1326
|
-
}
|
|
1327
|
-
const data = await parseBody(output.body, context);
|
|
1328
|
-
let contents = {};
|
|
1329
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1330
|
-
const response = {
|
|
1331
|
-
$metadata: deserializeMetadata(output),
|
|
1332
|
-
...contents,
|
|
1333
|
-
};
|
|
1334
|
-
return response;
|
|
1335
|
-
};
|
|
1336
|
-
exports.de_DescribeExecutionCommand = de_DescribeExecutionCommand;
|
|
1337
|
-
const de_DescribeExecutionCommandError = async (output, context) => {
|
|
1338
|
-
const parsedOutput = {
|
|
1339
|
-
...output,
|
|
1340
|
-
body: await parseErrorBody(output.body, context),
|
|
1341
|
-
};
|
|
1342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1343
|
-
switch (errorCode) {
|
|
1344
|
-
case "InternalServiceError":
|
|
1345
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1346
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1347
|
-
case "InvalidRequestException":
|
|
1348
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1349
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "ResourceNotFoundException":
|
|
1351
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1352
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1353
|
-
case "ServiceUnavailableException":
|
|
1354
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1355
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1356
|
-
default:
|
|
1357
|
-
const parsedBody = parsedOutput.body;
|
|
1358
|
-
return throwDefaultError({
|
|
1359
|
-
output,
|
|
1360
|
-
parsedBody,
|
|
1361
|
-
errorCode,
|
|
1362
|
-
});
|
|
1363
|
-
}
|
|
1364
|
-
};
|
|
1365
|
-
const de_DescribeHostKeyCommand = async (output, context) => {
|
|
1366
|
-
if (output.statusCode >= 300) {
|
|
1367
|
-
return de_DescribeHostKeyCommandError(output, context);
|
|
1368
|
-
}
|
|
1369
|
-
const data = await parseBody(output.body, context);
|
|
1370
|
-
let contents = {};
|
|
1371
|
-
contents = de_DescribeHostKeyResponse(data, context);
|
|
1372
|
-
const response = {
|
|
1373
|
-
$metadata: deserializeMetadata(output),
|
|
1374
|
-
...contents,
|
|
1375
|
-
};
|
|
1376
|
-
return response;
|
|
1377
|
-
};
|
|
1378
|
-
exports.de_DescribeHostKeyCommand = de_DescribeHostKeyCommand;
|
|
1379
|
-
const de_DescribeHostKeyCommandError = async (output, context) => {
|
|
1380
|
-
const parsedOutput = {
|
|
1381
|
-
...output,
|
|
1382
|
-
body: await parseErrorBody(output.body, context),
|
|
1383
|
-
};
|
|
1384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1385
|
-
switch (errorCode) {
|
|
1386
|
-
case "InternalServiceError":
|
|
1387
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1388
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1389
|
-
case "InvalidRequestException":
|
|
1390
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1391
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "ResourceNotFoundException":
|
|
1393
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1394
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "ServiceUnavailableException":
|
|
1396
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1397
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1398
|
-
default:
|
|
1399
|
-
const parsedBody = parsedOutput.body;
|
|
1400
|
-
return throwDefaultError({
|
|
1401
|
-
output,
|
|
1402
|
-
parsedBody,
|
|
1403
|
-
errorCode,
|
|
1404
|
-
});
|
|
1405
|
-
}
|
|
1406
|
-
};
|
|
1407
|
-
const de_DescribeProfileCommand = async (output, context) => {
|
|
1408
|
-
if (output.statusCode >= 300) {
|
|
1409
|
-
return de_DescribeProfileCommandError(output, context);
|
|
1410
|
-
}
|
|
1411
|
-
const data = await parseBody(output.body, context);
|
|
1412
|
-
let contents = {};
|
|
1413
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1414
|
-
const response = {
|
|
1415
|
-
$metadata: deserializeMetadata(output),
|
|
1416
|
-
...contents,
|
|
1417
|
-
};
|
|
1418
|
-
return response;
|
|
1419
|
-
};
|
|
1420
|
-
exports.de_DescribeProfileCommand = de_DescribeProfileCommand;
|
|
1421
|
-
const de_DescribeProfileCommandError = async (output, context) => {
|
|
1422
|
-
const parsedOutput = {
|
|
1423
|
-
...output,
|
|
1424
|
-
body: await parseErrorBody(output.body, context),
|
|
1425
|
-
};
|
|
1426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1427
|
-
switch (errorCode) {
|
|
1428
|
-
case "InternalServiceError":
|
|
1429
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1430
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1431
|
-
case "InvalidRequestException":
|
|
1432
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1433
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "ResourceNotFoundException":
|
|
1435
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1436
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ServiceUnavailableException":
|
|
1438
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1439
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1440
|
-
default:
|
|
1441
|
-
const parsedBody = parsedOutput.body;
|
|
1442
|
-
return throwDefaultError({
|
|
1443
|
-
output,
|
|
1444
|
-
parsedBody,
|
|
1445
|
-
errorCode,
|
|
1446
|
-
});
|
|
1447
|
-
}
|
|
1448
|
-
};
|
|
1449
|
-
const de_DescribeSecurityPolicyCommand = async (output, context) => {
|
|
1450
|
-
if (output.statusCode >= 300) {
|
|
1451
|
-
return de_DescribeSecurityPolicyCommandError(output, context);
|
|
1452
|
-
}
|
|
1453
|
-
const data = await parseBody(output.body, context);
|
|
1454
|
-
let contents = {};
|
|
1455
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1456
|
-
const response = {
|
|
1457
|
-
$metadata: deserializeMetadata(output),
|
|
1458
|
-
...contents,
|
|
1459
|
-
};
|
|
1460
|
-
return response;
|
|
1461
|
-
};
|
|
1462
|
-
exports.de_DescribeSecurityPolicyCommand = de_DescribeSecurityPolicyCommand;
|
|
1463
|
-
const de_DescribeSecurityPolicyCommandError = async (output, context) => {
|
|
1464
|
-
const parsedOutput = {
|
|
1465
|
-
...output,
|
|
1466
|
-
body: await parseErrorBody(output.body, context),
|
|
1467
|
-
};
|
|
1468
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
|
-
switch (errorCode) {
|
|
1470
|
-
case "InternalServiceError":
|
|
1471
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1472
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1473
|
-
case "InvalidRequestException":
|
|
1474
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1475
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "ResourceNotFoundException":
|
|
1477
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1478
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "ServiceUnavailableException":
|
|
1480
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1481
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1482
|
-
default:
|
|
1483
|
-
const parsedBody = parsedOutput.body;
|
|
1484
|
-
return throwDefaultError({
|
|
1485
|
-
output,
|
|
1486
|
-
parsedBody,
|
|
1487
|
-
errorCode,
|
|
1488
|
-
});
|
|
1489
|
-
}
|
|
1490
|
-
};
|
|
1491
|
-
const de_DescribeServerCommand = async (output, context) => {
|
|
1492
|
-
if (output.statusCode >= 300) {
|
|
1493
|
-
return de_DescribeServerCommandError(output, context);
|
|
1494
|
-
}
|
|
1495
|
-
const data = await parseBody(output.body, context);
|
|
1496
|
-
let contents = {};
|
|
1497
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1498
|
-
const response = {
|
|
1499
|
-
$metadata: deserializeMetadata(output),
|
|
1500
|
-
...contents,
|
|
1501
|
-
};
|
|
1502
|
-
return response;
|
|
1503
|
-
};
|
|
1504
|
-
exports.de_DescribeServerCommand = de_DescribeServerCommand;
|
|
1505
|
-
const de_DescribeServerCommandError = async (output, context) => {
|
|
1506
|
-
const parsedOutput = {
|
|
1507
|
-
...output,
|
|
1508
|
-
body: await parseErrorBody(output.body, context),
|
|
1509
|
-
};
|
|
1510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
|
-
switch (errorCode) {
|
|
1512
|
-
case "InternalServiceError":
|
|
1513
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1514
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1515
|
-
case "InvalidRequestException":
|
|
1516
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1517
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "ResourceNotFoundException":
|
|
1519
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1520
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "ServiceUnavailableException":
|
|
1522
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1523
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1524
|
-
default:
|
|
1525
|
-
const parsedBody = parsedOutput.body;
|
|
1526
|
-
return throwDefaultError({
|
|
1527
|
-
output,
|
|
1528
|
-
parsedBody,
|
|
1529
|
-
errorCode,
|
|
1530
|
-
});
|
|
1531
|
-
}
|
|
1532
|
-
};
|
|
1533
|
-
const de_DescribeUserCommand = async (output, context) => {
|
|
1534
|
-
if (output.statusCode >= 300) {
|
|
1535
|
-
return de_DescribeUserCommandError(output, context);
|
|
1536
|
-
}
|
|
1537
|
-
const data = await parseBody(output.body, context);
|
|
1538
|
-
let contents = {};
|
|
1539
|
-
contents = de_DescribeUserResponse(data, context);
|
|
1540
|
-
const response = {
|
|
1541
|
-
$metadata: deserializeMetadata(output),
|
|
1542
|
-
...contents,
|
|
1543
|
-
};
|
|
1544
|
-
return response;
|
|
1545
|
-
};
|
|
1546
|
-
exports.de_DescribeUserCommand = de_DescribeUserCommand;
|
|
1547
|
-
const de_DescribeUserCommandError = async (output, context) => {
|
|
1548
|
-
const parsedOutput = {
|
|
1549
|
-
...output,
|
|
1550
|
-
body: await parseErrorBody(output.body, context),
|
|
1551
|
-
};
|
|
1552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
|
-
switch (errorCode) {
|
|
1554
|
-
case "InternalServiceError":
|
|
1555
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1556
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1557
|
-
case "InvalidRequestException":
|
|
1558
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1559
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ResourceNotFoundException":
|
|
1561
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1562
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "ServiceUnavailableException":
|
|
1564
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1565
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1566
|
-
default:
|
|
1567
|
-
const parsedBody = parsedOutput.body;
|
|
1568
|
-
return throwDefaultError({
|
|
1569
|
-
output,
|
|
1570
|
-
parsedBody,
|
|
1571
|
-
errorCode,
|
|
1572
|
-
});
|
|
1573
|
-
}
|
|
1574
|
-
};
|
|
1575
|
-
const de_DescribeWorkflowCommand = async (output, context) => {
|
|
1576
|
-
if (output.statusCode >= 300) {
|
|
1577
|
-
return de_DescribeWorkflowCommandError(output, context);
|
|
1578
|
-
}
|
|
1579
|
-
const data = await parseBody(output.body, context);
|
|
1580
|
-
let contents = {};
|
|
1581
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1582
|
-
const response = {
|
|
1583
|
-
$metadata: deserializeMetadata(output),
|
|
1584
|
-
...contents,
|
|
1585
|
-
};
|
|
1586
|
-
return response;
|
|
1587
|
-
};
|
|
1588
|
-
exports.de_DescribeWorkflowCommand = de_DescribeWorkflowCommand;
|
|
1589
|
-
const de_DescribeWorkflowCommandError = async (output, context) => {
|
|
1590
|
-
const parsedOutput = {
|
|
1591
|
-
...output,
|
|
1592
|
-
body: await parseErrorBody(output.body, context),
|
|
1593
|
-
};
|
|
1594
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1595
|
-
switch (errorCode) {
|
|
1596
|
-
case "InternalServiceError":
|
|
1597
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1598
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1599
|
-
case "InvalidRequestException":
|
|
1600
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1601
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1602
|
-
case "ResourceNotFoundException":
|
|
1603
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1604
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1605
|
-
case "ServiceUnavailableException":
|
|
1606
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1607
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1608
|
-
default:
|
|
1609
|
-
const parsedBody = parsedOutput.body;
|
|
1610
|
-
return throwDefaultError({
|
|
1611
|
-
output,
|
|
1612
|
-
parsedBody,
|
|
1613
|
-
errorCode,
|
|
1614
|
-
});
|
|
1615
|
-
}
|
|
1616
|
-
};
|
|
1617
|
-
const de_ImportCertificateCommand = async (output, context) => {
|
|
1618
|
-
if (output.statusCode >= 300) {
|
|
1619
|
-
return de_ImportCertificateCommandError(output, context);
|
|
1620
|
-
}
|
|
1621
|
-
const data = await parseBody(output.body, context);
|
|
1622
|
-
let contents = {};
|
|
1623
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1624
|
-
const response = {
|
|
1625
|
-
$metadata: deserializeMetadata(output),
|
|
1626
|
-
...contents,
|
|
1627
|
-
};
|
|
1628
|
-
return response;
|
|
1629
|
-
};
|
|
1630
|
-
exports.de_ImportCertificateCommand = de_ImportCertificateCommand;
|
|
1631
|
-
const de_ImportCertificateCommandError = async (output, context) => {
|
|
1632
|
-
const parsedOutput = {
|
|
1633
|
-
...output,
|
|
1634
|
-
body: await parseErrorBody(output.body, context),
|
|
1635
|
-
};
|
|
1636
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1637
|
-
switch (errorCode) {
|
|
1638
|
-
case "InternalServiceError":
|
|
1639
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1640
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1641
|
-
case "InvalidRequestException":
|
|
1642
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1643
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "ResourceNotFoundException":
|
|
1645
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1646
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "ServiceUnavailableException":
|
|
1648
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1649
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1650
|
-
default:
|
|
1651
|
-
const parsedBody = parsedOutput.body;
|
|
1652
|
-
return throwDefaultError({
|
|
1653
|
-
output,
|
|
1654
|
-
parsedBody,
|
|
1655
|
-
errorCode,
|
|
1656
|
-
});
|
|
1657
|
-
}
|
|
1658
|
-
};
|
|
1659
|
-
const de_ImportHostKeyCommand = async (output, context) => {
|
|
1660
|
-
if (output.statusCode >= 300) {
|
|
1661
|
-
return de_ImportHostKeyCommandError(output, context);
|
|
1662
|
-
}
|
|
1663
|
-
const data = await parseBody(output.body, context);
|
|
1664
|
-
let contents = {};
|
|
1665
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1666
|
-
const response = {
|
|
1667
|
-
$metadata: deserializeMetadata(output),
|
|
1668
|
-
...contents,
|
|
1669
|
-
};
|
|
1670
|
-
return response;
|
|
1671
|
-
};
|
|
1672
|
-
exports.de_ImportHostKeyCommand = de_ImportHostKeyCommand;
|
|
1673
|
-
const de_ImportHostKeyCommandError = async (output, context) => {
|
|
1674
|
-
const parsedOutput = {
|
|
1675
|
-
...output,
|
|
1676
|
-
body: await parseErrorBody(output.body, context),
|
|
1677
|
-
};
|
|
1678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1679
|
-
switch (errorCode) {
|
|
1680
|
-
case "InternalServiceError":
|
|
1681
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1682
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1683
|
-
case "InvalidRequestException":
|
|
1684
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1685
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1686
|
-
case "ResourceExistsException":
|
|
1687
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
1688
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1689
|
-
case "ResourceNotFoundException":
|
|
1690
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1691
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "ServiceUnavailableException":
|
|
1693
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1694
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "ThrottlingException":
|
|
1696
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
1697
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1698
|
-
default:
|
|
1699
|
-
const parsedBody = parsedOutput.body;
|
|
1700
|
-
return throwDefaultError({
|
|
1701
|
-
output,
|
|
1702
|
-
parsedBody,
|
|
1703
|
-
errorCode,
|
|
1704
|
-
});
|
|
1705
|
-
}
|
|
1706
|
-
};
|
|
1707
|
-
const de_ImportSshPublicKeyCommand = async (output, context) => {
|
|
1708
|
-
if (output.statusCode >= 300) {
|
|
1709
|
-
return de_ImportSshPublicKeyCommandError(output, context);
|
|
1710
|
-
}
|
|
1711
|
-
const data = await parseBody(output.body, context);
|
|
1712
|
-
let contents = {};
|
|
1713
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1714
|
-
const response = {
|
|
1715
|
-
$metadata: deserializeMetadata(output),
|
|
1716
|
-
...contents,
|
|
1717
|
-
};
|
|
1718
|
-
return response;
|
|
1719
|
-
};
|
|
1720
|
-
exports.de_ImportSshPublicKeyCommand = de_ImportSshPublicKeyCommand;
|
|
1721
|
-
const de_ImportSshPublicKeyCommandError = async (output, context) => {
|
|
1722
|
-
const parsedOutput = {
|
|
1723
|
-
...output,
|
|
1724
|
-
body: await parseErrorBody(output.body, context),
|
|
1725
|
-
};
|
|
1726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
|
-
switch (errorCode) {
|
|
1728
|
-
case "InternalServiceError":
|
|
1729
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1730
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1731
|
-
case "InvalidRequestException":
|
|
1732
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1733
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "ResourceExistsException":
|
|
1735
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
1736
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1737
|
-
case "ResourceNotFoundException":
|
|
1738
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1739
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1740
|
-
case "ServiceUnavailableException":
|
|
1741
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1742
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1743
|
-
case "ThrottlingException":
|
|
1744
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
1745
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1746
|
-
default:
|
|
1747
|
-
const parsedBody = parsedOutput.body;
|
|
1748
|
-
return throwDefaultError({
|
|
1749
|
-
output,
|
|
1750
|
-
parsedBody,
|
|
1751
|
-
errorCode,
|
|
1752
|
-
});
|
|
1753
|
-
}
|
|
1754
|
-
};
|
|
1755
|
-
const de_ListAccessesCommand = async (output, context) => {
|
|
1756
|
-
if (output.statusCode >= 300) {
|
|
1757
|
-
return de_ListAccessesCommandError(output, context);
|
|
1758
|
-
}
|
|
1759
|
-
const data = await parseBody(output.body, context);
|
|
1760
|
-
let contents = {};
|
|
1761
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1762
|
-
const response = {
|
|
1763
|
-
$metadata: deserializeMetadata(output),
|
|
1764
|
-
...contents,
|
|
1765
|
-
};
|
|
1766
|
-
return response;
|
|
1767
|
-
};
|
|
1768
|
-
exports.de_ListAccessesCommand = de_ListAccessesCommand;
|
|
1769
|
-
const de_ListAccessesCommandError = async (output, context) => {
|
|
1770
|
-
const parsedOutput = {
|
|
1771
|
-
...output,
|
|
1772
|
-
body: await parseErrorBody(output.body, context),
|
|
1773
|
-
};
|
|
1774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1775
|
-
switch (errorCode) {
|
|
1776
|
-
case "InternalServiceError":
|
|
1777
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1778
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1779
|
-
case "InvalidNextTokenException":
|
|
1780
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1781
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "InvalidRequestException":
|
|
1783
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1784
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "ResourceNotFoundException":
|
|
1786
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1787
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "ServiceUnavailableException":
|
|
1789
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1790
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1791
|
-
default:
|
|
1792
|
-
const parsedBody = parsedOutput.body;
|
|
1793
|
-
return throwDefaultError({
|
|
1794
|
-
output,
|
|
1795
|
-
parsedBody,
|
|
1796
|
-
errorCode,
|
|
1797
|
-
});
|
|
1798
|
-
}
|
|
1799
|
-
};
|
|
1800
|
-
const de_ListAgreementsCommand = async (output, context) => {
|
|
1801
|
-
if (output.statusCode >= 300) {
|
|
1802
|
-
return de_ListAgreementsCommandError(output, context);
|
|
1803
|
-
}
|
|
1804
|
-
const data = await parseBody(output.body, context);
|
|
1805
|
-
let contents = {};
|
|
1806
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1807
|
-
const response = {
|
|
1808
|
-
$metadata: deserializeMetadata(output),
|
|
1809
|
-
...contents,
|
|
1810
|
-
};
|
|
1811
|
-
return response;
|
|
1812
|
-
};
|
|
1813
|
-
exports.de_ListAgreementsCommand = de_ListAgreementsCommand;
|
|
1814
|
-
const de_ListAgreementsCommandError = async (output, context) => {
|
|
1815
|
-
const parsedOutput = {
|
|
1816
|
-
...output,
|
|
1817
|
-
body: await parseErrorBody(output.body, context),
|
|
1818
|
-
};
|
|
1819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1820
|
-
switch (errorCode) {
|
|
1821
|
-
case "InternalServiceError":
|
|
1822
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1823
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1824
|
-
case "InvalidNextTokenException":
|
|
1825
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1826
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "InvalidRequestException":
|
|
1828
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1829
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1830
|
-
case "ResourceNotFoundException":
|
|
1831
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1832
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1833
|
-
case "ServiceUnavailableException":
|
|
1834
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1835
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1836
|
-
default:
|
|
1837
|
-
const parsedBody = parsedOutput.body;
|
|
1838
|
-
return throwDefaultError({
|
|
1839
|
-
output,
|
|
1840
|
-
parsedBody,
|
|
1841
|
-
errorCode,
|
|
1842
|
-
});
|
|
1843
|
-
}
|
|
1844
|
-
};
|
|
1845
|
-
const de_ListCertificatesCommand = async (output, context) => {
|
|
1846
|
-
if (output.statusCode >= 300) {
|
|
1847
|
-
return de_ListCertificatesCommandError(output, context);
|
|
1848
|
-
}
|
|
1849
|
-
const data = await parseBody(output.body, context);
|
|
1850
|
-
let contents = {};
|
|
1851
|
-
contents = de_ListCertificatesResponse(data, context);
|
|
1852
|
-
const response = {
|
|
1853
|
-
$metadata: deserializeMetadata(output),
|
|
1854
|
-
...contents,
|
|
1855
|
-
};
|
|
1856
|
-
return response;
|
|
1857
|
-
};
|
|
1858
|
-
exports.de_ListCertificatesCommand = de_ListCertificatesCommand;
|
|
1859
|
-
const de_ListCertificatesCommandError = async (output, context) => {
|
|
1860
|
-
const parsedOutput = {
|
|
1861
|
-
...output,
|
|
1862
|
-
body: await parseErrorBody(output.body, context),
|
|
1863
|
-
};
|
|
1864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
|
-
switch (errorCode) {
|
|
1866
|
-
case "InternalServiceError":
|
|
1867
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1868
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1869
|
-
case "InvalidNextTokenException":
|
|
1870
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1871
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "InvalidRequestException":
|
|
1873
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1874
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "ResourceNotFoundException":
|
|
1876
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1877
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "ServiceUnavailableException":
|
|
1879
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1880
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1881
|
-
default:
|
|
1882
|
-
const parsedBody = parsedOutput.body;
|
|
1883
|
-
return throwDefaultError({
|
|
1884
|
-
output,
|
|
1885
|
-
parsedBody,
|
|
1886
|
-
errorCode,
|
|
1887
|
-
});
|
|
1888
|
-
}
|
|
1889
|
-
};
|
|
1890
|
-
const de_ListConnectorsCommand = async (output, context) => {
|
|
1891
|
-
if (output.statusCode >= 300) {
|
|
1892
|
-
return de_ListConnectorsCommandError(output, context);
|
|
1893
|
-
}
|
|
1894
|
-
const data = await parseBody(output.body, context);
|
|
1895
|
-
let contents = {};
|
|
1896
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1897
|
-
const response = {
|
|
1898
|
-
$metadata: deserializeMetadata(output),
|
|
1899
|
-
...contents,
|
|
1900
|
-
};
|
|
1901
|
-
return response;
|
|
1902
|
-
};
|
|
1903
|
-
exports.de_ListConnectorsCommand = de_ListConnectorsCommand;
|
|
1904
|
-
const de_ListConnectorsCommandError = async (output, context) => {
|
|
1905
|
-
const parsedOutput = {
|
|
1906
|
-
...output,
|
|
1907
|
-
body: await parseErrorBody(output.body, context),
|
|
1908
|
-
};
|
|
1909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1910
|
-
switch (errorCode) {
|
|
1911
|
-
case "InternalServiceError":
|
|
1912
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1913
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1914
|
-
case "InvalidNextTokenException":
|
|
1915
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1916
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1917
|
-
case "InvalidRequestException":
|
|
1918
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1919
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1920
|
-
case "ResourceNotFoundException":
|
|
1921
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1922
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "ServiceUnavailableException":
|
|
1924
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1925
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1926
|
-
default:
|
|
1927
|
-
const parsedBody = parsedOutput.body;
|
|
1928
|
-
return throwDefaultError({
|
|
1929
|
-
output,
|
|
1930
|
-
parsedBody,
|
|
1931
|
-
errorCode,
|
|
1932
|
-
});
|
|
1933
|
-
}
|
|
1934
|
-
};
|
|
1935
|
-
const de_ListExecutionsCommand = async (output, context) => {
|
|
1936
|
-
if (output.statusCode >= 300) {
|
|
1937
|
-
return de_ListExecutionsCommandError(output, context);
|
|
1938
|
-
}
|
|
1939
|
-
const data = await parseBody(output.body, context);
|
|
1940
|
-
let contents = {};
|
|
1941
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1942
|
-
const response = {
|
|
1943
|
-
$metadata: deserializeMetadata(output),
|
|
1944
|
-
...contents,
|
|
1945
|
-
};
|
|
1946
|
-
return response;
|
|
1947
|
-
};
|
|
1948
|
-
exports.de_ListExecutionsCommand = de_ListExecutionsCommand;
|
|
1949
|
-
const de_ListExecutionsCommandError = async (output, context) => {
|
|
1950
|
-
const parsedOutput = {
|
|
1951
|
-
...output,
|
|
1952
|
-
body: await parseErrorBody(output.body, context),
|
|
1953
|
-
};
|
|
1954
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1955
|
-
switch (errorCode) {
|
|
1956
|
-
case "InternalServiceError":
|
|
1957
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1958
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1959
|
-
case "InvalidNextTokenException":
|
|
1960
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1961
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "InvalidRequestException":
|
|
1963
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1964
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1965
|
-
case "ResourceNotFoundException":
|
|
1966
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1967
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1968
|
-
case "ServiceUnavailableException":
|
|
1969
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1970
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1971
|
-
default:
|
|
1972
|
-
const parsedBody = parsedOutput.body;
|
|
1973
|
-
return throwDefaultError({
|
|
1974
|
-
output,
|
|
1975
|
-
parsedBody,
|
|
1976
|
-
errorCode,
|
|
1977
|
-
});
|
|
1978
|
-
}
|
|
1979
|
-
};
|
|
1980
|
-
const de_ListHostKeysCommand = async (output, context) => {
|
|
1981
|
-
if (output.statusCode >= 300) {
|
|
1982
|
-
return de_ListHostKeysCommandError(output, context);
|
|
1983
|
-
}
|
|
1984
|
-
const data = await parseBody(output.body, context);
|
|
1985
|
-
let contents = {};
|
|
1986
|
-
contents = de_ListHostKeysResponse(data, context);
|
|
1987
|
-
const response = {
|
|
1988
|
-
$metadata: deserializeMetadata(output),
|
|
1989
|
-
...contents,
|
|
1990
|
-
};
|
|
1991
|
-
return response;
|
|
1992
|
-
};
|
|
1993
|
-
exports.de_ListHostKeysCommand = de_ListHostKeysCommand;
|
|
1994
|
-
const de_ListHostKeysCommandError = async (output, context) => {
|
|
1995
|
-
const parsedOutput = {
|
|
1996
|
-
...output,
|
|
1997
|
-
body: await parseErrorBody(output.body, context),
|
|
1998
|
-
};
|
|
1999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2000
|
-
switch (errorCode) {
|
|
2001
|
-
case "InternalServiceError":
|
|
2002
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2003
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2004
|
-
case "InvalidNextTokenException":
|
|
2005
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2006
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2007
|
-
case "InvalidRequestException":
|
|
2008
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2009
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2010
|
-
case "ResourceNotFoundException":
|
|
2011
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2012
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2013
|
-
case "ServiceUnavailableException":
|
|
2014
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2015
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2016
|
-
default:
|
|
2017
|
-
const parsedBody = parsedOutput.body;
|
|
2018
|
-
return throwDefaultError({
|
|
2019
|
-
output,
|
|
2020
|
-
parsedBody,
|
|
2021
|
-
errorCode,
|
|
2022
|
-
});
|
|
2023
|
-
}
|
|
2024
|
-
};
|
|
2025
|
-
const de_ListProfilesCommand = async (output, context) => {
|
|
2026
|
-
if (output.statusCode >= 300) {
|
|
2027
|
-
return de_ListProfilesCommandError(output, context);
|
|
2028
|
-
}
|
|
2029
|
-
const data = await parseBody(output.body, context);
|
|
2030
|
-
let contents = {};
|
|
2031
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2032
|
-
const response = {
|
|
2033
|
-
$metadata: deserializeMetadata(output),
|
|
2034
|
-
...contents,
|
|
2035
|
-
};
|
|
2036
|
-
return response;
|
|
2037
|
-
};
|
|
2038
|
-
exports.de_ListProfilesCommand = de_ListProfilesCommand;
|
|
2039
|
-
const de_ListProfilesCommandError = async (output, context) => {
|
|
2040
|
-
const parsedOutput = {
|
|
2041
|
-
...output,
|
|
2042
|
-
body: await parseErrorBody(output.body, context),
|
|
2043
|
-
};
|
|
2044
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2045
|
-
switch (errorCode) {
|
|
2046
|
-
case "InternalServiceError":
|
|
2047
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2048
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2049
|
-
case "InvalidNextTokenException":
|
|
2050
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2051
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "InvalidRequestException":
|
|
2053
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2054
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "ResourceNotFoundException":
|
|
2056
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2057
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "ServiceUnavailableException":
|
|
2059
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2060
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2061
|
-
default:
|
|
2062
|
-
const parsedBody = parsedOutput.body;
|
|
2063
|
-
return throwDefaultError({
|
|
2064
|
-
output,
|
|
2065
|
-
parsedBody,
|
|
2066
|
-
errorCode,
|
|
2067
|
-
});
|
|
2068
|
-
}
|
|
2069
|
-
};
|
|
2070
|
-
const de_ListSecurityPoliciesCommand = async (output, context) => {
|
|
2071
|
-
if (output.statusCode >= 300) {
|
|
2072
|
-
return de_ListSecurityPoliciesCommandError(output, context);
|
|
2073
|
-
}
|
|
2074
|
-
const data = await parseBody(output.body, context);
|
|
2075
|
-
let contents = {};
|
|
2076
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2077
|
-
const response = {
|
|
2078
|
-
$metadata: deserializeMetadata(output),
|
|
2079
|
-
...contents,
|
|
2080
|
-
};
|
|
2081
|
-
return response;
|
|
2082
|
-
};
|
|
2083
|
-
exports.de_ListSecurityPoliciesCommand = de_ListSecurityPoliciesCommand;
|
|
2084
|
-
const de_ListSecurityPoliciesCommandError = async (output, context) => {
|
|
2085
|
-
const parsedOutput = {
|
|
2086
|
-
...output,
|
|
2087
|
-
body: await parseErrorBody(output.body, context),
|
|
2088
|
-
};
|
|
2089
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2090
|
-
switch (errorCode) {
|
|
2091
|
-
case "InternalServiceError":
|
|
2092
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2093
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2094
|
-
case "InvalidNextTokenException":
|
|
2095
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2096
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2097
|
-
case "InvalidRequestException":
|
|
2098
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2099
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2100
|
-
case "ServiceUnavailableException":
|
|
2101
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2102
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2103
|
-
default:
|
|
2104
|
-
const parsedBody = parsedOutput.body;
|
|
2105
|
-
return throwDefaultError({
|
|
2106
|
-
output,
|
|
2107
|
-
parsedBody,
|
|
2108
|
-
errorCode,
|
|
2109
|
-
});
|
|
2110
|
-
}
|
|
2111
|
-
};
|
|
2112
|
-
const de_ListServersCommand = async (output, context) => {
|
|
2113
|
-
if (output.statusCode >= 300) {
|
|
2114
|
-
return de_ListServersCommandError(output, context);
|
|
2115
|
-
}
|
|
2116
|
-
const data = await parseBody(output.body, context);
|
|
2117
|
-
let contents = {};
|
|
2118
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2119
|
-
const response = {
|
|
2120
|
-
$metadata: deserializeMetadata(output),
|
|
2121
|
-
...contents,
|
|
2122
|
-
};
|
|
2123
|
-
return response;
|
|
2124
|
-
};
|
|
2125
|
-
exports.de_ListServersCommand = de_ListServersCommand;
|
|
2126
|
-
const de_ListServersCommandError = async (output, context) => {
|
|
2127
|
-
const parsedOutput = {
|
|
2128
|
-
...output,
|
|
2129
|
-
body: await parseErrorBody(output.body, context),
|
|
2130
|
-
};
|
|
2131
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2132
|
-
switch (errorCode) {
|
|
2133
|
-
case "InternalServiceError":
|
|
2134
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2135
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2136
|
-
case "InvalidNextTokenException":
|
|
2137
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2138
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "InvalidRequestException":
|
|
2140
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2141
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "ServiceUnavailableException":
|
|
2143
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2144
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2145
|
-
default:
|
|
2146
|
-
const parsedBody = parsedOutput.body;
|
|
2147
|
-
return throwDefaultError({
|
|
2148
|
-
output,
|
|
2149
|
-
parsedBody,
|
|
2150
|
-
errorCode,
|
|
2151
|
-
});
|
|
2152
|
-
}
|
|
2153
|
-
};
|
|
2154
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2155
|
-
if (output.statusCode >= 300) {
|
|
2156
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2157
|
-
}
|
|
2158
|
-
const data = await parseBody(output.body, context);
|
|
2159
|
-
let contents = {};
|
|
2160
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2161
|
-
const response = {
|
|
2162
|
-
$metadata: deserializeMetadata(output),
|
|
2163
|
-
...contents,
|
|
2164
|
-
};
|
|
2165
|
-
return response;
|
|
2166
|
-
};
|
|
2167
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2168
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2169
|
-
const parsedOutput = {
|
|
2170
|
-
...output,
|
|
2171
|
-
body: await parseErrorBody(output.body, context),
|
|
2172
|
-
};
|
|
2173
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2174
|
-
switch (errorCode) {
|
|
2175
|
-
case "InternalServiceError":
|
|
2176
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2177
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2178
|
-
case "InvalidNextTokenException":
|
|
2179
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2180
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2181
|
-
case "InvalidRequestException":
|
|
2182
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2183
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2184
|
-
case "ServiceUnavailableException":
|
|
2185
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2186
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2187
|
-
default:
|
|
2188
|
-
const parsedBody = parsedOutput.body;
|
|
2189
|
-
return throwDefaultError({
|
|
2190
|
-
output,
|
|
2191
|
-
parsedBody,
|
|
2192
|
-
errorCode,
|
|
2193
|
-
});
|
|
2194
|
-
}
|
|
2195
|
-
};
|
|
2196
|
-
const de_ListUsersCommand = async (output, context) => {
|
|
2197
|
-
if (output.statusCode >= 300) {
|
|
2198
|
-
return de_ListUsersCommandError(output, context);
|
|
2199
|
-
}
|
|
2200
|
-
const data = await parseBody(output.body, context);
|
|
2201
|
-
let contents = {};
|
|
2202
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2203
|
-
const response = {
|
|
2204
|
-
$metadata: deserializeMetadata(output),
|
|
2205
|
-
...contents,
|
|
2206
|
-
};
|
|
2207
|
-
return response;
|
|
2208
|
-
};
|
|
2209
|
-
exports.de_ListUsersCommand = de_ListUsersCommand;
|
|
2210
|
-
const de_ListUsersCommandError = async (output, context) => {
|
|
2211
|
-
const parsedOutput = {
|
|
2212
|
-
...output,
|
|
2213
|
-
body: await parseErrorBody(output.body, context),
|
|
2214
|
-
};
|
|
2215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2216
|
-
switch (errorCode) {
|
|
2217
|
-
case "InternalServiceError":
|
|
2218
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2219
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2220
|
-
case "InvalidNextTokenException":
|
|
2221
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2222
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "InvalidRequestException":
|
|
2224
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2225
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2226
|
-
case "ResourceNotFoundException":
|
|
2227
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2228
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2229
|
-
case "ServiceUnavailableException":
|
|
2230
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2231
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2232
|
-
default:
|
|
2233
|
-
const parsedBody = parsedOutput.body;
|
|
2234
|
-
return throwDefaultError({
|
|
2235
|
-
output,
|
|
2236
|
-
parsedBody,
|
|
2237
|
-
errorCode,
|
|
2238
|
-
});
|
|
2239
|
-
}
|
|
2240
|
-
};
|
|
2241
|
-
const de_ListWorkflowsCommand = async (output, context) => {
|
|
2242
|
-
if (output.statusCode >= 300) {
|
|
2243
|
-
return de_ListWorkflowsCommandError(output, context);
|
|
2244
|
-
}
|
|
2245
|
-
const data = await parseBody(output.body, context);
|
|
2246
|
-
let contents = {};
|
|
2247
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2248
|
-
const response = {
|
|
2249
|
-
$metadata: deserializeMetadata(output),
|
|
2250
|
-
...contents,
|
|
2251
|
-
};
|
|
2252
|
-
return response;
|
|
2253
|
-
};
|
|
2254
|
-
exports.de_ListWorkflowsCommand = de_ListWorkflowsCommand;
|
|
2255
|
-
const de_ListWorkflowsCommandError = async (output, context) => {
|
|
2256
|
-
const parsedOutput = {
|
|
2257
|
-
...output,
|
|
2258
|
-
body: await parseErrorBody(output.body, context),
|
|
2259
|
-
};
|
|
2260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2261
|
-
switch (errorCode) {
|
|
2262
|
-
case "InternalServiceError":
|
|
2263
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2264
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2265
|
-
case "InvalidNextTokenException":
|
|
2266
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2267
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2268
|
-
case "InvalidRequestException":
|
|
2269
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2270
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "ServiceUnavailableException":
|
|
2272
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2273
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2274
|
-
default:
|
|
2275
|
-
const parsedBody = parsedOutput.body;
|
|
2276
|
-
return throwDefaultError({
|
|
2277
|
-
output,
|
|
2278
|
-
parsedBody,
|
|
2279
|
-
errorCode,
|
|
2280
|
-
});
|
|
2281
|
-
}
|
|
2282
|
-
};
|
|
2283
|
-
const de_SendWorkflowStepStateCommand = async (output, context) => {
|
|
2284
|
-
if (output.statusCode >= 300) {
|
|
2285
|
-
return de_SendWorkflowStepStateCommandError(output, context);
|
|
2286
|
-
}
|
|
2287
|
-
const data = await parseBody(output.body, context);
|
|
2288
|
-
let contents = {};
|
|
2289
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2290
|
-
const response = {
|
|
2291
|
-
$metadata: deserializeMetadata(output),
|
|
2292
|
-
...contents,
|
|
2293
|
-
};
|
|
2294
|
-
return response;
|
|
2295
|
-
};
|
|
2296
|
-
exports.de_SendWorkflowStepStateCommand = de_SendWorkflowStepStateCommand;
|
|
2297
|
-
const de_SendWorkflowStepStateCommandError = async (output, context) => {
|
|
2298
|
-
const parsedOutput = {
|
|
2299
|
-
...output,
|
|
2300
|
-
body: await parseErrorBody(output.body, context),
|
|
2301
|
-
};
|
|
2302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2303
|
-
switch (errorCode) {
|
|
2304
|
-
case "AccessDeniedException":
|
|
2305
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
2306
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2307
|
-
case "InternalServiceError":
|
|
2308
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2309
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2310
|
-
case "InvalidRequestException":
|
|
2311
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2312
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2313
|
-
case "ResourceNotFoundException":
|
|
2314
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2315
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2316
|
-
case "ServiceUnavailableException":
|
|
2317
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2318
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2319
|
-
case "ThrottlingException":
|
|
2320
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2321
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2322
|
-
default:
|
|
2323
|
-
const parsedBody = parsedOutput.body;
|
|
2324
|
-
return throwDefaultError({
|
|
2325
|
-
output,
|
|
2326
|
-
parsedBody,
|
|
2327
|
-
errorCode,
|
|
2328
|
-
});
|
|
2329
|
-
}
|
|
2330
|
-
};
|
|
2331
|
-
const de_StartFileTransferCommand = async (output, context) => {
|
|
2332
|
-
if (output.statusCode >= 300) {
|
|
2333
|
-
return de_StartFileTransferCommandError(output, context);
|
|
2334
|
-
}
|
|
2335
|
-
const data = await parseBody(output.body, context);
|
|
2336
|
-
let contents = {};
|
|
2337
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2338
|
-
const response = {
|
|
2339
|
-
$metadata: deserializeMetadata(output),
|
|
2340
|
-
...contents,
|
|
2341
|
-
};
|
|
2342
|
-
return response;
|
|
2343
|
-
};
|
|
2344
|
-
exports.de_StartFileTransferCommand = de_StartFileTransferCommand;
|
|
2345
|
-
const de_StartFileTransferCommandError = async (output, context) => {
|
|
2346
|
-
const parsedOutput = {
|
|
2347
|
-
...output,
|
|
2348
|
-
body: await parseErrorBody(output.body, context),
|
|
2349
|
-
};
|
|
2350
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2351
|
-
switch (errorCode) {
|
|
2352
|
-
case "InternalServiceError":
|
|
2353
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2354
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2355
|
-
case "InvalidRequestException":
|
|
2356
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2357
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2358
|
-
case "ResourceNotFoundException":
|
|
2359
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2360
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2361
|
-
case "ServiceUnavailableException":
|
|
2362
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2363
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2364
|
-
case "ThrottlingException":
|
|
2365
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2366
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2367
|
-
default:
|
|
2368
|
-
const parsedBody = parsedOutput.body;
|
|
2369
|
-
return throwDefaultError({
|
|
2370
|
-
output,
|
|
2371
|
-
parsedBody,
|
|
2372
|
-
errorCode,
|
|
2373
|
-
});
|
|
2374
|
-
}
|
|
2375
|
-
};
|
|
2376
|
-
const de_StartServerCommand = async (output, context) => {
|
|
2377
|
-
if (output.statusCode >= 300) {
|
|
2378
|
-
return de_StartServerCommandError(output, context);
|
|
2379
|
-
}
|
|
2380
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2381
|
-
const response = {
|
|
2382
|
-
$metadata: deserializeMetadata(output),
|
|
2383
|
-
};
|
|
2384
|
-
return response;
|
|
2385
|
-
};
|
|
2386
|
-
exports.de_StartServerCommand = de_StartServerCommand;
|
|
2387
|
-
const de_StartServerCommandError = async (output, context) => {
|
|
2388
|
-
const parsedOutput = {
|
|
2389
|
-
...output,
|
|
2390
|
-
body: await parseErrorBody(output.body, context),
|
|
2391
|
-
};
|
|
2392
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2393
|
-
switch (errorCode) {
|
|
2394
|
-
case "InternalServiceError":
|
|
2395
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2396
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2397
|
-
case "InvalidRequestException":
|
|
2398
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2399
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "ResourceNotFoundException":
|
|
2401
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "ServiceUnavailableException":
|
|
2404
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2405
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2406
|
-
case "ThrottlingException":
|
|
2407
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2408
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2409
|
-
default:
|
|
2410
|
-
const parsedBody = parsedOutput.body;
|
|
2411
|
-
return throwDefaultError({
|
|
2412
|
-
output,
|
|
2413
|
-
parsedBody,
|
|
2414
|
-
errorCode,
|
|
2415
|
-
});
|
|
2416
|
-
}
|
|
2417
|
-
};
|
|
2418
|
-
const de_StopServerCommand = async (output, context) => {
|
|
2419
|
-
if (output.statusCode >= 300) {
|
|
2420
|
-
return de_StopServerCommandError(output, context);
|
|
2421
|
-
}
|
|
2422
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2423
|
-
const response = {
|
|
2424
|
-
$metadata: deserializeMetadata(output),
|
|
2425
|
-
};
|
|
2426
|
-
return response;
|
|
2427
|
-
};
|
|
2428
|
-
exports.de_StopServerCommand = de_StopServerCommand;
|
|
2429
|
-
const de_StopServerCommandError = async (output, context) => {
|
|
2430
|
-
const parsedOutput = {
|
|
2431
|
-
...output,
|
|
2432
|
-
body: await parseErrorBody(output.body, context),
|
|
2433
|
-
};
|
|
2434
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2435
|
-
switch (errorCode) {
|
|
2436
|
-
case "InternalServiceError":
|
|
2437
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2438
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2439
|
-
case "InvalidRequestException":
|
|
2440
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2441
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "ResourceNotFoundException":
|
|
2443
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2444
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2445
|
-
case "ServiceUnavailableException":
|
|
2446
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2447
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2448
|
-
case "ThrottlingException":
|
|
2449
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2450
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2451
|
-
default:
|
|
2452
|
-
const parsedBody = parsedOutput.body;
|
|
2453
|
-
return throwDefaultError({
|
|
2454
|
-
output,
|
|
2455
|
-
parsedBody,
|
|
2456
|
-
errorCode,
|
|
2457
|
-
});
|
|
2458
|
-
}
|
|
2459
|
-
};
|
|
2460
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2461
|
-
if (output.statusCode >= 300) {
|
|
2462
|
-
return de_TagResourceCommandError(output, context);
|
|
2463
|
-
}
|
|
2464
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2465
|
-
const response = {
|
|
2466
|
-
$metadata: deserializeMetadata(output),
|
|
2467
|
-
};
|
|
2468
|
-
return response;
|
|
2469
|
-
};
|
|
2470
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2471
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2472
|
-
const parsedOutput = {
|
|
2473
|
-
...output,
|
|
2474
|
-
body: await parseErrorBody(output.body, context),
|
|
2475
|
-
};
|
|
2476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2477
|
-
switch (errorCode) {
|
|
2478
|
-
case "InternalServiceError":
|
|
2479
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2480
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2481
|
-
case "InvalidRequestException":
|
|
2482
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2483
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2484
|
-
case "ResourceNotFoundException":
|
|
2485
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2486
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2487
|
-
case "ServiceUnavailableException":
|
|
2488
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2489
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2490
|
-
default:
|
|
2491
|
-
const parsedBody = parsedOutput.body;
|
|
2492
|
-
return throwDefaultError({
|
|
2493
|
-
output,
|
|
2494
|
-
parsedBody,
|
|
2495
|
-
errorCode,
|
|
2496
|
-
});
|
|
2497
|
-
}
|
|
2498
|
-
};
|
|
2499
|
-
const de_TestConnectionCommand = async (output, context) => {
|
|
2500
|
-
if (output.statusCode >= 300) {
|
|
2501
|
-
return de_TestConnectionCommandError(output, context);
|
|
2502
|
-
}
|
|
2503
|
-
const data = await parseBody(output.body, context);
|
|
2504
|
-
let contents = {};
|
|
2505
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2506
|
-
const response = {
|
|
2507
|
-
$metadata: deserializeMetadata(output),
|
|
2508
|
-
...contents,
|
|
2509
|
-
};
|
|
2510
|
-
return response;
|
|
2511
|
-
};
|
|
2512
|
-
exports.de_TestConnectionCommand = de_TestConnectionCommand;
|
|
2513
|
-
const de_TestConnectionCommandError = async (output, context) => {
|
|
2514
|
-
const parsedOutput = {
|
|
2515
|
-
...output,
|
|
2516
|
-
body: await parseErrorBody(output.body, context),
|
|
2517
|
-
};
|
|
2518
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2519
|
-
switch (errorCode) {
|
|
2520
|
-
case "InternalServiceError":
|
|
2521
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2522
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2523
|
-
case "InvalidRequestException":
|
|
2524
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2525
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "ResourceNotFoundException":
|
|
2527
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2528
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2529
|
-
case "ServiceUnavailableException":
|
|
2530
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2531
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2532
|
-
default:
|
|
2533
|
-
const parsedBody = parsedOutput.body;
|
|
2534
|
-
return throwDefaultError({
|
|
2535
|
-
output,
|
|
2536
|
-
parsedBody,
|
|
2537
|
-
errorCode,
|
|
2538
|
-
});
|
|
2539
|
-
}
|
|
2540
|
-
};
|
|
2541
|
-
const de_TestIdentityProviderCommand = async (output, context) => {
|
|
2542
|
-
if (output.statusCode >= 300) {
|
|
2543
|
-
return de_TestIdentityProviderCommandError(output, context);
|
|
2544
|
-
}
|
|
2545
|
-
const data = await parseBody(output.body, context);
|
|
2546
|
-
let contents = {};
|
|
2547
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2548
|
-
const response = {
|
|
2549
|
-
$metadata: deserializeMetadata(output),
|
|
2550
|
-
...contents,
|
|
2551
|
-
};
|
|
2552
|
-
return response;
|
|
2553
|
-
};
|
|
2554
|
-
exports.de_TestIdentityProviderCommand = de_TestIdentityProviderCommand;
|
|
2555
|
-
const de_TestIdentityProviderCommandError = async (output, context) => {
|
|
2556
|
-
const parsedOutput = {
|
|
2557
|
-
...output,
|
|
2558
|
-
body: await parseErrorBody(output.body, context),
|
|
2559
|
-
};
|
|
2560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2561
|
-
switch (errorCode) {
|
|
2562
|
-
case "InternalServiceError":
|
|
2563
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2564
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2565
|
-
case "InvalidRequestException":
|
|
2566
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2567
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "ResourceNotFoundException":
|
|
2569
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2570
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2571
|
-
case "ServiceUnavailableException":
|
|
2572
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2573
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2574
|
-
default:
|
|
2575
|
-
const parsedBody = parsedOutput.body;
|
|
2576
|
-
return throwDefaultError({
|
|
2577
|
-
output,
|
|
2578
|
-
parsedBody,
|
|
2579
|
-
errorCode,
|
|
2580
|
-
});
|
|
2581
|
-
}
|
|
2582
|
-
};
|
|
2583
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2584
|
-
if (output.statusCode >= 300) {
|
|
2585
|
-
return de_UntagResourceCommandError(output, context);
|
|
2586
|
-
}
|
|
2587
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2588
|
-
const response = {
|
|
2589
|
-
$metadata: deserializeMetadata(output),
|
|
2590
|
-
};
|
|
2591
|
-
return response;
|
|
2592
|
-
};
|
|
2593
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2594
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2595
|
-
const parsedOutput = {
|
|
2596
|
-
...output,
|
|
2597
|
-
body: await parseErrorBody(output.body, context),
|
|
2598
|
-
};
|
|
2599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2600
|
-
switch (errorCode) {
|
|
2601
|
-
case "InternalServiceError":
|
|
2602
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2603
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2604
|
-
case "InvalidRequestException":
|
|
2605
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2606
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2607
|
-
case "ResourceNotFoundException":
|
|
2608
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2609
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "ServiceUnavailableException":
|
|
2611
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2612
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2613
|
-
default:
|
|
2614
|
-
const parsedBody = parsedOutput.body;
|
|
2615
|
-
return throwDefaultError({
|
|
2616
|
-
output,
|
|
2617
|
-
parsedBody,
|
|
2618
|
-
errorCode,
|
|
2619
|
-
});
|
|
2620
|
-
}
|
|
2621
|
-
};
|
|
2622
|
-
const de_UpdateAccessCommand = async (output, context) => {
|
|
2623
|
-
if (output.statusCode >= 300) {
|
|
2624
|
-
return de_UpdateAccessCommandError(output, context);
|
|
2625
|
-
}
|
|
2626
|
-
const data = await parseBody(output.body, context);
|
|
2627
|
-
let contents = {};
|
|
2628
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2629
|
-
const response = {
|
|
2630
|
-
$metadata: deserializeMetadata(output),
|
|
2631
|
-
...contents,
|
|
2632
|
-
};
|
|
2633
|
-
return response;
|
|
2634
|
-
};
|
|
2635
|
-
exports.de_UpdateAccessCommand = de_UpdateAccessCommand;
|
|
2636
|
-
const de_UpdateAccessCommandError = async (output, context) => {
|
|
2637
|
-
const parsedOutput = {
|
|
2638
|
-
...output,
|
|
2639
|
-
body: await parseErrorBody(output.body, context),
|
|
2640
|
-
};
|
|
2641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2642
|
-
switch (errorCode) {
|
|
2643
|
-
case "InternalServiceError":
|
|
2644
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2645
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2646
|
-
case "InvalidRequestException":
|
|
2647
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2648
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2649
|
-
case "ResourceExistsException":
|
|
2650
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
2651
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
2652
|
-
case "ResourceNotFoundException":
|
|
2653
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2654
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2655
|
-
case "ServiceUnavailableException":
|
|
2656
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2657
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2658
|
-
case "ThrottlingException":
|
|
2659
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2660
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2661
|
-
default:
|
|
2662
|
-
const parsedBody = parsedOutput.body;
|
|
2663
|
-
return throwDefaultError({
|
|
2664
|
-
output,
|
|
2665
|
-
parsedBody,
|
|
2666
|
-
errorCode,
|
|
2667
|
-
});
|
|
2668
|
-
}
|
|
2669
|
-
};
|
|
2670
|
-
const de_UpdateAgreementCommand = async (output, context) => {
|
|
2671
|
-
if (output.statusCode >= 300) {
|
|
2672
|
-
return de_UpdateAgreementCommandError(output, context);
|
|
2673
|
-
}
|
|
2674
|
-
const data = await parseBody(output.body, context);
|
|
2675
|
-
let contents = {};
|
|
2676
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2677
|
-
const response = {
|
|
2678
|
-
$metadata: deserializeMetadata(output),
|
|
2679
|
-
...contents,
|
|
2680
|
-
};
|
|
2681
|
-
return response;
|
|
2682
|
-
};
|
|
2683
|
-
exports.de_UpdateAgreementCommand = de_UpdateAgreementCommand;
|
|
2684
|
-
const de_UpdateAgreementCommandError = async (output, context) => {
|
|
2685
|
-
const parsedOutput = {
|
|
2686
|
-
...output,
|
|
2687
|
-
body: await parseErrorBody(output.body, context),
|
|
2688
|
-
};
|
|
2689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2690
|
-
switch (errorCode) {
|
|
2691
|
-
case "InternalServiceError":
|
|
2692
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2693
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2694
|
-
case "InvalidRequestException":
|
|
2695
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2696
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2697
|
-
case "ResourceExistsException":
|
|
2698
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
2699
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
2700
|
-
case "ResourceNotFoundException":
|
|
2701
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2702
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2703
|
-
case "ServiceUnavailableException":
|
|
2704
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2705
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2706
|
-
case "ThrottlingException":
|
|
2707
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2708
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2709
|
-
default:
|
|
2710
|
-
const parsedBody = parsedOutput.body;
|
|
2711
|
-
return throwDefaultError({
|
|
2712
|
-
output,
|
|
2713
|
-
parsedBody,
|
|
2714
|
-
errorCode,
|
|
2715
|
-
});
|
|
2716
|
-
}
|
|
2717
|
-
};
|
|
2718
|
-
const de_UpdateCertificateCommand = async (output, context) => {
|
|
2719
|
-
if (output.statusCode >= 300) {
|
|
2720
|
-
return de_UpdateCertificateCommandError(output, context);
|
|
2721
|
-
}
|
|
2722
|
-
const data = await parseBody(output.body, context);
|
|
2723
|
-
let contents = {};
|
|
2724
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2725
|
-
const response = {
|
|
2726
|
-
$metadata: deserializeMetadata(output),
|
|
2727
|
-
...contents,
|
|
2728
|
-
};
|
|
2729
|
-
return response;
|
|
2730
|
-
};
|
|
2731
|
-
exports.de_UpdateCertificateCommand = de_UpdateCertificateCommand;
|
|
2732
|
-
const de_UpdateCertificateCommandError = async (output, context) => {
|
|
2733
|
-
const parsedOutput = {
|
|
2734
|
-
...output,
|
|
2735
|
-
body: await parseErrorBody(output.body, context),
|
|
2736
|
-
};
|
|
2737
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2738
|
-
switch (errorCode) {
|
|
2739
|
-
case "InternalServiceError":
|
|
2740
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2741
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2742
|
-
case "InvalidRequestException":
|
|
2743
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2744
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2745
|
-
case "ResourceNotFoundException":
|
|
2746
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2747
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2748
|
-
case "ServiceUnavailableException":
|
|
2749
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2750
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2751
|
-
case "ThrottlingException":
|
|
2752
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2753
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2754
|
-
default:
|
|
2755
|
-
const parsedBody = parsedOutput.body;
|
|
2756
|
-
return throwDefaultError({
|
|
2757
|
-
output,
|
|
2758
|
-
parsedBody,
|
|
2759
|
-
errorCode,
|
|
2760
|
-
});
|
|
2761
|
-
}
|
|
2762
|
-
};
|
|
2763
|
-
const de_UpdateConnectorCommand = async (output, context) => {
|
|
2764
|
-
if (output.statusCode >= 300) {
|
|
2765
|
-
return de_UpdateConnectorCommandError(output, context);
|
|
2766
|
-
}
|
|
2767
|
-
const data = await parseBody(output.body, context);
|
|
2768
|
-
let contents = {};
|
|
2769
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2770
|
-
const response = {
|
|
2771
|
-
$metadata: deserializeMetadata(output),
|
|
2772
|
-
...contents,
|
|
2773
|
-
};
|
|
2774
|
-
return response;
|
|
2775
|
-
};
|
|
2776
|
-
exports.de_UpdateConnectorCommand = de_UpdateConnectorCommand;
|
|
2777
|
-
const de_UpdateConnectorCommandError = async (output, context) => {
|
|
2778
|
-
const parsedOutput = {
|
|
2779
|
-
...output,
|
|
2780
|
-
body: await parseErrorBody(output.body, context),
|
|
2781
|
-
};
|
|
2782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2783
|
-
switch (errorCode) {
|
|
2784
|
-
case "InternalServiceError":
|
|
2785
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2786
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2787
|
-
case "InvalidRequestException":
|
|
2788
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2789
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2790
|
-
case "ResourceExistsException":
|
|
2791
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
2792
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "ResourceNotFoundException":
|
|
2794
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2795
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2796
|
-
case "ServiceUnavailableException":
|
|
2797
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2798
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2799
|
-
case "ThrottlingException":
|
|
2800
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2801
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2802
|
-
default:
|
|
2803
|
-
const parsedBody = parsedOutput.body;
|
|
2804
|
-
return throwDefaultError({
|
|
2805
|
-
output,
|
|
2806
|
-
parsedBody,
|
|
2807
|
-
errorCode,
|
|
2808
|
-
});
|
|
2809
|
-
}
|
|
2810
|
-
};
|
|
2811
|
-
const de_UpdateHostKeyCommand = async (output, context) => {
|
|
2812
|
-
if (output.statusCode >= 300) {
|
|
2813
|
-
return de_UpdateHostKeyCommandError(output, context);
|
|
2814
|
-
}
|
|
2815
|
-
const data = await parseBody(output.body, context);
|
|
2816
|
-
let contents = {};
|
|
2817
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2818
|
-
const response = {
|
|
2819
|
-
$metadata: deserializeMetadata(output),
|
|
2820
|
-
...contents,
|
|
2821
|
-
};
|
|
2822
|
-
return response;
|
|
2823
|
-
};
|
|
2824
|
-
exports.de_UpdateHostKeyCommand = de_UpdateHostKeyCommand;
|
|
2825
|
-
const de_UpdateHostKeyCommandError = async (output, context) => {
|
|
2826
|
-
const parsedOutput = {
|
|
2827
|
-
...output,
|
|
2828
|
-
body: await parseErrorBody(output.body, context),
|
|
2829
|
-
};
|
|
2830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2831
|
-
switch (errorCode) {
|
|
2832
|
-
case "InternalServiceError":
|
|
2833
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2834
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2835
|
-
case "InvalidRequestException":
|
|
2836
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2837
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2838
|
-
case "ResourceNotFoundException":
|
|
2839
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2840
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2841
|
-
case "ServiceUnavailableException":
|
|
2842
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2843
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2844
|
-
case "ThrottlingException":
|
|
2845
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2846
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2847
|
-
default:
|
|
2848
|
-
const parsedBody = parsedOutput.body;
|
|
2849
|
-
return throwDefaultError({
|
|
2850
|
-
output,
|
|
2851
|
-
parsedBody,
|
|
2852
|
-
errorCode,
|
|
2853
|
-
});
|
|
2854
|
-
}
|
|
2855
|
-
};
|
|
2856
|
-
const de_UpdateProfileCommand = async (output, context) => {
|
|
2857
|
-
if (output.statusCode >= 300) {
|
|
2858
|
-
return de_UpdateProfileCommandError(output, context);
|
|
2859
|
-
}
|
|
2860
|
-
const data = await parseBody(output.body, context);
|
|
2861
|
-
let contents = {};
|
|
2862
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2863
|
-
const response = {
|
|
2864
|
-
$metadata: deserializeMetadata(output),
|
|
2865
|
-
...contents,
|
|
2866
|
-
};
|
|
2867
|
-
return response;
|
|
2868
|
-
};
|
|
2869
|
-
exports.de_UpdateProfileCommand = de_UpdateProfileCommand;
|
|
2870
|
-
const de_UpdateProfileCommandError = async (output, context) => {
|
|
2871
|
-
const parsedOutput = {
|
|
2872
|
-
...output,
|
|
2873
|
-
body: await parseErrorBody(output.body, context),
|
|
2874
|
-
};
|
|
2875
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2876
|
-
switch (errorCode) {
|
|
2877
|
-
case "InternalServiceError":
|
|
2878
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2879
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2880
|
-
case "InvalidRequestException":
|
|
2881
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2882
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2883
|
-
case "ResourceNotFoundException":
|
|
2884
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2885
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2886
|
-
case "ServiceUnavailableException":
|
|
2887
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2888
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2889
|
-
case "ThrottlingException":
|
|
2890
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2891
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2892
|
-
default:
|
|
2893
|
-
const parsedBody = parsedOutput.body;
|
|
2894
|
-
return throwDefaultError({
|
|
2895
|
-
output,
|
|
2896
|
-
parsedBody,
|
|
2897
|
-
errorCode,
|
|
2898
|
-
});
|
|
2899
|
-
}
|
|
2900
|
-
};
|
|
2901
|
-
const de_UpdateServerCommand = async (output, context) => {
|
|
2902
|
-
if (output.statusCode >= 300) {
|
|
2903
|
-
return de_UpdateServerCommandError(output, context);
|
|
2904
|
-
}
|
|
2905
|
-
const data = await parseBody(output.body, context);
|
|
2906
|
-
let contents = {};
|
|
2907
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2908
|
-
const response = {
|
|
2909
|
-
$metadata: deserializeMetadata(output),
|
|
2910
|
-
...contents,
|
|
2911
|
-
};
|
|
2912
|
-
return response;
|
|
2913
|
-
};
|
|
2914
|
-
exports.de_UpdateServerCommand = de_UpdateServerCommand;
|
|
2915
|
-
const de_UpdateServerCommandError = async (output, context) => {
|
|
2916
|
-
const parsedOutput = {
|
|
2917
|
-
...output,
|
|
2918
|
-
body: await parseErrorBody(output.body, context),
|
|
2919
|
-
};
|
|
2920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2921
|
-
switch (errorCode) {
|
|
2922
|
-
case "AccessDeniedException":
|
|
2923
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
2924
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2925
|
-
case "ConflictException":
|
|
2926
|
-
case "com.amazonaws.transfer#ConflictException":
|
|
2927
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2928
|
-
case "InternalServiceError":
|
|
2929
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2930
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2931
|
-
case "InvalidRequestException":
|
|
2932
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2933
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "ResourceExistsException":
|
|
2935
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
2936
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "ResourceNotFoundException":
|
|
2938
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2939
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "ServiceUnavailableException":
|
|
2941
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2942
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2943
|
-
case "ThrottlingException":
|
|
2944
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2945
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2946
|
-
default:
|
|
2947
|
-
const parsedBody = parsedOutput.body;
|
|
2948
|
-
return throwDefaultError({
|
|
2949
|
-
output,
|
|
2950
|
-
parsedBody,
|
|
2951
|
-
errorCode,
|
|
2952
|
-
});
|
|
2953
|
-
}
|
|
2954
|
-
};
|
|
2955
|
-
const de_UpdateUserCommand = async (output, context) => {
|
|
2956
|
-
if (output.statusCode >= 300) {
|
|
2957
|
-
return de_UpdateUserCommandError(output, context);
|
|
2958
|
-
}
|
|
2959
|
-
const data = await parseBody(output.body, context);
|
|
2960
|
-
let contents = {};
|
|
2961
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2962
|
-
const response = {
|
|
2963
|
-
$metadata: deserializeMetadata(output),
|
|
2964
|
-
...contents,
|
|
2965
|
-
};
|
|
2966
|
-
return response;
|
|
2967
|
-
};
|
|
2968
|
-
exports.de_UpdateUserCommand = de_UpdateUserCommand;
|
|
2969
|
-
const de_UpdateUserCommandError = async (output, context) => {
|
|
2970
|
-
const parsedOutput = {
|
|
2971
|
-
...output,
|
|
2972
|
-
body: await parseErrorBody(output.body, context),
|
|
2973
|
-
};
|
|
2974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2975
|
-
switch (errorCode) {
|
|
2976
|
-
case "InternalServiceError":
|
|
2977
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2978
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2979
|
-
case "InvalidRequestException":
|
|
2980
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2981
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2982
|
-
case "ResourceNotFoundException":
|
|
2983
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "ServiceUnavailableException":
|
|
2986
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2987
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "ThrottlingException":
|
|
2989
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2990
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2991
|
-
default:
|
|
2992
|
-
const parsedBody = parsedOutput.body;
|
|
2993
|
-
return throwDefaultError({
|
|
2994
|
-
output,
|
|
2995
|
-
parsedBody,
|
|
2996
|
-
errorCode,
|
|
2997
|
-
});
|
|
2998
|
-
}
|
|
2999
|
-
};
|
|
3000
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3001
|
-
const body = parsedOutput.body;
|
|
3002
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3003
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3004
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3005
|
-
...deserialized,
|
|
3006
|
-
});
|
|
3007
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3008
|
-
};
|
|
3009
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3010
|
-
const body = parsedOutput.body;
|
|
3011
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3012
|
-
const exception = new models_0_1.ConflictException({
|
|
3013
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3014
|
-
...deserialized,
|
|
3015
|
-
});
|
|
3016
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3017
|
-
};
|
|
3018
|
-
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
3019
|
-
const body = parsedOutput.body;
|
|
3020
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3021
|
-
const exception = new models_0_1.InternalServiceError({
|
|
3022
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3023
|
-
...deserialized,
|
|
3024
|
-
});
|
|
3025
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3026
|
-
};
|
|
3027
|
-
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
3028
|
-
const body = parsedOutput.body;
|
|
3029
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3030
|
-
const exception = new models_0_1.InvalidNextTokenException({
|
|
3031
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3032
|
-
...deserialized,
|
|
3033
|
-
});
|
|
3034
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3035
|
-
};
|
|
3036
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
3037
|
-
const body = parsedOutput.body;
|
|
3038
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3039
|
-
const exception = new models_0_1.InvalidRequestException({
|
|
3040
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3041
|
-
...deserialized,
|
|
3042
|
-
});
|
|
3043
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3044
|
-
};
|
|
3045
|
-
const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
|
|
3046
|
-
const body = parsedOutput.body;
|
|
3047
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3048
|
-
const exception = new models_0_1.ResourceExistsException({
|
|
3049
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3050
|
-
...deserialized,
|
|
3051
|
-
});
|
|
3052
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3053
|
-
};
|
|
3054
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3055
|
-
const body = parsedOutput.body;
|
|
3056
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3057
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
3058
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3059
|
-
...deserialized,
|
|
3060
|
-
});
|
|
3061
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3062
|
-
};
|
|
3063
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3064
|
-
const body = parsedOutput.body;
|
|
3065
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3066
|
-
const exception = new models_0_1.ServiceUnavailableException({
|
|
3067
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3068
|
-
...deserialized,
|
|
3069
|
-
});
|
|
3070
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3071
|
-
};
|
|
3072
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3073
|
-
const body = parsedOutput.body;
|
|
3074
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3075
|
-
const exception = new models_0_1.ThrottlingException({
|
|
3076
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3077
|
-
...deserialized,
|
|
3078
|
-
});
|
|
3079
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3080
|
-
};
|
|
3081
|
-
const se_ImportCertificateRequest = (input, context) => {
|
|
3082
|
-
return (0, smithy_client_1.take)(input, {
|
|
3083
|
-
ActiveDate: (_) => Math.round(_.getTime() / 1000),
|
|
3084
|
-
Certificate: [],
|
|
3085
|
-
CertificateChain: [],
|
|
3086
|
-
Description: [],
|
|
3087
|
-
InactiveDate: (_) => Math.round(_.getTime() / 1000),
|
|
3088
|
-
PrivateKey: [],
|
|
3089
|
-
Tags: smithy_client_1._json,
|
|
3090
|
-
Usage: [],
|
|
3091
|
-
});
|
|
3092
|
-
};
|
|
3093
|
-
const se_UpdateCertificateRequest = (input, context) => {
|
|
3094
|
-
return (0, smithy_client_1.take)(input, {
|
|
3095
|
-
ActiveDate: (_) => Math.round(_.getTime() / 1000),
|
|
3096
|
-
CertificateId: [],
|
|
3097
|
-
Description: [],
|
|
3098
|
-
InactiveDate: (_) => Math.round(_.getTime() / 1000),
|
|
3099
|
-
});
|
|
3100
|
-
};
|
|
3101
|
-
const de_DescribeCertificateResponse = (output, context) => {
|
|
3102
|
-
return (0, smithy_client_1.take)(output, {
|
|
3103
|
-
Certificate: (_) => de_DescribedCertificate(_, context),
|
|
3104
|
-
});
|
|
3105
|
-
};
|
|
3106
|
-
const de_DescribedCertificate = (output, context) => {
|
|
3107
|
-
return (0, smithy_client_1.take)(output, {
|
|
3108
|
-
ActiveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3109
|
-
Arn: smithy_client_1.expectString,
|
|
3110
|
-
Certificate: smithy_client_1.expectString,
|
|
3111
|
-
CertificateChain: smithy_client_1.expectString,
|
|
3112
|
-
CertificateId: smithy_client_1.expectString,
|
|
3113
|
-
Description: smithy_client_1.expectString,
|
|
3114
|
-
InactiveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3115
|
-
NotAfterDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3116
|
-
NotBeforeDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3117
|
-
Serial: smithy_client_1.expectString,
|
|
3118
|
-
Status: smithy_client_1.expectString,
|
|
3119
|
-
Tags: smithy_client_1._json,
|
|
3120
|
-
Type: smithy_client_1.expectString,
|
|
3121
|
-
Usage: smithy_client_1.expectString,
|
|
3122
|
-
});
|
|
3123
|
-
};
|
|
3124
|
-
const de_DescribedHostKey = (output, context) => {
|
|
3125
|
-
return (0, smithy_client_1.take)(output, {
|
|
3126
|
-
Arn: smithy_client_1.expectString,
|
|
3127
|
-
DateImported: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3128
|
-
Description: smithy_client_1.expectString,
|
|
3129
|
-
HostKeyFingerprint: smithy_client_1.expectString,
|
|
3130
|
-
HostKeyId: smithy_client_1.expectString,
|
|
3131
|
-
Tags: smithy_client_1._json,
|
|
3132
|
-
Type: smithy_client_1.expectString,
|
|
3133
|
-
});
|
|
3134
|
-
};
|
|
3135
|
-
const de_DescribedUser = (output, context) => {
|
|
3136
|
-
return (0, smithy_client_1.take)(output, {
|
|
3137
|
-
Arn: smithy_client_1.expectString,
|
|
3138
|
-
HomeDirectory: smithy_client_1.expectString,
|
|
3139
|
-
HomeDirectoryMappings: smithy_client_1._json,
|
|
3140
|
-
HomeDirectoryType: smithy_client_1.expectString,
|
|
3141
|
-
Policy: smithy_client_1.expectString,
|
|
3142
|
-
PosixProfile: smithy_client_1._json,
|
|
3143
|
-
Role: smithy_client_1.expectString,
|
|
3144
|
-
SshPublicKeys: (_) => de_SshPublicKeys(_, context),
|
|
3145
|
-
Tags: smithy_client_1._json,
|
|
3146
|
-
UserName: smithy_client_1.expectString,
|
|
3147
|
-
});
|
|
3148
|
-
};
|
|
3149
|
-
const de_DescribeHostKeyResponse = (output, context) => {
|
|
3150
|
-
return (0, smithy_client_1.take)(output, {
|
|
3151
|
-
HostKey: (_) => de_DescribedHostKey(_, context),
|
|
3152
|
-
});
|
|
3153
|
-
};
|
|
3154
|
-
const de_DescribeUserResponse = (output, context) => {
|
|
3155
|
-
return (0, smithy_client_1.take)(output, {
|
|
3156
|
-
ServerId: smithy_client_1.expectString,
|
|
3157
|
-
User: (_) => de_DescribedUser(_, context),
|
|
3158
|
-
});
|
|
3159
|
-
};
|
|
3160
|
-
const de_ListCertificatesResponse = (output, context) => {
|
|
3161
|
-
return (0, smithy_client_1.take)(output, {
|
|
3162
|
-
Certificates: (_) => de_ListedCertificates(_, context),
|
|
3163
|
-
NextToken: smithy_client_1.expectString,
|
|
3164
|
-
});
|
|
3165
|
-
};
|
|
3166
|
-
const de_ListedCertificate = (output, context) => {
|
|
3167
|
-
return (0, smithy_client_1.take)(output, {
|
|
3168
|
-
ActiveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3169
|
-
Arn: smithy_client_1.expectString,
|
|
3170
|
-
CertificateId: smithy_client_1.expectString,
|
|
3171
|
-
Description: smithy_client_1.expectString,
|
|
3172
|
-
InactiveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3173
|
-
Status: smithy_client_1.expectString,
|
|
3174
|
-
Type: smithy_client_1.expectString,
|
|
3175
|
-
Usage: smithy_client_1.expectString,
|
|
3176
|
-
});
|
|
3177
|
-
};
|
|
3178
|
-
const de_ListedCertificates = (output, context) => {
|
|
3179
|
-
const retVal = (output || [])
|
|
3180
|
-
.filter((e) => e != null)
|
|
3181
|
-
.map((entry) => {
|
|
3182
|
-
return de_ListedCertificate(entry, context);
|
|
3183
|
-
});
|
|
3184
|
-
return retVal;
|
|
3185
|
-
};
|
|
3186
|
-
const de_ListedHostKey = (output, context) => {
|
|
3187
|
-
return (0, smithy_client_1.take)(output, {
|
|
3188
|
-
Arn: smithy_client_1.expectString,
|
|
3189
|
-
DateImported: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3190
|
-
Description: smithy_client_1.expectString,
|
|
3191
|
-
Fingerprint: smithy_client_1.expectString,
|
|
3192
|
-
HostKeyId: smithy_client_1.expectString,
|
|
3193
|
-
Type: smithy_client_1.expectString,
|
|
3194
|
-
});
|
|
3195
|
-
};
|
|
3196
|
-
const de_ListedHostKeys = (output, context) => {
|
|
3197
|
-
const retVal = (output || [])
|
|
3198
|
-
.filter((e) => e != null)
|
|
3199
|
-
.map((entry) => {
|
|
3200
|
-
return de_ListedHostKey(entry, context);
|
|
3201
|
-
});
|
|
3202
|
-
return retVal;
|
|
3203
|
-
};
|
|
3204
|
-
const de_ListHostKeysResponse = (output, context) => {
|
|
3205
|
-
return (0, smithy_client_1.take)(output, {
|
|
3206
|
-
HostKeys: (_) => de_ListedHostKeys(_, context),
|
|
3207
|
-
NextToken: smithy_client_1.expectString,
|
|
3208
|
-
ServerId: smithy_client_1.expectString,
|
|
3209
|
-
});
|
|
3210
|
-
};
|
|
3211
|
-
const de_SshPublicKey = (output, context) => {
|
|
3212
|
-
return (0, smithy_client_1.take)(output, {
|
|
3213
|
-
DateImported: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3214
|
-
SshPublicKeyBody: smithy_client_1.expectString,
|
|
3215
|
-
SshPublicKeyId: smithy_client_1.expectString,
|
|
3216
|
-
});
|
|
3217
|
-
};
|
|
3218
|
-
const de_SshPublicKeys = (output, context) => {
|
|
3219
|
-
const retVal = (output || [])
|
|
3220
|
-
.filter((e) => e != null)
|
|
3221
|
-
.map((entry) => {
|
|
3222
|
-
return de_SshPublicKey(entry, context);
|
|
3223
|
-
});
|
|
3224
|
-
return retVal;
|
|
3225
|
-
};
|
|
3226
|
-
const deserializeMetadata = (output) => ({
|
|
3227
|
-
httpStatusCode: output.statusCode,
|
|
3228
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3229
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3230
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3231
|
-
});
|
|
3232
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3233
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(TransferServiceException_1.TransferServiceException);
|
|
3234
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3235
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3236
|
-
const contents = {
|
|
3237
|
-
protocol,
|
|
3238
|
-
hostname,
|
|
3239
|
-
port,
|
|
3240
|
-
method: "POST",
|
|
3241
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3242
|
-
headers,
|
|
3243
|
-
};
|
|
3244
|
-
if (resolvedHostname !== undefined) {
|
|
3245
|
-
contents.hostname = resolvedHostname;
|
|
3246
|
-
}
|
|
3247
|
-
if (body !== undefined) {
|
|
3248
|
-
contents.body = body;
|
|
3249
|
-
}
|
|
3250
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3251
|
-
};
|
|
3252
|
-
function sharedHeaders(operation) {
|
|
3253
|
-
return {
|
|
3254
|
-
"content-type": "application/x-amz-json-1.1",
|
|
3255
|
-
"x-amz-target": `TransferService.${operation}`,
|
|
3256
|
-
};
|
|
3257
|
-
}
|
|
3258
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3259
|
-
if (encoded.length) {
|
|
3260
|
-
return JSON.parse(encoded);
|
|
3261
|
-
}
|
|
3262
|
-
return {};
|
|
3263
|
-
});
|
|
3264
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3265
|
-
const value = await parseBody(errorBody, context);
|
|
3266
|
-
value.message = value.message ?? value.Message;
|
|
3267
|
-
return value;
|
|
3268
|
-
};
|
|
3269
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3270
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3271
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3272
|
-
let cleanValue = rawValue;
|
|
3273
|
-
if (typeof cleanValue === "number") {
|
|
3274
|
-
cleanValue = cleanValue.toString();
|
|
3275
|
-
}
|
|
3276
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3277
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3278
|
-
}
|
|
3279
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3280
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3281
|
-
}
|
|
3282
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3283
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3284
|
-
}
|
|
3285
|
-
return cleanValue;
|
|
3286
|
-
};
|
|
3287
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3288
|
-
if (headerKey !== undefined) {
|
|
3289
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3290
|
-
}
|
|
3291
|
-
if (data.code !== undefined) {
|
|
3292
|
-
return sanitizeErrorCode(data.code);
|
|
3293
|
-
}
|
|
3294
|
-
if (data["__type"] !== undefined) {
|
|
3295
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3296
|
-
}
|
|
3297
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|