@aws-sdk/client-transfer 3.309.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 +36 -36
|
@@ -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);
|