@aws-sdk/client-transfer 3.310.0 → 3.312.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/protocols/Aws_json1_1.js +64 -232
- package/dist-es/protocols/Aws_json1_1.js +64 -232
- package/package.json +2 -2
|
@@ -8,580 +8,406 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const TransferServiceException_1 = require("../models/TransferServiceException");
|
|
10
10
|
const se_CreateAccessCommand = async (input, context) => {
|
|
11
|
-
const headers =
|
|
12
|
-
"content-type": "application/x-amz-json-1.1",
|
|
13
|
-
"x-amz-target": "TransferService.CreateAccess",
|
|
14
|
-
};
|
|
11
|
+
const headers = sharedHeaders("CreateAccess");
|
|
15
12
|
let body;
|
|
16
13
|
body = JSON.stringify(se_CreateAccessRequest(input, context));
|
|
17
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
15
|
};
|
|
19
16
|
exports.se_CreateAccessCommand = se_CreateAccessCommand;
|
|
20
17
|
const se_CreateAgreementCommand = async (input, context) => {
|
|
21
|
-
const headers =
|
|
22
|
-
"content-type": "application/x-amz-json-1.1",
|
|
23
|
-
"x-amz-target": "TransferService.CreateAgreement",
|
|
24
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CreateAgreement");
|
|
25
19
|
let body;
|
|
26
20
|
body = JSON.stringify(se_CreateAgreementRequest(input, context));
|
|
27
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
22
|
};
|
|
29
23
|
exports.se_CreateAgreementCommand = se_CreateAgreementCommand;
|
|
30
24
|
const se_CreateConnectorCommand = async (input, context) => {
|
|
31
|
-
const headers =
|
|
32
|
-
"content-type": "application/x-amz-json-1.1",
|
|
33
|
-
"x-amz-target": "TransferService.CreateConnector",
|
|
34
|
-
};
|
|
25
|
+
const headers = sharedHeaders("CreateConnector");
|
|
35
26
|
let body;
|
|
36
27
|
body = JSON.stringify(se_CreateConnectorRequest(input, context));
|
|
37
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
29
|
};
|
|
39
30
|
exports.se_CreateConnectorCommand = se_CreateConnectorCommand;
|
|
40
31
|
const se_CreateProfileCommand = async (input, context) => {
|
|
41
|
-
const headers =
|
|
42
|
-
"content-type": "application/x-amz-json-1.1",
|
|
43
|
-
"x-amz-target": "TransferService.CreateProfile",
|
|
44
|
-
};
|
|
32
|
+
const headers = sharedHeaders("CreateProfile");
|
|
45
33
|
let body;
|
|
46
34
|
body = JSON.stringify(se_CreateProfileRequest(input, context));
|
|
47
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
36
|
};
|
|
49
37
|
exports.se_CreateProfileCommand = se_CreateProfileCommand;
|
|
50
38
|
const se_CreateServerCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "TransferService.CreateServer",
|
|
54
|
-
};
|
|
39
|
+
const headers = sharedHeaders("CreateServer");
|
|
55
40
|
let body;
|
|
56
41
|
body = JSON.stringify(se_CreateServerRequest(input, context));
|
|
57
42
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
43
|
};
|
|
59
44
|
exports.se_CreateServerCommand = se_CreateServerCommand;
|
|
60
45
|
const se_CreateUserCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.1",
|
|
63
|
-
"x-amz-target": "TransferService.CreateUser",
|
|
64
|
-
};
|
|
46
|
+
const headers = sharedHeaders("CreateUser");
|
|
65
47
|
let body;
|
|
66
48
|
body = JSON.stringify(se_CreateUserRequest(input, context));
|
|
67
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
50
|
};
|
|
69
51
|
exports.se_CreateUserCommand = se_CreateUserCommand;
|
|
70
52
|
const se_CreateWorkflowCommand = async (input, context) => {
|
|
71
|
-
const headers =
|
|
72
|
-
"content-type": "application/x-amz-json-1.1",
|
|
73
|
-
"x-amz-target": "TransferService.CreateWorkflow",
|
|
74
|
-
};
|
|
53
|
+
const headers = sharedHeaders("CreateWorkflow");
|
|
75
54
|
let body;
|
|
76
55
|
body = JSON.stringify(se_CreateWorkflowRequest(input, context));
|
|
77
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
57
|
};
|
|
79
58
|
exports.se_CreateWorkflowCommand = se_CreateWorkflowCommand;
|
|
80
59
|
const se_DeleteAccessCommand = async (input, context) => {
|
|
81
|
-
const headers =
|
|
82
|
-
"content-type": "application/x-amz-json-1.1",
|
|
83
|
-
"x-amz-target": "TransferService.DeleteAccess",
|
|
84
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DeleteAccess");
|
|
85
61
|
let body;
|
|
86
62
|
body = JSON.stringify(se_DeleteAccessRequest(input, context));
|
|
87
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
64
|
};
|
|
89
65
|
exports.se_DeleteAccessCommand = se_DeleteAccessCommand;
|
|
90
66
|
const se_DeleteAgreementCommand = async (input, context) => {
|
|
91
|
-
const headers =
|
|
92
|
-
"content-type": "application/x-amz-json-1.1",
|
|
93
|
-
"x-amz-target": "TransferService.DeleteAgreement",
|
|
94
|
-
};
|
|
67
|
+
const headers = sharedHeaders("DeleteAgreement");
|
|
95
68
|
let body;
|
|
96
69
|
body = JSON.stringify(se_DeleteAgreementRequest(input, context));
|
|
97
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
71
|
};
|
|
99
72
|
exports.se_DeleteAgreementCommand = se_DeleteAgreementCommand;
|
|
100
73
|
const se_DeleteCertificateCommand = async (input, context) => {
|
|
101
|
-
const headers =
|
|
102
|
-
"content-type": "application/x-amz-json-1.1",
|
|
103
|
-
"x-amz-target": "TransferService.DeleteCertificate",
|
|
104
|
-
};
|
|
74
|
+
const headers = sharedHeaders("DeleteCertificate");
|
|
105
75
|
let body;
|
|
106
76
|
body = JSON.stringify(se_DeleteCertificateRequest(input, context));
|
|
107
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
78
|
};
|
|
109
79
|
exports.se_DeleteCertificateCommand = se_DeleteCertificateCommand;
|
|
110
80
|
const se_DeleteConnectorCommand = async (input, context) => {
|
|
111
|
-
const headers =
|
|
112
|
-
"content-type": "application/x-amz-json-1.1",
|
|
113
|
-
"x-amz-target": "TransferService.DeleteConnector",
|
|
114
|
-
};
|
|
81
|
+
const headers = sharedHeaders("DeleteConnector");
|
|
115
82
|
let body;
|
|
116
83
|
body = JSON.stringify(se_DeleteConnectorRequest(input, context));
|
|
117
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
85
|
};
|
|
119
86
|
exports.se_DeleteConnectorCommand = se_DeleteConnectorCommand;
|
|
120
87
|
const se_DeleteHostKeyCommand = async (input, context) => {
|
|
121
|
-
const headers =
|
|
122
|
-
"content-type": "application/x-amz-json-1.1",
|
|
123
|
-
"x-amz-target": "TransferService.DeleteHostKey",
|
|
124
|
-
};
|
|
88
|
+
const headers = sharedHeaders("DeleteHostKey");
|
|
125
89
|
let body;
|
|
126
90
|
body = JSON.stringify(se_DeleteHostKeyRequest(input, context));
|
|
127
91
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
92
|
};
|
|
129
93
|
exports.se_DeleteHostKeyCommand = se_DeleteHostKeyCommand;
|
|
130
94
|
const se_DeleteProfileCommand = async (input, context) => {
|
|
131
|
-
const headers =
|
|
132
|
-
"content-type": "application/x-amz-json-1.1",
|
|
133
|
-
"x-amz-target": "TransferService.DeleteProfile",
|
|
134
|
-
};
|
|
95
|
+
const headers = sharedHeaders("DeleteProfile");
|
|
135
96
|
let body;
|
|
136
97
|
body = JSON.stringify(se_DeleteProfileRequest(input, context));
|
|
137
98
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
99
|
};
|
|
139
100
|
exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
|
|
140
101
|
const se_DeleteServerCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "TransferService.DeleteServer",
|
|
144
|
-
};
|
|
102
|
+
const headers = sharedHeaders("DeleteServer");
|
|
145
103
|
let body;
|
|
146
104
|
body = JSON.stringify(se_DeleteServerRequest(input, context));
|
|
147
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
106
|
};
|
|
149
107
|
exports.se_DeleteServerCommand = se_DeleteServerCommand;
|
|
150
108
|
const se_DeleteSshPublicKeyCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-amz-json-1.1",
|
|
153
|
-
"x-amz-target": "TransferService.DeleteSshPublicKey",
|
|
154
|
-
};
|
|
109
|
+
const headers = sharedHeaders("DeleteSshPublicKey");
|
|
155
110
|
let body;
|
|
156
111
|
body = JSON.stringify(se_DeleteSshPublicKeyRequest(input, context));
|
|
157
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
113
|
};
|
|
159
114
|
exports.se_DeleteSshPublicKeyCommand = se_DeleteSshPublicKeyCommand;
|
|
160
115
|
const se_DeleteUserCommand = async (input, context) => {
|
|
161
|
-
const headers =
|
|
162
|
-
"content-type": "application/x-amz-json-1.1",
|
|
163
|
-
"x-amz-target": "TransferService.DeleteUser",
|
|
164
|
-
};
|
|
116
|
+
const headers = sharedHeaders("DeleteUser");
|
|
165
117
|
let body;
|
|
166
118
|
body = JSON.stringify(se_DeleteUserRequest(input, context));
|
|
167
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
120
|
};
|
|
169
121
|
exports.se_DeleteUserCommand = se_DeleteUserCommand;
|
|
170
122
|
const se_DeleteWorkflowCommand = async (input, context) => {
|
|
171
|
-
const headers =
|
|
172
|
-
"content-type": "application/x-amz-json-1.1",
|
|
173
|
-
"x-amz-target": "TransferService.DeleteWorkflow",
|
|
174
|
-
};
|
|
123
|
+
const headers = sharedHeaders("DeleteWorkflow");
|
|
175
124
|
let body;
|
|
176
125
|
body = JSON.stringify(se_DeleteWorkflowRequest(input, context));
|
|
177
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
127
|
};
|
|
179
128
|
exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
|
|
180
129
|
const se_DescribeAccessCommand = async (input, context) => {
|
|
181
|
-
const headers =
|
|
182
|
-
"content-type": "application/x-amz-json-1.1",
|
|
183
|
-
"x-amz-target": "TransferService.DescribeAccess",
|
|
184
|
-
};
|
|
130
|
+
const headers = sharedHeaders("DescribeAccess");
|
|
185
131
|
let body;
|
|
186
132
|
body = JSON.stringify(se_DescribeAccessRequest(input, context));
|
|
187
133
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
188
134
|
};
|
|
189
135
|
exports.se_DescribeAccessCommand = se_DescribeAccessCommand;
|
|
190
136
|
const se_DescribeAgreementCommand = async (input, context) => {
|
|
191
|
-
const headers =
|
|
192
|
-
"content-type": "application/x-amz-json-1.1",
|
|
193
|
-
"x-amz-target": "TransferService.DescribeAgreement",
|
|
194
|
-
};
|
|
137
|
+
const headers = sharedHeaders("DescribeAgreement");
|
|
195
138
|
let body;
|
|
196
139
|
body = JSON.stringify(se_DescribeAgreementRequest(input, context));
|
|
197
140
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
141
|
};
|
|
199
142
|
exports.se_DescribeAgreementCommand = se_DescribeAgreementCommand;
|
|
200
143
|
const se_DescribeCertificateCommand = async (input, context) => {
|
|
201
|
-
const headers =
|
|
202
|
-
"content-type": "application/x-amz-json-1.1",
|
|
203
|
-
"x-amz-target": "TransferService.DescribeCertificate",
|
|
204
|
-
};
|
|
144
|
+
const headers = sharedHeaders("DescribeCertificate");
|
|
205
145
|
let body;
|
|
206
146
|
body = JSON.stringify(se_DescribeCertificateRequest(input, context));
|
|
207
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
148
|
};
|
|
209
149
|
exports.se_DescribeCertificateCommand = se_DescribeCertificateCommand;
|
|
210
150
|
const se_DescribeConnectorCommand = async (input, context) => {
|
|
211
|
-
const headers =
|
|
212
|
-
"content-type": "application/x-amz-json-1.1",
|
|
213
|
-
"x-amz-target": "TransferService.DescribeConnector",
|
|
214
|
-
};
|
|
151
|
+
const headers = sharedHeaders("DescribeConnector");
|
|
215
152
|
let body;
|
|
216
153
|
body = JSON.stringify(se_DescribeConnectorRequest(input, context));
|
|
217
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
155
|
};
|
|
219
156
|
exports.se_DescribeConnectorCommand = se_DescribeConnectorCommand;
|
|
220
157
|
const se_DescribeExecutionCommand = async (input, context) => {
|
|
221
|
-
const headers =
|
|
222
|
-
"content-type": "application/x-amz-json-1.1",
|
|
223
|
-
"x-amz-target": "TransferService.DescribeExecution",
|
|
224
|
-
};
|
|
158
|
+
const headers = sharedHeaders("DescribeExecution");
|
|
225
159
|
let body;
|
|
226
160
|
body = JSON.stringify(se_DescribeExecutionRequest(input, context));
|
|
227
161
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
162
|
};
|
|
229
163
|
exports.se_DescribeExecutionCommand = se_DescribeExecutionCommand;
|
|
230
164
|
const se_DescribeHostKeyCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "TransferService.DescribeHostKey",
|
|
234
|
-
};
|
|
165
|
+
const headers = sharedHeaders("DescribeHostKey");
|
|
235
166
|
let body;
|
|
236
167
|
body = JSON.stringify(se_DescribeHostKeyRequest(input, context));
|
|
237
168
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
169
|
};
|
|
239
170
|
exports.se_DescribeHostKeyCommand = se_DescribeHostKeyCommand;
|
|
240
171
|
const se_DescribeProfileCommand = async (input, context) => {
|
|
241
|
-
const headers =
|
|
242
|
-
"content-type": "application/x-amz-json-1.1",
|
|
243
|
-
"x-amz-target": "TransferService.DescribeProfile",
|
|
244
|
-
};
|
|
172
|
+
const headers = sharedHeaders("DescribeProfile");
|
|
245
173
|
let body;
|
|
246
174
|
body = JSON.stringify(se_DescribeProfileRequest(input, context));
|
|
247
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
176
|
};
|
|
249
177
|
exports.se_DescribeProfileCommand = se_DescribeProfileCommand;
|
|
250
178
|
const se_DescribeSecurityPolicyCommand = async (input, context) => {
|
|
251
|
-
const headers =
|
|
252
|
-
"content-type": "application/x-amz-json-1.1",
|
|
253
|
-
"x-amz-target": "TransferService.DescribeSecurityPolicy",
|
|
254
|
-
};
|
|
179
|
+
const headers = sharedHeaders("DescribeSecurityPolicy");
|
|
255
180
|
let body;
|
|
256
181
|
body = JSON.stringify(se_DescribeSecurityPolicyRequest(input, context));
|
|
257
182
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
183
|
};
|
|
259
184
|
exports.se_DescribeSecurityPolicyCommand = se_DescribeSecurityPolicyCommand;
|
|
260
185
|
const se_DescribeServerCommand = async (input, context) => {
|
|
261
|
-
const headers =
|
|
262
|
-
"content-type": "application/x-amz-json-1.1",
|
|
263
|
-
"x-amz-target": "TransferService.DescribeServer",
|
|
264
|
-
};
|
|
186
|
+
const headers = sharedHeaders("DescribeServer");
|
|
265
187
|
let body;
|
|
266
188
|
body = JSON.stringify(se_DescribeServerRequest(input, context));
|
|
267
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
190
|
};
|
|
269
191
|
exports.se_DescribeServerCommand = se_DescribeServerCommand;
|
|
270
192
|
const se_DescribeUserCommand = async (input, context) => {
|
|
271
|
-
const headers =
|
|
272
|
-
"content-type": "application/x-amz-json-1.1",
|
|
273
|
-
"x-amz-target": "TransferService.DescribeUser",
|
|
274
|
-
};
|
|
193
|
+
const headers = sharedHeaders("DescribeUser");
|
|
275
194
|
let body;
|
|
276
195
|
body = JSON.stringify(se_DescribeUserRequest(input, context));
|
|
277
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
278
197
|
};
|
|
279
198
|
exports.se_DescribeUserCommand = se_DescribeUserCommand;
|
|
280
199
|
const se_DescribeWorkflowCommand = async (input, context) => {
|
|
281
|
-
const headers =
|
|
282
|
-
"content-type": "application/x-amz-json-1.1",
|
|
283
|
-
"x-amz-target": "TransferService.DescribeWorkflow",
|
|
284
|
-
};
|
|
200
|
+
const headers = sharedHeaders("DescribeWorkflow");
|
|
285
201
|
let body;
|
|
286
202
|
body = JSON.stringify(se_DescribeWorkflowRequest(input, context));
|
|
287
203
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
204
|
};
|
|
289
205
|
exports.se_DescribeWorkflowCommand = se_DescribeWorkflowCommand;
|
|
290
206
|
const se_ImportCertificateCommand = async (input, context) => {
|
|
291
|
-
const headers =
|
|
292
|
-
"content-type": "application/x-amz-json-1.1",
|
|
293
|
-
"x-amz-target": "TransferService.ImportCertificate",
|
|
294
|
-
};
|
|
207
|
+
const headers = sharedHeaders("ImportCertificate");
|
|
295
208
|
let body;
|
|
296
209
|
body = JSON.stringify(se_ImportCertificateRequest(input, context));
|
|
297
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
211
|
};
|
|
299
212
|
exports.se_ImportCertificateCommand = se_ImportCertificateCommand;
|
|
300
213
|
const se_ImportHostKeyCommand = async (input, context) => {
|
|
301
|
-
const headers =
|
|
302
|
-
"content-type": "application/x-amz-json-1.1",
|
|
303
|
-
"x-amz-target": "TransferService.ImportHostKey",
|
|
304
|
-
};
|
|
214
|
+
const headers = sharedHeaders("ImportHostKey");
|
|
305
215
|
let body;
|
|
306
216
|
body = JSON.stringify(se_ImportHostKeyRequest(input, context));
|
|
307
217
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
218
|
};
|
|
309
219
|
exports.se_ImportHostKeyCommand = se_ImportHostKeyCommand;
|
|
310
220
|
const se_ImportSshPublicKeyCommand = async (input, context) => {
|
|
311
|
-
const headers =
|
|
312
|
-
"content-type": "application/x-amz-json-1.1",
|
|
313
|
-
"x-amz-target": "TransferService.ImportSshPublicKey",
|
|
314
|
-
};
|
|
221
|
+
const headers = sharedHeaders("ImportSshPublicKey");
|
|
315
222
|
let body;
|
|
316
223
|
body = JSON.stringify(se_ImportSshPublicKeyRequest(input, context));
|
|
317
224
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
225
|
};
|
|
319
226
|
exports.se_ImportSshPublicKeyCommand = se_ImportSshPublicKeyCommand;
|
|
320
227
|
const se_ListAccessesCommand = async (input, context) => {
|
|
321
|
-
const headers =
|
|
322
|
-
"content-type": "application/x-amz-json-1.1",
|
|
323
|
-
"x-amz-target": "TransferService.ListAccesses",
|
|
324
|
-
};
|
|
228
|
+
const headers = sharedHeaders("ListAccesses");
|
|
325
229
|
let body;
|
|
326
230
|
body = JSON.stringify(se_ListAccessesRequest(input, context));
|
|
327
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
232
|
};
|
|
329
233
|
exports.se_ListAccessesCommand = se_ListAccessesCommand;
|
|
330
234
|
const se_ListAgreementsCommand = async (input, context) => {
|
|
331
|
-
const headers =
|
|
332
|
-
"content-type": "application/x-amz-json-1.1",
|
|
333
|
-
"x-amz-target": "TransferService.ListAgreements",
|
|
334
|
-
};
|
|
235
|
+
const headers = sharedHeaders("ListAgreements");
|
|
335
236
|
let body;
|
|
336
237
|
body = JSON.stringify(se_ListAgreementsRequest(input, context));
|
|
337
238
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
239
|
};
|
|
339
240
|
exports.se_ListAgreementsCommand = se_ListAgreementsCommand;
|
|
340
241
|
const se_ListCertificatesCommand = async (input, context) => {
|
|
341
|
-
const headers =
|
|
342
|
-
"content-type": "application/x-amz-json-1.1",
|
|
343
|
-
"x-amz-target": "TransferService.ListCertificates",
|
|
344
|
-
};
|
|
242
|
+
const headers = sharedHeaders("ListCertificates");
|
|
345
243
|
let body;
|
|
346
244
|
body = JSON.stringify(se_ListCertificatesRequest(input, context));
|
|
347
245
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
348
246
|
};
|
|
349
247
|
exports.se_ListCertificatesCommand = se_ListCertificatesCommand;
|
|
350
248
|
const se_ListConnectorsCommand = async (input, context) => {
|
|
351
|
-
const headers =
|
|
352
|
-
"content-type": "application/x-amz-json-1.1",
|
|
353
|
-
"x-amz-target": "TransferService.ListConnectors",
|
|
354
|
-
};
|
|
249
|
+
const headers = sharedHeaders("ListConnectors");
|
|
355
250
|
let body;
|
|
356
251
|
body = JSON.stringify(se_ListConnectorsRequest(input, context));
|
|
357
252
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
358
253
|
};
|
|
359
254
|
exports.se_ListConnectorsCommand = se_ListConnectorsCommand;
|
|
360
255
|
const se_ListExecutionsCommand = async (input, context) => {
|
|
361
|
-
const headers =
|
|
362
|
-
"content-type": "application/x-amz-json-1.1",
|
|
363
|
-
"x-amz-target": "TransferService.ListExecutions",
|
|
364
|
-
};
|
|
256
|
+
const headers = sharedHeaders("ListExecutions");
|
|
365
257
|
let body;
|
|
366
258
|
body = JSON.stringify(se_ListExecutionsRequest(input, context));
|
|
367
259
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
368
260
|
};
|
|
369
261
|
exports.se_ListExecutionsCommand = se_ListExecutionsCommand;
|
|
370
262
|
const se_ListHostKeysCommand = async (input, context) => {
|
|
371
|
-
const headers =
|
|
372
|
-
"content-type": "application/x-amz-json-1.1",
|
|
373
|
-
"x-amz-target": "TransferService.ListHostKeys",
|
|
374
|
-
};
|
|
263
|
+
const headers = sharedHeaders("ListHostKeys");
|
|
375
264
|
let body;
|
|
376
265
|
body = JSON.stringify(se_ListHostKeysRequest(input, context));
|
|
377
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
378
267
|
};
|
|
379
268
|
exports.se_ListHostKeysCommand = se_ListHostKeysCommand;
|
|
380
269
|
const se_ListProfilesCommand = async (input, context) => {
|
|
381
|
-
const headers =
|
|
382
|
-
"content-type": "application/x-amz-json-1.1",
|
|
383
|
-
"x-amz-target": "TransferService.ListProfiles",
|
|
384
|
-
};
|
|
270
|
+
const headers = sharedHeaders("ListProfiles");
|
|
385
271
|
let body;
|
|
386
272
|
body = JSON.stringify(se_ListProfilesRequest(input, context));
|
|
387
273
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
274
|
};
|
|
389
275
|
exports.se_ListProfilesCommand = se_ListProfilesCommand;
|
|
390
276
|
const se_ListSecurityPoliciesCommand = async (input, context) => {
|
|
391
|
-
const headers =
|
|
392
|
-
"content-type": "application/x-amz-json-1.1",
|
|
393
|
-
"x-amz-target": "TransferService.ListSecurityPolicies",
|
|
394
|
-
};
|
|
277
|
+
const headers = sharedHeaders("ListSecurityPolicies");
|
|
395
278
|
let body;
|
|
396
279
|
body = JSON.stringify(se_ListSecurityPoliciesRequest(input, context));
|
|
397
280
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
398
281
|
};
|
|
399
282
|
exports.se_ListSecurityPoliciesCommand = se_ListSecurityPoliciesCommand;
|
|
400
283
|
const se_ListServersCommand = async (input, context) => {
|
|
401
|
-
const headers =
|
|
402
|
-
"content-type": "application/x-amz-json-1.1",
|
|
403
|
-
"x-amz-target": "TransferService.ListServers",
|
|
404
|
-
};
|
|
284
|
+
const headers = sharedHeaders("ListServers");
|
|
405
285
|
let body;
|
|
406
286
|
body = JSON.stringify(se_ListServersRequest(input, context));
|
|
407
287
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
288
|
};
|
|
409
289
|
exports.se_ListServersCommand = se_ListServersCommand;
|
|
410
290
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
411
|
-
const headers =
|
|
412
|
-
"content-type": "application/x-amz-json-1.1",
|
|
413
|
-
"x-amz-target": "TransferService.ListTagsForResource",
|
|
414
|
-
};
|
|
291
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
415
292
|
let body;
|
|
416
293
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
417
294
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
418
295
|
};
|
|
419
296
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
420
297
|
const se_ListUsersCommand = async (input, context) => {
|
|
421
|
-
const headers =
|
|
422
|
-
"content-type": "application/x-amz-json-1.1",
|
|
423
|
-
"x-amz-target": "TransferService.ListUsers",
|
|
424
|
-
};
|
|
298
|
+
const headers = sharedHeaders("ListUsers");
|
|
425
299
|
let body;
|
|
426
300
|
body = JSON.stringify(se_ListUsersRequest(input, context));
|
|
427
301
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
428
302
|
};
|
|
429
303
|
exports.se_ListUsersCommand = se_ListUsersCommand;
|
|
430
304
|
const se_ListWorkflowsCommand = async (input, context) => {
|
|
431
|
-
const headers =
|
|
432
|
-
"content-type": "application/x-amz-json-1.1",
|
|
433
|
-
"x-amz-target": "TransferService.ListWorkflows",
|
|
434
|
-
};
|
|
305
|
+
const headers = sharedHeaders("ListWorkflows");
|
|
435
306
|
let body;
|
|
436
307
|
body = JSON.stringify(se_ListWorkflowsRequest(input, context));
|
|
437
308
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
438
309
|
};
|
|
439
310
|
exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
|
|
440
311
|
const se_SendWorkflowStepStateCommand = async (input, context) => {
|
|
441
|
-
const headers =
|
|
442
|
-
"content-type": "application/x-amz-json-1.1",
|
|
443
|
-
"x-amz-target": "TransferService.SendWorkflowStepState",
|
|
444
|
-
};
|
|
312
|
+
const headers = sharedHeaders("SendWorkflowStepState");
|
|
445
313
|
let body;
|
|
446
314
|
body = JSON.stringify(se_SendWorkflowStepStateRequest(input, context));
|
|
447
315
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
448
316
|
};
|
|
449
317
|
exports.se_SendWorkflowStepStateCommand = se_SendWorkflowStepStateCommand;
|
|
450
318
|
const se_StartFileTransferCommand = async (input, context) => {
|
|
451
|
-
const headers =
|
|
452
|
-
"content-type": "application/x-amz-json-1.1",
|
|
453
|
-
"x-amz-target": "TransferService.StartFileTransfer",
|
|
454
|
-
};
|
|
319
|
+
const headers = sharedHeaders("StartFileTransfer");
|
|
455
320
|
let body;
|
|
456
321
|
body = JSON.stringify(se_StartFileTransferRequest(input, context));
|
|
457
322
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
458
323
|
};
|
|
459
324
|
exports.se_StartFileTransferCommand = se_StartFileTransferCommand;
|
|
460
325
|
const se_StartServerCommand = async (input, context) => {
|
|
461
|
-
const headers =
|
|
462
|
-
"content-type": "application/x-amz-json-1.1",
|
|
463
|
-
"x-amz-target": "TransferService.StartServer",
|
|
464
|
-
};
|
|
326
|
+
const headers = sharedHeaders("StartServer");
|
|
465
327
|
let body;
|
|
466
328
|
body = JSON.stringify(se_StartServerRequest(input, context));
|
|
467
329
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
468
330
|
};
|
|
469
331
|
exports.se_StartServerCommand = se_StartServerCommand;
|
|
470
332
|
const se_StopServerCommand = async (input, context) => {
|
|
471
|
-
const headers =
|
|
472
|
-
"content-type": "application/x-amz-json-1.1",
|
|
473
|
-
"x-amz-target": "TransferService.StopServer",
|
|
474
|
-
};
|
|
333
|
+
const headers = sharedHeaders("StopServer");
|
|
475
334
|
let body;
|
|
476
335
|
body = JSON.stringify(se_StopServerRequest(input, context));
|
|
477
336
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
337
|
};
|
|
479
338
|
exports.se_StopServerCommand = se_StopServerCommand;
|
|
480
339
|
const se_TagResourceCommand = async (input, context) => {
|
|
481
|
-
const headers =
|
|
482
|
-
"content-type": "application/x-amz-json-1.1",
|
|
483
|
-
"x-amz-target": "TransferService.TagResource",
|
|
484
|
-
};
|
|
340
|
+
const headers = sharedHeaders("TagResource");
|
|
485
341
|
let body;
|
|
486
342
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
487
343
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
488
344
|
};
|
|
489
345
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
490
346
|
const se_TestIdentityProviderCommand = async (input, context) => {
|
|
491
|
-
const headers =
|
|
492
|
-
"content-type": "application/x-amz-json-1.1",
|
|
493
|
-
"x-amz-target": "TransferService.TestIdentityProvider",
|
|
494
|
-
};
|
|
347
|
+
const headers = sharedHeaders("TestIdentityProvider");
|
|
495
348
|
let body;
|
|
496
349
|
body = JSON.stringify(se_TestIdentityProviderRequest(input, context));
|
|
497
350
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
498
351
|
};
|
|
499
352
|
exports.se_TestIdentityProviderCommand = se_TestIdentityProviderCommand;
|
|
500
353
|
const se_UntagResourceCommand = async (input, context) => {
|
|
501
|
-
const headers =
|
|
502
|
-
"content-type": "application/x-amz-json-1.1",
|
|
503
|
-
"x-amz-target": "TransferService.UntagResource",
|
|
504
|
-
};
|
|
354
|
+
const headers = sharedHeaders("UntagResource");
|
|
505
355
|
let body;
|
|
506
356
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
507
357
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
508
358
|
};
|
|
509
359
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
510
360
|
const se_UpdateAccessCommand = async (input, context) => {
|
|
511
|
-
const headers =
|
|
512
|
-
"content-type": "application/x-amz-json-1.1",
|
|
513
|
-
"x-amz-target": "TransferService.UpdateAccess",
|
|
514
|
-
};
|
|
361
|
+
const headers = sharedHeaders("UpdateAccess");
|
|
515
362
|
let body;
|
|
516
363
|
body = JSON.stringify(se_UpdateAccessRequest(input, context));
|
|
517
364
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
518
365
|
};
|
|
519
366
|
exports.se_UpdateAccessCommand = se_UpdateAccessCommand;
|
|
520
367
|
const se_UpdateAgreementCommand = async (input, context) => {
|
|
521
|
-
const headers =
|
|
522
|
-
"content-type": "application/x-amz-json-1.1",
|
|
523
|
-
"x-amz-target": "TransferService.UpdateAgreement",
|
|
524
|
-
};
|
|
368
|
+
const headers = sharedHeaders("UpdateAgreement");
|
|
525
369
|
let body;
|
|
526
370
|
body = JSON.stringify(se_UpdateAgreementRequest(input, context));
|
|
527
371
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
528
372
|
};
|
|
529
373
|
exports.se_UpdateAgreementCommand = se_UpdateAgreementCommand;
|
|
530
374
|
const se_UpdateCertificateCommand = async (input, context) => {
|
|
531
|
-
const headers =
|
|
532
|
-
"content-type": "application/x-amz-json-1.1",
|
|
533
|
-
"x-amz-target": "TransferService.UpdateCertificate",
|
|
534
|
-
};
|
|
375
|
+
const headers = sharedHeaders("UpdateCertificate");
|
|
535
376
|
let body;
|
|
536
377
|
body = JSON.stringify(se_UpdateCertificateRequest(input, context));
|
|
537
378
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
538
379
|
};
|
|
539
380
|
exports.se_UpdateCertificateCommand = se_UpdateCertificateCommand;
|
|
540
381
|
const se_UpdateConnectorCommand = async (input, context) => {
|
|
541
|
-
const headers =
|
|
542
|
-
"content-type": "application/x-amz-json-1.1",
|
|
543
|
-
"x-amz-target": "TransferService.UpdateConnector",
|
|
544
|
-
};
|
|
382
|
+
const headers = sharedHeaders("UpdateConnector");
|
|
545
383
|
let body;
|
|
546
384
|
body = JSON.stringify(se_UpdateConnectorRequest(input, context));
|
|
547
385
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
548
386
|
};
|
|
549
387
|
exports.se_UpdateConnectorCommand = se_UpdateConnectorCommand;
|
|
550
388
|
const se_UpdateHostKeyCommand = async (input, context) => {
|
|
551
|
-
const headers =
|
|
552
|
-
"content-type": "application/x-amz-json-1.1",
|
|
553
|
-
"x-amz-target": "TransferService.UpdateHostKey",
|
|
554
|
-
};
|
|
389
|
+
const headers = sharedHeaders("UpdateHostKey");
|
|
555
390
|
let body;
|
|
556
391
|
body = JSON.stringify(se_UpdateHostKeyRequest(input, context));
|
|
557
392
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
558
393
|
};
|
|
559
394
|
exports.se_UpdateHostKeyCommand = se_UpdateHostKeyCommand;
|
|
560
395
|
const se_UpdateProfileCommand = async (input, context) => {
|
|
561
|
-
const headers =
|
|
562
|
-
"content-type": "application/x-amz-json-1.1",
|
|
563
|
-
"x-amz-target": "TransferService.UpdateProfile",
|
|
564
|
-
};
|
|
396
|
+
const headers = sharedHeaders("UpdateProfile");
|
|
565
397
|
let body;
|
|
566
398
|
body = JSON.stringify(se_UpdateProfileRequest(input, context));
|
|
567
399
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
568
400
|
};
|
|
569
401
|
exports.se_UpdateProfileCommand = se_UpdateProfileCommand;
|
|
570
402
|
const se_UpdateServerCommand = async (input, context) => {
|
|
571
|
-
const headers =
|
|
572
|
-
"content-type": "application/x-amz-json-1.1",
|
|
573
|
-
"x-amz-target": "TransferService.UpdateServer",
|
|
574
|
-
};
|
|
403
|
+
const headers = sharedHeaders("UpdateServer");
|
|
575
404
|
let body;
|
|
576
405
|
body = JSON.stringify(se_UpdateServerRequest(input, context));
|
|
577
406
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
578
407
|
};
|
|
579
408
|
exports.se_UpdateServerCommand = se_UpdateServerCommand;
|
|
580
409
|
const se_UpdateUserCommand = async (input, context) => {
|
|
581
|
-
const headers =
|
|
582
|
-
"content-type": "application/x-amz-json-1.1",
|
|
583
|
-
"x-amz-target": "TransferService.UpdateUser",
|
|
584
|
-
};
|
|
410
|
+
const headers = sharedHeaders("UpdateUser");
|
|
585
411
|
let body;
|
|
586
412
|
body = JSON.stringify(se_UpdateUserRequest(input, context));
|
|
587
413
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -5057,6 +4883,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
5057
4883
|
}
|
|
5058
4884
|
return new protocol_http_1.HttpRequest(contents);
|
|
5059
4885
|
};
|
|
4886
|
+
function sharedHeaders(operation) {
|
|
4887
|
+
return {
|
|
4888
|
+
"content-type": "application/x-amz-json-1.1",
|
|
4889
|
+
"x-amz-target": `TransferService.${operation}`,
|
|
4890
|
+
};
|
|
4891
|
+
}
|
|
5060
4892
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5061
4893
|
if (encoded.length) {
|
|
5062
4894
|
return JSON.parse(encoded);
|
|
@@ -3,523 +3,349 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { AccessDeniedException, ConflictException, InternalServiceError, InvalidNextTokenException, InvalidRequestException, ResourceExistsException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, } from "../models/models_0";
|
|
4
4
|
import { TransferServiceException as __BaseException } from "../models/TransferServiceException";
|
|
5
5
|
export const se_CreateAccessCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "TransferService.CreateAccess",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("CreateAccess");
|
|
10
7
|
let body;
|
|
11
8
|
body = JSON.stringify(se_CreateAccessRequest(input, context));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_CreateAgreementCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "TransferService.CreateAgreement",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("CreateAgreement");
|
|
19
13
|
let body;
|
|
20
14
|
body = JSON.stringify(se_CreateAgreementRequest(input, context));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_CreateConnectorCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "TransferService.CreateConnector",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CreateConnector");
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify(se_CreateConnectorRequest(input, context));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_CreateProfileCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "TransferService.CreateProfile",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateProfile");
|
|
37
25
|
let body;
|
|
38
26
|
body = JSON.stringify(se_CreateProfileRequest(input, context));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_CreateServerCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "TransferService.CreateServer",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("CreateServer");
|
|
46
31
|
let body;
|
|
47
32
|
body = JSON.stringify(se_CreateServerRequest(input, context));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_CreateUserCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "TransferService.CreateUser",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("CreateUser");
|
|
55
37
|
let body;
|
|
56
38
|
body = JSON.stringify(se_CreateUserRequest(input, context));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_CreateWorkflowCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "TransferService.CreateWorkflow",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("CreateWorkflow");
|
|
64
43
|
let body;
|
|
65
44
|
body = JSON.stringify(se_CreateWorkflowRequest(input, context));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_DeleteAccessCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "TransferService.DeleteAccess",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("DeleteAccess");
|
|
73
49
|
let body;
|
|
74
50
|
body = JSON.stringify(se_DeleteAccessRequest(input, context));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_DeleteAgreementCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "TransferService.DeleteAgreement",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("DeleteAgreement");
|
|
82
55
|
let body;
|
|
83
56
|
body = JSON.stringify(se_DeleteAgreementRequest(input, context));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_DeleteCertificateCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "TransferService.DeleteCertificate",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DeleteCertificate");
|
|
91
61
|
let body;
|
|
92
62
|
body = JSON.stringify(se_DeleteCertificateRequest(input, context));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_DeleteConnectorCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "TransferService.DeleteConnector",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DeleteConnector");
|
|
100
67
|
let body;
|
|
101
68
|
body = JSON.stringify(se_DeleteConnectorRequest(input, context));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_DeleteHostKeyCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "TransferService.DeleteHostKey",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("DeleteHostKey");
|
|
109
73
|
let body;
|
|
110
74
|
body = JSON.stringify(se_DeleteHostKeyRequest(input, context));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_DeleteProfileCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "TransferService.DeleteProfile",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("DeleteProfile");
|
|
118
79
|
let body;
|
|
119
80
|
body = JSON.stringify(se_DeleteProfileRequest(input, context));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_DeleteServerCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "TransferService.DeleteServer",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("DeleteServer");
|
|
127
85
|
let body;
|
|
128
86
|
body = JSON.stringify(se_DeleteServerRequest(input, context));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_DeleteSshPublicKeyCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "TransferService.DeleteSshPublicKey",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("DeleteSshPublicKey");
|
|
136
91
|
let body;
|
|
137
92
|
body = JSON.stringify(se_DeleteSshPublicKeyRequest(input, context));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_DeleteUserCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "TransferService.DeleteUser",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("DeleteUser");
|
|
145
97
|
let body;
|
|
146
98
|
body = JSON.stringify(se_DeleteUserRequest(input, context));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_DeleteWorkflowCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "TransferService.DeleteWorkflow",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("DeleteWorkflow");
|
|
154
103
|
let body;
|
|
155
104
|
body = JSON.stringify(se_DeleteWorkflowRequest(input, context));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_DescribeAccessCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "TransferService.DescribeAccess",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("DescribeAccess");
|
|
163
109
|
let body;
|
|
164
110
|
body = JSON.stringify(se_DescribeAccessRequest(input, context));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_DescribeAgreementCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "TransferService.DescribeAgreement",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("DescribeAgreement");
|
|
172
115
|
let body;
|
|
173
116
|
body = JSON.stringify(se_DescribeAgreementRequest(input, context));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_DescribeCertificateCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "TransferService.DescribeCertificate",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("DescribeCertificate");
|
|
181
121
|
let body;
|
|
182
122
|
body = JSON.stringify(se_DescribeCertificateRequest(input, context));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_DescribeConnectorCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "TransferService.DescribeConnector",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("DescribeConnector");
|
|
190
127
|
let body;
|
|
191
128
|
body = JSON.stringify(se_DescribeConnectorRequest(input, context));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_DescribeExecutionCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.1",
|
|
197
|
-
"x-amz-target": "TransferService.DescribeExecution",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("DescribeExecution");
|
|
199
133
|
let body;
|
|
200
134
|
body = JSON.stringify(se_DescribeExecutionRequest(input, context));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_DescribeHostKeyCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "TransferService.DescribeHostKey",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("DescribeHostKey");
|
|
208
139
|
let body;
|
|
209
140
|
body = JSON.stringify(se_DescribeHostKeyRequest(input, context));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
142
|
};
|
|
212
143
|
export const se_DescribeProfileCommand = async (input, context) => {
|
|
213
|
-
const headers =
|
|
214
|
-
"content-type": "application/x-amz-json-1.1",
|
|
215
|
-
"x-amz-target": "TransferService.DescribeProfile",
|
|
216
|
-
};
|
|
144
|
+
const headers = sharedHeaders("DescribeProfile");
|
|
217
145
|
let body;
|
|
218
146
|
body = JSON.stringify(se_DescribeProfileRequest(input, context));
|
|
219
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
148
|
};
|
|
221
149
|
export const se_DescribeSecurityPolicyCommand = async (input, context) => {
|
|
222
|
-
const headers =
|
|
223
|
-
"content-type": "application/x-amz-json-1.1",
|
|
224
|
-
"x-amz-target": "TransferService.DescribeSecurityPolicy",
|
|
225
|
-
};
|
|
150
|
+
const headers = sharedHeaders("DescribeSecurityPolicy");
|
|
226
151
|
let body;
|
|
227
152
|
body = JSON.stringify(se_DescribeSecurityPolicyRequest(input, context));
|
|
228
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
154
|
};
|
|
230
155
|
export const se_DescribeServerCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "TransferService.DescribeServer",
|
|
234
|
-
};
|
|
156
|
+
const headers = sharedHeaders("DescribeServer");
|
|
235
157
|
let body;
|
|
236
158
|
body = JSON.stringify(se_DescribeServerRequest(input, context));
|
|
237
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
160
|
};
|
|
239
161
|
export const se_DescribeUserCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "TransferService.DescribeUser",
|
|
243
|
-
};
|
|
162
|
+
const headers = sharedHeaders("DescribeUser");
|
|
244
163
|
let body;
|
|
245
164
|
body = JSON.stringify(se_DescribeUserRequest(input, context));
|
|
246
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
166
|
};
|
|
248
167
|
export const se_DescribeWorkflowCommand = async (input, context) => {
|
|
249
|
-
const headers =
|
|
250
|
-
"content-type": "application/x-amz-json-1.1",
|
|
251
|
-
"x-amz-target": "TransferService.DescribeWorkflow",
|
|
252
|
-
};
|
|
168
|
+
const headers = sharedHeaders("DescribeWorkflow");
|
|
253
169
|
let body;
|
|
254
170
|
body = JSON.stringify(se_DescribeWorkflowRequest(input, context));
|
|
255
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
172
|
};
|
|
257
173
|
export const se_ImportCertificateCommand = async (input, context) => {
|
|
258
|
-
const headers =
|
|
259
|
-
"content-type": "application/x-amz-json-1.1",
|
|
260
|
-
"x-amz-target": "TransferService.ImportCertificate",
|
|
261
|
-
};
|
|
174
|
+
const headers = sharedHeaders("ImportCertificate");
|
|
262
175
|
let body;
|
|
263
176
|
body = JSON.stringify(se_ImportCertificateRequest(input, context));
|
|
264
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
178
|
};
|
|
266
179
|
export const se_ImportHostKeyCommand = async (input, context) => {
|
|
267
|
-
const headers =
|
|
268
|
-
"content-type": "application/x-amz-json-1.1",
|
|
269
|
-
"x-amz-target": "TransferService.ImportHostKey",
|
|
270
|
-
};
|
|
180
|
+
const headers = sharedHeaders("ImportHostKey");
|
|
271
181
|
let body;
|
|
272
182
|
body = JSON.stringify(se_ImportHostKeyRequest(input, context));
|
|
273
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
184
|
};
|
|
275
185
|
export const se_ImportSshPublicKeyCommand = async (input, context) => {
|
|
276
|
-
const headers =
|
|
277
|
-
"content-type": "application/x-amz-json-1.1",
|
|
278
|
-
"x-amz-target": "TransferService.ImportSshPublicKey",
|
|
279
|
-
};
|
|
186
|
+
const headers = sharedHeaders("ImportSshPublicKey");
|
|
280
187
|
let body;
|
|
281
188
|
body = JSON.stringify(se_ImportSshPublicKeyRequest(input, context));
|
|
282
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
190
|
};
|
|
284
191
|
export const se_ListAccessesCommand = async (input, context) => {
|
|
285
|
-
const headers =
|
|
286
|
-
"content-type": "application/x-amz-json-1.1",
|
|
287
|
-
"x-amz-target": "TransferService.ListAccesses",
|
|
288
|
-
};
|
|
192
|
+
const headers = sharedHeaders("ListAccesses");
|
|
289
193
|
let body;
|
|
290
194
|
body = JSON.stringify(se_ListAccessesRequest(input, context));
|
|
291
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
196
|
};
|
|
293
197
|
export const se_ListAgreementsCommand = async (input, context) => {
|
|
294
|
-
const headers =
|
|
295
|
-
"content-type": "application/x-amz-json-1.1",
|
|
296
|
-
"x-amz-target": "TransferService.ListAgreements",
|
|
297
|
-
};
|
|
198
|
+
const headers = sharedHeaders("ListAgreements");
|
|
298
199
|
let body;
|
|
299
200
|
body = JSON.stringify(se_ListAgreementsRequest(input, context));
|
|
300
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
202
|
};
|
|
302
203
|
export const se_ListCertificatesCommand = async (input, context) => {
|
|
303
|
-
const headers =
|
|
304
|
-
"content-type": "application/x-amz-json-1.1",
|
|
305
|
-
"x-amz-target": "TransferService.ListCertificates",
|
|
306
|
-
};
|
|
204
|
+
const headers = sharedHeaders("ListCertificates");
|
|
307
205
|
let body;
|
|
308
206
|
body = JSON.stringify(se_ListCertificatesRequest(input, context));
|
|
309
207
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
208
|
};
|
|
311
209
|
export const se_ListConnectorsCommand = async (input, context) => {
|
|
312
|
-
const headers =
|
|
313
|
-
"content-type": "application/x-amz-json-1.1",
|
|
314
|
-
"x-amz-target": "TransferService.ListConnectors",
|
|
315
|
-
};
|
|
210
|
+
const headers = sharedHeaders("ListConnectors");
|
|
316
211
|
let body;
|
|
317
212
|
body = JSON.stringify(se_ListConnectorsRequest(input, context));
|
|
318
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
214
|
};
|
|
320
215
|
export const se_ListExecutionsCommand = async (input, context) => {
|
|
321
|
-
const headers =
|
|
322
|
-
"content-type": "application/x-amz-json-1.1",
|
|
323
|
-
"x-amz-target": "TransferService.ListExecutions",
|
|
324
|
-
};
|
|
216
|
+
const headers = sharedHeaders("ListExecutions");
|
|
325
217
|
let body;
|
|
326
218
|
body = JSON.stringify(se_ListExecutionsRequest(input, context));
|
|
327
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
220
|
};
|
|
329
221
|
export const se_ListHostKeysCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.1",
|
|
332
|
-
"x-amz-target": "TransferService.ListHostKeys",
|
|
333
|
-
};
|
|
222
|
+
const headers = sharedHeaders("ListHostKeys");
|
|
334
223
|
let body;
|
|
335
224
|
body = JSON.stringify(se_ListHostKeysRequest(input, context));
|
|
336
225
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
226
|
};
|
|
338
227
|
export const se_ListProfilesCommand = async (input, context) => {
|
|
339
|
-
const headers =
|
|
340
|
-
"content-type": "application/x-amz-json-1.1",
|
|
341
|
-
"x-amz-target": "TransferService.ListProfiles",
|
|
342
|
-
};
|
|
228
|
+
const headers = sharedHeaders("ListProfiles");
|
|
343
229
|
let body;
|
|
344
230
|
body = JSON.stringify(se_ListProfilesRequest(input, context));
|
|
345
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
232
|
};
|
|
347
233
|
export const se_ListSecurityPoliciesCommand = async (input, context) => {
|
|
348
|
-
const headers =
|
|
349
|
-
"content-type": "application/x-amz-json-1.1",
|
|
350
|
-
"x-amz-target": "TransferService.ListSecurityPolicies",
|
|
351
|
-
};
|
|
234
|
+
const headers = sharedHeaders("ListSecurityPolicies");
|
|
352
235
|
let body;
|
|
353
236
|
body = JSON.stringify(se_ListSecurityPoliciesRequest(input, context));
|
|
354
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
355
238
|
};
|
|
356
239
|
export const se_ListServersCommand = async (input, context) => {
|
|
357
|
-
const headers =
|
|
358
|
-
"content-type": "application/x-amz-json-1.1",
|
|
359
|
-
"x-amz-target": "TransferService.ListServers",
|
|
360
|
-
};
|
|
240
|
+
const headers = sharedHeaders("ListServers");
|
|
361
241
|
let body;
|
|
362
242
|
body = JSON.stringify(se_ListServersRequest(input, context));
|
|
363
243
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
364
244
|
};
|
|
365
245
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
366
|
-
const headers =
|
|
367
|
-
"content-type": "application/x-amz-json-1.1",
|
|
368
|
-
"x-amz-target": "TransferService.ListTagsForResource",
|
|
369
|
-
};
|
|
246
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
370
247
|
let body;
|
|
371
248
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
372
249
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
250
|
};
|
|
374
251
|
export const se_ListUsersCommand = async (input, context) => {
|
|
375
|
-
const headers =
|
|
376
|
-
"content-type": "application/x-amz-json-1.1",
|
|
377
|
-
"x-amz-target": "TransferService.ListUsers",
|
|
378
|
-
};
|
|
252
|
+
const headers = sharedHeaders("ListUsers");
|
|
379
253
|
let body;
|
|
380
254
|
body = JSON.stringify(se_ListUsersRequest(input, context));
|
|
381
255
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
382
256
|
};
|
|
383
257
|
export const se_ListWorkflowsCommand = async (input, context) => {
|
|
384
|
-
const headers =
|
|
385
|
-
"content-type": "application/x-amz-json-1.1",
|
|
386
|
-
"x-amz-target": "TransferService.ListWorkflows",
|
|
387
|
-
};
|
|
258
|
+
const headers = sharedHeaders("ListWorkflows");
|
|
388
259
|
let body;
|
|
389
260
|
body = JSON.stringify(se_ListWorkflowsRequest(input, context));
|
|
390
261
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
391
262
|
};
|
|
392
263
|
export const se_SendWorkflowStepStateCommand = async (input, context) => {
|
|
393
|
-
const headers =
|
|
394
|
-
"content-type": "application/x-amz-json-1.1",
|
|
395
|
-
"x-amz-target": "TransferService.SendWorkflowStepState",
|
|
396
|
-
};
|
|
264
|
+
const headers = sharedHeaders("SendWorkflowStepState");
|
|
397
265
|
let body;
|
|
398
266
|
body = JSON.stringify(se_SendWorkflowStepStateRequest(input, context));
|
|
399
267
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
400
268
|
};
|
|
401
269
|
export const se_StartFileTransferCommand = async (input, context) => {
|
|
402
|
-
const headers =
|
|
403
|
-
"content-type": "application/x-amz-json-1.1",
|
|
404
|
-
"x-amz-target": "TransferService.StartFileTransfer",
|
|
405
|
-
};
|
|
270
|
+
const headers = sharedHeaders("StartFileTransfer");
|
|
406
271
|
let body;
|
|
407
272
|
body = JSON.stringify(se_StartFileTransferRequest(input, context));
|
|
408
273
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
409
274
|
};
|
|
410
275
|
export const se_StartServerCommand = async (input, context) => {
|
|
411
|
-
const headers =
|
|
412
|
-
"content-type": "application/x-amz-json-1.1",
|
|
413
|
-
"x-amz-target": "TransferService.StartServer",
|
|
414
|
-
};
|
|
276
|
+
const headers = sharedHeaders("StartServer");
|
|
415
277
|
let body;
|
|
416
278
|
body = JSON.stringify(se_StartServerRequest(input, context));
|
|
417
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
418
280
|
};
|
|
419
281
|
export const se_StopServerCommand = async (input, context) => {
|
|
420
|
-
const headers =
|
|
421
|
-
"content-type": "application/x-amz-json-1.1",
|
|
422
|
-
"x-amz-target": "TransferService.StopServer",
|
|
423
|
-
};
|
|
282
|
+
const headers = sharedHeaders("StopServer");
|
|
424
283
|
let body;
|
|
425
284
|
body = JSON.stringify(se_StopServerRequest(input, context));
|
|
426
285
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
286
|
};
|
|
428
287
|
export const se_TagResourceCommand = async (input, context) => {
|
|
429
|
-
const headers =
|
|
430
|
-
"content-type": "application/x-amz-json-1.1",
|
|
431
|
-
"x-amz-target": "TransferService.TagResource",
|
|
432
|
-
};
|
|
288
|
+
const headers = sharedHeaders("TagResource");
|
|
433
289
|
let body;
|
|
434
290
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
435
291
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
436
292
|
};
|
|
437
293
|
export const se_TestIdentityProviderCommand = async (input, context) => {
|
|
438
|
-
const headers =
|
|
439
|
-
"content-type": "application/x-amz-json-1.1",
|
|
440
|
-
"x-amz-target": "TransferService.TestIdentityProvider",
|
|
441
|
-
};
|
|
294
|
+
const headers = sharedHeaders("TestIdentityProvider");
|
|
442
295
|
let body;
|
|
443
296
|
body = JSON.stringify(se_TestIdentityProviderRequest(input, context));
|
|
444
297
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
445
298
|
};
|
|
446
299
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
447
|
-
const headers =
|
|
448
|
-
"content-type": "application/x-amz-json-1.1",
|
|
449
|
-
"x-amz-target": "TransferService.UntagResource",
|
|
450
|
-
};
|
|
300
|
+
const headers = sharedHeaders("UntagResource");
|
|
451
301
|
let body;
|
|
452
302
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
453
303
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
454
304
|
};
|
|
455
305
|
export const se_UpdateAccessCommand = async (input, context) => {
|
|
456
|
-
const headers =
|
|
457
|
-
"content-type": "application/x-amz-json-1.1",
|
|
458
|
-
"x-amz-target": "TransferService.UpdateAccess",
|
|
459
|
-
};
|
|
306
|
+
const headers = sharedHeaders("UpdateAccess");
|
|
460
307
|
let body;
|
|
461
308
|
body = JSON.stringify(se_UpdateAccessRequest(input, context));
|
|
462
309
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
463
310
|
};
|
|
464
311
|
export const se_UpdateAgreementCommand = async (input, context) => {
|
|
465
|
-
const headers =
|
|
466
|
-
"content-type": "application/x-amz-json-1.1",
|
|
467
|
-
"x-amz-target": "TransferService.UpdateAgreement",
|
|
468
|
-
};
|
|
312
|
+
const headers = sharedHeaders("UpdateAgreement");
|
|
469
313
|
let body;
|
|
470
314
|
body = JSON.stringify(se_UpdateAgreementRequest(input, context));
|
|
471
315
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
472
316
|
};
|
|
473
317
|
export const se_UpdateCertificateCommand = async (input, context) => {
|
|
474
|
-
const headers =
|
|
475
|
-
"content-type": "application/x-amz-json-1.1",
|
|
476
|
-
"x-amz-target": "TransferService.UpdateCertificate",
|
|
477
|
-
};
|
|
318
|
+
const headers = sharedHeaders("UpdateCertificate");
|
|
478
319
|
let body;
|
|
479
320
|
body = JSON.stringify(se_UpdateCertificateRequest(input, context));
|
|
480
321
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
481
322
|
};
|
|
482
323
|
export const se_UpdateConnectorCommand = async (input, context) => {
|
|
483
|
-
const headers =
|
|
484
|
-
"content-type": "application/x-amz-json-1.1",
|
|
485
|
-
"x-amz-target": "TransferService.UpdateConnector",
|
|
486
|
-
};
|
|
324
|
+
const headers = sharedHeaders("UpdateConnector");
|
|
487
325
|
let body;
|
|
488
326
|
body = JSON.stringify(se_UpdateConnectorRequest(input, context));
|
|
489
327
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
490
328
|
};
|
|
491
329
|
export const se_UpdateHostKeyCommand = async (input, context) => {
|
|
492
|
-
const headers =
|
|
493
|
-
"content-type": "application/x-amz-json-1.1",
|
|
494
|
-
"x-amz-target": "TransferService.UpdateHostKey",
|
|
495
|
-
};
|
|
330
|
+
const headers = sharedHeaders("UpdateHostKey");
|
|
496
331
|
let body;
|
|
497
332
|
body = JSON.stringify(se_UpdateHostKeyRequest(input, context));
|
|
498
333
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
499
334
|
};
|
|
500
335
|
export const se_UpdateProfileCommand = async (input, context) => {
|
|
501
|
-
const headers =
|
|
502
|
-
"content-type": "application/x-amz-json-1.1",
|
|
503
|
-
"x-amz-target": "TransferService.UpdateProfile",
|
|
504
|
-
};
|
|
336
|
+
const headers = sharedHeaders("UpdateProfile");
|
|
505
337
|
let body;
|
|
506
338
|
body = JSON.stringify(se_UpdateProfileRequest(input, context));
|
|
507
339
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
508
340
|
};
|
|
509
341
|
export const se_UpdateServerCommand = async (input, context) => {
|
|
510
|
-
const headers =
|
|
511
|
-
"content-type": "application/x-amz-json-1.1",
|
|
512
|
-
"x-amz-target": "TransferService.UpdateServer",
|
|
513
|
-
};
|
|
342
|
+
const headers = sharedHeaders("UpdateServer");
|
|
514
343
|
let body;
|
|
515
344
|
body = JSON.stringify(se_UpdateServerRequest(input, context));
|
|
516
345
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
517
346
|
};
|
|
518
347
|
export const se_UpdateUserCommand = async (input, context) => {
|
|
519
|
-
const headers =
|
|
520
|
-
"content-type": "application/x-amz-json-1.1",
|
|
521
|
-
"x-amz-target": "TransferService.UpdateUser",
|
|
522
|
-
};
|
|
348
|
+
const headers = sharedHeaders("UpdateUser");
|
|
523
349
|
let body;
|
|
524
350
|
body = JSON.stringify(se_UpdateUserRequest(input, context));
|
|
525
351
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -4936,6 +4762,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4936
4762
|
}
|
|
4937
4763
|
return new __HttpRequest(contents);
|
|
4938
4764
|
};
|
|
4765
|
+
function sharedHeaders(operation) {
|
|
4766
|
+
return {
|
|
4767
|
+
"content-type": "application/x-amz-json-1.1",
|
|
4768
|
+
"x-amz-target": `TransferService.${operation}`,
|
|
4769
|
+
};
|
|
4770
|
+
}
|
|
4939
4771
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4940
4772
|
if (encoded.length) {
|
|
4941
4773
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-transfer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Transfer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.312.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.312.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
26
|
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|