@aws-sdk/client-fsx 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,373 +1,250 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, 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, expectBoolean as __expectBoolean, 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 { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { FSxServiceException as __BaseException } from "../models/FSxServiceException";
5
5
  import { ActiveDirectoryError, BackupBeingCopied, BackupInProgress, BackupNotFound, BackupRestoring, BadRequest, DataRepositoryAssociationNotFound, DataRepositoryTaskEnded, DataRepositoryTaskExecuting, DataRepositoryTaskNotFound, FileCacheNotFound, FileSystemNotFound, IncompatibleParameterError, IncompatibleRegionForMultiAZ, InternalServerError, InvalidDataRepositoryType, InvalidDestinationKmsKey, InvalidExportPath, InvalidImportPath, InvalidNetworkSettings, InvalidPerUnitStorageThroughput, InvalidRegion, InvalidSourceKmsKey, MissingFileCacheConfiguration, MissingFileSystemConfiguration, MissingVolumeConfiguration, NotServiceResourceError, ResourceDoesNotSupportTagging, ResourceNotFound, ServiceLimitExceeded, SnapshotNotFound, SourceBackupUnavailable, StorageVirtualMachineNotFound, UnsupportedOperation, VolumeNotFound, } from "../models/models_0";
6
6
  export const se_AssociateFileSystemAliasesCommand = async (input, context) => {
7
- const headers = {
8
- "content-type": "application/x-amz-json-1.1",
9
- "x-amz-target": "AWSSimbaAPIService_v20180301.AssociateFileSystemAliases",
10
- };
7
+ const headers = sharedHeaders("AssociateFileSystemAliases");
11
8
  let body;
12
9
  body = JSON.stringify(se_AssociateFileSystemAliasesRequest(input, context));
13
10
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
14
11
  };
15
12
  export const se_CancelDataRepositoryTaskCommand = async (input, context) => {
16
- const headers = {
17
- "content-type": "application/x-amz-json-1.1",
18
- "x-amz-target": "AWSSimbaAPIService_v20180301.CancelDataRepositoryTask",
19
- };
13
+ const headers = sharedHeaders("CancelDataRepositoryTask");
20
14
  let body;
21
- body = JSON.stringify(se_CancelDataRepositoryTaskRequest(input, context));
15
+ body = JSON.stringify(_json(input));
22
16
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
17
  };
24
18
  export const se_CopyBackupCommand = async (input, context) => {
25
- const headers = {
26
- "content-type": "application/x-amz-json-1.1",
27
- "x-amz-target": "AWSSimbaAPIService_v20180301.CopyBackup",
28
- };
19
+ const headers = sharedHeaders("CopyBackup");
29
20
  let body;
30
21
  body = JSON.stringify(se_CopyBackupRequest(input, context));
31
22
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
32
23
  };
33
24
  export const se_CreateBackupCommand = async (input, context) => {
34
- const headers = {
35
- "content-type": "application/x-amz-json-1.1",
36
- "x-amz-target": "AWSSimbaAPIService_v20180301.CreateBackup",
37
- };
25
+ const headers = sharedHeaders("CreateBackup");
38
26
  let body;
39
27
  body = JSON.stringify(se_CreateBackupRequest(input, context));
40
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
29
  };
42
30
  export const se_CreateDataRepositoryAssociationCommand = async (input, context) => {
43
- const headers = {
44
- "content-type": "application/x-amz-json-1.1",
45
- "x-amz-target": "AWSSimbaAPIService_v20180301.CreateDataRepositoryAssociation",
46
- };
31
+ const headers = sharedHeaders("CreateDataRepositoryAssociation");
47
32
  let body;
48
33
  body = JSON.stringify(se_CreateDataRepositoryAssociationRequest(input, context));
49
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
35
  };
51
36
  export const se_CreateDataRepositoryTaskCommand = async (input, context) => {
52
- const headers = {
53
- "content-type": "application/x-amz-json-1.1",
54
- "x-amz-target": "AWSSimbaAPIService_v20180301.CreateDataRepositoryTask",
55
- };
37
+ const headers = sharedHeaders("CreateDataRepositoryTask");
56
38
  let body;
57
39
  body = JSON.stringify(se_CreateDataRepositoryTaskRequest(input, context));
58
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
41
  };
60
42
  export const se_CreateFileCacheCommand = async (input, context) => {
61
- const headers = {
62
- "content-type": "application/x-amz-json-1.1",
63
- "x-amz-target": "AWSSimbaAPIService_v20180301.CreateFileCache",
64
- };
43
+ const headers = sharedHeaders("CreateFileCache");
65
44
  let body;
66
45
  body = JSON.stringify(se_CreateFileCacheRequest(input, context));
67
46
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
68
47
  };
69
48
  export const se_CreateFileSystemCommand = async (input, context) => {
70
- const headers = {
71
- "content-type": "application/x-amz-json-1.1",
72
- "x-amz-target": "AWSSimbaAPIService_v20180301.CreateFileSystem",
73
- };
49
+ const headers = sharedHeaders("CreateFileSystem");
74
50
  let body;
75
51
  body = JSON.stringify(se_CreateFileSystemRequest(input, context));
76
52
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
53
  };
78
54
  export const se_CreateFileSystemFromBackupCommand = async (input, context) => {
79
- const headers = {
80
- "content-type": "application/x-amz-json-1.1",
81
- "x-amz-target": "AWSSimbaAPIService_v20180301.CreateFileSystemFromBackup",
82
- };
55
+ const headers = sharedHeaders("CreateFileSystemFromBackup");
83
56
  let body;
84
57
  body = JSON.stringify(se_CreateFileSystemFromBackupRequest(input, context));
85
58
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
86
59
  };
87
60
  export const se_CreateSnapshotCommand = async (input, context) => {
88
- const headers = {
89
- "content-type": "application/x-amz-json-1.1",
90
- "x-amz-target": "AWSSimbaAPIService_v20180301.CreateSnapshot",
91
- };
61
+ const headers = sharedHeaders("CreateSnapshot");
92
62
  let body;
93
63
  body = JSON.stringify(se_CreateSnapshotRequest(input, context));
94
64
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
65
  };
96
66
  export const se_CreateStorageVirtualMachineCommand = async (input, context) => {
97
- const headers = {
98
- "content-type": "application/x-amz-json-1.1",
99
- "x-amz-target": "AWSSimbaAPIService_v20180301.CreateStorageVirtualMachine",
100
- };
67
+ const headers = sharedHeaders("CreateStorageVirtualMachine");
101
68
  let body;
102
69
  body = JSON.stringify(se_CreateStorageVirtualMachineRequest(input, context));
103
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
104
71
  };
105
72
  export const se_CreateVolumeCommand = async (input, context) => {
106
- const headers = {
107
- "content-type": "application/x-amz-json-1.1",
108
- "x-amz-target": "AWSSimbaAPIService_v20180301.CreateVolume",
109
- };
73
+ const headers = sharedHeaders("CreateVolume");
110
74
  let body;
111
75
  body = JSON.stringify(se_CreateVolumeRequest(input, context));
112
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
77
  };
114
78
  export const se_CreateVolumeFromBackupCommand = async (input, context) => {
115
- const headers = {
116
- "content-type": "application/x-amz-json-1.1",
117
- "x-amz-target": "AWSSimbaAPIService_v20180301.CreateVolumeFromBackup",
118
- };
79
+ const headers = sharedHeaders("CreateVolumeFromBackup");
119
80
  let body;
120
81
  body = JSON.stringify(se_CreateVolumeFromBackupRequest(input, context));
121
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
122
83
  };
123
84
  export const se_DeleteBackupCommand = async (input, context) => {
124
- const headers = {
125
- "content-type": "application/x-amz-json-1.1",
126
- "x-amz-target": "AWSSimbaAPIService_v20180301.DeleteBackup",
127
- };
85
+ const headers = sharedHeaders("DeleteBackup");
128
86
  let body;
129
87
  body = JSON.stringify(se_DeleteBackupRequest(input, context));
130
88
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
89
  };
132
90
  export const se_DeleteDataRepositoryAssociationCommand = async (input, context) => {
133
- const headers = {
134
- "content-type": "application/x-amz-json-1.1",
135
- "x-amz-target": "AWSSimbaAPIService_v20180301.DeleteDataRepositoryAssociation",
136
- };
91
+ const headers = sharedHeaders("DeleteDataRepositoryAssociation");
137
92
  let body;
138
93
  body = JSON.stringify(se_DeleteDataRepositoryAssociationRequest(input, context));
139
94
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
140
95
  };
141
96
  export const se_DeleteFileCacheCommand = async (input, context) => {
142
- const headers = {
143
- "content-type": "application/x-amz-json-1.1",
144
- "x-amz-target": "AWSSimbaAPIService_v20180301.DeleteFileCache",
145
- };
97
+ const headers = sharedHeaders("DeleteFileCache");
146
98
  let body;
147
99
  body = JSON.stringify(se_DeleteFileCacheRequest(input, context));
148
100
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
101
  };
150
102
  export const se_DeleteFileSystemCommand = async (input, context) => {
151
- const headers = {
152
- "content-type": "application/x-amz-json-1.1",
153
- "x-amz-target": "AWSSimbaAPIService_v20180301.DeleteFileSystem",
154
- };
103
+ const headers = sharedHeaders("DeleteFileSystem");
155
104
  let body;
156
105
  body = JSON.stringify(se_DeleteFileSystemRequest(input, context));
157
106
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
158
107
  };
159
108
  export const se_DeleteSnapshotCommand = async (input, context) => {
160
- const headers = {
161
- "content-type": "application/x-amz-json-1.1",
162
- "x-amz-target": "AWSSimbaAPIService_v20180301.DeleteSnapshot",
163
- };
109
+ const headers = sharedHeaders("DeleteSnapshot");
164
110
  let body;
165
111
  body = JSON.stringify(se_DeleteSnapshotRequest(input, context));
166
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
113
  };
168
114
  export const se_DeleteStorageVirtualMachineCommand = async (input, context) => {
169
- const headers = {
170
- "content-type": "application/x-amz-json-1.1",
171
- "x-amz-target": "AWSSimbaAPIService_v20180301.DeleteStorageVirtualMachine",
172
- };
115
+ const headers = sharedHeaders("DeleteStorageVirtualMachine");
173
116
  let body;
174
117
  body = JSON.stringify(se_DeleteStorageVirtualMachineRequest(input, context));
175
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
119
  };
177
120
  export const se_DeleteVolumeCommand = async (input, context) => {
178
- const headers = {
179
- "content-type": "application/x-amz-json-1.1",
180
- "x-amz-target": "AWSSimbaAPIService_v20180301.DeleteVolume",
181
- };
121
+ const headers = sharedHeaders("DeleteVolume");
182
122
  let body;
183
123
  body = JSON.stringify(se_DeleteVolumeRequest(input, context));
184
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
125
  };
186
126
  export const se_DescribeBackupsCommand = async (input, context) => {
187
- const headers = {
188
- "content-type": "application/x-amz-json-1.1",
189
- "x-amz-target": "AWSSimbaAPIService_v20180301.DescribeBackups",
190
- };
127
+ const headers = sharedHeaders("DescribeBackups");
191
128
  let body;
192
- body = JSON.stringify(se_DescribeBackupsRequest(input, context));
129
+ body = JSON.stringify(_json(input));
193
130
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
194
131
  };
195
132
  export const se_DescribeDataRepositoryAssociationsCommand = async (input, context) => {
196
- const headers = {
197
- "content-type": "application/x-amz-json-1.1",
198
- "x-amz-target": "AWSSimbaAPIService_v20180301.DescribeDataRepositoryAssociations",
199
- };
133
+ const headers = sharedHeaders("DescribeDataRepositoryAssociations");
200
134
  let body;
201
- body = JSON.stringify(se_DescribeDataRepositoryAssociationsRequest(input, context));
135
+ body = JSON.stringify(_json(input));
202
136
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
137
  };
204
138
  export const se_DescribeDataRepositoryTasksCommand = async (input, context) => {
205
- const headers = {
206
- "content-type": "application/x-amz-json-1.1",
207
- "x-amz-target": "AWSSimbaAPIService_v20180301.DescribeDataRepositoryTasks",
208
- };
139
+ const headers = sharedHeaders("DescribeDataRepositoryTasks");
209
140
  let body;
210
- body = JSON.stringify(se_DescribeDataRepositoryTasksRequest(input, context));
141
+ body = JSON.stringify(_json(input));
211
142
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
212
143
  };
213
144
  export const se_DescribeFileCachesCommand = async (input, context) => {
214
- const headers = {
215
- "content-type": "application/x-amz-json-1.1",
216
- "x-amz-target": "AWSSimbaAPIService_v20180301.DescribeFileCaches",
217
- };
145
+ const headers = sharedHeaders("DescribeFileCaches");
218
146
  let body;
219
- body = JSON.stringify(se_DescribeFileCachesRequest(input, context));
147
+ body = JSON.stringify(_json(input));
220
148
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
149
  };
222
150
  export const se_DescribeFileSystemAliasesCommand = async (input, context) => {
223
- const headers = {
224
- "content-type": "application/x-amz-json-1.1",
225
- "x-amz-target": "AWSSimbaAPIService_v20180301.DescribeFileSystemAliases",
226
- };
151
+ const headers = sharedHeaders("DescribeFileSystemAliases");
227
152
  let body;
228
153
  body = JSON.stringify(se_DescribeFileSystemAliasesRequest(input, context));
229
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
230
155
  };
231
156
  export const se_DescribeFileSystemsCommand = async (input, context) => {
232
- const headers = {
233
- "content-type": "application/x-amz-json-1.1",
234
- "x-amz-target": "AWSSimbaAPIService_v20180301.DescribeFileSystems",
235
- };
157
+ const headers = sharedHeaders("DescribeFileSystems");
236
158
  let body;
237
- body = JSON.stringify(se_DescribeFileSystemsRequest(input, context));
159
+ body = JSON.stringify(_json(input));
238
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
161
  };
240
162
  export const se_DescribeSnapshotsCommand = async (input, context) => {
241
- const headers = {
242
- "content-type": "application/x-amz-json-1.1",
243
- "x-amz-target": "AWSSimbaAPIService_v20180301.DescribeSnapshots",
244
- };
163
+ const headers = sharedHeaders("DescribeSnapshots");
245
164
  let body;
246
- body = JSON.stringify(se_DescribeSnapshotsRequest(input, context));
165
+ body = JSON.stringify(_json(input));
247
166
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
248
167
  };
249
168
  export const se_DescribeStorageVirtualMachinesCommand = async (input, context) => {
250
- const headers = {
251
- "content-type": "application/x-amz-json-1.1",
252
- "x-amz-target": "AWSSimbaAPIService_v20180301.DescribeStorageVirtualMachines",
253
- };
169
+ const headers = sharedHeaders("DescribeStorageVirtualMachines");
254
170
  let body;
255
- body = JSON.stringify(se_DescribeStorageVirtualMachinesRequest(input, context));
171
+ body = JSON.stringify(_json(input));
256
172
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
173
  };
258
174
  export const se_DescribeVolumesCommand = async (input, context) => {
259
- const headers = {
260
- "content-type": "application/x-amz-json-1.1",
261
- "x-amz-target": "AWSSimbaAPIService_v20180301.DescribeVolumes",
262
- };
175
+ const headers = sharedHeaders("DescribeVolumes");
263
176
  let body;
264
- body = JSON.stringify(se_DescribeVolumesRequest(input, context));
177
+ body = JSON.stringify(_json(input));
265
178
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
266
179
  };
267
180
  export const se_DisassociateFileSystemAliasesCommand = async (input, context) => {
268
- const headers = {
269
- "content-type": "application/x-amz-json-1.1",
270
- "x-amz-target": "AWSSimbaAPIService_v20180301.DisassociateFileSystemAliases",
271
- };
181
+ const headers = sharedHeaders("DisassociateFileSystemAliases");
272
182
  let body;
273
183
  body = JSON.stringify(se_DisassociateFileSystemAliasesRequest(input, context));
274
184
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
185
  };
276
186
  export const se_ListTagsForResourceCommand = async (input, context) => {
277
- const headers = {
278
- "content-type": "application/x-amz-json-1.1",
279
- "x-amz-target": "AWSSimbaAPIService_v20180301.ListTagsForResource",
280
- };
187
+ const headers = sharedHeaders("ListTagsForResource");
281
188
  let body;
282
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
189
+ body = JSON.stringify(_json(input));
283
190
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
284
191
  };
285
192
  export const se_ReleaseFileSystemNfsV3LocksCommand = async (input, context) => {
286
- const headers = {
287
- "content-type": "application/x-amz-json-1.1",
288
- "x-amz-target": "AWSSimbaAPIService_v20180301.ReleaseFileSystemNfsV3Locks",
289
- };
193
+ const headers = sharedHeaders("ReleaseFileSystemNfsV3Locks");
290
194
  let body;
291
195
  body = JSON.stringify(se_ReleaseFileSystemNfsV3LocksRequest(input, context));
292
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
293
197
  };
294
198
  export const se_RestoreVolumeFromSnapshotCommand = async (input, context) => {
295
- const headers = {
296
- "content-type": "application/x-amz-json-1.1",
297
- "x-amz-target": "AWSSimbaAPIService_v20180301.RestoreVolumeFromSnapshot",
298
- };
199
+ const headers = sharedHeaders("RestoreVolumeFromSnapshot");
299
200
  let body;
300
201
  body = JSON.stringify(se_RestoreVolumeFromSnapshotRequest(input, context));
301
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
302
203
  };
303
204
  export const se_TagResourceCommand = async (input, context) => {
304
- const headers = {
305
- "content-type": "application/x-amz-json-1.1",
306
- "x-amz-target": "AWSSimbaAPIService_v20180301.TagResource",
307
- };
205
+ const headers = sharedHeaders("TagResource");
308
206
  let body;
309
- body = JSON.stringify(se_TagResourceRequest(input, context));
207
+ body = JSON.stringify(_json(input));
310
208
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
209
  };
312
210
  export const se_UntagResourceCommand = async (input, context) => {
313
- const headers = {
314
- "content-type": "application/x-amz-json-1.1",
315
- "x-amz-target": "AWSSimbaAPIService_v20180301.UntagResource",
316
- };
211
+ const headers = sharedHeaders("UntagResource");
317
212
  let body;
318
- body = JSON.stringify(se_UntagResourceRequest(input, context));
213
+ body = JSON.stringify(_json(input));
319
214
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
320
215
  };
321
216
  export const se_UpdateDataRepositoryAssociationCommand = async (input, context) => {
322
- const headers = {
323
- "content-type": "application/x-amz-json-1.1",
324
- "x-amz-target": "AWSSimbaAPIService_v20180301.UpdateDataRepositoryAssociation",
325
- };
217
+ const headers = sharedHeaders("UpdateDataRepositoryAssociation");
326
218
  let body;
327
219
  body = JSON.stringify(se_UpdateDataRepositoryAssociationRequest(input, context));
328
220
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
221
  };
330
222
  export const se_UpdateFileCacheCommand = async (input, context) => {
331
- const headers = {
332
- "content-type": "application/x-amz-json-1.1",
333
- "x-amz-target": "AWSSimbaAPIService_v20180301.UpdateFileCache",
334
- };
223
+ const headers = sharedHeaders("UpdateFileCache");
335
224
  let body;
336
225
  body = JSON.stringify(se_UpdateFileCacheRequest(input, context));
337
226
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
338
227
  };
339
228
  export const se_UpdateFileSystemCommand = async (input, context) => {
340
- const headers = {
341
- "content-type": "application/x-amz-json-1.1",
342
- "x-amz-target": "AWSSimbaAPIService_v20180301.UpdateFileSystem",
343
- };
229
+ const headers = sharedHeaders("UpdateFileSystem");
344
230
  let body;
345
231
  body = JSON.stringify(se_UpdateFileSystemRequest(input, context));
346
232
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
233
  };
348
234
  export const se_UpdateSnapshotCommand = async (input, context) => {
349
- const headers = {
350
- "content-type": "application/x-amz-json-1.1",
351
- "x-amz-target": "AWSSimbaAPIService_v20180301.UpdateSnapshot",
352
- };
235
+ const headers = sharedHeaders("UpdateSnapshot");
353
236
  let body;
354
237
  body = JSON.stringify(se_UpdateSnapshotRequest(input, context));
355
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
356
239
  };
357
240
  export const se_UpdateStorageVirtualMachineCommand = async (input, context) => {
358
- const headers = {
359
- "content-type": "application/x-amz-json-1.1",
360
- "x-amz-target": "AWSSimbaAPIService_v20180301.UpdateStorageVirtualMachine",
361
- };
241
+ const headers = sharedHeaders("UpdateStorageVirtualMachine");
362
242
  let body;
363
243
  body = JSON.stringify(se_UpdateStorageVirtualMachineRequest(input, context));
364
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
245
  };
366
246
  export const se_UpdateVolumeCommand = async (input, context) => {
367
- const headers = {
368
- "content-type": "application/x-amz-json-1.1",
369
- "x-amz-target": "AWSSimbaAPIService_v20180301.UpdateVolume",
370
- };
247
+ const headers = sharedHeaders("UpdateVolume");
371
248
  let body;
372
249
  body = JSON.stringify(se_UpdateVolumeRequest(input, context));
373
250
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -378,12 +255,12 @@ export const de_AssociateFileSystemAliasesCommand = async (output, context) => {
378
255
  }
379
256
  const data = await parseBody(output.body, context);
380
257
  let contents = {};
381
- contents = de_AssociateFileSystemAliasesResponse(data, context);
258
+ contents = _json(data);
382
259
  const response = {
383
260
  $metadata: deserializeMetadata(output),
384
261
  ...contents,
385
262
  };
386
- return Promise.resolve(response);
263
+ return response;
387
264
  };
388
265
  const de_AssociateFileSystemAliasesCommandError = async (output, context) => {
389
266
  const parsedOutput = {
@@ -403,10 +280,9 @@ const de_AssociateFileSystemAliasesCommandError = async (output, context) => {
403
280
  throw await de_InternalServerErrorRes(parsedOutput, context);
404
281
  default:
405
282
  const parsedBody = parsedOutput.body;
406
- throwDefaultError({
283
+ return throwDefaultError({
407
284
  output,
408
285
  parsedBody,
409
- exceptionCtor: __BaseException,
410
286
  errorCode,
411
287
  });
412
288
  }
@@ -417,12 +293,12 @@ export const de_CancelDataRepositoryTaskCommand = async (output, context) => {
417
293
  }
418
294
  const data = await parseBody(output.body, context);
419
295
  let contents = {};
420
- contents = de_CancelDataRepositoryTaskResponse(data, context);
296
+ contents = _json(data);
421
297
  const response = {
422
298
  $metadata: deserializeMetadata(output),
423
299
  ...contents,
424
300
  };
425
- return Promise.resolve(response);
301
+ return response;
426
302
  };
427
303
  const de_CancelDataRepositoryTaskCommandError = async (output, context) => {
428
304
  const parsedOutput = {
@@ -448,10 +324,9 @@ const de_CancelDataRepositoryTaskCommandError = async (output, context) => {
448
324
  throw await de_UnsupportedOperationRes(parsedOutput, context);
449
325
  default:
450
326
  const parsedBody = parsedOutput.body;
451
- throwDefaultError({
327
+ return throwDefaultError({
452
328
  output,
453
329
  parsedBody,
454
- exceptionCtor: __BaseException,
455
330
  errorCode,
456
331
  });
457
332
  }
@@ -467,7 +342,7 @@ export const de_CopyBackupCommand = async (output, context) => {
467
342
  $metadata: deserializeMetadata(output),
468
343
  ...contents,
469
344
  };
470
- return Promise.resolve(response);
345
+ return response;
471
346
  };
472
347
  const de_CopyBackupCommandError = async (output, context) => {
473
348
  const parsedOutput = {
@@ -511,10 +386,9 @@ const de_CopyBackupCommandError = async (output, context) => {
511
386
  throw await de_UnsupportedOperationRes(parsedOutput, context);
512
387
  default:
513
388
  const parsedBody = parsedOutput.body;
514
- throwDefaultError({
389
+ return throwDefaultError({
515
390
  output,
516
391
  parsedBody,
517
- exceptionCtor: __BaseException,
518
392
  errorCode,
519
393
  });
520
394
  }
@@ -530,7 +404,7 @@ export const de_CreateBackupCommand = async (output, context) => {
530
404
  $metadata: deserializeMetadata(output),
531
405
  ...contents,
532
406
  };
533
- return Promise.resolve(response);
407
+ return response;
534
408
  };
535
409
  const de_CreateBackupCommandError = async (output, context) => {
536
410
  const parsedOutput = {
@@ -565,10 +439,9 @@ const de_CreateBackupCommandError = async (output, context) => {
565
439
  throw await de_VolumeNotFoundRes(parsedOutput, context);
566
440
  default:
567
441
  const parsedBody = parsedOutput.body;
568
- throwDefaultError({
442
+ return throwDefaultError({
569
443
  output,
570
444
  parsedBody,
571
- exceptionCtor: __BaseException,
572
445
  errorCode,
573
446
  });
574
447
  }
@@ -584,7 +457,7 @@ export const de_CreateDataRepositoryAssociationCommand = async (output, context)
584
457
  $metadata: deserializeMetadata(output),
585
458
  ...contents,
586
459
  };
587
- return Promise.resolve(response);
460
+ return response;
588
461
  };
589
462
  const de_CreateDataRepositoryAssociationCommandError = async (output, context) => {
590
463
  const parsedOutput = {
@@ -613,10 +486,9 @@ const de_CreateDataRepositoryAssociationCommandError = async (output, context) =
613
486
  throw await de_UnsupportedOperationRes(parsedOutput, context);
614
487
  default:
615
488
  const parsedBody = parsedOutput.body;
616
- throwDefaultError({
489
+ return throwDefaultError({
617
490
  output,
618
491
  parsedBody,
619
- exceptionCtor: __BaseException,
620
492
  errorCode,
621
493
  });
622
494
  }
@@ -632,7 +504,7 @@ export const de_CreateDataRepositoryTaskCommand = async (output, context) => {
632
504
  $metadata: deserializeMetadata(output),
633
505
  ...contents,
634
506
  };
635
- return Promise.resolve(response);
507
+ return response;
636
508
  };
637
509
  const de_CreateDataRepositoryTaskCommandError = async (output, context) => {
638
510
  const parsedOutput = {
@@ -664,10 +536,9 @@ const de_CreateDataRepositoryTaskCommandError = async (output, context) => {
664
536
  throw await de_UnsupportedOperationRes(parsedOutput, context);
665
537
  default:
666
538
  const parsedBody = parsedOutput.body;
667
- throwDefaultError({
539
+ return throwDefaultError({
668
540
  output,
669
541
  parsedBody,
670
- exceptionCtor: __BaseException,
671
542
  errorCode,
672
543
  });
673
544
  }
@@ -683,7 +554,7 @@ export const de_CreateFileCacheCommand = async (output, context) => {
683
554
  $metadata: deserializeMetadata(output),
684
555
  ...contents,
685
556
  };
686
- return Promise.resolve(response);
557
+ return response;
687
558
  };
688
559
  const de_CreateFileCacheCommandError = async (output, context) => {
689
560
  const parsedOutput = {
@@ -715,10 +586,9 @@ const de_CreateFileCacheCommandError = async (output, context) => {
715
586
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
716
587
  default:
717
588
  const parsedBody = parsedOutput.body;
718
- throwDefaultError({
589
+ return throwDefaultError({
719
590
  output,
720
591
  parsedBody,
721
- exceptionCtor: __BaseException,
722
592
  errorCode,
723
593
  });
724
594
  }
@@ -734,7 +604,7 @@ export const de_CreateFileSystemCommand = async (output, context) => {
734
604
  $metadata: deserializeMetadata(output),
735
605
  ...contents,
736
606
  };
737
- return Promise.resolve(response);
607
+ return response;
738
608
  };
739
609
  const de_CreateFileSystemCommandError = async (output, context) => {
740
610
  const parsedOutput = {
@@ -775,10 +645,9 @@ const de_CreateFileSystemCommandError = async (output, context) => {
775
645
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
776
646
  default:
777
647
  const parsedBody = parsedOutput.body;
778
- throwDefaultError({
648
+ return throwDefaultError({
779
649
  output,
780
650
  parsedBody,
781
- exceptionCtor: __BaseException,
782
651
  errorCode,
783
652
  });
784
653
  }
@@ -794,7 +663,7 @@ export const de_CreateFileSystemFromBackupCommand = async (output, context) => {
794
663
  $metadata: deserializeMetadata(output),
795
664
  ...contents,
796
665
  };
797
- return Promise.resolve(response);
666
+ return response;
798
667
  };
799
668
  const de_CreateFileSystemFromBackupCommandError = async (output, context) => {
800
669
  const parsedOutput = {
@@ -832,10 +701,9 @@ const de_CreateFileSystemFromBackupCommandError = async (output, context) => {
832
701
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
833
702
  default:
834
703
  const parsedBody = parsedOutput.body;
835
- throwDefaultError({
704
+ return throwDefaultError({
836
705
  output,
837
706
  parsedBody,
838
- exceptionCtor: __BaseException,
839
707
  errorCode,
840
708
  });
841
709
  }
@@ -851,7 +719,7 @@ export const de_CreateSnapshotCommand = async (output, context) => {
851
719
  $metadata: deserializeMetadata(output),
852
720
  ...contents,
853
721
  };
854
- return Promise.resolve(response);
722
+ return response;
855
723
  };
856
724
  const de_CreateSnapshotCommandError = async (output, context) => {
857
725
  const parsedOutput = {
@@ -874,10 +742,9 @@ const de_CreateSnapshotCommandError = async (output, context) => {
874
742
  throw await de_VolumeNotFoundRes(parsedOutput, context);
875
743
  default:
876
744
  const parsedBody = parsedOutput.body;
877
- throwDefaultError({
745
+ return throwDefaultError({
878
746
  output,
879
747
  parsedBody,
880
- exceptionCtor: __BaseException,
881
748
  errorCode,
882
749
  });
883
750
  }
@@ -893,7 +760,7 @@ export const de_CreateStorageVirtualMachineCommand = async (output, context) =>
893
760
  $metadata: deserializeMetadata(output),
894
761
  ...contents,
895
762
  };
896
- return Promise.resolve(response);
763
+ return response;
897
764
  };
898
765
  const de_CreateStorageVirtualMachineCommandError = async (output, context) => {
899
766
  const parsedOutput = {
@@ -925,10 +792,9 @@ const de_CreateStorageVirtualMachineCommandError = async (output, context) => {
925
792
  throw await de_UnsupportedOperationRes(parsedOutput, context);
926
793
  default:
927
794
  const parsedBody = parsedOutput.body;
928
- throwDefaultError({
795
+ return throwDefaultError({
929
796
  output,
930
797
  parsedBody,
931
- exceptionCtor: __BaseException,
932
798
  errorCode,
933
799
  });
934
800
  }
@@ -944,7 +810,7 @@ export const de_CreateVolumeCommand = async (output, context) => {
944
810
  $metadata: deserializeMetadata(output),
945
811
  ...contents,
946
812
  };
947
- return Promise.resolve(response);
813
+ return response;
948
814
  };
949
815
  const de_CreateVolumeCommandError = async (output, context) => {
950
816
  const parsedOutput = {
@@ -979,10 +845,9 @@ const de_CreateVolumeCommandError = async (output, context) => {
979
845
  throw await de_UnsupportedOperationRes(parsedOutput, context);
980
846
  default:
981
847
  const parsedBody = parsedOutput.body;
982
- throwDefaultError({
848
+ return throwDefaultError({
983
849
  output,
984
850
  parsedBody,
985
- exceptionCtor: __BaseException,
986
851
  errorCode,
987
852
  });
988
853
  }
@@ -998,7 +863,7 @@ export const de_CreateVolumeFromBackupCommand = async (output, context) => {
998
863
  $metadata: deserializeMetadata(output),
999
864
  ...contents,
1000
865
  };
1001
- return Promise.resolve(response);
866
+ return response;
1002
867
  };
1003
868
  const de_CreateVolumeFromBackupCommandError = async (output, context) => {
1004
869
  const parsedOutput = {
@@ -1033,10 +898,9 @@ const de_CreateVolumeFromBackupCommandError = async (output, context) => {
1033
898
  throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
1034
899
  default:
1035
900
  const parsedBody = parsedOutput.body;
1036
- throwDefaultError({
901
+ return throwDefaultError({
1037
902
  output,
1038
903
  parsedBody,
1039
- exceptionCtor: __BaseException,
1040
904
  errorCode,
1041
905
  });
1042
906
  }
@@ -1047,12 +911,12 @@ export const de_DeleteBackupCommand = async (output, context) => {
1047
911
  }
1048
912
  const data = await parseBody(output.body, context);
1049
913
  let contents = {};
1050
- contents = de_DeleteBackupResponse(data, context);
914
+ contents = _json(data);
1051
915
  const response = {
1052
916
  $metadata: deserializeMetadata(output),
1053
917
  ...contents,
1054
918
  };
1055
- return Promise.resolve(response);
919
+ return response;
1056
920
  };
1057
921
  const de_DeleteBackupCommandError = async (output, context) => {
1058
922
  const parsedOutput = {
@@ -1084,10 +948,9 @@ const de_DeleteBackupCommandError = async (output, context) => {
1084
948
  throw await de_InternalServerErrorRes(parsedOutput, context);
1085
949
  default:
1086
950
  const parsedBody = parsedOutput.body;
1087
- throwDefaultError({
951
+ return throwDefaultError({
1088
952
  output,
1089
953
  parsedBody,
1090
- exceptionCtor: __BaseException,
1091
954
  errorCode,
1092
955
  });
1093
956
  }
@@ -1098,12 +961,12 @@ export const de_DeleteDataRepositoryAssociationCommand = async (output, context)
1098
961
  }
1099
962
  const data = await parseBody(output.body, context);
1100
963
  let contents = {};
1101
- contents = de_DeleteDataRepositoryAssociationResponse(data, context);
964
+ contents = _json(data);
1102
965
  const response = {
1103
966
  $metadata: deserializeMetadata(output),
1104
967
  ...contents,
1105
968
  };
1106
- return Promise.resolve(response);
969
+ return response;
1107
970
  };
1108
971
  const de_DeleteDataRepositoryAssociationCommandError = async (output, context) => {
1109
972
  const parsedOutput = {
@@ -1129,10 +992,9 @@ const de_DeleteDataRepositoryAssociationCommandError = async (output, context) =
1129
992
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
1130
993
  default:
1131
994
  const parsedBody = parsedOutput.body;
1132
- throwDefaultError({
995
+ return throwDefaultError({
1133
996
  output,
1134
997
  parsedBody,
1135
- exceptionCtor: __BaseException,
1136
998
  errorCode,
1137
999
  });
1138
1000
  }
@@ -1143,12 +1005,12 @@ export const de_DeleteFileCacheCommand = async (output, context) => {
1143
1005
  }
1144
1006
  const data = await parseBody(output.body, context);
1145
1007
  let contents = {};
1146
- contents = de_DeleteFileCacheResponse(data, context);
1008
+ contents = _json(data);
1147
1009
  const response = {
1148
1010
  $metadata: deserializeMetadata(output),
1149
1011
  ...contents,
1150
1012
  };
1151
- return Promise.resolve(response);
1013
+ return response;
1152
1014
  };
1153
1015
  const de_DeleteFileCacheCommandError = async (output, context) => {
1154
1016
  const parsedOutput = {
@@ -1174,10 +1036,9 @@ const de_DeleteFileCacheCommandError = async (output, context) => {
1174
1036
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
1175
1037
  default:
1176
1038
  const parsedBody = parsedOutput.body;
1177
- throwDefaultError({
1039
+ return throwDefaultError({
1178
1040
  output,
1179
1041
  parsedBody,
1180
- exceptionCtor: __BaseException,
1181
1042
  errorCode,
1182
1043
  });
1183
1044
  }
@@ -1188,12 +1049,12 @@ export const de_DeleteFileSystemCommand = async (output, context) => {
1188
1049
  }
1189
1050
  const data = await parseBody(output.body, context);
1190
1051
  let contents = {};
1191
- contents = de_DeleteFileSystemResponse(data, context);
1052
+ contents = _json(data);
1192
1053
  const response = {
1193
1054
  $metadata: deserializeMetadata(output),
1194
1055
  ...contents,
1195
1056
  };
1196
- return Promise.resolve(response);
1057
+ return response;
1197
1058
  };
1198
1059
  const de_DeleteFileSystemCommandError = async (output, context) => {
1199
1060
  const parsedOutput = {
@@ -1219,10 +1080,9 @@ const de_DeleteFileSystemCommandError = async (output, context) => {
1219
1080
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
1220
1081
  default:
1221
1082
  const parsedBody = parsedOutput.body;
1222
- throwDefaultError({
1083
+ return throwDefaultError({
1223
1084
  output,
1224
1085
  parsedBody,
1225
- exceptionCtor: __BaseException,
1226
1086
  errorCode,
1227
1087
  });
1228
1088
  }
@@ -1233,12 +1093,12 @@ export const de_DeleteSnapshotCommand = async (output, context) => {
1233
1093
  }
1234
1094
  const data = await parseBody(output.body, context);
1235
1095
  let contents = {};
1236
- contents = de_DeleteSnapshotResponse(data, context);
1096
+ contents = _json(data);
1237
1097
  const response = {
1238
1098
  $metadata: deserializeMetadata(output),
1239
1099
  ...contents,
1240
1100
  };
1241
- return Promise.resolve(response);
1101
+ return response;
1242
1102
  };
1243
1103
  const de_DeleteSnapshotCommandError = async (output, context) => {
1244
1104
  const parsedOutput = {
@@ -1258,10 +1118,9 @@ const de_DeleteSnapshotCommandError = async (output, context) => {
1258
1118
  throw await de_SnapshotNotFoundRes(parsedOutput, context);
1259
1119
  default:
1260
1120
  const parsedBody = parsedOutput.body;
1261
- throwDefaultError({
1121
+ return throwDefaultError({
1262
1122
  output,
1263
1123
  parsedBody,
1264
- exceptionCtor: __BaseException,
1265
1124
  errorCode,
1266
1125
  });
1267
1126
  }
@@ -1272,12 +1131,12 @@ export const de_DeleteStorageVirtualMachineCommand = async (output, context) =>
1272
1131
  }
1273
1132
  const data = await parseBody(output.body, context);
1274
1133
  let contents = {};
1275
- contents = de_DeleteStorageVirtualMachineResponse(data, context);
1134
+ contents = _json(data);
1276
1135
  const response = {
1277
1136
  $metadata: deserializeMetadata(output),
1278
1137
  ...contents,
1279
1138
  };
1280
- return Promise.resolve(response);
1139
+ return response;
1281
1140
  };
1282
1141
  const de_DeleteStorageVirtualMachineCommandError = async (output, context) => {
1283
1142
  const parsedOutput = {
@@ -1300,10 +1159,9 @@ const de_DeleteStorageVirtualMachineCommandError = async (output, context) => {
1300
1159
  throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
1301
1160
  default:
1302
1161
  const parsedBody = parsedOutput.body;
1303
- throwDefaultError({
1162
+ return throwDefaultError({
1304
1163
  output,
1305
1164
  parsedBody,
1306
- exceptionCtor: __BaseException,
1307
1165
  errorCode,
1308
1166
  });
1309
1167
  }
@@ -1314,12 +1172,12 @@ export const de_DeleteVolumeCommand = async (output, context) => {
1314
1172
  }
1315
1173
  const data = await parseBody(output.body, context);
1316
1174
  let contents = {};
1317
- contents = de_DeleteVolumeResponse(data, context);
1175
+ contents = _json(data);
1318
1176
  const response = {
1319
1177
  $metadata: deserializeMetadata(output),
1320
1178
  ...contents,
1321
1179
  };
1322
- return Promise.resolve(response);
1180
+ return response;
1323
1181
  };
1324
1182
  const de_DeleteVolumeCommandError = async (output, context) => {
1325
1183
  const parsedOutput = {
@@ -1342,10 +1200,9 @@ const de_DeleteVolumeCommandError = async (output, context) => {
1342
1200
  throw await de_VolumeNotFoundRes(parsedOutput, context);
1343
1201
  default:
1344
1202
  const parsedBody = parsedOutput.body;
1345
- throwDefaultError({
1203
+ return throwDefaultError({
1346
1204
  output,
1347
1205
  parsedBody,
1348
- exceptionCtor: __BaseException,
1349
1206
  errorCode,
1350
1207
  });
1351
1208
  }
@@ -1361,7 +1218,7 @@ export const de_DescribeBackupsCommand = async (output, context) => {
1361
1218
  $metadata: deserializeMetadata(output),
1362
1219
  ...contents,
1363
1220
  };
1364
- return Promise.resolve(response);
1221
+ return response;
1365
1222
  };
1366
1223
  const de_DescribeBackupsCommandError = async (output, context) => {
1367
1224
  const parsedOutput = {
@@ -1387,10 +1244,9 @@ const de_DescribeBackupsCommandError = async (output, context) => {
1387
1244
  throw await de_VolumeNotFoundRes(parsedOutput, context);
1388
1245
  default:
1389
1246
  const parsedBody = parsedOutput.body;
1390
- throwDefaultError({
1247
+ return throwDefaultError({
1391
1248
  output,
1392
1249
  parsedBody,
1393
- exceptionCtor: __BaseException,
1394
1250
  errorCode,
1395
1251
  });
1396
1252
  }
@@ -1406,7 +1262,7 @@ export const de_DescribeDataRepositoryAssociationsCommand = async (output, conte
1406
1262
  $metadata: deserializeMetadata(output),
1407
1263
  ...contents,
1408
1264
  };
1409
- return Promise.resolve(response);
1265
+ return response;
1410
1266
  };
1411
1267
  const de_DescribeDataRepositoryAssociationsCommandError = async (output, context) => {
1412
1268
  const parsedOutput = {
@@ -1432,10 +1288,9 @@ const de_DescribeDataRepositoryAssociationsCommandError = async (output, context
1432
1288
  throw await de_InvalidDataRepositoryTypeRes(parsedOutput, context);
1433
1289
  default:
1434
1290
  const parsedBody = parsedOutput.body;
1435
- throwDefaultError({
1291
+ return throwDefaultError({
1436
1292
  output,
1437
1293
  parsedBody,
1438
- exceptionCtor: __BaseException,
1439
1294
  errorCode,
1440
1295
  });
1441
1296
  }
@@ -1451,7 +1306,7 @@ export const de_DescribeDataRepositoryTasksCommand = async (output, context) =>
1451
1306
  $metadata: deserializeMetadata(output),
1452
1307
  ...contents,
1453
1308
  };
1454
- return Promise.resolve(response);
1309
+ return response;
1455
1310
  };
1456
1311
  const de_DescribeDataRepositoryTasksCommandError = async (output, context) => {
1457
1312
  const parsedOutput = {
@@ -1474,10 +1329,9 @@ const de_DescribeDataRepositoryTasksCommandError = async (output, context) => {
1474
1329
  throw await de_InternalServerErrorRes(parsedOutput, context);
1475
1330
  default:
1476
1331
  const parsedBody = parsedOutput.body;
1477
- throwDefaultError({
1332
+ return throwDefaultError({
1478
1333
  output,
1479
1334
  parsedBody,
1480
- exceptionCtor: __BaseException,
1481
1335
  errorCode,
1482
1336
  });
1483
1337
  }
@@ -1493,7 +1347,7 @@ export const de_DescribeFileCachesCommand = async (output, context) => {
1493
1347
  $metadata: deserializeMetadata(output),
1494
1348
  ...contents,
1495
1349
  };
1496
- return Promise.resolve(response);
1350
+ return response;
1497
1351
  };
1498
1352
  const de_DescribeFileCachesCommandError = async (output, context) => {
1499
1353
  const parsedOutput = {
@@ -1513,10 +1367,9 @@ const de_DescribeFileCachesCommandError = async (output, context) => {
1513
1367
  throw await de_InternalServerErrorRes(parsedOutput, context);
1514
1368
  default:
1515
1369
  const parsedBody = parsedOutput.body;
1516
- throwDefaultError({
1370
+ return throwDefaultError({
1517
1371
  output,
1518
1372
  parsedBody,
1519
- exceptionCtor: __BaseException,
1520
1373
  errorCode,
1521
1374
  });
1522
1375
  }
@@ -1527,12 +1380,12 @@ export const de_DescribeFileSystemAliasesCommand = async (output, context) => {
1527
1380
  }
1528
1381
  const data = await parseBody(output.body, context);
1529
1382
  let contents = {};
1530
- contents = de_DescribeFileSystemAliasesResponse(data, context);
1383
+ contents = _json(data);
1531
1384
  const response = {
1532
1385
  $metadata: deserializeMetadata(output),
1533
1386
  ...contents,
1534
1387
  };
1535
- return Promise.resolve(response);
1388
+ return response;
1536
1389
  };
1537
1390
  const de_DescribeFileSystemAliasesCommandError = async (output, context) => {
1538
1391
  const parsedOutput = {
@@ -1552,10 +1405,9 @@ const de_DescribeFileSystemAliasesCommandError = async (output, context) => {
1552
1405
  throw await de_InternalServerErrorRes(parsedOutput, context);
1553
1406
  default:
1554
1407
  const parsedBody = parsedOutput.body;
1555
- throwDefaultError({
1408
+ return throwDefaultError({
1556
1409
  output,
1557
1410
  parsedBody,
1558
- exceptionCtor: __BaseException,
1559
1411
  errorCode,
1560
1412
  });
1561
1413
  }
@@ -1571,7 +1423,7 @@ export const de_DescribeFileSystemsCommand = async (output, context) => {
1571
1423
  $metadata: deserializeMetadata(output),
1572
1424
  ...contents,
1573
1425
  };
1574
- return Promise.resolve(response);
1426
+ return response;
1575
1427
  };
1576
1428
  const de_DescribeFileSystemsCommandError = async (output, context) => {
1577
1429
  const parsedOutput = {
@@ -1591,10 +1443,9 @@ const de_DescribeFileSystemsCommandError = async (output, context) => {
1591
1443
  throw await de_InternalServerErrorRes(parsedOutput, context);
1592
1444
  default:
1593
1445
  const parsedBody = parsedOutput.body;
1594
- throwDefaultError({
1446
+ return throwDefaultError({
1595
1447
  output,
1596
1448
  parsedBody,
1597
- exceptionCtor: __BaseException,
1598
1449
  errorCode,
1599
1450
  });
1600
1451
  }
@@ -1610,7 +1461,7 @@ export const de_DescribeSnapshotsCommand = async (output, context) => {
1610
1461
  $metadata: deserializeMetadata(output),
1611
1462
  ...contents,
1612
1463
  };
1613
- return Promise.resolve(response);
1464
+ return response;
1614
1465
  };
1615
1466
  const de_DescribeSnapshotsCommandError = async (output, context) => {
1616
1467
  const parsedOutput = {
@@ -1630,10 +1481,9 @@ const de_DescribeSnapshotsCommandError = async (output, context) => {
1630
1481
  throw await de_SnapshotNotFoundRes(parsedOutput, context);
1631
1482
  default:
1632
1483
  const parsedBody = parsedOutput.body;
1633
- throwDefaultError({
1484
+ return throwDefaultError({
1634
1485
  output,
1635
1486
  parsedBody,
1636
- exceptionCtor: __BaseException,
1637
1487
  errorCode,
1638
1488
  });
1639
1489
  }
@@ -1649,7 +1499,7 @@ export const de_DescribeStorageVirtualMachinesCommand = async (output, context)
1649
1499
  $metadata: deserializeMetadata(output),
1650
1500
  ...contents,
1651
1501
  };
1652
- return Promise.resolve(response);
1502
+ return response;
1653
1503
  };
1654
1504
  const de_DescribeStorageVirtualMachinesCommandError = async (output, context) => {
1655
1505
  const parsedOutput = {
@@ -1669,10 +1519,9 @@ const de_DescribeStorageVirtualMachinesCommandError = async (output, context) =>
1669
1519
  throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
1670
1520
  default:
1671
1521
  const parsedBody = parsedOutput.body;
1672
- throwDefaultError({
1522
+ return throwDefaultError({
1673
1523
  output,
1674
1524
  parsedBody,
1675
- exceptionCtor: __BaseException,
1676
1525
  errorCode,
1677
1526
  });
1678
1527
  }
@@ -1688,7 +1537,7 @@ export const de_DescribeVolumesCommand = async (output, context) => {
1688
1537
  $metadata: deserializeMetadata(output),
1689
1538
  ...contents,
1690
1539
  };
1691
- return Promise.resolve(response);
1540
+ return response;
1692
1541
  };
1693
1542
  const de_DescribeVolumesCommandError = async (output, context) => {
1694
1543
  const parsedOutput = {
@@ -1708,10 +1557,9 @@ const de_DescribeVolumesCommandError = async (output, context) => {
1708
1557
  throw await de_VolumeNotFoundRes(parsedOutput, context);
1709
1558
  default:
1710
1559
  const parsedBody = parsedOutput.body;
1711
- throwDefaultError({
1560
+ return throwDefaultError({
1712
1561
  output,
1713
1562
  parsedBody,
1714
- exceptionCtor: __BaseException,
1715
1563
  errorCode,
1716
1564
  });
1717
1565
  }
@@ -1722,12 +1570,12 @@ export const de_DisassociateFileSystemAliasesCommand = async (output, context) =
1722
1570
  }
1723
1571
  const data = await parseBody(output.body, context);
1724
1572
  let contents = {};
1725
- contents = de_DisassociateFileSystemAliasesResponse(data, context);
1573
+ contents = _json(data);
1726
1574
  const response = {
1727
1575
  $metadata: deserializeMetadata(output),
1728
1576
  ...contents,
1729
1577
  };
1730
- return Promise.resolve(response);
1578
+ return response;
1731
1579
  };
1732
1580
  const de_DisassociateFileSystemAliasesCommandError = async (output, context) => {
1733
1581
  const parsedOutput = {
@@ -1747,10 +1595,9 @@ const de_DisassociateFileSystemAliasesCommandError = async (output, context) =>
1747
1595
  throw await de_InternalServerErrorRes(parsedOutput, context);
1748
1596
  default:
1749
1597
  const parsedBody = parsedOutput.body;
1750
- throwDefaultError({
1598
+ return throwDefaultError({
1751
1599
  output,
1752
1600
  parsedBody,
1753
- exceptionCtor: __BaseException,
1754
1601
  errorCode,
1755
1602
  });
1756
1603
  }
@@ -1761,12 +1608,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1761
1608
  }
1762
1609
  const data = await parseBody(output.body, context);
1763
1610
  let contents = {};
1764
- contents = de_ListTagsForResourceResponse(data, context);
1611
+ contents = _json(data);
1765
1612
  const response = {
1766
1613
  $metadata: deserializeMetadata(output),
1767
1614
  ...contents,
1768
1615
  };
1769
- return Promise.resolve(response);
1616
+ return response;
1770
1617
  };
1771
1618
  const de_ListTagsForResourceCommandError = async (output, context) => {
1772
1619
  const parsedOutput = {
@@ -1792,10 +1639,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1792
1639
  throw await de_ResourceNotFoundRes(parsedOutput, context);
1793
1640
  default:
1794
1641
  const parsedBody = parsedOutput.body;
1795
- throwDefaultError({
1642
+ return throwDefaultError({
1796
1643
  output,
1797
1644
  parsedBody,
1798
- exceptionCtor: __BaseException,
1799
1645
  errorCode,
1800
1646
  });
1801
1647
  }
@@ -1811,7 +1657,7 @@ export const de_ReleaseFileSystemNfsV3LocksCommand = async (output, context) =>
1811
1657
  $metadata: deserializeMetadata(output),
1812
1658
  ...contents,
1813
1659
  };
1814
- return Promise.resolve(response);
1660
+ return response;
1815
1661
  };
1816
1662
  const de_ReleaseFileSystemNfsV3LocksCommandError = async (output, context) => {
1817
1663
  const parsedOutput = {
@@ -1837,10 +1683,9 @@ const de_ReleaseFileSystemNfsV3LocksCommandError = async (output, context) => {
1837
1683
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
1838
1684
  default:
1839
1685
  const parsedBody = parsedOutput.body;
1840
- throwDefaultError({
1686
+ return throwDefaultError({
1841
1687
  output,
1842
1688
  parsedBody,
1843
- exceptionCtor: __BaseException,
1844
1689
  errorCode,
1845
1690
  });
1846
1691
  }
@@ -1856,7 +1701,7 @@ export const de_RestoreVolumeFromSnapshotCommand = async (output, context) => {
1856
1701
  $metadata: deserializeMetadata(output),
1857
1702
  ...contents,
1858
1703
  };
1859
- return Promise.resolve(response);
1704
+ return response;
1860
1705
  };
1861
1706
  const de_RestoreVolumeFromSnapshotCommandError = async (output, context) => {
1862
1707
  const parsedOutput = {
@@ -1876,10 +1721,9 @@ const de_RestoreVolumeFromSnapshotCommandError = async (output, context) => {
1876
1721
  throw await de_VolumeNotFoundRes(parsedOutput, context);
1877
1722
  default:
1878
1723
  const parsedBody = parsedOutput.body;
1879
- throwDefaultError({
1724
+ return throwDefaultError({
1880
1725
  output,
1881
1726
  parsedBody,
1882
- exceptionCtor: __BaseException,
1883
1727
  errorCode,
1884
1728
  });
1885
1729
  }
@@ -1890,12 +1734,12 @@ export const de_TagResourceCommand = async (output, context) => {
1890
1734
  }
1891
1735
  const data = await parseBody(output.body, context);
1892
1736
  let contents = {};
1893
- contents = de_TagResourceResponse(data, context);
1737
+ contents = _json(data);
1894
1738
  const response = {
1895
1739
  $metadata: deserializeMetadata(output),
1896
1740
  ...contents,
1897
1741
  };
1898
- return Promise.resolve(response);
1742
+ return response;
1899
1743
  };
1900
1744
  const de_TagResourceCommandError = async (output, context) => {
1901
1745
  const parsedOutput = {
@@ -1921,10 +1765,9 @@ const de_TagResourceCommandError = async (output, context) => {
1921
1765
  throw await de_ResourceNotFoundRes(parsedOutput, context);
1922
1766
  default:
1923
1767
  const parsedBody = parsedOutput.body;
1924
- throwDefaultError({
1768
+ return throwDefaultError({
1925
1769
  output,
1926
1770
  parsedBody,
1927
- exceptionCtor: __BaseException,
1928
1771
  errorCode,
1929
1772
  });
1930
1773
  }
@@ -1935,12 +1778,12 @@ export const de_UntagResourceCommand = async (output, context) => {
1935
1778
  }
1936
1779
  const data = await parseBody(output.body, context);
1937
1780
  let contents = {};
1938
- contents = de_UntagResourceResponse(data, context);
1781
+ contents = _json(data);
1939
1782
  const response = {
1940
1783
  $metadata: deserializeMetadata(output),
1941
1784
  ...contents,
1942
1785
  };
1943
- return Promise.resolve(response);
1786
+ return response;
1944
1787
  };
1945
1788
  const de_UntagResourceCommandError = async (output, context) => {
1946
1789
  const parsedOutput = {
@@ -1966,10 +1809,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1966
1809
  throw await de_ResourceNotFoundRes(parsedOutput, context);
1967
1810
  default:
1968
1811
  const parsedBody = parsedOutput.body;
1969
- throwDefaultError({
1812
+ return throwDefaultError({
1970
1813
  output,
1971
1814
  parsedBody,
1972
- exceptionCtor: __BaseException,
1973
1815
  errorCode,
1974
1816
  });
1975
1817
  }
@@ -1985,7 +1827,7 @@ export const de_UpdateDataRepositoryAssociationCommand = async (output, context)
1985
1827
  $metadata: deserializeMetadata(output),
1986
1828
  ...contents,
1987
1829
  };
1988
- return Promise.resolve(response);
1830
+ return response;
1989
1831
  };
1990
1832
  const de_UpdateDataRepositoryAssociationCommandError = async (output, context) => {
1991
1833
  const parsedOutput = {
@@ -2011,10 +1853,9 @@ const de_UpdateDataRepositoryAssociationCommandError = async (output, context) =
2011
1853
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
2012
1854
  default:
2013
1855
  const parsedBody = parsedOutput.body;
2014
- throwDefaultError({
1856
+ return throwDefaultError({
2015
1857
  output,
2016
1858
  parsedBody,
2017
- exceptionCtor: __BaseException,
2018
1859
  errorCode,
2019
1860
  });
2020
1861
  }
@@ -2030,7 +1871,7 @@ export const de_UpdateFileCacheCommand = async (output, context) => {
2030
1871
  $metadata: deserializeMetadata(output),
2031
1872
  ...contents,
2032
1873
  };
2033
- return Promise.resolve(response);
1874
+ return response;
2034
1875
  };
2035
1876
  const de_UpdateFileCacheCommandError = async (output, context) => {
2036
1877
  const parsedOutput = {
@@ -2062,10 +1903,9 @@ const de_UpdateFileCacheCommandError = async (output, context) => {
2062
1903
  throw await de_UnsupportedOperationRes(parsedOutput, context);
2063
1904
  default:
2064
1905
  const parsedBody = parsedOutput.body;
2065
- throwDefaultError({
1906
+ return throwDefaultError({
2066
1907
  output,
2067
1908
  parsedBody,
2068
- exceptionCtor: __BaseException,
2069
1909
  errorCode,
2070
1910
  });
2071
1911
  }
@@ -2081,7 +1921,7 @@ export const de_UpdateFileSystemCommand = async (output, context) => {
2081
1921
  $metadata: deserializeMetadata(output),
2082
1922
  ...contents,
2083
1923
  };
2084
- return Promise.resolve(response);
1924
+ return response;
2085
1925
  };
2086
1926
  const de_UpdateFileSystemCommandError = async (output, context) => {
2087
1927
  const parsedOutput = {
@@ -2116,10 +1956,9 @@ const de_UpdateFileSystemCommandError = async (output, context) => {
2116
1956
  throw await de_UnsupportedOperationRes(parsedOutput, context);
2117
1957
  default:
2118
1958
  const parsedBody = parsedOutput.body;
2119
- throwDefaultError({
1959
+ return throwDefaultError({
2120
1960
  output,
2121
1961
  parsedBody,
2122
- exceptionCtor: __BaseException,
2123
1962
  errorCode,
2124
1963
  });
2125
1964
  }
@@ -2135,7 +1974,7 @@ export const de_UpdateSnapshotCommand = async (output, context) => {
2135
1974
  $metadata: deserializeMetadata(output),
2136
1975
  ...contents,
2137
1976
  };
2138
- return Promise.resolve(response);
1977
+ return response;
2139
1978
  };
2140
1979
  const de_UpdateSnapshotCommandError = async (output, context) => {
2141
1980
  const parsedOutput = {
@@ -2155,10 +1994,9 @@ const de_UpdateSnapshotCommandError = async (output, context) => {
2155
1994
  throw await de_SnapshotNotFoundRes(parsedOutput, context);
2156
1995
  default:
2157
1996
  const parsedBody = parsedOutput.body;
2158
- throwDefaultError({
1997
+ return throwDefaultError({
2159
1998
  output,
2160
1999
  parsedBody,
2161
- exceptionCtor: __BaseException,
2162
2000
  errorCode,
2163
2001
  });
2164
2002
  }
@@ -2174,7 +2012,7 @@ export const de_UpdateStorageVirtualMachineCommand = async (output, context) =>
2174
2012
  $metadata: deserializeMetadata(output),
2175
2013
  ...contents,
2176
2014
  };
2177
- return Promise.resolve(response);
2015
+ return response;
2178
2016
  };
2179
2017
  const de_UpdateStorageVirtualMachineCommandError = async (output, context) => {
2180
2018
  const parsedOutput = {
@@ -2200,10 +2038,9 @@ const de_UpdateStorageVirtualMachineCommandError = async (output, context) => {
2200
2038
  throw await de_UnsupportedOperationRes(parsedOutput, context);
2201
2039
  default:
2202
2040
  const parsedBody = parsedOutput.body;
2203
- throwDefaultError({
2041
+ return throwDefaultError({
2204
2042
  output,
2205
2043
  parsedBody,
2206
- exceptionCtor: __BaseException,
2207
2044
  errorCode,
2208
2045
  });
2209
2046
  }
@@ -2219,7 +2056,7 @@ export const de_UpdateVolumeCommand = async (output, context) => {
2219
2056
  $metadata: deserializeMetadata(output),
2220
2057
  ...contents,
2221
2058
  };
2222
- return Promise.resolve(response);
2059
+ return response;
2223
2060
  };
2224
2061
  const de_UpdateVolumeCommandError = async (output, context) => {
2225
2062
  const parsedOutput = {
@@ -2245,17 +2082,16 @@ const de_UpdateVolumeCommandError = async (output, context) => {
2245
2082
  throw await de_VolumeNotFoundRes(parsedOutput, context);
2246
2083
  default:
2247
2084
  const parsedBody = parsedOutput.body;
2248
- throwDefaultError({
2085
+ return throwDefaultError({
2249
2086
  output,
2250
2087
  parsedBody,
2251
- exceptionCtor: __BaseException,
2252
2088
  errorCode,
2253
2089
  });
2254
2090
  }
2255
2091
  };
2256
2092
  const de_ActiveDirectoryErrorRes = async (parsedOutput, context) => {
2257
2093
  const body = parsedOutput.body;
2258
- const deserialized = de_ActiveDirectoryError(body, context);
2094
+ const deserialized = _json(body);
2259
2095
  const exception = new ActiveDirectoryError({
2260
2096
  $metadata: deserializeMetadata(parsedOutput),
2261
2097
  ...deserialized,
@@ -2264,7 +2100,7 @@ const de_ActiveDirectoryErrorRes = async (parsedOutput, context) => {
2264
2100
  };
2265
2101
  const de_BackupBeingCopiedRes = async (parsedOutput, context) => {
2266
2102
  const body = parsedOutput.body;
2267
- const deserialized = de_BackupBeingCopied(body, context);
2103
+ const deserialized = _json(body);
2268
2104
  const exception = new BackupBeingCopied({
2269
2105
  $metadata: deserializeMetadata(parsedOutput),
2270
2106
  ...deserialized,
@@ -2273,7 +2109,7 @@ const de_BackupBeingCopiedRes = async (parsedOutput, context) => {
2273
2109
  };
2274
2110
  const de_BackupInProgressRes = async (parsedOutput, context) => {
2275
2111
  const body = parsedOutput.body;
2276
- const deserialized = de_BackupInProgress(body, context);
2112
+ const deserialized = _json(body);
2277
2113
  const exception = new BackupInProgress({
2278
2114
  $metadata: deserializeMetadata(parsedOutput),
2279
2115
  ...deserialized,
@@ -2282,7 +2118,7 @@ const de_BackupInProgressRes = async (parsedOutput, context) => {
2282
2118
  };
2283
2119
  const de_BackupNotFoundRes = async (parsedOutput, context) => {
2284
2120
  const body = parsedOutput.body;
2285
- const deserialized = de_BackupNotFound(body, context);
2121
+ const deserialized = _json(body);
2286
2122
  const exception = new BackupNotFound({
2287
2123
  $metadata: deserializeMetadata(parsedOutput),
2288
2124
  ...deserialized,
@@ -2291,7 +2127,7 @@ const de_BackupNotFoundRes = async (parsedOutput, context) => {
2291
2127
  };
2292
2128
  const de_BackupRestoringRes = async (parsedOutput, context) => {
2293
2129
  const body = parsedOutput.body;
2294
- const deserialized = de_BackupRestoring(body, context);
2130
+ const deserialized = _json(body);
2295
2131
  const exception = new BackupRestoring({
2296
2132
  $metadata: deserializeMetadata(parsedOutput),
2297
2133
  ...deserialized,
@@ -2300,7 +2136,7 @@ const de_BackupRestoringRes = async (parsedOutput, context) => {
2300
2136
  };
2301
2137
  const de_BadRequestRes = async (parsedOutput, context) => {
2302
2138
  const body = parsedOutput.body;
2303
- const deserialized = de_BadRequest(body, context);
2139
+ const deserialized = _json(body);
2304
2140
  const exception = new BadRequest({
2305
2141
  $metadata: deserializeMetadata(parsedOutput),
2306
2142
  ...deserialized,
@@ -2309,7 +2145,7 @@ const de_BadRequestRes = async (parsedOutput, context) => {
2309
2145
  };
2310
2146
  const de_DataRepositoryAssociationNotFoundRes = async (parsedOutput, context) => {
2311
2147
  const body = parsedOutput.body;
2312
- const deserialized = de_DataRepositoryAssociationNotFound(body, context);
2148
+ const deserialized = _json(body);
2313
2149
  const exception = new DataRepositoryAssociationNotFound({
2314
2150
  $metadata: deserializeMetadata(parsedOutput),
2315
2151
  ...deserialized,
@@ -2318,7 +2154,7 @@ const de_DataRepositoryAssociationNotFoundRes = async (parsedOutput, context) =>
2318
2154
  };
2319
2155
  const de_DataRepositoryTaskEndedRes = async (parsedOutput, context) => {
2320
2156
  const body = parsedOutput.body;
2321
- const deserialized = de_DataRepositoryTaskEnded(body, context);
2157
+ const deserialized = _json(body);
2322
2158
  const exception = new DataRepositoryTaskEnded({
2323
2159
  $metadata: deserializeMetadata(parsedOutput),
2324
2160
  ...deserialized,
@@ -2327,7 +2163,7 @@ const de_DataRepositoryTaskEndedRes = async (parsedOutput, context) => {
2327
2163
  };
2328
2164
  const de_DataRepositoryTaskExecutingRes = async (parsedOutput, context) => {
2329
2165
  const body = parsedOutput.body;
2330
- const deserialized = de_DataRepositoryTaskExecuting(body, context);
2166
+ const deserialized = _json(body);
2331
2167
  const exception = new DataRepositoryTaskExecuting({
2332
2168
  $metadata: deserializeMetadata(parsedOutput),
2333
2169
  ...deserialized,
@@ -2336,7 +2172,7 @@ const de_DataRepositoryTaskExecutingRes = async (parsedOutput, context) => {
2336
2172
  };
2337
2173
  const de_DataRepositoryTaskNotFoundRes = async (parsedOutput, context) => {
2338
2174
  const body = parsedOutput.body;
2339
- const deserialized = de_DataRepositoryTaskNotFound(body, context);
2175
+ const deserialized = _json(body);
2340
2176
  const exception = new DataRepositoryTaskNotFound({
2341
2177
  $metadata: deserializeMetadata(parsedOutput),
2342
2178
  ...deserialized,
@@ -2345,7 +2181,7 @@ const de_DataRepositoryTaskNotFoundRes = async (parsedOutput, context) => {
2345
2181
  };
2346
2182
  const de_FileCacheNotFoundRes = async (parsedOutput, context) => {
2347
2183
  const body = parsedOutput.body;
2348
- const deserialized = de_FileCacheNotFound(body, context);
2184
+ const deserialized = _json(body);
2349
2185
  const exception = new FileCacheNotFound({
2350
2186
  $metadata: deserializeMetadata(parsedOutput),
2351
2187
  ...deserialized,
@@ -2354,7 +2190,7 @@ const de_FileCacheNotFoundRes = async (parsedOutput, context) => {
2354
2190
  };
2355
2191
  const de_FileSystemNotFoundRes = async (parsedOutput, context) => {
2356
2192
  const body = parsedOutput.body;
2357
- const deserialized = de_FileSystemNotFound(body, context);
2193
+ const deserialized = _json(body);
2358
2194
  const exception = new FileSystemNotFound({
2359
2195
  $metadata: deserializeMetadata(parsedOutput),
2360
2196
  ...deserialized,
@@ -2363,7 +2199,7 @@ const de_FileSystemNotFoundRes = async (parsedOutput, context) => {
2363
2199
  };
2364
2200
  const de_IncompatibleParameterErrorRes = async (parsedOutput, context) => {
2365
2201
  const body = parsedOutput.body;
2366
- const deserialized = de_IncompatibleParameterError(body, context);
2202
+ const deserialized = _json(body);
2367
2203
  const exception = new IncompatibleParameterError({
2368
2204
  $metadata: deserializeMetadata(parsedOutput),
2369
2205
  ...deserialized,
@@ -2372,7 +2208,7 @@ const de_IncompatibleParameterErrorRes = async (parsedOutput, context) => {
2372
2208
  };
2373
2209
  const de_IncompatibleRegionForMultiAZRes = async (parsedOutput, context) => {
2374
2210
  const body = parsedOutput.body;
2375
- const deserialized = de_IncompatibleRegionForMultiAZ(body, context);
2211
+ const deserialized = _json(body);
2376
2212
  const exception = new IncompatibleRegionForMultiAZ({
2377
2213
  $metadata: deserializeMetadata(parsedOutput),
2378
2214
  ...deserialized,
@@ -2381,7 +2217,7 @@ const de_IncompatibleRegionForMultiAZRes = async (parsedOutput, context) => {
2381
2217
  };
2382
2218
  const de_InternalServerErrorRes = async (parsedOutput, context) => {
2383
2219
  const body = parsedOutput.body;
2384
- const deserialized = de_InternalServerError(body, context);
2220
+ const deserialized = _json(body);
2385
2221
  const exception = new InternalServerError({
2386
2222
  $metadata: deserializeMetadata(parsedOutput),
2387
2223
  ...deserialized,
@@ -2390,7 +2226,7 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
2390
2226
  };
2391
2227
  const de_InvalidDataRepositoryTypeRes = async (parsedOutput, context) => {
2392
2228
  const body = parsedOutput.body;
2393
- const deserialized = de_InvalidDataRepositoryType(body, context);
2229
+ const deserialized = _json(body);
2394
2230
  const exception = new InvalidDataRepositoryType({
2395
2231
  $metadata: deserializeMetadata(parsedOutput),
2396
2232
  ...deserialized,
@@ -2399,7 +2235,7 @@ const de_InvalidDataRepositoryTypeRes = async (parsedOutput, context) => {
2399
2235
  };
2400
2236
  const de_InvalidDestinationKmsKeyRes = async (parsedOutput, context) => {
2401
2237
  const body = parsedOutput.body;
2402
- const deserialized = de_InvalidDestinationKmsKey(body, context);
2238
+ const deserialized = _json(body);
2403
2239
  const exception = new InvalidDestinationKmsKey({
2404
2240
  $metadata: deserializeMetadata(parsedOutput),
2405
2241
  ...deserialized,
@@ -2408,7 +2244,7 @@ const de_InvalidDestinationKmsKeyRes = async (parsedOutput, context) => {
2408
2244
  };
2409
2245
  const de_InvalidExportPathRes = async (parsedOutput, context) => {
2410
2246
  const body = parsedOutput.body;
2411
- const deserialized = de_InvalidExportPath(body, context);
2247
+ const deserialized = _json(body);
2412
2248
  const exception = new InvalidExportPath({
2413
2249
  $metadata: deserializeMetadata(parsedOutput),
2414
2250
  ...deserialized,
@@ -2417,7 +2253,7 @@ const de_InvalidExportPathRes = async (parsedOutput, context) => {
2417
2253
  };
2418
2254
  const de_InvalidImportPathRes = async (parsedOutput, context) => {
2419
2255
  const body = parsedOutput.body;
2420
- const deserialized = de_InvalidImportPath(body, context);
2256
+ const deserialized = _json(body);
2421
2257
  const exception = new InvalidImportPath({
2422
2258
  $metadata: deserializeMetadata(parsedOutput),
2423
2259
  ...deserialized,
@@ -2426,7 +2262,7 @@ const de_InvalidImportPathRes = async (parsedOutput, context) => {
2426
2262
  };
2427
2263
  const de_InvalidNetworkSettingsRes = async (parsedOutput, context) => {
2428
2264
  const body = parsedOutput.body;
2429
- const deserialized = de_InvalidNetworkSettings(body, context);
2265
+ const deserialized = _json(body);
2430
2266
  const exception = new InvalidNetworkSettings({
2431
2267
  $metadata: deserializeMetadata(parsedOutput),
2432
2268
  ...deserialized,
@@ -2435,7 +2271,7 @@ const de_InvalidNetworkSettingsRes = async (parsedOutput, context) => {
2435
2271
  };
2436
2272
  const de_InvalidPerUnitStorageThroughputRes = async (parsedOutput, context) => {
2437
2273
  const body = parsedOutput.body;
2438
- const deserialized = de_InvalidPerUnitStorageThroughput(body, context);
2274
+ const deserialized = _json(body);
2439
2275
  const exception = new InvalidPerUnitStorageThroughput({
2440
2276
  $metadata: deserializeMetadata(parsedOutput),
2441
2277
  ...deserialized,
@@ -2444,7 +2280,7 @@ const de_InvalidPerUnitStorageThroughputRes = async (parsedOutput, context) => {
2444
2280
  };
2445
2281
  const de_InvalidRegionRes = async (parsedOutput, context) => {
2446
2282
  const body = parsedOutput.body;
2447
- const deserialized = de_InvalidRegion(body, context);
2283
+ const deserialized = _json(body);
2448
2284
  const exception = new InvalidRegion({
2449
2285
  $metadata: deserializeMetadata(parsedOutput),
2450
2286
  ...deserialized,
@@ -2453,7 +2289,7 @@ const de_InvalidRegionRes = async (parsedOutput, context) => {
2453
2289
  };
2454
2290
  const de_InvalidSourceKmsKeyRes = async (parsedOutput, context) => {
2455
2291
  const body = parsedOutput.body;
2456
- const deserialized = de_InvalidSourceKmsKey(body, context);
2292
+ const deserialized = _json(body);
2457
2293
  const exception = new InvalidSourceKmsKey({
2458
2294
  $metadata: deserializeMetadata(parsedOutput),
2459
2295
  ...deserialized,
@@ -2462,7 +2298,7 @@ const de_InvalidSourceKmsKeyRes = async (parsedOutput, context) => {
2462
2298
  };
2463
2299
  const de_MissingFileCacheConfigurationRes = async (parsedOutput, context) => {
2464
2300
  const body = parsedOutput.body;
2465
- const deserialized = de_MissingFileCacheConfiguration(body, context);
2301
+ const deserialized = _json(body);
2466
2302
  const exception = new MissingFileCacheConfiguration({
2467
2303
  $metadata: deserializeMetadata(parsedOutput),
2468
2304
  ...deserialized,
@@ -2471,7 +2307,7 @@ const de_MissingFileCacheConfigurationRes = async (parsedOutput, context) => {
2471
2307
  };
2472
2308
  const de_MissingFileSystemConfigurationRes = async (parsedOutput, context) => {
2473
2309
  const body = parsedOutput.body;
2474
- const deserialized = de_MissingFileSystemConfiguration(body, context);
2310
+ const deserialized = _json(body);
2475
2311
  const exception = new MissingFileSystemConfiguration({
2476
2312
  $metadata: deserializeMetadata(parsedOutput),
2477
2313
  ...deserialized,
@@ -2480,7 +2316,7 @@ const de_MissingFileSystemConfigurationRes = async (parsedOutput, context) => {
2480
2316
  };
2481
2317
  const de_MissingVolumeConfigurationRes = async (parsedOutput, context) => {
2482
2318
  const body = parsedOutput.body;
2483
- const deserialized = de_MissingVolumeConfiguration(body, context);
2319
+ const deserialized = _json(body);
2484
2320
  const exception = new MissingVolumeConfiguration({
2485
2321
  $metadata: deserializeMetadata(parsedOutput),
2486
2322
  ...deserialized,
@@ -2489,7 +2325,7 @@ const de_MissingVolumeConfigurationRes = async (parsedOutput, context) => {
2489
2325
  };
2490
2326
  const de_NotServiceResourceErrorRes = async (parsedOutput, context) => {
2491
2327
  const body = parsedOutput.body;
2492
- const deserialized = de_NotServiceResourceError(body, context);
2328
+ const deserialized = _json(body);
2493
2329
  const exception = new NotServiceResourceError({
2494
2330
  $metadata: deserializeMetadata(parsedOutput),
2495
2331
  ...deserialized,
@@ -2498,7 +2334,7 @@ const de_NotServiceResourceErrorRes = async (parsedOutput, context) => {
2498
2334
  };
2499
2335
  const de_ResourceDoesNotSupportTaggingRes = async (parsedOutput, context) => {
2500
2336
  const body = parsedOutput.body;
2501
- const deserialized = de_ResourceDoesNotSupportTagging(body, context);
2337
+ const deserialized = _json(body);
2502
2338
  const exception = new ResourceDoesNotSupportTagging({
2503
2339
  $metadata: deserializeMetadata(parsedOutput),
2504
2340
  ...deserialized,
@@ -2507,7 +2343,7 @@ const de_ResourceDoesNotSupportTaggingRes = async (parsedOutput, context) => {
2507
2343
  };
2508
2344
  const de_ResourceNotFoundRes = async (parsedOutput, context) => {
2509
2345
  const body = parsedOutput.body;
2510
- const deserialized = de_ResourceNotFound(body, context);
2346
+ const deserialized = _json(body);
2511
2347
  const exception = new ResourceNotFound({
2512
2348
  $metadata: deserializeMetadata(parsedOutput),
2513
2349
  ...deserialized,
@@ -2516,7 +2352,7 @@ const de_ResourceNotFoundRes = async (parsedOutput, context) => {
2516
2352
  };
2517
2353
  const de_ServiceLimitExceededRes = async (parsedOutput, context) => {
2518
2354
  const body = parsedOutput.body;
2519
- const deserialized = de_ServiceLimitExceeded(body, context);
2355
+ const deserialized = _json(body);
2520
2356
  const exception = new ServiceLimitExceeded({
2521
2357
  $metadata: deserializeMetadata(parsedOutput),
2522
2358
  ...deserialized,
@@ -2525,7 +2361,7 @@ const de_ServiceLimitExceededRes = async (parsedOutput, context) => {
2525
2361
  };
2526
2362
  const de_SnapshotNotFoundRes = async (parsedOutput, context) => {
2527
2363
  const body = parsedOutput.body;
2528
- const deserialized = de_SnapshotNotFound(body, context);
2364
+ const deserialized = _json(body);
2529
2365
  const exception = new SnapshotNotFound({
2530
2366
  $metadata: deserializeMetadata(parsedOutput),
2531
2367
  ...deserialized,
@@ -2534,7 +2370,7 @@ const de_SnapshotNotFoundRes = async (parsedOutput, context) => {
2534
2370
  };
2535
2371
  const de_SourceBackupUnavailableRes = async (parsedOutput, context) => {
2536
2372
  const body = parsedOutput.body;
2537
- const deserialized = de_SourceBackupUnavailable(body, context);
2373
+ const deserialized = _json(body);
2538
2374
  const exception = new SourceBackupUnavailable({
2539
2375
  $metadata: deserializeMetadata(parsedOutput),
2540
2376
  ...deserialized,
@@ -2543,7 +2379,7 @@ const de_SourceBackupUnavailableRes = async (parsedOutput, context) => {
2543
2379
  };
2544
2380
  const de_StorageVirtualMachineNotFoundRes = async (parsedOutput, context) => {
2545
2381
  const body = parsedOutput.body;
2546
- const deserialized = de_StorageVirtualMachineNotFound(body, context);
2382
+ const deserialized = _json(body);
2547
2383
  const exception = new StorageVirtualMachineNotFound({
2548
2384
  $metadata: deserializeMetadata(parsedOutput),
2549
2385
  ...deserialized,
@@ -2552,7 +2388,7 @@ const de_StorageVirtualMachineNotFoundRes = async (parsedOutput, context) => {
2552
2388
  };
2553
2389
  const de_UnsupportedOperationRes = async (parsedOutput, context) => {
2554
2390
  const body = parsedOutput.body;
2555
- const deserialized = de_UnsupportedOperation(body, context);
2391
+ const deserialized = _json(body);
2556
2392
  const exception = new UnsupportedOperation({
2557
2393
  $metadata: deserializeMetadata(parsedOutput),
2558
2394
  ...deserialized,
@@ -2561,2457 +2397,684 @@ const de_UnsupportedOperationRes = async (parsedOutput, context) => {
2561
2397
  };
2562
2398
  const de_VolumeNotFoundRes = async (parsedOutput, context) => {
2563
2399
  const body = parsedOutput.body;
2564
- const deserialized = de_VolumeNotFound(body, context);
2400
+ const deserialized = _json(body);
2565
2401
  const exception = new VolumeNotFound({
2566
2402
  $metadata: deserializeMetadata(parsedOutput),
2567
2403
  ...deserialized,
2568
2404
  });
2569
2405
  return __decorateServiceException(exception, body);
2570
2406
  };
2571
- const se_AlternateDNSNames = (input, context) => {
2572
- return input
2573
- .filter((e) => e != null)
2574
- .map((entry) => {
2575
- return entry;
2576
- });
2577
- };
2578
2407
  const se_AssociateFileSystemAliasesRequest = (input, context) => {
2579
- return {
2580
- ...(input.Aliases != null && { Aliases: se_AlternateDNSNames(input.Aliases, context) }),
2581
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2582
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
2583
- };
2584
- };
2585
- const se_AutoExportPolicy = (input, context) => {
2586
- return {
2587
- ...(input.Events != null && { Events: se_EventTypes(input.Events, context) }),
2588
- };
2589
- };
2590
- const se_AutoImportPolicy = (input, context) => {
2591
- return {
2592
- ...(input.Events != null && { Events: se_EventTypes(input.Events, context) }),
2593
- };
2594
- };
2595
- const se_BackupIds = (input, context) => {
2596
- return input
2597
- .filter((e) => e != null)
2598
- .map((entry) => {
2599
- return entry;
2408
+ return take(input, {
2409
+ Aliases: _json,
2410
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2411
+ FileSystemId: [],
2600
2412
  });
2601
2413
  };
2602
- const se_CancelDataRepositoryTaskRequest = (input, context) => {
2603
- return {
2604
- ...(input.TaskId != null && { TaskId: input.TaskId }),
2605
- };
2606
- };
2607
- const se_CompletionReport = (input, context) => {
2608
- return {
2609
- ...(input.Enabled != null && { Enabled: input.Enabled }),
2610
- ...(input.Format != null && { Format: input.Format }),
2611
- ...(input.Path != null && { Path: input.Path }),
2612
- ...(input.Scope != null && { Scope: input.Scope }),
2613
- };
2614
- };
2615
2414
  const se_CopyBackupRequest = (input, context) => {
2616
- return {
2617
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2618
- ...(input.CopyTags != null && { CopyTags: input.CopyTags }),
2619
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
2620
- ...(input.SourceBackupId != null && { SourceBackupId: input.SourceBackupId }),
2621
- ...(input.SourceRegion != null && { SourceRegion: input.SourceRegion }),
2622
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2623
- };
2415
+ return take(input, {
2416
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2417
+ CopyTags: [],
2418
+ KmsKeyId: [],
2419
+ SourceBackupId: [],
2420
+ SourceRegion: [],
2421
+ Tags: _json,
2422
+ });
2624
2423
  };
2625
2424
  const se_CreateBackupRequest = (input, context) => {
2626
- return {
2627
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2628
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
2629
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2630
- ...(input.VolumeId != null && { VolumeId: input.VolumeId }),
2631
- };
2425
+ return take(input, {
2426
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2427
+ FileSystemId: [],
2428
+ Tags: _json,
2429
+ VolumeId: [],
2430
+ });
2632
2431
  };
2633
2432
  const se_CreateDataRepositoryAssociationRequest = (input, context) => {
2634
- return {
2635
- ...(input.BatchImportMetaDataOnCreate != null && {
2636
- BatchImportMetaDataOnCreate: input.BatchImportMetaDataOnCreate,
2637
- }),
2638
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2639
- ...(input.DataRepositoryPath != null && { DataRepositoryPath: input.DataRepositoryPath }),
2640
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
2641
- ...(input.FileSystemPath != null && { FileSystemPath: input.FileSystemPath }),
2642
- ...(input.ImportedFileChunkSize != null && { ImportedFileChunkSize: input.ImportedFileChunkSize }),
2643
- ...(input.S3 != null && { S3: se_S3DataRepositoryConfiguration(input.S3, context) }),
2644
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2645
- };
2433
+ return take(input, {
2434
+ BatchImportMetaDataOnCreate: [],
2435
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2436
+ DataRepositoryPath: [],
2437
+ FileSystemId: [],
2438
+ FileSystemPath: [],
2439
+ ImportedFileChunkSize: [],
2440
+ S3: _json,
2441
+ Tags: _json,
2442
+ });
2646
2443
  };
2647
2444
  const se_CreateDataRepositoryTaskRequest = (input, context) => {
2648
- return {
2649
- ...(input.CapacityToRelease != null && { CapacityToRelease: input.CapacityToRelease }),
2650
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2651
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
2652
- ...(input.Paths != null && { Paths: se_DataRepositoryTaskPaths(input.Paths, context) }),
2653
- ...(input.Report != null && { Report: se_CompletionReport(input.Report, context) }),
2654
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2655
- ...(input.Type != null && { Type: input.Type }),
2656
- };
2657
- };
2658
- const se_CreateFileCacheDataRepositoryAssociations = (input, context) => {
2659
- return input
2660
- .filter((e) => e != null)
2661
- .map((entry) => {
2662
- return se_FileCacheDataRepositoryAssociation(entry, context);
2445
+ return take(input, {
2446
+ CapacityToRelease: [],
2447
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2448
+ FileSystemId: [],
2449
+ Paths: _json,
2450
+ Report: _json,
2451
+ Tags: _json,
2452
+ Type: [],
2663
2453
  });
2664
2454
  };
2665
- const se_CreateFileCacheLustreConfiguration = (input, context) => {
2666
- return {
2667
- ...(input.DeploymentType != null && { DeploymentType: input.DeploymentType }),
2668
- ...(input.MetadataConfiguration != null && {
2669
- MetadataConfiguration: se_FileCacheLustreMetadataConfiguration(input.MetadataConfiguration, context),
2670
- }),
2671
- ...(input.PerUnitStorageThroughput != null && { PerUnitStorageThroughput: input.PerUnitStorageThroughput }),
2672
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
2673
- };
2674
- };
2675
2455
  const se_CreateFileCacheRequest = (input, context) => {
2676
- return {
2677
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2678
- ...(input.CopyTagsToDataRepositoryAssociations != null && {
2679
- CopyTagsToDataRepositoryAssociations: input.CopyTagsToDataRepositoryAssociations,
2680
- }),
2681
- ...(input.DataRepositoryAssociations != null && {
2682
- DataRepositoryAssociations: se_CreateFileCacheDataRepositoryAssociations(input.DataRepositoryAssociations, context),
2683
- }),
2684
- ...(input.FileCacheType != null && { FileCacheType: input.FileCacheType }),
2685
- ...(input.FileCacheTypeVersion != null && { FileCacheTypeVersion: input.FileCacheTypeVersion }),
2686
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
2687
- ...(input.LustreConfiguration != null && {
2688
- LustreConfiguration: se_CreateFileCacheLustreConfiguration(input.LustreConfiguration, context),
2689
- }),
2690
- ...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupIds(input.SecurityGroupIds, context) }),
2691
- ...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
2692
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
2693
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2694
- };
2456
+ return take(input, {
2457
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2458
+ CopyTagsToDataRepositoryAssociations: [],
2459
+ DataRepositoryAssociations: _json,
2460
+ FileCacheType: [],
2461
+ FileCacheTypeVersion: [],
2462
+ KmsKeyId: [],
2463
+ LustreConfiguration: _json,
2464
+ SecurityGroupIds: _json,
2465
+ StorageCapacity: [],
2466
+ SubnetIds: _json,
2467
+ Tags: _json,
2468
+ });
2695
2469
  };
2696
2470
  const se_CreateFileSystemFromBackupRequest = (input, context) => {
2697
- return {
2698
- ...(input.BackupId != null && { BackupId: input.BackupId }),
2699
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2700
- ...(input.FileSystemTypeVersion != null && { FileSystemTypeVersion: input.FileSystemTypeVersion }),
2701
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
2702
- ...(input.LustreConfiguration != null && {
2703
- LustreConfiguration: se_CreateFileSystemLustreConfiguration(input.LustreConfiguration, context),
2704
- }),
2705
- ...(input.OpenZFSConfiguration != null && {
2706
- OpenZFSConfiguration: se_CreateFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
2707
- }),
2708
- ...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupIds(input.SecurityGroupIds, context) }),
2709
- ...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
2710
- ...(input.StorageType != null && { StorageType: input.StorageType }),
2711
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
2712
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2713
- ...(input.WindowsConfiguration != null && {
2714
- WindowsConfiguration: se_CreateFileSystemWindowsConfiguration(input.WindowsConfiguration, context),
2715
- }),
2716
- };
2471
+ return take(input, {
2472
+ BackupId: [],
2473
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2474
+ FileSystemTypeVersion: [],
2475
+ KmsKeyId: [],
2476
+ LustreConfiguration: _json,
2477
+ OpenZFSConfiguration: _json,
2478
+ SecurityGroupIds: _json,
2479
+ StorageCapacity: [],
2480
+ StorageType: [],
2481
+ SubnetIds: _json,
2482
+ Tags: _json,
2483
+ WindowsConfiguration: _json,
2484
+ });
2717
2485
  };
2718
- const se_CreateFileSystemLustreConfiguration = (input, context) => {
2719
- return {
2720
- ...(input.AutoImportPolicy != null && { AutoImportPolicy: input.AutoImportPolicy }),
2721
- ...(input.AutomaticBackupRetentionDays != null && {
2722
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
2723
- }),
2724
- ...(input.CopyTagsToBackups != null && { CopyTagsToBackups: input.CopyTagsToBackups }),
2725
- ...(input.DailyAutomaticBackupStartTime != null && {
2726
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
2727
- }),
2728
- ...(input.DataCompressionType != null && { DataCompressionType: input.DataCompressionType }),
2729
- ...(input.DeploymentType != null && { DeploymentType: input.DeploymentType }),
2730
- ...(input.DriveCacheType != null && { DriveCacheType: input.DriveCacheType }),
2731
- ...(input.ExportPath != null && { ExportPath: input.ExportPath }),
2732
- ...(input.ImportPath != null && { ImportPath: input.ImportPath }),
2733
- ...(input.ImportedFileChunkSize != null && { ImportedFileChunkSize: input.ImportedFileChunkSize }),
2734
- ...(input.LogConfiguration != null && {
2735
- LogConfiguration: se_LustreLogCreateConfiguration(input.LogConfiguration, context),
2736
- }),
2737
- ...(input.PerUnitStorageThroughput != null && { PerUnitStorageThroughput: input.PerUnitStorageThroughput }),
2738
- ...(input.RootSquashConfiguration != null && {
2739
- RootSquashConfiguration: se_LustreRootSquashConfiguration(input.RootSquashConfiguration, context),
2740
- }),
2741
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
2742
- };
2486
+ const se_CreateFileSystemRequest = (input, context) => {
2487
+ return take(input, {
2488
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2489
+ FileSystemType: [],
2490
+ FileSystemTypeVersion: [],
2491
+ KmsKeyId: [],
2492
+ LustreConfiguration: _json,
2493
+ OntapConfiguration: _json,
2494
+ OpenZFSConfiguration: _json,
2495
+ SecurityGroupIds: _json,
2496
+ StorageCapacity: [],
2497
+ StorageType: [],
2498
+ SubnetIds: _json,
2499
+ Tags: _json,
2500
+ WindowsConfiguration: _json,
2501
+ });
2743
2502
  };
2744
- const se_CreateFileSystemOntapConfiguration = (input, context) => {
2745
- return {
2746
- ...(input.AutomaticBackupRetentionDays != null && {
2747
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
2748
- }),
2749
- ...(input.DailyAutomaticBackupStartTime != null && {
2750
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
2751
- }),
2752
- ...(input.DeploymentType != null && { DeploymentType: input.DeploymentType }),
2753
- ...(input.DiskIopsConfiguration != null && {
2754
- DiskIopsConfiguration: se_DiskIopsConfiguration(input.DiskIopsConfiguration, context),
2755
- }),
2756
- ...(input.EndpointIpAddressRange != null && { EndpointIpAddressRange: input.EndpointIpAddressRange }),
2757
- ...(input.FsxAdminPassword != null && { FsxAdminPassword: input.FsxAdminPassword }),
2758
- ...(input.PreferredSubnetId != null && { PreferredSubnetId: input.PreferredSubnetId }),
2759
- ...(input.RouteTableIds != null && { RouteTableIds: se_RouteTableIds(input.RouteTableIds, context) }),
2760
- ...(input.ThroughputCapacity != null && { ThroughputCapacity: input.ThroughputCapacity }),
2761
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
2762
- };
2503
+ const se_CreateSnapshotRequest = (input, context) => {
2504
+ return take(input, {
2505
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2506
+ Name: [],
2507
+ Tags: _json,
2508
+ VolumeId: [],
2509
+ });
2763
2510
  };
2764
- const se_CreateFileSystemOpenZFSConfiguration = (input, context) => {
2765
- return {
2766
- ...(input.AutomaticBackupRetentionDays != null && {
2767
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
2768
- }),
2769
- ...(input.CopyTagsToBackups != null && { CopyTagsToBackups: input.CopyTagsToBackups }),
2770
- ...(input.CopyTagsToVolumes != null && { CopyTagsToVolumes: input.CopyTagsToVolumes }),
2771
- ...(input.DailyAutomaticBackupStartTime != null && {
2772
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
2773
- }),
2774
- ...(input.DeploymentType != null && { DeploymentType: input.DeploymentType }),
2775
- ...(input.DiskIopsConfiguration != null && {
2776
- DiskIopsConfiguration: se_DiskIopsConfiguration(input.DiskIopsConfiguration, context),
2777
- }),
2778
- ...(input.RootVolumeConfiguration != null && {
2779
- RootVolumeConfiguration: se_OpenZFSCreateRootVolumeConfiguration(input.RootVolumeConfiguration, context),
2780
- }),
2781
- ...(input.ThroughputCapacity != null && { ThroughputCapacity: input.ThroughputCapacity }),
2782
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
2783
- };
2511
+ const se_CreateStorageVirtualMachineRequest = (input, context) => {
2512
+ return take(input, {
2513
+ ActiveDirectoryConfiguration: _json,
2514
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2515
+ FileSystemId: [],
2516
+ Name: [],
2517
+ RootVolumeSecurityStyle: [],
2518
+ SvmAdminPassword: [],
2519
+ Tags: _json,
2520
+ });
2784
2521
  };
2785
- const se_CreateFileSystemRequest = (input, context) => {
2786
- return {
2787
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2788
- ...(input.FileSystemType != null && { FileSystemType: input.FileSystemType }),
2789
- ...(input.FileSystemTypeVersion != null && { FileSystemTypeVersion: input.FileSystemTypeVersion }),
2790
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
2791
- ...(input.LustreConfiguration != null && {
2792
- LustreConfiguration: se_CreateFileSystemLustreConfiguration(input.LustreConfiguration, context),
2793
- }),
2794
- ...(input.OntapConfiguration != null && {
2795
- OntapConfiguration: se_CreateFileSystemOntapConfiguration(input.OntapConfiguration, context),
2796
- }),
2797
- ...(input.OpenZFSConfiguration != null && {
2798
- OpenZFSConfiguration: se_CreateFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
2799
- }),
2800
- ...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupIds(input.SecurityGroupIds, context) }),
2801
- ...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
2802
- ...(input.StorageType != null && { StorageType: input.StorageType }),
2803
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
2804
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2805
- ...(input.WindowsConfiguration != null && {
2806
- WindowsConfiguration: se_CreateFileSystemWindowsConfiguration(input.WindowsConfiguration, context),
2807
- }),
2808
- };
2522
+ const se_CreateVolumeFromBackupRequest = (input, context) => {
2523
+ return take(input, {
2524
+ BackupId: [],
2525
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2526
+ Name: [],
2527
+ OntapConfiguration: _json,
2528
+ Tags: _json,
2529
+ });
2809
2530
  };
2810
- const se_CreateFileSystemWindowsConfiguration = (input, context) => {
2811
- return {
2812
- ...(input.ActiveDirectoryId != null && { ActiveDirectoryId: input.ActiveDirectoryId }),
2813
- ...(input.Aliases != null && { Aliases: se_AlternateDNSNames(input.Aliases, context) }),
2814
- ...(input.AuditLogConfiguration != null && {
2815
- AuditLogConfiguration: se_WindowsAuditLogCreateConfiguration(input.AuditLogConfiguration, context),
2816
- }),
2817
- ...(input.AutomaticBackupRetentionDays != null && {
2818
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
2819
- }),
2820
- ...(input.CopyTagsToBackups != null && { CopyTagsToBackups: input.CopyTagsToBackups }),
2821
- ...(input.DailyAutomaticBackupStartTime != null && {
2822
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
2823
- }),
2824
- ...(input.DeploymentType != null && { DeploymentType: input.DeploymentType }),
2825
- ...(input.PreferredSubnetId != null && { PreferredSubnetId: input.PreferredSubnetId }),
2826
- ...(input.SelfManagedActiveDirectoryConfiguration != null && {
2827
- SelfManagedActiveDirectoryConfiguration: se_SelfManagedActiveDirectoryConfiguration(input.SelfManagedActiveDirectoryConfiguration, context),
2828
- }),
2829
- ...(input.ThroughputCapacity != null && { ThroughputCapacity: input.ThroughputCapacity }),
2830
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
2831
- };
2531
+ const se_CreateVolumeRequest = (input, context) => {
2532
+ return take(input, {
2533
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2534
+ Name: [],
2535
+ OntapConfiguration: _json,
2536
+ OpenZFSConfiguration: _json,
2537
+ Tags: _json,
2538
+ VolumeType: [],
2539
+ });
2832
2540
  };
2833
- const se_CreateOntapVolumeConfiguration = (input, context) => {
2834
- return {
2835
- ...(input.CopyTagsToBackups != null && { CopyTagsToBackups: input.CopyTagsToBackups }),
2836
- ...(input.JunctionPath != null && { JunctionPath: input.JunctionPath }),
2837
- ...(input.OntapVolumeType != null && { OntapVolumeType: input.OntapVolumeType }),
2838
- ...(input.SecurityStyle != null && { SecurityStyle: input.SecurityStyle }),
2839
- ...(input.SizeInMegabytes != null && { SizeInMegabytes: input.SizeInMegabytes }),
2840
- ...(input.SnapshotPolicy != null && { SnapshotPolicy: input.SnapshotPolicy }),
2841
- ...(input.StorageEfficiencyEnabled != null && { StorageEfficiencyEnabled: input.StorageEfficiencyEnabled }),
2842
- ...(input.StorageVirtualMachineId != null && { StorageVirtualMachineId: input.StorageVirtualMachineId }),
2843
- ...(input.TieringPolicy != null && { TieringPolicy: se_TieringPolicy(input.TieringPolicy, context) }),
2844
- };
2541
+ const se_DeleteBackupRequest = (input, context) => {
2542
+ return take(input, {
2543
+ BackupId: [],
2544
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2545
+ });
2845
2546
  };
2846
- const se_CreateOpenZFSOriginSnapshotConfiguration = (input, context) => {
2847
- return {
2848
- ...(input.CopyStrategy != null && { CopyStrategy: input.CopyStrategy }),
2849
- ...(input.SnapshotARN != null && { SnapshotARN: input.SnapshotARN }),
2850
- };
2547
+ const se_DeleteDataRepositoryAssociationRequest = (input, context) => {
2548
+ return take(input, {
2549
+ AssociationId: [],
2550
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2551
+ DeleteDataInFileSystem: [],
2552
+ });
2851
2553
  };
2852
- const se_CreateOpenZFSVolumeConfiguration = (input, context) => {
2853
- return {
2854
- ...(input.CopyTagsToSnapshots != null && { CopyTagsToSnapshots: input.CopyTagsToSnapshots }),
2855
- ...(input.DataCompressionType != null && { DataCompressionType: input.DataCompressionType }),
2856
- ...(input.NfsExports != null && { NfsExports: se_OpenZFSNfsExports(input.NfsExports, context) }),
2857
- ...(input.OriginSnapshot != null && {
2858
- OriginSnapshot: se_CreateOpenZFSOriginSnapshotConfiguration(input.OriginSnapshot, context),
2859
- }),
2860
- ...(input.ParentVolumeId != null && { ParentVolumeId: input.ParentVolumeId }),
2861
- ...(input.ReadOnly != null && { ReadOnly: input.ReadOnly }),
2862
- ...(input.RecordSizeKiB != null && { RecordSizeKiB: input.RecordSizeKiB }),
2863
- ...(input.StorageCapacityQuotaGiB != null && { StorageCapacityQuotaGiB: input.StorageCapacityQuotaGiB }),
2864
- ...(input.StorageCapacityReservationGiB != null && {
2865
- StorageCapacityReservationGiB: input.StorageCapacityReservationGiB,
2866
- }),
2867
- ...(input.UserAndGroupQuotas != null && {
2868
- UserAndGroupQuotas: se_OpenZFSUserAndGroupQuotas(input.UserAndGroupQuotas, context),
2869
- }),
2870
- };
2554
+ const se_DeleteFileCacheRequest = (input, context) => {
2555
+ return take(input, {
2556
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2557
+ FileCacheId: [],
2558
+ });
2871
2559
  };
2872
- const se_CreateSnapshotRequest = (input, context) => {
2873
- return {
2874
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2875
- ...(input.Name != null && { Name: input.Name }),
2876
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2877
- ...(input.VolumeId != null && { VolumeId: input.VolumeId }),
2878
- };
2560
+ const se_DeleteFileSystemRequest = (input, context) => {
2561
+ return take(input, {
2562
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2563
+ FileSystemId: [],
2564
+ LustreConfiguration: _json,
2565
+ OpenZFSConfiguration: _json,
2566
+ WindowsConfiguration: _json,
2567
+ });
2879
2568
  };
2880
- const se_CreateStorageVirtualMachineRequest = (input, context) => {
2881
- return {
2882
- ...(input.ActiveDirectoryConfiguration != null && {
2883
- ActiveDirectoryConfiguration: se_CreateSvmActiveDirectoryConfiguration(input.ActiveDirectoryConfiguration, context),
2884
- }),
2885
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2886
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
2887
- ...(input.Name != null && { Name: input.Name }),
2888
- ...(input.RootVolumeSecurityStyle != null && { RootVolumeSecurityStyle: input.RootVolumeSecurityStyle }),
2889
- ...(input.SvmAdminPassword != null && { SvmAdminPassword: input.SvmAdminPassword }),
2890
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2891
- };
2569
+ const se_DeleteSnapshotRequest = (input, context) => {
2570
+ return take(input, {
2571
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2572
+ SnapshotId: [],
2573
+ });
2892
2574
  };
2893
- const se_CreateSvmActiveDirectoryConfiguration = (input, context) => {
2894
- return {
2895
- ...(input.NetBiosName != null && { NetBiosName: input.NetBiosName }),
2896
- ...(input.SelfManagedActiveDirectoryConfiguration != null && {
2897
- SelfManagedActiveDirectoryConfiguration: se_SelfManagedActiveDirectoryConfiguration(input.SelfManagedActiveDirectoryConfiguration, context),
2898
- }),
2899
- };
2575
+ const se_DeleteStorageVirtualMachineRequest = (input, context) => {
2576
+ return take(input, {
2577
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2578
+ StorageVirtualMachineId: [],
2579
+ });
2900
2580
  };
2901
- const se_CreateVolumeFromBackupRequest = (input, context) => {
2902
- return {
2903
- ...(input.BackupId != null && { BackupId: input.BackupId }),
2904
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2905
- ...(input.Name != null && { Name: input.Name }),
2906
- ...(input.OntapConfiguration != null && {
2907
- OntapConfiguration: se_CreateOntapVolumeConfiguration(input.OntapConfiguration, context),
2908
- }),
2909
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2910
- };
2581
+ const se_DeleteVolumeRequest = (input, context) => {
2582
+ return take(input, {
2583
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2584
+ OntapConfiguration: _json,
2585
+ OpenZFSConfiguration: _json,
2586
+ VolumeId: [],
2587
+ });
2911
2588
  };
2912
- const se_CreateVolumeRequest = (input, context) => {
2913
- return {
2914
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2915
- ...(input.Name != null && { Name: input.Name }),
2916
- ...(input.OntapConfiguration != null && {
2917
- OntapConfiguration: se_CreateOntapVolumeConfiguration(input.OntapConfiguration, context),
2918
- }),
2919
- ...(input.OpenZFSConfiguration != null && {
2920
- OpenZFSConfiguration: se_CreateOpenZFSVolumeConfiguration(input.OpenZFSConfiguration, context),
2921
- }),
2922
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2923
- ...(input.VolumeType != null && { VolumeType: input.VolumeType }),
2924
- };
2589
+ const se_DescribeFileSystemAliasesRequest = (input, context) => {
2590
+ return take(input, {
2591
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2592
+ FileSystemId: [],
2593
+ MaxResults: [],
2594
+ NextToken: [],
2595
+ });
2925
2596
  };
2926
- const se_DataRepositoryAssociationIds = (input, context) => {
2927
- return input
2928
- .filter((e) => e != null)
2929
- .map((entry) => {
2930
- return entry;
2597
+ const se_DisassociateFileSystemAliasesRequest = (input, context) => {
2598
+ return take(input, {
2599
+ Aliases: _json,
2600
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2601
+ FileSystemId: [],
2931
2602
  });
2932
2603
  };
2933
- const se_DataRepositoryTaskFilter = (input, context) => {
2934
- return {
2935
- ...(input.Name != null && { Name: input.Name }),
2936
- ...(input.Values != null && { Values: se_DataRepositoryTaskFilterValues(input.Values, context) }),
2937
- };
2604
+ const se_ReleaseFileSystemNfsV3LocksRequest = (input, context) => {
2605
+ return take(input, {
2606
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2607
+ FileSystemId: [],
2608
+ });
2938
2609
  };
2939
- const se_DataRepositoryTaskFilters = (input, context) => {
2940
- return input
2941
- .filter((e) => e != null)
2942
- .map((entry) => {
2943
- return se_DataRepositoryTaskFilter(entry, context);
2610
+ const se_RestoreVolumeFromSnapshotRequest = (input, context) => {
2611
+ return take(input, {
2612
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2613
+ Options: _json,
2614
+ SnapshotId: [],
2615
+ VolumeId: [],
2944
2616
  });
2945
2617
  };
2946
- const se_DataRepositoryTaskFilterValues = (input, context) => {
2947
- return input
2948
- .filter((e) => e != null)
2949
- .map((entry) => {
2950
- return entry;
2618
+ const se_UpdateDataRepositoryAssociationRequest = (input, context) => {
2619
+ return take(input, {
2620
+ AssociationId: [],
2621
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2622
+ ImportedFileChunkSize: [],
2623
+ S3: _json,
2951
2624
  });
2952
2625
  };
2953
- const se_DataRepositoryTaskPaths = (input, context) => {
2954
- return input
2955
- .filter((e) => e != null)
2956
- .map((entry) => {
2957
- return entry;
2626
+ const se_UpdateFileCacheRequest = (input, context) => {
2627
+ return take(input, {
2628
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2629
+ FileCacheId: [],
2630
+ LustreConfiguration: _json,
2958
2631
  });
2959
2632
  };
2960
- const se_DeleteBackupRequest = (input, context) => {
2961
- return {
2962
- ...(input.BackupId != null && { BackupId: input.BackupId }),
2963
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2964
- };
2633
+ const se_UpdateFileSystemRequest = (input, context) => {
2634
+ return take(input, {
2635
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2636
+ FileSystemId: [],
2637
+ LustreConfiguration: _json,
2638
+ OntapConfiguration: _json,
2639
+ OpenZFSConfiguration: _json,
2640
+ StorageCapacity: [],
2641
+ WindowsConfiguration: _json,
2642
+ });
2965
2643
  };
2966
- const se_DeleteDataRepositoryAssociationRequest = (input, context) => {
2967
- return {
2968
- ...(input.AssociationId != null && { AssociationId: input.AssociationId }),
2969
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2970
- ...(input.DeleteDataInFileSystem != null && { DeleteDataInFileSystem: input.DeleteDataInFileSystem }),
2971
- };
2644
+ const se_UpdateSnapshotRequest = (input, context) => {
2645
+ return take(input, {
2646
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2647
+ Name: [],
2648
+ SnapshotId: [],
2649
+ });
2972
2650
  };
2973
- const se_DeleteFileCacheRequest = (input, context) => {
2974
- return {
2975
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
2976
- ...(input.FileCacheId != null && { FileCacheId: input.FileCacheId }),
2977
- };
2651
+ const se_UpdateStorageVirtualMachineRequest = (input, context) => {
2652
+ return take(input, {
2653
+ ActiveDirectoryConfiguration: _json,
2654
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2655
+ StorageVirtualMachineId: [],
2656
+ SvmAdminPassword: [],
2657
+ });
2978
2658
  };
2979
- const se_DeleteFileSystemLustreConfiguration = (input, context) => {
2980
- return {
2981
- ...(input.FinalBackupTags != null && { FinalBackupTags: se_Tags(input.FinalBackupTags, context) }),
2982
- ...(input.SkipFinalBackup != null && { SkipFinalBackup: input.SkipFinalBackup }),
2983
- };
2659
+ const se_UpdateVolumeRequest = (input, context) => {
2660
+ return take(input, {
2661
+ ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
2662
+ Name: [],
2663
+ OntapConfiguration: _json,
2664
+ OpenZFSConfiguration: _json,
2665
+ VolumeId: [],
2666
+ });
2984
2667
  };
2985
- const se_DeleteFileSystemOpenZFSConfiguration = (input, context) => {
2986
- return {
2987
- ...(input.FinalBackupTags != null && { FinalBackupTags: se_Tags(input.FinalBackupTags, context) }),
2988
- ...(input.Options != null && { Options: se_DeleteFileSystemOpenZFSOptions(input.Options, context) }),
2989
- ...(input.SkipFinalBackup != null && { SkipFinalBackup: input.SkipFinalBackup }),
2990
- };
2668
+ const de_AdministrativeAction = (output, context) => {
2669
+ return take(output, {
2670
+ AdministrativeActionType: __expectString,
2671
+ FailureDetails: _json,
2672
+ ProgressPercent: __expectInt32,
2673
+ RequestTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2674
+ Status: __expectString,
2675
+ TargetFileSystemValues: (_) => de_FileSystem(_, context),
2676
+ TargetSnapshotValues: (_) => de_Snapshot(_, context),
2677
+ TargetVolumeValues: (_) => de_Volume(_, context),
2678
+ });
2991
2679
  };
2992
- const se_DeleteFileSystemOpenZFSOptions = (input, context) => {
2993
- return input
2680
+ const de_AdministrativeActions = (output, context) => {
2681
+ const retVal = (output || [])
2994
2682
  .filter((e) => e != null)
2995
2683
  .map((entry) => {
2996
- return entry;
2684
+ return de_AdministrativeAction(entry, context);
2997
2685
  });
2686
+ return retVal;
2998
2687
  };
2999
- const se_DeleteFileSystemRequest = (input, context) => {
3000
- return {
3001
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3002
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
3003
- ...(input.LustreConfiguration != null && {
3004
- LustreConfiguration: se_DeleteFileSystemLustreConfiguration(input.LustreConfiguration, context),
3005
- }),
3006
- ...(input.OpenZFSConfiguration != null && {
3007
- OpenZFSConfiguration: se_DeleteFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
3008
- }),
3009
- ...(input.WindowsConfiguration != null && {
3010
- WindowsConfiguration: se_DeleteFileSystemWindowsConfiguration(input.WindowsConfiguration, context),
3011
- }),
3012
- };
3013
- };
3014
- const se_DeleteFileSystemWindowsConfiguration = (input, context) => {
3015
- return {
3016
- ...(input.FinalBackupTags != null && { FinalBackupTags: se_Tags(input.FinalBackupTags, context) }),
3017
- ...(input.SkipFinalBackup != null && { SkipFinalBackup: input.SkipFinalBackup }),
3018
- };
2688
+ const de_Backup = (output, context) => {
2689
+ return take(output, {
2690
+ BackupId: __expectString,
2691
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2692
+ DirectoryInformation: _json,
2693
+ FailureDetails: _json,
2694
+ FileSystem: (_) => de_FileSystem(_, context),
2695
+ KmsKeyId: __expectString,
2696
+ Lifecycle: __expectString,
2697
+ OwnerId: __expectString,
2698
+ ProgressPercent: __expectInt32,
2699
+ ResourceARN: __expectString,
2700
+ ResourceType: __expectString,
2701
+ SourceBackupId: __expectString,
2702
+ SourceBackupRegion: __expectString,
2703
+ Tags: _json,
2704
+ Type: __expectString,
2705
+ Volume: (_) => de_Volume(_, context),
2706
+ });
3019
2707
  };
3020
- const se_DeleteOpenZFSVolumeOptions = (input, context) => {
3021
- return input
2708
+ const de_Backups = (output, context) => {
2709
+ const retVal = (output || [])
3022
2710
  .filter((e) => e != null)
3023
2711
  .map((entry) => {
3024
- return entry;
2712
+ return de_Backup(entry, context);
3025
2713
  });
2714
+ return retVal;
3026
2715
  };
3027
- const se_DeleteSnapshotRequest = (input, context) => {
3028
- return {
3029
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3030
- ...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }),
3031
- };
2716
+ const de_CopyBackupResponse = (output, context) => {
2717
+ return take(output, {
2718
+ Backup: (_) => de_Backup(_, context),
2719
+ });
3032
2720
  };
3033
- const se_DeleteStorageVirtualMachineRequest = (input, context) => {
3034
- return {
3035
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3036
- ...(input.StorageVirtualMachineId != null && { StorageVirtualMachineId: input.StorageVirtualMachineId }),
3037
- };
2721
+ const de_CreateBackupResponse = (output, context) => {
2722
+ return take(output, {
2723
+ Backup: (_) => de_Backup(_, context),
2724
+ });
3038
2725
  };
3039
- const se_DeleteVolumeOntapConfiguration = (input, context) => {
3040
- return {
3041
- ...(input.FinalBackupTags != null && { FinalBackupTags: se_Tags(input.FinalBackupTags, context) }),
3042
- ...(input.SkipFinalBackup != null && { SkipFinalBackup: input.SkipFinalBackup }),
3043
- };
2726
+ const de_CreateDataRepositoryAssociationResponse = (output, context) => {
2727
+ return take(output, {
2728
+ Association: (_) => de_DataRepositoryAssociation(_, context),
2729
+ });
3044
2730
  };
3045
- const se_DeleteVolumeOpenZFSConfiguration = (input, context) => {
3046
- return {
3047
- ...(input.Options != null && { Options: se_DeleteOpenZFSVolumeOptions(input.Options, context) }),
3048
- };
2731
+ const de_CreateDataRepositoryTaskResponse = (output, context) => {
2732
+ return take(output, {
2733
+ DataRepositoryTask: (_) => de_DataRepositoryTask(_, context),
2734
+ });
3049
2735
  };
3050
- const se_DeleteVolumeRequest = (input, context) => {
3051
- return {
3052
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3053
- ...(input.OntapConfiguration != null && {
3054
- OntapConfiguration: se_DeleteVolumeOntapConfiguration(input.OntapConfiguration, context),
3055
- }),
3056
- ...(input.OpenZFSConfiguration != null && {
3057
- OpenZFSConfiguration: se_DeleteVolumeOpenZFSConfiguration(input.OpenZFSConfiguration, context),
3058
- }),
3059
- ...(input.VolumeId != null && { VolumeId: input.VolumeId }),
3060
- };
3061
- };
3062
- const se_DescribeBackupsRequest = (input, context) => {
3063
- return {
3064
- ...(input.BackupIds != null && { BackupIds: se_BackupIds(input.BackupIds, context) }),
3065
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3066
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3067
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3068
- };
3069
- };
3070
- const se_DescribeDataRepositoryAssociationsRequest = (input, context) => {
3071
- return {
3072
- ...(input.AssociationIds != null && {
3073
- AssociationIds: se_DataRepositoryAssociationIds(input.AssociationIds, context),
3074
- }),
3075
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3076
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3077
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3078
- };
3079
- };
3080
- const se_DescribeDataRepositoryTasksRequest = (input, context) => {
3081
- return {
3082
- ...(input.Filters != null && { Filters: se_DataRepositoryTaskFilters(input.Filters, context) }),
3083
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3084
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3085
- ...(input.TaskIds != null && { TaskIds: se_TaskIds(input.TaskIds, context) }),
3086
- };
3087
- };
3088
- const se_DescribeFileCachesRequest = (input, context) => {
3089
- return {
3090
- ...(input.FileCacheIds != null && { FileCacheIds: se_FileCacheIds(input.FileCacheIds, context) }),
3091
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3092
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3093
- };
3094
- };
3095
- const se_DescribeFileSystemAliasesRequest = (input, context) => {
3096
- return {
3097
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3098
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
3099
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3100
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3101
- };
3102
- };
3103
- const se_DescribeFileSystemsRequest = (input, context) => {
3104
- return {
3105
- ...(input.FileSystemIds != null && { FileSystemIds: se_FileSystemIds(input.FileSystemIds, context) }),
3106
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3107
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3108
- };
3109
- };
3110
- const se_DescribeSnapshotsRequest = (input, context) => {
3111
- return {
3112
- ...(input.Filters != null && { Filters: se_SnapshotFilters(input.Filters, context) }),
3113
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3114
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3115
- ...(input.SnapshotIds != null && { SnapshotIds: se_SnapshotIds(input.SnapshotIds, context) }),
3116
- };
3117
- };
3118
- const se_DescribeStorageVirtualMachinesRequest = (input, context) => {
3119
- return {
3120
- ...(input.Filters != null && { Filters: se_StorageVirtualMachineFilters(input.Filters, context) }),
3121
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3122
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3123
- ...(input.StorageVirtualMachineIds != null && {
3124
- StorageVirtualMachineIds: se_StorageVirtualMachineIds(input.StorageVirtualMachineIds, context),
3125
- }),
3126
- };
3127
- };
3128
- const se_DescribeVolumesRequest = (input, context) => {
3129
- return {
3130
- ...(input.Filters != null && { Filters: se_VolumeFilters(input.Filters, context) }),
3131
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3132
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3133
- ...(input.VolumeIds != null && { VolumeIds: se_VolumeIds(input.VolumeIds, context) }),
3134
- };
3135
- };
3136
- const se_DisassociateFileSystemAliasesRequest = (input, context) => {
3137
- return {
3138
- ...(input.Aliases != null && { Aliases: se_AlternateDNSNames(input.Aliases, context) }),
3139
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3140
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
3141
- };
3142
- };
3143
- const se_DiskIopsConfiguration = (input, context) => {
3144
- return {
3145
- ...(input.Iops != null && { Iops: input.Iops }),
3146
- ...(input.Mode != null && { Mode: input.Mode }),
3147
- };
3148
- };
3149
- const se_DnsIps = (input, context) => {
3150
- return input
3151
- .filter((e) => e != null)
3152
- .map((entry) => {
3153
- return entry;
3154
- });
3155
- };
3156
- const se_EventTypes = (input, context) => {
3157
- return input
3158
- .filter((e) => e != null)
3159
- .map((entry) => {
3160
- return entry;
3161
- });
3162
- };
3163
- const se_FileCacheDataRepositoryAssociation = (input, context) => {
3164
- return {
3165
- ...(input.DataRepositoryPath != null && { DataRepositoryPath: input.DataRepositoryPath }),
3166
- ...(input.DataRepositorySubdirectories != null && {
3167
- DataRepositorySubdirectories: se_SubDirectoriesPaths(input.DataRepositorySubdirectories, context),
3168
- }),
3169
- ...(input.FileCachePath != null && { FileCachePath: input.FileCachePath }),
3170
- ...(input.NFS != null && { NFS: se_FileCacheNFSConfiguration(input.NFS, context) }),
3171
- };
3172
- };
3173
- const se_FileCacheIds = (input, context) => {
3174
- return input
3175
- .filter((e) => e != null)
3176
- .map((entry) => {
3177
- return entry;
3178
- });
3179
- };
3180
- const se_FileCacheLustreMetadataConfiguration = (input, context) => {
3181
- return {
3182
- ...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
3183
- };
3184
- };
3185
- const se_FileCacheNFSConfiguration = (input, context) => {
3186
- return {
3187
- ...(input.DnsIps != null && { DnsIps: se_RepositoryDnsIps(input.DnsIps, context) }),
3188
- ...(input.Version != null && { Version: input.Version }),
3189
- };
3190
- };
3191
- const se_FileSystemIds = (input, context) => {
3192
- return input
3193
- .filter((e) => e != null)
3194
- .map((entry) => {
3195
- return entry;
3196
- });
3197
- };
3198
- const se_Filter = (input, context) => {
3199
- return {
3200
- ...(input.Name != null && { Name: input.Name }),
3201
- ...(input.Values != null && { Values: se_FilterValues(input.Values, context) }),
3202
- };
3203
- };
3204
- const se_Filters = (input, context) => {
3205
- return input
3206
- .filter((e) => e != null)
3207
- .map((entry) => {
3208
- return se_Filter(entry, context);
3209
- });
3210
- };
3211
- const se_FilterValues = (input, context) => {
3212
- return input
3213
- .filter((e) => e != null)
3214
- .map((entry) => {
3215
- return entry;
3216
- });
3217
- };
3218
- const se_ListTagsForResourceRequest = (input, context) => {
3219
- return {
3220
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3221
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3222
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3223
- };
3224
- };
3225
- const se_LustreLogCreateConfiguration = (input, context) => {
3226
- return {
3227
- ...(input.Destination != null && { Destination: input.Destination }),
3228
- ...(input.Level != null && { Level: input.Level }),
3229
- };
3230
- };
3231
- const se_LustreNoSquashNids = (input, context) => {
3232
- return input
3233
- .filter((e) => e != null)
3234
- .map((entry) => {
3235
- return entry;
3236
- });
3237
- };
3238
- const se_LustreRootSquashConfiguration = (input, context) => {
3239
- return {
3240
- ...(input.NoSquashNids != null && { NoSquashNids: se_LustreNoSquashNids(input.NoSquashNids, context) }),
3241
- ...(input.RootSquash != null && { RootSquash: input.RootSquash }),
3242
- };
3243
- };
3244
- const se_OpenZFSClientConfiguration = (input, context) => {
3245
- return {
3246
- ...(input.Clients != null && { Clients: input.Clients }),
3247
- ...(input.Options != null && { Options: se_OpenZFSNfsExportOptions(input.Options, context) }),
3248
- };
3249
- };
3250
- const se_OpenZFSClientConfigurations = (input, context) => {
3251
- return input
3252
- .filter((e) => e != null)
3253
- .map((entry) => {
3254
- return se_OpenZFSClientConfiguration(entry, context);
3255
- });
3256
- };
3257
- const se_OpenZFSCreateRootVolumeConfiguration = (input, context) => {
3258
- return {
3259
- ...(input.CopyTagsToSnapshots != null && { CopyTagsToSnapshots: input.CopyTagsToSnapshots }),
3260
- ...(input.DataCompressionType != null && { DataCompressionType: input.DataCompressionType }),
3261
- ...(input.NfsExports != null && { NfsExports: se_OpenZFSNfsExports(input.NfsExports, context) }),
3262
- ...(input.ReadOnly != null && { ReadOnly: input.ReadOnly }),
3263
- ...(input.RecordSizeKiB != null && { RecordSizeKiB: input.RecordSizeKiB }),
3264
- ...(input.UserAndGroupQuotas != null && {
3265
- UserAndGroupQuotas: se_OpenZFSUserAndGroupQuotas(input.UserAndGroupQuotas, context),
3266
- }),
3267
- };
3268
- };
3269
- const se_OpenZFSNfsExport = (input, context) => {
3270
- return {
3271
- ...(input.ClientConfigurations != null && {
3272
- ClientConfigurations: se_OpenZFSClientConfigurations(input.ClientConfigurations, context),
3273
- }),
3274
- };
3275
- };
3276
- const se_OpenZFSNfsExportOptions = (input, context) => {
3277
- return input
3278
- .filter((e) => e != null)
3279
- .map((entry) => {
3280
- return entry;
3281
- });
3282
- };
3283
- const se_OpenZFSNfsExports = (input, context) => {
3284
- return input
3285
- .filter((e) => e != null)
3286
- .map((entry) => {
3287
- return se_OpenZFSNfsExport(entry, context);
3288
- });
3289
- };
3290
- const se_OpenZFSUserAndGroupQuotas = (input, context) => {
3291
- return input
3292
- .filter((e) => e != null)
3293
- .map((entry) => {
3294
- return se_OpenZFSUserOrGroupQuota(entry, context);
3295
- });
3296
- };
3297
- const se_OpenZFSUserOrGroupQuota = (input, context) => {
3298
- return {
3299
- ...(input.Id != null && { Id: input.Id }),
3300
- ...(input.StorageCapacityQuotaGiB != null && { StorageCapacityQuotaGiB: input.StorageCapacityQuotaGiB }),
3301
- ...(input.Type != null && { Type: input.Type }),
3302
- };
3303
- };
3304
- const se_ReleaseFileSystemNfsV3LocksRequest = (input, context) => {
3305
- return {
3306
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3307
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
3308
- };
3309
- };
3310
- const se_RepositoryDnsIps = (input, context) => {
3311
- return input
3312
- .filter((e) => e != null)
3313
- .map((entry) => {
3314
- return entry;
3315
- });
3316
- };
3317
- const se_RestoreOpenZFSVolumeOptions = (input, context) => {
3318
- return input
3319
- .filter((e) => e != null)
3320
- .map((entry) => {
3321
- return entry;
3322
- });
3323
- };
3324
- const se_RestoreVolumeFromSnapshotRequest = (input, context) => {
3325
- return {
3326
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3327
- ...(input.Options != null && { Options: se_RestoreOpenZFSVolumeOptions(input.Options, context) }),
3328
- ...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }),
3329
- ...(input.VolumeId != null && { VolumeId: input.VolumeId }),
3330
- };
3331
- };
3332
- const se_RouteTableIds = (input, context) => {
3333
- return input
3334
- .filter((e) => e != null)
3335
- .map((entry) => {
3336
- return entry;
3337
- });
3338
- };
3339
- const se_S3DataRepositoryConfiguration = (input, context) => {
3340
- return {
3341
- ...(input.AutoExportPolicy != null && { AutoExportPolicy: se_AutoExportPolicy(input.AutoExportPolicy, context) }),
3342
- ...(input.AutoImportPolicy != null && { AutoImportPolicy: se_AutoImportPolicy(input.AutoImportPolicy, context) }),
3343
- };
3344
- };
3345
- const se_SecurityGroupIds = (input, context) => {
3346
- return input
3347
- .filter((e) => e != null)
3348
- .map((entry) => {
3349
- return entry;
3350
- });
3351
- };
3352
- const se_SelfManagedActiveDirectoryConfiguration = (input, context) => {
3353
- return {
3354
- ...(input.DnsIps != null && { DnsIps: se_DnsIps(input.DnsIps, context) }),
3355
- ...(input.DomainName != null && { DomainName: input.DomainName }),
3356
- ...(input.FileSystemAdministratorsGroup != null && {
3357
- FileSystemAdministratorsGroup: input.FileSystemAdministratorsGroup,
3358
- }),
3359
- ...(input.OrganizationalUnitDistinguishedName != null && {
3360
- OrganizationalUnitDistinguishedName: input.OrganizationalUnitDistinguishedName,
3361
- }),
3362
- ...(input.Password != null && { Password: input.Password }),
3363
- ...(input.UserName != null && { UserName: input.UserName }),
3364
- };
3365
- };
3366
- const se_SelfManagedActiveDirectoryConfigurationUpdates = (input, context) => {
3367
- return {
3368
- ...(input.DnsIps != null && { DnsIps: se_DnsIps(input.DnsIps, context) }),
3369
- ...(input.Password != null && { Password: input.Password }),
3370
- ...(input.UserName != null && { UserName: input.UserName }),
3371
- };
3372
- };
3373
- const se_SnapshotFilter = (input, context) => {
3374
- return {
3375
- ...(input.Name != null && { Name: input.Name }),
3376
- ...(input.Values != null && { Values: se_SnapshotFilterValues(input.Values, context) }),
3377
- };
3378
- };
3379
- const se_SnapshotFilters = (input, context) => {
3380
- return input
3381
- .filter((e) => e != null)
3382
- .map((entry) => {
3383
- return se_SnapshotFilter(entry, context);
3384
- });
3385
- };
3386
- const se_SnapshotFilterValues = (input, context) => {
3387
- return input
3388
- .filter((e) => e != null)
3389
- .map((entry) => {
3390
- return entry;
3391
- });
3392
- };
3393
- const se_SnapshotIds = (input, context) => {
3394
- return input
3395
- .filter((e) => e != null)
3396
- .map((entry) => {
3397
- return entry;
3398
- });
3399
- };
3400
- const se_StorageVirtualMachineFilter = (input, context) => {
3401
- return {
3402
- ...(input.Name != null && { Name: input.Name }),
3403
- ...(input.Values != null && { Values: se_StorageVirtualMachineFilterValues(input.Values, context) }),
3404
- };
3405
- };
3406
- const se_StorageVirtualMachineFilters = (input, context) => {
3407
- return input
3408
- .filter((e) => e != null)
3409
- .map((entry) => {
3410
- return se_StorageVirtualMachineFilter(entry, context);
3411
- });
3412
- };
3413
- const se_StorageVirtualMachineFilterValues = (input, context) => {
3414
- return input
3415
- .filter((e) => e != null)
3416
- .map((entry) => {
3417
- return entry;
3418
- });
3419
- };
3420
- const se_StorageVirtualMachineIds = (input, context) => {
3421
- return input
3422
- .filter((e) => e != null)
3423
- .map((entry) => {
3424
- return entry;
3425
- });
3426
- };
3427
- const se_SubDirectoriesPaths = (input, context) => {
3428
- return input
3429
- .filter((e) => e != null)
3430
- .map((entry) => {
3431
- return entry;
3432
- });
3433
- };
3434
- const se_SubnetIds = (input, context) => {
3435
- return input
3436
- .filter((e) => e != null)
3437
- .map((entry) => {
3438
- return entry;
3439
- });
3440
- };
3441
- const se_Tag = (input, context) => {
3442
- return {
3443
- ...(input.Key != null && { Key: input.Key }),
3444
- ...(input.Value != null && { Value: input.Value }),
3445
- };
3446
- };
3447
- const se_TagKeys = (input, context) => {
3448
- return input
3449
- .filter((e) => e != null)
3450
- .map((entry) => {
3451
- return entry;
3452
- });
3453
- };
3454
- const se_TagResourceRequest = (input, context) => {
3455
- return {
3456
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3457
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3458
- };
3459
- };
3460
- const se_Tags = (input, context) => {
3461
- return input
3462
- .filter((e) => e != null)
3463
- .map((entry) => {
3464
- return se_Tag(entry, context);
3465
- });
3466
- };
3467
- const se_TaskIds = (input, context) => {
3468
- return input
3469
- .filter((e) => e != null)
3470
- .map((entry) => {
3471
- return entry;
3472
- });
3473
- };
3474
- const se_TieringPolicy = (input, context) => {
3475
- return {
3476
- ...(input.CoolingPeriod != null && { CoolingPeriod: input.CoolingPeriod }),
3477
- ...(input.Name != null && { Name: input.Name }),
3478
- };
3479
- };
3480
- const se_UntagResourceRequest = (input, context) => {
3481
- return {
3482
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3483
- ...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
3484
- };
3485
- };
3486
- const se_UpdateDataRepositoryAssociationRequest = (input, context) => {
3487
- return {
3488
- ...(input.AssociationId != null && { AssociationId: input.AssociationId }),
3489
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3490
- ...(input.ImportedFileChunkSize != null && { ImportedFileChunkSize: input.ImportedFileChunkSize }),
3491
- ...(input.S3 != null && { S3: se_S3DataRepositoryConfiguration(input.S3, context) }),
3492
- };
3493
- };
3494
- const se_UpdateFileCacheLustreConfiguration = (input, context) => {
3495
- return {
3496
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
3497
- };
3498
- };
3499
- const se_UpdateFileCacheRequest = (input, context) => {
3500
- return {
3501
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3502
- ...(input.FileCacheId != null && { FileCacheId: input.FileCacheId }),
3503
- ...(input.LustreConfiguration != null && {
3504
- LustreConfiguration: se_UpdateFileCacheLustreConfiguration(input.LustreConfiguration, context),
3505
- }),
3506
- };
3507
- };
3508
- const se_UpdateFileSystemLustreConfiguration = (input, context) => {
3509
- return {
3510
- ...(input.AutoImportPolicy != null && { AutoImportPolicy: input.AutoImportPolicy }),
3511
- ...(input.AutomaticBackupRetentionDays != null && {
3512
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
3513
- }),
3514
- ...(input.DailyAutomaticBackupStartTime != null && {
3515
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
3516
- }),
3517
- ...(input.DataCompressionType != null && { DataCompressionType: input.DataCompressionType }),
3518
- ...(input.LogConfiguration != null && {
3519
- LogConfiguration: se_LustreLogCreateConfiguration(input.LogConfiguration, context),
3520
- }),
3521
- ...(input.RootSquashConfiguration != null && {
3522
- RootSquashConfiguration: se_LustreRootSquashConfiguration(input.RootSquashConfiguration, context),
3523
- }),
3524
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
3525
- };
3526
- };
3527
- const se_UpdateFileSystemOntapConfiguration = (input, context) => {
3528
- return {
3529
- ...(input.AddRouteTableIds != null && { AddRouteTableIds: se_RouteTableIds(input.AddRouteTableIds, context) }),
3530
- ...(input.AutomaticBackupRetentionDays != null && {
3531
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
3532
- }),
3533
- ...(input.DailyAutomaticBackupStartTime != null && {
3534
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
3535
- }),
3536
- ...(input.DiskIopsConfiguration != null && {
3537
- DiskIopsConfiguration: se_DiskIopsConfiguration(input.DiskIopsConfiguration, context),
3538
- }),
3539
- ...(input.FsxAdminPassword != null && { FsxAdminPassword: input.FsxAdminPassword }),
3540
- ...(input.RemoveRouteTableIds != null && {
3541
- RemoveRouteTableIds: se_RouteTableIds(input.RemoveRouteTableIds, context),
3542
- }),
3543
- ...(input.ThroughputCapacity != null && { ThroughputCapacity: input.ThroughputCapacity }),
3544
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
3545
- };
3546
- };
3547
- const se_UpdateFileSystemOpenZFSConfiguration = (input, context) => {
3548
- return {
3549
- ...(input.AutomaticBackupRetentionDays != null && {
3550
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
3551
- }),
3552
- ...(input.CopyTagsToBackups != null && { CopyTagsToBackups: input.CopyTagsToBackups }),
3553
- ...(input.CopyTagsToVolumes != null && { CopyTagsToVolumes: input.CopyTagsToVolumes }),
3554
- ...(input.DailyAutomaticBackupStartTime != null && {
3555
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
3556
- }),
3557
- ...(input.DiskIopsConfiguration != null && {
3558
- DiskIopsConfiguration: se_DiskIopsConfiguration(input.DiskIopsConfiguration, context),
3559
- }),
3560
- ...(input.ThroughputCapacity != null && { ThroughputCapacity: input.ThroughputCapacity }),
3561
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
3562
- };
3563
- };
3564
- const se_UpdateFileSystemRequest = (input, context) => {
3565
- return {
3566
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3567
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
3568
- ...(input.LustreConfiguration != null && {
3569
- LustreConfiguration: se_UpdateFileSystemLustreConfiguration(input.LustreConfiguration, context),
3570
- }),
3571
- ...(input.OntapConfiguration != null && {
3572
- OntapConfiguration: se_UpdateFileSystemOntapConfiguration(input.OntapConfiguration, context),
3573
- }),
3574
- ...(input.OpenZFSConfiguration != null && {
3575
- OpenZFSConfiguration: se_UpdateFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
3576
- }),
3577
- ...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
3578
- ...(input.WindowsConfiguration != null && {
3579
- WindowsConfiguration: se_UpdateFileSystemWindowsConfiguration(input.WindowsConfiguration, context),
3580
- }),
3581
- };
3582
- };
3583
- const se_UpdateFileSystemWindowsConfiguration = (input, context) => {
3584
- return {
3585
- ...(input.AuditLogConfiguration != null && {
3586
- AuditLogConfiguration: se_WindowsAuditLogCreateConfiguration(input.AuditLogConfiguration, context),
3587
- }),
3588
- ...(input.AutomaticBackupRetentionDays != null && {
3589
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
3590
- }),
3591
- ...(input.DailyAutomaticBackupStartTime != null && {
3592
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
3593
- }),
3594
- ...(input.SelfManagedActiveDirectoryConfiguration != null && {
3595
- SelfManagedActiveDirectoryConfiguration: se_SelfManagedActiveDirectoryConfigurationUpdates(input.SelfManagedActiveDirectoryConfiguration, context),
3596
- }),
3597
- ...(input.ThroughputCapacity != null && { ThroughputCapacity: input.ThroughputCapacity }),
3598
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
3599
- };
3600
- };
3601
- const se_UpdateOntapVolumeConfiguration = (input, context) => {
3602
- return {
3603
- ...(input.CopyTagsToBackups != null && { CopyTagsToBackups: input.CopyTagsToBackups }),
3604
- ...(input.JunctionPath != null && { JunctionPath: input.JunctionPath }),
3605
- ...(input.SecurityStyle != null && { SecurityStyle: input.SecurityStyle }),
3606
- ...(input.SizeInMegabytes != null && { SizeInMegabytes: input.SizeInMegabytes }),
3607
- ...(input.SnapshotPolicy != null && { SnapshotPolicy: input.SnapshotPolicy }),
3608
- ...(input.StorageEfficiencyEnabled != null && { StorageEfficiencyEnabled: input.StorageEfficiencyEnabled }),
3609
- ...(input.TieringPolicy != null && { TieringPolicy: se_TieringPolicy(input.TieringPolicy, context) }),
3610
- };
3611
- };
3612
- const se_UpdateOpenZFSVolumeConfiguration = (input, context) => {
3613
- return {
3614
- ...(input.DataCompressionType != null && { DataCompressionType: input.DataCompressionType }),
3615
- ...(input.NfsExports != null && { NfsExports: se_OpenZFSNfsExports(input.NfsExports, context) }),
3616
- ...(input.ReadOnly != null && { ReadOnly: input.ReadOnly }),
3617
- ...(input.RecordSizeKiB != null && { RecordSizeKiB: input.RecordSizeKiB }),
3618
- ...(input.StorageCapacityQuotaGiB != null && { StorageCapacityQuotaGiB: input.StorageCapacityQuotaGiB }),
3619
- ...(input.StorageCapacityReservationGiB != null && {
3620
- StorageCapacityReservationGiB: input.StorageCapacityReservationGiB,
3621
- }),
3622
- ...(input.UserAndGroupQuotas != null && {
3623
- UserAndGroupQuotas: se_OpenZFSUserAndGroupQuotas(input.UserAndGroupQuotas, context),
3624
- }),
3625
- };
3626
- };
3627
- const se_UpdateSnapshotRequest = (input, context) => {
3628
- return {
3629
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3630
- ...(input.Name != null && { Name: input.Name }),
3631
- ...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }),
3632
- };
3633
- };
3634
- const se_UpdateStorageVirtualMachineRequest = (input, context) => {
3635
- return {
3636
- ...(input.ActiveDirectoryConfiguration != null && {
3637
- ActiveDirectoryConfiguration: se_UpdateSvmActiveDirectoryConfiguration(input.ActiveDirectoryConfiguration, context),
3638
- }),
3639
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3640
- ...(input.StorageVirtualMachineId != null && { StorageVirtualMachineId: input.StorageVirtualMachineId }),
3641
- ...(input.SvmAdminPassword != null && { SvmAdminPassword: input.SvmAdminPassword }),
3642
- };
3643
- };
3644
- const se_UpdateSvmActiveDirectoryConfiguration = (input, context) => {
3645
- return {
3646
- ...(input.SelfManagedActiveDirectoryConfiguration != null && {
3647
- SelfManagedActiveDirectoryConfiguration: se_SelfManagedActiveDirectoryConfigurationUpdates(input.SelfManagedActiveDirectoryConfiguration, context),
3648
- }),
3649
- };
3650
- };
3651
- const se_UpdateVolumeRequest = (input, context) => {
3652
- return {
3653
- ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
3654
- ...(input.Name != null && { Name: input.Name }),
3655
- ...(input.OntapConfiguration != null && {
3656
- OntapConfiguration: se_UpdateOntapVolumeConfiguration(input.OntapConfiguration, context),
3657
- }),
3658
- ...(input.OpenZFSConfiguration != null && {
3659
- OpenZFSConfiguration: se_UpdateOpenZFSVolumeConfiguration(input.OpenZFSConfiguration, context),
3660
- }),
3661
- ...(input.VolumeId != null && { VolumeId: input.VolumeId }),
3662
- };
3663
- };
3664
- const se_VolumeFilter = (input, context) => {
3665
- return {
3666
- ...(input.Name != null && { Name: input.Name }),
3667
- ...(input.Values != null && { Values: se_VolumeFilterValues(input.Values, context) }),
3668
- };
3669
- };
3670
- const se_VolumeFilters = (input, context) => {
3671
- return input
3672
- .filter((e) => e != null)
3673
- .map((entry) => {
3674
- return se_VolumeFilter(entry, context);
3675
- });
3676
- };
3677
- const se_VolumeFilterValues = (input, context) => {
3678
- return input
3679
- .filter((e) => e != null)
3680
- .map((entry) => {
3681
- return entry;
3682
- });
3683
- };
3684
- const se_VolumeIds = (input, context) => {
3685
- return input
3686
- .filter((e) => e != null)
3687
- .map((entry) => {
3688
- return entry;
3689
- });
3690
- };
3691
- const se_WindowsAuditLogCreateConfiguration = (input, context) => {
3692
- return {
3693
- ...(input.AuditLogDestination != null && { AuditLogDestination: input.AuditLogDestination }),
3694
- ...(input.FileAccessAuditLogLevel != null && { FileAccessAuditLogLevel: input.FileAccessAuditLogLevel }),
3695
- ...(input.FileShareAccessAuditLogLevel != null && {
3696
- FileShareAccessAuditLogLevel: input.FileShareAccessAuditLogLevel,
3697
- }),
3698
- };
3699
- };
3700
- const de_ActiveDirectoryBackupAttributes = (output, context) => {
3701
- return {
3702
- ActiveDirectoryId: __expectString(output.ActiveDirectoryId),
3703
- DomainName: __expectString(output.DomainName),
3704
- ResourceARN: __expectString(output.ResourceARN),
3705
- };
3706
- };
3707
- const de_ActiveDirectoryError = (output, context) => {
3708
- return {
3709
- ActiveDirectoryId: __expectString(output.ActiveDirectoryId),
3710
- Message: __expectString(output.Message),
3711
- Type: __expectString(output.Type),
3712
- };
3713
- };
3714
- const de_AdministrativeAction = (output, context) => {
3715
- return {
3716
- AdministrativeActionType: __expectString(output.AdministrativeActionType),
3717
- FailureDetails: output.FailureDetails != null ? de_AdministrativeActionFailureDetails(output.FailureDetails, context) : undefined,
3718
- ProgressPercent: __expectInt32(output.ProgressPercent),
3719
- RequestTime: output.RequestTime != null
3720
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RequestTime)))
3721
- : undefined,
3722
- Status: __expectString(output.Status),
3723
- TargetFileSystemValues: output.TargetFileSystemValues != null ? de_FileSystem(output.TargetFileSystemValues, context) : undefined,
3724
- TargetSnapshotValues: output.TargetSnapshotValues != null ? de_Snapshot(output.TargetSnapshotValues, context) : undefined,
3725
- TargetVolumeValues: output.TargetVolumeValues != null ? de_Volume(output.TargetVolumeValues, context) : undefined,
3726
- };
3727
- };
3728
- const de_AdministrativeActionFailureDetails = (output, context) => {
3729
- return {
3730
- Message: __expectString(output.Message),
3731
- };
3732
- };
3733
- const de_AdministrativeActions = (output, context) => {
3734
- const retVal = (output || [])
3735
- .filter((e) => e != null)
3736
- .map((entry) => {
3737
- if (entry === null) {
3738
- return null;
3739
- }
3740
- return de_AdministrativeAction(entry, context);
3741
- });
3742
- return retVal;
3743
- };
3744
- const de_Alias = (output, context) => {
3745
- return {
3746
- Lifecycle: __expectString(output.Lifecycle),
3747
- Name: __expectString(output.Name),
3748
- };
3749
- };
3750
- const de_Aliases = (output, context) => {
3751
- const retVal = (output || [])
3752
- .filter((e) => e != null)
3753
- .map((entry) => {
3754
- if (entry === null) {
3755
- return null;
3756
- }
3757
- return de_Alias(entry, context);
3758
- });
3759
- return retVal;
3760
- };
3761
- const de_AssociateFileSystemAliasesResponse = (output, context) => {
3762
- return {
3763
- Aliases: output.Aliases != null ? de_Aliases(output.Aliases, context) : undefined,
3764
- };
3765
- };
3766
- const de_AutoExportPolicy = (output, context) => {
3767
- return {
3768
- Events: output.Events != null ? de_EventTypes(output.Events, context) : undefined,
3769
- };
3770
- };
3771
- const de_AutoImportPolicy = (output, context) => {
3772
- return {
3773
- Events: output.Events != null ? de_EventTypes(output.Events, context) : undefined,
3774
- };
3775
- };
3776
- const de_Backup = (output, context) => {
3777
- return {
3778
- BackupId: __expectString(output.BackupId),
3779
- CreationTime: output.CreationTime != null
3780
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3781
- : undefined,
3782
- DirectoryInformation: output.DirectoryInformation != null
3783
- ? de_ActiveDirectoryBackupAttributes(output.DirectoryInformation, context)
3784
- : undefined,
3785
- FailureDetails: output.FailureDetails != null ? de_BackupFailureDetails(output.FailureDetails, context) : undefined,
3786
- FileSystem: output.FileSystem != null ? de_FileSystem(output.FileSystem, context) : undefined,
3787
- KmsKeyId: __expectString(output.KmsKeyId),
3788
- Lifecycle: __expectString(output.Lifecycle),
3789
- OwnerId: __expectString(output.OwnerId),
3790
- ProgressPercent: __expectInt32(output.ProgressPercent),
3791
- ResourceARN: __expectString(output.ResourceARN),
3792
- ResourceType: __expectString(output.ResourceType),
3793
- SourceBackupId: __expectString(output.SourceBackupId),
3794
- SourceBackupRegion: __expectString(output.SourceBackupRegion),
3795
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
3796
- Type: __expectString(output.Type),
3797
- Volume: output.Volume != null ? de_Volume(output.Volume, context) : undefined,
3798
- };
3799
- };
3800
- const de_BackupBeingCopied = (output, context) => {
3801
- return {
3802
- BackupId: __expectString(output.BackupId),
3803
- Message: __expectString(output.Message),
3804
- };
3805
- };
3806
- const de_BackupFailureDetails = (output, context) => {
3807
- return {
3808
- Message: __expectString(output.Message),
3809
- };
3810
- };
3811
- const de_BackupInProgress = (output, context) => {
3812
- return {
3813
- Message: __expectString(output.Message),
3814
- };
3815
- };
3816
- const de_BackupNotFound = (output, context) => {
3817
- return {
3818
- Message: __expectString(output.Message),
3819
- };
3820
- };
3821
- const de_BackupRestoring = (output, context) => {
3822
- return {
3823
- FileSystemId: __expectString(output.FileSystemId),
3824
- Message: __expectString(output.Message),
3825
- };
3826
- };
3827
- const de_Backups = (output, context) => {
3828
- const retVal = (output || [])
3829
- .filter((e) => e != null)
3830
- .map((entry) => {
3831
- if (entry === null) {
3832
- return null;
3833
- }
3834
- return de_Backup(entry, context);
3835
- });
3836
- return retVal;
3837
- };
3838
- const de_BadRequest = (output, context) => {
3839
- return {
3840
- Message: __expectString(output.Message),
3841
- };
3842
- };
3843
- const de_CancelDataRepositoryTaskResponse = (output, context) => {
3844
- return {
3845
- Lifecycle: __expectString(output.Lifecycle),
3846
- TaskId: __expectString(output.TaskId),
3847
- };
3848
- };
3849
- const de_CompletionReport = (output, context) => {
3850
- return {
3851
- Enabled: __expectBoolean(output.Enabled),
3852
- Format: __expectString(output.Format),
3853
- Path: __expectString(output.Path),
3854
- Scope: __expectString(output.Scope),
3855
- };
3856
- };
3857
- const de_CopyBackupResponse = (output, context) => {
3858
- return {
3859
- Backup: output.Backup != null ? de_Backup(output.Backup, context) : undefined,
3860
- };
3861
- };
3862
- const de_CreateBackupResponse = (output, context) => {
3863
- return {
3864
- Backup: output.Backup != null ? de_Backup(output.Backup, context) : undefined,
3865
- };
3866
- };
3867
- const de_CreateDataRepositoryAssociationResponse = (output, context) => {
3868
- return {
3869
- Association: output.Association != null ? de_DataRepositoryAssociation(output.Association, context) : undefined,
3870
- };
3871
- };
3872
- const de_CreateDataRepositoryTaskResponse = (output, context) => {
3873
- return {
3874
- DataRepositoryTask: output.DataRepositoryTask != null ? de_DataRepositoryTask(output.DataRepositoryTask, context) : undefined,
3875
- };
3876
- };
3877
- const de_CreateFileCacheResponse = (output, context) => {
3878
- return {
3879
- FileCache: output.FileCache != null ? de_FileCacheCreating(output.FileCache, context) : undefined,
3880
- };
3881
- };
3882
- const de_CreateFileSystemFromBackupResponse = (output, context) => {
3883
- return {
3884
- FileSystem: output.FileSystem != null ? de_FileSystem(output.FileSystem, context) : undefined,
3885
- };
3886
- };
3887
- const de_CreateFileSystemResponse = (output, context) => {
3888
- return {
3889
- FileSystem: output.FileSystem != null ? de_FileSystem(output.FileSystem, context) : undefined,
3890
- };
3891
- };
3892
- const de_CreateSnapshotResponse = (output, context) => {
3893
- return {
3894
- Snapshot: output.Snapshot != null ? de_Snapshot(output.Snapshot, context) : undefined,
3895
- };
3896
- };
3897
- const de_CreateStorageVirtualMachineResponse = (output, context) => {
3898
- return {
3899
- StorageVirtualMachine: output.StorageVirtualMachine != null
3900
- ? de_StorageVirtualMachine(output.StorageVirtualMachine, context)
3901
- : undefined,
3902
- };
3903
- };
3904
- const de_CreateVolumeFromBackupResponse = (output, context) => {
3905
- return {
3906
- Volume: output.Volume != null ? de_Volume(output.Volume, context) : undefined,
3907
- };
3908
- };
3909
- const de_CreateVolumeResponse = (output, context) => {
3910
- return {
3911
- Volume: output.Volume != null ? de_Volume(output.Volume, context) : undefined,
3912
- };
3913
- };
3914
- const de_DataRepositoryAssociation = (output, context) => {
3915
- return {
3916
- AssociationId: __expectString(output.AssociationId),
3917
- BatchImportMetaDataOnCreate: __expectBoolean(output.BatchImportMetaDataOnCreate),
3918
- CreationTime: output.CreationTime != null
3919
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3920
- : undefined,
3921
- DataRepositoryPath: __expectString(output.DataRepositoryPath),
3922
- DataRepositorySubdirectories: output.DataRepositorySubdirectories != null
3923
- ? de_SubDirectoriesPaths(output.DataRepositorySubdirectories, context)
3924
- : undefined,
3925
- FailureDetails: output.FailureDetails != null ? de_DataRepositoryFailureDetails(output.FailureDetails, context) : undefined,
3926
- FileCacheId: __expectString(output.FileCacheId),
3927
- FileCachePath: __expectString(output.FileCachePath),
3928
- FileSystemId: __expectString(output.FileSystemId),
3929
- FileSystemPath: __expectString(output.FileSystemPath),
3930
- ImportedFileChunkSize: __expectInt32(output.ImportedFileChunkSize),
3931
- Lifecycle: __expectString(output.Lifecycle),
3932
- NFS: output.NFS != null ? de_NFSDataRepositoryConfiguration(output.NFS, context) : undefined,
3933
- ResourceARN: __expectString(output.ResourceARN),
3934
- S3: output.S3 != null ? de_S3DataRepositoryConfiguration(output.S3, context) : undefined,
3935
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
3936
- };
3937
- };
3938
- const de_DataRepositoryAssociationIds = (output, context) => {
3939
- const retVal = (output || [])
3940
- .filter((e) => e != null)
3941
- .map((entry) => {
3942
- if (entry === null) {
3943
- return null;
3944
- }
3945
- return __expectString(entry);
3946
- });
3947
- return retVal;
3948
- };
3949
- const de_DataRepositoryAssociationNotFound = (output, context) => {
3950
- return {
3951
- Message: __expectString(output.Message),
3952
- };
3953
- };
3954
- const de_DataRepositoryAssociations = (output, context) => {
3955
- const retVal = (output || [])
3956
- .filter((e) => e != null)
3957
- .map((entry) => {
3958
- if (entry === null) {
3959
- return null;
3960
- }
3961
- return de_DataRepositoryAssociation(entry, context);
3962
- });
3963
- return retVal;
3964
- };
3965
- const de_DataRepositoryConfiguration = (output, context) => {
3966
- return {
3967
- AutoImportPolicy: __expectString(output.AutoImportPolicy),
3968
- ExportPath: __expectString(output.ExportPath),
3969
- FailureDetails: output.FailureDetails != null ? de_DataRepositoryFailureDetails(output.FailureDetails, context) : undefined,
3970
- ImportPath: __expectString(output.ImportPath),
3971
- ImportedFileChunkSize: __expectInt32(output.ImportedFileChunkSize),
3972
- Lifecycle: __expectString(output.Lifecycle),
3973
- };
3974
- };
3975
- const de_DataRepositoryFailureDetails = (output, context) => {
3976
- return {
3977
- Message: __expectString(output.Message),
3978
- };
3979
- };
3980
- const de_DataRepositoryTask = (output, context) => {
3981
- return {
3982
- CapacityToRelease: __expectLong(output.CapacityToRelease),
3983
- CreationTime: output.CreationTime != null
3984
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3985
- : undefined,
3986
- EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
3987
- FailureDetails: output.FailureDetails != null ? de_DataRepositoryTaskFailureDetails(output.FailureDetails, context) : undefined,
3988
- FileCacheId: __expectString(output.FileCacheId),
3989
- FileSystemId: __expectString(output.FileSystemId),
3990
- Lifecycle: __expectString(output.Lifecycle),
3991
- Paths: output.Paths != null ? de_DataRepositoryTaskPaths(output.Paths, context) : undefined,
3992
- Report: output.Report != null ? de_CompletionReport(output.Report, context) : undefined,
3993
- ResourceARN: __expectString(output.ResourceARN),
3994
- StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3995
- Status: output.Status != null ? de_DataRepositoryTaskStatus(output.Status, context) : undefined,
3996
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
3997
- TaskId: __expectString(output.TaskId),
3998
- Type: __expectString(output.Type),
3999
- };
4000
- };
4001
- const de_DataRepositoryTaskEnded = (output, context) => {
4002
- return {
4003
- Message: __expectString(output.Message),
4004
- };
4005
- };
4006
- const de_DataRepositoryTaskExecuting = (output, context) => {
4007
- return {
4008
- Message: __expectString(output.Message),
4009
- };
4010
- };
4011
- const de_DataRepositoryTaskFailureDetails = (output, context) => {
4012
- return {
4013
- Message: __expectString(output.Message),
4014
- };
4015
- };
4016
- const de_DataRepositoryTaskNotFound = (output, context) => {
4017
- return {
4018
- Message: __expectString(output.Message),
4019
- };
4020
- };
4021
- const de_DataRepositoryTaskPaths = (output, context) => {
4022
- const retVal = (output || [])
4023
- .filter((e) => e != null)
4024
- .map((entry) => {
4025
- if (entry === null) {
4026
- return null;
4027
- }
4028
- return __expectString(entry);
4029
- });
4030
- return retVal;
4031
- };
4032
- const de_DataRepositoryTasks = (output, context) => {
4033
- const retVal = (output || [])
4034
- .filter((e) => e != null)
4035
- .map((entry) => {
4036
- if (entry === null) {
4037
- return null;
4038
- }
4039
- return de_DataRepositoryTask(entry, context);
4040
- });
4041
- return retVal;
4042
- };
4043
- const de_DataRepositoryTaskStatus = (output, context) => {
4044
- return {
4045
- FailedCount: __expectLong(output.FailedCount),
4046
- LastUpdatedTime: output.LastUpdatedTime != null
4047
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
4048
- : undefined,
4049
- ReleasedCapacity: __expectLong(output.ReleasedCapacity),
4050
- SucceededCount: __expectLong(output.SucceededCount),
4051
- TotalCount: __expectLong(output.TotalCount),
4052
- };
4053
- };
4054
- const de_DeleteBackupResponse = (output, context) => {
4055
- return {
4056
- BackupId: __expectString(output.BackupId),
4057
- Lifecycle: __expectString(output.Lifecycle),
4058
- };
4059
- };
4060
- const de_DeleteDataRepositoryAssociationResponse = (output, context) => {
4061
- return {
4062
- AssociationId: __expectString(output.AssociationId),
4063
- DeleteDataInFileSystem: __expectBoolean(output.DeleteDataInFileSystem),
4064
- Lifecycle: __expectString(output.Lifecycle),
4065
- };
4066
- };
4067
- const de_DeleteFileCacheResponse = (output, context) => {
4068
- return {
4069
- FileCacheId: __expectString(output.FileCacheId),
4070
- Lifecycle: __expectString(output.Lifecycle),
4071
- };
4072
- };
4073
- const de_DeleteFileSystemLustreResponse = (output, context) => {
4074
- return {
4075
- FinalBackupId: __expectString(output.FinalBackupId),
4076
- FinalBackupTags: output.FinalBackupTags != null ? de_Tags(output.FinalBackupTags, context) : undefined,
4077
- };
4078
- };
4079
- const de_DeleteFileSystemOpenZFSResponse = (output, context) => {
4080
- return {
4081
- FinalBackupId: __expectString(output.FinalBackupId),
4082
- FinalBackupTags: output.FinalBackupTags != null ? de_Tags(output.FinalBackupTags, context) : undefined,
4083
- };
4084
- };
4085
- const de_DeleteFileSystemResponse = (output, context) => {
4086
- return {
4087
- FileSystemId: __expectString(output.FileSystemId),
4088
- Lifecycle: __expectString(output.Lifecycle),
4089
- LustreResponse: output.LustreResponse != null ? de_DeleteFileSystemLustreResponse(output.LustreResponse, context) : undefined,
4090
- OpenZFSResponse: output.OpenZFSResponse != null ? de_DeleteFileSystemOpenZFSResponse(output.OpenZFSResponse, context) : undefined,
4091
- WindowsResponse: output.WindowsResponse != null ? de_DeleteFileSystemWindowsResponse(output.WindowsResponse, context) : undefined,
4092
- };
4093
- };
4094
- const de_DeleteFileSystemWindowsResponse = (output, context) => {
4095
- return {
4096
- FinalBackupId: __expectString(output.FinalBackupId),
4097
- FinalBackupTags: output.FinalBackupTags != null ? de_Tags(output.FinalBackupTags, context) : undefined,
4098
- };
4099
- };
4100
- const de_DeleteSnapshotResponse = (output, context) => {
4101
- return {
4102
- Lifecycle: __expectString(output.Lifecycle),
4103
- SnapshotId: __expectString(output.SnapshotId),
4104
- };
4105
- };
4106
- const de_DeleteStorageVirtualMachineResponse = (output, context) => {
4107
- return {
4108
- Lifecycle: __expectString(output.Lifecycle),
4109
- StorageVirtualMachineId: __expectString(output.StorageVirtualMachineId),
4110
- };
4111
- };
4112
- const de_DeleteVolumeOntapResponse = (output, context) => {
4113
- return {
4114
- FinalBackupId: __expectString(output.FinalBackupId),
4115
- FinalBackupTags: output.FinalBackupTags != null ? de_Tags(output.FinalBackupTags, context) : undefined,
4116
- };
4117
- };
4118
- const de_DeleteVolumeResponse = (output, context) => {
4119
- return {
4120
- Lifecycle: __expectString(output.Lifecycle),
4121
- OntapResponse: output.OntapResponse != null ? de_DeleteVolumeOntapResponse(output.OntapResponse, context) : undefined,
4122
- VolumeId: __expectString(output.VolumeId),
4123
- };
4124
- };
4125
- const de_DescribeBackupsResponse = (output, context) => {
4126
- return {
4127
- Backups: output.Backups != null ? de_Backups(output.Backups, context) : undefined,
4128
- NextToken: __expectString(output.NextToken),
4129
- };
4130
- };
4131
- const de_DescribeDataRepositoryAssociationsResponse = (output, context) => {
4132
- return {
4133
- Associations: output.Associations != null ? de_DataRepositoryAssociations(output.Associations, context) : undefined,
4134
- NextToken: __expectString(output.NextToken),
4135
- };
4136
- };
4137
- const de_DescribeDataRepositoryTasksResponse = (output, context) => {
4138
- return {
4139
- DataRepositoryTasks: output.DataRepositoryTasks != null ? de_DataRepositoryTasks(output.DataRepositoryTasks, context) : undefined,
4140
- NextToken: __expectString(output.NextToken),
4141
- };
4142
- };
4143
- const de_DescribeFileCachesResponse = (output, context) => {
4144
- return {
4145
- FileCaches: output.FileCaches != null ? de_FileCaches(output.FileCaches, context) : undefined,
4146
- NextToken: __expectString(output.NextToken),
4147
- };
4148
- };
4149
- const de_DescribeFileSystemAliasesResponse = (output, context) => {
4150
- return {
4151
- Aliases: output.Aliases != null ? de_Aliases(output.Aliases, context) : undefined,
4152
- NextToken: __expectString(output.NextToken),
4153
- };
4154
- };
4155
- const de_DescribeFileSystemsResponse = (output, context) => {
4156
- return {
4157
- FileSystems: output.FileSystems != null ? de_FileSystems(output.FileSystems, context) : undefined,
4158
- NextToken: __expectString(output.NextToken),
4159
- };
4160
- };
4161
- const de_DescribeSnapshotsResponse = (output, context) => {
4162
- return {
4163
- NextToken: __expectString(output.NextToken),
4164
- Snapshots: output.Snapshots != null ? de_Snapshots(output.Snapshots, context) : undefined,
4165
- };
4166
- };
4167
- const de_DescribeStorageVirtualMachinesResponse = (output, context) => {
4168
- return {
4169
- NextToken: __expectString(output.NextToken),
4170
- StorageVirtualMachines: output.StorageVirtualMachines != null
4171
- ? de_StorageVirtualMachines(output.StorageVirtualMachines, context)
4172
- : undefined,
4173
- };
4174
- };
4175
- const de_DescribeVolumesResponse = (output, context) => {
4176
- return {
4177
- NextToken: __expectString(output.NextToken),
4178
- Volumes: output.Volumes != null ? de_Volumes(output.Volumes, context) : undefined,
4179
- };
4180
- };
4181
- const de_DisassociateFileSystemAliasesResponse = (output, context) => {
4182
- return {
4183
- Aliases: output.Aliases != null ? de_Aliases(output.Aliases, context) : undefined,
4184
- };
4185
- };
4186
- const de_DiskIopsConfiguration = (output, context) => {
4187
- return {
4188
- Iops: __expectLong(output.Iops),
4189
- Mode: __expectString(output.Mode),
4190
- };
4191
- };
4192
- const de_DnsIps = (output, context) => {
4193
- const retVal = (output || [])
4194
- .filter((e) => e != null)
4195
- .map((entry) => {
4196
- if (entry === null) {
4197
- return null;
4198
- }
4199
- return __expectString(entry);
4200
- });
4201
- return retVal;
4202
- };
4203
- const de_EventTypes = (output, context) => {
4204
- const retVal = (output || [])
4205
- .filter((e) => e != null)
4206
- .map((entry) => {
4207
- if (entry === null) {
4208
- return null;
4209
- }
4210
- return __expectString(entry);
4211
- });
4212
- return retVal;
4213
- };
4214
- const de_FileCache = (output, context) => {
4215
- return {
4216
- CreationTime: output.CreationTime != null
4217
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4218
- : undefined,
4219
- DNSName: __expectString(output.DNSName),
4220
- DataRepositoryAssociationIds: output.DataRepositoryAssociationIds != null
4221
- ? de_DataRepositoryAssociationIds(output.DataRepositoryAssociationIds, context)
4222
- : undefined,
4223
- FailureDetails: output.FailureDetails != null ? de_FileCacheFailureDetails(output.FailureDetails, context) : undefined,
4224
- FileCacheId: __expectString(output.FileCacheId),
4225
- FileCacheType: __expectString(output.FileCacheType),
4226
- FileCacheTypeVersion: __expectString(output.FileCacheTypeVersion),
4227
- KmsKeyId: __expectString(output.KmsKeyId),
4228
- Lifecycle: __expectString(output.Lifecycle),
4229
- LustreConfiguration: output.LustreConfiguration != null
4230
- ? de_FileCacheLustreConfiguration(output.LustreConfiguration, context)
4231
- : undefined,
4232
- NetworkInterfaceIds: output.NetworkInterfaceIds != null ? de_NetworkInterfaceIds(output.NetworkInterfaceIds, context) : undefined,
4233
- OwnerId: __expectString(output.OwnerId),
4234
- ResourceARN: __expectString(output.ResourceARN),
4235
- StorageCapacity: __expectInt32(output.StorageCapacity),
4236
- SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
4237
- VpcId: __expectString(output.VpcId),
4238
- };
4239
- };
4240
- const de_FileCacheCreating = (output, context) => {
4241
- return {
4242
- CopyTagsToDataRepositoryAssociations: __expectBoolean(output.CopyTagsToDataRepositoryAssociations),
4243
- CreationTime: output.CreationTime != null
4244
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4245
- : undefined,
4246
- DNSName: __expectString(output.DNSName),
4247
- DataRepositoryAssociationIds: output.DataRepositoryAssociationIds != null
4248
- ? de_DataRepositoryAssociationIds(output.DataRepositoryAssociationIds, context)
4249
- : undefined,
4250
- FailureDetails: output.FailureDetails != null ? de_FileCacheFailureDetails(output.FailureDetails, context) : undefined,
4251
- FileCacheId: __expectString(output.FileCacheId),
4252
- FileCacheType: __expectString(output.FileCacheType),
4253
- FileCacheTypeVersion: __expectString(output.FileCacheTypeVersion),
4254
- KmsKeyId: __expectString(output.KmsKeyId),
4255
- Lifecycle: __expectString(output.Lifecycle),
4256
- LustreConfiguration: output.LustreConfiguration != null
4257
- ? de_FileCacheLustreConfiguration(output.LustreConfiguration, context)
4258
- : undefined,
4259
- NetworkInterfaceIds: output.NetworkInterfaceIds != null ? de_NetworkInterfaceIds(output.NetworkInterfaceIds, context) : undefined,
4260
- OwnerId: __expectString(output.OwnerId),
4261
- ResourceARN: __expectString(output.ResourceARN),
4262
- StorageCapacity: __expectInt32(output.StorageCapacity),
4263
- SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
4264
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4265
- VpcId: __expectString(output.VpcId),
4266
- };
4267
- };
4268
- const de_FileCacheFailureDetails = (output, context) => {
4269
- return {
4270
- Message: __expectString(output.Message),
4271
- };
4272
- };
4273
- const de_FileCacheLustreConfiguration = (output, context) => {
4274
- return {
4275
- DeploymentType: __expectString(output.DeploymentType),
4276
- LogConfiguration: output.LogConfiguration != null ? de_LustreLogConfiguration(output.LogConfiguration, context) : undefined,
4277
- MetadataConfiguration: output.MetadataConfiguration != null
4278
- ? de_FileCacheLustreMetadataConfiguration(output.MetadataConfiguration, context)
4279
- : undefined,
4280
- MountName: __expectString(output.MountName),
4281
- PerUnitStorageThroughput: __expectInt32(output.PerUnitStorageThroughput),
4282
- WeeklyMaintenanceStartTime: __expectString(output.WeeklyMaintenanceStartTime),
4283
- };
4284
- };
4285
- const de_FileCacheLustreMetadataConfiguration = (output, context) => {
4286
- return {
4287
- StorageCapacity: __expectInt32(output.StorageCapacity),
4288
- };
4289
- };
4290
- const de_FileCacheNotFound = (output, context) => {
4291
- return {
4292
- Message: __expectString(output.Message),
4293
- };
4294
- };
4295
- const de_FileCaches = (output, context) => {
4296
- const retVal = (output || [])
4297
- .filter((e) => e != null)
4298
- .map((entry) => {
4299
- if (entry === null) {
4300
- return null;
4301
- }
4302
- return de_FileCache(entry, context);
4303
- });
4304
- return retVal;
4305
- };
4306
- const de_FileSystem = (output, context) => {
4307
- return {
4308
- AdministrativeActions: output.AdministrativeActions != null
4309
- ? de_AdministrativeActions(output.AdministrativeActions, context)
4310
- : undefined,
4311
- CreationTime: output.CreationTime != null
4312
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4313
- : undefined,
4314
- DNSName: __expectString(output.DNSName),
4315
- FailureDetails: output.FailureDetails != null ? de_FileSystemFailureDetails(output.FailureDetails, context) : undefined,
4316
- FileSystemId: __expectString(output.FileSystemId),
4317
- FileSystemType: __expectString(output.FileSystemType),
4318
- FileSystemTypeVersion: __expectString(output.FileSystemTypeVersion),
4319
- KmsKeyId: __expectString(output.KmsKeyId),
4320
- Lifecycle: __expectString(output.Lifecycle),
4321
- LustreConfiguration: output.LustreConfiguration != null
4322
- ? de_LustreFileSystemConfiguration(output.LustreConfiguration, context)
4323
- : undefined,
4324
- NetworkInterfaceIds: output.NetworkInterfaceIds != null ? de_NetworkInterfaceIds(output.NetworkInterfaceIds, context) : undefined,
4325
- OntapConfiguration: output.OntapConfiguration != null
4326
- ? de_OntapFileSystemConfiguration(output.OntapConfiguration, context)
4327
- : undefined,
4328
- OpenZFSConfiguration: output.OpenZFSConfiguration != null
4329
- ? de_OpenZFSFileSystemConfiguration(output.OpenZFSConfiguration, context)
4330
- : undefined,
4331
- OwnerId: __expectString(output.OwnerId),
4332
- ResourceARN: __expectString(output.ResourceARN),
4333
- StorageCapacity: __expectInt32(output.StorageCapacity),
4334
- StorageType: __expectString(output.StorageType),
4335
- SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
4336
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4337
- VpcId: __expectString(output.VpcId),
4338
- WindowsConfiguration: output.WindowsConfiguration != null
4339
- ? de_WindowsFileSystemConfiguration(output.WindowsConfiguration, context)
4340
- : undefined,
4341
- };
4342
- };
4343
- const de_FileSystemEndpoint = (output, context) => {
4344
- return {
4345
- DNSName: __expectString(output.DNSName),
4346
- IpAddresses: output.IpAddresses != null ? de_OntapEndpointIpAddresses(output.IpAddresses, context) : undefined,
4347
- };
4348
- };
4349
- const de_FileSystemEndpoints = (output, context) => {
4350
- return {
4351
- Intercluster: output.Intercluster != null ? de_FileSystemEndpoint(output.Intercluster, context) : undefined,
4352
- Management: output.Management != null ? de_FileSystemEndpoint(output.Management, context) : undefined,
4353
- };
4354
- };
4355
- const de_FileSystemFailureDetails = (output, context) => {
4356
- return {
4357
- Message: __expectString(output.Message),
4358
- };
4359
- };
4360
- const de_FileSystemMaintenanceOperations = (output, context) => {
4361
- const retVal = (output || [])
4362
- .filter((e) => e != null)
4363
- .map((entry) => {
4364
- if (entry === null) {
4365
- return null;
4366
- }
4367
- return __expectString(entry);
4368
- });
4369
- return retVal;
4370
- };
4371
- const de_FileSystemNotFound = (output, context) => {
4372
- return {
4373
- Message: __expectString(output.Message),
4374
- };
4375
- };
4376
- const de_FileSystems = (output, context) => {
4377
- const retVal = (output || [])
4378
- .filter((e) => e != null)
4379
- .map((entry) => {
4380
- if (entry === null) {
4381
- return null;
4382
- }
4383
- return de_FileSystem(entry, context);
4384
- });
4385
- return retVal;
4386
- };
4387
- const de_IncompatibleParameterError = (output, context) => {
4388
- return {
4389
- Message: __expectString(output.Message),
4390
- Parameter: __expectString(output.Parameter),
4391
- };
4392
- };
4393
- const de_IncompatibleRegionForMultiAZ = (output, context) => {
4394
- return {
4395
- Message: __expectString(output.Message),
4396
- };
4397
- };
4398
- const de_InternalServerError = (output, context) => {
4399
- return {
4400
- Message: __expectString(output.Message),
4401
- };
4402
- };
4403
- const de_InvalidDataRepositoryType = (output, context) => {
4404
- return {
4405
- Message: __expectString(output.Message),
4406
- };
4407
- };
4408
- const de_InvalidDestinationKmsKey = (output, context) => {
4409
- return {
4410
- Message: __expectString(output.Message),
4411
- };
4412
- };
4413
- const de_InvalidExportPath = (output, context) => {
4414
- return {
4415
- Message: __expectString(output.Message),
4416
- };
4417
- };
4418
- const de_InvalidImportPath = (output, context) => {
4419
- return {
4420
- Message: __expectString(output.Message),
4421
- };
4422
- };
4423
- const de_InvalidNetworkSettings = (output, context) => {
4424
- return {
4425
- InvalidRouteTableId: __expectString(output.InvalidRouteTableId),
4426
- InvalidSecurityGroupId: __expectString(output.InvalidSecurityGroupId),
4427
- InvalidSubnetId: __expectString(output.InvalidSubnetId),
4428
- Message: __expectString(output.Message),
4429
- };
2736
+ const de_CreateFileCacheResponse = (output, context) => {
2737
+ return take(output, {
2738
+ FileCache: (_) => de_FileCacheCreating(_, context),
2739
+ });
4430
2740
  };
4431
- const de_InvalidPerUnitStorageThroughput = (output, context) => {
4432
- return {
4433
- Message: __expectString(output.Message),
4434
- };
2741
+ const de_CreateFileSystemFromBackupResponse = (output, context) => {
2742
+ return take(output, {
2743
+ FileSystem: (_) => de_FileSystem(_, context),
2744
+ });
4435
2745
  };
4436
- const de_InvalidRegion = (output, context) => {
4437
- return {
4438
- Message: __expectString(output.Message),
4439
- };
2746
+ const de_CreateFileSystemResponse = (output, context) => {
2747
+ return take(output, {
2748
+ FileSystem: (_) => de_FileSystem(_, context),
2749
+ });
4440
2750
  };
4441
- const de_InvalidSourceKmsKey = (output, context) => {
4442
- return {
4443
- Message: __expectString(output.Message),
4444
- };
2751
+ const de_CreateSnapshotResponse = (output, context) => {
2752
+ return take(output, {
2753
+ Snapshot: (_) => de_Snapshot(_, context),
2754
+ });
4445
2755
  };
4446
- const de_LifecycleTransitionReason = (output, context) => {
4447
- return {
4448
- Message: __expectString(output.Message),
4449
- };
2756
+ const de_CreateStorageVirtualMachineResponse = (output, context) => {
2757
+ return take(output, {
2758
+ StorageVirtualMachine: (_) => de_StorageVirtualMachine(_, context),
2759
+ });
4450
2760
  };
4451
- const de_ListTagsForResourceResponse = (output, context) => {
4452
- return {
4453
- NextToken: __expectString(output.NextToken),
4454
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4455
- };
2761
+ const de_CreateVolumeFromBackupResponse = (output, context) => {
2762
+ return take(output, {
2763
+ Volume: (_) => de_Volume(_, context),
2764
+ });
4456
2765
  };
4457
- const de_LustreFileSystemConfiguration = (output, context) => {
4458
- return {
4459
- AutomaticBackupRetentionDays: __expectInt32(output.AutomaticBackupRetentionDays),
4460
- CopyTagsToBackups: __expectBoolean(output.CopyTagsToBackups),
4461
- DailyAutomaticBackupStartTime: __expectString(output.DailyAutomaticBackupStartTime),
4462
- DataCompressionType: __expectString(output.DataCompressionType),
4463
- DataRepositoryConfiguration: output.DataRepositoryConfiguration != null
4464
- ? de_DataRepositoryConfiguration(output.DataRepositoryConfiguration, context)
4465
- : undefined,
4466
- DeploymentType: __expectString(output.DeploymentType),
4467
- DriveCacheType: __expectString(output.DriveCacheType),
4468
- LogConfiguration: output.LogConfiguration != null ? de_LustreLogConfiguration(output.LogConfiguration, context) : undefined,
4469
- MountName: __expectString(output.MountName),
4470
- PerUnitStorageThroughput: __expectInt32(output.PerUnitStorageThroughput),
4471
- RootSquashConfiguration: output.RootSquashConfiguration != null
4472
- ? de_LustreRootSquashConfiguration(output.RootSquashConfiguration, context)
4473
- : undefined,
4474
- WeeklyMaintenanceStartTime: __expectString(output.WeeklyMaintenanceStartTime),
4475
- };
2766
+ const de_CreateVolumeResponse = (output, context) => {
2767
+ return take(output, {
2768
+ Volume: (_) => de_Volume(_, context),
2769
+ });
4476
2770
  };
4477
- const de_LustreLogConfiguration = (output, context) => {
4478
- return {
4479
- Destination: __expectString(output.Destination),
4480
- Level: __expectString(output.Level),
4481
- };
2771
+ const de_DataRepositoryAssociation = (output, context) => {
2772
+ return take(output, {
2773
+ AssociationId: __expectString,
2774
+ BatchImportMetaDataOnCreate: __expectBoolean,
2775
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2776
+ DataRepositoryPath: __expectString,
2777
+ DataRepositorySubdirectories: _json,
2778
+ FailureDetails: _json,
2779
+ FileCacheId: __expectString,
2780
+ FileCachePath: __expectString,
2781
+ FileSystemId: __expectString,
2782
+ FileSystemPath: __expectString,
2783
+ ImportedFileChunkSize: __expectInt32,
2784
+ Lifecycle: __expectString,
2785
+ NFS: _json,
2786
+ ResourceARN: __expectString,
2787
+ S3: _json,
2788
+ Tags: _json,
2789
+ });
4482
2790
  };
4483
- const de_LustreNoSquashNids = (output, context) => {
2791
+ const de_DataRepositoryAssociations = (output, context) => {
4484
2792
  const retVal = (output || [])
4485
2793
  .filter((e) => e != null)
4486
2794
  .map((entry) => {
4487
- if (entry === null) {
4488
- return null;
4489
- }
4490
- return __expectString(entry);
2795
+ return de_DataRepositoryAssociation(entry, context);
4491
2796
  });
4492
2797
  return retVal;
4493
2798
  };
4494
- const de_LustreRootSquashConfiguration = (output, context) => {
4495
- return {
4496
- NoSquashNids: output.NoSquashNids != null ? de_LustreNoSquashNids(output.NoSquashNids, context) : undefined,
4497
- RootSquash: __expectString(output.RootSquash),
4498
- };
4499
- };
4500
- const de_MissingFileCacheConfiguration = (output, context) => {
4501
- return {
4502
- Message: __expectString(output.Message),
4503
- };
4504
- };
4505
- const de_MissingFileSystemConfiguration = (output, context) => {
4506
- return {
4507
- Message: __expectString(output.Message),
4508
- };
4509
- };
4510
- const de_MissingVolumeConfiguration = (output, context) => {
4511
- return {
4512
- Message: __expectString(output.Message),
4513
- };
2799
+ const de_DataRepositoryTask = (output, context) => {
2800
+ return take(output, {
2801
+ CapacityToRelease: __expectLong,
2802
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2803
+ EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2804
+ FailureDetails: _json,
2805
+ FileCacheId: __expectString,
2806
+ FileSystemId: __expectString,
2807
+ Lifecycle: __expectString,
2808
+ Paths: _json,
2809
+ Report: _json,
2810
+ ResourceARN: __expectString,
2811
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2812
+ Status: (_) => de_DataRepositoryTaskStatus(_, context),
2813
+ Tags: _json,
2814
+ TaskId: __expectString,
2815
+ Type: __expectString,
2816
+ });
4514
2817
  };
4515
- const de_NetworkInterfaceIds = (output, context) => {
2818
+ const de_DataRepositoryTasks = (output, context) => {
4516
2819
  const retVal = (output || [])
4517
2820
  .filter((e) => e != null)
4518
2821
  .map((entry) => {
4519
- if (entry === null) {
4520
- return null;
4521
- }
4522
- return __expectString(entry);
2822
+ return de_DataRepositoryTask(entry, context);
4523
2823
  });
4524
2824
  return retVal;
4525
2825
  };
4526
- const de_NFSDataRepositoryConfiguration = (output, context) => {
4527
- return {
4528
- AutoExportPolicy: output.AutoExportPolicy != null ? de_AutoExportPolicy(output.AutoExportPolicy, context) : undefined,
4529
- DnsIps: output.DnsIps != null ? de_RepositoryDnsIps(output.DnsIps, context) : undefined,
4530
- Version: __expectString(output.Version),
4531
- };
4532
- };
4533
- const de_NotServiceResourceError = (output, context) => {
4534
- return {
4535
- Message: __expectString(output.Message),
4536
- ResourceARN: __expectString(output.ResourceARN),
4537
- };
2826
+ const de_DataRepositoryTaskStatus = (output, context) => {
2827
+ return take(output, {
2828
+ FailedCount: __expectLong,
2829
+ LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2830
+ ReleasedCapacity: __expectLong,
2831
+ SucceededCount: __expectLong,
2832
+ TotalCount: __expectLong,
2833
+ });
4538
2834
  };
4539
- const de_OntapEndpointIpAddresses = (output, context) => {
4540
- const retVal = (output || [])
4541
- .filter((e) => e != null)
4542
- .map((entry) => {
4543
- if (entry === null) {
4544
- return null;
4545
- }
4546
- return __expectString(entry);
2835
+ const de_DescribeBackupsResponse = (output, context) => {
2836
+ return take(output, {
2837
+ Backups: (_) => de_Backups(_, context),
2838
+ NextToken: __expectString,
4547
2839
  });
4548
- return retVal;
4549
2840
  };
4550
- const de_OntapFileSystemConfiguration = (output, context) => {
4551
- return {
4552
- AutomaticBackupRetentionDays: __expectInt32(output.AutomaticBackupRetentionDays),
4553
- DailyAutomaticBackupStartTime: __expectString(output.DailyAutomaticBackupStartTime),
4554
- DeploymentType: __expectString(output.DeploymentType),
4555
- DiskIopsConfiguration: output.DiskIopsConfiguration != null
4556
- ? de_DiskIopsConfiguration(output.DiskIopsConfiguration, context)
4557
- : undefined,
4558
- EndpointIpAddressRange: __expectString(output.EndpointIpAddressRange),
4559
- Endpoints: output.Endpoints != null ? de_FileSystemEndpoints(output.Endpoints, context) : undefined,
4560
- PreferredSubnetId: __expectString(output.PreferredSubnetId),
4561
- RouteTableIds: output.RouteTableIds != null ? de_RouteTableIds(output.RouteTableIds, context) : undefined,
4562
- ThroughputCapacity: __expectInt32(output.ThroughputCapacity),
4563
- WeeklyMaintenanceStartTime: __expectString(output.WeeklyMaintenanceStartTime),
4564
- };
2841
+ const de_DescribeDataRepositoryAssociationsResponse = (output, context) => {
2842
+ return take(output, {
2843
+ Associations: (_) => de_DataRepositoryAssociations(_, context),
2844
+ NextToken: __expectString,
2845
+ });
4565
2846
  };
4566
- const de_OntapVolumeConfiguration = (output, context) => {
4567
- return {
4568
- CopyTagsToBackups: __expectBoolean(output.CopyTagsToBackups),
4569
- FlexCacheEndpointType: __expectString(output.FlexCacheEndpointType),
4570
- JunctionPath: __expectString(output.JunctionPath),
4571
- OntapVolumeType: __expectString(output.OntapVolumeType),
4572
- SecurityStyle: __expectString(output.SecurityStyle),
4573
- SizeInMegabytes: __expectInt32(output.SizeInMegabytes),
4574
- SnapshotPolicy: __expectString(output.SnapshotPolicy),
4575
- StorageEfficiencyEnabled: __expectBoolean(output.StorageEfficiencyEnabled),
4576
- StorageVirtualMachineId: __expectString(output.StorageVirtualMachineId),
4577
- StorageVirtualMachineRoot: __expectBoolean(output.StorageVirtualMachineRoot),
4578
- TieringPolicy: output.TieringPolicy != null ? de_TieringPolicy(output.TieringPolicy, context) : undefined,
4579
- UUID: __expectString(output.UUID),
4580
- };
2847
+ const de_DescribeDataRepositoryTasksResponse = (output, context) => {
2848
+ return take(output, {
2849
+ DataRepositoryTasks: (_) => de_DataRepositoryTasks(_, context),
2850
+ NextToken: __expectString,
2851
+ });
4581
2852
  };
4582
- const de_OpenZFSClientConfiguration = (output, context) => {
4583
- return {
4584
- Clients: __expectString(output.Clients),
4585
- Options: output.Options != null ? de_OpenZFSNfsExportOptions(output.Options, context) : undefined,
4586
- };
2853
+ const de_DescribeFileCachesResponse = (output, context) => {
2854
+ return take(output, {
2855
+ FileCaches: (_) => de_FileCaches(_, context),
2856
+ NextToken: __expectString,
2857
+ });
4587
2858
  };
4588
- const de_OpenZFSClientConfigurations = (output, context) => {
4589
- const retVal = (output || [])
4590
- .filter((e) => e != null)
4591
- .map((entry) => {
4592
- if (entry === null) {
4593
- return null;
4594
- }
4595
- return de_OpenZFSClientConfiguration(entry, context);
2859
+ const de_DescribeFileSystemsResponse = (output, context) => {
2860
+ return take(output, {
2861
+ FileSystems: (_) => de_FileSystems(_, context),
2862
+ NextToken: __expectString,
4596
2863
  });
4597
- return retVal;
4598
2864
  };
4599
- const de_OpenZFSFileSystemConfiguration = (output, context) => {
4600
- return {
4601
- AutomaticBackupRetentionDays: __expectInt32(output.AutomaticBackupRetentionDays),
4602
- CopyTagsToBackups: __expectBoolean(output.CopyTagsToBackups),
4603
- CopyTagsToVolumes: __expectBoolean(output.CopyTagsToVolumes),
4604
- DailyAutomaticBackupStartTime: __expectString(output.DailyAutomaticBackupStartTime),
4605
- DeploymentType: __expectString(output.DeploymentType),
4606
- DiskIopsConfiguration: output.DiskIopsConfiguration != null
4607
- ? de_DiskIopsConfiguration(output.DiskIopsConfiguration, context)
4608
- : undefined,
4609
- RootVolumeId: __expectString(output.RootVolumeId),
4610
- ThroughputCapacity: __expectInt32(output.ThroughputCapacity),
4611
- WeeklyMaintenanceStartTime: __expectString(output.WeeklyMaintenanceStartTime),
4612
- };
2865
+ const de_DescribeSnapshotsResponse = (output, context) => {
2866
+ return take(output, {
2867
+ NextToken: __expectString,
2868
+ Snapshots: (_) => de_Snapshots(_, context),
2869
+ });
4613
2870
  };
4614
- const de_OpenZFSNfsExport = (output, context) => {
4615
- return {
4616
- ClientConfigurations: output.ClientConfigurations != null
4617
- ? de_OpenZFSClientConfigurations(output.ClientConfigurations, context)
4618
- : undefined,
4619
- };
2871
+ const de_DescribeStorageVirtualMachinesResponse = (output, context) => {
2872
+ return take(output, {
2873
+ NextToken: __expectString,
2874
+ StorageVirtualMachines: (_) => de_StorageVirtualMachines(_, context),
2875
+ });
4620
2876
  };
4621
- const de_OpenZFSNfsExportOptions = (output, context) => {
4622
- const retVal = (output || [])
4623
- .filter((e) => e != null)
4624
- .map((entry) => {
4625
- if (entry === null) {
4626
- return null;
4627
- }
4628
- return __expectString(entry);
2877
+ const de_DescribeVolumesResponse = (output, context) => {
2878
+ return take(output, {
2879
+ NextToken: __expectString,
2880
+ Volumes: (_) => de_Volumes(_, context),
4629
2881
  });
4630
- return retVal;
4631
2882
  };
4632
- const de_OpenZFSNfsExports = (output, context) => {
4633
- const retVal = (output || [])
4634
- .filter((e) => e != null)
4635
- .map((entry) => {
4636
- if (entry === null) {
4637
- return null;
4638
- }
4639
- return de_OpenZFSNfsExport(entry, context);
2883
+ const de_FileCache = (output, context) => {
2884
+ return take(output, {
2885
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2886
+ DNSName: __expectString,
2887
+ DataRepositoryAssociationIds: _json,
2888
+ FailureDetails: _json,
2889
+ FileCacheId: __expectString,
2890
+ FileCacheType: __expectString,
2891
+ FileCacheTypeVersion: __expectString,
2892
+ KmsKeyId: __expectString,
2893
+ Lifecycle: __expectString,
2894
+ LustreConfiguration: _json,
2895
+ NetworkInterfaceIds: _json,
2896
+ OwnerId: __expectString,
2897
+ ResourceARN: __expectString,
2898
+ StorageCapacity: __expectInt32,
2899
+ SubnetIds: _json,
2900
+ VpcId: __expectString,
4640
2901
  });
4641
- return retVal;
4642
2902
  };
4643
- const de_OpenZFSOriginSnapshotConfiguration = (output, context) => {
4644
- return {
4645
- CopyStrategy: __expectString(output.CopyStrategy),
4646
- SnapshotARN: __expectString(output.SnapshotARN),
4647
- };
2903
+ const de_FileCacheCreating = (output, context) => {
2904
+ return take(output, {
2905
+ CopyTagsToDataRepositoryAssociations: __expectBoolean,
2906
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2907
+ DNSName: __expectString,
2908
+ DataRepositoryAssociationIds: _json,
2909
+ FailureDetails: _json,
2910
+ FileCacheId: __expectString,
2911
+ FileCacheType: __expectString,
2912
+ FileCacheTypeVersion: __expectString,
2913
+ KmsKeyId: __expectString,
2914
+ Lifecycle: __expectString,
2915
+ LustreConfiguration: _json,
2916
+ NetworkInterfaceIds: _json,
2917
+ OwnerId: __expectString,
2918
+ ResourceARN: __expectString,
2919
+ StorageCapacity: __expectInt32,
2920
+ SubnetIds: _json,
2921
+ Tags: _json,
2922
+ VpcId: __expectString,
2923
+ });
4648
2924
  };
4649
- const de_OpenZFSUserAndGroupQuotas = (output, context) => {
2925
+ const de_FileCaches = (output, context) => {
4650
2926
  const retVal = (output || [])
4651
2927
  .filter((e) => e != null)
4652
2928
  .map((entry) => {
4653
- if (entry === null) {
4654
- return null;
4655
- }
4656
- return de_OpenZFSUserOrGroupQuota(entry, context);
2929
+ return de_FileCache(entry, context);
4657
2930
  });
4658
2931
  return retVal;
4659
2932
  };
4660
- const de_OpenZFSUserOrGroupQuota = (output, context) => {
4661
- return {
4662
- Id: __expectInt32(output.Id),
4663
- StorageCapacityQuotaGiB: __expectInt32(output.StorageCapacityQuotaGiB),
4664
- Type: __expectString(output.Type),
4665
- };
4666
- };
4667
- const de_OpenZFSVolumeConfiguration = (output, context) => {
4668
- return {
4669
- CopyTagsToSnapshots: __expectBoolean(output.CopyTagsToSnapshots),
4670
- DataCompressionType: __expectString(output.DataCompressionType),
4671
- DeleteClonedVolumes: __expectBoolean(output.DeleteClonedVolumes),
4672
- DeleteIntermediateSnaphots: __expectBoolean(output.DeleteIntermediateSnaphots),
4673
- NfsExports: output.NfsExports != null ? de_OpenZFSNfsExports(output.NfsExports, context) : undefined,
4674
- OriginSnapshot: output.OriginSnapshot != null ? de_OpenZFSOriginSnapshotConfiguration(output.OriginSnapshot, context) : undefined,
4675
- ParentVolumeId: __expectString(output.ParentVolumeId),
4676
- ReadOnly: __expectBoolean(output.ReadOnly),
4677
- RecordSizeKiB: __expectInt32(output.RecordSizeKiB),
4678
- RestoreToSnapshot: __expectString(output.RestoreToSnapshot),
4679
- StorageCapacityQuotaGiB: __expectInt32(output.StorageCapacityQuotaGiB),
4680
- StorageCapacityReservationGiB: __expectInt32(output.StorageCapacityReservationGiB),
4681
- UserAndGroupQuotas: output.UserAndGroupQuotas != null ? de_OpenZFSUserAndGroupQuotas(output.UserAndGroupQuotas, context) : undefined,
4682
- VolumePath: __expectString(output.VolumePath),
4683
- };
4684
- };
4685
- const de_ReleaseFileSystemNfsV3LocksResponse = (output, context) => {
4686
- return {
4687
- FileSystem: output.FileSystem != null ? de_FileSystem(output.FileSystem, context) : undefined,
4688
- };
2933
+ const de_FileSystem = (output, context) => {
2934
+ return take(output, {
2935
+ AdministrativeActions: (_) => de_AdministrativeActions(_, context),
2936
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2937
+ DNSName: __expectString,
2938
+ FailureDetails: _json,
2939
+ FileSystemId: __expectString,
2940
+ FileSystemType: __expectString,
2941
+ FileSystemTypeVersion: __expectString,
2942
+ KmsKeyId: __expectString,
2943
+ Lifecycle: __expectString,
2944
+ LustreConfiguration: _json,
2945
+ NetworkInterfaceIds: _json,
2946
+ OntapConfiguration: _json,
2947
+ OpenZFSConfiguration: _json,
2948
+ OwnerId: __expectString,
2949
+ ResourceARN: __expectString,
2950
+ StorageCapacity: __expectInt32,
2951
+ StorageType: __expectString,
2952
+ SubnetIds: _json,
2953
+ Tags: _json,
2954
+ VpcId: __expectString,
2955
+ WindowsConfiguration: _json,
2956
+ });
4689
2957
  };
4690
- const de_RepositoryDnsIps = (output, context) => {
2958
+ const de_FileSystems = (output, context) => {
4691
2959
  const retVal = (output || [])
4692
2960
  .filter((e) => e != null)
4693
2961
  .map((entry) => {
4694
- if (entry === null) {
4695
- return null;
4696
- }
4697
- return __expectString(entry);
2962
+ return de_FileSystem(entry, context);
4698
2963
  });
4699
2964
  return retVal;
4700
2965
  };
4701
- const de_ResourceDoesNotSupportTagging = (output, context) => {
4702
- return {
4703
- Message: __expectString(output.Message),
4704
- ResourceARN: __expectString(output.ResourceARN),
4705
- };
4706
- };
4707
- const de_ResourceNotFound = (output, context) => {
4708
- return {
4709
- Message: __expectString(output.Message),
4710
- ResourceARN: __expectString(output.ResourceARN),
4711
- };
2966
+ const de_ReleaseFileSystemNfsV3LocksResponse = (output, context) => {
2967
+ return take(output, {
2968
+ FileSystem: (_) => de_FileSystem(_, context),
2969
+ });
4712
2970
  };
4713
2971
  const de_RestoreVolumeFromSnapshotResponse = (output, context) => {
4714
- return {
4715
- AdministrativeActions: output.AdministrativeActions != null
4716
- ? de_AdministrativeActions(output.AdministrativeActions, context)
4717
- : undefined,
4718
- Lifecycle: __expectString(output.Lifecycle),
4719
- VolumeId: __expectString(output.VolumeId),
4720
- };
4721
- };
4722
- const de_RouteTableIds = (output, context) => {
4723
- const retVal = (output || [])
4724
- .filter((e) => e != null)
4725
- .map((entry) => {
4726
- if (entry === null) {
4727
- return null;
4728
- }
4729
- return __expectString(entry);
2972
+ return take(output, {
2973
+ AdministrativeActions: (_) => de_AdministrativeActions(_, context),
2974
+ Lifecycle: __expectString,
2975
+ VolumeId: __expectString,
4730
2976
  });
4731
- return retVal;
4732
- };
4733
- const de_S3DataRepositoryConfiguration = (output, context) => {
4734
- return {
4735
- AutoExportPolicy: output.AutoExportPolicy != null ? de_AutoExportPolicy(output.AutoExportPolicy, context) : undefined,
4736
- AutoImportPolicy: output.AutoImportPolicy != null ? de_AutoImportPolicy(output.AutoImportPolicy, context) : undefined,
4737
- };
4738
- };
4739
- const de_SelfManagedActiveDirectoryAttributes = (output, context) => {
4740
- return {
4741
- DnsIps: output.DnsIps != null ? de_DnsIps(output.DnsIps, context) : undefined,
4742
- DomainName: __expectString(output.DomainName),
4743
- FileSystemAdministratorsGroup: __expectString(output.FileSystemAdministratorsGroup),
4744
- OrganizationalUnitDistinguishedName: __expectString(output.OrganizationalUnitDistinguishedName),
4745
- UserName: __expectString(output.UserName),
4746
- };
4747
- };
4748
- const de_ServiceLimitExceeded = (output, context) => {
4749
- return {
4750
- Limit: __expectString(output.Limit),
4751
- Message: __expectString(output.Message),
4752
- };
4753
2977
  };
4754
2978
  const de_Snapshot = (output, context) => {
4755
- return {
4756
- AdministrativeActions: output.AdministrativeActions != null
4757
- ? de_AdministrativeActions(output.AdministrativeActions, context)
4758
- : undefined,
4759
- CreationTime: output.CreationTime != null
4760
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4761
- : undefined,
4762
- Lifecycle: __expectString(output.Lifecycle),
4763
- LifecycleTransitionReason: output.LifecycleTransitionReason != null
4764
- ? de_LifecycleTransitionReason(output.LifecycleTransitionReason, context)
4765
- : undefined,
4766
- Name: __expectString(output.Name),
4767
- ResourceARN: __expectString(output.ResourceARN),
4768
- SnapshotId: __expectString(output.SnapshotId),
4769
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4770
- VolumeId: __expectString(output.VolumeId),
4771
- };
4772
- };
4773
- const de_SnapshotNotFound = (output, context) => {
4774
- return {
4775
- Message: __expectString(output.Message),
4776
- };
2979
+ return take(output, {
2980
+ AdministrativeActions: (_) => de_AdministrativeActions(_, context),
2981
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2982
+ Lifecycle: __expectString,
2983
+ LifecycleTransitionReason: _json,
2984
+ Name: __expectString,
2985
+ ResourceARN: __expectString,
2986
+ SnapshotId: __expectString,
2987
+ Tags: _json,
2988
+ VolumeId: __expectString,
2989
+ });
4777
2990
  };
4778
2991
  const de_Snapshots = (output, context) => {
4779
2992
  const retVal = (output || [])
4780
2993
  .filter((e) => e != null)
4781
2994
  .map((entry) => {
4782
- if (entry === null) {
4783
- return null;
4784
- }
4785
2995
  return de_Snapshot(entry, context);
4786
2996
  });
4787
2997
  return retVal;
4788
2998
  };
4789
- const de_SourceBackupUnavailable = (output, context) => {
4790
- return {
4791
- BackupId: __expectString(output.BackupId),
4792
- Message: __expectString(output.Message),
4793
- };
4794
- };
4795
2999
  const de_StorageVirtualMachine = (output, context) => {
4796
- return {
4797
- ActiveDirectoryConfiguration: output.ActiveDirectoryConfiguration != null
4798
- ? de_SvmActiveDirectoryConfiguration(output.ActiveDirectoryConfiguration, context)
4799
- : undefined,
4800
- CreationTime: output.CreationTime != null
4801
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4802
- : undefined,
4803
- Endpoints: output.Endpoints != null ? de_SvmEndpoints(output.Endpoints, context) : undefined,
4804
- FileSystemId: __expectString(output.FileSystemId),
4805
- Lifecycle: __expectString(output.Lifecycle),
4806
- LifecycleTransitionReason: output.LifecycleTransitionReason != null
4807
- ? de_LifecycleTransitionReason(output.LifecycleTransitionReason, context)
4808
- : undefined,
4809
- Name: __expectString(output.Name),
4810
- ResourceARN: __expectString(output.ResourceARN),
4811
- RootVolumeSecurityStyle: __expectString(output.RootVolumeSecurityStyle),
4812
- StorageVirtualMachineId: __expectString(output.StorageVirtualMachineId),
4813
- Subtype: __expectString(output.Subtype),
4814
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4815
- UUID: __expectString(output.UUID),
4816
- };
4817
- };
4818
- const de_StorageVirtualMachineNotFound = (output, context) => {
4819
- return {
4820
- Message: __expectString(output.Message),
4821
- };
3000
+ return take(output, {
3001
+ ActiveDirectoryConfiguration: _json,
3002
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3003
+ Endpoints: _json,
3004
+ FileSystemId: __expectString,
3005
+ Lifecycle: __expectString,
3006
+ LifecycleTransitionReason: _json,
3007
+ Name: __expectString,
3008
+ ResourceARN: __expectString,
3009
+ RootVolumeSecurityStyle: __expectString,
3010
+ StorageVirtualMachineId: __expectString,
3011
+ Subtype: __expectString,
3012
+ Tags: _json,
3013
+ UUID: __expectString,
3014
+ });
4822
3015
  };
4823
3016
  const de_StorageVirtualMachines = (output, context) => {
4824
3017
  const retVal = (output || [])
4825
3018
  .filter((e) => e != null)
4826
3019
  .map((entry) => {
4827
- if (entry === null) {
4828
- return null;
4829
- }
4830
3020
  return de_StorageVirtualMachine(entry, context);
4831
3021
  });
4832
3022
  return retVal;
4833
3023
  };
4834
- const de_SubDirectoriesPaths = (output, context) => {
4835
- const retVal = (output || [])
4836
- .filter((e) => e != null)
4837
- .map((entry) => {
4838
- if (entry === null) {
4839
- return null;
4840
- }
4841
- return __expectString(entry);
4842
- });
4843
- return retVal;
4844
- };
4845
- const de_SubnetIds = (output, context) => {
4846
- const retVal = (output || [])
4847
- .filter((e) => e != null)
4848
- .map((entry) => {
4849
- if (entry === null) {
4850
- return null;
4851
- }
4852
- return __expectString(entry);
4853
- });
4854
- return retVal;
4855
- };
4856
- const de_SvmActiveDirectoryConfiguration = (output, context) => {
4857
- return {
4858
- NetBiosName: __expectString(output.NetBiosName),
4859
- SelfManagedActiveDirectoryConfiguration: output.SelfManagedActiveDirectoryConfiguration != null
4860
- ? de_SelfManagedActiveDirectoryAttributes(output.SelfManagedActiveDirectoryConfiguration, context)
4861
- : undefined,
4862
- };
4863
- };
4864
- const de_SvmEndpoint = (output, context) => {
4865
- return {
4866
- DNSName: __expectString(output.DNSName),
4867
- IpAddresses: output.IpAddresses != null ? de_OntapEndpointIpAddresses(output.IpAddresses, context) : undefined,
4868
- };
4869
- };
4870
- const de_SvmEndpoints = (output, context) => {
4871
- return {
4872
- Iscsi: output.Iscsi != null ? de_SvmEndpoint(output.Iscsi, context) : undefined,
4873
- Management: output.Management != null ? de_SvmEndpoint(output.Management, context) : undefined,
4874
- Nfs: output.Nfs != null ? de_SvmEndpoint(output.Nfs, context) : undefined,
4875
- Smb: output.Smb != null ? de_SvmEndpoint(output.Smb, context) : undefined,
4876
- };
4877
- };
4878
- const de_Tag = (output, context) => {
4879
- return {
4880
- Key: __expectString(output.Key),
4881
- Value: __expectString(output.Value),
4882
- };
4883
- };
4884
- const de_TagResourceResponse = (output, context) => {
4885
- return {};
4886
- };
4887
- const de_Tags = (output, context) => {
4888
- const retVal = (output || [])
4889
- .filter((e) => e != null)
4890
- .map((entry) => {
4891
- if (entry === null) {
4892
- return null;
4893
- }
4894
- return de_Tag(entry, context);
4895
- });
4896
- return retVal;
4897
- };
4898
- const de_TieringPolicy = (output, context) => {
4899
- return {
4900
- CoolingPeriod: __expectInt32(output.CoolingPeriod),
4901
- Name: __expectString(output.Name),
4902
- };
4903
- };
4904
- const de_UnsupportedOperation = (output, context) => {
4905
- return {
4906
- Message: __expectString(output.Message),
4907
- };
4908
- };
4909
- const de_UntagResourceResponse = (output, context) => {
4910
- return {};
4911
- };
4912
3024
  const de_UpdateDataRepositoryAssociationResponse = (output, context) => {
4913
- return {
4914
- Association: output.Association != null ? de_DataRepositoryAssociation(output.Association, context) : undefined,
4915
- };
3025
+ return take(output, {
3026
+ Association: (_) => de_DataRepositoryAssociation(_, context),
3027
+ });
4916
3028
  };
4917
3029
  const de_UpdateFileCacheResponse = (output, context) => {
4918
- return {
4919
- FileCache: output.FileCache != null ? de_FileCache(output.FileCache, context) : undefined,
4920
- };
3030
+ return take(output, {
3031
+ FileCache: (_) => de_FileCache(_, context),
3032
+ });
4921
3033
  };
4922
3034
  const de_UpdateFileSystemResponse = (output, context) => {
4923
- return {
4924
- FileSystem: output.FileSystem != null ? de_FileSystem(output.FileSystem, context) : undefined,
4925
- };
3035
+ return take(output, {
3036
+ FileSystem: (_) => de_FileSystem(_, context),
3037
+ });
4926
3038
  };
4927
3039
  const de_UpdateSnapshotResponse = (output, context) => {
4928
- return {
4929
- Snapshot: output.Snapshot != null ? de_Snapshot(output.Snapshot, context) : undefined,
4930
- };
3040
+ return take(output, {
3041
+ Snapshot: (_) => de_Snapshot(_, context),
3042
+ });
4931
3043
  };
4932
3044
  const de_UpdateStorageVirtualMachineResponse = (output, context) => {
4933
- return {
4934
- StorageVirtualMachine: output.StorageVirtualMachine != null
4935
- ? de_StorageVirtualMachine(output.StorageVirtualMachine, context)
4936
- : undefined,
4937
- };
3045
+ return take(output, {
3046
+ StorageVirtualMachine: (_) => de_StorageVirtualMachine(_, context),
3047
+ });
4938
3048
  };
4939
3049
  const de_UpdateVolumeResponse = (output, context) => {
4940
- return {
4941
- Volume: output.Volume != null ? de_Volume(output.Volume, context) : undefined,
4942
- };
3050
+ return take(output, {
3051
+ Volume: (_) => de_Volume(_, context),
3052
+ });
4943
3053
  };
4944
3054
  const de_Volume = (output, context) => {
4945
- return {
4946
- AdministrativeActions: output.AdministrativeActions != null
4947
- ? de_AdministrativeActions(output.AdministrativeActions, context)
4948
- : undefined,
4949
- CreationTime: output.CreationTime != null
4950
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4951
- : undefined,
4952
- FileSystemId: __expectString(output.FileSystemId),
4953
- Lifecycle: __expectString(output.Lifecycle),
4954
- LifecycleTransitionReason: output.LifecycleTransitionReason != null
4955
- ? de_LifecycleTransitionReason(output.LifecycleTransitionReason, context)
4956
- : undefined,
4957
- Name: __expectString(output.Name),
4958
- OntapConfiguration: output.OntapConfiguration != null ? de_OntapVolumeConfiguration(output.OntapConfiguration, context) : undefined,
4959
- OpenZFSConfiguration: output.OpenZFSConfiguration != null
4960
- ? de_OpenZFSVolumeConfiguration(output.OpenZFSConfiguration, context)
4961
- : undefined,
4962
- ResourceARN: __expectString(output.ResourceARN),
4963
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4964
- VolumeId: __expectString(output.VolumeId),
4965
- VolumeType: __expectString(output.VolumeType),
4966
- };
4967
- };
4968
- const de_VolumeNotFound = (output, context) => {
4969
- return {
4970
- Message: __expectString(output.Message),
4971
- };
3055
+ return take(output, {
3056
+ AdministrativeActions: (_) => de_AdministrativeActions(_, context),
3057
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3058
+ FileSystemId: __expectString,
3059
+ Lifecycle: __expectString,
3060
+ LifecycleTransitionReason: _json,
3061
+ Name: __expectString,
3062
+ OntapConfiguration: _json,
3063
+ OpenZFSConfiguration: _json,
3064
+ ResourceARN: __expectString,
3065
+ Tags: _json,
3066
+ VolumeId: __expectString,
3067
+ VolumeType: __expectString,
3068
+ });
4972
3069
  };
4973
3070
  const de_Volumes = (output, context) => {
4974
3071
  const retVal = (output || [])
4975
3072
  .filter((e) => e != null)
4976
3073
  .map((entry) => {
4977
- if (entry === null) {
4978
- return null;
4979
- }
4980
3074
  return de_Volume(entry, context);
4981
3075
  });
4982
3076
  return retVal;
4983
3077
  };
4984
- const de_WindowsAuditLogConfiguration = (output, context) => {
4985
- return {
4986
- AuditLogDestination: __expectString(output.AuditLogDestination),
4987
- FileAccessAuditLogLevel: __expectString(output.FileAccessAuditLogLevel),
4988
- FileShareAccessAuditLogLevel: __expectString(output.FileShareAccessAuditLogLevel),
4989
- };
4990
- };
4991
- const de_WindowsFileSystemConfiguration = (output, context) => {
4992
- return {
4993
- ActiveDirectoryId: __expectString(output.ActiveDirectoryId),
4994
- Aliases: output.Aliases != null ? de_Aliases(output.Aliases, context) : undefined,
4995
- AuditLogConfiguration: output.AuditLogConfiguration != null
4996
- ? de_WindowsAuditLogConfiguration(output.AuditLogConfiguration, context)
4997
- : undefined,
4998
- AutomaticBackupRetentionDays: __expectInt32(output.AutomaticBackupRetentionDays),
4999
- CopyTagsToBackups: __expectBoolean(output.CopyTagsToBackups),
5000
- DailyAutomaticBackupStartTime: __expectString(output.DailyAutomaticBackupStartTime),
5001
- DeploymentType: __expectString(output.DeploymentType),
5002
- MaintenanceOperationsInProgress: output.MaintenanceOperationsInProgress != null
5003
- ? de_FileSystemMaintenanceOperations(output.MaintenanceOperationsInProgress, context)
5004
- : undefined,
5005
- PreferredFileServerIp: __expectString(output.PreferredFileServerIp),
5006
- PreferredSubnetId: __expectString(output.PreferredSubnetId),
5007
- RemoteAdministrationEndpoint: __expectString(output.RemoteAdministrationEndpoint),
5008
- SelfManagedActiveDirectoryConfiguration: output.SelfManagedActiveDirectoryConfiguration != null
5009
- ? de_SelfManagedActiveDirectoryAttributes(output.SelfManagedActiveDirectoryConfiguration, context)
5010
- : undefined,
5011
- ThroughputCapacity: __expectInt32(output.ThroughputCapacity),
5012
- WeeklyMaintenanceStartTime: __expectString(output.WeeklyMaintenanceStartTime),
5013
- };
5014
- };
5015
3078
  const deserializeMetadata = (output) => ({
5016
3079
  httpStatusCode: output.statusCode,
5017
3080
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -5025,6 +3088,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
5025
3088
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5026
3089
  };
5027
3090
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3091
+ const throwDefaultError = withBaseException(__BaseException);
5028
3092
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5029
3093
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5030
3094
  const contents = {
@@ -5043,6 +3107,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
5043
3107
  }
5044
3108
  return new __HttpRequest(contents);
5045
3109
  };
3110
+ function sharedHeaders(operation) {
3111
+ return {
3112
+ "content-type": "application/x-amz-json-1.1",
3113
+ "x-amz-target": `AWSSimbaAPIService_v20180301.${operation}`,
3114
+ };
3115
+ }
5046
3116
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5047
3117
  if (encoded.length) {
5048
3118
  return JSON.parse(encoded);