@aws-sdk/client-datasync 3.310.0 → 3.315.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 +390 -1501
- package/dist-es/protocols/Aws_json1_1.js +391 -1502
- package/package.json +6 -6
|
@@ -7,442 +7,310 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const DataSyncServiceException_1 = require("../models/DataSyncServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_CancelTaskExecutionCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.1",
|
|
12
|
-
"x-amz-target": "FmrsService.CancelTaskExecution",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("CancelTaskExecution");
|
|
14
11
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_CancelTaskExecutionCommand = se_CancelTaskExecutionCommand;
|
|
19
16
|
const se_CreateAgentCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.1",
|
|
22
|
-
"x-amz-target": "FmrsService.CreateAgent",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("CreateAgent");
|
|
24
18
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_CreateAgentCommand = se_CreateAgentCommand;
|
|
29
23
|
const se_CreateLocationEfsCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.1",
|
|
32
|
-
"x-amz-target": "FmrsService.CreateLocationEfs",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateLocationEfs");
|
|
34
25
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_CreateLocationEfsCommand = se_CreateLocationEfsCommand;
|
|
39
30
|
const se_CreateLocationFsxLustreCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.1",
|
|
42
|
-
"x-amz-target": "FmrsService.CreateLocationFsxLustre",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("CreateLocationFsxLustre");
|
|
44
32
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_CreateLocationFsxLustreCommand = se_CreateLocationFsxLustreCommand;
|
|
49
37
|
const se_CreateLocationFsxOntapCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.1",
|
|
52
|
-
"x-amz-target": "FmrsService.CreateLocationFsxOntap",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("CreateLocationFsxOntap");
|
|
54
39
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_CreateLocationFsxOntapCommand = se_CreateLocationFsxOntapCommand;
|
|
59
44
|
const se_CreateLocationFsxOpenZfsCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "FmrsService.CreateLocationFsxOpenZfs",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("CreateLocationFsxOpenZfs");
|
|
64
46
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_CreateLocationFsxOpenZfsCommand = se_CreateLocationFsxOpenZfsCommand;
|
|
69
51
|
const se_CreateLocationFsxWindowsCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "FmrsService.CreateLocationFsxWindows",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("CreateLocationFsxWindows");
|
|
74
53
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_CreateLocationFsxWindowsCommand = se_CreateLocationFsxWindowsCommand;
|
|
79
58
|
const se_CreateLocationHdfsCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "FmrsService.CreateLocationHdfs",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("CreateLocationHdfs");
|
|
84
60
|
let body;
|
|
85
61
|
body = JSON.stringify(se_CreateLocationHdfsRequest(input, context));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_CreateLocationHdfsCommand = se_CreateLocationHdfsCommand;
|
|
89
65
|
const se_CreateLocationNfsCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.1",
|
|
92
|
-
"x-amz-target": "FmrsService.CreateLocationNfs",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("CreateLocationNfs");
|
|
94
67
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_CreateLocationNfsCommand = se_CreateLocationNfsCommand;
|
|
99
72
|
const se_CreateLocationObjectStorageCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.1",
|
|
102
|
-
"x-amz-target": "FmrsService.CreateLocationObjectStorage",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("CreateLocationObjectStorage");
|
|
104
74
|
let body;
|
|
105
75
|
body = JSON.stringify(se_CreateLocationObjectStorageRequest(input, context));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_CreateLocationObjectStorageCommand = se_CreateLocationObjectStorageCommand;
|
|
109
79
|
const se_CreateLocationS3Command = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.1",
|
|
112
|
-
"x-amz-target": "FmrsService.CreateLocationS3",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("CreateLocationS3");
|
|
114
81
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_CreateLocationS3Command = se_CreateLocationS3Command;
|
|
119
86
|
const se_CreateLocationSmbCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.1",
|
|
122
|
-
"x-amz-target": "FmrsService.CreateLocationSmb",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("CreateLocationSmb");
|
|
124
88
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_CreateLocationSmbCommand = se_CreateLocationSmbCommand;
|
|
129
93
|
const se_CreateTaskCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "FmrsService.CreateTask",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("CreateTask");
|
|
134
95
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_CreateTaskCommand = se_CreateTaskCommand;
|
|
139
100
|
const se_DeleteAgentCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "FmrsService.DeleteAgent",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("DeleteAgent");
|
|
144
102
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_DeleteAgentCommand = se_DeleteAgentCommand;
|
|
149
107
|
const se_DeleteLocationCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "FmrsService.DeleteLocation",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("DeleteLocation");
|
|
154
109
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
156
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
112
|
};
|
|
158
113
|
exports.se_DeleteLocationCommand = se_DeleteLocationCommand;
|
|
159
114
|
const se_DeleteTaskCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.1",
|
|
162
|
-
"x-amz-target": "FmrsService.DeleteTask",
|
|
163
|
-
};
|
|
115
|
+
const headers = sharedHeaders("DeleteTask");
|
|
164
116
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
117
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
166
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
119
|
};
|
|
168
120
|
exports.se_DeleteTaskCommand = se_DeleteTaskCommand;
|
|
169
121
|
const se_DescribeAgentCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.1",
|
|
172
|
-
"x-amz-target": "FmrsService.DescribeAgent",
|
|
173
|
-
};
|
|
122
|
+
const headers = sharedHeaders("DescribeAgent");
|
|
174
123
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
126
|
};
|
|
178
127
|
exports.se_DescribeAgentCommand = se_DescribeAgentCommand;
|
|
179
128
|
const se_DescribeLocationEfsCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-amz-json-1.1",
|
|
182
|
-
"x-amz-target": "FmrsService.DescribeLocationEfs",
|
|
183
|
-
};
|
|
129
|
+
const headers = sharedHeaders("DescribeLocationEfs");
|
|
184
130
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
131
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
186
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
133
|
};
|
|
188
134
|
exports.se_DescribeLocationEfsCommand = se_DescribeLocationEfsCommand;
|
|
189
135
|
const se_DescribeLocationFsxLustreCommand = async (input, context) => {
|
|
190
|
-
const headers =
|
|
191
|
-
"content-type": "application/x-amz-json-1.1",
|
|
192
|
-
"x-amz-target": "FmrsService.DescribeLocationFsxLustre",
|
|
193
|
-
};
|
|
136
|
+
const headers = sharedHeaders("DescribeLocationFsxLustre");
|
|
194
137
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
140
|
};
|
|
198
141
|
exports.se_DescribeLocationFsxLustreCommand = se_DescribeLocationFsxLustreCommand;
|
|
199
142
|
const se_DescribeLocationFsxOntapCommand = async (input, context) => {
|
|
200
|
-
const headers =
|
|
201
|
-
"content-type": "application/x-amz-json-1.1",
|
|
202
|
-
"x-amz-target": "FmrsService.DescribeLocationFsxOntap",
|
|
203
|
-
};
|
|
143
|
+
const headers = sharedHeaders("DescribeLocationFsxOntap");
|
|
204
144
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
206
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
147
|
};
|
|
208
148
|
exports.se_DescribeLocationFsxOntapCommand = se_DescribeLocationFsxOntapCommand;
|
|
209
149
|
const se_DescribeLocationFsxOpenZfsCommand = async (input, context) => {
|
|
210
|
-
const headers =
|
|
211
|
-
"content-type": "application/x-amz-json-1.1",
|
|
212
|
-
"x-amz-target": "FmrsService.DescribeLocationFsxOpenZfs",
|
|
213
|
-
};
|
|
150
|
+
const headers = sharedHeaders("DescribeLocationFsxOpenZfs");
|
|
214
151
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
154
|
};
|
|
218
155
|
exports.se_DescribeLocationFsxOpenZfsCommand = se_DescribeLocationFsxOpenZfsCommand;
|
|
219
156
|
const se_DescribeLocationFsxWindowsCommand = async (input, context) => {
|
|
220
|
-
const headers =
|
|
221
|
-
"content-type": "application/x-amz-json-1.1",
|
|
222
|
-
"x-amz-target": "FmrsService.DescribeLocationFsxWindows",
|
|
223
|
-
};
|
|
157
|
+
const headers = sharedHeaders("DescribeLocationFsxWindows");
|
|
224
158
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
226
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
161
|
};
|
|
228
162
|
exports.se_DescribeLocationFsxWindowsCommand = se_DescribeLocationFsxWindowsCommand;
|
|
229
163
|
const se_DescribeLocationHdfsCommand = async (input, context) => {
|
|
230
|
-
const headers =
|
|
231
|
-
"content-type": "application/x-amz-json-1.1",
|
|
232
|
-
"x-amz-target": "FmrsService.DescribeLocationHdfs",
|
|
233
|
-
};
|
|
164
|
+
const headers = sharedHeaders("DescribeLocationHdfs");
|
|
234
165
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
166
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
236
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
168
|
};
|
|
238
169
|
exports.se_DescribeLocationHdfsCommand = se_DescribeLocationHdfsCommand;
|
|
239
170
|
const se_DescribeLocationNfsCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "FmrsService.DescribeLocationNfs",
|
|
243
|
-
};
|
|
171
|
+
const headers = sharedHeaders("DescribeLocationNfs");
|
|
244
172
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
175
|
};
|
|
248
176
|
exports.se_DescribeLocationNfsCommand = se_DescribeLocationNfsCommand;
|
|
249
177
|
const se_DescribeLocationObjectStorageCommand = async (input, context) => {
|
|
250
|
-
const headers =
|
|
251
|
-
"content-type": "application/x-amz-json-1.1",
|
|
252
|
-
"x-amz-target": "FmrsService.DescribeLocationObjectStorage",
|
|
253
|
-
};
|
|
178
|
+
const headers = sharedHeaders("DescribeLocationObjectStorage");
|
|
254
179
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
256
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
182
|
};
|
|
258
183
|
exports.se_DescribeLocationObjectStorageCommand = se_DescribeLocationObjectStorageCommand;
|
|
259
184
|
const se_DescribeLocationS3Command = async (input, context) => {
|
|
260
|
-
const headers =
|
|
261
|
-
"content-type": "application/x-amz-json-1.1",
|
|
262
|
-
"x-amz-target": "FmrsService.DescribeLocationS3",
|
|
263
|
-
};
|
|
185
|
+
const headers = sharedHeaders("DescribeLocationS3");
|
|
264
186
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
187
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
189
|
};
|
|
268
190
|
exports.se_DescribeLocationS3Command = se_DescribeLocationS3Command;
|
|
269
191
|
const se_DescribeLocationSmbCommand = async (input, context) => {
|
|
270
|
-
const headers =
|
|
271
|
-
"content-type": "application/x-amz-json-1.1",
|
|
272
|
-
"x-amz-target": "FmrsService.DescribeLocationSmb",
|
|
273
|
-
};
|
|
192
|
+
const headers = sharedHeaders("DescribeLocationSmb");
|
|
274
193
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
276
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
196
|
};
|
|
278
197
|
exports.se_DescribeLocationSmbCommand = se_DescribeLocationSmbCommand;
|
|
279
198
|
const se_DescribeTaskCommand = async (input, context) => {
|
|
280
|
-
const headers =
|
|
281
|
-
"content-type": "application/x-amz-json-1.1",
|
|
282
|
-
"x-amz-target": "FmrsService.DescribeTask",
|
|
283
|
-
};
|
|
199
|
+
const headers = sharedHeaders("DescribeTask");
|
|
284
200
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
286
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
203
|
};
|
|
288
204
|
exports.se_DescribeTaskCommand = se_DescribeTaskCommand;
|
|
289
205
|
const se_DescribeTaskExecutionCommand = async (input, context) => {
|
|
290
|
-
const headers =
|
|
291
|
-
"content-type": "application/x-amz-json-1.1",
|
|
292
|
-
"x-amz-target": "FmrsService.DescribeTaskExecution",
|
|
293
|
-
};
|
|
206
|
+
const headers = sharedHeaders("DescribeTaskExecution");
|
|
294
207
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
208
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
296
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
210
|
};
|
|
298
211
|
exports.se_DescribeTaskExecutionCommand = se_DescribeTaskExecutionCommand;
|
|
299
212
|
const se_ListAgentsCommand = async (input, context) => {
|
|
300
|
-
const headers =
|
|
301
|
-
"content-type": "application/x-amz-json-1.1",
|
|
302
|
-
"x-amz-target": "FmrsService.ListAgents",
|
|
303
|
-
};
|
|
213
|
+
const headers = sharedHeaders("ListAgents");
|
|
304
214
|
let body;
|
|
305
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
306
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
217
|
};
|
|
308
218
|
exports.se_ListAgentsCommand = se_ListAgentsCommand;
|
|
309
219
|
const se_ListLocationsCommand = async (input, context) => {
|
|
310
|
-
const headers =
|
|
311
|
-
"content-type": "application/x-amz-json-1.1",
|
|
312
|
-
"x-amz-target": "FmrsService.ListLocations",
|
|
313
|
-
};
|
|
220
|
+
const headers = sharedHeaders("ListLocations");
|
|
314
221
|
let body;
|
|
315
|
-
body = JSON.stringify(
|
|
222
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
223
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
224
|
};
|
|
318
225
|
exports.se_ListLocationsCommand = se_ListLocationsCommand;
|
|
319
226
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
320
|
-
const headers =
|
|
321
|
-
"content-type": "application/x-amz-json-1.1",
|
|
322
|
-
"x-amz-target": "FmrsService.ListTagsForResource",
|
|
323
|
-
};
|
|
227
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
324
228
|
let body;
|
|
325
|
-
body = JSON.stringify(
|
|
229
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
326
230
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
231
|
};
|
|
328
232
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
329
233
|
const se_ListTaskExecutionsCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.1",
|
|
332
|
-
"x-amz-target": "FmrsService.ListTaskExecutions",
|
|
333
|
-
};
|
|
234
|
+
const headers = sharedHeaders("ListTaskExecutions");
|
|
334
235
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
336
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
238
|
};
|
|
338
239
|
exports.se_ListTaskExecutionsCommand = se_ListTaskExecutionsCommand;
|
|
339
240
|
const se_ListTasksCommand = async (input, context) => {
|
|
340
|
-
const headers =
|
|
341
|
-
"content-type": "application/x-amz-json-1.1",
|
|
342
|
-
"x-amz-target": "FmrsService.ListTasks",
|
|
343
|
-
};
|
|
241
|
+
const headers = sharedHeaders("ListTasks");
|
|
344
242
|
let body;
|
|
345
|
-
body = JSON.stringify(
|
|
243
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
346
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
245
|
};
|
|
348
246
|
exports.se_ListTasksCommand = se_ListTasksCommand;
|
|
349
247
|
const se_StartTaskExecutionCommand = async (input, context) => {
|
|
350
|
-
const headers =
|
|
351
|
-
"content-type": "application/x-amz-json-1.1",
|
|
352
|
-
"x-amz-target": "FmrsService.StartTaskExecution",
|
|
353
|
-
};
|
|
248
|
+
const headers = sharedHeaders("StartTaskExecution");
|
|
354
249
|
let body;
|
|
355
|
-
body = JSON.stringify(
|
|
250
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
356
251
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
252
|
};
|
|
358
253
|
exports.se_StartTaskExecutionCommand = se_StartTaskExecutionCommand;
|
|
359
254
|
const se_TagResourceCommand = async (input, context) => {
|
|
360
|
-
const headers =
|
|
361
|
-
"content-type": "application/x-amz-json-1.1",
|
|
362
|
-
"x-amz-target": "FmrsService.TagResource",
|
|
363
|
-
};
|
|
255
|
+
const headers = sharedHeaders("TagResource");
|
|
364
256
|
let body;
|
|
365
|
-
body = JSON.stringify(
|
|
257
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
366
258
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
259
|
};
|
|
368
260
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
369
261
|
const se_UntagResourceCommand = async (input, context) => {
|
|
370
|
-
const headers =
|
|
371
|
-
"content-type": "application/x-amz-json-1.1",
|
|
372
|
-
"x-amz-target": "FmrsService.UntagResource",
|
|
373
|
-
};
|
|
262
|
+
const headers = sharedHeaders("UntagResource");
|
|
374
263
|
let body;
|
|
375
|
-
body = JSON.stringify(
|
|
264
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
376
265
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
266
|
};
|
|
378
267
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
379
268
|
const se_UpdateAgentCommand = async (input, context) => {
|
|
380
|
-
const headers =
|
|
381
|
-
"content-type": "application/x-amz-json-1.1",
|
|
382
|
-
"x-amz-target": "FmrsService.UpdateAgent",
|
|
383
|
-
};
|
|
269
|
+
const headers = sharedHeaders("UpdateAgent");
|
|
384
270
|
let body;
|
|
385
|
-
body = JSON.stringify(
|
|
271
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
386
272
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
273
|
};
|
|
388
274
|
exports.se_UpdateAgentCommand = se_UpdateAgentCommand;
|
|
389
275
|
const se_UpdateLocationHdfsCommand = async (input, context) => {
|
|
390
|
-
const headers =
|
|
391
|
-
"content-type": "application/x-amz-json-1.1",
|
|
392
|
-
"x-amz-target": "FmrsService.UpdateLocationHdfs",
|
|
393
|
-
};
|
|
276
|
+
const headers = sharedHeaders("UpdateLocationHdfs");
|
|
394
277
|
let body;
|
|
395
278
|
body = JSON.stringify(se_UpdateLocationHdfsRequest(input, context));
|
|
396
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
397
280
|
};
|
|
398
281
|
exports.se_UpdateLocationHdfsCommand = se_UpdateLocationHdfsCommand;
|
|
399
282
|
const se_UpdateLocationNfsCommand = async (input, context) => {
|
|
400
|
-
const headers =
|
|
401
|
-
"content-type": "application/x-amz-json-1.1",
|
|
402
|
-
"x-amz-target": "FmrsService.UpdateLocationNfs",
|
|
403
|
-
};
|
|
283
|
+
const headers = sharedHeaders("UpdateLocationNfs");
|
|
404
284
|
let body;
|
|
405
|
-
body = JSON.stringify(
|
|
285
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
406
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
407
287
|
};
|
|
408
288
|
exports.se_UpdateLocationNfsCommand = se_UpdateLocationNfsCommand;
|
|
409
289
|
const se_UpdateLocationObjectStorageCommand = async (input, context) => {
|
|
410
|
-
const headers =
|
|
411
|
-
"content-type": "application/x-amz-json-1.1",
|
|
412
|
-
"x-amz-target": "FmrsService.UpdateLocationObjectStorage",
|
|
413
|
-
};
|
|
290
|
+
const headers = sharedHeaders("UpdateLocationObjectStorage");
|
|
414
291
|
let body;
|
|
415
292
|
body = JSON.stringify(se_UpdateLocationObjectStorageRequest(input, context));
|
|
416
293
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
417
294
|
};
|
|
418
295
|
exports.se_UpdateLocationObjectStorageCommand = se_UpdateLocationObjectStorageCommand;
|
|
419
296
|
const se_UpdateLocationSmbCommand = async (input, context) => {
|
|
420
|
-
const headers =
|
|
421
|
-
"content-type": "application/x-amz-json-1.1",
|
|
422
|
-
"x-amz-target": "FmrsService.UpdateLocationSmb",
|
|
423
|
-
};
|
|
297
|
+
const headers = sharedHeaders("UpdateLocationSmb");
|
|
424
298
|
let body;
|
|
425
|
-
body = JSON.stringify(
|
|
299
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
426
300
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
301
|
};
|
|
428
302
|
exports.se_UpdateLocationSmbCommand = se_UpdateLocationSmbCommand;
|
|
429
303
|
const se_UpdateTaskCommand = async (input, context) => {
|
|
430
|
-
const headers =
|
|
431
|
-
"content-type": "application/x-amz-json-1.1",
|
|
432
|
-
"x-amz-target": "FmrsService.UpdateTask",
|
|
433
|
-
};
|
|
304
|
+
const headers = sharedHeaders("UpdateTask");
|
|
434
305
|
let body;
|
|
435
|
-
body = JSON.stringify(
|
|
306
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
436
307
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
308
|
};
|
|
438
309
|
exports.se_UpdateTaskCommand = se_UpdateTaskCommand;
|
|
439
310
|
const se_UpdateTaskExecutionCommand = async (input, context) => {
|
|
440
|
-
const headers =
|
|
441
|
-
"content-type": "application/x-amz-json-1.1",
|
|
442
|
-
"x-amz-target": "FmrsService.UpdateTaskExecution",
|
|
443
|
-
};
|
|
311
|
+
const headers = sharedHeaders("UpdateTaskExecution");
|
|
444
312
|
let body;
|
|
445
|
-
body = JSON.stringify(
|
|
313
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
446
314
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
447
315
|
};
|
|
448
316
|
exports.se_UpdateTaskExecutionCommand = se_UpdateTaskExecutionCommand;
|
|
@@ -452,12 +320,12 @@ const de_CancelTaskExecutionCommand = async (output, context) => {
|
|
|
452
320
|
}
|
|
453
321
|
const data = await parseBody(output.body, context);
|
|
454
322
|
let contents = {};
|
|
455
|
-
contents =
|
|
323
|
+
contents = (0, smithy_client_1._json)(data);
|
|
456
324
|
const response = {
|
|
457
325
|
$metadata: deserializeMetadata(output),
|
|
458
326
|
...contents,
|
|
459
327
|
};
|
|
460
|
-
return
|
|
328
|
+
return response;
|
|
461
329
|
};
|
|
462
330
|
exports.de_CancelTaskExecutionCommand = de_CancelTaskExecutionCommand;
|
|
463
331
|
const de_CancelTaskExecutionCommandError = async (output, context) => {
|
|
@@ -475,10 +343,9 @@ const de_CancelTaskExecutionCommandError = async (output, context) => {
|
|
|
475
343
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
476
344
|
default:
|
|
477
345
|
const parsedBody = parsedOutput.body;
|
|
478
|
-
|
|
346
|
+
return throwDefaultError({
|
|
479
347
|
output,
|
|
480
348
|
parsedBody,
|
|
481
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
482
349
|
errorCode,
|
|
483
350
|
});
|
|
484
351
|
}
|
|
@@ -489,12 +356,12 @@ const de_CreateAgentCommand = async (output, context) => {
|
|
|
489
356
|
}
|
|
490
357
|
const data = await parseBody(output.body, context);
|
|
491
358
|
let contents = {};
|
|
492
|
-
contents =
|
|
359
|
+
contents = (0, smithy_client_1._json)(data);
|
|
493
360
|
const response = {
|
|
494
361
|
$metadata: deserializeMetadata(output),
|
|
495
362
|
...contents,
|
|
496
363
|
};
|
|
497
|
-
return
|
|
364
|
+
return response;
|
|
498
365
|
};
|
|
499
366
|
exports.de_CreateAgentCommand = de_CreateAgentCommand;
|
|
500
367
|
const de_CreateAgentCommandError = async (output, context) => {
|
|
@@ -512,10 +379,9 @@ const de_CreateAgentCommandError = async (output, context) => {
|
|
|
512
379
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
513
380
|
default:
|
|
514
381
|
const parsedBody = parsedOutput.body;
|
|
515
|
-
|
|
382
|
+
return throwDefaultError({
|
|
516
383
|
output,
|
|
517
384
|
parsedBody,
|
|
518
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
519
385
|
errorCode,
|
|
520
386
|
});
|
|
521
387
|
}
|
|
@@ -526,12 +392,12 @@ const de_CreateLocationEfsCommand = async (output, context) => {
|
|
|
526
392
|
}
|
|
527
393
|
const data = await parseBody(output.body, context);
|
|
528
394
|
let contents = {};
|
|
529
|
-
contents =
|
|
395
|
+
contents = (0, smithy_client_1._json)(data);
|
|
530
396
|
const response = {
|
|
531
397
|
$metadata: deserializeMetadata(output),
|
|
532
398
|
...contents,
|
|
533
399
|
};
|
|
534
|
-
return
|
|
400
|
+
return response;
|
|
535
401
|
};
|
|
536
402
|
exports.de_CreateLocationEfsCommand = de_CreateLocationEfsCommand;
|
|
537
403
|
const de_CreateLocationEfsCommandError = async (output, context) => {
|
|
@@ -549,10 +415,9 @@ const de_CreateLocationEfsCommandError = async (output, context) => {
|
|
|
549
415
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
550
416
|
default:
|
|
551
417
|
const parsedBody = parsedOutput.body;
|
|
552
|
-
|
|
418
|
+
return throwDefaultError({
|
|
553
419
|
output,
|
|
554
420
|
parsedBody,
|
|
555
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
556
421
|
errorCode,
|
|
557
422
|
});
|
|
558
423
|
}
|
|
@@ -563,12 +428,12 @@ const de_CreateLocationFsxLustreCommand = async (output, context) => {
|
|
|
563
428
|
}
|
|
564
429
|
const data = await parseBody(output.body, context);
|
|
565
430
|
let contents = {};
|
|
566
|
-
contents =
|
|
431
|
+
contents = (0, smithy_client_1._json)(data);
|
|
567
432
|
const response = {
|
|
568
433
|
$metadata: deserializeMetadata(output),
|
|
569
434
|
...contents,
|
|
570
435
|
};
|
|
571
|
-
return
|
|
436
|
+
return response;
|
|
572
437
|
};
|
|
573
438
|
exports.de_CreateLocationFsxLustreCommand = de_CreateLocationFsxLustreCommand;
|
|
574
439
|
const de_CreateLocationFsxLustreCommandError = async (output, context) => {
|
|
@@ -586,10 +451,9 @@ const de_CreateLocationFsxLustreCommandError = async (output, context) => {
|
|
|
586
451
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
587
452
|
default:
|
|
588
453
|
const parsedBody = parsedOutput.body;
|
|
589
|
-
|
|
454
|
+
return throwDefaultError({
|
|
590
455
|
output,
|
|
591
456
|
parsedBody,
|
|
592
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
593
457
|
errorCode,
|
|
594
458
|
});
|
|
595
459
|
}
|
|
@@ -600,12 +464,12 @@ const de_CreateLocationFsxOntapCommand = async (output, context) => {
|
|
|
600
464
|
}
|
|
601
465
|
const data = await parseBody(output.body, context);
|
|
602
466
|
let contents = {};
|
|
603
|
-
contents =
|
|
467
|
+
contents = (0, smithy_client_1._json)(data);
|
|
604
468
|
const response = {
|
|
605
469
|
$metadata: deserializeMetadata(output),
|
|
606
470
|
...contents,
|
|
607
471
|
};
|
|
608
|
-
return
|
|
472
|
+
return response;
|
|
609
473
|
};
|
|
610
474
|
exports.de_CreateLocationFsxOntapCommand = de_CreateLocationFsxOntapCommand;
|
|
611
475
|
const de_CreateLocationFsxOntapCommandError = async (output, context) => {
|
|
@@ -623,10 +487,9 @@ const de_CreateLocationFsxOntapCommandError = async (output, context) => {
|
|
|
623
487
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
624
488
|
default:
|
|
625
489
|
const parsedBody = parsedOutput.body;
|
|
626
|
-
|
|
490
|
+
return throwDefaultError({
|
|
627
491
|
output,
|
|
628
492
|
parsedBody,
|
|
629
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
630
493
|
errorCode,
|
|
631
494
|
});
|
|
632
495
|
}
|
|
@@ -637,12 +500,12 @@ const de_CreateLocationFsxOpenZfsCommand = async (output, context) => {
|
|
|
637
500
|
}
|
|
638
501
|
const data = await parseBody(output.body, context);
|
|
639
502
|
let contents = {};
|
|
640
|
-
contents =
|
|
503
|
+
contents = (0, smithy_client_1._json)(data);
|
|
641
504
|
const response = {
|
|
642
505
|
$metadata: deserializeMetadata(output),
|
|
643
506
|
...contents,
|
|
644
507
|
};
|
|
645
|
-
return
|
|
508
|
+
return response;
|
|
646
509
|
};
|
|
647
510
|
exports.de_CreateLocationFsxOpenZfsCommand = de_CreateLocationFsxOpenZfsCommand;
|
|
648
511
|
const de_CreateLocationFsxOpenZfsCommandError = async (output, context) => {
|
|
@@ -660,10 +523,9 @@ const de_CreateLocationFsxOpenZfsCommandError = async (output, context) => {
|
|
|
660
523
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
661
524
|
default:
|
|
662
525
|
const parsedBody = parsedOutput.body;
|
|
663
|
-
|
|
526
|
+
return throwDefaultError({
|
|
664
527
|
output,
|
|
665
528
|
parsedBody,
|
|
666
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
667
529
|
errorCode,
|
|
668
530
|
});
|
|
669
531
|
}
|
|
@@ -674,12 +536,12 @@ const de_CreateLocationFsxWindowsCommand = async (output, context) => {
|
|
|
674
536
|
}
|
|
675
537
|
const data = await parseBody(output.body, context);
|
|
676
538
|
let contents = {};
|
|
677
|
-
contents =
|
|
539
|
+
contents = (0, smithy_client_1._json)(data);
|
|
678
540
|
const response = {
|
|
679
541
|
$metadata: deserializeMetadata(output),
|
|
680
542
|
...contents,
|
|
681
543
|
};
|
|
682
|
-
return
|
|
544
|
+
return response;
|
|
683
545
|
};
|
|
684
546
|
exports.de_CreateLocationFsxWindowsCommand = de_CreateLocationFsxWindowsCommand;
|
|
685
547
|
const de_CreateLocationFsxWindowsCommandError = async (output, context) => {
|
|
@@ -697,10 +559,9 @@ const de_CreateLocationFsxWindowsCommandError = async (output, context) => {
|
|
|
697
559
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
698
560
|
default:
|
|
699
561
|
const parsedBody = parsedOutput.body;
|
|
700
|
-
|
|
562
|
+
return throwDefaultError({
|
|
701
563
|
output,
|
|
702
564
|
parsedBody,
|
|
703
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
704
565
|
errorCode,
|
|
705
566
|
});
|
|
706
567
|
}
|
|
@@ -711,12 +572,12 @@ const de_CreateLocationHdfsCommand = async (output, context) => {
|
|
|
711
572
|
}
|
|
712
573
|
const data = await parseBody(output.body, context);
|
|
713
574
|
let contents = {};
|
|
714
|
-
contents =
|
|
575
|
+
contents = (0, smithy_client_1._json)(data);
|
|
715
576
|
const response = {
|
|
716
577
|
$metadata: deserializeMetadata(output),
|
|
717
578
|
...contents,
|
|
718
579
|
};
|
|
719
|
-
return
|
|
580
|
+
return response;
|
|
720
581
|
};
|
|
721
582
|
exports.de_CreateLocationHdfsCommand = de_CreateLocationHdfsCommand;
|
|
722
583
|
const de_CreateLocationHdfsCommandError = async (output, context) => {
|
|
@@ -734,10 +595,9 @@ const de_CreateLocationHdfsCommandError = async (output, context) => {
|
|
|
734
595
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
735
596
|
default:
|
|
736
597
|
const parsedBody = parsedOutput.body;
|
|
737
|
-
|
|
598
|
+
return throwDefaultError({
|
|
738
599
|
output,
|
|
739
600
|
parsedBody,
|
|
740
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
741
601
|
errorCode,
|
|
742
602
|
});
|
|
743
603
|
}
|
|
@@ -748,12 +608,12 @@ const de_CreateLocationNfsCommand = async (output, context) => {
|
|
|
748
608
|
}
|
|
749
609
|
const data = await parseBody(output.body, context);
|
|
750
610
|
let contents = {};
|
|
751
|
-
contents =
|
|
611
|
+
contents = (0, smithy_client_1._json)(data);
|
|
752
612
|
const response = {
|
|
753
613
|
$metadata: deserializeMetadata(output),
|
|
754
614
|
...contents,
|
|
755
615
|
};
|
|
756
|
-
return
|
|
616
|
+
return response;
|
|
757
617
|
};
|
|
758
618
|
exports.de_CreateLocationNfsCommand = de_CreateLocationNfsCommand;
|
|
759
619
|
const de_CreateLocationNfsCommandError = async (output, context) => {
|
|
@@ -771,10 +631,9 @@ const de_CreateLocationNfsCommandError = async (output, context) => {
|
|
|
771
631
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
772
632
|
default:
|
|
773
633
|
const parsedBody = parsedOutput.body;
|
|
774
|
-
|
|
634
|
+
return throwDefaultError({
|
|
775
635
|
output,
|
|
776
636
|
parsedBody,
|
|
777
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
778
637
|
errorCode,
|
|
779
638
|
});
|
|
780
639
|
}
|
|
@@ -785,12 +644,12 @@ const de_CreateLocationObjectStorageCommand = async (output, context) => {
|
|
|
785
644
|
}
|
|
786
645
|
const data = await parseBody(output.body, context);
|
|
787
646
|
let contents = {};
|
|
788
|
-
contents =
|
|
647
|
+
contents = (0, smithy_client_1._json)(data);
|
|
789
648
|
const response = {
|
|
790
649
|
$metadata: deserializeMetadata(output),
|
|
791
650
|
...contents,
|
|
792
651
|
};
|
|
793
|
-
return
|
|
652
|
+
return response;
|
|
794
653
|
};
|
|
795
654
|
exports.de_CreateLocationObjectStorageCommand = de_CreateLocationObjectStorageCommand;
|
|
796
655
|
const de_CreateLocationObjectStorageCommandError = async (output, context) => {
|
|
@@ -808,10 +667,9 @@ const de_CreateLocationObjectStorageCommandError = async (output, context) => {
|
|
|
808
667
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
809
668
|
default:
|
|
810
669
|
const parsedBody = parsedOutput.body;
|
|
811
|
-
|
|
670
|
+
return throwDefaultError({
|
|
812
671
|
output,
|
|
813
672
|
parsedBody,
|
|
814
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
815
673
|
errorCode,
|
|
816
674
|
});
|
|
817
675
|
}
|
|
@@ -822,12 +680,12 @@ const de_CreateLocationS3Command = async (output, context) => {
|
|
|
822
680
|
}
|
|
823
681
|
const data = await parseBody(output.body, context);
|
|
824
682
|
let contents = {};
|
|
825
|
-
contents =
|
|
683
|
+
contents = (0, smithy_client_1._json)(data);
|
|
826
684
|
const response = {
|
|
827
685
|
$metadata: deserializeMetadata(output),
|
|
828
686
|
...contents,
|
|
829
687
|
};
|
|
830
|
-
return
|
|
688
|
+
return response;
|
|
831
689
|
};
|
|
832
690
|
exports.de_CreateLocationS3Command = de_CreateLocationS3Command;
|
|
833
691
|
const de_CreateLocationS3CommandError = async (output, context) => {
|
|
@@ -845,10 +703,9 @@ const de_CreateLocationS3CommandError = async (output, context) => {
|
|
|
845
703
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
846
704
|
default:
|
|
847
705
|
const parsedBody = parsedOutput.body;
|
|
848
|
-
|
|
706
|
+
return throwDefaultError({
|
|
849
707
|
output,
|
|
850
708
|
parsedBody,
|
|
851
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
852
709
|
errorCode,
|
|
853
710
|
});
|
|
854
711
|
}
|
|
@@ -859,12 +716,12 @@ const de_CreateLocationSmbCommand = async (output, context) => {
|
|
|
859
716
|
}
|
|
860
717
|
const data = await parseBody(output.body, context);
|
|
861
718
|
let contents = {};
|
|
862
|
-
contents =
|
|
719
|
+
contents = (0, smithy_client_1._json)(data);
|
|
863
720
|
const response = {
|
|
864
721
|
$metadata: deserializeMetadata(output),
|
|
865
722
|
...contents,
|
|
866
723
|
};
|
|
867
|
-
return
|
|
724
|
+
return response;
|
|
868
725
|
};
|
|
869
726
|
exports.de_CreateLocationSmbCommand = de_CreateLocationSmbCommand;
|
|
870
727
|
const de_CreateLocationSmbCommandError = async (output, context) => {
|
|
@@ -882,10 +739,9 @@ const de_CreateLocationSmbCommandError = async (output, context) => {
|
|
|
882
739
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
883
740
|
default:
|
|
884
741
|
const parsedBody = parsedOutput.body;
|
|
885
|
-
|
|
742
|
+
return throwDefaultError({
|
|
886
743
|
output,
|
|
887
744
|
parsedBody,
|
|
888
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
889
745
|
errorCode,
|
|
890
746
|
});
|
|
891
747
|
}
|
|
@@ -896,12 +752,12 @@ const de_CreateTaskCommand = async (output, context) => {
|
|
|
896
752
|
}
|
|
897
753
|
const data = await parseBody(output.body, context);
|
|
898
754
|
let contents = {};
|
|
899
|
-
contents =
|
|
755
|
+
contents = (0, smithy_client_1._json)(data);
|
|
900
756
|
const response = {
|
|
901
757
|
$metadata: deserializeMetadata(output),
|
|
902
758
|
...contents,
|
|
903
759
|
};
|
|
904
|
-
return
|
|
760
|
+
return response;
|
|
905
761
|
};
|
|
906
762
|
exports.de_CreateTaskCommand = de_CreateTaskCommand;
|
|
907
763
|
const de_CreateTaskCommandError = async (output, context) => {
|
|
@@ -919,10 +775,9 @@ const de_CreateTaskCommandError = async (output, context) => {
|
|
|
919
775
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
920
776
|
default:
|
|
921
777
|
const parsedBody = parsedOutput.body;
|
|
922
|
-
|
|
778
|
+
return throwDefaultError({
|
|
923
779
|
output,
|
|
924
780
|
parsedBody,
|
|
925
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
926
781
|
errorCode,
|
|
927
782
|
});
|
|
928
783
|
}
|
|
@@ -933,12 +788,12 @@ const de_DeleteAgentCommand = async (output, context) => {
|
|
|
933
788
|
}
|
|
934
789
|
const data = await parseBody(output.body, context);
|
|
935
790
|
let contents = {};
|
|
936
|
-
contents =
|
|
791
|
+
contents = (0, smithy_client_1._json)(data);
|
|
937
792
|
const response = {
|
|
938
793
|
$metadata: deserializeMetadata(output),
|
|
939
794
|
...contents,
|
|
940
795
|
};
|
|
941
|
-
return
|
|
796
|
+
return response;
|
|
942
797
|
};
|
|
943
798
|
exports.de_DeleteAgentCommand = de_DeleteAgentCommand;
|
|
944
799
|
const de_DeleteAgentCommandError = async (output, context) => {
|
|
@@ -956,10 +811,9 @@ const de_DeleteAgentCommandError = async (output, context) => {
|
|
|
956
811
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
957
812
|
default:
|
|
958
813
|
const parsedBody = parsedOutput.body;
|
|
959
|
-
|
|
814
|
+
return throwDefaultError({
|
|
960
815
|
output,
|
|
961
816
|
parsedBody,
|
|
962
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
963
817
|
errorCode,
|
|
964
818
|
});
|
|
965
819
|
}
|
|
@@ -970,12 +824,12 @@ const de_DeleteLocationCommand = async (output, context) => {
|
|
|
970
824
|
}
|
|
971
825
|
const data = await parseBody(output.body, context);
|
|
972
826
|
let contents = {};
|
|
973
|
-
contents =
|
|
827
|
+
contents = (0, smithy_client_1._json)(data);
|
|
974
828
|
const response = {
|
|
975
829
|
$metadata: deserializeMetadata(output),
|
|
976
830
|
...contents,
|
|
977
831
|
};
|
|
978
|
-
return
|
|
832
|
+
return response;
|
|
979
833
|
};
|
|
980
834
|
exports.de_DeleteLocationCommand = de_DeleteLocationCommand;
|
|
981
835
|
const de_DeleteLocationCommandError = async (output, context) => {
|
|
@@ -993,10 +847,9 @@ const de_DeleteLocationCommandError = async (output, context) => {
|
|
|
993
847
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
994
848
|
default:
|
|
995
849
|
const parsedBody = parsedOutput.body;
|
|
996
|
-
|
|
850
|
+
return throwDefaultError({
|
|
997
851
|
output,
|
|
998
852
|
parsedBody,
|
|
999
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1000
853
|
errorCode,
|
|
1001
854
|
});
|
|
1002
855
|
}
|
|
@@ -1007,12 +860,12 @@ const de_DeleteTaskCommand = async (output, context) => {
|
|
|
1007
860
|
}
|
|
1008
861
|
const data = await parseBody(output.body, context);
|
|
1009
862
|
let contents = {};
|
|
1010
|
-
contents =
|
|
863
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1011
864
|
const response = {
|
|
1012
865
|
$metadata: deserializeMetadata(output),
|
|
1013
866
|
...contents,
|
|
1014
867
|
};
|
|
1015
|
-
return
|
|
868
|
+
return response;
|
|
1016
869
|
};
|
|
1017
870
|
exports.de_DeleteTaskCommand = de_DeleteTaskCommand;
|
|
1018
871
|
const de_DeleteTaskCommandError = async (output, context) => {
|
|
@@ -1030,10 +883,9 @@ const de_DeleteTaskCommandError = async (output, context) => {
|
|
|
1030
883
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1031
884
|
default:
|
|
1032
885
|
const parsedBody = parsedOutput.body;
|
|
1033
|
-
|
|
886
|
+
return throwDefaultError({
|
|
1034
887
|
output,
|
|
1035
888
|
parsedBody,
|
|
1036
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1037
889
|
errorCode,
|
|
1038
890
|
});
|
|
1039
891
|
}
|
|
@@ -1049,7 +901,7 @@ const de_DescribeAgentCommand = async (output, context) => {
|
|
|
1049
901
|
$metadata: deserializeMetadata(output),
|
|
1050
902
|
...contents,
|
|
1051
903
|
};
|
|
1052
|
-
return
|
|
904
|
+
return response;
|
|
1053
905
|
};
|
|
1054
906
|
exports.de_DescribeAgentCommand = de_DescribeAgentCommand;
|
|
1055
907
|
const de_DescribeAgentCommandError = async (output, context) => {
|
|
@@ -1067,10 +919,9 @@ const de_DescribeAgentCommandError = async (output, context) => {
|
|
|
1067
919
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1068
920
|
default:
|
|
1069
921
|
const parsedBody = parsedOutput.body;
|
|
1070
|
-
|
|
922
|
+
return throwDefaultError({
|
|
1071
923
|
output,
|
|
1072
924
|
parsedBody,
|
|
1073
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1074
925
|
errorCode,
|
|
1075
926
|
});
|
|
1076
927
|
}
|
|
@@ -1086,7 +937,7 @@ const de_DescribeLocationEfsCommand = async (output, context) => {
|
|
|
1086
937
|
$metadata: deserializeMetadata(output),
|
|
1087
938
|
...contents,
|
|
1088
939
|
};
|
|
1089
|
-
return
|
|
940
|
+
return response;
|
|
1090
941
|
};
|
|
1091
942
|
exports.de_DescribeLocationEfsCommand = de_DescribeLocationEfsCommand;
|
|
1092
943
|
const de_DescribeLocationEfsCommandError = async (output, context) => {
|
|
@@ -1104,10 +955,9 @@ const de_DescribeLocationEfsCommandError = async (output, context) => {
|
|
|
1104
955
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1105
956
|
default:
|
|
1106
957
|
const parsedBody = parsedOutput.body;
|
|
1107
|
-
|
|
958
|
+
return throwDefaultError({
|
|
1108
959
|
output,
|
|
1109
960
|
parsedBody,
|
|
1110
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1111
961
|
errorCode,
|
|
1112
962
|
});
|
|
1113
963
|
}
|
|
@@ -1123,7 +973,7 @@ const de_DescribeLocationFsxLustreCommand = async (output, context) => {
|
|
|
1123
973
|
$metadata: deserializeMetadata(output),
|
|
1124
974
|
...contents,
|
|
1125
975
|
};
|
|
1126
|
-
return
|
|
976
|
+
return response;
|
|
1127
977
|
};
|
|
1128
978
|
exports.de_DescribeLocationFsxLustreCommand = de_DescribeLocationFsxLustreCommand;
|
|
1129
979
|
const de_DescribeLocationFsxLustreCommandError = async (output, context) => {
|
|
@@ -1141,10 +991,9 @@ const de_DescribeLocationFsxLustreCommandError = async (output, context) => {
|
|
|
1141
991
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1142
992
|
default:
|
|
1143
993
|
const parsedBody = parsedOutput.body;
|
|
1144
|
-
|
|
994
|
+
return throwDefaultError({
|
|
1145
995
|
output,
|
|
1146
996
|
parsedBody,
|
|
1147
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1148
997
|
errorCode,
|
|
1149
998
|
});
|
|
1150
999
|
}
|
|
@@ -1160,7 +1009,7 @@ const de_DescribeLocationFsxOntapCommand = async (output, context) => {
|
|
|
1160
1009
|
$metadata: deserializeMetadata(output),
|
|
1161
1010
|
...contents,
|
|
1162
1011
|
};
|
|
1163
|
-
return
|
|
1012
|
+
return response;
|
|
1164
1013
|
};
|
|
1165
1014
|
exports.de_DescribeLocationFsxOntapCommand = de_DescribeLocationFsxOntapCommand;
|
|
1166
1015
|
const de_DescribeLocationFsxOntapCommandError = async (output, context) => {
|
|
@@ -1178,10 +1027,9 @@ const de_DescribeLocationFsxOntapCommandError = async (output, context) => {
|
|
|
1178
1027
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1179
1028
|
default:
|
|
1180
1029
|
const parsedBody = parsedOutput.body;
|
|
1181
|
-
|
|
1030
|
+
return throwDefaultError({
|
|
1182
1031
|
output,
|
|
1183
1032
|
parsedBody,
|
|
1184
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1185
1033
|
errorCode,
|
|
1186
1034
|
});
|
|
1187
1035
|
}
|
|
@@ -1197,7 +1045,7 @@ const de_DescribeLocationFsxOpenZfsCommand = async (output, context) => {
|
|
|
1197
1045
|
$metadata: deserializeMetadata(output),
|
|
1198
1046
|
...contents,
|
|
1199
1047
|
};
|
|
1200
|
-
return
|
|
1048
|
+
return response;
|
|
1201
1049
|
};
|
|
1202
1050
|
exports.de_DescribeLocationFsxOpenZfsCommand = de_DescribeLocationFsxOpenZfsCommand;
|
|
1203
1051
|
const de_DescribeLocationFsxOpenZfsCommandError = async (output, context) => {
|
|
@@ -1215,10 +1063,9 @@ const de_DescribeLocationFsxOpenZfsCommandError = async (output, context) => {
|
|
|
1215
1063
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1216
1064
|
default:
|
|
1217
1065
|
const parsedBody = parsedOutput.body;
|
|
1218
|
-
|
|
1066
|
+
return throwDefaultError({
|
|
1219
1067
|
output,
|
|
1220
1068
|
parsedBody,
|
|
1221
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1222
1069
|
errorCode,
|
|
1223
1070
|
});
|
|
1224
1071
|
}
|
|
@@ -1234,7 +1081,7 @@ const de_DescribeLocationFsxWindowsCommand = async (output, context) => {
|
|
|
1234
1081
|
$metadata: deserializeMetadata(output),
|
|
1235
1082
|
...contents,
|
|
1236
1083
|
};
|
|
1237
|
-
return
|
|
1084
|
+
return response;
|
|
1238
1085
|
};
|
|
1239
1086
|
exports.de_DescribeLocationFsxWindowsCommand = de_DescribeLocationFsxWindowsCommand;
|
|
1240
1087
|
const de_DescribeLocationFsxWindowsCommandError = async (output, context) => {
|
|
@@ -1252,10 +1099,9 @@ const de_DescribeLocationFsxWindowsCommandError = async (output, context) => {
|
|
|
1252
1099
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1253
1100
|
default:
|
|
1254
1101
|
const parsedBody = parsedOutput.body;
|
|
1255
|
-
|
|
1102
|
+
return throwDefaultError({
|
|
1256
1103
|
output,
|
|
1257
1104
|
parsedBody,
|
|
1258
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1259
1105
|
errorCode,
|
|
1260
1106
|
});
|
|
1261
1107
|
}
|
|
@@ -1271,7 +1117,7 @@ const de_DescribeLocationHdfsCommand = async (output, context) => {
|
|
|
1271
1117
|
$metadata: deserializeMetadata(output),
|
|
1272
1118
|
...contents,
|
|
1273
1119
|
};
|
|
1274
|
-
return
|
|
1120
|
+
return response;
|
|
1275
1121
|
};
|
|
1276
1122
|
exports.de_DescribeLocationHdfsCommand = de_DescribeLocationHdfsCommand;
|
|
1277
1123
|
const de_DescribeLocationHdfsCommandError = async (output, context) => {
|
|
@@ -1289,10 +1135,9 @@ const de_DescribeLocationHdfsCommandError = async (output, context) => {
|
|
|
1289
1135
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1290
1136
|
default:
|
|
1291
1137
|
const parsedBody = parsedOutput.body;
|
|
1292
|
-
|
|
1138
|
+
return throwDefaultError({
|
|
1293
1139
|
output,
|
|
1294
1140
|
parsedBody,
|
|
1295
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1296
1141
|
errorCode,
|
|
1297
1142
|
});
|
|
1298
1143
|
}
|
|
@@ -1308,7 +1153,7 @@ const de_DescribeLocationNfsCommand = async (output, context) => {
|
|
|
1308
1153
|
$metadata: deserializeMetadata(output),
|
|
1309
1154
|
...contents,
|
|
1310
1155
|
};
|
|
1311
|
-
return
|
|
1156
|
+
return response;
|
|
1312
1157
|
};
|
|
1313
1158
|
exports.de_DescribeLocationNfsCommand = de_DescribeLocationNfsCommand;
|
|
1314
1159
|
const de_DescribeLocationNfsCommandError = async (output, context) => {
|
|
@@ -1326,10 +1171,9 @@ const de_DescribeLocationNfsCommandError = async (output, context) => {
|
|
|
1326
1171
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1327
1172
|
default:
|
|
1328
1173
|
const parsedBody = parsedOutput.body;
|
|
1329
|
-
|
|
1174
|
+
return throwDefaultError({
|
|
1330
1175
|
output,
|
|
1331
1176
|
parsedBody,
|
|
1332
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1333
1177
|
errorCode,
|
|
1334
1178
|
});
|
|
1335
1179
|
}
|
|
@@ -1345,7 +1189,7 @@ const de_DescribeLocationObjectStorageCommand = async (output, context) => {
|
|
|
1345
1189
|
$metadata: deserializeMetadata(output),
|
|
1346
1190
|
...contents,
|
|
1347
1191
|
};
|
|
1348
|
-
return
|
|
1192
|
+
return response;
|
|
1349
1193
|
};
|
|
1350
1194
|
exports.de_DescribeLocationObjectStorageCommand = de_DescribeLocationObjectStorageCommand;
|
|
1351
1195
|
const de_DescribeLocationObjectStorageCommandError = async (output, context) => {
|
|
@@ -1363,10 +1207,9 @@ const de_DescribeLocationObjectStorageCommandError = async (output, context) =>
|
|
|
1363
1207
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1364
1208
|
default:
|
|
1365
1209
|
const parsedBody = parsedOutput.body;
|
|
1366
|
-
|
|
1210
|
+
return throwDefaultError({
|
|
1367
1211
|
output,
|
|
1368
1212
|
parsedBody,
|
|
1369
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1370
1213
|
errorCode,
|
|
1371
1214
|
});
|
|
1372
1215
|
}
|
|
@@ -1382,7 +1225,7 @@ const de_DescribeLocationS3Command = async (output, context) => {
|
|
|
1382
1225
|
$metadata: deserializeMetadata(output),
|
|
1383
1226
|
...contents,
|
|
1384
1227
|
};
|
|
1385
|
-
return
|
|
1228
|
+
return response;
|
|
1386
1229
|
};
|
|
1387
1230
|
exports.de_DescribeLocationS3Command = de_DescribeLocationS3Command;
|
|
1388
1231
|
const de_DescribeLocationS3CommandError = async (output, context) => {
|
|
@@ -1400,10 +1243,9 @@ const de_DescribeLocationS3CommandError = async (output, context) => {
|
|
|
1400
1243
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1401
1244
|
default:
|
|
1402
1245
|
const parsedBody = parsedOutput.body;
|
|
1403
|
-
|
|
1246
|
+
return throwDefaultError({
|
|
1404
1247
|
output,
|
|
1405
1248
|
parsedBody,
|
|
1406
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1407
1249
|
errorCode,
|
|
1408
1250
|
});
|
|
1409
1251
|
}
|
|
@@ -1419,7 +1261,7 @@ const de_DescribeLocationSmbCommand = async (output, context) => {
|
|
|
1419
1261
|
$metadata: deserializeMetadata(output),
|
|
1420
1262
|
...contents,
|
|
1421
1263
|
};
|
|
1422
|
-
return
|
|
1264
|
+
return response;
|
|
1423
1265
|
};
|
|
1424
1266
|
exports.de_DescribeLocationSmbCommand = de_DescribeLocationSmbCommand;
|
|
1425
1267
|
const de_DescribeLocationSmbCommandError = async (output, context) => {
|
|
@@ -1437,10 +1279,9 @@ const de_DescribeLocationSmbCommandError = async (output, context) => {
|
|
|
1437
1279
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1438
1280
|
default:
|
|
1439
1281
|
const parsedBody = parsedOutput.body;
|
|
1440
|
-
|
|
1282
|
+
return throwDefaultError({
|
|
1441
1283
|
output,
|
|
1442
1284
|
parsedBody,
|
|
1443
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1444
1285
|
errorCode,
|
|
1445
1286
|
});
|
|
1446
1287
|
}
|
|
@@ -1456,7 +1297,7 @@ const de_DescribeTaskCommand = async (output, context) => {
|
|
|
1456
1297
|
$metadata: deserializeMetadata(output),
|
|
1457
1298
|
...contents,
|
|
1458
1299
|
};
|
|
1459
|
-
return
|
|
1300
|
+
return response;
|
|
1460
1301
|
};
|
|
1461
1302
|
exports.de_DescribeTaskCommand = de_DescribeTaskCommand;
|
|
1462
1303
|
const de_DescribeTaskCommandError = async (output, context) => {
|
|
@@ -1474,10 +1315,9 @@ const de_DescribeTaskCommandError = async (output, context) => {
|
|
|
1474
1315
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1475
1316
|
default:
|
|
1476
1317
|
const parsedBody = parsedOutput.body;
|
|
1477
|
-
|
|
1318
|
+
return throwDefaultError({
|
|
1478
1319
|
output,
|
|
1479
1320
|
parsedBody,
|
|
1480
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1481
1321
|
errorCode,
|
|
1482
1322
|
});
|
|
1483
1323
|
}
|
|
@@ -1493,7 +1333,7 @@ const de_DescribeTaskExecutionCommand = async (output, context) => {
|
|
|
1493
1333
|
$metadata: deserializeMetadata(output),
|
|
1494
1334
|
...contents,
|
|
1495
1335
|
};
|
|
1496
|
-
return
|
|
1336
|
+
return response;
|
|
1497
1337
|
};
|
|
1498
1338
|
exports.de_DescribeTaskExecutionCommand = de_DescribeTaskExecutionCommand;
|
|
1499
1339
|
const de_DescribeTaskExecutionCommandError = async (output, context) => {
|
|
@@ -1511,10 +1351,9 @@ const de_DescribeTaskExecutionCommandError = async (output, context) => {
|
|
|
1511
1351
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1512
1352
|
default:
|
|
1513
1353
|
const parsedBody = parsedOutput.body;
|
|
1514
|
-
|
|
1354
|
+
return throwDefaultError({
|
|
1515
1355
|
output,
|
|
1516
1356
|
parsedBody,
|
|
1517
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1518
1357
|
errorCode,
|
|
1519
1358
|
});
|
|
1520
1359
|
}
|
|
@@ -1525,12 +1364,12 @@ const de_ListAgentsCommand = async (output, context) => {
|
|
|
1525
1364
|
}
|
|
1526
1365
|
const data = await parseBody(output.body, context);
|
|
1527
1366
|
let contents = {};
|
|
1528
|
-
contents =
|
|
1367
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1529
1368
|
const response = {
|
|
1530
1369
|
$metadata: deserializeMetadata(output),
|
|
1531
1370
|
...contents,
|
|
1532
1371
|
};
|
|
1533
|
-
return
|
|
1372
|
+
return response;
|
|
1534
1373
|
};
|
|
1535
1374
|
exports.de_ListAgentsCommand = de_ListAgentsCommand;
|
|
1536
1375
|
const de_ListAgentsCommandError = async (output, context) => {
|
|
@@ -1548,10 +1387,9 @@ const de_ListAgentsCommandError = async (output, context) => {
|
|
|
1548
1387
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1549
1388
|
default:
|
|
1550
1389
|
const parsedBody = parsedOutput.body;
|
|
1551
|
-
|
|
1390
|
+
return throwDefaultError({
|
|
1552
1391
|
output,
|
|
1553
1392
|
parsedBody,
|
|
1554
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1555
1393
|
errorCode,
|
|
1556
1394
|
});
|
|
1557
1395
|
}
|
|
@@ -1562,12 +1400,12 @@ const de_ListLocationsCommand = async (output, context) => {
|
|
|
1562
1400
|
}
|
|
1563
1401
|
const data = await parseBody(output.body, context);
|
|
1564
1402
|
let contents = {};
|
|
1565
|
-
contents =
|
|
1403
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1566
1404
|
const response = {
|
|
1567
1405
|
$metadata: deserializeMetadata(output),
|
|
1568
1406
|
...contents,
|
|
1569
1407
|
};
|
|
1570
|
-
return
|
|
1408
|
+
return response;
|
|
1571
1409
|
};
|
|
1572
1410
|
exports.de_ListLocationsCommand = de_ListLocationsCommand;
|
|
1573
1411
|
const de_ListLocationsCommandError = async (output, context) => {
|
|
@@ -1585,10 +1423,9 @@ const de_ListLocationsCommandError = async (output, context) => {
|
|
|
1585
1423
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1586
1424
|
default:
|
|
1587
1425
|
const parsedBody = parsedOutput.body;
|
|
1588
|
-
|
|
1426
|
+
return throwDefaultError({
|
|
1589
1427
|
output,
|
|
1590
1428
|
parsedBody,
|
|
1591
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1592
1429
|
errorCode,
|
|
1593
1430
|
});
|
|
1594
1431
|
}
|
|
@@ -1599,12 +1436,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1599
1436
|
}
|
|
1600
1437
|
const data = await parseBody(output.body, context);
|
|
1601
1438
|
let contents = {};
|
|
1602
|
-
contents =
|
|
1439
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1603
1440
|
const response = {
|
|
1604
1441
|
$metadata: deserializeMetadata(output),
|
|
1605
1442
|
...contents,
|
|
1606
1443
|
};
|
|
1607
|
-
return
|
|
1444
|
+
return response;
|
|
1608
1445
|
};
|
|
1609
1446
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1610
1447
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1622,10 +1459,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1622
1459
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1623
1460
|
default:
|
|
1624
1461
|
const parsedBody = parsedOutput.body;
|
|
1625
|
-
|
|
1462
|
+
return throwDefaultError({
|
|
1626
1463
|
output,
|
|
1627
1464
|
parsedBody,
|
|
1628
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1629
1465
|
errorCode,
|
|
1630
1466
|
});
|
|
1631
1467
|
}
|
|
@@ -1636,12 +1472,12 @@ const de_ListTaskExecutionsCommand = async (output, context) => {
|
|
|
1636
1472
|
}
|
|
1637
1473
|
const data = await parseBody(output.body, context);
|
|
1638
1474
|
let contents = {};
|
|
1639
|
-
contents =
|
|
1475
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1640
1476
|
const response = {
|
|
1641
1477
|
$metadata: deserializeMetadata(output),
|
|
1642
1478
|
...contents,
|
|
1643
1479
|
};
|
|
1644
|
-
return
|
|
1480
|
+
return response;
|
|
1645
1481
|
};
|
|
1646
1482
|
exports.de_ListTaskExecutionsCommand = de_ListTaskExecutionsCommand;
|
|
1647
1483
|
const de_ListTaskExecutionsCommandError = async (output, context) => {
|
|
@@ -1659,10 +1495,9 @@ const de_ListTaskExecutionsCommandError = async (output, context) => {
|
|
|
1659
1495
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1660
1496
|
default:
|
|
1661
1497
|
const parsedBody = parsedOutput.body;
|
|
1662
|
-
|
|
1498
|
+
return throwDefaultError({
|
|
1663
1499
|
output,
|
|
1664
1500
|
parsedBody,
|
|
1665
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1666
1501
|
errorCode,
|
|
1667
1502
|
});
|
|
1668
1503
|
}
|
|
@@ -1673,12 +1508,12 @@ const de_ListTasksCommand = async (output, context) => {
|
|
|
1673
1508
|
}
|
|
1674
1509
|
const data = await parseBody(output.body, context);
|
|
1675
1510
|
let contents = {};
|
|
1676
|
-
contents =
|
|
1511
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1677
1512
|
const response = {
|
|
1678
1513
|
$metadata: deserializeMetadata(output),
|
|
1679
1514
|
...contents,
|
|
1680
1515
|
};
|
|
1681
|
-
return
|
|
1516
|
+
return response;
|
|
1682
1517
|
};
|
|
1683
1518
|
exports.de_ListTasksCommand = de_ListTasksCommand;
|
|
1684
1519
|
const de_ListTasksCommandError = async (output, context) => {
|
|
@@ -1696,10 +1531,9 @@ const de_ListTasksCommandError = async (output, context) => {
|
|
|
1696
1531
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1697
1532
|
default:
|
|
1698
1533
|
const parsedBody = parsedOutput.body;
|
|
1699
|
-
|
|
1534
|
+
return throwDefaultError({
|
|
1700
1535
|
output,
|
|
1701
1536
|
parsedBody,
|
|
1702
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1703
1537
|
errorCode,
|
|
1704
1538
|
});
|
|
1705
1539
|
}
|
|
@@ -1710,12 +1544,12 @@ const de_StartTaskExecutionCommand = async (output, context) => {
|
|
|
1710
1544
|
}
|
|
1711
1545
|
const data = await parseBody(output.body, context);
|
|
1712
1546
|
let contents = {};
|
|
1713
|
-
contents =
|
|
1547
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1714
1548
|
const response = {
|
|
1715
1549
|
$metadata: deserializeMetadata(output),
|
|
1716
1550
|
...contents,
|
|
1717
1551
|
};
|
|
1718
|
-
return
|
|
1552
|
+
return response;
|
|
1719
1553
|
};
|
|
1720
1554
|
exports.de_StartTaskExecutionCommand = de_StartTaskExecutionCommand;
|
|
1721
1555
|
const de_StartTaskExecutionCommandError = async (output, context) => {
|
|
@@ -1733,10 +1567,9 @@ const de_StartTaskExecutionCommandError = async (output, context) => {
|
|
|
1733
1567
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1734
1568
|
default:
|
|
1735
1569
|
const parsedBody = parsedOutput.body;
|
|
1736
|
-
|
|
1570
|
+
return throwDefaultError({
|
|
1737
1571
|
output,
|
|
1738
1572
|
parsedBody,
|
|
1739
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1740
1573
|
errorCode,
|
|
1741
1574
|
});
|
|
1742
1575
|
}
|
|
@@ -1747,12 +1580,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1747
1580
|
}
|
|
1748
1581
|
const data = await parseBody(output.body, context);
|
|
1749
1582
|
let contents = {};
|
|
1750
|
-
contents =
|
|
1583
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1751
1584
|
const response = {
|
|
1752
1585
|
$metadata: deserializeMetadata(output),
|
|
1753
1586
|
...contents,
|
|
1754
1587
|
};
|
|
1755
|
-
return
|
|
1588
|
+
return response;
|
|
1756
1589
|
};
|
|
1757
1590
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1758
1591
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1770,10 +1603,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1770
1603
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1771
1604
|
default:
|
|
1772
1605
|
const parsedBody = parsedOutput.body;
|
|
1773
|
-
|
|
1606
|
+
return throwDefaultError({
|
|
1774
1607
|
output,
|
|
1775
1608
|
parsedBody,
|
|
1776
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1777
1609
|
errorCode,
|
|
1778
1610
|
});
|
|
1779
1611
|
}
|
|
@@ -1784,12 +1616,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1784
1616
|
}
|
|
1785
1617
|
const data = await parseBody(output.body, context);
|
|
1786
1618
|
let contents = {};
|
|
1787
|
-
contents =
|
|
1619
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1788
1620
|
const response = {
|
|
1789
1621
|
$metadata: deserializeMetadata(output),
|
|
1790
1622
|
...contents,
|
|
1791
1623
|
};
|
|
1792
|
-
return
|
|
1624
|
+
return response;
|
|
1793
1625
|
};
|
|
1794
1626
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1795
1627
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1807,10 +1639,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1807
1639
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1808
1640
|
default:
|
|
1809
1641
|
const parsedBody = parsedOutput.body;
|
|
1810
|
-
|
|
1642
|
+
return throwDefaultError({
|
|
1811
1643
|
output,
|
|
1812
1644
|
parsedBody,
|
|
1813
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1814
1645
|
errorCode,
|
|
1815
1646
|
});
|
|
1816
1647
|
}
|
|
@@ -1821,12 +1652,12 @@ const de_UpdateAgentCommand = async (output, context) => {
|
|
|
1821
1652
|
}
|
|
1822
1653
|
const data = await parseBody(output.body, context);
|
|
1823
1654
|
let contents = {};
|
|
1824
|
-
contents =
|
|
1655
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1825
1656
|
const response = {
|
|
1826
1657
|
$metadata: deserializeMetadata(output),
|
|
1827
1658
|
...contents,
|
|
1828
1659
|
};
|
|
1829
|
-
return
|
|
1660
|
+
return response;
|
|
1830
1661
|
};
|
|
1831
1662
|
exports.de_UpdateAgentCommand = de_UpdateAgentCommand;
|
|
1832
1663
|
const de_UpdateAgentCommandError = async (output, context) => {
|
|
@@ -1844,10 +1675,9 @@ const de_UpdateAgentCommandError = async (output, context) => {
|
|
|
1844
1675
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1845
1676
|
default:
|
|
1846
1677
|
const parsedBody = parsedOutput.body;
|
|
1847
|
-
|
|
1678
|
+
return throwDefaultError({
|
|
1848
1679
|
output,
|
|
1849
1680
|
parsedBody,
|
|
1850
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1851
1681
|
errorCode,
|
|
1852
1682
|
});
|
|
1853
1683
|
}
|
|
@@ -1858,12 +1688,12 @@ const de_UpdateLocationHdfsCommand = async (output, context) => {
|
|
|
1858
1688
|
}
|
|
1859
1689
|
const data = await parseBody(output.body, context);
|
|
1860
1690
|
let contents = {};
|
|
1861
|
-
contents =
|
|
1691
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1862
1692
|
const response = {
|
|
1863
1693
|
$metadata: deserializeMetadata(output),
|
|
1864
1694
|
...contents,
|
|
1865
1695
|
};
|
|
1866
|
-
return
|
|
1696
|
+
return response;
|
|
1867
1697
|
};
|
|
1868
1698
|
exports.de_UpdateLocationHdfsCommand = de_UpdateLocationHdfsCommand;
|
|
1869
1699
|
const de_UpdateLocationHdfsCommandError = async (output, context) => {
|
|
@@ -1881,10 +1711,9 @@ const de_UpdateLocationHdfsCommandError = async (output, context) => {
|
|
|
1881
1711
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1882
1712
|
default:
|
|
1883
1713
|
const parsedBody = parsedOutput.body;
|
|
1884
|
-
|
|
1714
|
+
return throwDefaultError({
|
|
1885
1715
|
output,
|
|
1886
1716
|
parsedBody,
|
|
1887
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1888
1717
|
errorCode,
|
|
1889
1718
|
});
|
|
1890
1719
|
}
|
|
@@ -1895,12 +1724,12 @@ const de_UpdateLocationNfsCommand = async (output, context) => {
|
|
|
1895
1724
|
}
|
|
1896
1725
|
const data = await parseBody(output.body, context);
|
|
1897
1726
|
let contents = {};
|
|
1898
|
-
contents =
|
|
1727
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1899
1728
|
const response = {
|
|
1900
1729
|
$metadata: deserializeMetadata(output),
|
|
1901
1730
|
...contents,
|
|
1902
1731
|
};
|
|
1903
|
-
return
|
|
1732
|
+
return response;
|
|
1904
1733
|
};
|
|
1905
1734
|
exports.de_UpdateLocationNfsCommand = de_UpdateLocationNfsCommand;
|
|
1906
1735
|
const de_UpdateLocationNfsCommandError = async (output, context) => {
|
|
@@ -1918,10 +1747,9 @@ const de_UpdateLocationNfsCommandError = async (output, context) => {
|
|
|
1918
1747
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1919
1748
|
default:
|
|
1920
1749
|
const parsedBody = parsedOutput.body;
|
|
1921
|
-
|
|
1750
|
+
return throwDefaultError({
|
|
1922
1751
|
output,
|
|
1923
1752
|
parsedBody,
|
|
1924
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1925
1753
|
errorCode,
|
|
1926
1754
|
});
|
|
1927
1755
|
}
|
|
@@ -1932,12 +1760,12 @@ const de_UpdateLocationObjectStorageCommand = async (output, context) => {
|
|
|
1932
1760
|
}
|
|
1933
1761
|
const data = await parseBody(output.body, context);
|
|
1934
1762
|
let contents = {};
|
|
1935
|
-
contents =
|
|
1763
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1936
1764
|
const response = {
|
|
1937
1765
|
$metadata: deserializeMetadata(output),
|
|
1938
1766
|
...contents,
|
|
1939
1767
|
};
|
|
1940
|
-
return
|
|
1768
|
+
return response;
|
|
1941
1769
|
};
|
|
1942
1770
|
exports.de_UpdateLocationObjectStorageCommand = de_UpdateLocationObjectStorageCommand;
|
|
1943
1771
|
const de_UpdateLocationObjectStorageCommandError = async (output, context) => {
|
|
@@ -1955,10 +1783,9 @@ const de_UpdateLocationObjectStorageCommandError = async (output, context) => {
|
|
|
1955
1783
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1956
1784
|
default:
|
|
1957
1785
|
const parsedBody = parsedOutput.body;
|
|
1958
|
-
|
|
1786
|
+
return throwDefaultError({
|
|
1959
1787
|
output,
|
|
1960
1788
|
parsedBody,
|
|
1961
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1962
1789
|
errorCode,
|
|
1963
1790
|
});
|
|
1964
1791
|
}
|
|
@@ -1969,12 +1796,12 @@ const de_UpdateLocationSmbCommand = async (output, context) => {
|
|
|
1969
1796
|
}
|
|
1970
1797
|
const data = await parseBody(output.body, context);
|
|
1971
1798
|
let contents = {};
|
|
1972
|
-
contents =
|
|
1799
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1973
1800
|
const response = {
|
|
1974
1801
|
$metadata: deserializeMetadata(output),
|
|
1975
1802
|
...contents,
|
|
1976
1803
|
};
|
|
1977
|
-
return
|
|
1804
|
+
return response;
|
|
1978
1805
|
};
|
|
1979
1806
|
exports.de_UpdateLocationSmbCommand = de_UpdateLocationSmbCommand;
|
|
1980
1807
|
const de_UpdateLocationSmbCommandError = async (output, context) => {
|
|
@@ -1992,10 +1819,9 @@ const de_UpdateLocationSmbCommandError = async (output, context) => {
|
|
|
1992
1819
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1993
1820
|
default:
|
|
1994
1821
|
const parsedBody = parsedOutput.body;
|
|
1995
|
-
|
|
1822
|
+
return throwDefaultError({
|
|
1996
1823
|
output,
|
|
1997
1824
|
parsedBody,
|
|
1998
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
1999
1825
|
errorCode,
|
|
2000
1826
|
});
|
|
2001
1827
|
}
|
|
@@ -2006,12 +1832,12 @@ const de_UpdateTaskCommand = async (output, context) => {
|
|
|
2006
1832
|
}
|
|
2007
1833
|
const data = await parseBody(output.body, context);
|
|
2008
1834
|
let contents = {};
|
|
2009
|
-
contents =
|
|
1835
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2010
1836
|
const response = {
|
|
2011
1837
|
$metadata: deserializeMetadata(output),
|
|
2012
1838
|
...contents,
|
|
2013
1839
|
};
|
|
2014
|
-
return
|
|
1840
|
+
return response;
|
|
2015
1841
|
};
|
|
2016
1842
|
exports.de_UpdateTaskCommand = de_UpdateTaskCommand;
|
|
2017
1843
|
const de_UpdateTaskCommandError = async (output, context) => {
|
|
@@ -2029,10 +1855,9 @@ const de_UpdateTaskCommandError = async (output, context) => {
|
|
|
2029
1855
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2030
1856
|
default:
|
|
2031
1857
|
const parsedBody = parsedOutput.body;
|
|
2032
|
-
|
|
1858
|
+
return throwDefaultError({
|
|
2033
1859
|
output,
|
|
2034
1860
|
parsedBody,
|
|
2035
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
2036
1861
|
errorCode,
|
|
2037
1862
|
});
|
|
2038
1863
|
}
|
|
@@ -2043,12 +1868,12 @@ const de_UpdateTaskExecutionCommand = async (output, context) => {
|
|
|
2043
1868
|
}
|
|
2044
1869
|
const data = await parseBody(output.body, context);
|
|
2045
1870
|
let contents = {};
|
|
2046
|
-
contents =
|
|
1871
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2047
1872
|
const response = {
|
|
2048
1873
|
$metadata: deserializeMetadata(output),
|
|
2049
1874
|
...contents,
|
|
2050
1875
|
};
|
|
2051
|
-
return
|
|
1876
|
+
return response;
|
|
2052
1877
|
};
|
|
2053
1878
|
exports.de_UpdateTaskExecutionCommand = de_UpdateTaskExecutionCommand;
|
|
2054
1879
|
const de_UpdateTaskExecutionCommandError = async (output, context) => {
|
|
@@ -2066,17 +1891,16 @@ const de_UpdateTaskExecutionCommandError = async (output, context) => {
|
|
|
2066
1891
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2067
1892
|
default:
|
|
2068
1893
|
const parsedBody = parsedOutput.body;
|
|
2069
|
-
|
|
1894
|
+
return throwDefaultError({
|
|
2070
1895
|
output,
|
|
2071
1896
|
parsedBody,
|
|
2072
|
-
exceptionCtor: DataSyncServiceException_1.DataSyncServiceException,
|
|
2073
1897
|
errorCode,
|
|
2074
1898
|
});
|
|
2075
1899
|
}
|
|
2076
1900
|
};
|
|
2077
1901
|
const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
2078
1902
|
const body = parsedOutput.body;
|
|
2079
|
-
const deserialized =
|
|
1903
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2080
1904
|
const exception = new models_0_1.InternalException({
|
|
2081
1905
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2082
1906
|
...deserialized,
|
|
@@ -2085,1169 +1909,227 @@ const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
|
2085
1909
|
};
|
|
2086
1910
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
2087
1911
|
const body = parsedOutput.body;
|
|
2088
|
-
const deserialized =
|
|
1912
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2089
1913
|
const exception = new models_0_1.InvalidRequestException({
|
|
2090
1914
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2091
1915
|
...deserialized,
|
|
2092
1916
|
});
|
|
2093
1917
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2094
1918
|
};
|
|
2095
|
-
const se_AgentArnList = (input, context) => {
|
|
2096
|
-
return input
|
|
2097
|
-
.filter((e) => e != null)
|
|
2098
|
-
.map((entry) => {
|
|
2099
|
-
return entry;
|
|
2100
|
-
});
|
|
2101
|
-
};
|
|
2102
|
-
const se_CancelTaskExecutionRequest = (input, context) => {
|
|
2103
|
-
return {
|
|
2104
|
-
...(input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }),
|
|
2105
|
-
};
|
|
2106
|
-
};
|
|
2107
|
-
const se_CreateAgentRequest = (input, context) => {
|
|
2108
|
-
return {
|
|
2109
|
-
...(input.ActivationKey != null && { ActivationKey: input.ActivationKey }),
|
|
2110
|
-
...(input.AgentName != null && { AgentName: input.AgentName }),
|
|
2111
|
-
...(input.SecurityGroupArns != null && {
|
|
2112
|
-
SecurityGroupArns: se_PLSecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2113
|
-
}),
|
|
2114
|
-
...(input.SubnetArns != null && { SubnetArns: se_PLSubnetArnList(input.SubnetArns, context) }),
|
|
2115
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2116
|
-
...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
|
|
2117
|
-
};
|
|
2118
|
-
};
|
|
2119
|
-
const se_CreateLocationEfsRequest = (input, context) => {
|
|
2120
|
-
return {
|
|
2121
|
-
...(input.AccessPointArn != null && { AccessPointArn: input.AccessPointArn }),
|
|
2122
|
-
...(input.Ec2Config != null && { Ec2Config: se_Ec2Config(input.Ec2Config, context) }),
|
|
2123
|
-
...(input.EfsFilesystemArn != null && { EfsFilesystemArn: input.EfsFilesystemArn }),
|
|
2124
|
-
...(input.FileSystemAccessRoleArn != null && { FileSystemAccessRoleArn: input.FileSystemAccessRoleArn }),
|
|
2125
|
-
...(input.InTransitEncryption != null && { InTransitEncryption: input.InTransitEncryption }),
|
|
2126
|
-
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2127
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2128
|
-
};
|
|
2129
|
-
};
|
|
2130
|
-
const se_CreateLocationFsxLustreRequest = (input, context) => {
|
|
2131
|
-
return {
|
|
2132
|
-
...(input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn }),
|
|
2133
|
-
...(input.SecurityGroupArns != null && {
|
|
2134
|
-
SecurityGroupArns: se_Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2135
|
-
}),
|
|
2136
|
-
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2137
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2138
|
-
};
|
|
2139
|
-
};
|
|
2140
|
-
const se_CreateLocationFsxOntapRequest = (input, context) => {
|
|
2141
|
-
return {
|
|
2142
|
-
...(input.Protocol != null && { Protocol: se_FsxProtocol(input.Protocol, context) }),
|
|
2143
|
-
...(input.SecurityGroupArns != null && {
|
|
2144
|
-
SecurityGroupArns: se_Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2145
|
-
}),
|
|
2146
|
-
...(input.StorageVirtualMachineArn != null && { StorageVirtualMachineArn: input.StorageVirtualMachineArn }),
|
|
2147
|
-
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2148
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2149
|
-
};
|
|
2150
|
-
};
|
|
2151
|
-
const se_CreateLocationFsxOpenZfsRequest = (input, context) => {
|
|
2152
|
-
return {
|
|
2153
|
-
...(input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn }),
|
|
2154
|
-
...(input.Protocol != null && { Protocol: se_FsxProtocol(input.Protocol, context) }),
|
|
2155
|
-
...(input.SecurityGroupArns != null && {
|
|
2156
|
-
SecurityGroupArns: se_Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2157
|
-
}),
|
|
2158
|
-
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2159
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2160
|
-
};
|
|
2161
|
-
};
|
|
2162
|
-
const se_CreateLocationFsxWindowsRequest = (input, context) => {
|
|
2163
|
-
return {
|
|
2164
|
-
...(input.Domain != null && { Domain: input.Domain }),
|
|
2165
|
-
...(input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn }),
|
|
2166
|
-
...(input.Password != null && { Password: input.Password }),
|
|
2167
|
-
...(input.SecurityGroupArns != null && {
|
|
2168
|
-
SecurityGroupArns: se_Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2169
|
-
}),
|
|
2170
|
-
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2171
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2172
|
-
...(input.User != null && { User: input.User }),
|
|
2173
|
-
};
|
|
2174
|
-
};
|
|
2175
1919
|
const se_CreateLocationHdfsRequest = (input, context) => {
|
|
2176
|
-
return {
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
};
|
|
2191
|
-
};
|
|
2192
|
-
const se_CreateLocationNfsRequest = (input, context) => {
|
|
2193
|
-
return {
|
|
2194
|
-
...(input.MountOptions != null && { MountOptions: se_NfsMountOptions(input.MountOptions, context) }),
|
|
2195
|
-
...(input.OnPremConfig != null && { OnPremConfig: se_OnPremConfig(input.OnPremConfig, context) }),
|
|
2196
|
-
...(input.ServerHostname != null && { ServerHostname: input.ServerHostname }),
|
|
2197
|
-
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2198
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2199
|
-
};
|
|
2200
|
-
};
|
|
2201
|
-
const se_CreateLocationObjectStorageRequest = (input, context) => {
|
|
2202
|
-
return {
|
|
2203
|
-
...(input.AccessKey != null && { AccessKey: input.AccessKey }),
|
|
2204
|
-
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2205
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
2206
|
-
...(input.SecretKey != null && { SecretKey: input.SecretKey }),
|
|
2207
|
-
...(input.ServerCertificate != null && { ServerCertificate: context.base64Encoder(input.ServerCertificate) }),
|
|
2208
|
-
...(input.ServerHostname != null && { ServerHostname: input.ServerHostname }),
|
|
2209
|
-
...(input.ServerPort != null && { ServerPort: input.ServerPort }),
|
|
2210
|
-
...(input.ServerProtocol != null && { ServerProtocol: input.ServerProtocol }),
|
|
2211
|
-
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2212
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2213
|
-
};
|
|
2214
|
-
};
|
|
2215
|
-
const se_CreateLocationS3Request = (input, context) => {
|
|
2216
|
-
return {
|
|
2217
|
-
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2218
|
-
...(input.S3BucketArn != null && { S3BucketArn: input.S3BucketArn }),
|
|
2219
|
-
...(input.S3Config != null && { S3Config: se_S3Config(input.S3Config, context) }),
|
|
2220
|
-
...(input.S3StorageClass != null && { S3StorageClass: input.S3StorageClass }),
|
|
2221
|
-
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2222
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2223
|
-
};
|
|
2224
|
-
};
|
|
2225
|
-
const se_CreateLocationSmbRequest = (input, context) => {
|
|
2226
|
-
return {
|
|
2227
|
-
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2228
|
-
...(input.Domain != null && { Domain: input.Domain }),
|
|
2229
|
-
...(input.MountOptions != null && { MountOptions: se_SmbMountOptions(input.MountOptions, context) }),
|
|
2230
|
-
...(input.Password != null && { Password: input.Password }),
|
|
2231
|
-
...(input.ServerHostname != null && { ServerHostname: input.ServerHostname }),
|
|
2232
|
-
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2233
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2234
|
-
...(input.User != null && { User: input.User }),
|
|
2235
|
-
};
|
|
2236
|
-
};
|
|
2237
|
-
const se_CreateTaskRequest = (input, context) => {
|
|
2238
|
-
return {
|
|
2239
|
-
...(input.CloudWatchLogGroupArn != null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn }),
|
|
2240
|
-
...(input.DestinationLocationArn != null && { DestinationLocationArn: input.DestinationLocationArn }),
|
|
2241
|
-
...(input.Excludes != null && { Excludes: se_FilterList(input.Excludes, context) }),
|
|
2242
|
-
...(input.Includes != null && { Includes: se_FilterList(input.Includes, context) }),
|
|
2243
|
-
...(input.Name != null && { Name: input.Name }),
|
|
2244
|
-
...(input.Options != null && { Options: se_Options(input.Options, context) }),
|
|
2245
|
-
...(input.Schedule != null && { Schedule: se_TaskSchedule(input.Schedule, context) }),
|
|
2246
|
-
...(input.SourceLocationArn != null && { SourceLocationArn: input.SourceLocationArn }),
|
|
2247
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2248
|
-
};
|
|
2249
|
-
};
|
|
2250
|
-
const se_DeleteAgentRequest = (input, context) => {
|
|
2251
|
-
return {
|
|
2252
|
-
...(input.AgentArn != null && { AgentArn: input.AgentArn }),
|
|
2253
|
-
};
|
|
2254
|
-
};
|
|
2255
|
-
const se_DeleteLocationRequest = (input, context) => {
|
|
2256
|
-
return {
|
|
2257
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2258
|
-
};
|
|
2259
|
-
};
|
|
2260
|
-
const se_DeleteTaskRequest = (input, context) => {
|
|
2261
|
-
return {
|
|
2262
|
-
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2263
|
-
};
|
|
2264
|
-
};
|
|
2265
|
-
const se_DescribeAgentRequest = (input, context) => {
|
|
2266
|
-
return {
|
|
2267
|
-
...(input.AgentArn != null && { AgentArn: input.AgentArn }),
|
|
2268
|
-
};
|
|
2269
|
-
};
|
|
2270
|
-
const se_DescribeLocationEfsRequest = (input, context) => {
|
|
2271
|
-
return {
|
|
2272
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2273
|
-
};
|
|
2274
|
-
};
|
|
2275
|
-
const se_DescribeLocationFsxLustreRequest = (input, context) => {
|
|
2276
|
-
return {
|
|
2277
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2278
|
-
};
|
|
2279
|
-
};
|
|
2280
|
-
const se_DescribeLocationFsxOntapRequest = (input, context) => {
|
|
2281
|
-
return {
|
|
2282
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2283
|
-
};
|
|
2284
|
-
};
|
|
2285
|
-
const se_DescribeLocationFsxOpenZfsRequest = (input, context) => {
|
|
2286
|
-
return {
|
|
2287
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2288
|
-
};
|
|
2289
|
-
};
|
|
2290
|
-
const se_DescribeLocationFsxWindowsRequest = (input, context) => {
|
|
2291
|
-
return {
|
|
2292
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2293
|
-
};
|
|
2294
|
-
};
|
|
2295
|
-
const se_DescribeLocationHdfsRequest = (input, context) => {
|
|
2296
|
-
return {
|
|
2297
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2298
|
-
};
|
|
2299
|
-
};
|
|
2300
|
-
const se_DescribeLocationNfsRequest = (input, context) => {
|
|
2301
|
-
return {
|
|
2302
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2303
|
-
};
|
|
2304
|
-
};
|
|
2305
|
-
const se_DescribeLocationObjectStorageRequest = (input, context) => {
|
|
2306
|
-
return {
|
|
2307
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2308
|
-
};
|
|
2309
|
-
};
|
|
2310
|
-
const se_DescribeLocationS3Request = (input, context) => {
|
|
2311
|
-
return {
|
|
2312
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2313
|
-
};
|
|
2314
|
-
};
|
|
2315
|
-
const se_DescribeLocationSmbRequest = (input, context) => {
|
|
2316
|
-
return {
|
|
2317
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2318
|
-
};
|
|
2319
|
-
};
|
|
2320
|
-
const se_DescribeTaskExecutionRequest = (input, context) => {
|
|
2321
|
-
return {
|
|
2322
|
-
...(input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }),
|
|
2323
|
-
};
|
|
2324
|
-
};
|
|
2325
|
-
const se_DescribeTaskRequest = (input, context) => {
|
|
2326
|
-
return {
|
|
2327
|
-
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2328
|
-
};
|
|
2329
|
-
};
|
|
2330
|
-
const se_Ec2Config = (input, context) => {
|
|
2331
|
-
return {
|
|
2332
|
-
...(input.SecurityGroupArns != null && {
|
|
2333
|
-
SecurityGroupArns: se_Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2334
|
-
}),
|
|
2335
|
-
...(input.SubnetArn != null && { SubnetArn: input.SubnetArn }),
|
|
2336
|
-
};
|
|
2337
|
-
};
|
|
2338
|
-
const se_Ec2SecurityGroupArnList = (input, context) => {
|
|
2339
|
-
return input
|
|
2340
|
-
.filter((e) => e != null)
|
|
2341
|
-
.map((entry) => {
|
|
2342
|
-
return entry;
|
|
2343
|
-
});
|
|
2344
|
-
};
|
|
2345
|
-
const se_FilterList = (input, context) => {
|
|
2346
|
-
return input
|
|
2347
|
-
.filter((e) => e != null)
|
|
2348
|
-
.map((entry) => {
|
|
2349
|
-
return se_FilterRule(entry, context);
|
|
2350
|
-
});
|
|
2351
|
-
};
|
|
2352
|
-
const se_FilterRule = (input, context) => {
|
|
2353
|
-
return {
|
|
2354
|
-
...(input.FilterType != null && { FilterType: input.FilterType }),
|
|
2355
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2356
|
-
};
|
|
2357
|
-
};
|
|
2358
|
-
const se_FilterValues = (input, context) => {
|
|
2359
|
-
return input
|
|
2360
|
-
.filter((e) => e != null)
|
|
2361
|
-
.map((entry) => {
|
|
2362
|
-
return entry;
|
|
2363
|
-
});
|
|
2364
|
-
};
|
|
2365
|
-
const se_FsxProtocol = (input, context) => {
|
|
2366
|
-
return {
|
|
2367
|
-
...(input.NFS != null && { NFS: se_FsxProtocolNfs(input.NFS, context) }),
|
|
2368
|
-
...(input.SMB != null && { SMB: se_FsxProtocolSmb(input.SMB, context) }),
|
|
2369
|
-
};
|
|
2370
|
-
};
|
|
2371
|
-
const se_FsxProtocolNfs = (input, context) => {
|
|
2372
|
-
return {
|
|
2373
|
-
...(input.MountOptions != null && { MountOptions: se_NfsMountOptions(input.MountOptions, context) }),
|
|
2374
|
-
};
|
|
2375
|
-
};
|
|
2376
|
-
const se_FsxProtocolSmb = (input, context) => {
|
|
2377
|
-
return {
|
|
2378
|
-
...(input.Domain != null && { Domain: input.Domain }),
|
|
2379
|
-
...(input.MountOptions != null && { MountOptions: se_SmbMountOptions(input.MountOptions, context) }),
|
|
2380
|
-
...(input.Password != null && { Password: input.Password }),
|
|
2381
|
-
...(input.User != null && { User: input.User }),
|
|
2382
|
-
};
|
|
2383
|
-
};
|
|
2384
|
-
const se_HdfsNameNode = (input, context) => {
|
|
2385
|
-
return {
|
|
2386
|
-
...(input.Hostname != null && { Hostname: input.Hostname }),
|
|
2387
|
-
...(input.Port != null && { Port: input.Port }),
|
|
2388
|
-
};
|
|
2389
|
-
};
|
|
2390
|
-
const se_HdfsNameNodeList = (input, context) => {
|
|
2391
|
-
return input
|
|
2392
|
-
.filter((e) => e != null)
|
|
2393
|
-
.map((entry) => {
|
|
2394
|
-
return se_HdfsNameNode(entry, context);
|
|
2395
|
-
});
|
|
2396
|
-
};
|
|
2397
|
-
const se_InputTagList = (input, context) => {
|
|
2398
|
-
return input
|
|
2399
|
-
.filter((e) => e != null)
|
|
2400
|
-
.map((entry) => {
|
|
2401
|
-
return se_TagListEntry(entry, context);
|
|
1920
|
+
return (0, smithy_client_1.take)(input, {
|
|
1921
|
+
AgentArns: smithy_client_1._json,
|
|
1922
|
+
AuthenticationType: [],
|
|
1923
|
+
BlockSize: [],
|
|
1924
|
+
KerberosKeytab: context.base64Encoder,
|
|
1925
|
+
KerberosKrb5Conf: context.base64Encoder,
|
|
1926
|
+
KerberosPrincipal: [],
|
|
1927
|
+
KmsKeyProviderUri: [],
|
|
1928
|
+
NameNodes: smithy_client_1._json,
|
|
1929
|
+
QopConfiguration: smithy_client_1._json,
|
|
1930
|
+
ReplicationFactor: [],
|
|
1931
|
+
SimpleUser: [],
|
|
1932
|
+
Subdirectory: [],
|
|
1933
|
+
Tags: smithy_client_1._json,
|
|
2402
1934
|
});
|
|
2403
1935
|
};
|
|
2404
|
-
const
|
|
2405
|
-
return {
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
};
|
|
2417
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2418
|
-
return {
|
|
2419
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2420
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2421
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2422
|
-
};
|
|
2423
|
-
};
|
|
2424
|
-
const se_ListTaskExecutionsRequest = (input, context) => {
|
|
2425
|
-
return {
|
|
2426
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2427
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2428
|
-
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2429
|
-
};
|
|
2430
|
-
};
|
|
2431
|
-
const se_ListTasksRequest = (input, context) => {
|
|
2432
|
-
return {
|
|
2433
|
-
...(input.Filters != null && { Filters: se_TaskFilters(input.Filters, context) }),
|
|
2434
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2435
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2436
|
-
};
|
|
2437
|
-
};
|
|
2438
|
-
const se_LocationFilter = (input, context) => {
|
|
2439
|
-
return {
|
|
2440
|
-
...(input.Name != null && { Name: input.Name }),
|
|
2441
|
-
...(input.Operator != null && { Operator: input.Operator }),
|
|
2442
|
-
...(input.Values != null && { Values: se_FilterValues(input.Values, context) }),
|
|
2443
|
-
};
|
|
2444
|
-
};
|
|
2445
|
-
const se_LocationFilters = (input, context) => {
|
|
2446
|
-
return input
|
|
2447
|
-
.filter((e) => e != null)
|
|
2448
|
-
.map((entry) => {
|
|
2449
|
-
return se_LocationFilter(entry, context);
|
|
2450
|
-
});
|
|
2451
|
-
};
|
|
2452
|
-
const se_NfsMountOptions = (input, context) => {
|
|
2453
|
-
return {
|
|
2454
|
-
...(input.Version != null && { Version: input.Version }),
|
|
2455
|
-
};
|
|
2456
|
-
};
|
|
2457
|
-
const se_OnPremConfig = (input, context) => {
|
|
2458
|
-
return {
|
|
2459
|
-
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2460
|
-
};
|
|
2461
|
-
};
|
|
2462
|
-
const se_Options = (input, context) => {
|
|
2463
|
-
return {
|
|
2464
|
-
...(input.Atime != null && { Atime: input.Atime }),
|
|
2465
|
-
...(input.BytesPerSecond != null && { BytesPerSecond: input.BytesPerSecond }),
|
|
2466
|
-
...(input.Gid != null && { Gid: input.Gid }),
|
|
2467
|
-
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
2468
|
-
...(input.Mtime != null && { Mtime: input.Mtime }),
|
|
2469
|
-
...(input.ObjectTags != null && { ObjectTags: input.ObjectTags }),
|
|
2470
|
-
...(input.OverwriteMode != null && { OverwriteMode: input.OverwriteMode }),
|
|
2471
|
-
...(input.PosixPermissions != null && { PosixPermissions: input.PosixPermissions }),
|
|
2472
|
-
...(input.PreserveDeletedFiles != null && { PreserveDeletedFiles: input.PreserveDeletedFiles }),
|
|
2473
|
-
...(input.PreserveDevices != null && { PreserveDevices: input.PreserveDevices }),
|
|
2474
|
-
...(input.SecurityDescriptorCopyFlags != null && {
|
|
2475
|
-
SecurityDescriptorCopyFlags: input.SecurityDescriptorCopyFlags,
|
|
2476
|
-
}),
|
|
2477
|
-
...(input.TaskQueueing != null && { TaskQueueing: input.TaskQueueing }),
|
|
2478
|
-
...(input.TransferMode != null && { TransferMode: input.TransferMode }),
|
|
2479
|
-
...(input.Uid != null && { Uid: input.Uid }),
|
|
2480
|
-
...(input.VerifyMode != null && { VerifyMode: input.VerifyMode }),
|
|
2481
|
-
};
|
|
2482
|
-
};
|
|
2483
|
-
const se_PLSecurityGroupArnList = (input, context) => {
|
|
2484
|
-
return input
|
|
2485
|
-
.filter((e) => e != null)
|
|
2486
|
-
.map((entry) => {
|
|
2487
|
-
return entry;
|
|
2488
|
-
});
|
|
2489
|
-
};
|
|
2490
|
-
const se_PLSubnetArnList = (input, context) => {
|
|
2491
|
-
return input
|
|
2492
|
-
.filter((e) => e != null)
|
|
2493
|
-
.map((entry) => {
|
|
2494
|
-
return entry;
|
|
2495
|
-
});
|
|
2496
|
-
};
|
|
2497
|
-
const se_QopConfiguration = (input, context) => {
|
|
2498
|
-
return {
|
|
2499
|
-
...(input.DataTransferProtection != null && { DataTransferProtection: input.DataTransferProtection }),
|
|
2500
|
-
...(input.RpcProtection != null && { RpcProtection: input.RpcProtection }),
|
|
2501
|
-
};
|
|
2502
|
-
};
|
|
2503
|
-
const se_S3Config = (input, context) => {
|
|
2504
|
-
return {
|
|
2505
|
-
...(input.BucketAccessRoleArn != null && { BucketAccessRoleArn: input.BucketAccessRoleArn }),
|
|
2506
|
-
};
|
|
2507
|
-
};
|
|
2508
|
-
const se_SmbMountOptions = (input, context) => {
|
|
2509
|
-
return {
|
|
2510
|
-
...(input.Version != null && { Version: input.Version }),
|
|
2511
|
-
};
|
|
2512
|
-
};
|
|
2513
|
-
const se_StartTaskExecutionRequest = (input, context) => {
|
|
2514
|
-
return {
|
|
2515
|
-
...(input.Excludes != null && { Excludes: se_FilterList(input.Excludes, context) }),
|
|
2516
|
-
...(input.Includes != null && { Includes: se_FilterList(input.Includes, context) }),
|
|
2517
|
-
...(input.OverrideOptions != null && { OverrideOptions: se_Options(input.OverrideOptions, context) }),
|
|
2518
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2519
|
-
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2520
|
-
};
|
|
2521
|
-
};
|
|
2522
|
-
const se_TagKeyList = (input, context) => {
|
|
2523
|
-
return input
|
|
2524
|
-
.filter((e) => e != null)
|
|
2525
|
-
.map((entry) => {
|
|
2526
|
-
return entry;
|
|
2527
|
-
});
|
|
2528
|
-
};
|
|
2529
|
-
const se_TagListEntry = (input, context) => {
|
|
2530
|
-
return {
|
|
2531
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2532
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2533
|
-
};
|
|
2534
|
-
};
|
|
2535
|
-
const se_TagResourceRequest = (input, context) => {
|
|
2536
|
-
return {
|
|
2537
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2538
|
-
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2539
|
-
};
|
|
2540
|
-
};
|
|
2541
|
-
const se_TaskFilter = (input, context) => {
|
|
2542
|
-
return {
|
|
2543
|
-
...(input.Name != null && { Name: input.Name }),
|
|
2544
|
-
...(input.Operator != null && { Operator: input.Operator }),
|
|
2545
|
-
...(input.Values != null && { Values: se_FilterValues(input.Values, context) }),
|
|
2546
|
-
};
|
|
2547
|
-
};
|
|
2548
|
-
const se_TaskFilters = (input, context) => {
|
|
2549
|
-
return input
|
|
2550
|
-
.filter((e) => e != null)
|
|
2551
|
-
.map((entry) => {
|
|
2552
|
-
return se_TaskFilter(entry, context);
|
|
1936
|
+
const se_CreateLocationObjectStorageRequest = (input, context) => {
|
|
1937
|
+
return (0, smithy_client_1.take)(input, {
|
|
1938
|
+
AccessKey: [],
|
|
1939
|
+
AgentArns: smithy_client_1._json,
|
|
1940
|
+
BucketName: [],
|
|
1941
|
+
SecretKey: [],
|
|
1942
|
+
ServerCertificate: context.base64Encoder,
|
|
1943
|
+
ServerHostname: [],
|
|
1944
|
+
ServerPort: [],
|
|
1945
|
+
ServerProtocol: [],
|
|
1946
|
+
Subdirectory: [],
|
|
1947
|
+
Tags: smithy_client_1._json,
|
|
2553
1948
|
});
|
|
2554
1949
|
};
|
|
2555
|
-
const se_TaskSchedule = (input, context) => {
|
|
2556
|
-
return {
|
|
2557
|
-
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
2558
|
-
};
|
|
2559
|
-
};
|
|
2560
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
2561
|
-
return {
|
|
2562
|
-
...(input.Keys != null && { Keys: se_TagKeyList(input.Keys, context) }),
|
|
2563
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2564
|
-
};
|
|
2565
|
-
};
|
|
2566
|
-
const se_UpdateAgentRequest = (input, context) => {
|
|
2567
|
-
return {
|
|
2568
|
-
...(input.AgentArn != null && { AgentArn: input.AgentArn }),
|
|
2569
|
-
...(input.Name != null && { Name: input.Name }),
|
|
2570
|
-
};
|
|
2571
|
-
};
|
|
2572
1950
|
const se_UpdateLocationHdfsRequest = (input, context) => {
|
|
2573
|
-
return {
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
};
|
|
2588
|
-
};
|
|
2589
|
-
const se_UpdateLocationNfsRequest = (input, context) => {
|
|
2590
|
-
return {
|
|
2591
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2592
|
-
...(input.MountOptions != null && { MountOptions: se_NfsMountOptions(input.MountOptions, context) }),
|
|
2593
|
-
...(input.OnPremConfig != null && { OnPremConfig: se_OnPremConfig(input.OnPremConfig, context) }),
|
|
2594
|
-
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2595
|
-
};
|
|
1951
|
+
return (0, smithy_client_1.take)(input, {
|
|
1952
|
+
AgentArns: smithy_client_1._json,
|
|
1953
|
+
AuthenticationType: [],
|
|
1954
|
+
BlockSize: [],
|
|
1955
|
+
KerberosKeytab: context.base64Encoder,
|
|
1956
|
+
KerberosKrb5Conf: context.base64Encoder,
|
|
1957
|
+
KerberosPrincipal: [],
|
|
1958
|
+
KmsKeyProviderUri: [],
|
|
1959
|
+
LocationArn: [],
|
|
1960
|
+
NameNodes: smithy_client_1._json,
|
|
1961
|
+
QopConfiguration: smithy_client_1._json,
|
|
1962
|
+
ReplicationFactor: [],
|
|
1963
|
+
SimpleUser: [],
|
|
1964
|
+
Subdirectory: [],
|
|
1965
|
+
});
|
|
2596
1966
|
};
|
|
2597
1967
|
const se_UpdateLocationObjectStorageRequest = (input, context) => {
|
|
2598
|
-
return {
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
};
|
|
2608
|
-
};
|
|
2609
|
-
const se_UpdateLocationSmbRequest = (input, context) => {
|
|
2610
|
-
return {
|
|
2611
|
-
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2612
|
-
...(input.Domain != null && { Domain: input.Domain }),
|
|
2613
|
-
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2614
|
-
...(input.MountOptions != null && { MountOptions: se_SmbMountOptions(input.MountOptions, context) }),
|
|
2615
|
-
...(input.Password != null && { Password: input.Password }),
|
|
2616
|
-
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2617
|
-
...(input.User != null && { User: input.User }),
|
|
2618
|
-
};
|
|
2619
|
-
};
|
|
2620
|
-
const se_UpdateTaskExecutionRequest = (input, context) => {
|
|
2621
|
-
return {
|
|
2622
|
-
...(input.Options != null && { Options: se_Options(input.Options, context) }),
|
|
2623
|
-
...(input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }),
|
|
2624
|
-
};
|
|
2625
|
-
};
|
|
2626
|
-
const se_UpdateTaskRequest = (input, context) => {
|
|
2627
|
-
return {
|
|
2628
|
-
...(input.CloudWatchLogGroupArn != null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn }),
|
|
2629
|
-
...(input.Excludes != null && { Excludes: se_FilterList(input.Excludes, context) }),
|
|
2630
|
-
...(input.Includes != null && { Includes: se_FilterList(input.Includes, context) }),
|
|
2631
|
-
...(input.Name != null && { Name: input.Name }),
|
|
2632
|
-
...(input.Options != null && { Options: se_Options(input.Options, context) }),
|
|
2633
|
-
...(input.Schedule != null && { Schedule: se_TaskSchedule(input.Schedule, context) }),
|
|
2634
|
-
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2635
|
-
};
|
|
2636
|
-
};
|
|
2637
|
-
const de_AgentArnList = (output, context) => {
|
|
2638
|
-
const retVal = (output || [])
|
|
2639
|
-
.filter((e) => e != null)
|
|
2640
|
-
.map((entry) => {
|
|
2641
|
-
if (entry === null) {
|
|
2642
|
-
return null;
|
|
2643
|
-
}
|
|
2644
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1968
|
+
return (0, smithy_client_1.take)(input, {
|
|
1969
|
+
AccessKey: [],
|
|
1970
|
+
AgentArns: smithy_client_1._json,
|
|
1971
|
+
LocationArn: [],
|
|
1972
|
+
SecretKey: [],
|
|
1973
|
+
ServerCertificate: context.base64Encoder,
|
|
1974
|
+
ServerPort: [],
|
|
1975
|
+
ServerProtocol: [],
|
|
1976
|
+
Subdirectory: [],
|
|
2645
1977
|
});
|
|
2646
|
-
return retVal;
|
|
2647
|
-
};
|
|
2648
|
-
const de_AgentList = (output, context) => {
|
|
2649
|
-
const retVal = (output || [])
|
|
2650
|
-
.filter((e) => e != null)
|
|
2651
|
-
.map((entry) => {
|
|
2652
|
-
if (entry === null) {
|
|
2653
|
-
return null;
|
|
2654
|
-
}
|
|
2655
|
-
return de_AgentListEntry(entry, context);
|
|
2656
|
-
});
|
|
2657
|
-
return retVal;
|
|
2658
|
-
};
|
|
2659
|
-
const de_AgentListEntry = (output, context) => {
|
|
2660
|
-
return {
|
|
2661
|
-
AgentArn: (0, smithy_client_1.expectString)(output.AgentArn),
|
|
2662
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2663
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2664
|
-
};
|
|
2665
|
-
};
|
|
2666
|
-
const de_CancelTaskExecutionResponse = (output, context) => {
|
|
2667
|
-
return {};
|
|
2668
|
-
};
|
|
2669
|
-
const de_CreateAgentResponse = (output, context) => {
|
|
2670
|
-
return {
|
|
2671
|
-
AgentArn: (0, smithy_client_1.expectString)(output.AgentArn),
|
|
2672
|
-
};
|
|
2673
|
-
};
|
|
2674
|
-
const de_CreateLocationEfsResponse = (output, context) => {
|
|
2675
|
-
return {
|
|
2676
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2677
|
-
};
|
|
2678
|
-
};
|
|
2679
|
-
const de_CreateLocationFsxLustreResponse = (output, context) => {
|
|
2680
|
-
return {
|
|
2681
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2682
|
-
};
|
|
2683
|
-
};
|
|
2684
|
-
const de_CreateLocationFsxOntapResponse = (output, context) => {
|
|
2685
|
-
return {
|
|
2686
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2687
|
-
};
|
|
2688
|
-
};
|
|
2689
|
-
const de_CreateLocationFsxOpenZfsResponse = (output, context) => {
|
|
2690
|
-
return {
|
|
2691
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2692
|
-
};
|
|
2693
|
-
};
|
|
2694
|
-
const de_CreateLocationFsxWindowsResponse = (output, context) => {
|
|
2695
|
-
return {
|
|
2696
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2697
|
-
};
|
|
2698
|
-
};
|
|
2699
|
-
const de_CreateLocationHdfsResponse = (output, context) => {
|
|
2700
|
-
return {
|
|
2701
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2702
|
-
};
|
|
2703
|
-
};
|
|
2704
|
-
const de_CreateLocationNfsResponse = (output, context) => {
|
|
2705
|
-
return {
|
|
2706
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2707
|
-
};
|
|
2708
|
-
};
|
|
2709
|
-
const de_CreateLocationObjectStorageResponse = (output, context) => {
|
|
2710
|
-
return {
|
|
2711
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2712
|
-
};
|
|
2713
|
-
};
|
|
2714
|
-
const de_CreateLocationS3Response = (output, context) => {
|
|
2715
|
-
return {
|
|
2716
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2717
|
-
};
|
|
2718
|
-
};
|
|
2719
|
-
const de_CreateLocationSmbResponse = (output, context) => {
|
|
2720
|
-
return {
|
|
2721
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2722
|
-
};
|
|
2723
|
-
};
|
|
2724
|
-
const de_CreateTaskResponse = (output, context) => {
|
|
2725
|
-
return {
|
|
2726
|
-
TaskArn: (0, smithy_client_1.expectString)(output.TaskArn),
|
|
2727
|
-
};
|
|
2728
|
-
};
|
|
2729
|
-
const de_DeleteAgentResponse = (output, context) => {
|
|
2730
|
-
return {};
|
|
2731
|
-
};
|
|
2732
|
-
const de_DeleteLocationResponse = (output, context) => {
|
|
2733
|
-
return {};
|
|
2734
|
-
};
|
|
2735
|
-
const de_DeleteTaskResponse = (output, context) => {
|
|
2736
|
-
return {};
|
|
2737
1978
|
};
|
|
2738
1979
|
const de_DescribeAgentResponse = (output, context) => {
|
|
2739
|
-
return {
|
|
2740
|
-
AgentArn:
|
|
2741
|
-
CreationTime:
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2749
|
-
PrivateLinkConfig: output.PrivateLinkConfig != null ? de_PrivateLinkConfig(output.PrivateLinkConfig, context) : undefined,
|
|
2750
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2751
|
-
};
|
|
1980
|
+
return (0, smithy_client_1.take)(output, {
|
|
1981
|
+
AgentArn: smithy_client_1.expectString,
|
|
1982
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1983
|
+
EndpointType: smithy_client_1.expectString,
|
|
1984
|
+
LastConnectionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1985
|
+
Name: smithy_client_1.expectString,
|
|
1986
|
+
PrivateLinkConfig: smithy_client_1._json,
|
|
1987
|
+
Status: smithy_client_1.expectString,
|
|
1988
|
+
});
|
|
2752
1989
|
};
|
|
2753
1990
|
const de_DescribeLocationEfsResponse = (output, context) => {
|
|
2754
|
-
return {
|
|
2755
|
-
AccessPointArn:
|
|
2756
|
-
CreationTime:
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2764
|
-
};
|
|
1991
|
+
return (0, smithy_client_1.take)(output, {
|
|
1992
|
+
AccessPointArn: smithy_client_1.expectString,
|
|
1993
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1994
|
+
Ec2Config: smithy_client_1._json,
|
|
1995
|
+
FileSystemAccessRoleArn: smithy_client_1.expectString,
|
|
1996
|
+
InTransitEncryption: smithy_client_1.expectString,
|
|
1997
|
+
LocationArn: smithy_client_1.expectString,
|
|
1998
|
+
LocationUri: smithy_client_1.expectString,
|
|
1999
|
+
});
|
|
2765
2000
|
};
|
|
2766
2001
|
const de_DescribeLocationFsxLustreResponse = (output, context) => {
|
|
2767
|
-
return {
|
|
2768
|
-
CreationTime:
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
SecurityGroupArns: output.SecurityGroupArns != null ? de_Ec2SecurityGroupArnList(output.SecurityGroupArns, context) : undefined,
|
|
2774
|
-
};
|
|
2002
|
+
return (0, smithy_client_1.take)(output, {
|
|
2003
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2004
|
+
LocationArn: smithy_client_1.expectString,
|
|
2005
|
+
LocationUri: smithy_client_1.expectString,
|
|
2006
|
+
SecurityGroupArns: smithy_client_1._json,
|
|
2007
|
+
});
|
|
2775
2008
|
};
|
|
2776
2009
|
const de_DescribeLocationFsxOntapResponse = (output, context) => {
|
|
2777
|
-
return {
|
|
2778
|
-
CreationTime:
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
StorageVirtualMachineArn: (0, smithy_client_1.expectString)(output.StorageVirtualMachineArn),
|
|
2787
|
-
};
|
|
2010
|
+
return (0, smithy_client_1.take)(output, {
|
|
2011
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2012
|
+
FsxFilesystemArn: smithy_client_1.expectString,
|
|
2013
|
+
LocationArn: smithy_client_1.expectString,
|
|
2014
|
+
LocationUri: smithy_client_1.expectString,
|
|
2015
|
+
Protocol: smithy_client_1._json,
|
|
2016
|
+
SecurityGroupArns: smithy_client_1._json,
|
|
2017
|
+
StorageVirtualMachineArn: smithy_client_1.expectString,
|
|
2018
|
+
});
|
|
2788
2019
|
};
|
|
2789
2020
|
const de_DescribeLocationFsxOpenZfsResponse = (output, context) => {
|
|
2790
|
-
return {
|
|
2791
|
-
CreationTime:
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
SecurityGroupArns: output.SecurityGroupArns != null ? de_Ec2SecurityGroupArnList(output.SecurityGroupArns, context) : undefined,
|
|
2798
|
-
};
|
|
2021
|
+
return (0, smithy_client_1.take)(output, {
|
|
2022
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2023
|
+
LocationArn: smithy_client_1.expectString,
|
|
2024
|
+
LocationUri: smithy_client_1.expectString,
|
|
2025
|
+
Protocol: smithy_client_1._json,
|
|
2026
|
+
SecurityGroupArns: smithy_client_1._json,
|
|
2027
|
+
});
|
|
2799
2028
|
};
|
|
2800
2029
|
const de_DescribeLocationFsxWindowsResponse = (output, context) => {
|
|
2801
|
-
return {
|
|
2802
|
-
CreationTime:
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
SecurityGroupArns: output.SecurityGroupArns != null ? de_Ec2SecurityGroupArnList(output.SecurityGroupArns, context) : undefined,
|
|
2809
|
-
User: (0, smithy_client_1.expectString)(output.User),
|
|
2810
|
-
};
|
|
2811
|
-
};
|
|
2812
|
-
const de_DescribeLocationHdfsResponse = (output, context) => {
|
|
2813
|
-
return {
|
|
2814
|
-
AgentArns: output.AgentArns != null ? de_AgentArnList(output.AgentArns, context) : undefined,
|
|
2815
|
-
AuthenticationType: (0, smithy_client_1.expectString)(output.AuthenticationType),
|
|
2816
|
-
BlockSize: (0, smithy_client_1.expectInt32)(output.BlockSize),
|
|
2817
|
-
CreationTime: output.CreationTime != null
|
|
2818
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2819
|
-
: undefined,
|
|
2820
|
-
KerberosPrincipal: (0, smithy_client_1.expectString)(output.KerberosPrincipal),
|
|
2821
|
-
KmsKeyProviderUri: (0, smithy_client_1.expectString)(output.KmsKeyProviderUri),
|
|
2822
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2823
|
-
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2824
|
-
NameNodes: output.NameNodes != null ? de_HdfsNameNodeList(output.NameNodes, context) : undefined,
|
|
2825
|
-
QopConfiguration: output.QopConfiguration != null ? de_QopConfiguration(output.QopConfiguration, context) : undefined,
|
|
2826
|
-
ReplicationFactor: (0, smithy_client_1.expectInt32)(output.ReplicationFactor),
|
|
2827
|
-
SimpleUser: (0, smithy_client_1.expectString)(output.SimpleUser),
|
|
2828
|
-
};
|
|
2829
|
-
};
|
|
2830
|
-
const de_DescribeLocationNfsResponse = (output, context) => {
|
|
2831
|
-
return {
|
|
2832
|
-
CreationTime: output.CreationTime != null
|
|
2833
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2834
|
-
: undefined,
|
|
2835
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2836
|
-
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2837
|
-
MountOptions: output.MountOptions != null ? de_NfsMountOptions(output.MountOptions, context) : undefined,
|
|
2838
|
-
OnPremConfig: output.OnPremConfig != null ? de_OnPremConfig(output.OnPremConfig, context) : undefined,
|
|
2839
|
-
};
|
|
2840
|
-
};
|
|
2841
|
-
const de_DescribeLocationObjectStorageResponse = (output, context) => {
|
|
2842
|
-
return {
|
|
2843
|
-
AccessKey: (0, smithy_client_1.expectString)(output.AccessKey),
|
|
2844
|
-
AgentArns: output.AgentArns != null ? de_AgentArnList(output.AgentArns, context) : undefined,
|
|
2845
|
-
CreationTime: output.CreationTime != null
|
|
2846
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2847
|
-
: undefined,
|
|
2848
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2849
|
-
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2850
|
-
ServerCertificate: output.ServerCertificate != null ? context.base64Decoder(output.ServerCertificate) : undefined,
|
|
2851
|
-
ServerPort: (0, smithy_client_1.expectInt32)(output.ServerPort),
|
|
2852
|
-
ServerProtocol: (0, smithy_client_1.expectString)(output.ServerProtocol),
|
|
2853
|
-
};
|
|
2854
|
-
};
|
|
2855
|
-
const de_DescribeLocationS3Response = (output, context) => {
|
|
2856
|
-
return {
|
|
2857
|
-
AgentArns: output.AgentArns != null ? de_AgentArnList(output.AgentArns, context) : undefined,
|
|
2858
|
-
CreationTime: output.CreationTime != null
|
|
2859
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2860
|
-
: undefined,
|
|
2861
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2862
|
-
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2863
|
-
S3Config: output.S3Config != null ? de_S3Config(output.S3Config, context) : undefined,
|
|
2864
|
-
S3StorageClass: (0, smithy_client_1.expectString)(output.S3StorageClass),
|
|
2865
|
-
};
|
|
2866
|
-
};
|
|
2867
|
-
const de_DescribeLocationSmbResponse = (output, context) => {
|
|
2868
|
-
return {
|
|
2869
|
-
AgentArns: output.AgentArns != null ? de_AgentArnList(output.AgentArns, context) : undefined,
|
|
2870
|
-
CreationTime: output.CreationTime != null
|
|
2871
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2872
|
-
: undefined,
|
|
2873
|
-
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
2874
|
-
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2875
|
-
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2876
|
-
MountOptions: output.MountOptions != null ? de_SmbMountOptions(output.MountOptions, context) : undefined,
|
|
2877
|
-
User: (0, smithy_client_1.expectString)(output.User),
|
|
2878
|
-
};
|
|
2879
|
-
};
|
|
2880
|
-
const de_DescribeTaskExecutionResponse = (output, context) => {
|
|
2881
|
-
return {
|
|
2882
|
-
BytesCompressed: (0, smithy_client_1.expectLong)(output.BytesCompressed),
|
|
2883
|
-
BytesTransferred: (0, smithy_client_1.expectLong)(output.BytesTransferred),
|
|
2884
|
-
BytesWritten: (0, smithy_client_1.expectLong)(output.BytesWritten),
|
|
2885
|
-
EstimatedBytesToTransfer: (0, smithy_client_1.expectLong)(output.EstimatedBytesToTransfer),
|
|
2886
|
-
EstimatedFilesToTransfer: (0, smithy_client_1.expectLong)(output.EstimatedFilesToTransfer),
|
|
2887
|
-
Excludes: output.Excludes != null ? de_FilterList(output.Excludes, context) : undefined,
|
|
2888
|
-
FilesTransferred: (0, smithy_client_1.expectLong)(output.FilesTransferred),
|
|
2889
|
-
Includes: output.Includes != null ? de_FilterList(output.Includes, context) : undefined,
|
|
2890
|
-
Options: output.Options != null ? de_Options(output.Options, context) : undefined,
|
|
2891
|
-
Result: output.Result != null ? de_TaskExecutionResultDetail(output.Result, context) : undefined,
|
|
2892
|
-
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2893
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2894
|
-
TaskExecutionArn: (0, smithy_client_1.expectString)(output.TaskExecutionArn),
|
|
2895
|
-
};
|
|
2896
|
-
};
|
|
2897
|
-
const de_DescribeTaskResponse = (output, context) => {
|
|
2898
|
-
return {
|
|
2899
|
-
CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn),
|
|
2900
|
-
CreationTime: output.CreationTime != null
|
|
2901
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2902
|
-
: undefined,
|
|
2903
|
-
CurrentTaskExecutionArn: (0, smithy_client_1.expectString)(output.CurrentTaskExecutionArn),
|
|
2904
|
-
DestinationLocationArn: (0, smithy_client_1.expectString)(output.DestinationLocationArn),
|
|
2905
|
-
DestinationNetworkInterfaceArns: output.DestinationNetworkInterfaceArns != null
|
|
2906
|
-
? de_DestinationNetworkInterfaceArns(output.DestinationNetworkInterfaceArns, context)
|
|
2907
|
-
: undefined,
|
|
2908
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
2909
|
-
ErrorDetail: (0, smithy_client_1.expectString)(output.ErrorDetail),
|
|
2910
|
-
Excludes: output.Excludes != null ? de_FilterList(output.Excludes, context) : undefined,
|
|
2911
|
-
Includes: output.Includes != null ? de_FilterList(output.Includes, context) : undefined,
|
|
2912
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2913
|
-
Options: output.Options != null ? de_Options(output.Options, context) : undefined,
|
|
2914
|
-
Schedule: output.Schedule != null ? de_TaskSchedule(output.Schedule, context) : undefined,
|
|
2915
|
-
SourceLocationArn: (0, smithy_client_1.expectString)(output.SourceLocationArn),
|
|
2916
|
-
SourceNetworkInterfaceArns: output.SourceNetworkInterfaceArns != null
|
|
2917
|
-
? de_SourceNetworkInterfaceArns(output.SourceNetworkInterfaceArns, context)
|
|
2918
|
-
: undefined,
|
|
2919
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2920
|
-
TaskArn: (0, smithy_client_1.expectString)(output.TaskArn),
|
|
2921
|
-
};
|
|
2922
|
-
};
|
|
2923
|
-
const de_DestinationNetworkInterfaceArns = (output, context) => {
|
|
2924
|
-
const retVal = (output || [])
|
|
2925
|
-
.filter((e) => e != null)
|
|
2926
|
-
.map((entry) => {
|
|
2927
|
-
if (entry === null) {
|
|
2928
|
-
return null;
|
|
2929
|
-
}
|
|
2930
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2030
|
+
return (0, smithy_client_1.take)(output, {
|
|
2031
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2032
|
+
Domain: smithy_client_1.expectString,
|
|
2033
|
+
LocationArn: smithy_client_1.expectString,
|
|
2034
|
+
LocationUri: smithy_client_1.expectString,
|
|
2035
|
+
SecurityGroupArns: smithy_client_1._json,
|
|
2036
|
+
User: smithy_client_1.expectString,
|
|
2931
2037
|
});
|
|
2932
|
-
return retVal;
|
|
2933
|
-
};
|
|
2934
|
-
const de_Ec2Config = (output, context) => {
|
|
2935
|
-
return {
|
|
2936
|
-
SecurityGroupArns: output.SecurityGroupArns != null ? de_Ec2SecurityGroupArnList(output.SecurityGroupArns, context) : undefined,
|
|
2937
|
-
SubnetArn: (0, smithy_client_1.expectString)(output.SubnetArn),
|
|
2938
|
-
};
|
|
2939
2038
|
};
|
|
2940
|
-
const
|
|
2941
|
-
|
|
2942
|
-
.
|
|
2943
|
-
.
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
.
|
|
2954
|
-
.map((entry) => {
|
|
2955
|
-
if (entry === null) {
|
|
2956
|
-
return null;
|
|
2957
|
-
}
|
|
2958
|
-
return de_FilterRule(entry, context);
|
|
2039
|
+
const de_DescribeLocationHdfsResponse = (output, context) => {
|
|
2040
|
+
return (0, smithy_client_1.take)(output, {
|
|
2041
|
+
AgentArns: smithy_client_1._json,
|
|
2042
|
+
AuthenticationType: smithy_client_1.expectString,
|
|
2043
|
+
BlockSize: smithy_client_1.expectInt32,
|
|
2044
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2045
|
+
KerberosPrincipal: smithy_client_1.expectString,
|
|
2046
|
+
KmsKeyProviderUri: smithy_client_1.expectString,
|
|
2047
|
+
LocationArn: smithy_client_1.expectString,
|
|
2048
|
+
LocationUri: smithy_client_1.expectString,
|
|
2049
|
+
NameNodes: smithy_client_1._json,
|
|
2050
|
+
QopConfiguration: smithy_client_1._json,
|
|
2051
|
+
ReplicationFactor: smithy_client_1.expectInt32,
|
|
2052
|
+
SimpleUser: smithy_client_1.expectString,
|
|
2959
2053
|
});
|
|
2960
|
-
return retVal;
|
|
2961
|
-
};
|
|
2962
|
-
const de_FilterRule = (output, context) => {
|
|
2963
|
-
return {
|
|
2964
|
-
FilterType: (0, smithy_client_1.expectString)(output.FilterType),
|
|
2965
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2966
|
-
};
|
|
2967
|
-
};
|
|
2968
|
-
const de_FsxProtocol = (output, context) => {
|
|
2969
|
-
return {
|
|
2970
|
-
NFS: output.NFS != null ? de_FsxProtocolNfs(output.NFS, context) : undefined,
|
|
2971
|
-
SMB: output.SMB != null ? de_FsxProtocolSmb(output.SMB, context) : undefined,
|
|
2972
|
-
};
|
|
2973
2054
|
};
|
|
2974
|
-
const
|
|
2975
|
-
return {
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
2982
|
-
MountOptions: output.MountOptions != null ? de_SmbMountOptions(output.MountOptions, context) : undefined,
|
|
2983
|
-
Password: (0, smithy_client_1.expectString)(output.Password),
|
|
2984
|
-
User: (0, smithy_client_1.expectString)(output.User),
|
|
2985
|
-
};
|
|
2986
|
-
};
|
|
2987
|
-
const de_HdfsNameNode = (output, context) => {
|
|
2988
|
-
return {
|
|
2989
|
-
Hostname: (0, smithy_client_1.expectString)(output.Hostname),
|
|
2990
|
-
Port: (0, smithy_client_1.expectInt32)(output.Port),
|
|
2991
|
-
};
|
|
2992
|
-
};
|
|
2993
|
-
const de_HdfsNameNodeList = (output, context) => {
|
|
2994
|
-
const retVal = (output || [])
|
|
2995
|
-
.filter((e) => e != null)
|
|
2996
|
-
.map((entry) => {
|
|
2997
|
-
if (entry === null) {
|
|
2998
|
-
return null;
|
|
2999
|
-
}
|
|
3000
|
-
return de_HdfsNameNode(entry, context);
|
|
2055
|
+
const de_DescribeLocationNfsResponse = (output, context) => {
|
|
2056
|
+
return (0, smithy_client_1.take)(output, {
|
|
2057
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2058
|
+
LocationArn: smithy_client_1.expectString,
|
|
2059
|
+
LocationUri: smithy_client_1.expectString,
|
|
2060
|
+
MountOptions: smithy_client_1._json,
|
|
2061
|
+
OnPremConfig: smithy_client_1._json,
|
|
3001
2062
|
});
|
|
3002
|
-
return retVal;
|
|
3003
2063
|
};
|
|
3004
|
-
const
|
|
3005
|
-
return {
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3015
|
-
};
|
|
3016
|
-
};
|
|
3017
|
-
const de_ListAgentsResponse = (output, context) => {
|
|
3018
|
-
return {
|
|
3019
|
-
Agents: output.Agents != null ? de_AgentList(output.Agents, context) : undefined,
|
|
3020
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3021
|
-
};
|
|
3022
|
-
};
|
|
3023
|
-
const de_ListLocationsResponse = (output, context) => {
|
|
3024
|
-
return {
|
|
3025
|
-
Locations: output.Locations != null ? de_LocationList(output.Locations, context) : undefined,
|
|
3026
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3027
|
-
};
|
|
3028
|
-
};
|
|
3029
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
3030
|
-
return {
|
|
3031
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3032
|
-
Tags: output.Tags != null ? de_OutputTagList(output.Tags, context) : undefined,
|
|
3033
|
-
};
|
|
3034
|
-
};
|
|
3035
|
-
const de_ListTaskExecutionsResponse = (output, context) => {
|
|
3036
|
-
return {
|
|
3037
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3038
|
-
TaskExecutions: output.TaskExecutions != null ? de_TaskExecutionList(output.TaskExecutions, context) : undefined,
|
|
3039
|
-
};
|
|
3040
|
-
};
|
|
3041
|
-
const de_ListTasksResponse = (output, context) => {
|
|
3042
|
-
return {
|
|
3043
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3044
|
-
Tasks: output.Tasks != null ? de_TaskList(output.Tasks, context) : undefined,
|
|
3045
|
-
};
|
|
3046
|
-
};
|
|
3047
|
-
const de_LocationList = (output, context) => {
|
|
3048
|
-
const retVal = (output || [])
|
|
3049
|
-
.filter((e) => e != null)
|
|
3050
|
-
.map((entry) => {
|
|
3051
|
-
if (entry === null) {
|
|
3052
|
-
return null;
|
|
3053
|
-
}
|
|
3054
|
-
return de_LocationListEntry(entry, context);
|
|
2064
|
+
const de_DescribeLocationObjectStorageResponse = (output, context) => {
|
|
2065
|
+
return (0, smithy_client_1.take)(output, {
|
|
2066
|
+
AccessKey: smithy_client_1.expectString,
|
|
2067
|
+
AgentArns: smithy_client_1._json,
|
|
2068
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2069
|
+
LocationArn: smithy_client_1.expectString,
|
|
2070
|
+
LocationUri: smithy_client_1.expectString,
|
|
2071
|
+
ServerCertificate: context.base64Decoder,
|
|
2072
|
+
ServerPort: smithy_client_1.expectInt32,
|
|
2073
|
+
ServerProtocol: smithy_client_1.expectString,
|
|
3055
2074
|
});
|
|
3056
|
-
return retVal;
|
|
3057
2075
|
};
|
|
3058
|
-
const
|
|
3059
|
-
return {
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
3067
|
-
};
|
|
3068
|
-
};
|
|
3069
|
-
const de_OnPremConfig = (output, context) => {
|
|
3070
|
-
return {
|
|
3071
|
-
AgentArns: output.AgentArns != null ? de_AgentArnList(output.AgentArns, context) : undefined,
|
|
3072
|
-
};
|
|
3073
|
-
};
|
|
3074
|
-
const de_Options = (output, context) => {
|
|
3075
|
-
return {
|
|
3076
|
-
Atime: (0, smithy_client_1.expectString)(output.Atime),
|
|
3077
|
-
BytesPerSecond: (0, smithy_client_1.expectLong)(output.BytesPerSecond),
|
|
3078
|
-
Gid: (0, smithy_client_1.expectString)(output.Gid),
|
|
3079
|
-
LogLevel: (0, smithy_client_1.expectString)(output.LogLevel),
|
|
3080
|
-
Mtime: (0, smithy_client_1.expectString)(output.Mtime),
|
|
3081
|
-
ObjectTags: (0, smithy_client_1.expectString)(output.ObjectTags),
|
|
3082
|
-
OverwriteMode: (0, smithy_client_1.expectString)(output.OverwriteMode),
|
|
3083
|
-
PosixPermissions: (0, smithy_client_1.expectString)(output.PosixPermissions),
|
|
3084
|
-
PreserveDeletedFiles: (0, smithy_client_1.expectString)(output.PreserveDeletedFiles),
|
|
3085
|
-
PreserveDevices: (0, smithy_client_1.expectString)(output.PreserveDevices),
|
|
3086
|
-
SecurityDescriptorCopyFlags: (0, smithy_client_1.expectString)(output.SecurityDescriptorCopyFlags),
|
|
3087
|
-
TaskQueueing: (0, smithy_client_1.expectString)(output.TaskQueueing),
|
|
3088
|
-
TransferMode: (0, smithy_client_1.expectString)(output.TransferMode),
|
|
3089
|
-
Uid: (0, smithy_client_1.expectString)(output.Uid),
|
|
3090
|
-
VerifyMode: (0, smithy_client_1.expectString)(output.VerifyMode),
|
|
3091
|
-
};
|
|
3092
|
-
};
|
|
3093
|
-
const de_OutputTagList = (output, context) => {
|
|
3094
|
-
const retVal = (output || [])
|
|
3095
|
-
.filter((e) => e != null)
|
|
3096
|
-
.map((entry) => {
|
|
3097
|
-
if (entry === null) {
|
|
3098
|
-
return null;
|
|
3099
|
-
}
|
|
3100
|
-
return de_TagListEntry(entry, context);
|
|
3101
|
-
});
|
|
3102
|
-
return retVal;
|
|
3103
|
-
};
|
|
3104
|
-
const de_PLSecurityGroupArnList = (output, context) => {
|
|
3105
|
-
const retVal = (output || [])
|
|
3106
|
-
.filter((e) => e != null)
|
|
3107
|
-
.map((entry) => {
|
|
3108
|
-
if (entry === null) {
|
|
3109
|
-
return null;
|
|
3110
|
-
}
|
|
3111
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3112
|
-
});
|
|
3113
|
-
return retVal;
|
|
3114
|
-
};
|
|
3115
|
-
const de_PLSubnetArnList = (output, context) => {
|
|
3116
|
-
const retVal = (output || [])
|
|
3117
|
-
.filter((e) => e != null)
|
|
3118
|
-
.map((entry) => {
|
|
3119
|
-
if (entry === null) {
|
|
3120
|
-
return null;
|
|
3121
|
-
}
|
|
3122
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2076
|
+
const de_DescribeLocationS3Response = (output, context) => {
|
|
2077
|
+
return (0, smithy_client_1.take)(output, {
|
|
2078
|
+
AgentArns: smithy_client_1._json,
|
|
2079
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2080
|
+
LocationArn: smithy_client_1.expectString,
|
|
2081
|
+
LocationUri: smithy_client_1.expectString,
|
|
2082
|
+
S3Config: smithy_client_1._json,
|
|
2083
|
+
S3StorageClass: smithy_client_1.expectString,
|
|
3123
2084
|
});
|
|
3124
|
-
return retVal;
|
|
3125
|
-
};
|
|
3126
|
-
const de_PrivateLinkConfig = (output, context) => {
|
|
3127
|
-
return {
|
|
3128
|
-
PrivateLinkEndpoint: (0, smithy_client_1.expectString)(output.PrivateLinkEndpoint),
|
|
3129
|
-
SecurityGroupArns: output.SecurityGroupArns != null ? de_PLSecurityGroupArnList(output.SecurityGroupArns, context) : undefined,
|
|
3130
|
-
SubnetArns: output.SubnetArns != null ? de_PLSubnetArnList(output.SubnetArns, context) : undefined,
|
|
3131
|
-
VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
|
|
3132
|
-
};
|
|
3133
|
-
};
|
|
3134
|
-
const de_QopConfiguration = (output, context) => {
|
|
3135
|
-
return {
|
|
3136
|
-
DataTransferProtection: (0, smithy_client_1.expectString)(output.DataTransferProtection),
|
|
3137
|
-
RpcProtection: (0, smithy_client_1.expectString)(output.RpcProtection),
|
|
3138
|
-
};
|
|
3139
|
-
};
|
|
3140
|
-
const de_S3Config = (output, context) => {
|
|
3141
|
-
return {
|
|
3142
|
-
BucketAccessRoleArn: (0, smithy_client_1.expectString)(output.BucketAccessRoleArn),
|
|
3143
|
-
};
|
|
3144
|
-
};
|
|
3145
|
-
const de_SmbMountOptions = (output, context) => {
|
|
3146
|
-
return {
|
|
3147
|
-
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
3148
|
-
};
|
|
3149
2085
|
};
|
|
3150
|
-
const
|
|
3151
|
-
|
|
3152
|
-
.
|
|
3153
|
-
.
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
2086
|
+
const de_DescribeLocationSmbResponse = (output, context) => {
|
|
2087
|
+
return (0, smithy_client_1.take)(output, {
|
|
2088
|
+
AgentArns: smithy_client_1._json,
|
|
2089
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2090
|
+
Domain: smithy_client_1.expectString,
|
|
2091
|
+
LocationArn: smithy_client_1.expectString,
|
|
2092
|
+
LocationUri: smithy_client_1.expectString,
|
|
2093
|
+
MountOptions: smithy_client_1._json,
|
|
2094
|
+
User: smithy_client_1.expectString,
|
|
3158
2095
|
});
|
|
3159
|
-
return retVal;
|
|
3160
2096
|
};
|
|
3161
|
-
const
|
|
3162
|
-
return {
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
const retVal = (output || [])
|
|
3177
|
-
.filter((e) => e != null)
|
|
3178
|
-
.map((entry) => {
|
|
3179
|
-
if (entry === null) {
|
|
3180
|
-
return null;
|
|
3181
|
-
}
|
|
3182
|
-
return de_TaskExecutionListEntry(entry, context);
|
|
2097
|
+
const de_DescribeTaskExecutionResponse = (output, context) => {
|
|
2098
|
+
return (0, smithy_client_1.take)(output, {
|
|
2099
|
+
BytesCompressed: smithy_client_1.expectLong,
|
|
2100
|
+
BytesTransferred: smithy_client_1.expectLong,
|
|
2101
|
+
BytesWritten: smithy_client_1.expectLong,
|
|
2102
|
+
EstimatedBytesToTransfer: smithy_client_1.expectLong,
|
|
2103
|
+
EstimatedFilesToTransfer: smithy_client_1.expectLong,
|
|
2104
|
+
Excludes: smithy_client_1._json,
|
|
2105
|
+
FilesTransferred: smithy_client_1.expectLong,
|
|
2106
|
+
Includes: smithy_client_1._json,
|
|
2107
|
+
Options: smithy_client_1._json,
|
|
2108
|
+
Result: smithy_client_1._json,
|
|
2109
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2110
|
+
Status: smithy_client_1.expectString,
|
|
2111
|
+
TaskExecutionArn: smithy_client_1.expectString,
|
|
3183
2112
|
});
|
|
3184
|
-
return retVal;
|
|
3185
|
-
};
|
|
3186
|
-
const de_TaskExecutionListEntry = (output, context) => {
|
|
3187
|
-
return {
|
|
3188
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3189
|
-
TaskExecutionArn: (0, smithy_client_1.expectString)(output.TaskExecutionArn),
|
|
3190
|
-
};
|
|
3191
2113
|
};
|
|
3192
|
-
const
|
|
3193
|
-
return {
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
.
|
|
3208
|
-
.
|
|
3209
|
-
|
|
3210
|
-
return null;
|
|
3211
|
-
}
|
|
3212
|
-
return de_TaskListEntry(entry, context);
|
|
2114
|
+
const de_DescribeTaskResponse = (output, context) => {
|
|
2115
|
+
return (0, smithy_client_1.take)(output, {
|
|
2116
|
+
CloudWatchLogGroupArn: smithy_client_1.expectString,
|
|
2117
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2118
|
+
CurrentTaskExecutionArn: smithy_client_1.expectString,
|
|
2119
|
+
DestinationLocationArn: smithy_client_1.expectString,
|
|
2120
|
+
DestinationNetworkInterfaceArns: smithy_client_1._json,
|
|
2121
|
+
ErrorCode: smithy_client_1.expectString,
|
|
2122
|
+
ErrorDetail: smithy_client_1.expectString,
|
|
2123
|
+
Excludes: smithy_client_1._json,
|
|
2124
|
+
Includes: smithy_client_1._json,
|
|
2125
|
+
Name: smithy_client_1.expectString,
|
|
2126
|
+
Options: smithy_client_1._json,
|
|
2127
|
+
Schedule: smithy_client_1._json,
|
|
2128
|
+
SourceLocationArn: smithy_client_1.expectString,
|
|
2129
|
+
SourceNetworkInterfaceArns: smithy_client_1._json,
|
|
2130
|
+
Status: smithy_client_1.expectString,
|
|
2131
|
+
TaskArn: smithy_client_1.expectString,
|
|
3213
2132
|
});
|
|
3214
|
-
return retVal;
|
|
3215
|
-
};
|
|
3216
|
-
const de_TaskListEntry = (output, context) => {
|
|
3217
|
-
return {
|
|
3218
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3219
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3220
|
-
TaskArn: (0, smithy_client_1.expectString)(output.TaskArn),
|
|
3221
|
-
};
|
|
3222
|
-
};
|
|
3223
|
-
const de_TaskSchedule = (output, context) => {
|
|
3224
|
-
return {
|
|
3225
|
-
ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
|
|
3226
|
-
};
|
|
3227
|
-
};
|
|
3228
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
3229
|
-
return {};
|
|
3230
|
-
};
|
|
3231
|
-
const de_UpdateAgentResponse = (output, context) => {
|
|
3232
|
-
return {};
|
|
3233
|
-
};
|
|
3234
|
-
const de_UpdateLocationHdfsResponse = (output, context) => {
|
|
3235
|
-
return {};
|
|
3236
|
-
};
|
|
3237
|
-
const de_UpdateLocationNfsResponse = (output, context) => {
|
|
3238
|
-
return {};
|
|
3239
|
-
};
|
|
3240
|
-
const de_UpdateLocationObjectStorageResponse = (output, context) => {
|
|
3241
|
-
return {};
|
|
3242
|
-
};
|
|
3243
|
-
const de_UpdateLocationSmbResponse = (output, context) => {
|
|
3244
|
-
return {};
|
|
3245
|
-
};
|
|
3246
|
-
const de_UpdateTaskExecutionResponse = (output, context) => {
|
|
3247
|
-
return {};
|
|
3248
|
-
};
|
|
3249
|
-
const de_UpdateTaskResponse = (output, context) => {
|
|
3250
|
-
return {};
|
|
3251
2133
|
};
|
|
3252
2134
|
const deserializeMetadata = (output) => ({
|
|
3253
2135
|
httpStatusCode: output.statusCode,
|
|
@@ -3262,6 +2144,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3262
2144
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3263
2145
|
};
|
|
3264
2146
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2147
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(DataSyncServiceException_1.DataSyncServiceException);
|
|
3265
2148
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3266
2149
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3267
2150
|
const contents = {
|
|
@@ -3280,6 +2163,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
3280
2163
|
}
|
|
3281
2164
|
return new protocol_http_1.HttpRequest(contents);
|
|
3282
2165
|
};
|
|
2166
|
+
function sharedHeaders(operation) {
|
|
2167
|
+
return {
|
|
2168
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2169
|
+
"x-amz-target": `FmrsService.${operation}`,
|
|
2170
|
+
};
|
|
2171
|
+
}
|
|
3283
2172
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3284
2173
|
if (encoded.length) {
|
|
3285
2174
|
return JSON.parse(encoded);
|