@aws-sdk/client-transfer 3.927.0 → 3.928.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/index.js +2049 -2206
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/TransferClient.js +2 -0
- package/dist-es/commands/CreateAccessCommand.js +3 -9
- package/dist-es/commands/CreateAgreementCommand.js +3 -9
- package/dist-es/commands/CreateConnectorCommand.js +3 -9
- package/dist-es/commands/CreateProfileCommand.js +3 -9
- package/dist-es/commands/CreateServerCommand.js +3 -10
- package/dist-es/commands/CreateUserCommand.js +3 -9
- package/dist-es/commands/CreateWebAppCommand.js +3 -9
- package/dist-es/commands/CreateWorkflowCommand.js +3 -9
- package/dist-es/commands/DeleteAccessCommand.js +3 -9
- package/dist-es/commands/DeleteAgreementCommand.js +3 -9
- package/dist-es/commands/DeleteCertificateCommand.js +3 -9
- package/dist-es/commands/DeleteConnectorCommand.js +3 -9
- package/dist-es/commands/DeleteHostKeyCommand.js +3 -9
- package/dist-es/commands/DeleteProfileCommand.js +3 -9
- package/dist-es/commands/DeleteServerCommand.js +3 -9
- package/dist-es/commands/DeleteSshPublicKeyCommand.js +3 -9
- package/dist-es/commands/DeleteUserCommand.js +3 -9
- package/dist-es/commands/DeleteWebAppCommand.js +3 -9
- package/dist-es/commands/DeleteWebAppCustomizationCommand.js +3 -9
- package/dist-es/commands/DeleteWorkflowCommand.js +3 -9
- package/dist-es/commands/DescribeAccessCommand.js +3 -9
- package/dist-es/commands/DescribeAgreementCommand.js +3 -9
- package/dist-es/commands/DescribeCertificateCommand.js +3 -10
- package/dist-es/commands/DescribeConnectorCommand.js +3 -9
- package/dist-es/commands/DescribeExecutionCommand.js +3 -9
- package/dist-es/commands/DescribeHostKeyCommand.js +3 -9
- package/dist-es/commands/DescribeProfileCommand.js +3 -9
- package/dist-es/commands/DescribeSecurityPolicyCommand.js +3 -9
- package/dist-es/commands/DescribeServerCommand.js +3 -9
- package/dist-es/commands/DescribeUserCommand.js +3 -9
- package/dist-es/commands/DescribeWebAppCommand.js +3 -9
- package/dist-es/commands/DescribeWebAppCustomizationCommand.js +3 -10
- package/dist-es/commands/DescribeWorkflowCommand.js +3 -9
- package/dist-es/commands/ImportCertificateCommand.js +3 -10
- package/dist-es/commands/ImportHostKeyCommand.js +3 -10
- package/dist-es/commands/ImportSshPublicKeyCommand.js +3 -9
- package/dist-es/commands/ListAccessesCommand.js +3 -9
- package/dist-es/commands/ListAgreementsCommand.js +3 -9
- package/dist-es/commands/ListCertificatesCommand.js +3 -9
- package/dist-es/commands/ListConnectorsCommand.js +3 -9
- package/dist-es/commands/ListExecutionsCommand.js +3 -9
- package/dist-es/commands/ListFileTransferResultsCommand.js +3 -9
- package/dist-es/commands/ListHostKeysCommand.js +3 -9
- package/dist-es/commands/ListProfilesCommand.js +3 -9
- package/dist-es/commands/ListSecurityPoliciesCommand.js +3 -9
- package/dist-es/commands/ListServersCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListUsersCommand.js +3 -9
- package/dist-es/commands/ListWebAppsCommand.js +3 -9
- package/dist-es/commands/ListWorkflowsCommand.js +3 -9
- package/dist-es/commands/SendWorkflowStepStateCommand.js +3 -9
- package/dist-es/commands/StartDirectoryListingCommand.js +3 -9
- package/dist-es/commands/StartFileTransferCommand.js +3 -9
- package/dist-es/commands/StartRemoteDeleteCommand.js +3 -9
- package/dist-es/commands/StartRemoteMoveCommand.js +3 -9
- package/dist-es/commands/StartServerCommand.js +3 -9
- package/dist-es/commands/StopServerCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/TestConnectionCommand.js +3 -9
- package/dist-es/commands/TestIdentityProviderCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateAccessCommand.js +3 -9
- package/dist-es/commands/UpdateAgreementCommand.js +3 -9
- package/dist-es/commands/UpdateCertificateCommand.js +3 -9
- package/dist-es/commands/UpdateConnectorCommand.js +3 -9
- package/dist-es/commands/UpdateHostKeyCommand.js +3 -9
- package/dist-es/commands/UpdateProfileCommand.js +3 -9
- package/dist-es/commands/UpdateServerCommand.js +3 -10
- package/dist-es/commands/UpdateUserCommand.js +3 -9
- package/dist-es/commands/UpdateWebAppCommand.js +3 -9
- package/dist-es/commands/UpdateWebAppCustomizationCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -48
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1893 -0
- package/dist-types/TransferClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -40
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +321 -0
- package/dist-types/ts3.4/TransferClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -30
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +327 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -1629
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -641
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -857
|
@@ -1,1629 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, ConflictException, InternalServiceError, InvalidNextTokenException, InvalidRequestException, ResourceExistsException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, } from "../models/models_0";
|
|
5
|
-
import { TransferServiceException as __BaseException } from "../models/TransferServiceException";
|
|
6
|
-
export const se_CreateAccessCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("CreateAccess");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CreateAgreementCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CreateAgreement");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreateConnectorCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateConnector");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_CreateProfileCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateProfile");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_CreateServerCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("CreateServer");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_CreateUserCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("CreateUser");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_CreateWebAppCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("CreateWebApp");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_CreateWorkflowCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("CreateWorkflow");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_DeleteAccessCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("DeleteAccess");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_DeleteAgreementCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DeleteAgreement");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_DeleteCertificateCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DeleteCertificate");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_DeleteConnectorCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DeleteConnector");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_DeleteHostKeyCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DeleteHostKey");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_DeleteProfileCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("DeleteProfile");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_DeleteServerCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("DeleteServer");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_DeleteSshPublicKeyCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("DeleteSshPublicKey");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_DeleteUserCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DeleteUser");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_DeleteWebAppCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("DeleteWebApp");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_DeleteWebAppCustomizationCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("DeleteWebAppCustomization");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_DeleteWorkflowCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("DeleteWorkflow");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_DescribeAccessCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("DescribeAccess");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_DescribeAgreementCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("DescribeAgreement");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(_json(input));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_DescribeCertificateCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("DescribeCertificate");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(_json(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_DescribeConnectorCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("DescribeConnector");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(_json(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_DescribeExecutionCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("DescribeExecution");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(_json(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_DescribeHostKeyCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("DescribeHostKey");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(_json(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const se_DescribeProfileCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("DescribeProfile");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(_json(input));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
export const se_DescribeSecurityPolicyCommand = async (input, context) => {
|
|
169
|
-
const headers = sharedHeaders("DescribeSecurityPolicy");
|
|
170
|
-
let body;
|
|
171
|
-
body = JSON.stringify(_json(input));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
export const se_DescribeServerCommand = async (input, context) => {
|
|
175
|
-
const headers = sharedHeaders("DescribeServer");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(_json(input));
|
|
178
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
-
};
|
|
180
|
-
export const se_DescribeUserCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("DescribeUser");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(_json(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
export const se_DescribeWebAppCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("DescribeWebApp");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify(_json(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
export const se_DescribeWebAppCustomizationCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("DescribeWebAppCustomization");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify(_json(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
export const se_DescribeWorkflowCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("DescribeWorkflow");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify(_json(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
export const se_ImportCertificateCommand = async (input, context) => {
|
|
205
|
-
const headers = sharedHeaders("ImportCertificate");
|
|
206
|
-
let body;
|
|
207
|
-
body = JSON.stringify(se_ImportCertificateRequest(input, context));
|
|
208
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
-
};
|
|
210
|
-
export const se_ImportHostKeyCommand = async (input, context) => {
|
|
211
|
-
const headers = sharedHeaders("ImportHostKey");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify(_json(input));
|
|
214
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
-
};
|
|
216
|
-
export const se_ImportSshPublicKeyCommand = async (input, context) => {
|
|
217
|
-
const headers = sharedHeaders("ImportSshPublicKey");
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify(_json(input));
|
|
220
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
|
-
};
|
|
222
|
-
export const se_ListAccessesCommand = async (input, context) => {
|
|
223
|
-
const headers = sharedHeaders("ListAccesses");
|
|
224
|
-
let body;
|
|
225
|
-
body = JSON.stringify(_json(input));
|
|
226
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
-
};
|
|
228
|
-
export const se_ListAgreementsCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("ListAgreements");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify(_json(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
export const se_ListCertificatesCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("ListCertificates");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify(_json(input));
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
export const se_ListConnectorsCommand = async (input, context) => {
|
|
241
|
-
const headers = sharedHeaders("ListConnectors");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify(_json(input));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
export const se_ListExecutionsCommand = async (input, context) => {
|
|
247
|
-
const headers = sharedHeaders("ListExecutions");
|
|
248
|
-
let body;
|
|
249
|
-
body = JSON.stringify(_json(input));
|
|
250
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
|
-
};
|
|
252
|
-
export const se_ListFileTransferResultsCommand = async (input, context) => {
|
|
253
|
-
const headers = sharedHeaders("ListFileTransferResults");
|
|
254
|
-
let body;
|
|
255
|
-
body = JSON.stringify(_json(input));
|
|
256
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
|
-
};
|
|
258
|
-
export const se_ListHostKeysCommand = async (input, context) => {
|
|
259
|
-
const headers = sharedHeaders("ListHostKeys");
|
|
260
|
-
let body;
|
|
261
|
-
body = JSON.stringify(_json(input));
|
|
262
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
263
|
-
};
|
|
264
|
-
export const se_ListProfilesCommand = async (input, context) => {
|
|
265
|
-
const headers = sharedHeaders("ListProfiles");
|
|
266
|
-
let body;
|
|
267
|
-
body = JSON.stringify(_json(input));
|
|
268
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
|
-
};
|
|
270
|
-
export const se_ListSecurityPoliciesCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("ListSecurityPolicies");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify(_json(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
export const se_ListServersCommand = async (input, context) => {
|
|
277
|
-
const headers = sharedHeaders("ListServers");
|
|
278
|
-
let body;
|
|
279
|
-
body = JSON.stringify(_json(input));
|
|
280
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
-
};
|
|
282
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
283
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
284
|
-
let body;
|
|
285
|
-
body = JSON.stringify(_json(input));
|
|
286
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
|
-
};
|
|
288
|
-
export const se_ListUsersCommand = async (input, context) => {
|
|
289
|
-
const headers = sharedHeaders("ListUsers");
|
|
290
|
-
let body;
|
|
291
|
-
body = JSON.stringify(_json(input));
|
|
292
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
|
-
};
|
|
294
|
-
export const se_ListWebAppsCommand = async (input, context) => {
|
|
295
|
-
const headers = sharedHeaders("ListWebApps");
|
|
296
|
-
let body;
|
|
297
|
-
body = JSON.stringify(_json(input));
|
|
298
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
|
-
};
|
|
300
|
-
export const se_ListWorkflowsCommand = async (input, context) => {
|
|
301
|
-
const headers = sharedHeaders("ListWorkflows");
|
|
302
|
-
let body;
|
|
303
|
-
body = JSON.stringify(_json(input));
|
|
304
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
|
-
};
|
|
306
|
-
export const se_SendWorkflowStepStateCommand = async (input, context) => {
|
|
307
|
-
const headers = sharedHeaders("SendWorkflowStepState");
|
|
308
|
-
let body;
|
|
309
|
-
body = JSON.stringify(_json(input));
|
|
310
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
|
-
};
|
|
312
|
-
export const se_StartDirectoryListingCommand = async (input, context) => {
|
|
313
|
-
const headers = sharedHeaders("StartDirectoryListing");
|
|
314
|
-
let body;
|
|
315
|
-
body = JSON.stringify(_json(input));
|
|
316
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
-
};
|
|
318
|
-
export const se_StartFileTransferCommand = async (input, context) => {
|
|
319
|
-
const headers = sharedHeaders("StartFileTransfer");
|
|
320
|
-
let body;
|
|
321
|
-
body = JSON.stringify(_json(input));
|
|
322
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
|
-
};
|
|
324
|
-
export const se_StartRemoteDeleteCommand = async (input, context) => {
|
|
325
|
-
const headers = sharedHeaders("StartRemoteDelete");
|
|
326
|
-
let body;
|
|
327
|
-
body = JSON.stringify(_json(input));
|
|
328
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
|
-
};
|
|
330
|
-
export const se_StartRemoteMoveCommand = async (input, context) => {
|
|
331
|
-
const headers = sharedHeaders("StartRemoteMove");
|
|
332
|
-
let body;
|
|
333
|
-
body = JSON.stringify(_json(input));
|
|
334
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
335
|
-
};
|
|
336
|
-
export const se_StartServerCommand = async (input, context) => {
|
|
337
|
-
const headers = sharedHeaders("StartServer");
|
|
338
|
-
let body;
|
|
339
|
-
body = JSON.stringify(_json(input));
|
|
340
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
341
|
-
};
|
|
342
|
-
export const se_StopServerCommand = async (input, context) => {
|
|
343
|
-
const headers = sharedHeaders("StopServer");
|
|
344
|
-
let body;
|
|
345
|
-
body = JSON.stringify(_json(input));
|
|
346
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
|
-
};
|
|
348
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
349
|
-
const headers = sharedHeaders("TagResource");
|
|
350
|
-
let body;
|
|
351
|
-
body = JSON.stringify(_json(input));
|
|
352
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
353
|
-
};
|
|
354
|
-
export const se_TestConnectionCommand = async (input, context) => {
|
|
355
|
-
const headers = sharedHeaders("TestConnection");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify(_json(input));
|
|
358
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
-
};
|
|
360
|
-
export const se_TestIdentityProviderCommand = async (input, context) => {
|
|
361
|
-
const headers = sharedHeaders("TestIdentityProvider");
|
|
362
|
-
let body;
|
|
363
|
-
body = JSON.stringify(_json(input));
|
|
364
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
|
-
};
|
|
366
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
367
|
-
const headers = sharedHeaders("UntagResource");
|
|
368
|
-
let body;
|
|
369
|
-
body = JSON.stringify(_json(input));
|
|
370
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
371
|
-
};
|
|
372
|
-
export const se_UpdateAccessCommand = async (input, context) => {
|
|
373
|
-
const headers = sharedHeaders("UpdateAccess");
|
|
374
|
-
let body;
|
|
375
|
-
body = JSON.stringify(_json(input));
|
|
376
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
|
-
};
|
|
378
|
-
export const se_UpdateAgreementCommand = async (input, context) => {
|
|
379
|
-
const headers = sharedHeaders("UpdateAgreement");
|
|
380
|
-
let body;
|
|
381
|
-
body = JSON.stringify(_json(input));
|
|
382
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
383
|
-
};
|
|
384
|
-
export const se_UpdateCertificateCommand = async (input, context) => {
|
|
385
|
-
const headers = sharedHeaders("UpdateCertificate");
|
|
386
|
-
let body;
|
|
387
|
-
body = JSON.stringify(se_UpdateCertificateRequest(input, context));
|
|
388
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
389
|
-
};
|
|
390
|
-
export const se_UpdateConnectorCommand = async (input, context) => {
|
|
391
|
-
const headers = sharedHeaders("UpdateConnector");
|
|
392
|
-
let body;
|
|
393
|
-
body = JSON.stringify(_json(input));
|
|
394
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
395
|
-
};
|
|
396
|
-
export const se_UpdateHostKeyCommand = async (input, context) => {
|
|
397
|
-
const headers = sharedHeaders("UpdateHostKey");
|
|
398
|
-
let body;
|
|
399
|
-
body = JSON.stringify(_json(input));
|
|
400
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
|
-
};
|
|
402
|
-
export const se_UpdateProfileCommand = async (input, context) => {
|
|
403
|
-
const headers = sharedHeaders("UpdateProfile");
|
|
404
|
-
let body;
|
|
405
|
-
body = JSON.stringify(_json(input));
|
|
406
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
407
|
-
};
|
|
408
|
-
export const se_UpdateServerCommand = async (input, context) => {
|
|
409
|
-
const headers = sharedHeaders("UpdateServer");
|
|
410
|
-
let body;
|
|
411
|
-
body = JSON.stringify(_json(input));
|
|
412
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
413
|
-
};
|
|
414
|
-
export const se_UpdateUserCommand = async (input, context) => {
|
|
415
|
-
const headers = sharedHeaders("UpdateUser");
|
|
416
|
-
let body;
|
|
417
|
-
body = JSON.stringify(_json(input));
|
|
418
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
419
|
-
};
|
|
420
|
-
export const se_UpdateWebAppCommand = async (input, context) => {
|
|
421
|
-
const headers = sharedHeaders("UpdateWebApp");
|
|
422
|
-
let body;
|
|
423
|
-
body = JSON.stringify(_json(input));
|
|
424
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
425
|
-
};
|
|
426
|
-
export const se_UpdateWebAppCustomizationCommand = async (input, context) => {
|
|
427
|
-
const headers = sharedHeaders("UpdateWebAppCustomization");
|
|
428
|
-
let body;
|
|
429
|
-
body = JSON.stringify(se_UpdateWebAppCustomizationRequest(input, context));
|
|
430
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
431
|
-
};
|
|
432
|
-
export const de_CreateAccessCommand = async (output, context) => {
|
|
433
|
-
if (output.statusCode >= 300) {
|
|
434
|
-
return de_CommandError(output, context);
|
|
435
|
-
}
|
|
436
|
-
const data = await parseBody(output.body, context);
|
|
437
|
-
let contents = {};
|
|
438
|
-
contents = _json(data);
|
|
439
|
-
const response = {
|
|
440
|
-
$metadata: deserializeMetadata(output),
|
|
441
|
-
...contents,
|
|
442
|
-
};
|
|
443
|
-
return response;
|
|
444
|
-
};
|
|
445
|
-
export const de_CreateAgreementCommand = async (output, context) => {
|
|
446
|
-
if (output.statusCode >= 300) {
|
|
447
|
-
return de_CommandError(output, context);
|
|
448
|
-
}
|
|
449
|
-
const data = await parseBody(output.body, context);
|
|
450
|
-
let contents = {};
|
|
451
|
-
contents = _json(data);
|
|
452
|
-
const response = {
|
|
453
|
-
$metadata: deserializeMetadata(output),
|
|
454
|
-
...contents,
|
|
455
|
-
};
|
|
456
|
-
return response;
|
|
457
|
-
};
|
|
458
|
-
export const de_CreateConnectorCommand = async (output, context) => {
|
|
459
|
-
if (output.statusCode >= 300) {
|
|
460
|
-
return de_CommandError(output, context);
|
|
461
|
-
}
|
|
462
|
-
const data = await parseBody(output.body, context);
|
|
463
|
-
let contents = {};
|
|
464
|
-
contents = _json(data);
|
|
465
|
-
const response = {
|
|
466
|
-
$metadata: deserializeMetadata(output),
|
|
467
|
-
...contents,
|
|
468
|
-
};
|
|
469
|
-
return response;
|
|
470
|
-
};
|
|
471
|
-
export const de_CreateProfileCommand = async (output, context) => {
|
|
472
|
-
if (output.statusCode >= 300) {
|
|
473
|
-
return de_CommandError(output, context);
|
|
474
|
-
}
|
|
475
|
-
const data = await parseBody(output.body, context);
|
|
476
|
-
let contents = {};
|
|
477
|
-
contents = _json(data);
|
|
478
|
-
const response = {
|
|
479
|
-
$metadata: deserializeMetadata(output),
|
|
480
|
-
...contents,
|
|
481
|
-
};
|
|
482
|
-
return response;
|
|
483
|
-
};
|
|
484
|
-
export const de_CreateServerCommand = async (output, context) => {
|
|
485
|
-
if (output.statusCode >= 300) {
|
|
486
|
-
return de_CommandError(output, context);
|
|
487
|
-
}
|
|
488
|
-
const data = await parseBody(output.body, context);
|
|
489
|
-
let contents = {};
|
|
490
|
-
contents = _json(data);
|
|
491
|
-
const response = {
|
|
492
|
-
$metadata: deserializeMetadata(output),
|
|
493
|
-
...contents,
|
|
494
|
-
};
|
|
495
|
-
return response;
|
|
496
|
-
};
|
|
497
|
-
export const de_CreateUserCommand = async (output, context) => {
|
|
498
|
-
if (output.statusCode >= 300) {
|
|
499
|
-
return de_CommandError(output, context);
|
|
500
|
-
}
|
|
501
|
-
const data = await parseBody(output.body, context);
|
|
502
|
-
let contents = {};
|
|
503
|
-
contents = _json(data);
|
|
504
|
-
const response = {
|
|
505
|
-
$metadata: deserializeMetadata(output),
|
|
506
|
-
...contents,
|
|
507
|
-
};
|
|
508
|
-
return response;
|
|
509
|
-
};
|
|
510
|
-
export const de_CreateWebAppCommand = async (output, context) => {
|
|
511
|
-
if (output.statusCode >= 300) {
|
|
512
|
-
return de_CommandError(output, context);
|
|
513
|
-
}
|
|
514
|
-
const data = await parseBody(output.body, context);
|
|
515
|
-
let contents = {};
|
|
516
|
-
contents = _json(data);
|
|
517
|
-
const response = {
|
|
518
|
-
$metadata: deserializeMetadata(output),
|
|
519
|
-
...contents,
|
|
520
|
-
};
|
|
521
|
-
return response;
|
|
522
|
-
};
|
|
523
|
-
export const de_CreateWorkflowCommand = async (output, context) => {
|
|
524
|
-
if (output.statusCode >= 300) {
|
|
525
|
-
return de_CommandError(output, context);
|
|
526
|
-
}
|
|
527
|
-
const data = await parseBody(output.body, context);
|
|
528
|
-
let contents = {};
|
|
529
|
-
contents = _json(data);
|
|
530
|
-
const response = {
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
...contents,
|
|
533
|
-
};
|
|
534
|
-
return response;
|
|
535
|
-
};
|
|
536
|
-
export const de_DeleteAccessCommand = async (output, context) => {
|
|
537
|
-
if (output.statusCode >= 300) {
|
|
538
|
-
return de_CommandError(output, context);
|
|
539
|
-
}
|
|
540
|
-
await collectBody(output.body, context);
|
|
541
|
-
const response = {
|
|
542
|
-
$metadata: deserializeMetadata(output),
|
|
543
|
-
};
|
|
544
|
-
return response;
|
|
545
|
-
};
|
|
546
|
-
export const de_DeleteAgreementCommand = async (output, context) => {
|
|
547
|
-
if (output.statusCode >= 300) {
|
|
548
|
-
return de_CommandError(output, context);
|
|
549
|
-
}
|
|
550
|
-
await collectBody(output.body, context);
|
|
551
|
-
const response = {
|
|
552
|
-
$metadata: deserializeMetadata(output),
|
|
553
|
-
};
|
|
554
|
-
return response;
|
|
555
|
-
};
|
|
556
|
-
export const de_DeleteCertificateCommand = async (output, context) => {
|
|
557
|
-
if (output.statusCode >= 300) {
|
|
558
|
-
return de_CommandError(output, context);
|
|
559
|
-
}
|
|
560
|
-
await collectBody(output.body, context);
|
|
561
|
-
const response = {
|
|
562
|
-
$metadata: deserializeMetadata(output),
|
|
563
|
-
};
|
|
564
|
-
return response;
|
|
565
|
-
};
|
|
566
|
-
export const de_DeleteConnectorCommand = async (output, context) => {
|
|
567
|
-
if (output.statusCode >= 300) {
|
|
568
|
-
return de_CommandError(output, context);
|
|
569
|
-
}
|
|
570
|
-
await collectBody(output.body, context);
|
|
571
|
-
const response = {
|
|
572
|
-
$metadata: deserializeMetadata(output),
|
|
573
|
-
};
|
|
574
|
-
return response;
|
|
575
|
-
};
|
|
576
|
-
export const de_DeleteHostKeyCommand = async (output, context) => {
|
|
577
|
-
if (output.statusCode >= 300) {
|
|
578
|
-
return de_CommandError(output, context);
|
|
579
|
-
}
|
|
580
|
-
await collectBody(output.body, context);
|
|
581
|
-
const response = {
|
|
582
|
-
$metadata: deserializeMetadata(output),
|
|
583
|
-
};
|
|
584
|
-
return response;
|
|
585
|
-
};
|
|
586
|
-
export const de_DeleteProfileCommand = async (output, context) => {
|
|
587
|
-
if (output.statusCode >= 300) {
|
|
588
|
-
return de_CommandError(output, context);
|
|
589
|
-
}
|
|
590
|
-
await collectBody(output.body, context);
|
|
591
|
-
const response = {
|
|
592
|
-
$metadata: deserializeMetadata(output),
|
|
593
|
-
};
|
|
594
|
-
return response;
|
|
595
|
-
};
|
|
596
|
-
export const de_DeleteServerCommand = async (output, context) => {
|
|
597
|
-
if (output.statusCode >= 300) {
|
|
598
|
-
return de_CommandError(output, context);
|
|
599
|
-
}
|
|
600
|
-
await collectBody(output.body, context);
|
|
601
|
-
const response = {
|
|
602
|
-
$metadata: deserializeMetadata(output),
|
|
603
|
-
};
|
|
604
|
-
return response;
|
|
605
|
-
};
|
|
606
|
-
export const de_DeleteSshPublicKeyCommand = async (output, context) => {
|
|
607
|
-
if (output.statusCode >= 300) {
|
|
608
|
-
return de_CommandError(output, context);
|
|
609
|
-
}
|
|
610
|
-
await collectBody(output.body, context);
|
|
611
|
-
const response = {
|
|
612
|
-
$metadata: deserializeMetadata(output),
|
|
613
|
-
};
|
|
614
|
-
return response;
|
|
615
|
-
};
|
|
616
|
-
export const de_DeleteUserCommand = async (output, context) => {
|
|
617
|
-
if (output.statusCode >= 300) {
|
|
618
|
-
return de_CommandError(output, context);
|
|
619
|
-
}
|
|
620
|
-
await collectBody(output.body, context);
|
|
621
|
-
const response = {
|
|
622
|
-
$metadata: deserializeMetadata(output),
|
|
623
|
-
};
|
|
624
|
-
return response;
|
|
625
|
-
};
|
|
626
|
-
export const de_DeleteWebAppCommand = async (output, context) => {
|
|
627
|
-
if (output.statusCode >= 300) {
|
|
628
|
-
return de_CommandError(output, context);
|
|
629
|
-
}
|
|
630
|
-
await collectBody(output.body, context);
|
|
631
|
-
const response = {
|
|
632
|
-
$metadata: deserializeMetadata(output),
|
|
633
|
-
};
|
|
634
|
-
return response;
|
|
635
|
-
};
|
|
636
|
-
export const de_DeleteWebAppCustomizationCommand = async (output, context) => {
|
|
637
|
-
if (output.statusCode >= 300) {
|
|
638
|
-
return de_CommandError(output, context);
|
|
639
|
-
}
|
|
640
|
-
await collectBody(output.body, context);
|
|
641
|
-
const response = {
|
|
642
|
-
$metadata: deserializeMetadata(output),
|
|
643
|
-
};
|
|
644
|
-
return response;
|
|
645
|
-
};
|
|
646
|
-
export const de_DeleteWorkflowCommand = async (output, context) => {
|
|
647
|
-
if (output.statusCode >= 300) {
|
|
648
|
-
return de_CommandError(output, context);
|
|
649
|
-
}
|
|
650
|
-
await collectBody(output.body, context);
|
|
651
|
-
const response = {
|
|
652
|
-
$metadata: deserializeMetadata(output),
|
|
653
|
-
};
|
|
654
|
-
return response;
|
|
655
|
-
};
|
|
656
|
-
export const de_DescribeAccessCommand = async (output, context) => {
|
|
657
|
-
if (output.statusCode >= 300) {
|
|
658
|
-
return de_CommandError(output, context);
|
|
659
|
-
}
|
|
660
|
-
const data = await parseBody(output.body, context);
|
|
661
|
-
let contents = {};
|
|
662
|
-
contents = _json(data);
|
|
663
|
-
const response = {
|
|
664
|
-
$metadata: deserializeMetadata(output),
|
|
665
|
-
...contents,
|
|
666
|
-
};
|
|
667
|
-
return response;
|
|
668
|
-
};
|
|
669
|
-
export const de_DescribeAgreementCommand = async (output, context) => {
|
|
670
|
-
if (output.statusCode >= 300) {
|
|
671
|
-
return de_CommandError(output, context);
|
|
672
|
-
}
|
|
673
|
-
const data = await parseBody(output.body, context);
|
|
674
|
-
let contents = {};
|
|
675
|
-
contents = _json(data);
|
|
676
|
-
const response = {
|
|
677
|
-
$metadata: deserializeMetadata(output),
|
|
678
|
-
...contents,
|
|
679
|
-
};
|
|
680
|
-
return response;
|
|
681
|
-
};
|
|
682
|
-
export const de_DescribeCertificateCommand = async (output, context) => {
|
|
683
|
-
if (output.statusCode >= 300) {
|
|
684
|
-
return de_CommandError(output, context);
|
|
685
|
-
}
|
|
686
|
-
const data = await parseBody(output.body, context);
|
|
687
|
-
let contents = {};
|
|
688
|
-
contents = de_DescribeCertificateResponse(data, context);
|
|
689
|
-
const response = {
|
|
690
|
-
$metadata: deserializeMetadata(output),
|
|
691
|
-
...contents,
|
|
692
|
-
};
|
|
693
|
-
return response;
|
|
694
|
-
};
|
|
695
|
-
export const de_DescribeConnectorCommand = async (output, context) => {
|
|
696
|
-
if (output.statusCode >= 300) {
|
|
697
|
-
return de_CommandError(output, context);
|
|
698
|
-
}
|
|
699
|
-
const data = await parseBody(output.body, context);
|
|
700
|
-
let contents = {};
|
|
701
|
-
contents = _json(data);
|
|
702
|
-
const response = {
|
|
703
|
-
$metadata: deserializeMetadata(output),
|
|
704
|
-
...contents,
|
|
705
|
-
};
|
|
706
|
-
return response;
|
|
707
|
-
};
|
|
708
|
-
export const de_DescribeExecutionCommand = async (output, context) => {
|
|
709
|
-
if (output.statusCode >= 300) {
|
|
710
|
-
return de_CommandError(output, context);
|
|
711
|
-
}
|
|
712
|
-
const data = await parseBody(output.body, context);
|
|
713
|
-
let contents = {};
|
|
714
|
-
contents = _json(data);
|
|
715
|
-
const response = {
|
|
716
|
-
$metadata: deserializeMetadata(output),
|
|
717
|
-
...contents,
|
|
718
|
-
};
|
|
719
|
-
return response;
|
|
720
|
-
};
|
|
721
|
-
export const de_DescribeHostKeyCommand = async (output, context) => {
|
|
722
|
-
if (output.statusCode >= 300) {
|
|
723
|
-
return de_CommandError(output, context);
|
|
724
|
-
}
|
|
725
|
-
const data = await parseBody(output.body, context);
|
|
726
|
-
let contents = {};
|
|
727
|
-
contents = de_DescribeHostKeyResponse(data, context);
|
|
728
|
-
const response = {
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
...contents,
|
|
731
|
-
};
|
|
732
|
-
return response;
|
|
733
|
-
};
|
|
734
|
-
export const de_DescribeProfileCommand = async (output, context) => {
|
|
735
|
-
if (output.statusCode >= 300) {
|
|
736
|
-
return de_CommandError(output, context);
|
|
737
|
-
}
|
|
738
|
-
const data = await parseBody(output.body, context);
|
|
739
|
-
let contents = {};
|
|
740
|
-
contents = _json(data);
|
|
741
|
-
const response = {
|
|
742
|
-
$metadata: deserializeMetadata(output),
|
|
743
|
-
...contents,
|
|
744
|
-
};
|
|
745
|
-
return response;
|
|
746
|
-
};
|
|
747
|
-
export const de_DescribeSecurityPolicyCommand = async (output, context) => {
|
|
748
|
-
if (output.statusCode >= 300) {
|
|
749
|
-
return de_CommandError(output, context);
|
|
750
|
-
}
|
|
751
|
-
const data = await parseBody(output.body, context);
|
|
752
|
-
let contents = {};
|
|
753
|
-
contents = _json(data);
|
|
754
|
-
const response = {
|
|
755
|
-
$metadata: deserializeMetadata(output),
|
|
756
|
-
...contents,
|
|
757
|
-
};
|
|
758
|
-
return response;
|
|
759
|
-
};
|
|
760
|
-
export const de_DescribeServerCommand = async (output, context) => {
|
|
761
|
-
if (output.statusCode >= 300) {
|
|
762
|
-
return de_CommandError(output, context);
|
|
763
|
-
}
|
|
764
|
-
const data = await parseBody(output.body, context);
|
|
765
|
-
let contents = {};
|
|
766
|
-
contents = _json(data);
|
|
767
|
-
const response = {
|
|
768
|
-
$metadata: deserializeMetadata(output),
|
|
769
|
-
...contents,
|
|
770
|
-
};
|
|
771
|
-
return response;
|
|
772
|
-
};
|
|
773
|
-
export const de_DescribeUserCommand = async (output, context) => {
|
|
774
|
-
if (output.statusCode >= 300) {
|
|
775
|
-
return de_CommandError(output, context);
|
|
776
|
-
}
|
|
777
|
-
const data = await parseBody(output.body, context);
|
|
778
|
-
let contents = {};
|
|
779
|
-
contents = de_DescribeUserResponse(data, context);
|
|
780
|
-
const response = {
|
|
781
|
-
$metadata: deserializeMetadata(output),
|
|
782
|
-
...contents,
|
|
783
|
-
};
|
|
784
|
-
return response;
|
|
785
|
-
};
|
|
786
|
-
export const de_DescribeWebAppCommand = async (output, context) => {
|
|
787
|
-
if (output.statusCode >= 300) {
|
|
788
|
-
return de_CommandError(output, context);
|
|
789
|
-
}
|
|
790
|
-
const data = await parseBody(output.body, context);
|
|
791
|
-
let contents = {};
|
|
792
|
-
contents = _json(data);
|
|
793
|
-
const response = {
|
|
794
|
-
$metadata: deserializeMetadata(output),
|
|
795
|
-
...contents,
|
|
796
|
-
};
|
|
797
|
-
return response;
|
|
798
|
-
};
|
|
799
|
-
export const de_DescribeWebAppCustomizationCommand = async (output, context) => {
|
|
800
|
-
if (output.statusCode >= 300) {
|
|
801
|
-
return de_CommandError(output, context);
|
|
802
|
-
}
|
|
803
|
-
const data = await parseBody(output.body, context);
|
|
804
|
-
let contents = {};
|
|
805
|
-
contents = de_DescribeWebAppCustomizationResponse(data, context);
|
|
806
|
-
const response = {
|
|
807
|
-
$metadata: deserializeMetadata(output),
|
|
808
|
-
...contents,
|
|
809
|
-
};
|
|
810
|
-
return response;
|
|
811
|
-
};
|
|
812
|
-
export const de_DescribeWorkflowCommand = async (output, context) => {
|
|
813
|
-
if (output.statusCode >= 300) {
|
|
814
|
-
return de_CommandError(output, context);
|
|
815
|
-
}
|
|
816
|
-
const data = await parseBody(output.body, context);
|
|
817
|
-
let contents = {};
|
|
818
|
-
contents = _json(data);
|
|
819
|
-
const response = {
|
|
820
|
-
$metadata: deserializeMetadata(output),
|
|
821
|
-
...contents,
|
|
822
|
-
};
|
|
823
|
-
return response;
|
|
824
|
-
};
|
|
825
|
-
export const de_ImportCertificateCommand = async (output, context) => {
|
|
826
|
-
if (output.statusCode >= 300) {
|
|
827
|
-
return de_CommandError(output, context);
|
|
828
|
-
}
|
|
829
|
-
const data = await parseBody(output.body, context);
|
|
830
|
-
let contents = {};
|
|
831
|
-
contents = _json(data);
|
|
832
|
-
const response = {
|
|
833
|
-
$metadata: deserializeMetadata(output),
|
|
834
|
-
...contents,
|
|
835
|
-
};
|
|
836
|
-
return response;
|
|
837
|
-
};
|
|
838
|
-
export const de_ImportHostKeyCommand = async (output, context) => {
|
|
839
|
-
if (output.statusCode >= 300) {
|
|
840
|
-
return de_CommandError(output, context);
|
|
841
|
-
}
|
|
842
|
-
const data = await parseBody(output.body, context);
|
|
843
|
-
let contents = {};
|
|
844
|
-
contents = _json(data);
|
|
845
|
-
const response = {
|
|
846
|
-
$metadata: deserializeMetadata(output),
|
|
847
|
-
...contents,
|
|
848
|
-
};
|
|
849
|
-
return response;
|
|
850
|
-
};
|
|
851
|
-
export const de_ImportSshPublicKeyCommand = async (output, context) => {
|
|
852
|
-
if (output.statusCode >= 300) {
|
|
853
|
-
return de_CommandError(output, context);
|
|
854
|
-
}
|
|
855
|
-
const data = await parseBody(output.body, context);
|
|
856
|
-
let contents = {};
|
|
857
|
-
contents = _json(data);
|
|
858
|
-
const response = {
|
|
859
|
-
$metadata: deserializeMetadata(output),
|
|
860
|
-
...contents,
|
|
861
|
-
};
|
|
862
|
-
return response;
|
|
863
|
-
};
|
|
864
|
-
export const de_ListAccessesCommand = async (output, context) => {
|
|
865
|
-
if (output.statusCode >= 300) {
|
|
866
|
-
return de_CommandError(output, context);
|
|
867
|
-
}
|
|
868
|
-
const data = await parseBody(output.body, context);
|
|
869
|
-
let contents = {};
|
|
870
|
-
contents = _json(data);
|
|
871
|
-
const response = {
|
|
872
|
-
$metadata: deserializeMetadata(output),
|
|
873
|
-
...contents,
|
|
874
|
-
};
|
|
875
|
-
return response;
|
|
876
|
-
};
|
|
877
|
-
export const de_ListAgreementsCommand = async (output, context) => {
|
|
878
|
-
if (output.statusCode >= 300) {
|
|
879
|
-
return de_CommandError(output, context);
|
|
880
|
-
}
|
|
881
|
-
const data = await parseBody(output.body, context);
|
|
882
|
-
let contents = {};
|
|
883
|
-
contents = _json(data);
|
|
884
|
-
const response = {
|
|
885
|
-
$metadata: deserializeMetadata(output),
|
|
886
|
-
...contents,
|
|
887
|
-
};
|
|
888
|
-
return response;
|
|
889
|
-
};
|
|
890
|
-
export const de_ListCertificatesCommand = async (output, context) => {
|
|
891
|
-
if (output.statusCode >= 300) {
|
|
892
|
-
return de_CommandError(output, context);
|
|
893
|
-
}
|
|
894
|
-
const data = await parseBody(output.body, context);
|
|
895
|
-
let contents = {};
|
|
896
|
-
contents = de_ListCertificatesResponse(data, context);
|
|
897
|
-
const response = {
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
...contents,
|
|
900
|
-
};
|
|
901
|
-
return response;
|
|
902
|
-
};
|
|
903
|
-
export const de_ListConnectorsCommand = async (output, context) => {
|
|
904
|
-
if (output.statusCode >= 300) {
|
|
905
|
-
return de_CommandError(output, context);
|
|
906
|
-
}
|
|
907
|
-
const data = await parseBody(output.body, context);
|
|
908
|
-
let contents = {};
|
|
909
|
-
contents = _json(data);
|
|
910
|
-
const response = {
|
|
911
|
-
$metadata: deserializeMetadata(output),
|
|
912
|
-
...contents,
|
|
913
|
-
};
|
|
914
|
-
return response;
|
|
915
|
-
};
|
|
916
|
-
export const de_ListExecutionsCommand = async (output, context) => {
|
|
917
|
-
if (output.statusCode >= 300) {
|
|
918
|
-
return de_CommandError(output, context);
|
|
919
|
-
}
|
|
920
|
-
const data = await parseBody(output.body, context);
|
|
921
|
-
let contents = {};
|
|
922
|
-
contents = _json(data);
|
|
923
|
-
const response = {
|
|
924
|
-
$metadata: deserializeMetadata(output),
|
|
925
|
-
...contents,
|
|
926
|
-
};
|
|
927
|
-
return response;
|
|
928
|
-
};
|
|
929
|
-
export const de_ListFileTransferResultsCommand = async (output, context) => {
|
|
930
|
-
if (output.statusCode >= 300) {
|
|
931
|
-
return de_CommandError(output, context);
|
|
932
|
-
}
|
|
933
|
-
const data = await parseBody(output.body, context);
|
|
934
|
-
let contents = {};
|
|
935
|
-
contents = _json(data);
|
|
936
|
-
const response = {
|
|
937
|
-
$metadata: deserializeMetadata(output),
|
|
938
|
-
...contents,
|
|
939
|
-
};
|
|
940
|
-
return response;
|
|
941
|
-
};
|
|
942
|
-
export const de_ListHostKeysCommand = async (output, context) => {
|
|
943
|
-
if (output.statusCode >= 300) {
|
|
944
|
-
return de_CommandError(output, context);
|
|
945
|
-
}
|
|
946
|
-
const data = await parseBody(output.body, context);
|
|
947
|
-
let contents = {};
|
|
948
|
-
contents = de_ListHostKeysResponse(data, context);
|
|
949
|
-
const response = {
|
|
950
|
-
$metadata: deserializeMetadata(output),
|
|
951
|
-
...contents,
|
|
952
|
-
};
|
|
953
|
-
return response;
|
|
954
|
-
};
|
|
955
|
-
export const de_ListProfilesCommand = async (output, context) => {
|
|
956
|
-
if (output.statusCode >= 300) {
|
|
957
|
-
return de_CommandError(output, context);
|
|
958
|
-
}
|
|
959
|
-
const data = await parseBody(output.body, context);
|
|
960
|
-
let contents = {};
|
|
961
|
-
contents = _json(data);
|
|
962
|
-
const response = {
|
|
963
|
-
$metadata: deserializeMetadata(output),
|
|
964
|
-
...contents,
|
|
965
|
-
};
|
|
966
|
-
return response;
|
|
967
|
-
};
|
|
968
|
-
export const de_ListSecurityPoliciesCommand = async (output, context) => {
|
|
969
|
-
if (output.statusCode >= 300) {
|
|
970
|
-
return de_CommandError(output, context);
|
|
971
|
-
}
|
|
972
|
-
const data = await parseBody(output.body, context);
|
|
973
|
-
let contents = {};
|
|
974
|
-
contents = _json(data);
|
|
975
|
-
const response = {
|
|
976
|
-
$metadata: deserializeMetadata(output),
|
|
977
|
-
...contents,
|
|
978
|
-
};
|
|
979
|
-
return response;
|
|
980
|
-
};
|
|
981
|
-
export const de_ListServersCommand = async (output, context) => {
|
|
982
|
-
if (output.statusCode >= 300) {
|
|
983
|
-
return de_CommandError(output, context);
|
|
984
|
-
}
|
|
985
|
-
const data = await parseBody(output.body, context);
|
|
986
|
-
let contents = {};
|
|
987
|
-
contents = _json(data);
|
|
988
|
-
const response = {
|
|
989
|
-
$metadata: deserializeMetadata(output),
|
|
990
|
-
...contents,
|
|
991
|
-
};
|
|
992
|
-
return response;
|
|
993
|
-
};
|
|
994
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
995
|
-
if (output.statusCode >= 300) {
|
|
996
|
-
return de_CommandError(output, context);
|
|
997
|
-
}
|
|
998
|
-
const data = await parseBody(output.body, context);
|
|
999
|
-
let contents = {};
|
|
1000
|
-
contents = _json(data);
|
|
1001
|
-
const response = {
|
|
1002
|
-
$metadata: deserializeMetadata(output),
|
|
1003
|
-
...contents,
|
|
1004
|
-
};
|
|
1005
|
-
return response;
|
|
1006
|
-
};
|
|
1007
|
-
export const de_ListUsersCommand = async (output, context) => {
|
|
1008
|
-
if (output.statusCode >= 300) {
|
|
1009
|
-
return de_CommandError(output, context);
|
|
1010
|
-
}
|
|
1011
|
-
const data = await parseBody(output.body, context);
|
|
1012
|
-
let contents = {};
|
|
1013
|
-
contents = _json(data);
|
|
1014
|
-
const response = {
|
|
1015
|
-
$metadata: deserializeMetadata(output),
|
|
1016
|
-
...contents,
|
|
1017
|
-
};
|
|
1018
|
-
return response;
|
|
1019
|
-
};
|
|
1020
|
-
export const de_ListWebAppsCommand = async (output, context) => {
|
|
1021
|
-
if (output.statusCode >= 300) {
|
|
1022
|
-
return de_CommandError(output, context);
|
|
1023
|
-
}
|
|
1024
|
-
const data = await parseBody(output.body, context);
|
|
1025
|
-
let contents = {};
|
|
1026
|
-
contents = _json(data);
|
|
1027
|
-
const response = {
|
|
1028
|
-
$metadata: deserializeMetadata(output),
|
|
1029
|
-
...contents,
|
|
1030
|
-
};
|
|
1031
|
-
return response;
|
|
1032
|
-
};
|
|
1033
|
-
export const de_ListWorkflowsCommand = async (output, context) => {
|
|
1034
|
-
if (output.statusCode >= 300) {
|
|
1035
|
-
return de_CommandError(output, context);
|
|
1036
|
-
}
|
|
1037
|
-
const data = await parseBody(output.body, context);
|
|
1038
|
-
let contents = {};
|
|
1039
|
-
contents = _json(data);
|
|
1040
|
-
const response = {
|
|
1041
|
-
$metadata: deserializeMetadata(output),
|
|
1042
|
-
...contents,
|
|
1043
|
-
};
|
|
1044
|
-
return response;
|
|
1045
|
-
};
|
|
1046
|
-
export const de_SendWorkflowStepStateCommand = async (output, context) => {
|
|
1047
|
-
if (output.statusCode >= 300) {
|
|
1048
|
-
return de_CommandError(output, context);
|
|
1049
|
-
}
|
|
1050
|
-
const data = await parseBody(output.body, context);
|
|
1051
|
-
let contents = {};
|
|
1052
|
-
contents = _json(data);
|
|
1053
|
-
const response = {
|
|
1054
|
-
$metadata: deserializeMetadata(output),
|
|
1055
|
-
...contents,
|
|
1056
|
-
};
|
|
1057
|
-
return response;
|
|
1058
|
-
};
|
|
1059
|
-
export const de_StartDirectoryListingCommand = async (output, context) => {
|
|
1060
|
-
if (output.statusCode >= 300) {
|
|
1061
|
-
return de_CommandError(output, context);
|
|
1062
|
-
}
|
|
1063
|
-
const data = await parseBody(output.body, context);
|
|
1064
|
-
let contents = {};
|
|
1065
|
-
contents = _json(data);
|
|
1066
|
-
const response = {
|
|
1067
|
-
$metadata: deserializeMetadata(output),
|
|
1068
|
-
...contents,
|
|
1069
|
-
};
|
|
1070
|
-
return response;
|
|
1071
|
-
};
|
|
1072
|
-
export const de_StartFileTransferCommand = async (output, context) => {
|
|
1073
|
-
if (output.statusCode >= 300) {
|
|
1074
|
-
return de_CommandError(output, context);
|
|
1075
|
-
}
|
|
1076
|
-
const data = await parseBody(output.body, context);
|
|
1077
|
-
let contents = {};
|
|
1078
|
-
contents = _json(data);
|
|
1079
|
-
const response = {
|
|
1080
|
-
$metadata: deserializeMetadata(output),
|
|
1081
|
-
...contents,
|
|
1082
|
-
};
|
|
1083
|
-
return response;
|
|
1084
|
-
};
|
|
1085
|
-
export const de_StartRemoteDeleteCommand = async (output, context) => {
|
|
1086
|
-
if (output.statusCode >= 300) {
|
|
1087
|
-
return de_CommandError(output, context);
|
|
1088
|
-
}
|
|
1089
|
-
const data = await parseBody(output.body, context);
|
|
1090
|
-
let contents = {};
|
|
1091
|
-
contents = _json(data);
|
|
1092
|
-
const response = {
|
|
1093
|
-
$metadata: deserializeMetadata(output),
|
|
1094
|
-
...contents,
|
|
1095
|
-
};
|
|
1096
|
-
return response;
|
|
1097
|
-
};
|
|
1098
|
-
export const de_StartRemoteMoveCommand = async (output, context) => {
|
|
1099
|
-
if (output.statusCode >= 300) {
|
|
1100
|
-
return de_CommandError(output, context);
|
|
1101
|
-
}
|
|
1102
|
-
const data = await parseBody(output.body, context);
|
|
1103
|
-
let contents = {};
|
|
1104
|
-
contents = _json(data);
|
|
1105
|
-
const response = {
|
|
1106
|
-
$metadata: deserializeMetadata(output),
|
|
1107
|
-
...contents,
|
|
1108
|
-
};
|
|
1109
|
-
return response;
|
|
1110
|
-
};
|
|
1111
|
-
export const de_StartServerCommand = async (output, context) => {
|
|
1112
|
-
if (output.statusCode >= 300) {
|
|
1113
|
-
return de_CommandError(output, context);
|
|
1114
|
-
}
|
|
1115
|
-
await collectBody(output.body, context);
|
|
1116
|
-
const response = {
|
|
1117
|
-
$metadata: deserializeMetadata(output),
|
|
1118
|
-
};
|
|
1119
|
-
return response;
|
|
1120
|
-
};
|
|
1121
|
-
export const de_StopServerCommand = async (output, context) => {
|
|
1122
|
-
if (output.statusCode >= 300) {
|
|
1123
|
-
return de_CommandError(output, context);
|
|
1124
|
-
}
|
|
1125
|
-
await collectBody(output.body, context);
|
|
1126
|
-
const response = {
|
|
1127
|
-
$metadata: deserializeMetadata(output),
|
|
1128
|
-
};
|
|
1129
|
-
return response;
|
|
1130
|
-
};
|
|
1131
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1132
|
-
if (output.statusCode >= 300) {
|
|
1133
|
-
return de_CommandError(output, context);
|
|
1134
|
-
}
|
|
1135
|
-
await collectBody(output.body, context);
|
|
1136
|
-
const response = {
|
|
1137
|
-
$metadata: deserializeMetadata(output),
|
|
1138
|
-
};
|
|
1139
|
-
return response;
|
|
1140
|
-
};
|
|
1141
|
-
export const de_TestConnectionCommand = async (output, context) => {
|
|
1142
|
-
if (output.statusCode >= 300) {
|
|
1143
|
-
return de_CommandError(output, context);
|
|
1144
|
-
}
|
|
1145
|
-
const data = await parseBody(output.body, context);
|
|
1146
|
-
let contents = {};
|
|
1147
|
-
contents = _json(data);
|
|
1148
|
-
const response = {
|
|
1149
|
-
$metadata: deserializeMetadata(output),
|
|
1150
|
-
...contents,
|
|
1151
|
-
};
|
|
1152
|
-
return response;
|
|
1153
|
-
};
|
|
1154
|
-
export const de_TestIdentityProviderCommand = async (output, context) => {
|
|
1155
|
-
if (output.statusCode >= 300) {
|
|
1156
|
-
return de_CommandError(output, context);
|
|
1157
|
-
}
|
|
1158
|
-
const data = await parseBody(output.body, context);
|
|
1159
|
-
let contents = {};
|
|
1160
|
-
contents = _json(data);
|
|
1161
|
-
const response = {
|
|
1162
|
-
$metadata: deserializeMetadata(output),
|
|
1163
|
-
...contents,
|
|
1164
|
-
};
|
|
1165
|
-
return response;
|
|
1166
|
-
};
|
|
1167
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1168
|
-
if (output.statusCode >= 300) {
|
|
1169
|
-
return de_CommandError(output, context);
|
|
1170
|
-
}
|
|
1171
|
-
await collectBody(output.body, context);
|
|
1172
|
-
const response = {
|
|
1173
|
-
$metadata: deserializeMetadata(output),
|
|
1174
|
-
};
|
|
1175
|
-
return response;
|
|
1176
|
-
};
|
|
1177
|
-
export const de_UpdateAccessCommand = async (output, context) => {
|
|
1178
|
-
if (output.statusCode >= 300) {
|
|
1179
|
-
return de_CommandError(output, context);
|
|
1180
|
-
}
|
|
1181
|
-
const data = await parseBody(output.body, context);
|
|
1182
|
-
let contents = {};
|
|
1183
|
-
contents = _json(data);
|
|
1184
|
-
const response = {
|
|
1185
|
-
$metadata: deserializeMetadata(output),
|
|
1186
|
-
...contents,
|
|
1187
|
-
};
|
|
1188
|
-
return response;
|
|
1189
|
-
};
|
|
1190
|
-
export const de_UpdateAgreementCommand = async (output, context) => {
|
|
1191
|
-
if (output.statusCode >= 300) {
|
|
1192
|
-
return de_CommandError(output, context);
|
|
1193
|
-
}
|
|
1194
|
-
const data = await parseBody(output.body, context);
|
|
1195
|
-
let contents = {};
|
|
1196
|
-
contents = _json(data);
|
|
1197
|
-
const response = {
|
|
1198
|
-
$metadata: deserializeMetadata(output),
|
|
1199
|
-
...contents,
|
|
1200
|
-
};
|
|
1201
|
-
return response;
|
|
1202
|
-
};
|
|
1203
|
-
export const de_UpdateCertificateCommand = async (output, context) => {
|
|
1204
|
-
if (output.statusCode >= 300) {
|
|
1205
|
-
return de_CommandError(output, context);
|
|
1206
|
-
}
|
|
1207
|
-
const data = await parseBody(output.body, context);
|
|
1208
|
-
let contents = {};
|
|
1209
|
-
contents = _json(data);
|
|
1210
|
-
const response = {
|
|
1211
|
-
$metadata: deserializeMetadata(output),
|
|
1212
|
-
...contents,
|
|
1213
|
-
};
|
|
1214
|
-
return response;
|
|
1215
|
-
};
|
|
1216
|
-
export const de_UpdateConnectorCommand = async (output, context) => {
|
|
1217
|
-
if (output.statusCode >= 300) {
|
|
1218
|
-
return de_CommandError(output, context);
|
|
1219
|
-
}
|
|
1220
|
-
const data = await parseBody(output.body, context);
|
|
1221
|
-
let contents = {};
|
|
1222
|
-
contents = _json(data);
|
|
1223
|
-
const response = {
|
|
1224
|
-
$metadata: deserializeMetadata(output),
|
|
1225
|
-
...contents,
|
|
1226
|
-
};
|
|
1227
|
-
return response;
|
|
1228
|
-
};
|
|
1229
|
-
export const de_UpdateHostKeyCommand = async (output, context) => {
|
|
1230
|
-
if (output.statusCode >= 300) {
|
|
1231
|
-
return de_CommandError(output, context);
|
|
1232
|
-
}
|
|
1233
|
-
const data = await parseBody(output.body, context);
|
|
1234
|
-
let contents = {};
|
|
1235
|
-
contents = _json(data);
|
|
1236
|
-
const response = {
|
|
1237
|
-
$metadata: deserializeMetadata(output),
|
|
1238
|
-
...contents,
|
|
1239
|
-
};
|
|
1240
|
-
return response;
|
|
1241
|
-
};
|
|
1242
|
-
export const de_UpdateProfileCommand = async (output, context) => {
|
|
1243
|
-
if (output.statusCode >= 300) {
|
|
1244
|
-
return de_CommandError(output, context);
|
|
1245
|
-
}
|
|
1246
|
-
const data = await parseBody(output.body, context);
|
|
1247
|
-
let contents = {};
|
|
1248
|
-
contents = _json(data);
|
|
1249
|
-
const response = {
|
|
1250
|
-
$metadata: deserializeMetadata(output),
|
|
1251
|
-
...contents,
|
|
1252
|
-
};
|
|
1253
|
-
return response;
|
|
1254
|
-
};
|
|
1255
|
-
export const de_UpdateServerCommand = async (output, context) => {
|
|
1256
|
-
if (output.statusCode >= 300) {
|
|
1257
|
-
return de_CommandError(output, context);
|
|
1258
|
-
}
|
|
1259
|
-
const data = await parseBody(output.body, context);
|
|
1260
|
-
let contents = {};
|
|
1261
|
-
contents = _json(data);
|
|
1262
|
-
const response = {
|
|
1263
|
-
$metadata: deserializeMetadata(output),
|
|
1264
|
-
...contents,
|
|
1265
|
-
};
|
|
1266
|
-
return response;
|
|
1267
|
-
};
|
|
1268
|
-
export const de_UpdateUserCommand = async (output, context) => {
|
|
1269
|
-
if (output.statusCode >= 300) {
|
|
1270
|
-
return de_CommandError(output, context);
|
|
1271
|
-
}
|
|
1272
|
-
const data = await parseBody(output.body, context);
|
|
1273
|
-
let contents = {};
|
|
1274
|
-
contents = _json(data);
|
|
1275
|
-
const response = {
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
...contents,
|
|
1278
|
-
};
|
|
1279
|
-
return response;
|
|
1280
|
-
};
|
|
1281
|
-
export const de_UpdateWebAppCommand = async (output, context) => {
|
|
1282
|
-
if (output.statusCode >= 300) {
|
|
1283
|
-
return de_CommandError(output, context);
|
|
1284
|
-
}
|
|
1285
|
-
const data = await parseBody(output.body, context);
|
|
1286
|
-
let contents = {};
|
|
1287
|
-
contents = _json(data);
|
|
1288
|
-
const response = {
|
|
1289
|
-
$metadata: deserializeMetadata(output),
|
|
1290
|
-
...contents,
|
|
1291
|
-
};
|
|
1292
|
-
return response;
|
|
1293
|
-
};
|
|
1294
|
-
export const de_UpdateWebAppCustomizationCommand = async (output, context) => {
|
|
1295
|
-
if (output.statusCode >= 300) {
|
|
1296
|
-
return de_CommandError(output, context);
|
|
1297
|
-
}
|
|
1298
|
-
const data = await parseBody(output.body, context);
|
|
1299
|
-
let contents = {};
|
|
1300
|
-
contents = _json(data);
|
|
1301
|
-
const response = {
|
|
1302
|
-
$metadata: deserializeMetadata(output),
|
|
1303
|
-
...contents,
|
|
1304
|
-
};
|
|
1305
|
-
return response;
|
|
1306
|
-
};
|
|
1307
|
-
const de_CommandError = async (output, context) => {
|
|
1308
|
-
const parsedOutput = {
|
|
1309
|
-
...output,
|
|
1310
|
-
body: await parseErrorBody(output.body, context),
|
|
1311
|
-
};
|
|
1312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
|
-
switch (errorCode) {
|
|
1314
|
-
case "InternalServiceError":
|
|
1315
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1316
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1317
|
-
case "InvalidRequestException":
|
|
1318
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1319
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ResourceExistsException":
|
|
1321
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
1322
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "ResourceNotFoundException":
|
|
1324
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1325
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "ServiceUnavailableException":
|
|
1327
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1328
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1329
|
-
case "ThrottlingException":
|
|
1330
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
1331
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1332
|
-
case "AccessDeniedException":
|
|
1333
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
1334
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1335
|
-
case "ConflictException":
|
|
1336
|
-
case "com.amazonaws.transfer#ConflictException":
|
|
1337
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1338
|
-
case "InvalidNextTokenException":
|
|
1339
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1340
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1341
|
-
default:
|
|
1342
|
-
const parsedBody = parsedOutput.body;
|
|
1343
|
-
return throwDefaultError({
|
|
1344
|
-
output,
|
|
1345
|
-
parsedBody,
|
|
1346
|
-
errorCode,
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
};
|
|
1350
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1351
|
-
const body = parsedOutput.body;
|
|
1352
|
-
const deserialized = _json(body);
|
|
1353
|
-
const exception = new AccessDeniedException({
|
|
1354
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1355
|
-
...deserialized,
|
|
1356
|
-
});
|
|
1357
|
-
return __decorateServiceException(exception, body);
|
|
1358
|
-
};
|
|
1359
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1360
|
-
const body = parsedOutput.body;
|
|
1361
|
-
const deserialized = _json(body);
|
|
1362
|
-
const exception = new ConflictException({
|
|
1363
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1364
|
-
...deserialized,
|
|
1365
|
-
});
|
|
1366
|
-
return __decorateServiceException(exception, body);
|
|
1367
|
-
};
|
|
1368
|
-
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
1369
|
-
const body = parsedOutput.body;
|
|
1370
|
-
const deserialized = _json(body);
|
|
1371
|
-
const exception = new InternalServiceError({
|
|
1372
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1373
|
-
...deserialized,
|
|
1374
|
-
});
|
|
1375
|
-
return __decorateServiceException(exception, body);
|
|
1376
|
-
};
|
|
1377
|
-
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1378
|
-
const body = parsedOutput.body;
|
|
1379
|
-
const deserialized = _json(body);
|
|
1380
|
-
const exception = new InvalidNextTokenException({
|
|
1381
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1382
|
-
...deserialized,
|
|
1383
|
-
});
|
|
1384
|
-
return __decorateServiceException(exception, body);
|
|
1385
|
-
};
|
|
1386
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1387
|
-
const body = parsedOutput.body;
|
|
1388
|
-
const deserialized = _json(body);
|
|
1389
|
-
const exception = new InvalidRequestException({
|
|
1390
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1391
|
-
...deserialized,
|
|
1392
|
-
});
|
|
1393
|
-
return __decorateServiceException(exception, body);
|
|
1394
|
-
};
|
|
1395
|
-
const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
|
|
1396
|
-
const body = parsedOutput.body;
|
|
1397
|
-
const deserialized = _json(body);
|
|
1398
|
-
const exception = new ResourceExistsException({
|
|
1399
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1400
|
-
...deserialized,
|
|
1401
|
-
});
|
|
1402
|
-
return __decorateServiceException(exception, body);
|
|
1403
|
-
};
|
|
1404
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1405
|
-
const body = parsedOutput.body;
|
|
1406
|
-
const deserialized = _json(body);
|
|
1407
|
-
const exception = new ResourceNotFoundException({
|
|
1408
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1409
|
-
...deserialized,
|
|
1410
|
-
});
|
|
1411
|
-
return __decorateServiceException(exception, body);
|
|
1412
|
-
};
|
|
1413
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1414
|
-
const body = parsedOutput.body;
|
|
1415
|
-
const deserialized = _json(body);
|
|
1416
|
-
const exception = new ServiceUnavailableException({
|
|
1417
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1418
|
-
...deserialized,
|
|
1419
|
-
});
|
|
1420
|
-
return __decorateServiceException(exception, body);
|
|
1421
|
-
};
|
|
1422
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1423
|
-
const body = parsedOutput.body;
|
|
1424
|
-
const deserialized = _json(body);
|
|
1425
|
-
const exception = new ThrottlingException({
|
|
1426
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1427
|
-
...deserialized,
|
|
1428
|
-
});
|
|
1429
|
-
return __decorateServiceException(exception, body);
|
|
1430
|
-
};
|
|
1431
|
-
const se_ImportCertificateRequest = (input, context) => {
|
|
1432
|
-
return take(input, {
|
|
1433
|
-
ActiveDate: (_) => _.getTime() / 1_000,
|
|
1434
|
-
Certificate: [],
|
|
1435
|
-
CertificateChain: [],
|
|
1436
|
-
Description: [],
|
|
1437
|
-
InactiveDate: (_) => _.getTime() / 1_000,
|
|
1438
|
-
PrivateKey: [],
|
|
1439
|
-
Tags: _json,
|
|
1440
|
-
Usage: [],
|
|
1441
|
-
});
|
|
1442
|
-
};
|
|
1443
|
-
const se_UpdateCertificateRequest = (input, context) => {
|
|
1444
|
-
return take(input, {
|
|
1445
|
-
ActiveDate: (_) => _.getTime() / 1_000,
|
|
1446
|
-
CertificateId: [],
|
|
1447
|
-
Description: [],
|
|
1448
|
-
InactiveDate: (_) => _.getTime() / 1_000,
|
|
1449
|
-
});
|
|
1450
|
-
};
|
|
1451
|
-
const se_UpdateWebAppCustomizationRequest = (input, context) => {
|
|
1452
|
-
return take(input, {
|
|
1453
|
-
FaviconFile: context.base64Encoder,
|
|
1454
|
-
LogoFile: context.base64Encoder,
|
|
1455
|
-
Title: [],
|
|
1456
|
-
WebAppId: [],
|
|
1457
|
-
});
|
|
1458
|
-
};
|
|
1459
|
-
const de_DescribeCertificateResponse = (output, context) => {
|
|
1460
|
-
return take(output, {
|
|
1461
|
-
Certificate: (_) => de_DescribedCertificate(_, context),
|
|
1462
|
-
});
|
|
1463
|
-
};
|
|
1464
|
-
const de_DescribedCertificate = (output, context) => {
|
|
1465
|
-
return take(output, {
|
|
1466
|
-
ActiveDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1467
|
-
Arn: __expectString,
|
|
1468
|
-
Certificate: __expectString,
|
|
1469
|
-
CertificateChain: __expectString,
|
|
1470
|
-
CertificateId: __expectString,
|
|
1471
|
-
Description: __expectString,
|
|
1472
|
-
InactiveDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1473
|
-
NotAfterDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1474
|
-
NotBeforeDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1475
|
-
Serial: __expectString,
|
|
1476
|
-
Status: __expectString,
|
|
1477
|
-
Tags: _json,
|
|
1478
|
-
Type: __expectString,
|
|
1479
|
-
Usage: __expectString,
|
|
1480
|
-
});
|
|
1481
|
-
};
|
|
1482
|
-
const de_DescribedHostKey = (output, context) => {
|
|
1483
|
-
return take(output, {
|
|
1484
|
-
Arn: __expectString,
|
|
1485
|
-
DateImported: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1486
|
-
Description: __expectString,
|
|
1487
|
-
HostKeyFingerprint: __expectString,
|
|
1488
|
-
HostKeyId: __expectString,
|
|
1489
|
-
Tags: _json,
|
|
1490
|
-
Type: __expectString,
|
|
1491
|
-
});
|
|
1492
|
-
};
|
|
1493
|
-
const de_DescribedUser = (output, context) => {
|
|
1494
|
-
return take(output, {
|
|
1495
|
-
Arn: __expectString,
|
|
1496
|
-
HomeDirectory: __expectString,
|
|
1497
|
-
HomeDirectoryMappings: _json,
|
|
1498
|
-
HomeDirectoryType: __expectString,
|
|
1499
|
-
Policy: __expectString,
|
|
1500
|
-
PosixProfile: _json,
|
|
1501
|
-
Role: __expectString,
|
|
1502
|
-
SshPublicKeys: (_) => de_SshPublicKeys(_, context),
|
|
1503
|
-
Tags: _json,
|
|
1504
|
-
UserName: __expectString,
|
|
1505
|
-
});
|
|
1506
|
-
};
|
|
1507
|
-
const de_DescribedWebAppCustomization = (output, context) => {
|
|
1508
|
-
return take(output, {
|
|
1509
|
-
Arn: __expectString,
|
|
1510
|
-
FaviconFile: context.base64Decoder,
|
|
1511
|
-
LogoFile: context.base64Decoder,
|
|
1512
|
-
Title: __expectString,
|
|
1513
|
-
WebAppId: __expectString,
|
|
1514
|
-
});
|
|
1515
|
-
};
|
|
1516
|
-
const de_DescribeHostKeyResponse = (output, context) => {
|
|
1517
|
-
return take(output, {
|
|
1518
|
-
HostKey: (_) => de_DescribedHostKey(_, context),
|
|
1519
|
-
});
|
|
1520
|
-
};
|
|
1521
|
-
const de_DescribeUserResponse = (output, context) => {
|
|
1522
|
-
return take(output, {
|
|
1523
|
-
ServerId: __expectString,
|
|
1524
|
-
User: (_) => de_DescribedUser(_, context),
|
|
1525
|
-
});
|
|
1526
|
-
};
|
|
1527
|
-
const de_DescribeWebAppCustomizationResponse = (output, context) => {
|
|
1528
|
-
return take(output, {
|
|
1529
|
-
WebAppCustomization: (_) => de_DescribedWebAppCustomization(_, context),
|
|
1530
|
-
});
|
|
1531
|
-
};
|
|
1532
|
-
const de_ListCertificatesResponse = (output, context) => {
|
|
1533
|
-
return take(output, {
|
|
1534
|
-
Certificates: (_) => de_ListedCertificates(_, context),
|
|
1535
|
-
NextToken: __expectString,
|
|
1536
|
-
});
|
|
1537
|
-
};
|
|
1538
|
-
const de_ListedCertificate = (output, context) => {
|
|
1539
|
-
return take(output, {
|
|
1540
|
-
ActiveDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1541
|
-
Arn: __expectString,
|
|
1542
|
-
CertificateId: __expectString,
|
|
1543
|
-
Description: __expectString,
|
|
1544
|
-
InactiveDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1545
|
-
Status: __expectString,
|
|
1546
|
-
Type: __expectString,
|
|
1547
|
-
Usage: __expectString,
|
|
1548
|
-
});
|
|
1549
|
-
};
|
|
1550
|
-
const de_ListedCertificates = (output, context) => {
|
|
1551
|
-
const retVal = (output || [])
|
|
1552
|
-
.filter((e) => e != null)
|
|
1553
|
-
.map((entry) => {
|
|
1554
|
-
return de_ListedCertificate(entry, context);
|
|
1555
|
-
});
|
|
1556
|
-
return retVal;
|
|
1557
|
-
};
|
|
1558
|
-
const de_ListedHostKey = (output, context) => {
|
|
1559
|
-
return take(output, {
|
|
1560
|
-
Arn: __expectString,
|
|
1561
|
-
DateImported: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1562
|
-
Description: __expectString,
|
|
1563
|
-
Fingerprint: __expectString,
|
|
1564
|
-
HostKeyId: __expectString,
|
|
1565
|
-
Type: __expectString,
|
|
1566
|
-
});
|
|
1567
|
-
};
|
|
1568
|
-
const de_ListedHostKeys = (output, context) => {
|
|
1569
|
-
const retVal = (output || [])
|
|
1570
|
-
.filter((e) => e != null)
|
|
1571
|
-
.map((entry) => {
|
|
1572
|
-
return de_ListedHostKey(entry, context);
|
|
1573
|
-
});
|
|
1574
|
-
return retVal;
|
|
1575
|
-
};
|
|
1576
|
-
const de_ListHostKeysResponse = (output, context) => {
|
|
1577
|
-
return take(output, {
|
|
1578
|
-
HostKeys: (_) => de_ListedHostKeys(_, context),
|
|
1579
|
-
NextToken: __expectString,
|
|
1580
|
-
ServerId: __expectString,
|
|
1581
|
-
});
|
|
1582
|
-
};
|
|
1583
|
-
const de_SshPublicKey = (output, context) => {
|
|
1584
|
-
return take(output, {
|
|
1585
|
-
DateImported: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1586
|
-
SshPublicKeyBody: __expectString,
|
|
1587
|
-
SshPublicKeyId: __expectString,
|
|
1588
|
-
});
|
|
1589
|
-
};
|
|
1590
|
-
const de_SshPublicKeys = (output, context) => {
|
|
1591
|
-
const retVal = (output || [])
|
|
1592
|
-
.filter((e) => e != null)
|
|
1593
|
-
.map((entry) => {
|
|
1594
|
-
return de_SshPublicKey(entry, context);
|
|
1595
|
-
});
|
|
1596
|
-
return retVal;
|
|
1597
|
-
};
|
|
1598
|
-
const deserializeMetadata = (output) => ({
|
|
1599
|
-
httpStatusCode: output.statusCode,
|
|
1600
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1601
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1602
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1603
|
-
});
|
|
1604
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1605
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1606
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1607
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1608
|
-
const contents = {
|
|
1609
|
-
protocol,
|
|
1610
|
-
hostname,
|
|
1611
|
-
port,
|
|
1612
|
-
method: "POST",
|
|
1613
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1614
|
-
headers,
|
|
1615
|
-
};
|
|
1616
|
-
if (resolvedHostname !== undefined) {
|
|
1617
|
-
contents.hostname = resolvedHostname;
|
|
1618
|
-
}
|
|
1619
|
-
if (body !== undefined) {
|
|
1620
|
-
contents.body = body;
|
|
1621
|
-
}
|
|
1622
|
-
return new __HttpRequest(contents);
|
|
1623
|
-
};
|
|
1624
|
-
function sharedHeaders(operation) {
|
|
1625
|
-
return {
|
|
1626
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1627
|
-
"x-amz-target": `TransferService.${operation}`,
|
|
1628
|
-
};
|
|
1629
|
-
}
|