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