@aws-sdk/client-fsx 3.312.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.
@@ -17,7 +17,7 @@ exports.se_AssociateFileSystemAliasesCommand = se_AssociateFileSystemAliasesComm
17
17
  const se_CancelDataRepositoryTaskCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("CancelDataRepositoryTask");
19
19
  let body;
20
- body = JSON.stringify(se_CancelDataRepositoryTaskRequest(input, context));
20
+ body = JSON.stringify((0, smithy_client_1._json)(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  exports.se_CancelDataRepositoryTaskCommand = se_CancelDataRepositoryTaskCommand;
@@ -150,28 +150,28 @@ exports.se_DeleteVolumeCommand = se_DeleteVolumeCommand;
150
150
  const se_DescribeBackupsCommand = async (input, context) => {
151
151
  const headers = sharedHeaders("DescribeBackups");
152
152
  let body;
153
- body = JSON.stringify(se_DescribeBackupsRequest(input, context));
153
+ body = JSON.stringify((0, smithy_client_1._json)(input));
154
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
155
  };
156
156
  exports.se_DescribeBackupsCommand = se_DescribeBackupsCommand;
157
157
  const se_DescribeDataRepositoryAssociationsCommand = async (input, context) => {
158
158
  const headers = sharedHeaders("DescribeDataRepositoryAssociations");
159
159
  let body;
160
- body = JSON.stringify(se_DescribeDataRepositoryAssociationsRequest(input, context));
160
+ body = JSON.stringify((0, smithy_client_1._json)(input));
161
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
162
  };
163
163
  exports.se_DescribeDataRepositoryAssociationsCommand = se_DescribeDataRepositoryAssociationsCommand;
164
164
  const se_DescribeDataRepositoryTasksCommand = async (input, context) => {
165
165
  const headers = sharedHeaders("DescribeDataRepositoryTasks");
166
166
  let body;
167
- body = JSON.stringify(se_DescribeDataRepositoryTasksRequest(input, context));
167
+ body = JSON.stringify((0, smithy_client_1._json)(input));
168
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
169
169
  };
170
170
  exports.se_DescribeDataRepositoryTasksCommand = se_DescribeDataRepositoryTasksCommand;
171
171
  const se_DescribeFileCachesCommand = async (input, context) => {
172
172
  const headers = sharedHeaders("DescribeFileCaches");
173
173
  let body;
174
- body = JSON.stringify(se_DescribeFileCachesRequest(input, context));
174
+ body = JSON.stringify((0, smithy_client_1._json)(input));
175
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
176
  };
177
177
  exports.se_DescribeFileCachesCommand = se_DescribeFileCachesCommand;
@@ -185,28 +185,28 @@ exports.se_DescribeFileSystemAliasesCommand = se_DescribeFileSystemAliasesComman
185
185
  const se_DescribeFileSystemsCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("DescribeFileSystems");
187
187
  let body;
188
- body = JSON.stringify(se_DescribeFileSystemsRequest(input, context));
188
+ body = JSON.stringify((0, smithy_client_1._json)(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  exports.se_DescribeFileSystemsCommand = se_DescribeFileSystemsCommand;
192
192
  const se_DescribeSnapshotsCommand = async (input, context) => {
193
193
  const headers = sharedHeaders("DescribeSnapshots");
194
194
  let body;
195
- body = JSON.stringify(se_DescribeSnapshotsRequest(input, context));
195
+ body = JSON.stringify((0, smithy_client_1._json)(input));
196
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
197
  };
198
198
  exports.se_DescribeSnapshotsCommand = se_DescribeSnapshotsCommand;
199
199
  const se_DescribeStorageVirtualMachinesCommand = async (input, context) => {
200
200
  const headers = sharedHeaders("DescribeStorageVirtualMachines");
201
201
  let body;
202
- body = JSON.stringify(se_DescribeStorageVirtualMachinesRequest(input, context));
202
+ body = JSON.stringify((0, smithy_client_1._json)(input));
203
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
204
  };
205
205
  exports.se_DescribeStorageVirtualMachinesCommand = se_DescribeStorageVirtualMachinesCommand;
206
206
  const se_DescribeVolumesCommand = async (input, context) => {
207
207
  const headers = sharedHeaders("DescribeVolumes");
208
208
  let body;
209
- body = JSON.stringify(se_DescribeVolumesRequest(input, context));
209
+ body = JSON.stringify((0, smithy_client_1._json)(input));
210
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
211
  };
212
212
  exports.se_DescribeVolumesCommand = se_DescribeVolumesCommand;
@@ -220,7 +220,7 @@ exports.se_DisassociateFileSystemAliasesCommand = se_DisassociateFileSystemAlias
220
220
  const se_ListTagsForResourceCommand = async (input, context) => {
221
221
  const headers = sharedHeaders("ListTagsForResource");
222
222
  let body;
223
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
223
+ body = JSON.stringify((0, smithy_client_1._json)(input));
224
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
225
  };
226
226
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
@@ -241,14 +241,14 @@ exports.se_RestoreVolumeFromSnapshotCommand = se_RestoreVolumeFromSnapshotComman
241
241
  const se_TagResourceCommand = async (input, context) => {
242
242
  const headers = sharedHeaders("TagResource");
243
243
  let body;
244
- body = JSON.stringify(se_TagResourceRequest(input, context));
244
+ body = JSON.stringify((0, smithy_client_1._json)(input));
245
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
246
  };
247
247
  exports.se_TagResourceCommand = se_TagResourceCommand;
248
248
  const se_UntagResourceCommand = async (input, context) => {
249
249
  const headers = sharedHeaders("UntagResource");
250
250
  let body;
251
- body = JSON.stringify(se_UntagResourceRequest(input, context));
251
+ body = JSON.stringify((0, smithy_client_1._json)(input));
252
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
253
  };
254
254
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
@@ -300,12 +300,12 @@ const de_AssociateFileSystemAliasesCommand = async (output, context) => {
300
300
  }
301
301
  const data = await parseBody(output.body, context);
302
302
  let contents = {};
303
- contents = de_AssociateFileSystemAliasesResponse(data, context);
303
+ contents = (0, smithy_client_1._json)(data);
304
304
  const response = {
305
305
  $metadata: deserializeMetadata(output),
306
306
  ...contents,
307
307
  };
308
- return Promise.resolve(response);
308
+ return response;
309
309
  };
310
310
  exports.de_AssociateFileSystemAliasesCommand = de_AssociateFileSystemAliasesCommand;
311
311
  const de_AssociateFileSystemAliasesCommandError = async (output, context) => {
@@ -326,10 +326,9 @@ const de_AssociateFileSystemAliasesCommandError = async (output, context) => {
326
326
  throw await de_InternalServerErrorRes(parsedOutput, context);
327
327
  default:
328
328
  const parsedBody = parsedOutput.body;
329
- (0, smithy_client_1.throwDefaultError)({
329
+ return throwDefaultError({
330
330
  output,
331
331
  parsedBody,
332
- exceptionCtor: FSxServiceException_1.FSxServiceException,
333
332
  errorCode,
334
333
  });
335
334
  }
@@ -340,12 +339,12 @@ const de_CancelDataRepositoryTaskCommand = async (output, context) => {
340
339
  }
341
340
  const data = await parseBody(output.body, context);
342
341
  let contents = {};
343
- contents = de_CancelDataRepositoryTaskResponse(data, context);
342
+ contents = (0, smithy_client_1._json)(data);
344
343
  const response = {
345
344
  $metadata: deserializeMetadata(output),
346
345
  ...contents,
347
346
  };
348
- return Promise.resolve(response);
347
+ return response;
349
348
  };
350
349
  exports.de_CancelDataRepositoryTaskCommand = de_CancelDataRepositoryTaskCommand;
351
350
  const de_CancelDataRepositoryTaskCommandError = async (output, context) => {
@@ -372,10 +371,9 @@ const de_CancelDataRepositoryTaskCommandError = async (output, context) => {
372
371
  throw await de_UnsupportedOperationRes(parsedOutput, context);
373
372
  default:
374
373
  const parsedBody = parsedOutput.body;
375
- (0, smithy_client_1.throwDefaultError)({
374
+ return throwDefaultError({
376
375
  output,
377
376
  parsedBody,
378
- exceptionCtor: FSxServiceException_1.FSxServiceException,
379
377
  errorCode,
380
378
  });
381
379
  }
@@ -391,7 +389,7 @@ const de_CopyBackupCommand = async (output, context) => {
391
389
  $metadata: deserializeMetadata(output),
392
390
  ...contents,
393
391
  };
394
- return Promise.resolve(response);
392
+ return response;
395
393
  };
396
394
  exports.de_CopyBackupCommand = de_CopyBackupCommand;
397
395
  const de_CopyBackupCommandError = async (output, context) => {
@@ -436,10 +434,9 @@ const de_CopyBackupCommandError = async (output, context) => {
436
434
  throw await de_UnsupportedOperationRes(parsedOutput, context);
437
435
  default:
438
436
  const parsedBody = parsedOutput.body;
439
- (0, smithy_client_1.throwDefaultError)({
437
+ return throwDefaultError({
440
438
  output,
441
439
  parsedBody,
442
- exceptionCtor: FSxServiceException_1.FSxServiceException,
443
440
  errorCode,
444
441
  });
445
442
  }
@@ -455,7 +452,7 @@ const de_CreateBackupCommand = async (output, context) => {
455
452
  $metadata: deserializeMetadata(output),
456
453
  ...contents,
457
454
  };
458
- return Promise.resolve(response);
455
+ return response;
459
456
  };
460
457
  exports.de_CreateBackupCommand = de_CreateBackupCommand;
461
458
  const de_CreateBackupCommandError = async (output, context) => {
@@ -491,10 +488,9 @@ const de_CreateBackupCommandError = async (output, context) => {
491
488
  throw await de_VolumeNotFoundRes(parsedOutput, context);
492
489
  default:
493
490
  const parsedBody = parsedOutput.body;
494
- (0, smithy_client_1.throwDefaultError)({
491
+ return throwDefaultError({
495
492
  output,
496
493
  parsedBody,
497
- exceptionCtor: FSxServiceException_1.FSxServiceException,
498
494
  errorCode,
499
495
  });
500
496
  }
@@ -510,7 +506,7 @@ const de_CreateDataRepositoryAssociationCommand = async (output, context) => {
510
506
  $metadata: deserializeMetadata(output),
511
507
  ...contents,
512
508
  };
513
- return Promise.resolve(response);
509
+ return response;
514
510
  };
515
511
  exports.de_CreateDataRepositoryAssociationCommand = de_CreateDataRepositoryAssociationCommand;
516
512
  const de_CreateDataRepositoryAssociationCommandError = async (output, context) => {
@@ -540,10 +536,9 @@ const de_CreateDataRepositoryAssociationCommandError = async (output, context) =
540
536
  throw await de_UnsupportedOperationRes(parsedOutput, context);
541
537
  default:
542
538
  const parsedBody = parsedOutput.body;
543
- (0, smithy_client_1.throwDefaultError)({
539
+ return throwDefaultError({
544
540
  output,
545
541
  parsedBody,
546
- exceptionCtor: FSxServiceException_1.FSxServiceException,
547
542
  errorCode,
548
543
  });
549
544
  }
@@ -559,7 +554,7 @@ const de_CreateDataRepositoryTaskCommand = async (output, context) => {
559
554
  $metadata: deserializeMetadata(output),
560
555
  ...contents,
561
556
  };
562
- return Promise.resolve(response);
557
+ return response;
563
558
  };
564
559
  exports.de_CreateDataRepositoryTaskCommand = de_CreateDataRepositoryTaskCommand;
565
560
  const de_CreateDataRepositoryTaskCommandError = async (output, context) => {
@@ -592,10 +587,9 @@ const de_CreateDataRepositoryTaskCommandError = async (output, context) => {
592
587
  throw await de_UnsupportedOperationRes(parsedOutput, context);
593
588
  default:
594
589
  const parsedBody = parsedOutput.body;
595
- (0, smithy_client_1.throwDefaultError)({
590
+ return throwDefaultError({
596
591
  output,
597
592
  parsedBody,
598
- exceptionCtor: FSxServiceException_1.FSxServiceException,
599
593
  errorCode,
600
594
  });
601
595
  }
@@ -611,7 +605,7 @@ const de_CreateFileCacheCommand = async (output, context) => {
611
605
  $metadata: deserializeMetadata(output),
612
606
  ...contents,
613
607
  };
614
- return Promise.resolve(response);
608
+ return response;
615
609
  };
616
610
  exports.de_CreateFileCacheCommand = de_CreateFileCacheCommand;
617
611
  const de_CreateFileCacheCommandError = async (output, context) => {
@@ -644,10 +638,9 @@ const de_CreateFileCacheCommandError = async (output, context) => {
644
638
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
645
639
  default:
646
640
  const parsedBody = parsedOutput.body;
647
- (0, smithy_client_1.throwDefaultError)({
641
+ return throwDefaultError({
648
642
  output,
649
643
  parsedBody,
650
- exceptionCtor: FSxServiceException_1.FSxServiceException,
651
644
  errorCode,
652
645
  });
653
646
  }
@@ -663,7 +656,7 @@ const de_CreateFileSystemCommand = async (output, context) => {
663
656
  $metadata: deserializeMetadata(output),
664
657
  ...contents,
665
658
  };
666
- return Promise.resolve(response);
659
+ return response;
667
660
  };
668
661
  exports.de_CreateFileSystemCommand = de_CreateFileSystemCommand;
669
662
  const de_CreateFileSystemCommandError = async (output, context) => {
@@ -705,10 +698,9 @@ const de_CreateFileSystemCommandError = async (output, context) => {
705
698
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
706
699
  default:
707
700
  const parsedBody = parsedOutput.body;
708
- (0, smithy_client_1.throwDefaultError)({
701
+ return throwDefaultError({
709
702
  output,
710
703
  parsedBody,
711
- exceptionCtor: FSxServiceException_1.FSxServiceException,
712
704
  errorCode,
713
705
  });
714
706
  }
@@ -724,7 +716,7 @@ const de_CreateFileSystemFromBackupCommand = async (output, context) => {
724
716
  $metadata: deserializeMetadata(output),
725
717
  ...contents,
726
718
  };
727
- return Promise.resolve(response);
719
+ return response;
728
720
  };
729
721
  exports.de_CreateFileSystemFromBackupCommand = de_CreateFileSystemFromBackupCommand;
730
722
  const de_CreateFileSystemFromBackupCommandError = async (output, context) => {
@@ -763,10 +755,9 @@ const de_CreateFileSystemFromBackupCommandError = async (output, context) => {
763
755
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
764
756
  default:
765
757
  const parsedBody = parsedOutput.body;
766
- (0, smithy_client_1.throwDefaultError)({
758
+ return throwDefaultError({
767
759
  output,
768
760
  parsedBody,
769
- exceptionCtor: FSxServiceException_1.FSxServiceException,
770
761
  errorCode,
771
762
  });
772
763
  }
@@ -782,7 +773,7 @@ const de_CreateSnapshotCommand = async (output, context) => {
782
773
  $metadata: deserializeMetadata(output),
783
774
  ...contents,
784
775
  };
785
- return Promise.resolve(response);
776
+ return response;
786
777
  };
787
778
  exports.de_CreateSnapshotCommand = de_CreateSnapshotCommand;
788
779
  const de_CreateSnapshotCommandError = async (output, context) => {
@@ -806,10 +797,9 @@ const de_CreateSnapshotCommandError = async (output, context) => {
806
797
  throw await de_VolumeNotFoundRes(parsedOutput, context);
807
798
  default:
808
799
  const parsedBody = parsedOutput.body;
809
- (0, smithy_client_1.throwDefaultError)({
800
+ return throwDefaultError({
810
801
  output,
811
802
  parsedBody,
812
- exceptionCtor: FSxServiceException_1.FSxServiceException,
813
803
  errorCode,
814
804
  });
815
805
  }
@@ -825,7 +815,7 @@ const de_CreateStorageVirtualMachineCommand = async (output, context) => {
825
815
  $metadata: deserializeMetadata(output),
826
816
  ...contents,
827
817
  };
828
- return Promise.resolve(response);
818
+ return response;
829
819
  };
830
820
  exports.de_CreateStorageVirtualMachineCommand = de_CreateStorageVirtualMachineCommand;
831
821
  const de_CreateStorageVirtualMachineCommandError = async (output, context) => {
@@ -858,10 +848,9 @@ const de_CreateStorageVirtualMachineCommandError = async (output, context) => {
858
848
  throw await de_UnsupportedOperationRes(parsedOutput, context);
859
849
  default:
860
850
  const parsedBody = parsedOutput.body;
861
- (0, smithy_client_1.throwDefaultError)({
851
+ return throwDefaultError({
862
852
  output,
863
853
  parsedBody,
864
- exceptionCtor: FSxServiceException_1.FSxServiceException,
865
854
  errorCode,
866
855
  });
867
856
  }
@@ -877,7 +866,7 @@ const de_CreateVolumeCommand = async (output, context) => {
877
866
  $metadata: deserializeMetadata(output),
878
867
  ...contents,
879
868
  };
880
- return Promise.resolve(response);
869
+ return response;
881
870
  };
882
871
  exports.de_CreateVolumeCommand = de_CreateVolumeCommand;
883
872
  const de_CreateVolumeCommandError = async (output, context) => {
@@ -913,10 +902,9 @@ const de_CreateVolumeCommandError = async (output, context) => {
913
902
  throw await de_UnsupportedOperationRes(parsedOutput, context);
914
903
  default:
915
904
  const parsedBody = parsedOutput.body;
916
- (0, smithy_client_1.throwDefaultError)({
905
+ return throwDefaultError({
917
906
  output,
918
907
  parsedBody,
919
- exceptionCtor: FSxServiceException_1.FSxServiceException,
920
908
  errorCode,
921
909
  });
922
910
  }
@@ -932,7 +920,7 @@ const de_CreateVolumeFromBackupCommand = async (output, context) => {
932
920
  $metadata: deserializeMetadata(output),
933
921
  ...contents,
934
922
  };
935
- return Promise.resolve(response);
923
+ return response;
936
924
  };
937
925
  exports.de_CreateVolumeFromBackupCommand = de_CreateVolumeFromBackupCommand;
938
926
  const de_CreateVolumeFromBackupCommandError = async (output, context) => {
@@ -968,10 +956,9 @@ const de_CreateVolumeFromBackupCommandError = async (output, context) => {
968
956
  throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
969
957
  default:
970
958
  const parsedBody = parsedOutput.body;
971
- (0, smithy_client_1.throwDefaultError)({
959
+ return throwDefaultError({
972
960
  output,
973
961
  parsedBody,
974
- exceptionCtor: FSxServiceException_1.FSxServiceException,
975
962
  errorCode,
976
963
  });
977
964
  }
@@ -982,12 +969,12 @@ const de_DeleteBackupCommand = async (output, context) => {
982
969
  }
983
970
  const data = await parseBody(output.body, context);
984
971
  let contents = {};
985
- contents = de_DeleteBackupResponse(data, context);
972
+ contents = (0, smithy_client_1._json)(data);
986
973
  const response = {
987
974
  $metadata: deserializeMetadata(output),
988
975
  ...contents,
989
976
  };
990
- return Promise.resolve(response);
977
+ return response;
991
978
  };
992
979
  exports.de_DeleteBackupCommand = de_DeleteBackupCommand;
993
980
  const de_DeleteBackupCommandError = async (output, context) => {
@@ -1020,10 +1007,9 @@ const de_DeleteBackupCommandError = async (output, context) => {
1020
1007
  throw await de_InternalServerErrorRes(parsedOutput, context);
1021
1008
  default:
1022
1009
  const parsedBody = parsedOutput.body;
1023
- (0, smithy_client_1.throwDefaultError)({
1010
+ return throwDefaultError({
1024
1011
  output,
1025
1012
  parsedBody,
1026
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1027
1013
  errorCode,
1028
1014
  });
1029
1015
  }
@@ -1034,12 +1020,12 @@ const de_DeleteDataRepositoryAssociationCommand = async (output, context) => {
1034
1020
  }
1035
1021
  const data = await parseBody(output.body, context);
1036
1022
  let contents = {};
1037
- contents = de_DeleteDataRepositoryAssociationResponse(data, context);
1023
+ contents = (0, smithy_client_1._json)(data);
1038
1024
  const response = {
1039
1025
  $metadata: deserializeMetadata(output),
1040
1026
  ...contents,
1041
1027
  };
1042
- return Promise.resolve(response);
1028
+ return response;
1043
1029
  };
1044
1030
  exports.de_DeleteDataRepositoryAssociationCommand = de_DeleteDataRepositoryAssociationCommand;
1045
1031
  const de_DeleteDataRepositoryAssociationCommandError = async (output, context) => {
@@ -1066,10 +1052,9 @@ const de_DeleteDataRepositoryAssociationCommandError = async (output, context) =
1066
1052
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
1067
1053
  default:
1068
1054
  const parsedBody = parsedOutput.body;
1069
- (0, smithy_client_1.throwDefaultError)({
1055
+ return throwDefaultError({
1070
1056
  output,
1071
1057
  parsedBody,
1072
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1073
1058
  errorCode,
1074
1059
  });
1075
1060
  }
@@ -1080,12 +1065,12 @@ const de_DeleteFileCacheCommand = async (output, context) => {
1080
1065
  }
1081
1066
  const data = await parseBody(output.body, context);
1082
1067
  let contents = {};
1083
- contents = de_DeleteFileCacheResponse(data, context);
1068
+ contents = (0, smithy_client_1._json)(data);
1084
1069
  const response = {
1085
1070
  $metadata: deserializeMetadata(output),
1086
1071
  ...contents,
1087
1072
  };
1088
- return Promise.resolve(response);
1073
+ return response;
1089
1074
  };
1090
1075
  exports.de_DeleteFileCacheCommand = de_DeleteFileCacheCommand;
1091
1076
  const de_DeleteFileCacheCommandError = async (output, context) => {
@@ -1112,10 +1097,9 @@ const de_DeleteFileCacheCommandError = async (output, context) => {
1112
1097
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
1113
1098
  default:
1114
1099
  const parsedBody = parsedOutput.body;
1115
- (0, smithy_client_1.throwDefaultError)({
1100
+ return throwDefaultError({
1116
1101
  output,
1117
1102
  parsedBody,
1118
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1119
1103
  errorCode,
1120
1104
  });
1121
1105
  }
@@ -1126,12 +1110,12 @@ const de_DeleteFileSystemCommand = async (output, context) => {
1126
1110
  }
1127
1111
  const data = await parseBody(output.body, context);
1128
1112
  let contents = {};
1129
- contents = de_DeleteFileSystemResponse(data, context);
1113
+ contents = (0, smithy_client_1._json)(data);
1130
1114
  const response = {
1131
1115
  $metadata: deserializeMetadata(output),
1132
1116
  ...contents,
1133
1117
  };
1134
- return Promise.resolve(response);
1118
+ return response;
1135
1119
  };
1136
1120
  exports.de_DeleteFileSystemCommand = de_DeleteFileSystemCommand;
1137
1121
  const de_DeleteFileSystemCommandError = async (output, context) => {
@@ -1158,10 +1142,9 @@ const de_DeleteFileSystemCommandError = async (output, context) => {
1158
1142
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
1159
1143
  default:
1160
1144
  const parsedBody = parsedOutput.body;
1161
- (0, smithy_client_1.throwDefaultError)({
1145
+ return throwDefaultError({
1162
1146
  output,
1163
1147
  parsedBody,
1164
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1165
1148
  errorCode,
1166
1149
  });
1167
1150
  }
@@ -1172,12 +1155,12 @@ const de_DeleteSnapshotCommand = async (output, context) => {
1172
1155
  }
1173
1156
  const data = await parseBody(output.body, context);
1174
1157
  let contents = {};
1175
- contents = de_DeleteSnapshotResponse(data, context);
1158
+ contents = (0, smithy_client_1._json)(data);
1176
1159
  const response = {
1177
1160
  $metadata: deserializeMetadata(output),
1178
1161
  ...contents,
1179
1162
  };
1180
- return Promise.resolve(response);
1163
+ return response;
1181
1164
  };
1182
1165
  exports.de_DeleteSnapshotCommand = de_DeleteSnapshotCommand;
1183
1166
  const de_DeleteSnapshotCommandError = async (output, context) => {
@@ -1198,10 +1181,9 @@ const de_DeleteSnapshotCommandError = async (output, context) => {
1198
1181
  throw await de_SnapshotNotFoundRes(parsedOutput, context);
1199
1182
  default:
1200
1183
  const parsedBody = parsedOutput.body;
1201
- (0, smithy_client_1.throwDefaultError)({
1184
+ return throwDefaultError({
1202
1185
  output,
1203
1186
  parsedBody,
1204
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1205
1187
  errorCode,
1206
1188
  });
1207
1189
  }
@@ -1212,12 +1194,12 @@ const de_DeleteStorageVirtualMachineCommand = async (output, context) => {
1212
1194
  }
1213
1195
  const data = await parseBody(output.body, context);
1214
1196
  let contents = {};
1215
- contents = de_DeleteStorageVirtualMachineResponse(data, context);
1197
+ contents = (0, smithy_client_1._json)(data);
1216
1198
  const response = {
1217
1199
  $metadata: deserializeMetadata(output),
1218
1200
  ...contents,
1219
1201
  };
1220
- return Promise.resolve(response);
1202
+ return response;
1221
1203
  };
1222
1204
  exports.de_DeleteStorageVirtualMachineCommand = de_DeleteStorageVirtualMachineCommand;
1223
1205
  const de_DeleteStorageVirtualMachineCommandError = async (output, context) => {
@@ -1241,10 +1223,9 @@ const de_DeleteStorageVirtualMachineCommandError = async (output, context) => {
1241
1223
  throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
1242
1224
  default:
1243
1225
  const parsedBody = parsedOutput.body;
1244
- (0, smithy_client_1.throwDefaultError)({
1226
+ return throwDefaultError({
1245
1227
  output,
1246
1228
  parsedBody,
1247
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1248
1229
  errorCode,
1249
1230
  });
1250
1231
  }
@@ -1255,12 +1236,12 @@ const de_DeleteVolumeCommand = async (output, context) => {
1255
1236
  }
1256
1237
  const data = await parseBody(output.body, context);
1257
1238
  let contents = {};
1258
- contents = de_DeleteVolumeResponse(data, context);
1239
+ contents = (0, smithy_client_1._json)(data);
1259
1240
  const response = {
1260
1241
  $metadata: deserializeMetadata(output),
1261
1242
  ...contents,
1262
1243
  };
1263
- return Promise.resolve(response);
1244
+ return response;
1264
1245
  };
1265
1246
  exports.de_DeleteVolumeCommand = de_DeleteVolumeCommand;
1266
1247
  const de_DeleteVolumeCommandError = async (output, context) => {
@@ -1284,10 +1265,9 @@ const de_DeleteVolumeCommandError = async (output, context) => {
1284
1265
  throw await de_VolumeNotFoundRes(parsedOutput, context);
1285
1266
  default:
1286
1267
  const parsedBody = parsedOutput.body;
1287
- (0, smithy_client_1.throwDefaultError)({
1268
+ return throwDefaultError({
1288
1269
  output,
1289
1270
  parsedBody,
1290
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1291
1271
  errorCode,
1292
1272
  });
1293
1273
  }
@@ -1303,7 +1283,7 @@ const de_DescribeBackupsCommand = async (output, context) => {
1303
1283
  $metadata: deserializeMetadata(output),
1304
1284
  ...contents,
1305
1285
  };
1306
- return Promise.resolve(response);
1286
+ return response;
1307
1287
  };
1308
1288
  exports.de_DescribeBackupsCommand = de_DescribeBackupsCommand;
1309
1289
  const de_DescribeBackupsCommandError = async (output, context) => {
@@ -1330,10 +1310,9 @@ const de_DescribeBackupsCommandError = async (output, context) => {
1330
1310
  throw await de_VolumeNotFoundRes(parsedOutput, context);
1331
1311
  default:
1332
1312
  const parsedBody = parsedOutput.body;
1333
- (0, smithy_client_1.throwDefaultError)({
1313
+ return throwDefaultError({
1334
1314
  output,
1335
1315
  parsedBody,
1336
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1337
1316
  errorCode,
1338
1317
  });
1339
1318
  }
@@ -1349,7 +1328,7 @@ const de_DescribeDataRepositoryAssociationsCommand = async (output, context) =>
1349
1328
  $metadata: deserializeMetadata(output),
1350
1329
  ...contents,
1351
1330
  };
1352
- return Promise.resolve(response);
1331
+ return response;
1353
1332
  };
1354
1333
  exports.de_DescribeDataRepositoryAssociationsCommand = de_DescribeDataRepositoryAssociationsCommand;
1355
1334
  const de_DescribeDataRepositoryAssociationsCommandError = async (output, context) => {
@@ -1376,10 +1355,9 @@ const de_DescribeDataRepositoryAssociationsCommandError = async (output, context
1376
1355
  throw await de_InvalidDataRepositoryTypeRes(parsedOutput, context);
1377
1356
  default:
1378
1357
  const parsedBody = parsedOutput.body;
1379
- (0, smithy_client_1.throwDefaultError)({
1358
+ return throwDefaultError({
1380
1359
  output,
1381
1360
  parsedBody,
1382
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1383
1361
  errorCode,
1384
1362
  });
1385
1363
  }
@@ -1395,7 +1373,7 @@ const de_DescribeDataRepositoryTasksCommand = async (output, context) => {
1395
1373
  $metadata: deserializeMetadata(output),
1396
1374
  ...contents,
1397
1375
  };
1398
- return Promise.resolve(response);
1376
+ return response;
1399
1377
  };
1400
1378
  exports.de_DescribeDataRepositoryTasksCommand = de_DescribeDataRepositoryTasksCommand;
1401
1379
  const de_DescribeDataRepositoryTasksCommandError = async (output, context) => {
@@ -1419,10 +1397,9 @@ const de_DescribeDataRepositoryTasksCommandError = async (output, context) => {
1419
1397
  throw await de_InternalServerErrorRes(parsedOutput, context);
1420
1398
  default:
1421
1399
  const parsedBody = parsedOutput.body;
1422
- (0, smithy_client_1.throwDefaultError)({
1400
+ return throwDefaultError({
1423
1401
  output,
1424
1402
  parsedBody,
1425
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1426
1403
  errorCode,
1427
1404
  });
1428
1405
  }
@@ -1438,7 +1415,7 @@ const de_DescribeFileCachesCommand = async (output, context) => {
1438
1415
  $metadata: deserializeMetadata(output),
1439
1416
  ...contents,
1440
1417
  };
1441
- return Promise.resolve(response);
1418
+ return response;
1442
1419
  };
1443
1420
  exports.de_DescribeFileCachesCommand = de_DescribeFileCachesCommand;
1444
1421
  const de_DescribeFileCachesCommandError = async (output, context) => {
@@ -1459,10 +1436,9 @@ const de_DescribeFileCachesCommandError = async (output, context) => {
1459
1436
  throw await de_InternalServerErrorRes(parsedOutput, context);
1460
1437
  default:
1461
1438
  const parsedBody = parsedOutput.body;
1462
- (0, smithy_client_1.throwDefaultError)({
1439
+ return throwDefaultError({
1463
1440
  output,
1464
1441
  parsedBody,
1465
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1466
1442
  errorCode,
1467
1443
  });
1468
1444
  }
@@ -1473,12 +1449,12 @@ const de_DescribeFileSystemAliasesCommand = async (output, context) => {
1473
1449
  }
1474
1450
  const data = await parseBody(output.body, context);
1475
1451
  let contents = {};
1476
- contents = de_DescribeFileSystemAliasesResponse(data, context);
1452
+ contents = (0, smithy_client_1._json)(data);
1477
1453
  const response = {
1478
1454
  $metadata: deserializeMetadata(output),
1479
1455
  ...contents,
1480
1456
  };
1481
- return Promise.resolve(response);
1457
+ return response;
1482
1458
  };
1483
1459
  exports.de_DescribeFileSystemAliasesCommand = de_DescribeFileSystemAliasesCommand;
1484
1460
  const de_DescribeFileSystemAliasesCommandError = async (output, context) => {
@@ -1499,10 +1475,9 @@ const de_DescribeFileSystemAliasesCommandError = async (output, context) => {
1499
1475
  throw await de_InternalServerErrorRes(parsedOutput, context);
1500
1476
  default:
1501
1477
  const parsedBody = parsedOutput.body;
1502
- (0, smithy_client_1.throwDefaultError)({
1478
+ return throwDefaultError({
1503
1479
  output,
1504
1480
  parsedBody,
1505
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1506
1481
  errorCode,
1507
1482
  });
1508
1483
  }
@@ -1518,7 +1493,7 @@ const de_DescribeFileSystemsCommand = async (output, context) => {
1518
1493
  $metadata: deserializeMetadata(output),
1519
1494
  ...contents,
1520
1495
  };
1521
- return Promise.resolve(response);
1496
+ return response;
1522
1497
  };
1523
1498
  exports.de_DescribeFileSystemsCommand = de_DescribeFileSystemsCommand;
1524
1499
  const de_DescribeFileSystemsCommandError = async (output, context) => {
@@ -1539,10 +1514,9 @@ const de_DescribeFileSystemsCommandError = async (output, context) => {
1539
1514
  throw await de_InternalServerErrorRes(parsedOutput, context);
1540
1515
  default:
1541
1516
  const parsedBody = parsedOutput.body;
1542
- (0, smithy_client_1.throwDefaultError)({
1517
+ return throwDefaultError({
1543
1518
  output,
1544
1519
  parsedBody,
1545
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1546
1520
  errorCode,
1547
1521
  });
1548
1522
  }
@@ -1558,7 +1532,7 @@ const de_DescribeSnapshotsCommand = async (output, context) => {
1558
1532
  $metadata: deserializeMetadata(output),
1559
1533
  ...contents,
1560
1534
  };
1561
- return Promise.resolve(response);
1535
+ return response;
1562
1536
  };
1563
1537
  exports.de_DescribeSnapshotsCommand = de_DescribeSnapshotsCommand;
1564
1538
  const de_DescribeSnapshotsCommandError = async (output, context) => {
@@ -1579,10 +1553,9 @@ const de_DescribeSnapshotsCommandError = async (output, context) => {
1579
1553
  throw await de_SnapshotNotFoundRes(parsedOutput, context);
1580
1554
  default:
1581
1555
  const parsedBody = parsedOutput.body;
1582
- (0, smithy_client_1.throwDefaultError)({
1556
+ return throwDefaultError({
1583
1557
  output,
1584
1558
  parsedBody,
1585
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1586
1559
  errorCode,
1587
1560
  });
1588
1561
  }
@@ -1598,7 +1571,7 @@ const de_DescribeStorageVirtualMachinesCommand = async (output, context) => {
1598
1571
  $metadata: deserializeMetadata(output),
1599
1572
  ...contents,
1600
1573
  };
1601
- return Promise.resolve(response);
1574
+ return response;
1602
1575
  };
1603
1576
  exports.de_DescribeStorageVirtualMachinesCommand = de_DescribeStorageVirtualMachinesCommand;
1604
1577
  const de_DescribeStorageVirtualMachinesCommandError = async (output, context) => {
@@ -1619,10 +1592,9 @@ const de_DescribeStorageVirtualMachinesCommandError = async (output, context) =>
1619
1592
  throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
1620
1593
  default:
1621
1594
  const parsedBody = parsedOutput.body;
1622
- (0, smithy_client_1.throwDefaultError)({
1595
+ return throwDefaultError({
1623
1596
  output,
1624
1597
  parsedBody,
1625
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1626
1598
  errorCode,
1627
1599
  });
1628
1600
  }
@@ -1638,7 +1610,7 @@ const de_DescribeVolumesCommand = async (output, context) => {
1638
1610
  $metadata: deserializeMetadata(output),
1639
1611
  ...contents,
1640
1612
  };
1641
- return Promise.resolve(response);
1613
+ return response;
1642
1614
  };
1643
1615
  exports.de_DescribeVolumesCommand = de_DescribeVolumesCommand;
1644
1616
  const de_DescribeVolumesCommandError = async (output, context) => {
@@ -1659,10 +1631,9 @@ const de_DescribeVolumesCommandError = async (output, context) => {
1659
1631
  throw await de_VolumeNotFoundRes(parsedOutput, context);
1660
1632
  default:
1661
1633
  const parsedBody = parsedOutput.body;
1662
- (0, smithy_client_1.throwDefaultError)({
1634
+ return throwDefaultError({
1663
1635
  output,
1664
1636
  parsedBody,
1665
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1666
1637
  errorCode,
1667
1638
  });
1668
1639
  }
@@ -1673,12 +1644,12 @@ const de_DisassociateFileSystemAliasesCommand = async (output, context) => {
1673
1644
  }
1674
1645
  const data = await parseBody(output.body, context);
1675
1646
  let contents = {};
1676
- contents = de_DisassociateFileSystemAliasesResponse(data, context);
1647
+ contents = (0, smithy_client_1._json)(data);
1677
1648
  const response = {
1678
1649
  $metadata: deserializeMetadata(output),
1679
1650
  ...contents,
1680
1651
  };
1681
- return Promise.resolve(response);
1652
+ return response;
1682
1653
  };
1683
1654
  exports.de_DisassociateFileSystemAliasesCommand = de_DisassociateFileSystemAliasesCommand;
1684
1655
  const de_DisassociateFileSystemAliasesCommandError = async (output, context) => {
@@ -1699,10 +1670,9 @@ const de_DisassociateFileSystemAliasesCommandError = async (output, context) =>
1699
1670
  throw await de_InternalServerErrorRes(parsedOutput, context);
1700
1671
  default:
1701
1672
  const parsedBody = parsedOutput.body;
1702
- (0, smithy_client_1.throwDefaultError)({
1673
+ return throwDefaultError({
1703
1674
  output,
1704
1675
  parsedBody,
1705
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1706
1676
  errorCode,
1707
1677
  });
1708
1678
  }
@@ -1713,12 +1683,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1713
1683
  }
1714
1684
  const data = await parseBody(output.body, context);
1715
1685
  let contents = {};
1716
- contents = de_ListTagsForResourceResponse(data, context);
1686
+ contents = (0, smithy_client_1._json)(data);
1717
1687
  const response = {
1718
1688
  $metadata: deserializeMetadata(output),
1719
1689
  ...contents,
1720
1690
  };
1721
- return Promise.resolve(response);
1691
+ return response;
1722
1692
  };
1723
1693
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1724
1694
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1745,10 +1715,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1745
1715
  throw await de_ResourceNotFoundRes(parsedOutput, context);
1746
1716
  default:
1747
1717
  const parsedBody = parsedOutput.body;
1748
- (0, smithy_client_1.throwDefaultError)({
1718
+ return throwDefaultError({
1749
1719
  output,
1750
1720
  parsedBody,
1751
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1752
1721
  errorCode,
1753
1722
  });
1754
1723
  }
@@ -1764,7 +1733,7 @@ const de_ReleaseFileSystemNfsV3LocksCommand = async (output, context) => {
1764
1733
  $metadata: deserializeMetadata(output),
1765
1734
  ...contents,
1766
1735
  };
1767
- return Promise.resolve(response);
1736
+ return response;
1768
1737
  };
1769
1738
  exports.de_ReleaseFileSystemNfsV3LocksCommand = de_ReleaseFileSystemNfsV3LocksCommand;
1770
1739
  const de_ReleaseFileSystemNfsV3LocksCommandError = async (output, context) => {
@@ -1791,10 +1760,9 @@ const de_ReleaseFileSystemNfsV3LocksCommandError = async (output, context) => {
1791
1760
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
1792
1761
  default:
1793
1762
  const parsedBody = parsedOutput.body;
1794
- (0, smithy_client_1.throwDefaultError)({
1763
+ return throwDefaultError({
1795
1764
  output,
1796
1765
  parsedBody,
1797
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1798
1766
  errorCode,
1799
1767
  });
1800
1768
  }
@@ -1810,7 +1778,7 @@ const de_RestoreVolumeFromSnapshotCommand = async (output, context) => {
1810
1778
  $metadata: deserializeMetadata(output),
1811
1779
  ...contents,
1812
1780
  };
1813
- return Promise.resolve(response);
1781
+ return response;
1814
1782
  };
1815
1783
  exports.de_RestoreVolumeFromSnapshotCommand = de_RestoreVolumeFromSnapshotCommand;
1816
1784
  const de_RestoreVolumeFromSnapshotCommandError = async (output, context) => {
@@ -1831,10 +1799,9 @@ const de_RestoreVolumeFromSnapshotCommandError = async (output, context) => {
1831
1799
  throw await de_VolumeNotFoundRes(parsedOutput, context);
1832
1800
  default:
1833
1801
  const parsedBody = parsedOutput.body;
1834
- (0, smithy_client_1.throwDefaultError)({
1802
+ return throwDefaultError({
1835
1803
  output,
1836
1804
  parsedBody,
1837
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1838
1805
  errorCode,
1839
1806
  });
1840
1807
  }
@@ -1845,12 +1812,12 @@ const de_TagResourceCommand = async (output, context) => {
1845
1812
  }
1846
1813
  const data = await parseBody(output.body, context);
1847
1814
  let contents = {};
1848
- contents = de_TagResourceResponse(data, context);
1815
+ contents = (0, smithy_client_1._json)(data);
1849
1816
  const response = {
1850
1817
  $metadata: deserializeMetadata(output),
1851
1818
  ...contents,
1852
1819
  };
1853
- return Promise.resolve(response);
1820
+ return response;
1854
1821
  };
1855
1822
  exports.de_TagResourceCommand = de_TagResourceCommand;
1856
1823
  const de_TagResourceCommandError = async (output, context) => {
@@ -1877,10 +1844,9 @@ const de_TagResourceCommandError = async (output, context) => {
1877
1844
  throw await de_ResourceNotFoundRes(parsedOutput, context);
1878
1845
  default:
1879
1846
  const parsedBody = parsedOutput.body;
1880
- (0, smithy_client_1.throwDefaultError)({
1847
+ return throwDefaultError({
1881
1848
  output,
1882
1849
  parsedBody,
1883
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1884
1850
  errorCode,
1885
1851
  });
1886
1852
  }
@@ -1891,12 +1857,12 @@ const de_UntagResourceCommand = async (output, context) => {
1891
1857
  }
1892
1858
  const data = await parseBody(output.body, context);
1893
1859
  let contents = {};
1894
- contents = de_UntagResourceResponse(data, context);
1860
+ contents = (0, smithy_client_1._json)(data);
1895
1861
  const response = {
1896
1862
  $metadata: deserializeMetadata(output),
1897
1863
  ...contents,
1898
1864
  };
1899
- return Promise.resolve(response);
1865
+ return response;
1900
1866
  };
1901
1867
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
1902
1868
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1923,10 +1889,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1923
1889
  throw await de_ResourceNotFoundRes(parsedOutput, context);
1924
1890
  default:
1925
1891
  const parsedBody = parsedOutput.body;
1926
- (0, smithy_client_1.throwDefaultError)({
1892
+ return throwDefaultError({
1927
1893
  output,
1928
1894
  parsedBody,
1929
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1930
1895
  errorCode,
1931
1896
  });
1932
1897
  }
@@ -1942,7 +1907,7 @@ const de_UpdateDataRepositoryAssociationCommand = async (output, context) => {
1942
1907
  $metadata: deserializeMetadata(output),
1943
1908
  ...contents,
1944
1909
  };
1945
- return Promise.resolve(response);
1910
+ return response;
1946
1911
  };
1947
1912
  exports.de_UpdateDataRepositoryAssociationCommand = de_UpdateDataRepositoryAssociationCommand;
1948
1913
  const de_UpdateDataRepositoryAssociationCommandError = async (output, context) => {
@@ -1969,10 +1934,9 @@ const de_UpdateDataRepositoryAssociationCommandError = async (output, context) =
1969
1934
  throw await de_ServiceLimitExceededRes(parsedOutput, context);
1970
1935
  default:
1971
1936
  const parsedBody = parsedOutput.body;
1972
- (0, smithy_client_1.throwDefaultError)({
1937
+ return throwDefaultError({
1973
1938
  output,
1974
1939
  parsedBody,
1975
- exceptionCtor: FSxServiceException_1.FSxServiceException,
1976
1940
  errorCode,
1977
1941
  });
1978
1942
  }
@@ -1988,7 +1952,7 @@ const de_UpdateFileCacheCommand = async (output, context) => {
1988
1952
  $metadata: deserializeMetadata(output),
1989
1953
  ...contents,
1990
1954
  };
1991
- return Promise.resolve(response);
1955
+ return response;
1992
1956
  };
1993
1957
  exports.de_UpdateFileCacheCommand = de_UpdateFileCacheCommand;
1994
1958
  const de_UpdateFileCacheCommandError = async (output, context) => {
@@ -2021,10 +1985,9 @@ const de_UpdateFileCacheCommandError = async (output, context) => {
2021
1985
  throw await de_UnsupportedOperationRes(parsedOutput, context);
2022
1986
  default:
2023
1987
  const parsedBody = parsedOutput.body;
2024
- (0, smithy_client_1.throwDefaultError)({
1988
+ return throwDefaultError({
2025
1989
  output,
2026
1990
  parsedBody,
2027
- exceptionCtor: FSxServiceException_1.FSxServiceException,
2028
1991
  errorCode,
2029
1992
  });
2030
1993
  }
@@ -2040,7 +2003,7 @@ const de_UpdateFileSystemCommand = async (output, context) => {
2040
2003
  $metadata: deserializeMetadata(output),
2041
2004
  ...contents,
2042
2005
  };
2043
- return Promise.resolve(response);
2006
+ return response;
2044
2007
  };
2045
2008
  exports.de_UpdateFileSystemCommand = de_UpdateFileSystemCommand;
2046
2009
  const de_UpdateFileSystemCommandError = async (output, context) => {
@@ -2076,10 +2039,9 @@ const de_UpdateFileSystemCommandError = async (output, context) => {
2076
2039
  throw await de_UnsupportedOperationRes(parsedOutput, context);
2077
2040
  default:
2078
2041
  const parsedBody = parsedOutput.body;
2079
- (0, smithy_client_1.throwDefaultError)({
2042
+ return throwDefaultError({
2080
2043
  output,
2081
2044
  parsedBody,
2082
- exceptionCtor: FSxServiceException_1.FSxServiceException,
2083
2045
  errorCode,
2084
2046
  });
2085
2047
  }
@@ -2095,7 +2057,7 @@ const de_UpdateSnapshotCommand = async (output, context) => {
2095
2057
  $metadata: deserializeMetadata(output),
2096
2058
  ...contents,
2097
2059
  };
2098
- return Promise.resolve(response);
2060
+ return response;
2099
2061
  };
2100
2062
  exports.de_UpdateSnapshotCommand = de_UpdateSnapshotCommand;
2101
2063
  const de_UpdateSnapshotCommandError = async (output, context) => {
@@ -2116,10 +2078,9 @@ const de_UpdateSnapshotCommandError = async (output, context) => {
2116
2078
  throw await de_SnapshotNotFoundRes(parsedOutput, context);
2117
2079
  default:
2118
2080
  const parsedBody = parsedOutput.body;
2119
- (0, smithy_client_1.throwDefaultError)({
2081
+ return throwDefaultError({
2120
2082
  output,
2121
2083
  parsedBody,
2122
- exceptionCtor: FSxServiceException_1.FSxServiceException,
2123
2084
  errorCode,
2124
2085
  });
2125
2086
  }
@@ -2135,7 +2096,7 @@ const de_UpdateStorageVirtualMachineCommand = async (output, context) => {
2135
2096
  $metadata: deserializeMetadata(output),
2136
2097
  ...contents,
2137
2098
  };
2138
- return Promise.resolve(response);
2099
+ return response;
2139
2100
  };
2140
2101
  exports.de_UpdateStorageVirtualMachineCommand = de_UpdateStorageVirtualMachineCommand;
2141
2102
  const de_UpdateStorageVirtualMachineCommandError = async (output, context) => {
@@ -2162,10 +2123,9 @@ const de_UpdateStorageVirtualMachineCommandError = async (output, context) => {
2162
2123
  throw await de_UnsupportedOperationRes(parsedOutput, context);
2163
2124
  default:
2164
2125
  const parsedBody = parsedOutput.body;
2165
- (0, smithy_client_1.throwDefaultError)({
2126
+ return throwDefaultError({
2166
2127
  output,
2167
2128
  parsedBody,
2168
- exceptionCtor: FSxServiceException_1.FSxServiceException,
2169
2129
  errorCode,
2170
2130
  });
2171
2131
  }
@@ -2181,7 +2141,7 @@ const de_UpdateVolumeCommand = async (output, context) => {
2181
2141
  $metadata: deserializeMetadata(output),
2182
2142
  ...contents,
2183
2143
  };
2184
- return Promise.resolve(response);
2144
+ return response;
2185
2145
  };
2186
2146
  exports.de_UpdateVolumeCommand = de_UpdateVolumeCommand;
2187
2147
  const de_UpdateVolumeCommandError = async (output, context) => {
@@ -2208,17 +2168,16 @@ const de_UpdateVolumeCommandError = async (output, context) => {
2208
2168
  throw await de_VolumeNotFoundRes(parsedOutput, context);
2209
2169
  default:
2210
2170
  const parsedBody = parsedOutput.body;
2211
- (0, smithy_client_1.throwDefaultError)({
2171
+ return throwDefaultError({
2212
2172
  output,
2213
2173
  parsedBody,
2214
- exceptionCtor: FSxServiceException_1.FSxServiceException,
2215
2174
  errorCode,
2216
2175
  });
2217
2176
  }
2218
2177
  };
2219
2178
  const de_ActiveDirectoryErrorRes = async (parsedOutput, context) => {
2220
2179
  const body = parsedOutput.body;
2221
- const deserialized = de_ActiveDirectoryError(body, context);
2180
+ const deserialized = (0, smithy_client_1._json)(body);
2222
2181
  const exception = new models_0_1.ActiveDirectoryError({
2223
2182
  $metadata: deserializeMetadata(parsedOutput),
2224
2183
  ...deserialized,
@@ -2227,7 +2186,7 @@ const de_ActiveDirectoryErrorRes = async (parsedOutput, context) => {
2227
2186
  };
2228
2187
  const de_BackupBeingCopiedRes = async (parsedOutput, context) => {
2229
2188
  const body = parsedOutput.body;
2230
- const deserialized = de_BackupBeingCopied(body, context);
2189
+ const deserialized = (0, smithy_client_1._json)(body);
2231
2190
  const exception = new models_0_1.BackupBeingCopied({
2232
2191
  $metadata: deserializeMetadata(parsedOutput),
2233
2192
  ...deserialized,
@@ -2236,7 +2195,7 @@ const de_BackupBeingCopiedRes = async (parsedOutput, context) => {
2236
2195
  };
2237
2196
  const de_BackupInProgressRes = async (parsedOutput, context) => {
2238
2197
  const body = parsedOutput.body;
2239
- const deserialized = de_BackupInProgress(body, context);
2198
+ const deserialized = (0, smithy_client_1._json)(body);
2240
2199
  const exception = new models_0_1.BackupInProgress({
2241
2200
  $metadata: deserializeMetadata(parsedOutput),
2242
2201
  ...deserialized,
@@ -2245,7 +2204,7 @@ const de_BackupInProgressRes = async (parsedOutput, context) => {
2245
2204
  };
2246
2205
  const de_BackupNotFoundRes = async (parsedOutput, context) => {
2247
2206
  const body = parsedOutput.body;
2248
- const deserialized = de_BackupNotFound(body, context);
2207
+ const deserialized = (0, smithy_client_1._json)(body);
2249
2208
  const exception = new models_0_1.BackupNotFound({
2250
2209
  $metadata: deserializeMetadata(parsedOutput),
2251
2210
  ...deserialized,
@@ -2254,7 +2213,7 @@ const de_BackupNotFoundRes = async (parsedOutput, context) => {
2254
2213
  };
2255
2214
  const de_BackupRestoringRes = async (parsedOutput, context) => {
2256
2215
  const body = parsedOutput.body;
2257
- const deserialized = de_BackupRestoring(body, context);
2216
+ const deserialized = (0, smithy_client_1._json)(body);
2258
2217
  const exception = new models_0_1.BackupRestoring({
2259
2218
  $metadata: deserializeMetadata(parsedOutput),
2260
2219
  ...deserialized,
@@ -2263,7 +2222,7 @@ const de_BackupRestoringRes = async (parsedOutput, context) => {
2263
2222
  };
2264
2223
  const de_BadRequestRes = async (parsedOutput, context) => {
2265
2224
  const body = parsedOutput.body;
2266
- const deserialized = de_BadRequest(body, context);
2225
+ const deserialized = (0, smithy_client_1._json)(body);
2267
2226
  const exception = new models_0_1.BadRequest({
2268
2227
  $metadata: deserializeMetadata(parsedOutput),
2269
2228
  ...deserialized,
@@ -2272,7 +2231,7 @@ const de_BadRequestRes = async (parsedOutput, context) => {
2272
2231
  };
2273
2232
  const de_DataRepositoryAssociationNotFoundRes = async (parsedOutput, context) => {
2274
2233
  const body = parsedOutput.body;
2275
- const deserialized = de_DataRepositoryAssociationNotFound(body, context);
2234
+ const deserialized = (0, smithy_client_1._json)(body);
2276
2235
  const exception = new models_0_1.DataRepositoryAssociationNotFound({
2277
2236
  $metadata: deserializeMetadata(parsedOutput),
2278
2237
  ...deserialized,
@@ -2281,7 +2240,7 @@ const de_DataRepositoryAssociationNotFoundRes = async (parsedOutput, context) =>
2281
2240
  };
2282
2241
  const de_DataRepositoryTaskEndedRes = async (parsedOutput, context) => {
2283
2242
  const body = parsedOutput.body;
2284
- const deserialized = de_DataRepositoryTaskEnded(body, context);
2243
+ const deserialized = (0, smithy_client_1._json)(body);
2285
2244
  const exception = new models_0_1.DataRepositoryTaskEnded({
2286
2245
  $metadata: deserializeMetadata(parsedOutput),
2287
2246
  ...deserialized,
@@ -2290,7 +2249,7 @@ const de_DataRepositoryTaskEndedRes = async (parsedOutput, context) => {
2290
2249
  };
2291
2250
  const de_DataRepositoryTaskExecutingRes = async (parsedOutput, context) => {
2292
2251
  const body = parsedOutput.body;
2293
- const deserialized = de_DataRepositoryTaskExecuting(body, context);
2252
+ const deserialized = (0, smithy_client_1._json)(body);
2294
2253
  const exception = new models_0_1.DataRepositoryTaskExecuting({
2295
2254
  $metadata: deserializeMetadata(parsedOutput),
2296
2255
  ...deserialized,
@@ -2299,7 +2258,7 @@ const de_DataRepositoryTaskExecutingRes = async (parsedOutput, context) => {
2299
2258
  };
2300
2259
  const de_DataRepositoryTaskNotFoundRes = async (parsedOutput, context) => {
2301
2260
  const body = parsedOutput.body;
2302
- const deserialized = de_DataRepositoryTaskNotFound(body, context);
2261
+ const deserialized = (0, smithy_client_1._json)(body);
2303
2262
  const exception = new models_0_1.DataRepositoryTaskNotFound({
2304
2263
  $metadata: deserializeMetadata(parsedOutput),
2305
2264
  ...deserialized,
@@ -2308,7 +2267,7 @@ const de_DataRepositoryTaskNotFoundRes = async (parsedOutput, context) => {
2308
2267
  };
2309
2268
  const de_FileCacheNotFoundRes = async (parsedOutput, context) => {
2310
2269
  const body = parsedOutput.body;
2311
- const deserialized = de_FileCacheNotFound(body, context);
2270
+ const deserialized = (0, smithy_client_1._json)(body);
2312
2271
  const exception = new models_0_1.FileCacheNotFound({
2313
2272
  $metadata: deserializeMetadata(parsedOutput),
2314
2273
  ...deserialized,
@@ -2317,7 +2276,7 @@ const de_FileCacheNotFoundRes = async (parsedOutput, context) => {
2317
2276
  };
2318
2277
  const de_FileSystemNotFoundRes = async (parsedOutput, context) => {
2319
2278
  const body = parsedOutput.body;
2320
- const deserialized = de_FileSystemNotFound(body, context);
2279
+ const deserialized = (0, smithy_client_1._json)(body);
2321
2280
  const exception = new models_0_1.FileSystemNotFound({
2322
2281
  $metadata: deserializeMetadata(parsedOutput),
2323
2282
  ...deserialized,
@@ -2326,7 +2285,7 @@ const de_FileSystemNotFoundRes = async (parsedOutput, context) => {
2326
2285
  };
2327
2286
  const de_IncompatibleParameterErrorRes = async (parsedOutput, context) => {
2328
2287
  const body = parsedOutput.body;
2329
- const deserialized = de_IncompatibleParameterError(body, context);
2288
+ const deserialized = (0, smithy_client_1._json)(body);
2330
2289
  const exception = new models_0_1.IncompatibleParameterError({
2331
2290
  $metadata: deserializeMetadata(parsedOutput),
2332
2291
  ...deserialized,
@@ -2335,7 +2294,7 @@ const de_IncompatibleParameterErrorRes = async (parsedOutput, context) => {
2335
2294
  };
2336
2295
  const de_IncompatibleRegionForMultiAZRes = async (parsedOutput, context) => {
2337
2296
  const body = parsedOutput.body;
2338
- const deserialized = de_IncompatibleRegionForMultiAZ(body, context);
2297
+ const deserialized = (0, smithy_client_1._json)(body);
2339
2298
  const exception = new models_0_1.IncompatibleRegionForMultiAZ({
2340
2299
  $metadata: deserializeMetadata(parsedOutput),
2341
2300
  ...deserialized,
@@ -2344,7 +2303,7 @@ const de_IncompatibleRegionForMultiAZRes = async (parsedOutput, context) => {
2344
2303
  };
2345
2304
  const de_InternalServerErrorRes = async (parsedOutput, context) => {
2346
2305
  const body = parsedOutput.body;
2347
- const deserialized = de_InternalServerError(body, context);
2306
+ const deserialized = (0, smithy_client_1._json)(body);
2348
2307
  const exception = new models_0_1.InternalServerError({
2349
2308
  $metadata: deserializeMetadata(parsedOutput),
2350
2309
  ...deserialized,
@@ -2353,7 +2312,7 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
2353
2312
  };
2354
2313
  const de_InvalidDataRepositoryTypeRes = async (parsedOutput, context) => {
2355
2314
  const body = parsedOutput.body;
2356
- const deserialized = de_InvalidDataRepositoryType(body, context);
2315
+ const deserialized = (0, smithy_client_1._json)(body);
2357
2316
  const exception = new models_0_1.InvalidDataRepositoryType({
2358
2317
  $metadata: deserializeMetadata(parsedOutput),
2359
2318
  ...deserialized,
@@ -2362,7 +2321,7 @@ const de_InvalidDataRepositoryTypeRes = async (parsedOutput, context) => {
2362
2321
  };
2363
2322
  const de_InvalidDestinationKmsKeyRes = async (parsedOutput, context) => {
2364
2323
  const body = parsedOutput.body;
2365
- const deserialized = de_InvalidDestinationKmsKey(body, context);
2324
+ const deserialized = (0, smithy_client_1._json)(body);
2366
2325
  const exception = new models_0_1.InvalidDestinationKmsKey({
2367
2326
  $metadata: deserializeMetadata(parsedOutput),
2368
2327
  ...deserialized,
@@ -2371,7 +2330,7 @@ const de_InvalidDestinationKmsKeyRes = async (parsedOutput, context) => {
2371
2330
  };
2372
2331
  const de_InvalidExportPathRes = async (parsedOutput, context) => {
2373
2332
  const body = parsedOutput.body;
2374
- const deserialized = de_InvalidExportPath(body, context);
2333
+ const deserialized = (0, smithy_client_1._json)(body);
2375
2334
  const exception = new models_0_1.InvalidExportPath({
2376
2335
  $metadata: deserializeMetadata(parsedOutput),
2377
2336
  ...deserialized,
@@ -2380,7 +2339,7 @@ const de_InvalidExportPathRes = async (parsedOutput, context) => {
2380
2339
  };
2381
2340
  const de_InvalidImportPathRes = async (parsedOutput, context) => {
2382
2341
  const body = parsedOutput.body;
2383
- const deserialized = de_InvalidImportPath(body, context);
2342
+ const deserialized = (0, smithy_client_1._json)(body);
2384
2343
  const exception = new models_0_1.InvalidImportPath({
2385
2344
  $metadata: deserializeMetadata(parsedOutput),
2386
2345
  ...deserialized,
@@ -2389,7 +2348,7 @@ const de_InvalidImportPathRes = async (parsedOutput, context) => {
2389
2348
  };
2390
2349
  const de_InvalidNetworkSettingsRes = async (parsedOutput, context) => {
2391
2350
  const body = parsedOutput.body;
2392
- const deserialized = de_InvalidNetworkSettings(body, context);
2351
+ const deserialized = (0, smithy_client_1._json)(body);
2393
2352
  const exception = new models_0_1.InvalidNetworkSettings({
2394
2353
  $metadata: deserializeMetadata(parsedOutput),
2395
2354
  ...deserialized,
@@ -2398,7 +2357,7 @@ const de_InvalidNetworkSettingsRes = async (parsedOutput, context) => {
2398
2357
  };
2399
2358
  const de_InvalidPerUnitStorageThroughputRes = async (parsedOutput, context) => {
2400
2359
  const body = parsedOutput.body;
2401
- const deserialized = de_InvalidPerUnitStorageThroughput(body, context);
2360
+ const deserialized = (0, smithy_client_1._json)(body);
2402
2361
  const exception = new models_0_1.InvalidPerUnitStorageThroughput({
2403
2362
  $metadata: deserializeMetadata(parsedOutput),
2404
2363
  ...deserialized,
@@ -2407,7 +2366,7 @@ const de_InvalidPerUnitStorageThroughputRes = async (parsedOutput, context) => {
2407
2366
  };
2408
2367
  const de_InvalidRegionRes = async (parsedOutput, context) => {
2409
2368
  const body = parsedOutput.body;
2410
- const deserialized = de_InvalidRegion(body, context);
2369
+ const deserialized = (0, smithy_client_1._json)(body);
2411
2370
  const exception = new models_0_1.InvalidRegion({
2412
2371
  $metadata: deserializeMetadata(parsedOutput),
2413
2372
  ...deserialized,
@@ -2416,7 +2375,7 @@ const de_InvalidRegionRes = async (parsedOutput, context) => {
2416
2375
  };
2417
2376
  const de_InvalidSourceKmsKeyRes = async (parsedOutput, context) => {
2418
2377
  const body = parsedOutput.body;
2419
- const deserialized = de_InvalidSourceKmsKey(body, context);
2378
+ const deserialized = (0, smithy_client_1._json)(body);
2420
2379
  const exception = new models_0_1.InvalidSourceKmsKey({
2421
2380
  $metadata: deserializeMetadata(parsedOutput),
2422
2381
  ...deserialized,
@@ -2425,7 +2384,7 @@ const de_InvalidSourceKmsKeyRes = async (parsedOutput, context) => {
2425
2384
  };
2426
2385
  const de_MissingFileCacheConfigurationRes = async (parsedOutput, context) => {
2427
2386
  const body = parsedOutput.body;
2428
- const deserialized = de_MissingFileCacheConfiguration(body, context);
2387
+ const deserialized = (0, smithy_client_1._json)(body);
2429
2388
  const exception = new models_0_1.MissingFileCacheConfiguration({
2430
2389
  $metadata: deserializeMetadata(parsedOutput),
2431
2390
  ...deserialized,
@@ -2434,7 +2393,7 @@ const de_MissingFileCacheConfigurationRes = async (parsedOutput, context) => {
2434
2393
  };
2435
2394
  const de_MissingFileSystemConfigurationRes = async (parsedOutput, context) => {
2436
2395
  const body = parsedOutput.body;
2437
- const deserialized = de_MissingFileSystemConfiguration(body, context);
2396
+ const deserialized = (0, smithy_client_1._json)(body);
2438
2397
  const exception = new models_0_1.MissingFileSystemConfiguration({
2439
2398
  $metadata: deserializeMetadata(parsedOutput),
2440
2399
  ...deserialized,
@@ -2443,7 +2402,7 @@ const de_MissingFileSystemConfigurationRes = async (parsedOutput, context) => {
2443
2402
  };
2444
2403
  const de_MissingVolumeConfigurationRes = async (parsedOutput, context) => {
2445
2404
  const body = parsedOutput.body;
2446
- const deserialized = de_MissingVolumeConfiguration(body, context);
2405
+ const deserialized = (0, smithy_client_1._json)(body);
2447
2406
  const exception = new models_0_1.MissingVolumeConfiguration({
2448
2407
  $metadata: deserializeMetadata(parsedOutput),
2449
2408
  ...deserialized,
@@ -2452,7 +2411,7 @@ const de_MissingVolumeConfigurationRes = async (parsedOutput, context) => {
2452
2411
  };
2453
2412
  const de_NotServiceResourceErrorRes = async (parsedOutput, context) => {
2454
2413
  const body = parsedOutput.body;
2455
- const deserialized = de_NotServiceResourceError(body, context);
2414
+ const deserialized = (0, smithy_client_1._json)(body);
2456
2415
  const exception = new models_0_1.NotServiceResourceError({
2457
2416
  $metadata: deserializeMetadata(parsedOutput),
2458
2417
  ...deserialized,
@@ -2461,7 +2420,7 @@ const de_NotServiceResourceErrorRes = async (parsedOutput, context) => {
2461
2420
  };
2462
2421
  const de_ResourceDoesNotSupportTaggingRes = async (parsedOutput, context) => {
2463
2422
  const body = parsedOutput.body;
2464
- const deserialized = de_ResourceDoesNotSupportTagging(body, context);
2423
+ const deserialized = (0, smithy_client_1._json)(body);
2465
2424
  const exception = new models_0_1.ResourceDoesNotSupportTagging({
2466
2425
  $metadata: deserializeMetadata(parsedOutput),
2467
2426
  ...deserialized,
@@ -2470,7 +2429,7 @@ const de_ResourceDoesNotSupportTaggingRes = async (parsedOutput, context) => {
2470
2429
  };
2471
2430
  const de_ResourceNotFoundRes = async (parsedOutput, context) => {
2472
2431
  const body = parsedOutput.body;
2473
- const deserialized = de_ResourceNotFound(body, context);
2432
+ const deserialized = (0, smithy_client_1._json)(body);
2474
2433
  const exception = new models_0_1.ResourceNotFound({
2475
2434
  $metadata: deserializeMetadata(parsedOutput),
2476
2435
  ...deserialized,
@@ -2479,7 +2438,7 @@ const de_ResourceNotFoundRes = async (parsedOutput, context) => {
2479
2438
  };
2480
2439
  const de_ServiceLimitExceededRes = async (parsedOutput, context) => {
2481
2440
  const body = parsedOutput.body;
2482
- const deserialized = de_ServiceLimitExceeded(body, context);
2441
+ const deserialized = (0, smithy_client_1._json)(body);
2483
2442
  const exception = new models_0_1.ServiceLimitExceeded({
2484
2443
  $metadata: deserializeMetadata(parsedOutput),
2485
2444
  ...deserialized,
@@ -2488,7 +2447,7 @@ const de_ServiceLimitExceededRes = async (parsedOutput, context) => {
2488
2447
  };
2489
2448
  const de_SnapshotNotFoundRes = async (parsedOutput, context) => {
2490
2449
  const body = parsedOutput.body;
2491
- const deserialized = de_SnapshotNotFound(body, context);
2450
+ const deserialized = (0, smithy_client_1._json)(body);
2492
2451
  const exception = new models_0_1.SnapshotNotFound({
2493
2452
  $metadata: deserializeMetadata(parsedOutput),
2494
2453
  ...deserialized,
@@ -2497,7 +2456,7 @@ const de_SnapshotNotFoundRes = async (parsedOutput, context) => {
2497
2456
  };
2498
2457
  const de_SourceBackupUnavailableRes = async (parsedOutput, context) => {
2499
2458
  const body = parsedOutput.body;
2500
- const deserialized = de_SourceBackupUnavailable(body, context);
2459
+ const deserialized = (0, smithy_client_1._json)(body);
2501
2460
  const exception = new models_0_1.SourceBackupUnavailable({
2502
2461
  $metadata: deserializeMetadata(parsedOutput),
2503
2462
  ...deserialized,
@@ -2506,7 +2465,7 @@ const de_SourceBackupUnavailableRes = async (parsedOutput, context) => {
2506
2465
  };
2507
2466
  const de_StorageVirtualMachineNotFoundRes = async (parsedOutput, context) => {
2508
2467
  const body = parsedOutput.body;
2509
- const deserialized = de_StorageVirtualMachineNotFound(body, context);
2468
+ const deserialized = (0, smithy_client_1._json)(body);
2510
2469
  const exception = new models_0_1.StorageVirtualMachineNotFound({
2511
2470
  $metadata: deserializeMetadata(parsedOutput),
2512
2471
  ...deserialized,
@@ -2515,7 +2474,7 @@ const de_StorageVirtualMachineNotFoundRes = async (parsedOutput, context) => {
2515
2474
  };
2516
2475
  const de_UnsupportedOperationRes = async (parsedOutput, context) => {
2517
2476
  const body = parsedOutput.body;
2518
- const deserialized = de_UnsupportedOperation(body, context);
2477
+ const deserialized = (0, smithy_client_1._json)(body);
2519
2478
  const exception = new models_0_1.UnsupportedOperation({
2520
2479
  $metadata: deserializeMetadata(parsedOutput),
2521
2480
  ...deserialized,
@@ -2524,2457 +2483,684 @@ const de_UnsupportedOperationRes = async (parsedOutput, context) => {
2524
2483
  };
2525
2484
  const de_VolumeNotFoundRes = async (parsedOutput, context) => {
2526
2485
  const body = parsedOutput.body;
2527
- const deserialized = de_VolumeNotFound(body, context);
2486
+ const deserialized = (0, smithy_client_1._json)(body);
2528
2487
  const exception = new models_0_1.VolumeNotFound({
2529
2488
  $metadata: deserializeMetadata(parsedOutput),
2530
2489
  ...deserialized,
2531
2490
  });
2532
2491
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2533
2492
  };
2534
- const se_AlternateDNSNames = (input, context) => {
2535
- return input
2536
- .filter((e) => e != null)
2537
- .map((entry) => {
2538
- return entry;
2539
- });
2540
- };
2541
2493
  const se_AssociateFileSystemAliasesRequest = (input, context) => {
2542
- return {
2543
- ...(input.Aliases != null && { Aliases: se_AlternateDNSNames(input.Aliases, context) }),
2544
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2545
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
2546
- };
2547
- };
2548
- const se_AutoExportPolicy = (input, context) => {
2549
- return {
2550
- ...(input.Events != null && { Events: se_EventTypes(input.Events, context) }),
2551
- };
2552
- };
2553
- const se_AutoImportPolicy = (input, context) => {
2554
- return {
2555
- ...(input.Events != null && { Events: se_EventTypes(input.Events, context) }),
2556
- };
2557
- };
2558
- const se_BackupIds = (input, context) => {
2559
- return input
2560
- .filter((e) => e != null)
2561
- .map((entry) => {
2562
- return entry;
2494
+ return (0, smithy_client_1.take)(input, {
2495
+ Aliases: smithy_client_1._json,
2496
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2497
+ FileSystemId: [],
2563
2498
  });
2564
2499
  };
2565
- const se_CancelDataRepositoryTaskRequest = (input, context) => {
2566
- return {
2567
- ...(input.TaskId != null && { TaskId: input.TaskId }),
2568
- };
2569
- };
2570
- const se_CompletionReport = (input, context) => {
2571
- return {
2572
- ...(input.Enabled != null && { Enabled: input.Enabled }),
2573
- ...(input.Format != null && { Format: input.Format }),
2574
- ...(input.Path != null && { Path: input.Path }),
2575
- ...(input.Scope != null && { Scope: input.Scope }),
2576
- };
2577
- };
2578
2500
  const se_CopyBackupRequest = (input, context) => {
2579
- return {
2580
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2581
- ...(input.CopyTags != null && { CopyTags: input.CopyTags }),
2582
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
2583
- ...(input.SourceBackupId != null && { SourceBackupId: input.SourceBackupId }),
2584
- ...(input.SourceRegion != null && { SourceRegion: input.SourceRegion }),
2585
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2586
- };
2501
+ return (0, smithy_client_1.take)(input, {
2502
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2503
+ CopyTags: [],
2504
+ KmsKeyId: [],
2505
+ SourceBackupId: [],
2506
+ SourceRegion: [],
2507
+ Tags: smithy_client_1._json,
2508
+ });
2587
2509
  };
2588
2510
  const se_CreateBackupRequest = (input, context) => {
2589
- return {
2590
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2591
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
2592
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2593
- ...(input.VolumeId != null && { VolumeId: input.VolumeId }),
2594
- };
2511
+ return (0, smithy_client_1.take)(input, {
2512
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2513
+ FileSystemId: [],
2514
+ Tags: smithy_client_1._json,
2515
+ VolumeId: [],
2516
+ });
2595
2517
  };
2596
2518
  const se_CreateDataRepositoryAssociationRequest = (input, context) => {
2597
- return {
2598
- ...(input.BatchImportMetaDataOnCreate != null && {
2599
- BatchImportMetaDataOnCreate: input.BatchImportMetaDataOnCreate,
2600
- }),
2601
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2602
- ...(input.DataRepositoryPath != null && { DataRepositoryPath: input.DataRepositoryPath }),
2603
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
2604
- ...(input.FileSystemPath != null && { FileSystemPath: input.FileSystemPath }),
2605
- ...(input.ImportedFileChunkSize != null && { ImportedFileChunkSize: input.ImportedFileChunkSize }),
2606
- ...(input.S3 != null && { S3: se_S3DataRepositoryConfiguration(input.S3, context) }),
2607
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2608
- };
2519
+ return (0, smithy_client_1.take)(input, {
2520
+ BatchImportMetaDataOnCreate: [],
2521
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2522
+ DataRepositoryPath: [],
2523
+ FileSystemId: [],
2524
+ FileSystemPath: [],
2525
+ ImportedFileChunkSize: [],
2526
+ S3: smithy_client_1._json,
2527
+ Tags: smithy_client_1._json,
2528
+ });
2609
2529
  };
2610
2530
  const se_CreateDataRepositoryTaskRequest = (input, context) => {
2611
- return {
2612
- ...(input.CapacityToRelease != null && { CapacityToRelease: input.CapacityToRelease }),
2613
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2614
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
2615
- ...(input.Paths != null && { Paths: se_DataRepositoryTaskPaths(input.Paths, context) }),
2616
- ...(input.Report != null && { Report: se_CompletionReport(input.Report, context) }),
2617
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2618
- ...(input.Type != null && { Type: input.Type }),
2619
- };
2620
- };
2621
- const se_CreateFileCacheDataRepositoryAssociations = (input, context) => {
2622
- return input
2623
- .filter((e) => e != null)
2624
- .map((entry) => {
2625
- return se_FileCacheDataRepositoryAssociation(entry, context);
2531
+ return (0, smithy_client_1.take)(input, {
2532
+ CapacityToRelease: [],
2533
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2534
+ FileSystemId: [],
2535
+ Paths: smithy_client_1._json,
2536
+ Report: smithy_client_1._json,
2537
+ Tags: smithy_client_1._json,
2538
+ Type: [],
2626
2539
  });
2627
2540
  };
2628
- const se_CreateFileCacheLustreConfiguration = (input, context) => {
2629
- return {
2630
- ...(input.DeploymentType != null && { DeploymentType: input.DeploymentType }),
2631
- ...(input.MetadataConfiguration != null && {
2632
- MetadataConfiguration: se_FileCacheLustreMetadataConfiguration(input.MetadataConfiguration, context),
2633
- }),
2634
- ...(input.PerUnitStorageThroughput != null && { PerUnitStorageThroughput: input.PerUnitStorageThroughput }),
2635
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
2636
- };
2637
- };
2638
2541
  const se_CreateFileCacheRequest = (input, context) => {
2639
- return {
2640
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2641
- ...(input.CopyTagsToDataRepositoryAssociations != null && {
2642
- CopyTagsToDataRepositoryAssociations: input.CopyTagsToDataRepositoryAssociations,
2643
- }),
2644
- ...(input.DataRepositoryAssociations != null && {
2645
- DataRepositoryAssociations: se_CreateFileCacheDataRepositoryAssociations(input.DataRepositoryAssociations, context),
2646
- }),
2647
- ...(input.FileCacheType != null && { FileCacheType: input.FileCacheType }),
2648
- ...(input.FileCacheTypeVersion != null && { FileCacheTypeVersion: input.FileCacheTypeVersion }),
2649
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
2650
- ...(input.LustreConfiguration != null && {
2651
- LustreConfiguration: se_CreateFileCacheLustreConfiguration(input.LustreConfiguration, context),
2652
- }),
2653
- ...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupIds(input.SecurityGroupIds, context) }),
2654
- ...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
2655
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
2656
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2657
- };
2542
+ return (0, smithy_client_1.take)(input, {
2543
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2544
+ CopyTagsToDataRepositoryAssociations: [],
2545
+ DataRepositoryAssociations: smithy_client_1._json,
2546
+ FileCacheType: [],
2547
+ FileCacheTypeVersion: [],
2548
+ KmsKeyId: [],
2549
+ LustreConfiguration: smithy_client_1._json,
2550
+ SecurityGroupIds: smithy_client_1._json,
2551
+ StorageCapacity: [],
2552
+ SubnetIds: smithy_client_1._json,
2553
+ Tags: smithy_client_1._json,
2554
+ });
2658
2555
  };
2659
2556
  const se_CreateFileSystemFromBackupRequest = (input, context) => {
2660
- return {
2661
- ...(input.BackupId != null && { BackupId: input.BackupId }),
2662
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2663
- ...(input.FileSystemTypeVersion != null && { FileSystemTypeVersion: input.FileSystemTypeVersion }),
2664
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
2665
- ...(input.LustreConfiguration != null && {
2666
- LustreConfiguration: se_CreateFileSystemLustreConfiguration(input.LustreConfiguration, context),
2667
- }),
2668
- ...(input.OpenZFSConfiguration != null && {
2669
- OpenZFSConfiguration: se_CreateFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
2670
- }),
2671
- ...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupIds(input.SecurityGroupIds, context) }),
2672
- ...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
2673
- ...(input.StorageType != null && { StorageType: input.StorageType }),
2674
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
2675
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2676
- ...(input.WindowsConfiguration != null && {
2677
- WindowsConfiguration: se_CreateFileSystemWindowsConfiguration(input.WindowsConfiguration, context),
2678
- }),
2679
- };
2680
- };
2681
- const se_CreateFileSystemLustreConfiguration = (input, context) => {
2682
- return {
2683
- ...(input.AutoImportPolicy != null && { AutoImportPolicy: input.AutoImportPolicy }),
2684
- ...(input.AutomaticBackupRetentionDays != null && {
2685
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
2686
- }),
2687
- ...(input.CopyTagsToBackups != null && { CopyTagsToBackups: input.CopyTagsToBackups }),
2688
- ...(input.DailyAutomaticBackupStartTime != null && {
2689
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
2690
- }),
2691
- ...(input.DataCompressionType != null && { DataCompressionType: input.DataCompressionType }),
2692
- ...(input.DeploymentType != null && { DeploymentType: input.DeploymentType }),
2693
- ...(input.DriveCacheType != null && { DriveCacheType: input.DriveCacheType }),
2694
- ...(input.ExportPath != null && { ExportPath: input.ExportPath }),
2695
- ...(input.ImportPath != null && { ImportPath: input.ImportPath }),
2696
- ...(input.ImportedFileChunkSize != null && { ImportedFileChunkSize: input.ImportedFileChunkSize }),
2697
- ...(input.LogConfiguration != null && {
2698
- LogConfiguration: se_LustreLogCreateConfiguration(input.LogConfiguration, context),
2699
- }),
2700
- ...(input.PerUnitStorageThroughput != null && { PerUnitStorageThroughput: input.PerUnitStorageThroughput }),
2701
- ...(input.RootSquashConfiguration != null && {
2702
- RootSquashConfiguration: se_LustreRootSquashConfiguration(input.RootSquashConfiguration, context),
2703
- }),
2704
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
2705
- };
2706
- };
2707
- const se_CreateFileSystemOntapConfiguration = (input, context) => {
2708
- return {
2709
- ...(input.AutomaticBackupRetentionDays != null && {
2710
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
2711
- }),
2712
- ...(input.DailyAutomaticBackupStartTime != null && {
2713
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
2714
- }),
2715
- ...(input.DeploymentType != null && { DeploymentType: input.DeploymentType }),
2716
- ...(input.DiskIopsConfiguration != null && {
2717
- DiskIopsConfiguration: se_DiskIopsConfiguration(input.DiskIopsConfiguration, context),
2718
- }),
2719
- ...(input.EndpointIpAddressRange != null && { EndpointIpAddressRange: input.EndpointIpAddressRange }),
2720
- ...(input.FsxAdminPassword != null && { FsxAdminPassword: input.FsxAdminPassword }),
2721
- ...(input.PreferredSubnetId != null && { PreferredSubnetId: input.PreferredSubnetId }),
2722
- ...(input.RouteTableIds != null && { RouteTableIds: se_RouteTableIds(input.RouteTableIds, context) }),
2723
- ...(input.ThroughputCapacity != null && { ThroughputCapacity: input.ThroughputCapacity }),
2724
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
2725
- };
2726
- };
2727
- const se_CreateFileSystemOpenZFSConfiguration = (input, context) => {
2728
- return {
2729
- ...(input.AutomaticBackupRetentionDays != null && {
2730
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
2731
- }),
2732
- ...(input.CopyTagsToBackups != null && { CopyTagsToBackups: input.CopyTagsToBackups }),
2733
- ...(input.CopyTagsToVolumes != null && { CopyTagsToVolumes: input.CopyTagsToVolumes }),
2734
- ...(input.DailyAutomaticBackupStartTime != null && {
2735
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
2736
- }),
2737
- ...(input.DeploymentType != null && { DeploymentType: input.DeploymentType }),
2738
- ...(input.DiskIopsConfiguration != null && {
2739
- DiskIopsConfiguration: se_DiskIopsConfiguration(input.DiskIopsConfiguration, context),
2740
- }),
2741
- ...(input.RootVolumeConfiguration != null && {
2742
- RootVolumeConfiguration: se_OpenZFSCreateRootVolumeConfiguration(input.RootVolumeConfiguration, context),
2743
- }),
2744
- ...(input.ThroughputCapacity != null && { ThroughputCapacity: input.ThroughputCapacity }),
2745
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
2746
- };
2557
+ return (0, smithy_client_1.take)(input, {
2558
+ BackupId: [],
2559
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2560
+ FileSystemTypeVersion: [],
2561
+ KmsKeyId: [],
2562
+ LustreConfiguration: smithy_client_1._json,
2563
+ OpenZFSConfiguration: smithy_client_1._json,
2564
+ SecurityGroupIds: smithy_client_1._json,
2565
+ StorageCapacity: [],
2566
+ StorageType: [],
2567
+ SubnetIds: smithy_client_1._json,
2568
+ Tags: smithy_client_1._json,
2569
+ WindowsConfiguration: smithy_client_1._json,
2570
+ });
2747
2571
  };
2748
2572
  const se_CreateFileSystemRequest = (input, context) => {
2749
- return {
2750
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2751
- ...(input.FileSystemType != null && { FileSystemType: input.FileSystemType }),
2752
- ...(input.FileSystemTypeVersion != null && { FileSystemTypeVersion: input.FileSystemTypeVersion }),
2753
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
2754
- ...(input.LustreConfiguration != null && {
2755
- LustreConfiguration: se_CreateFileSystemLustreConfiguration(input.LustreConfiguration, context),
2756
- }),
2757
- ...(input.OntapConfiguration != null && {
2758
- OntapConfiguration: se_CreateFileSystemOntapConfiguration(input.OntapConfiguration, context),
2759
- }),
2760
- ...(input.OpenZFSConfiguration != null && {
2761
- OpenZFSConfiguration: se_CreateFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
2762
- }),
2763
- ...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupIds(input.SecurityGroupIds, context) }),
2764
- ...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
2765
- ...(input.StorageType != null && { StorageType: input.StorageType }),
2766
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
2767
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2768
- ...(input.WindowsConfiguration != null && {
2769
- WindowsConfiguration: se_CreateFileSystemWindowsConfiguration(input.WindowsConfiguration, context),
2770
- }),
2771
- };
2772
- };
2773
- const se_CreateFileSystemWindowsConfiguration = (input, context) => {
2774
- return {
2775
- ...(input.ActiveDirectoryId != null && { ActiveDirectoryId: input.ActiveDirectoryId }),
2776
- ...(input.Aliases != null && { Aliases: se_AlternateDNSNames(input.Aliases, context) }),
2777
- ...(input.AuditLogConfiguration != null && {
2778
- AuditLogConfiguration: se_WindowsAuditLogCreateConfiguration(input.AuditLogConfiguration, context),
2779
- }),
2780
- ...(input.AutomaticBackupRetentionDays != null && {
2781
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
2782
- }),
2783
- ...(input.CopyTagsToBackups != null && { CopyTagsToBackups: input.CopyTagsToBackups }),
2784
- ...(input.DailyAutomaticBackupStartTime != null && {
2785
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
2786
- }),
2787
- ...(input.DeploymentType != null && { DeploymentType: input.DeploymentType }),
2788
- ...(input.PreferredSubnetId != null && { PreferredSubnetId: input.PreferredSubnetId }),
2789
- ...(input.SelfManagedActiveDirectoryConfiguration != null && {
2790
- SelfManagedActiveDirectoryConfiguration: se_SelfManagedActiveDirectoryConfiguration(input.SelfManagedActiveDirectoryConfiguration, context),
2791
- }),
2792
- ...(input.ThroughputCapacity != null && { ThroughputCapacity: input.ThroughputCapacity }),
2793
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
2794
- };
2795
- };
2796
- const se_CreateOntapVolumeConfiguration = (input, context) => {
2797
- return {
2798
- ...(input.CopyTagsToBackups != null && { CopyTagsToBackups: input.CopyTagsToBackups }),
2799
- ...(input.JunctionPath != null && { JunctionPath: input.JunctionPath }),
2800
- ...(input.OntapVolumeType != null && { OntapVolumeType: input.OntapVolumeType }),
2801
- ...(input.SecurityStyle != null && { SecurityStyle: input.SecurityStyle }),
2802
- ...(input.SizeInMegabytes != null && { SizeInMegabytes: input.SizeInMegabytes }),
2803
- ...(input.SnapshotPolicy != null && { SnapshotPolicy: input.SnapshotPolicy }),
2804
- ...(input.StorageEfficiencyEnabled != null && { StorageEfficiencyEnabled: input.StorageEfficiencyEnabled }),
2805
- ...(input.StorageVirtualMachineId != null && { StorageVirtualMachineId: input.StorageVirtualMachineId }),
2806
- ...(input.TieringPolicy != null && { TieringPolicy: se_TieringPolicy(input.TieringPolicy, context) }),
2807
- };
2808
- };
2809
- const se_CreateOpenZFSOriginSnapshotConfiguration = (input, context) => {
2810
- return {
2811
- ...(input.CopyStrategy != null && { CopyStrategy: input.CopyStrategy }),
2812
- ...(input.SnapshotARN != null && { SnapshotARN: input.SnapshotARN }),
2813
- };
2814
- };
2815
- const se_CreateOpenZFSVolumeConfiguration = (input, context) => {
2816
- return {
2817
- ...(input.CopyTagsToSnapshots != null && { CopyTagsToSnapshots: input.CopyTagsToSnapshots }),
2818
- ...(input.DataCompressionType != null && { DataCompressionType: input.DataCompressionType }),
2819
- ...(input.NfsExports != null && { NfsExports: se_OpenZFSNfsExports(input.NfsExports, context) }),
2820
- ...(input.OriginSnapshot != null && {
2821
- OriginSnapshot: se_CreateOpenZFSOriginSnapshotConfiguration(input.OriginSnapshot, context),
2822
- }),
2823
- ...(input.ParentVolumeId != null && { ParentVolumeId: input.ParentVolumeId }),
2824
- ...(input.ReadOnly != null && { ReadOnly: input.ReadOnly }),
2825
- ...(input.RecordSizeKiB != null && { RecordSizeKiB: input.RecordSizeKiB }),
2826
- ...(input.StorageCapacityQuotaGiB != null && { StorageCapacityQuotaGiB: input.StorageCapacityQuotaGiB }),
2827
- ...(input.StorageCapacityReservationGiB != null && {
2828
- StorageCapacityReservationGiB: input.StorageCapacityReservationGiB,
2829
- }),
2830
- ...(input.UserAndGroupQuotas != null && {
2831
- UserAndGroupQuotas: se_OpenZFSUserAndGroupQuotas(input.UserAndGroupQuotas, context),
2832
- }),
2833
- };
2573
+ return (0, smithy_client_1.take)(input, {
2574
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2575
+ FileSystemType: [],
2576
+ FileSystemTypeVersion: [],
2577
+ KmsKeyId: [],
2578
+ LustreConfiguration: smithy_client_1._json,
2579
+ OntapConfiguration: smithy_client_1._json,
2580
+ OpenZFSConfiguration: smithy_client_1._json,
2581
+ SecurityGroupIds: smithy_client_1._json,
2582
+ StorageCapacity: [],
2583
+ StorageType: [],
2584
+ SubnetIds: smithy_client_1._json,
2585
+ Tags: smithy_client_1._json,
2586
+ WindowsConfiguration: smithy_client_1._json,
2587
+ });
2834
2588
  };
2835
2589
  const se_CreateSnapshotRequest = (input, context) => {
2836
- return {
2837
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2838
- ...(input.Name != null && { Name: input.Name }),
2839
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2840
- ...(input.VolumeId != null && { VolumeId: input.VolumeId }),
2841
- };
2842
- };
2843
- const se_CreateStorageVirtualMachineRequest = (input, context) => {
2844
- return {
2845
- ...(input.ActiveDirectoryConfiguration != null && {
2846
- ActiveDirectoryConfiguration: se_CreateSvmActiveDirectoryConfiguration(input.ActiveDirectoryConfiguration, context),
2847
- }),
2848
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2849
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
2850
- ...(input.Name != null && { Name: input.Name }),
2851
- ...(input.RootVolumeSecurityStyle != null && { RootVolumeSecurityStyle: input.RootVolumeSecurityStyle }),
2852
- ...(input.SvmAdminPassword != null && { SvmAdminPassword: input.SvmAdminPassword }),
2853
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2854
- };
2855
- };
2856
- const se_CreateSvmActiveDirectoryConfiguration = (input, context) => {
2857
- return {
2858
- ...(input.NetBiosName != null && { NetBiosName: input.NetBiosName }),
2859
- ...(input.SelfManagedActiveDirectoryConfiguration != null && {
2860
- SelfManagedActiveDirectoryConfiguration: se_SelfManagedActiveDirectoryConfiguration(input.SelfManagedActiveDirectoryConfiguration, context),
2861
- }),
2862
- };
2863
- };
2864
- const se_CreateVolumeFromBackupRequest = (input, context) => {
2865
- return {
2866
- ...(input.BackupId != null && { BackupId: input.BackupId }),
2867
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2868
- ...(input.Name != null && { Name: input.Name }),
2869
- ...(input.OntapConfiguration != null && {
2870
- OntapConfiguration: se_CreateOntapVolumeConfiguration(input.OntapConfiguration, context),
2871
- }),
2872
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2873
- };
2874
- };
2875
- const se_CreateVolumeRequest = (input, context) => {
2876
- return {
2877
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2878
- ...(input.Name != null && { Name: input.Name }),
2879
- ...(input.OntapConfiguration != null && {
2880
- OntapConfiguration: se_CreateOntapVolumeConfiguration(input.OntapConfiguration, context),
2881
- }),
2882
- ...(input.OpenZFSConfiguration != null && {
2883
- OpenZFSConfiguration: se_CreateOpenZFSVolumeConfiguration(input.OpenZFSConfiguration, context),
2884
- }),
2885
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
2886
- ...(input.VolumeType != null && { VolumeType: input.VolumeType }),
2887
- };
2888
- };
2889
- const se_DataRepositoryAssociationIds = (input, context) => {
2890
- return input
2891
- .filter((e) => e != null)
2892
- .map((entry) => {
2893
- return entry;
2590
+ return (0, smithy_client_1.take)(input, {
2591
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2592
+ Name: [],
2593
+ Tags: smithy_client_1._json,
2594
+ VolumeId: [],
2894
2595
  });
2895
2596
  };
2896
- const se_DataRepositoryTaskFilter = (input, context) => {
2897
- return {
2898
- ...(input.Name != null && { Name: input.Name }),
2899
- ...(input.Values != null && { Values: se_DataRepositoryTaskFilterValues(input.Values, context) }),
2900
- };
2901
- };
2902
- const se_DataRepositoryTaskFilters = (input, context) => {
2903
- return input
2904
- .filter((e) => e != null)
2905
- .map((entry) => {
2906
- return se_DataRepositoryTaskFilter(entry, context);
2597
+ const se_CreateStorageVirtualMachineRequest = (input, context) => {
2598
+ return (0, smithy_client_1.take)(input, {
2599
+ ActiveDirectoryConfiguration: smithy_client_1._json,
2600
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2601
+ FileSystemId: [],
2602
+ Name: [],
2603
+ RootVolumeSecurityStyle: [],
2604
+ SvmAdminPassword: [],
2605
+ Tags: smithy_client_1._json,
2907
2606
  });
2908
2607
  };
2909
- const se_DataRepositoryTaskFilterValues = (input, context) => {
2910
- return input
2911
- .filter((e) => e != null)
2912
- .map((entry) => {
2913
- return entry;
2608
+ const se_CreateVolumeFromBackupRequest = (input, context) => {
2609
+ return (0, smithy_client_1.take)(input, {
2610
+ BackupId: [],
2611
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2612
+ Name: [],
2613
+ OntapConfiguration: smithy_client_1._json,
2614
+ Tags: smithy_client_1._json,
2914
2615
  });
2915
2616
  };
2916
- const se_DataRepositoryTaskPaths = (input, context) => {
2917
- return input
2918
- .filter((e) => e != null)
2919
- .map((entry) => {
2920
- return entry;
2617
+ const se_CreateVolumeRequest = (input, context) => {
2618
+ return (0, smithy_client_1.take)(input, {
2619
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2620
+ Name: [],
2621
+ OntapConfiguration: smithy_client_1._json,
2622
+ OpenZFSConfiguration: smithy_client_1._json,
2623
+ Tags: smithy_client_1._json,
2624
+ VolumeType: [],
2921
2625
  });
2922
2626
  };
2923
2627
  const se_DeleteBackupRequest = (input, context) => {
2924
- return {
2925
- ...(input.BackupId != null && { BackupId: input.BackupId }),
2926
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2927
- };
2628
+ return (0, smithy_client_1.take)(input, {
2629
+ BackupId: [],
2630
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2631
+ });
2928
2632
  };
2929
2633
  const se_DeleteDataRepositoryAssociationRequest = (input, context) => {
2930
- return {
2931
- ...(input.AssociationId != null && { AssociationId: input.AssociationId }),
2932
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2933
- ...(input.DeleteDataInFileSystem != null && { DeleteDataInFileSystem: input.DeleteDataInFileSystem }),
2934
- };
2634
+ return (0, smithy_client_1.take)(input, {
2635
+ AssociationId: [],
2636
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2637
+ DeleteDataInFileSystem: [],
2638
+ });
2935
2639
  };
2936
2640
  const se_DeleteFileCacheRequest = (input, context) => {
2937
- return {
2938
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2939
- ...(input.FileCacheId != null && { FileCacheId: input.FileCacheId }),
2940
- };
2941
- };
2942
- const se_DeleteFileSystemLustreConfiguration = (input, context) => {
2943
- return {
2944
- ...(input.FinalBackupTags != null && { FinalBackupTags: se_Tags(input.FinalBackupTags, context) }),
2945
- ...(input.SkipFinalBackup != null && { SkipFinalBackup: input.SkipFinalBackup }),
2946
- };
2947
- };
2948
- const se_DeleteFileSystemOpenZFSConfiguration = (input, context) => {
2949
- return {
2950
- ...(input.FinalBackupTags != null && { FinalBackupTags: se_Tags(input.FinalBackupTags, context) }),
2951
- ...(input.Options != null && { Options: se_DeleteFileSystemOpenZFSOptions(input.Options, context) }),
2952
- ...(input.SkipFinalBackup != null && { SkipFinalBackup: input.SkipFinalBackup }),
2953
- };
2954
- };
2955
- const se_DeleteFileSystemOpenZFSOptions = (input, context) => {
2956
- return input
2957
- .filter((e) => e != null)
2958
- .map((entry) => {
2959
- return entry;
2641
+ return (0, smithy_client_1.take)(input, {
2642
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2643
+ FileCacheId: [],
2960
2644
  });
2961
2645
  };
2962
2646
  const se_DeleteFileSystemRequest = (input, context) => {
2963
- return {
2964
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2965
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
2966
- ...(input.LustreConfiguration != null && {
2967
- LustreConfiguration: se_DeleteFileSystemLustreConfiguration(input.LustreConfiguration, context),
2968
- }),
2969
- ...(input.OpenZFSConfiguration != null && {
2970
- OpenZFSConfiguration: se_DeleteFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
2971
- }),
2972
- ...(input.WindowsConfiguration != null && {
2973
- WindowsConfiguration: se_DeleteFileSystemWindowsConfiguration(input.WindowsConfiguration, context),
2974
- }),
2975
- };
2976
- };
2977
- const se_DeleteFileSystemWindowsConfiguration = (input, context) => {
2978
- return {
2979
- ...(input.FinalBackupTags != null && { FinalBackupTags: se_Tags(input.FinalBackupTags, context) }),
2980
- ...(input.SkipFinalBackup != null && { SkipFinalBackup: input.SkipFinalBackup }),
2981
- };
2982
- };
2983
- const se_DeleteOpenZFSVolumeOptions = (input, context) => {
2984
- return input
2985
- .filter((e) => e != null)
2986
- .map((entry) => {
2987
- return entry;
2647
+ return (0, smithy_client_1.take)(input, {
2648
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2649
+ FileSystemId: [],
2650
+ LustreConfiguration: smithy_client_1._json,
2651
+ OpenZFSConfiguration: smithy_client_1._json,
2652
+ WindowsConfiguration: smithy_client_1._json,
2988
2653
  });
2989
2654
  };
2990
2655
  const se_DeleteSnapshotRequest = (input, context) => {
2991
- return {
2992
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2993
- ...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }),
2994
- };
2995
- };
2996
- const se_DeleteStorageVirtualMachineRequest = (input, context) => {
2997
- return {
2998
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
2999
- ...(input.StorageVirtualMachineId != null && { StorageVirtualMachineId: input.StorageVirtualMachineId }),
3000
- };
3001
- };
3002
- const se_DeleteVolumeOntapConfiguration = (input, context) => {
3003
- return {
3004
- ...(input.FinalBackupTags != null && { FinalBackupTags: se_Tags(input.FinalBackupTags, context) }),
3005
- ...(input.SkipFinalBackup != null && { SkipFinalBackup: input.SkipFinalBackup }),
3006
- };
3007
- };
3008
- const se_DeleteVolumeOpenZFSConfiguration = (input, context) => {
3009
- return {
3010
- ...(input.Options != null && { Options: se_DeleteOpenZFSVolumeOptions(input.Options, context) }),
3011
- };
3012
- };
3013
- const se_DeleteVolumeRequest = (input, context) => {
3014
- return {
3015
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
3016
- ...(input.OntapConfiguration != null && {
3017
- OntapConfiguration: se_DeleteVolumeOntapConfiguration(input.OntapConfiguration, context),
3018
- }),
3019
- ...(input.OpenZFSConfiguration != null && {
3020
- OpenZFSConfiguration: se_DeleteVolumeOpenZFSConfiguration(input.OpenZFSConfiguration, context),
3021
- }),
3022
- ...(input.VolumeId != null && { VolumeId: input.VolumeId }),
3023
- };
3024
- };
3025
- const se_DescribeBackupsRequest = (input, context) => {
3026
- return {
3027
- ...(input.BackupIds != null && { BackupIds: se_BackupIds(input.BackupIds, context) }),
3028
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3029
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3030
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3031
- };
3032
- };
3033
- const se_DescribeDataRepositoryAssociationsRequest = (input, context) => {
3034
- return {
3035
- ...(input.AssociationIds != null && {
3036
- AssociationIds: se_DataRepositoryAssociationIds(input.AssociationIds, context),
3037
- }),
3038
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3039
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3040
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3041
- };
3042
- };
3043
- const se_DescribeDataRepositoryTasksRequest = (input, context) => {
3044
- return {
3045
- ...(input.Filters != null && { Filters: se_DataRepositoryTaskFilters(input.Filters, context) }),
3046
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3047
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3048
- ...(input.TaskIds != null && { TaskIds: se_TaskIds(input.TaskIds, context) }),
3049
- };
3050
- };
3051
- const se_DescribeFileCachesRequest = (input, context) => {
3052
- return {
3053
- ...(input.FileCacheIds != null && { FileCacheIds: se_FileCacheIds(input.FileCacheIds, context) }),
3054
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3055
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3056
- };
3057
- };
3058
- const se_DescribeFileSystemAliasesRequest = (input, context) => {
3059
- return {
3060
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
3061
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
3062
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3063
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3064
- };
3065
- };
3066
- const se_DescribeFileSystemsRequest = (input, context) => {
3067
- return {
3068
- ...(input.FileSystemIds != null && { FileSystemIds: se_FileSystemIds(input.FileSystemIds, context) }),
3069
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3070
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3071
- };
3072
- };
3073
- const se_DescribeSnapshotsRequest = (input, context) => {
3074
- return {
3075
- ...(input.Filters != null && { Filters: se_SnapshotFilters(input.Filters, context) }),
3076
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3077
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3078
- ...(input.SnapshotIds != null && { SnapshotIds: se_SnapshotIds(input.SnapshotIds, context) }),
3079
- };
3080
- };
3081
- const se_DescribeStorageVirtualMachinesRequest = (input, context) => {
3082
- return {
3083
- ...(input.Filters != null && { Filters: se_StorageVirtualMachineFilters(input.Filters, context) }),
3084
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3085
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3086
- ...(input.StorageVirtualMachineIds != null && {
3087
- StorageVirtualMachineIds: se_StorageVirtualMachineIds(input.StorageVirtualMachineIds, context),
3088
- }),
3089
- };
3090
- };
3091
- const se_DescribeVolumesRequest = (input, context) => {
3092
- return {
3093
- ...(input.Filters != null && { Filters: se_VolumeFilters(input.Filters, context) }),
3094
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3095
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3096
- ...(input.VolumeIds != null && { VolumeIds: se_VolumeIds(input.VolumeIds, context) }),
3097
- };
3098
- };
3099
- const se_DisassociateFileSystemAliasesRequest = (input, context) => {
3100
- return {
3101
- ...(input.Aliases != null && { Aliases: se_AlternateDNSNames(input.Aliases, context) }),
3102
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
3103
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
3104
- };
3105
- };
3106
- const se_DiskIopsConfiguration = (input, context) => {
3107
- return {
3108
- ...(input.Iops != null && { Iops: input.Iops }),
3109
- ...(input.Mode != null && { Mode: input.Mode }),
3110
- };
3111
- };
3112
- const se_DnsIps = (input, context) => {
3113
- return input
3114
- .filter((e) => e != null)
3115
- .map((entry) => {
3116
- return entry;
3117
- });
3118
- };
3119
- const se_EventTypes = (input, context) => {
3120
- return input
3121
- .filter((e) => e != null)
3122
- .map((entry) => {
3123
- return entry;
3124
- });
3125
- };
3126
- const se_FileCacheDataRepositoryAssociation = (input, context) => {
3127
- return {
3128
- ...(input.DataRepositoryPath != null && { DataRepositoryPath: input.DataRepositoryPath }),
3129
- ...(input.DataRepositorySubdirectories != null && {
3130
- DataRepositorySubdirectories: se_SubDirectoriesPaths(input.DataRepositorySubdirectories, context),
3131
- }),
3132
- ...(input.FileCachePath != null && { FileCachePath: input.FileCachePath }),
3133
- ...(input.NFS != null && { NFS: se_FileCacheNFSConfiguration(input.NFS, context) }),
3134
- };
3135
- };
3136
- const se_FileCacheIds = (input, context) => {
3137
- return input
3138
- .filter((e) => e != null)
3139
- .map((entry) => {
3140
- return entry;
3141
- });
3142
- };
3143
- const se_FileCacheLustreMetadataConfiguration = (input, context) => {
3144
- return {
3145
- ...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
3146
- };
3147
- };
3148
- const se_FileCacheNFSConfiguration = (input, context) => {
3149
- return {
3150
- ...(input.DnsIps != null && { DnsIps: se_RepositoryDnsIps(input.DnsIps, context) }),
3151
- ...(input.Version != null && { Version: input.Version }),
3152
- };
3153
- };
3154
- const se_FileSystemIds = (input, context) => {
3155
- return input
3156
- .filter((e) => e != null)
3157
- .map((entry) => {
3158
- return entry;
3159
- });
3160
- };
3161
- const se_Filter = (input, context) => {
3162
- return {
3163
- ...(input.Name != null && { Name: input.Name }),
3164
- ...(input.Values != null && { Values: se_FilterValues(input.Values, context) }),
3165
- };
3166
- };
3167
- const se_Filters = (input, context) => {
3168
- return input
3169
- .filter((e) => e != null)
3170
- .map((entry) => {
3171
- return se_Filter(entry, context);
3172
- });
3173
- };
3174
- const se_FilterValues = (input, context) => {
3175
- return input
3176
- .filter((e) => e != null)
3177
- .map((entry) => {
3178
- return entry;
3179
- });
3180
- };
3181
- const se_ListTagsForResourceRequest = (input, context) => {
3182
- return {
3183
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3184
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3185
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3186
- };
3187
- };
3188
- const se_LustreLogCreateConfiguration = (input, context) => {
3189
- return {
3190
- ...(input.Destination != null && { Destination: input.Destination }),
3191
- ...(input.Level != null && { Level: input.Level }),
3192
- };
3193
- };
3194
- const se_LustreNoSquashNids = (input, context) => {
3195
- return input
3196
- .filter((e) => e != null)
3197
- .map((entry) => {
3198
- return entry;
3199
- });
3200
- };
3201
- const se_LustreRootSquashConfiguration = (input, context) => {
3202
- return {
3203
- ...(input.NoSquashNids != null && { NoSquashNids: se_LustreNoSquashNids(input.NoSquashNids, context) }),
3204
- ...(input.RootSquash != null && { RootSquash: input.RootSquash }),
3205
- };
3206
- };
3207
- const se_OpenZFSClientConfiguration = (input, context) => {
3208
- return {
3209
- ...(input.Clients != null && { Clients: input.Clients }),
3210
- ...(input.Options != null && { Options: se_OpenZFSNfsExportOptions(input.Options, context) }),
3211
- };
3212
- };
3213
- const se_OpenZFSClientConfigurations = (input, context) => {
3214
- return input
3215
- .filter((e) => e != null)
3216
- .map((entry) => {
3217
- return se_OpenZFSClientConfiguration(entry, context);
2656
+ return (0, smithy_client_1.take)(input, {
2657
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2658
+ SnapshotId: [],
3218
2659
  });
3219
2660
  };
3220
- const se_OpenZFSCreateRootVolumeConfiguration = (input, context) => {
3221
- return {
3222
- ...(input.CopyTagsToSnapshots != null && { CopyTagsToSnapshots: input.CopyTagsToSnapshots }),
3223
- ...(input.DataCompressionType != null && { DataCompressionType: input.DataCompressionType }),
3224
- ...(input.NfsExports != null && { NfsExports: se_OpenZFSNfsExports(input.NfsExports, context) }),
3225
- ...(input.ReadOnly != null && { ReadOnly: input.ReadOnly }),
3226
- ...(input.RecordSizeKiB != null && { RecordSizeKiB: input.RecordSizeKiB }),
3227
- ...(input.UserAndGroupQuotas != null && {
3228
- UserAndGroupQuotas: se_OpenZFSUserAndGroupQuotas(input.UserAndGroupQuotas, context),
3229
- }),
3230
- };
3231
- };
3232
- const se_OpenZFSNfsExport = (input, context) => {
3233
- return {
3234
- ...(input.ClientConfigurations != null && {
3235
- ClientConfigurations: se_OpenZFSClientConfigurations(input.ClientConfigurations, context),
3236
- }),
3237
- };
3238
- };
3239
- const se_OpenZFSNfsExportOptions = (input, context) => {
3240
- return input
3241
- .filter((e) => e != null)
3242
- .map((entry) => {
3243
- return entry;
2661
+ const se_DeleteStorageVirtualMachineRequest = (input, context) => {
2662
+ return (0, smithy_client_1.take)(input, {
2663
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2664
+ StorageVirtualMachineId: [],
3244
2665
  });
3245
2666
  };
3246
- const se_OpenZFSNfsExports = (input, context) => {
3247
- return input
3248
- .filter((e) => e != null)
3249
- .map((entry) => {
3250
- return se_OpenZFSNfsExport(entry, context);
2667
+ const se_DeleteVolumeRequest = (input, context) => {
2668
+ return (0, smithy_client_1.take)(input, {
2669
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2670
+ OntapConfiguration: smithy_client_1._json,
2671
+ OpenZFSConfiguration: smithy_client_1._json,
2672
+ VolumeId: [],
3251
2673
  });
3252
2674
  };
3253
- const se_OpenZFSUserAndGroupQuotas = (input, context) => {
3254
- return input
3255
- .filter((e) => e != null)
3256
- .map((entry) => {
3257
- return se_OpenZFSUserOrGroupQuota(entry, context);
2675
+ const se_DescribeFileSystemAliasesRequest = (input, context) => {
2676
+ return (0, smithy_client_1.take)(input, {
2677
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2678
+ FileSystemId: [],
2679
+ MaxResults: [],
2680
+ NextToken: [],
3258
2681
  });
3259
2682
  };
3260
- const se_OpenZFSUserOrGroupQuota = (input, context) => {
3261
- return {
3262
- ...(input.Id != null && { Id: input.Id }),
3263
- ...(input.StorageCapacityQuotaGiB != null && { StorageCapacityQuotaGiB: input.StorageCapacityQuotaGiB }),
3264
- ...(input.Type != null && { Type: input.Type }),
3265
- };
3266
- };
3267
- const se_ReleaseFileSystemNfsV3LocksRequest = (input, context) => {
3268
- return {
3269
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
3270
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
3271
- };
3272
- };
3273
- const se_RepositoryDnsIps = (input, context) => {
3274
- return input
3275
- .filter((e) => e != null)
3276
- .map((entry) => {
3277
- return entry;
2683
+ const se_DisassociateFileSystemAliasesRequest = (input, context) => {
2684
+ return (0, smithy_client_1.take)(input, {
2685
+ Aliases: smithy_client_1._json,
2686
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2687
+ FileSystemId: [],
3278
2688
  });
3279
2689
  };
3280
- const se_RestoreOpenZFSVolumeOptions = (input, context) => {
3281
- return input
3282
- .filter((e) => e != null)
3283
- .map((entry) => {
3284
- return entry;
3285
- });
3286
- };
3287
- const se_RestoreVolumeFromSnapshotRequest = (input, context) => {
3288
- return {
3289
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
3290
- ...(input.Options != null && { Options: se_RestoreOpenZFSVolumeOptions(input.Options, context) }),
3291
- ...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }),
3292
- ...(input.VolumeId != null && { VolumeId: input.VolumeId }),
3293
- };
3294
- };
3295
- const se_RouteTableIds = (input, context) => {
3296
- return input
3297
- .filter((e) => e != null)
3298
- .map((entry) => {
3299
- return entry;
3300
- });
3301
- };
3302
- const se_S3DataRepositoryConfiguration = (input, context) => {
3303
- return {
3304
- ...(input.AutoExportPolicy != null && { AutoExportPolicy: se_AutoExportPolicy(input.AutoExportPolicy, context) }),
3305
- ...(input.AutoImportPolicy != null && { AutoImportPolicy: se_AutoImportPolicy(input.AutoImportPolicy, context) }),
3306
- };
3307
- };
3308
- const se_SecurityGroupIds = (input, context) => {
3309
- return input
3310
- .filter((e) => e != null)
3311
- .map((entry) => {
3312
- return entry;
3313
- });
3314
- };
3315
- const se_SelfManagedActiveDirectoryConfiguration = (input, context) => {
3316
- return {
3317
- ...(input.DnsIps != null && { DnsIps: se_DnsIps(input.DnsIps, context) }),
3318
- ...(input.DomainName != null && { DomainName: input.DomainName }),
3319
- ...(input.FileSystemAdministratorsGroup != null && {
3320
- FileSystemAdministratorsGroup: input.FileSystemAdministratorsGroup,
3321
- }),
3322
- ...(input.OrganizationalUnitDistinguishedName != null && {
3323
- OrganizationalUnitDistinguishedName: input.OrganizationalUnitDistinguishedName,
3324
- }),
3325
- ...(input.Password != null && { Password: input.Password }),
3326
- ...(input.UserName != null && { UserName: input.UserName }),
3327
- };
3328
- };
3329
- const se_SelfManagedActiveDirectoryConfigurationUpdates = (input, context) => {
3330
- return {
3331
- ...(input.DnsIps != null && { DnsIps: se_DnsIps(input.DnsIps, context) }),
3332
- ...(input.Password != null && { Password: input.Password }),
3333
- ...(input.UserName != null && { UserName: input.UserName }),
3334
- };
3335
- };
3336
- const se_SnapshotFilter = (input, context) => {
3337
- return {
3338
- ...(input.Name != null && { Name: input.Name }),
3339
- ...(input.Values != null && { Values: se_SnapshotFilterValues(input.Values, context) }),
3340
- };
3341
- };
3342
- const se_SnapshotFilters = (input, context) => {
3343
- return input
3344
- .filter((e) => e != null)
3345
- .map((entry) => {
3346
- return se_SnapshotFilter(entry, context);
3347
- });
3348
- };
3349
- const se_SnapshotFilterValues = (input, context) => {
3350
- return input
3351
- .filter((e) => e != null)
3352
- .map((entry) => {
3353
- return entry;
3354
- });
3355
- };
3356
- const se_SnapshotIds = (input, context) => {
3357
- return input
3358
- .filter((e) => e != null)
3359
- .map((entry) => {
3360
- return entry;
3361
- });
3362
- };
3363
- const se_StorageVirtualMachineFilter = (input, context) => {
3364
- return {
3365
- ...(input.Name != null && { Name: input.Name }),
3366
- ...(input.Values != null && { Values: se_StorageVirtualMachineFilterValues(input.Values, context) }),
3367
- };
3368
- };
3369
- const se_StorageVirtualMachineFilters = (input, context) => {
3370
- return input
3371
- .filter((e) => e != null)
3372
- .map((entry) => {
3373
- return se_StorageVirtualMachineFilter(entry, context);
3374
- });
3375
- };
3376
- const se_StorageVirtualMachineFilterValues = (input, context) => {
3377
- return input
3378
- .filter((e) => e != null)
3379
- .map((entry) => {
3380
- return entry;
3381
- });
3382
- };
3383
- const se_StorageVirtualMachineIds = (input, context) => {
3384
- return input
3385
- .filter((e) => e != null)
3386
- .map((entry) => {
3387
- return entry;
3388
- });
3389
- };
3390
- const se_SubDirectoriesPaths = (input, context) => {
3391
- return input
3392
- .filter((e) => e != null)
3393
- .map((entry) => {
3394
- return entry;
3395
- });
3396
- };
3397
- const se_SubnetIds = (input, context) => {
3398
- return input
3399
- .filter((e) => e != null)
3400
- .map((entry) => {
3401
- return entry;
3402
- });
3403
- };
3404
- const se_Tag = (input, context) => {
3405
- return {
3406
- ...(input.Key != null && { Key: input.Key }),
3407
- ...(input.Value != null && { Value: input.Value }),
3408
- };
3409
- };
3410
- const se_TagKeys = (input, context) => {
3411
- return input
3412
- .filter((e) => e != null)
3413
- .map((entry) => {
3414
- return entry;
3415
- });
3416
- };
3417
- const se_TagResourceRequest = (input, context) => {
3418
- return {
3419
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3420
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3421
- };
3422
- };
3423
- const se_Tags = (input, context) => {
3424
- return input
3425
- .filter((e) => e != null)
3426
- .map((entry) => {
3427
- return se_Tag(entry, context);
3428
- });
3429
- };
3430
- const se_TaskIds = (input, context) => {
3431
- return input
3432
- .filter((e) => e != null)
3433
- .map((entry) => {
3434
- return entry;
3435
- });
3436
- };
3437
- const se_TieringPolicy = (input, context) => {
3438
- return {
3439
- ...(input.CoolingPeriod != null && { CoolingPeriod: input.CoolingPeriod }),
3440
- ...(input.Name != null && { Name: input.Name }),
3441
- };
3442
- };
3443
- const se_UntagResourceRequest = (input, context) => {
3444
- return {
3445
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3446
- ...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
3447
- };
3448
- };
3449
- const se_UpdateDataRepositoryAssociationRequest = (input, context) => {
3450
- return {
3451
- ...(input.AssociationId != null && { AssociationId: input.AssociationId }),
3452
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
3453
- ...(input.ImportedFileChunkSize != null && { ImportedFileChunkSize: input.ImportedFileChunkSize }),
3454
- ...(input.S3 != null && { S3: se_S3DataRepositoryConfiguration(input.S3, context) }),
3455
- };
3456
- };
3457
- const se_UpdateFileCacheLustreConfiguration = (input, context) => {
3458
- return {
3459
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
3460
- };
3461
- };
3462
- const se_UpdateFileCacheRequest = (input, context) => {
3463
- return {
3464
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
3465
- ...(input.FileCacheId != null && { FileCacheId: input.FileCacheId }),
3466
- ...(input.LustreConfiguration != null && {
3467
- LustreConfiguration: se_UpdateFileCacheLustreConfiguration(input.LustreConfiguration, context),
3468
- }),
3469
- };
3470
- };
3471
- const se_UpdateFileSystemLustreConfiguration = (input, context) => {
3472
- return {
3473
- ...(input.AutoImportPolicy != null && { AutoImportPolicy: input.AutoImportPolicy }),
3474
- ...(input.AutomaticBackupRetentionDays != null && {
3475
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
3476
- }),
3477
- ...(input.DailyAutomaticBackupStartTime != null && {
3478
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
3479
- }),
3480
- ...(input.DataCompressionType != null && { DataCompressionType: input.DataCompressionType }),
3481
- ...(input.LogConfiguration != null && {
3482
- LogConfiguration: se_LustreLogCreateConfiguration(input.LogConfiguration, context),
3483
- }),
3484
- ...(input.RootSquashConfiguration != null && {
3485
- RootSquashConfiguration: se_LustreRootSquashConfiguration(input.RootSquashConfiguration, context),
3486
- }),
3487
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
3488
- };
3489
- };
3490
- const se_UpdateFileSystemOntapConfiguration = (input, context) => {
3491
- return {
3492
- ...(input.AddRouteTableIds != null && { AddRouteTableIds: se_RouteTableIds(input.AddRouteTableIds, context) }),
3493
- ...(input.AutomaticBackupRetentionDays != null && {
3494
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
3495
- }),
3496
- ...(input.DailyAutomaticBackupStartTime != null && {
3497
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
3498
- }),
3499
- ...(input.DiskIopsConfiguration != null && {
3500
- DiskIopsConfiguration: se_DiskIopsConfiguration(input.DiskIopsConfiguration, context),
3501
- }),
3502
- ...(input.FsxAdminPassword != null && { FsxAdminPassword: input.FsxAdminPassword }),
3503
- ...(input.RemoveRouteTableIds != null && {
3504
- RemoveRouteTableIds: se_RouteTableIds(input.RemoveRouteTableIds, context),
3505
- }),
3506
- ...(input.ThroughputCapacity != null && { ThroughputCapacity: input.ThroughputCapacity }),
3507
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
3508
- };
3509
- };
3510
- const se_UpdateFileSystemOpenZFSConfiguration = (input, context) => {
3511
- return {
3512
- ...(input.AutomaticBackupRetentionDays != null && {
3513
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
3514
- }),
3515
- ...(input.CopyTagsToBackups != null && { CopyTagsToBackups: input.CopyTagsToBackups }),
3516
- ...(input.CopyTagsToVolumes != null && { CopyTagsToVolumes: input.CopyTagsToVolumes }),
3517
- ...(input.DailyAutomaticBackupStartTime != null && {
3518
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
3519
- }),
3520
- ...(input.DiskIopsConfiguration != null && {
3521
- DiskIopsConfiguration: se_DiskIopsConfiguration(input.DiskIopsConfiguration, context),
3522
- }),
3523
- ...(input.ThroughputCapacity != null && { ThroughputCapacity: input.ThroughputCapacity }),
3524
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
3525
- };
3526
- };
3527
- const se_UpdateFileSystemRequest = (input, context) => {
3528
- return {
3529
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
3530
- ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
3531
- ...(input.LustreConfiguration != null && {
3532
- LustreConfiguration: se_UpdateFileSystemLustreConfiguration(input.LustreConfiguration, context),
3533
- }),
3534
- ...(input.OntapConfiguration != null && {
3535
- OntapConfiguration: se_UpdateFileSystemOntapConfiguration(input.OntapConfiguration, context),
3536
- }),
3537
- ...(input.OpenZFSConfiguration != null && {
3538
- OpenZFSConfiguration: se_UpdateFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
3539
- }),
3540
- ...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
3541
- ...(input.WindowsConfiguration != null && {
3542
- WindowsConfiguration: se_UpdateFileSystemWindowsConfiguration(input.WindowsConfiguration, context),
3543
- }),
3544
- };
3545
- };
3546
- const se_UpdateFileSystemWindowsConfiguration = (input, context) => {
3547
- return {
3548
- ...(input.AuditLogConfiguration != null && {
3549
- AuditLogConfiguration: se_WindowsAuditLogCreateConfiguration(input.AuditLogConfiguration, context),
3550
- }),
3551
- ...(input.AutomaticBackupRetentionDays != null && {
3552
- AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
3553
- }),
3554
- ...(input.DailyAutomaticBackupStartTime != null && {
3555
- DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
3556
- }),
3557
- ...(input.SelfManagedActiveDirectoryConfiguration != null && {
3558
- SelfManagedActiveDirectoryConfiguration: se_SelfManagedActiveDirectoryConfigurationUpdates(input.SelfManagedActiveDirectoryConfiguration, context),
3559
- }),
3560
- ...(input.ThroughputCapacity != null && { ThroughputCapacity: input.ThroughputCapacity }),
3561
- ...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
3562
- };
3563
- };
3564
- const se_UpdateOntapVolumeConfiguration = (input, context) => {
3565
- return {
3566
- ...(input.CopyTagsToBackups != null && { CopyTagsToBackups: input.CopyTagsToBackups }),
3567
- ...(input.JunctionPath != null && { JunctionPath: input.JunctionPath }),
3568
- ...(input.SecurityStyle != null && { SecurityStyle: input.SecurityStyle }),
3569
- ...(input.SizeInMegabytes != null && { SizeInMegabytes: input.SizeInMegabytes }),
3570
- ...(input.SnapshotPolicy != null && { SnapshotPolicy: input.SnapshotPolicy }),
3571
- ...(input.StorageEfficiencyEnabled != null && { StorageEfficiencyEnabled: input.StorageEfficiencyEnabled }),
3572
- ...(input.TieringPolicy != null && { TieringPolicy: se_TieringPolicy(input.TieringPolicy, context) }),
3573
- };
3574
- };
3575
- const se_UpdateOpenZFSVolumeConfiguration = (input, context) => {
3576
- return {
3577
- ...(input.DataCompressionType != null && { DataCompressionType: input.DataCompressionType }),
3578
- ...(input.NfsExports != null && { NfsExports: se_OpenZFSNfsExports(input.NfsExports, context) }),
3579
- ...(input.ReadOnly != null && { ReadOnly: input.ReadOnly }),
3580
- ...(input.RecordSizeKiB != null && { RecordSizeKiB: input.RecordSizeKiB }),
3581
- ...(input.StorageCapacityQuotaGiB != null && { StorageCapacityQuotaGiB: input.StorageCapacityQuotaGiB }),
3582
- ...(input.StorageCapacityReservationGiB != null && {
3583
- StorageCapacityReservationGiB: input.StorageCapacityReservationGiB,
3584
- }),
3585
- ...(input.UserAndGroupQuotas != null && {
3586
- UserAndGroupQuotas: se_OpenZFSUserAndGroupQuotas(input.UserAndGroupQuotas, context),
3587
- }),
3588
- };
3589
- };
3590
- const se_UpdateSnapshotRequest = (input, context) => {
3591
- return {
3592
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
3593
- ...(input.Name != null && { Name: input.Name }),
3594
- ...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }),
3595
- };
3596
- };
3597
- const se_UpdateStorageVirtualMachineRequest = (input, context) => {
3598
- return {
3599
- ...(input.ActiveDirectoryConfiguration != null && {
3600
- ActiveDirectoryConfiguration: se_UpdateSvmActiveDirectoryConfiguration(input.ActiveDirectoryConfiguration, context),
3601
- }),
3602
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
3603
- ...(input.StorageVirtualMachineId != null && { StorageVirtualMachineId: input.StorageVirtualMachineId }),
3604
- ...(input.SvmAdminPassword != null && { SvmAdminPassword: input.SvmAdminPassword }),
3605
- };
3606
- };
3607
- const se_UpdateSvmActiveDirectoryConfiguration = (input, context) => {
3608
- return {
3609
- ...(input.SelfManagedActiveDirectoryConfiguration != null && {
3610
- SelfManagedActiveDirectoryConfiguration: se_SelfManagedActiveDirectoryConfigurationUpdates(input.SelfManagedActiveDirectoryConfiguration, context),
3611
- }),
3612
- };
3613
- };
3614
- const se_UpdateVolumeRequest = (input, context) => {
3615
- return {
3616
- ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
3617
- ...(input.Name != null && { Name: input.Name }),
3618
- ...(input.OntapConfiguration != null && {
3619
- OntapConfiguration: se_UpdateOntapVolumeConfiguration(input.OntapConfiguration, context),
3620
- }),
3621
- ...(input.OpenZFSConfiguration != null && {
3622
- OpenZFSConfiguration: se_UpdateOpenZFSVolumeConfiguration(input.OpenZFSConfiguration, context),
3623
- }),
3624
- ...(input.VolumeId != null && { VolumeId: input.VolumeId }),
3625
- };
3626
- };
3627
- const se_VolumeFilter = (input, context) => {
3628
- return {
3629
- ...(input.Name != null && { Name: input.Name }),
3630
- ...(input.Values != null && { Values: se_VolumeFilterValues(input.Values, context) }),
3631
- };
3632
- };
3633
- const se_VolumeFilters = (input, context) => {
3634
- return input
3635
- .filter((e) => e != null)
3636
- .map((entry) => {
3637
- return se_VolumeFilter(entry, context);
3638
- });
3639
- };
3640
- const se_VolumeFilterValues = (input, context) => {
3641
- return input
3642
- .filter((e) => e != null)
3643
- .map((entry) => {
3644
- return entry;
3645
- });
3646
- };
3647
- const se_VolumeIds = (input, context) => {
3648
- return input
3649
- .filter((e) => e != null)
3650
- .map((entry) => {
3651
- return entry;
3652
- });
3653
- };
3654
- const se_WindowsAuditLogCreateConfiguration = (input, context) => {
3655
- return {
3656
- ...(input.AuditLogDestination != null && { AuditLogDestination: input.AuditLogDestination }),
3657
- ...(input.FileAccessAuditLogLevel != null && { FileAccessAuditLogLevel: input.FileAccessAuditLogLevel }),
3658
- ...(input.FileShareAccessAuditLogLevel != null && {
3659
- FileShareAccessAuditLogLevel: input.FileShareAccessAuditLogLevel,
3660
- }),
3661
- };
3662
- };
3663
- const de_ActiveDirectoryBackupAttributes = (output, context) => {
3664
- return {
3665
- ActiveDirectoryId: (0, smithy_client_1.expectString)(output.ActiveDirectoryId),
3666
- DomainName: (0, smithy_client_1.expectString)(output.DomainName),
3667
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
3668
- };
3669
- };
3670
- const de_ActiveDirectoryError = (output, context) => {
3671
- return {
3672
- ActiveDirectoryId: (0, smithy_client_1.expectString)(output.ActiveDirectoryId),
3673
- Message: (0, smithy_client_1.expectString)(output.Message),
3674
- Type: (0, smithy_client_1.expectString)(output.Type),
3675
- };
3676
- };
3677
- const de_AdministrativeAction = (output, context) => {
3678
- return {
3679
- AdministrativeActionType: (0, smithy_client_1.expectString)(output.AdministrativeActionType),
3680
- FailureDetails: output.FailureDetails != null ? de_AdministrativeActionFailureDetails(output.FailureDetails, context) : undefined,
3681
- ProgressPercent: (0, smithy_client_1.expectInt32)(output.ProgressPercent),
3682
- RequestTime: output.RequestTime != null
3683
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RequestTime)))
3684
- : undefined,
3685
- Status: (0, smithy_client_1.expectString)(output.Status),
3686
- TargetFileSystemValues: output.TargetFileSystemValues != null ? de_FileSystem(output.TargetFileSystemValues, context) : undefined,
3687
- TargetSnapshotValues: output.TargetSnapshotValues != null ? de_Snapshot(output.TargetSnapshotValues, context) : undefined,
3688
- TargetVolumeValues: output.TargetVolumeValues != null ? de_Volume(output.TargetVolumeValues, context) : undefined,
3689
- };
3690
- };
3691
- const de_AdministrativeActionFailureDetails = (output, context) => {
3692
- return {
3693
- Message: (0, smithy_client_1.expectString)(output.Message),
3694
- };
3695
- };
3696
- const de_AdministrativeActions = (output, context) => {
3697
- const retVal = (output || [])
3698
- .filter((e) => e != null)
3699
- .map((entry) => {
3700
- if (entry === null) {
3701
- return null;
3702
- }
3703
- return de_AdministrativeAction(entry, context);
3704
- });
3705
- return retVal;
3706
- };
3707
- const de_Alias = (output, context) => {
3708
- return {
3709
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
3710
- Name: (0, smithy_client_1.expectString)(output.Name),
3711
- };
3712
- };
3713
- const de_Aliases = (output, context) => {
3714
- const retVal = (output || [])
3715
- .filter((e) => e != null)
3716
- .map((entry) => {
3717
- if (entry === null) {
3718
- return null;
3719
- }
3720
- return de_Alias(entry, context);
3721
- });
3722
- return retVal;
3723
- };
3724
- const de_AssociateFileSystemAliasesResponse = (output, context) => {
3725
- return {
3726
- Aliases: output.Aliases != null ? de_Aliases(output.Aliases, context) : undefined,
3727
- };
3728
- };
3729
- const de_AutoExportPolicy = (output, context) => {
3730
- return {
3731
- Events: output.Events != null ? de_EventTypes(output.Events, context) : undefined,
3732
- };
3733
- };
3734
- const de_AutoImportPolicy = (output, context) => {
3735
- return {
3736
- Events: output.Events != null ? de_EventTypes(output.Events, context) : undefined,
3737
- };
3738
- };
3739
- const de_Backup = (output, context) => {
3740
- return {
3741
- BackupId: (0, smithy_client_1.expectString)(output.BackupId),
3742
- CreationTime: output.CreationTime != null
3743
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3744
- : undefined,
3745
- DirectoryInformation: output.DirectoryInformation != null
3746
- ? de_ActiveDirectoryBackupAttributes(output.DirectoryInformation, context)
3747
- : undefined,
3748
- FailureDetails: output.FailureDetails != null ? de_BackupFailureDetails(output.FailureDetails, context) : undefined,
3749
- FileSystem: output.FileSystem != null ? de_FileSystem(output.FileSystem, context) : undefined,
3750
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
3751
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
3752
- OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
3753
- ProgressPercent: (0, smithy_client_1.expectInt32)(output.ProgressPercent),
3754
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
3755
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3756
- SourceBackupId: (0, smithy_client_1.expectString)(output.SourceBackupId),
3757
- SourceBackupRegion: (0, smithy_client_1.expectString)(output.SourceBackupRegion),
3758
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
3759
- Type: (0, smithy_client_1.expectString)(output.Type),
3760
- Volume: output.Volume != null ? de_Volume(output.Volume, context) : undefined,
3761
- };
3762
- };
3763
- const de_BackupBeingCopied = (output, context) => {
3764
- return {
3765
- BackupId: (0, smithy_client_1.expectString)(output.BackupId),
3766
- Message: (0, smithy_client_1.expectString)(output.Message),
3767
- };
3768
- };
3769
- const de_BackupFailureDetails = (output, context) => {
3770
- return {
3771
- Message: (0, smithy_client_1.expectString)(output.Message),
3772
- };
3773
- };
3774
- const de_BackupInProgress = (output, context) => {
3775
- return {
3776
- Message: (0, smithy_client_1.expectString)(output.Message),
3777
- };
3778
- };
3779
- const de_BackupNotFound = (output, context) => {
3780
- return {
3781
- Message: (0, smithy_client_1.expectString)(output.Message),
3782
- };
3783
- };
3784
- const de_BackupRestoring = (output, context) => {
3785
- return {
3786
- FileSystemId: (0, smithy_client_1.expectString)(output.FileSystemId),
3787
- Message: (0, smithy_client_1.expectString)(output.Message),
3788
- };
3789
- };
3790
- const de_Backups = (output, context) => {
3791
- const retVal = (output || [])
3792
- .filter((e) => e != null)
3793
- .map((entry) => {
3794
- if (entry === null) {
3795
- return null;
3796
- }
3797
- return de_Backup(entry, context);
3798
- });
3799
- return retVal;
3800
- };
3801
- const de_BadRequest = (output, context) => {
3802
- return {
3803
- Message: (0, smithy_client_1.expectString)(output.Message),
3804
- };
3805
- };
3806
- const de_CancelDataRepositoryTaskResponse = (output, context) => {
3807
- return {
3808
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
3809
- TaskId: (0, smithy_client_1.expectString)(output.TaskId),
3810
- };
3811
- };
3812
- const de_CompletionReport = (output, context) => {
3813
- return {
3814
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
3815
- Format: (0, smithy_client_1.expectString)(output.Format),
3816
- Path: (0, smithy_client_1.expectString)(output.Path),
3817
- Scope: (0, smithy_client_1.expectString)(output.Scope),
3818
- };
3819
- };
3820
- const de_CopyBackupResponse = (output, context) => {
3821
- return {
3822
- Backup: output.Backup != null ? de_Backup(output.Backup, context) : undefined,
3823
- };
3824
- };
3825
- const de_CreateBackupResponse = (output, context) => {
3826
- return {
3827
- Backup: output.Backup != null ? de_Backup(output.Backup, context) : undefined,
3828
- };
3829
- };
3830
- const de_CreateDataRepositoryAssociationResponse = (output, context) => {
3831
- return {
3832
- Association: output.Association != null ? de_DataRepositoryAssociation(output.Association, context) : undefined,
3833
- };
3834
- };
3835
- const de_CreateDataRepositoryTaskResponse = (output, context) => {
3836
- return {
3837
- DataRepositoryTask: output.DataRepositoryTask != null ? de_DataRepositoryTask(output.DataRepositoryTask, context) : undefined,
3838
- };
3839
- };
3840
- const de_CreateFileCacheResponse = (output, context) => {
3841
- return {
3842
- FileCache: output.FileCache != null ? de_FileCacheCreating(output.FileCache, context) : undefined,
3843
- };
3844
- };
3845
- const de_CreateFileSystemFromBackupResponse = (output, context) => {
3846
- return {
3847
- FileSystem: output.FileSystem != null ? de_FileSystem(output.FileSystem, context) : undefined,
3848
- };
3849
- };
3850
- const de_CreateFileSystemResponse = (output, context) => {
3851
- return {
3852
- FileSystem: output.FileSystem != null ? de_FileSystem(output.FileSystem, context) : undefined,
3853
- };
3854
- };
3855
- const de_CreateSnapshotResponse = (output, context) => {
3856
- return {
3857
- Snapshot: output.Snapshot != null ? de_Snapshot(output.Snapshot, context) : undefined,
3858
- };
3859
- };
3860
- const de_CreateStorageVirtualMachineResponse = (output, context) => {
3861
- return {
3862
- StorageVirtualMachine: output.StorageVirtualMachine != null
3863
- ? de_StorageVirtualMachine(output.StorageVirtualMachine, context)
3864
- : undefined,
3865
- };
3866
- };
3867
- const de_CreateVolumeFromBackupResponse = (output, context) => {
3868
- return {
3869
- Volume: output.Volume != null ? de_Volume(output.Volume, context) : undefined,
3870
- };
3871
- };
3872
- const de_CreateVolumeResponse = (output, context) => {
3873
- return {
3874
- Volume: output.Volume != null ? de_Volume(output.Volume, context) : undefined,
3875
- };
3876
- };
3877
- const de_DataRepositoryAssociation = (output, context) => {
3878
- return {
3879
- AssociationId: (0, smithy_client_1.expectString)(output.AssociationId),
3880
- BatchImportMetaDataOnCreate: (0, smithy_client_1.expectBoolean)(output.BatchImportMetaDataOnCreate),
3881
- CreationTime: output.CreationTime != null
3882
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3883
- : undefined,
3884
- DataRepositoryPath: (0, smithy_client_1.expectString)(output.DataRepositoryPath),
3885
- DataRepositorySubdirectories: output.DataRepositorySubdirectories != null
3886
- ? de_SubDirectoriesPaths(output.DataRepositorySubdirectories, context)
3887
- : undefined,
3888
- FailureDetails: output.FailureDetails != null ? de_DataRepositoryFailureDetails(output.FailureDetails, context) : undefined,
3889
- FileCacheId: (0, smithy_client_1.expectString)(output.FileCacheId),
3890
- FileCachePath: (0, smithy_client_1.expectString)(output.FileCachePath),
3891
- FileSystemId: (0, smithy_client_1.expectString)(output.FileSystemId),
3892
- FileSystemPath: (0, smithy_client_1.expectString)(output.FileSystemPath),
3893
- ImportedFileChunkSize: (0, smithy_client_1.expectInt32)(output.ImportedFileChunkSize),
3894
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
3895
- NFS: output.NFS != null ? de_NFSDataRepositoryConfiguration(output.NFS, context) : undefined,
3896
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
3897
- S3: output.S3 != null ? de_S3DataRepositoryConfiguration(output.S3, context) : undefined,
3898
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
3899
- };
3900
- };
3901
- const de_DataRepositoryAssociationIds = (output, context) => {
3902
- const retVal = (output || [])
3903
- .filter((e) => e != null)
3904
- .map((entry) => {
3905
- if (entry === null) {
3906
- return null;
3907
- }
3908
- return (0, smithy_client_1.expectString)(entry);
3909
- });
3910
- return retVal;
3911
- };
3912
- const de_DataRepositoryAssociationNotFound = (output, context) => {
3913
- return {
3914
- Message: (0, smithy_client_1.expectString)(output.Message),
3915
- };
3916
- };
3917
- const de_DataRepositoryAssociations = (output, context) => {
3918
- const retVal = (output || [])
3919
- .filter((e) => e != null)
3920
- .map((entry) => {
3921
- if (entry === null) {
3922
- return null;
3923
- }
3924
- return de_DataRepositoryAssociation(entry, context);
3925
- });
3926
- return retVal;
3927
- };
3928
- const de_DataRepositoryConfiguration = (output, context) => {
3929
- return {
3930
- AutoImportPolicy: (0, smithy_client_1.expectString)(output.AutoImportPolicy),
3931
- ExportPath: (0, smithy_client_1.expectString)(output.ExportPath),
3932
- FailureDetails: output.FailureDetails != null ? de_DataRepositoryFailureDetails(output.FailureDetails, context) : undefined,
3933
- ImportPath: (0, smithy_client_1.expectString)(output.ImportPath),
3934
- ImportedFileChunkSize: (0, smithy_client_1.expectInt32)(output.ImportedFileChunkSize),
3935
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
3936
- };
3937
- };
3938
- const de_DataRepositoryFailureDetails = (output, context) => {
3939
- return {
3940
- Message: (0, smithy_client_1.expectString)(output.Message),
3941
- };
3942
- };
3943
- const de_DataRepositoryTask = (output, context) => {
3944
- return {
3945
- CapacityToRelease: (0, smithy_client_1.expectLong)(output.CapacityToRelease),
3946
- CreationTime: output.CreationTime != null
3947
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3948
- : undefined,
3949
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
3950
- FailureDetails: output.FailureDetails != null ? de_DataRepositoryTaskFailureDetails(output.FailureDetails, context) : undefined,
3951
- FileCacheId: (0, smithy_client_1.expectString)(output.FileCacheId),
3952
- FileSystemId: (0, smithy_client_1.expectString)(output.FileSystemId),
3953
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
3954
- Paths: output.Paths != null ? de_DataRepositoryTaskPaths(output.Paths, context) : undefined,
3955
- Report: output.Report != null ? de_CompletionReport(output.Report, context) : undefined,
3956
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
3957
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3958
- Status: output.Status != null ? de_DataRepositoryTaskStatus(output.Status, context) : undefined,
3959
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
3960
- TaskId: (0, smithy_client_1.expectString)(output.TaskId),
3961
- Type: (0, smithy_client_1.expectString)(output.Type),
3962
- };
3963
- };
3964
- const de_DataRepositoryTaskEnded = (output, context) => {
3965
- return {
3966
- Message: (0, smithy_client_1.expectString)(output.Message),
3967
- };
3968
- };
3969
- const de_DataRepositoryTaskExecuting = (output, context) => {
3970
- return {
3971
- Message: (0, smithy_client_1.expectString)(output.Message),
3972
- };
3973
- };
3974
- const de_DataRepositoryTaskFailureDetails = (output, context) => {
3975
- return {
3976
- Message: (0, smithy_client_1.expectString)(output.Message),
3977
- };
3978
- };
3979
- const de_DataRepositoryTaskNotFound = (output, context) => {
3980
- return {
3981
- Message: (0, smithy_client_1.expectString)(output.Message),
3982
- };
3983
- };
3984
- const de_DataRepositoryTaskPaths = (output, context) => {
3985
- const retVal = (output || [])
3986
- .filter((e) => e != null)
3987
- .map((entry) => {
3988
- if (entry === null) {
3989
- return null;
3990
- }
3991
- return (0, smithy_client_1.expectString)(entry);
3992
- });
3993
- return retVal;
3994
- };
3995
- const de_DataRepositoryTasks = (output, context) => {
3996
- const retVal = (output || [])
3997
- .filter((e) => e != null)
3998
- .map((entry) => {
3999
- if (entry === null) {
4000
- return null;
4001
- }
4002
- return de_DataRepositoryTask(entry, context);
4003
- });
4004
- return retVal;
4005
- };
4006
- const de_DataRepositoryTaskStatus = (output, context) => {
4007
- return {
4008
- FailedCount: (0, smithy_client_1.expectLong)(output.FailedCount),
4009
- LastUpdatedTime: output.LastUpdatedTime != null
4010
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
4011
- : undefined,
4012
- ReleasedCapacity: (0, smithy_client_1.expectLong)(output.ReleasedCapacity),
4013
- SucceededCount: (0, smithy_client_1.expectLong)(output.SucceededCount),
4014
- TotalCount: (0, smithy_client_1.expectLong)(output.TotalCount),
4015
- };
4016
- };
4017
- const de_DeleteBackupResponse = (output, context) => {
4018
- return {
4019
- BackupId: (0, smithy_client_1.expectString)(output.BackupId),
4020
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4021
- };
4022
- };
4023
- const de_DeleteDataRepositoryAssociationResponse = (output, context) => {
4024
- return {
4025
- AssociationId: (0, smithy_client_1.expectString)(output.AssociationId),
4026
- DeleteDataInFileSystem: (0, smithy_client_1.expectBoolean)(output.DeleteDataInFileSystem),
4027
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4028
- };
4029
- };
4030
- const de_DeleteFileCacheResponse = (output, context) => {
4031
- return {
4032
- FileCacheId: (0, smithy_client_1.expectString)(output.FileCacheId),
4033
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4034
- };
4035
- };
4036
- const de_DeleteFileSystemLustreResponse = (output, context) => {
4037
- return {
4038
- FinalBackupId: (0, smithy_client_1.expectString)(output.FinalBackupId),
4039
- FinalBackupTags: output.FinalBackupTags != null ? de_Tags(output.FinalBackupTags, context) : undefined,
4040
- };
4041
- };
4042
- const de_DeleteFileSystemOpenZFSResponse = (output, context) => {
4043
- return {
4044
- FinalBackupId: (0, smithy_client_1.expectString)(output.FinalBackupId),
4045
- FinalBackupTags: output.FinalBackupTags != null ? de_Tags(output.FinalBackupTags, context) : undefined,
4046
- };
4047
- };
4048
- const de_DeleteFileSystemResponse = (output, context) => {
4049
- return {
4050
- FileSystemId: (0, smithy_client_1.expectString)(output.FileSystemId),
4051
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4052
- LustreResponse: output.LustreResponse != null ? de_DeleteFileSystemLustreResponse(output.LustreResponse, context) : undefined,
4053
- OpenZFSResponse: output.OpenZFSResponse != null ? de_DeleteFileSystemOpenZFSResponse(output.OpenZFSResponse, context) : undefined,
4054
- WindowsResponse: output.WindowsResponse != null ? de_DeleteFileSystemWindowsResponse(output.WindowsResponse, context) : undefined,
4055
- };
4056
- };
4057
- const de_DeleteFileSystemWindowsResponse = (output, context) => {
4058
- return {
4059
- FinalBackupId: (0, smithy_client_1.expectString)(output.FinalBackupId),
4060
- FinalBackupTags: output.FinalBackupTags != null ? de_Tags(output.FinalBackupTags, context) : undefined,
4061
- };
4062
- };
4063
- const de_DeleteSnapshotResponse = (output, context) => {
4064
- return {
4065
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4066
- SnapshotId: (0, smithy_client_1.expectString)(output.SnapshotId),
4067
- };
4068
- };
4069
- const de_DeleteStorageVirtualMachineResponse = (output, context) => {
4070
- return {
4071
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4072
- StorageVirtualMachineId: (0, smithy_client_1.expectString)(output.StorageVirtualMachineId),
4073
- };
4074
- };
4075
- const de_DeleteVolumeOntapResponse = (output, context) => {
4076
- return {
4077
- FinalBackupId: (0, smithy_client_1.expectString)(output.FinalBackupId),
4078
- FinalBackupTags: output.FinalBackupTags != null ? de_Tags(output.FinalBackupTags, context) : undefined,
4079
- };
4080
- };
4081
- const de_DeleteVolumeResponse = (output, context) => {
4082
- return {
4083
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4084
- OntapResponse: output.OntapResponse != null ? de_DeleteVolumeOntapResponse(output.OntapResponse, context) : undefined,
4085
- VolumeId: (0, smithy_client_1.expectString)(output.VolumeId),
4086
- };
4087
- };
4088
- const de_DescribeBackupsResponse = (output, context) => {
4089
- return {
4090
- Backups: output.Backups != null ? de_Backups(output.Backups, context) : undefined,
4091
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4092
- };
4093
- };
4094
- const de_DescribeDataRepositoryAssociationsResponse = (output, context) => {
4095
- return {
4096
- Associations: output.Associations != null ? de_DataRepositoryAssociations(output.Associations, context) : undefined,
4097
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4098
- };
4099
- };
4100
- const de_DescribeDataRepositoryTasksResponse = (output, context) => {
4101
- return {
4102
- DataRepositoryTasks: output.DataRepositoryTasks != null ? de_DataRepositoryTasks(output.DataRepositoryTasks, context) : undefined,
4103
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4104
- };
4105
- };
4106
- const de_DescribeFileCachesResponse = (output, context) => {
4107
- return {
4108
- FileCaches: output.FileCaches != null ? de_FileCaches(output.FileCaches, context) : undefined,
4109
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4110
- };
4111
- };
4112
- const de_DescribeFileSystemAliasesResponse = (output, context) => {
4113
- return {
4114
- Aliases: output.Aliases != null ? de_Aliases(output.Aliases, context) : undefined,
4115
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4116
- };
4117
- };
4118
- const de_DescribeFileSystemsResponse = (output, context) => {
4119
- return {
4120
- FileSystems: output.FileSystems != null ? de_FileSystems(output.FileSystems, context) : undefined,
4121
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4122
- };
4123
- };
4124
- const de_DescribeSnapshotsResponse = (output, context) => {
4125
- return {
4126
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4127
- Snapshots: output.Snapshots != null ? de_Snapshots(output.Snapshots, context) : undefined,
4128
- };
4129
- };
4130
- const de_DescribeStorageVirtualMachinesResponse = (output, context) => {
4131
- return {
4132
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4133
- StorageVirtualMachines: output.StorageVirtualMachines != null
4134
- ? de_StorageVirtualMachines(output.StorageVirtualMachines, context)
4135
- : undefined,
4136
- };
4137
- };
4138
- const de_DescribeVolumesResponse = (output, context) => {
4139
- return {
4140
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4141
- Volumes: output.Volumes != null ? de_Volumes(output.Volumes, context) : undefined,
4142
- };
4143
- };
4144
- const de_DisassociateFileSystemAliasesResponse = (output, context) => {
4145
- return {
4146
- Aliases: output.Aliases != null ? de_Aliases(output.Aliases, context) : undefined,
4147
- };
4148
- };
4149
- const de_DiskIopsConfiguration = (output, context) => {
4150
- return {
4151
- Iops: (0, smithy_client_1.expectLong)(output.Iops),
4152
- Mode: (0, smithy_client_1.expectString)(output.Mode),
4153
- };
4154
- };
4155
- const de_DnsIps = (output, context) => {
4156
- const retVal = (output || [])
4157
- .filter((e) => e != null)
4158
- .map((entry) => {
4159
- if (entry === null) {
4160
- return null;
4161
- }
4162
- return (0, smithy_client_1.expectString)(entry);
4163
- });
4164
- return retVal;
4165
- };
4166
- const de_EventTypes = (output, context) => {
4167
- const retVal = (output || [])
4168
- .filter((e) => e != null)
4169
- .map((entry) => {
4170
- if (entry === null) {
4171
- return null;
4172
- }
4173
- return (0, smithy_client_1.expectString)(entry);
4174
- });
4175
- return retVal;
4176
- };
4177
- const de_FileCache = (output, context) => {
4178
- return {
4179
- CreationTime: output.CreationTime != null
4180
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4181
- : undefined,
4182
- DNSName: (0, smithy_client_1.expectString)(output.DNSName),
4183
- DataRepositoryAssociationIds: output.DataRepositoryAssociationIds != null
4184
- ? de_DataRepositoryAssociationIds(output.DataRepositoryAssociationIds, context)
4185
- : undefined,
4186
- FailureDetails: output.FailureDetails != null ? de_FileCacheFailureDetails(output.FailureDetails, context) : undefined,
4187
- FileCacheId: (0, smithy_client_1.expectString)(output.FileCacheId),
4188
- FileCacheType: (0, smithy_client_1.expectString)(output.FileCacheType),
4189
- FileCacheTypeVersion: (0, smithy_client_1.expectString)(output.FileCacheTypeVersion),
4190
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
4191
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4192
- LustreConfiguration: output.LustreConfiguration != null
4193
- ? de_FileCacheLustreConfiguration(output.LustreConfiguration, context)
4194
- : undefined,
4195
- NetworkInterfaceIds: output.NetworkInterfaceIds != null ? de_NetworkInterfaceIds(output.NetworkInterfaceIds, context) : undefined,
4196
- OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
4197
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
4198
- StorageCapacity: (0, smithy_client_1.expectInt32)(output.StorageCapacity),
4199
- SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
4200
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
4201
- };
4202
- };
4203
- const de_FileCacheCreating = (output, context) => {
4204
- return {
4205
- CopyTagsToDataRepositoryAssociations: (0, smithy_client_1.expectBoolean)(output.CopyTagsToDataRepositoryAssociations),
4206
- CreationTime: output.CreationTime != null
4207
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4208
- : undefined,
4209
- DNSName: (0, smithy_client_1.expectString)(output.DNSName),
4210
- DataRepositoryAssociationIds: output.DataRepositoryAssociationIds != null
4211
- ? de_DataRepositoryAssociationIds(output.DataRepositoryAssociationIds, context)
4212
- : undefined,
4213
- FailureDetails: output.FailureDetails != null ? de_FileCacheFailureDetails(output.FailureDetails, context) : undefined,
4214
- FileCacheId: (0, smithy_client_1.expectString)(output.FileCacheId),
4215
- FileCacheType: (0, smithy_client_1.expectString)(output.FileCacheType),
4216
- FileCacheTypeVersion: (0, smithy_client_1.expectString)(output.FileCacheTypeVersion),
4217
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
4218
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4219
- LustreConfiguration: output.LustreConfiguration != null
4220
- ? de_FileCacheLustreConfiguration(output.LustreConfiguration, context)
4221
- : undefined,
4222
- NetworkInterfaceIds: output.NetworkInterfaceIds != null ? de_NetworkInterfaceIds(output.NetworkInterfaceIds, context) : undefined,
4223
- OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
4224
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
4225
- StorageCapacity: (0, smithy_client_1.expectInt32)(output.StorageCapacity),
4226
- SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
4227
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4228
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
4229
- };
4230
- };
4231
- const de_FileCacheFailureDetails = (output, context) => {
4232
- return {
4233
- Message: (0, smithy_client_1.expectString)(output.Message),
4234
- };
4235
- };
4236
- const de_FileCacheLustreConfiguration = (output, context) => {
4237
- return {
4238
- DeploymentType: (0, smithy_client_1.expectString)(output.DeploymentType),
4239
- LogConfiguration: output.LogConfiguration != null ? de_LustreLogConfiguration(output.LogConfiguration, context) : undefined,
4240
- MetadataConfiguration: output.MetadataConfiguration != null
4241
- ? de_FileCacheLustreMetadataConfiguration(output.MetadataConfiguration, context)
4242
- : undefined,
4243
- MountName: (0, smithy_client_1.expectString)(output.MountName),
4244
- PerUnitStorageThroughput: (0, smithy_client_1.expectInt32)(output.PerUnitStorageThroughput),
4245
- WeeklyMaintenanceStartTime: (0, smithy_client_1.expectString)(output.WeeklyMaintenanceStartTime),
4246
- };
4247
- };
4248
- const de_FileCacheLustreMetadataConfiguration = (output, context) => {
4249
- return {
4250
- StorageCapacity: (0, smithy_client_1.expectInt32)(output.StorageCapacity),
4251
- };
4252
- };
4253
- const de_FileCacheNotFound = (output, context) => {
4254
- return {
4255
- Message: (0, smithy_client_1.expectString)(output.Message),
4256
- };
4257
- };
4258
- const de_FileCaches = (output, context) => {
4259
- const retVal = (output || [])
4260
- .filter((e) => e != null)
4261
- .map((entry) => {
4262
- if (entry === null) {
4263
- return null;
4264
- }
4265
- return de_FileCache(entry, context);
4266
- });
4267
- return retVal;
4268
- };
4269
- const de_FileSystem = (output, context) => {
4270
- return {
4271
- AdministrativeActions: output.AdministrativeActions != null
4272
- ? de_AdministrativeActions(output.AdministrativeActions, context)
4273
- : undefined,
4274
- CreationTime: output.CreationTime != null
4275
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4276
- : undefined,
4277
- DNSName: (0, smithy_client_1.expectString)(output.DNSName),
4278
- FailureDetails: output.FailureDetails != null ? de_FileSystemFailureDetails(output.FailureDetails, context) : undefined,
4279
- FileSystemId: (0, smithy_client_1.expectString)(output.FileSystemId),
4280
- FileSystemType: (0, smithy_client_1.expectString)(output.FileSystemType),
4281
- FileSystemTypeVersion: (0, smithy_client_1.expectString)(output.FileSystemTypeVersion),
4282
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
4283
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4284
- LustreConfiguration: output.LustreConfiguration != null
4285
- ? de_LustreFileSystemConfiguration(output.LustreConfiguration, context)
4286
- : undefined,
4287
- NetworkInterfaceIds: output.NetworkInterfaceIds != null ? de_NetworkInterfaceIds(output.NetworkInterfaceIds, context) : undefined,
4288
- OntapConfiguration: output.OntapConfiguration != null
4289
- ? de_OntapFileSystemConfiguration(output.OntapConfiguration, context)
4290
- : undefined,
4291
- OpenZFSConfiguration: output.OpenZFSConfiguration != null
4292
- ? de_OpenZFSFileSystemConfiguration(output.OpenZFSConfiguration, context)
4293
- : undefined,
4294
- OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
4295
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
4296
- StorageCapacity: (0, smithy_client_1.expectInt32)(output.StorageCapacity),
4297
- StorageType: (0, smithy_client_1.expectString)(output.StorageType),
4298
- SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
4299
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4300
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
4301
- WindowsConfiguration: output.WindowsConfiguration != null
4302
- ? de_WindowsFileSystemConfiguration(output.WindowsConfiguration, context)
4303
- : undefined,
4304
- };
4305
- };
4306
- const de_FileSystemEndpoint = (output, context) => {
4307
- return {
4308
- DNSName: (0, smithy_client_1.expectString)(output.DNSName),
4309
- IpAddresses: output.IpAddresses != null ? de_OntapEndpointIpAddresses(output.IpAddresses, context) : undefined,
4310
- };
4311
- };
4312
- const de_FileSystemEndpoints = (output, context) => {
4313
- return {
4314
- Intercluster: output.Intercluster != null ? de_FileSystemEndpoint(output.Intercluster, context) : undefined,
4315
- Management: output.Management != null ? de_FileSystemEndpoint(output.Management, context) : undefined,
4316
- };
4317
- };
4318
- const de_FileSystemFailureDetails = (output, context) => {
4319
- return {
4320
- Message: (0, smithy_client_1.expectString)(output.Message),
4321
- };
4322
- };
4323
- const de_FileSystemMaintenanceOperations = (output, context) => {
4324
- const retVal = (output || [])
4325
- .filter((e) => e != null)
4326
- .map((entry) => {
4327
- if (entry === null) {
4328
- return null;
4329
- }
4330
- return (0, smithy_client_1.expectString)(entry);
4331
- });
4332
- return retVal;
4333
- };
4334
- const de_FileSystemNotFound = (output, context) => {
4335
- return {
4336
- Message: (0, smithy_client_1.expectString)(output.Message),
4337
- };
4338
- };
4339
- const de_FileSystems = (output, context) => {
4340
- const retVal = (output || [])
4341
- .filter((e) => e != null)
4342
- .map((entry) => {
4343
- if (entry === null) {
4344
- return null;
4345
- }
4346
- return de_FileSystem(entry, context);
4347
- });
4348
- return retVal;
4349
- };
4350
- const de_IncompatibleParameterError = (output, context) => {
4351
- return {
4352
- Message: (0, smithy_client_1.expectString)(output.Message),
4353
- Parameter: (0, smithy_client_1.expectString)(output.Parameter),
4354
- };
4355
- };
4356
- const de_IncompatibleRegionForMultiAZ = (output, context) => {
4357
- return {
4358
- Message: (0, smithy_client_1.expectString)(output.Message),
4359
- };
4360
- };
4361
- const de_InternalServerError = (output, context) => {
4362
- return {
4363
- Message: (0, smithy_client_1.expectString)(output.Message),
4364
- };
4365
- };
4366
- const de_InvalidDataRepositoryType = (output, context) => {
4367
- return {
4368
- Message: (0, smithy_client_1.expectString)(output.Message),
4369
- };
4370
- };
4371
- const de_InvalidDestinationKmsKey = (output, context) => {
4372
- return {
4373
- Message: (0, smithy_client_1.expectString)(output.Message),
4374
- };
4375
- };
4376
- const de_InvalidExportPath = (output, context) => {
4377
- return {
4378
- Message: (0, smithy_client_1.expectString)(output.Message),
4379
- };
4380
- };
4381
- const de_InvalidImportPath = (output, context) => {
4382
- return {
4383
- Message: (0, smithy_client_1.expectString)(output.Message),
4384
- };
4385
- };
4386
- const de_InvalidNetworkSettings = (output, context) => {
4387
- return {
4388
- InvalidRouteTableId: (0, smithy_client_1.expectString)(output.InvalidRouteTableId),
4389
- InvalidSecurityGroupId: (0, smithy_client_1.expectString)(output.InvalidSecurityGroupId),
4390
- InvalidSubnetId: (0, smithy_client_1.expectString)(output.InvalidSubnetId),
4391
- Message: (0, smithy_client_1.expectString)(output.Message),
4392
- };
4393
- };
4394
- const de_InvalidPerUnitStorageThroughput = (output, context) => {
4395
- return {
4396
- Message: (0, smithy_client_1.expectString)(output.Message),
4397
- };
4398
- };
4399
- const de_InvalidRegion = (output, context) => {
4400
- return {
4401
- Message: (0, smithy_client_1.expectString)(output.Message),
4402
- };
4403
- };
4404
- const de_InvalidSourceKmsKey = (output, context) => {
4405
- return {
4406
- Message: (0, smithy_client_1.expectString)(output.Message),
4407
- };
4408
- };
4409
- const de_LifecycleTransitionReason = (output, context) => {
4410
- return {
4411
- Message: (0, smithy_client_1.expectString)(output.Message),
4412
- };
2690
+ const se_ReleaseFileSystemNfsV3LocksRequest = (input, context) => {
2691
+ return (0, smithy_client_1.take)(input, {
2692
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2693
+ FileSystemId: [],
2694
+ });
4413
2695
  };
4414
- const de_ListTagsForResourceResponse = (output, context) => {
4415
- return {
4416
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4417
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4418
- };
2696
+ const se_RestoreVolumeFromSnapshotRequest = (input, context) => {
2697
+ return (0, smithy_client_1.take)(input, {
2698
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2699
+ Options: smithy_client_1._json,
2700
+ SnapshotId: [],
2701
+ VolumeId: [],
2702
+ });
4419
2703
  };
4420
- const de_LustreFileSystemConfiguration = (output, context) => {
4421
- return {
4422
- AutomaticBackupRetentionDays: (0, smithy_client_1.expectInt32)(output.AutomaticBackupRetentionDays),
4423
- CopyTagsToBackups: (0, smithy_client_1.expectBoolean)(output.CopyTagsToBackups),
4424
- DailyAutomaticBackupStartTime: (0, smithy_client_1.expectString)(output.DailyAutomaticBackupStartTime),
4425
- DataCompressionType: (0, smithy_client_1.expectString)(output.DataCompressionType),
4426
- DataRepositoryConfiguration: output.DataRepositoryConfiguration != null
4427
- ? de_DataRepositoryConfiguration(output.DataRepositoryConfiguration, context)
4428
- : undefined,
4429
- DeploymentType: (0, smithy_client_1.expectString)(output.DeploymentType),
4430
- DriveCacheType: (0, smithy_client_1.expectString)(output.DriveCacheType),
4431
- LogConfiguration: output.LogConfiguration != null ? de_LustreLogConfiguration(output.LogConfiguration, context) : undefined,
4432
- MountName: (0, smithy_client_1.expectString)(output.MountName),
4433
- PerUnitStorageThroughput: (0, smithy_client_1.expectInt32)(output.PerUnitStorageThroughput),
4434
- RootSquashConfiguration: output.RootSquashConfiguration != null
4435
- ? de_LustreRootSquashConfiguration(output.RootSquashConfiguration, context)
4436
- : undefined,
4437
- WeeklyMaintenanceStartTime: (0, smithy_client_1.expectString)(output.WeeklyMaintenanceStartTime),
4438
- };
2704
+ const se_UpdateDataRepositoryAssociationRequest = (input, context) => {
2705
+ return (0, smithy_client_1.take)(input, {
2706
+ AssociationId: [],
2707
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2708
+ ImportedFileChunkSize: [],
2709
+ S3: smithy_client_1._json,
2710
+ });
4439
2711
  };
4440
- const de_LustreLogConfiguration = (output, context) => {
4441
- return {
4442
- Destination: (0, smithy_client_1.expectString)(output.Destination),
4443
- Level: (0, smithy_client_1.expectString)(output.Level),
4444
- };
2712
+ const se_UpdateFileCacheRequest = (input, context) => {
2713
+ return (0, smithy_client_1.take)(input, {
2714
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2715
+ FileCacheId: [],
2716
+ LustreConfiguration: smithy_client_1._json,
2717
+ });
4445
2718
  };
4446
- const de_LustreNoSquashNids = (output, context) => {
4447
- const retVal = (output || [])
4448
- .filter((e) => e != null)
4449
- .map((entry) => {
4450
- if (entry === null) {
4451
- return null;
4452
- }
4453
- return (0, smithy_client_1.expectString)(entry);
2719
+ const se_UpdateFileSystemRequest = (input, context) => {
2720
+ return (0, smithy_client_1.take)(input, {
2721
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2722
+ FileSystemId: [],
2723
+ LustreConfiguration: smithy_client_1._json,
2724
+ OntapConfiguration: smithy_client_1._json,
2725
+ OpenZFSConfiguration: smithy_client_1._json,
2726
+ StorageCapacity: [],
2727
+ WindowsConfiguration: smithy_client_1._json,
4454
2728
  });
4455
- return retVal;
4456
2729
  };
4457
- const de_LustreRootSquashConfiguration = (output, context) => {
4458
- return {
4459
- NoSquashNids: output.NoSquashNids != null ? de_LustreNoSquashNids(output.NoSquashNids, context) : undefined,
4460
- RootSquash: (0, smithy_client_1.expectString)(output.RootSquash),
4461
- };
2730
+ const se_UpdateSnapshotRequest = (input, context) => {
2731
+ return (0, smithy_client_1.take)(input, {
2732
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2733
+ Name: [],
2734
+ SnapshotId: [],
2735
+ });
4462
2736
  };
4463
- const de_MissingFileCacheConfiguration = (output, context) => {
4464
- return {
4465
- Message: (0, smithy_client_1.expectString)(output.Message),
4466
- };
2737
+ const se_UpdateStorageVirtualMachineRequest = (input, context) => {
2738
+ return (0, smithy_client_1.take)(input, {
2739
+ ActiveDirectoryConfiguration: smithy_client_1._json,
2740
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2741
+ StorageVirtualMachineId: [],
2742
+ SvmAdminPassword: [],
2743
+ });
4467
2744
  };
4468
- const de_MissingFileSystemConfiguration = (output, context) => {
4469
- return {
4470
- Message: (0, smithy_client_1.expectString)(output.Message),
4471
- };
2745
+ const se_UpdateVolumeRequest = (input, context) => {
2746
+ return (0, smithy_client_1.take)(input, {
2747
+ ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
2748
+ Name: [],
2749
+ OntapConfiguration: smithy_client_1._json,
2750
+ OpenZFSConfiguration: smithy_client_1._json,
2751
+ VolumeId: [],
2752
+ });
4472
2753
  };
4473
- const de_MissingVolumeConfiguration = (output, context) => {
4474
- return {
4475
- Message: (0, smithy_client_1.expectString)(output.Message),
4476
- };
2754
+ const de_AdministrativeAction = (output, context) => {
2755
+ return (0, smithy_client_1.take)(output, {
2756
+ AdministrativeActionType: smithy_client_1.expectString,
2757
+ FailureDetails: smithy_client_1._json,
2758
+ ProgressPercent: smithy_client_1.expectInt32,
2759
+ RequestTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2760
+ Status: smithy_client_1.expectString,
2761
+ TargetFileSystemValues: (_) => de_FileSystem(_, context),
2762
+ TargetSnapshotValues: (_) => de_Snapshot(_, context),
2763
+ TargetVolumeValues: (_) => de_Volume(_, context),
2764
+ });
4477
2765
  };
4478
- const de_NetworkInterfaceIds = (output, context) => {
2766
+ const de_AdministrativeActions = (output, context) => {
4479
2767
  const retVal = (output || [])
4480
2768
  .filter((e) => e != null)
4481
2769
  .map((entry) => {
4482
- if (entry === null) {
4483
- return null;
4484
- }
4485
- return (0, smithy_client_1.expectString)(entry);
2770
+ return de_AdministrativeAction(entry, context);
4486
2771
  });
4487
2772
  return retVal;
4488
2773
  };
4489
- const de_NFSDataRepositoryConfiguration = (output, context) => {
4490
- return {
4491
- AutoExportPolicy: output.AutoExportPolicy != null ? de_AutoExportPolicy(output.AutoExportPolicy, context) : undefined,
4492
- DnsIps: output.DnsIps != null ? de_RepositoryDnsIps(output.DnsIps, context) : undefined,
4493
- Version: (0, smithy_client_1.expectString)(output.Version),
4494
- };
4495
- };
4496
- const de_NotServiceResourceError = (output, context) => {
4497
- return {
4498
- Message: (0, smithy_client_1.expectString)(output.Message),
4499
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
4500
- };
2774
+ const de_Backup = (output, context) => {
2775
+ return (0, smithy_client_1.take)(output, {
2776
+ BackupId: smithy_client_1.expectString,
2777
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2778
+ DirectoryInformation: smithy_client_1._json,
2779
+ FailureDetails: smithy_client_1._json,
2780
+ FileSystem: (_) => de_FileSystem(_, context),
2781
+ KmsKeyId: smithy_client_1.expectString,
2782
+ Lifecycle: smithy_client_1.expectString,
2783
+ OwnerId: smithy_client_1.expectString,
2784
+ ProgressPercent: smithy_client_1.expectInt32,
2785
+ ResourceARN: smithy_client_1.expectString,
2786
+ ResourceType: smithy_client_1.expectString,
2787
+ SourceBackupId: smithy_client_1.expectString,
2788
+ SourceBackupRegion: smithy_client_1.expectString,
2789
+ Tags: smithy_client_1._json,
2790
+ Type: smithy_client_1.expectString,
2791
+ Volume: (_) => de_Volume(_, context),
2792
+ });
4501
2793
  };
4502
- const de_OntapEndpointIpAddresses = (output, context) => {
2794
+ const de_Backups = (output, context) => {
4503
2795
  const retVal = (output || [])
4504
2796
  .filter((e) => e != null)
4505
2797
  .map((entry) => {
4506
- if (entry === null) {
4507
- return null;
4508
- }
4509
- return (0, smithy_client_1.expectString)(entry);
2798
+ return de_Backup(entry, context);
4510
2799
  });
4511
2800
  return retVal;
4512
2801
  };
4513
- const de_OntapFileSystemConfiguration = (output, context) => {
4514
- return {
4515
- AutomaticBackupRetentionDays: (0, smithy_client_1.expectInt32)(output.AutomaticBackupRetentionDays),
4516
- DailyAutomaticBackupStartTime: (0, smithy_client_1.expectString)(output.DailyAutomaticBackupStartTime),
4517
- DeploymentType: (0, smithy_client_1.expectString)(output.DeploymentType),
4518
- DiskIopsConfiguration: output.DiskIopsConfiguration != null
4519
- ? de_DiskIopsConfiguration(output.DiskIopsConfiguration, context)
4520
- : undefined,
4521
- EndpointIpAddressRange: (0, smithy_client_1.expectString)(output.EndpointIpAddressRange),
4522
- Endpoints: output.Endpoints != null ? de_FileSystemEndpoints(output.Endpoints, context) : undefined,
4523
- PreferredSubnetId: (0, smithy_client_1.expectString)(output.PreferredSubnetId),
4524
- RouteTableIds: output.RouteTableIds != null ? de_RouteTableIds(output.RouteTableIds, context) : undefined,
4525
- ThroughputCapacity: (0, smithy_client_1.expectInt32)(output.ThroughputCapacity),
4526
- WeeklyMaintenanceStartTime: (0, smithy_client_1.expectString)(output.WeeklyMaintenanceStartTime),
4527
- };
4528
- };
4529
- const de_OntapVolumeConfiguration = (output, context) => {
4530
- return {
4531
- CopyTagsToBackups: (0, smithy_client_1.expectBoolean)(output.CopyTagsToBackups),
4532
- FlexCacheEndpointType: (0, smithy_client_1.expectString)(output.FlexCacheEndpointType),
4533
- JunctionPath: (0, smithy_client_1.expectString)(output.JunctionPath),
4534
- OntapVolumeType: (0, smithy_client_1.expectString)(output.OntapVolumeType),
4535
- SecurityStyle: (0, smithy_client_1.expectString)(output.SecurityStyle),
4536
- SizeInMegabytes: (0, smithy_client_1.expectInt32)(output.SizeInMegabytes),
4537
- SnapshotPolicy: (0, smithy_client_1.expectString)(output.SnapshotPolicy),
4538
- StorageEfficiencyEnabled: (0, smithy_client_1.expectBoolean)(output.StorageEfficiencyEnabled),
4539
- StorageVirtualMachineId: (0, smithy_client_1.expectString)(output.StorageVirtualMachineId),
4540
- StorageVirtualMachineRoot: (0, smithy_client_1.expectBoolean)(output.StorageVirtualMachineRoot),
4541
- TieringPolicy: output.TieringPolicy != null ? de_TieringPolicy(output.TieringPolicy, context) : undefined,
4542
- UUID: (0, smithy_client_1.expectString)(output.UUID),
4543
- };
2802
+ const de_CopyBackupResponse = (output, context) => {
2803
+ return (0, smithy_client_1.take)(output, {
2804
+ Backup: (_) => de_Backup(_, context),
2805
+ });
4544
2806
  };
4545
- const de_OpenZFSClientConfiguration = (output, context) => {
4546
- return {
4547
- Clients: (0, smithy_client_1.expectString)(output.Clients),
4548
- Options: output.Options != null ? de_OpenZFSNfsExportOptions(output.Options, context) : undefined,
4549
- };
2807
+ const de_CreateBackupResponse = (output, context) => {
2808
+ return (0, smithy_client_1.take)(output, {
2809
+ Backup: (_) => de_Backup(_, context),
2810
+ });
4550
2811
  };
4551
- const de_OpenZFSClientConfigurations = (output, context) => {
4552
- const retVal = (output || [])
4553
- .filter((e) => e != null)
4554
- .map((entry) => {
4555
- if (entry === null) {
4556
- return null;
4557
- }
4558
- return de_OpenZFSClientConfiguration(entry, context);
2812
+ const de_CreateDataRepositoryAssociationResponse = (output, context) => {
2813
+ return (0, smithy_client_1.take)(output, {
2814
+ Association: (_) => de_DataRepositoryAssociation(_, context),
4559
2815
  });
4560
- return retVal;
4561
2816
  };
4562
- const de_OpenZFSFileSystemConfiguration = (output, context) => {
4563
- return {
4564
- AutomaticBackupRetentionDays: (0, smithy_client_1.expectInt32)(output.AutomaticBackupRetentionDays),
4565
- CopyTagsToBackups: (0, smithy_client_1.expectBoolean)(output.CopyTagsToBackups),
4566
- CopyTagsToVolumes: (0, smithy_client_1.expectBoolean)(output.CopyTagsToVolumes),
4567
- DailyAutomaticBackupStartTime: (0, smithy_client_1.expectString)(output.DailyAutomaticBackupStartTime),
4568
- DeploymentType: (0, smithy_client_1.expectString)(output.DeploymentType),
4569
- DiskIopsConfiguration: output.DiskIopsConfiguration != null
4570
- ? de_DiskIopsConfiguration(output.DiskIopsConfiguration, context)
4571
- : undefined,
4572
- RootVolumeId: (0, smithy_client_1.expectString)(output.RootVolumeId),
4573
- ThroughputCapacity: (0, smithy_client_1.expectInt32)(output.ThroughputCapacity),
4574
- WeeklyMaintenanceStartTime: (0, smithy_client_1.expectString)(output.WeeklyMaintenanceStartTime),
4575
- };
2817
+ const de_CreateDataRepositoryTaskResponse = (output, context) => {
2818
+ return (0, smithy_client_1.take)(output, {
2819
+ DataRepositoryTask: (_) => de_DataRepositoryTask(_, context),
2820
+ });
4576
2821
  };
4577
- const de_OpenZFSNfsExport = (output, context) => {
4578
- return {
4579
- ClientConfigurations: output.ClientConfigurations != null
4580
- ? de_OpenZFSClientConfigurations(output.ClientConfigurations, context)
4581
- : undefined,
4582
- };
2822
+ const de_CreateFileCacheResponse = (output, context) => {
2823
+ return (0, smithy_client_1.take)(output, {
2824
+ FileCache: (_) => de_FileCacheCreating(_, context),
2825
+ });
4583
2826
  };
4584
- const de_OpenZFSNfsExportOptions = (output, context) => {
4585
- const retVal = (output || [])
4586
- .filter((e) => e != null)
4587
- .map((entry) => {
4588
- if (entry === null) {
4589
- return null;
4590
- }
4591
- return (0, smithy_client_1.expectString)(entry);
2827
+ const de_CreateFileSystemFromBackupResponse = (output, context) => {
2828
+ return (0, smithy_client_1.take)(output, {
2829
+ FileSystem: (_) => de_FileSystem(_, context),
4592
2830
  });
4593
- return retVal;
4594
2831
  };
4595
- const de_OpenZFSNfsExports = (output, context) => {
4596
- const retVal = (output || [])
4597
- .filter((e) => e != null)
4598
- .map((entry) => {
4599
- if (entry === null) {
4600
- return null;
4601
- }
4602
- return de_OpenZFSNfsExport(entry, context);
2832
+ const de_CreateFileSystemResponse = (output, context) => {
2833
+ return (0, smithy_client_1.take)(output, {
2834
+ FileSystem: (_) => de_FileSystem(_, context),
4603
2835
  });
4604
- return retVal;
4605
2836
  };
4606
- const de_OpenZFSOriginSnapshotConfiguration = (output, context) => {
4607
- return {
4608
- CopyStrategy: (0, smithy_client_1.expectString)(output.CopyStrategy),
4609
- SnapshotARN: (0, smithy_client_1.expectString)(output.SnapshotARN),
4610
- };
2837
+ const de_CreateSnapshotResponse = (output, context) => {
2838
+ return (0, smithy_client_1.take)(output, {
2839
+ Snapshot: (_) => de_Snapshot(_, context),
2840
+ });
4611
2841
  };
4612
- const de_OpenZFSUserAndGroupQuotas = (output, context) => {
4613
- const retVal = (output || [])
4614
- .filter((e) => e != null)
4615
- .map((entry) => {
4616
- if (entry === null) {
4617
- return null;
4618
- }
4619
- return de_OpenZFSUserOrGroupQuota(entry, context);
2842
+ const de_CreateStorageVirtualMachineResponse = (output, context) => {
2843
+ return (0, smithy_client_1.take)(output, {
2844
+ StorageVirtualMachine: (_) => de_StorageVirtualMachine(_, context),
4620
2845
  });
4621
- return retVal;
4622
2846
  };
4623
- const de_OpenZFSUserOrGroupQuota = (output, context) => {
4624
- return {
4625
- Id: (0, smithy_client_1.expectInt32)(output.Id),
4626
- StorageCapacityQuotaGiB: (0, smithy_client_1.expectInt32)(output.StorageCapacityQuotaGiB),
4627
- Type: (0, smithy_client_1.expectString)(output.Type),
4628
- };
2847
+ const de_CreateVolumeFromBackupResponse = (output, context) => {
2848
+ return (0, smithy_client_1.take)(output, {
2849
+ Volume: (_) => de_Volume(_, context),
2850
+ });
4629
2851
  };
4630
- const de_OpenZFSVolumeConfiguration = (output, context) => {
4631
- return {
4632
- CopyTagsToSnapshots: (0, smithy_client_1.expectBoolean)(output.CopyTagsToSnapshots),
4633
- DataCompressionType: (0, smithy_client_1.expectString)(output.DataCompressionType),
4634
- DeleteClonedVolumes: (0, smithy_client_1.expectBoolean)(output.DeleteClonedVolumes),
4635
- DeleteIntermediateSnaphots: (0, smithy_client_1.expectBoolean)(output.DeleteIntermediateSnaphots),
4636
- NfsExports: output.NfsExports != null ? de_OpenZFSNfsExports(output.NfsExports, context) : undefined,
4637
- OriginSnapshot: output.OriginSnapshot != null ? de_OpenZFSOriginSnapshotConfiguration(output.OriginSnapshot, context) : undefined,
4638
- ParentVolumeId: (0, smithy_client_1.expectString)(output.ParentVolumeId),
4639
- ReadOnly: (0, smithy_client_1.expectBoolean)(output.ReadOnly),
4640
- RecordSizeKiB: (0, smithy_client_1.expectInt32)(output.RecordSizeKiB),
4641
- RestoreToSnapshot: (0, smithy_client_1.expectString)(output.RestoreToSnapshot),
4642
- StorageCapacityQuotaGiB: (0, smithy_client_1.expectInt32)(output.StorageCapacityQuotaGiB),
4643
- StorageCapacityReservationGiB: (0, smithy_client_1.expectInt32)(output.StorageCapacityReservationGiB),
4644
- UserAndGroupQuotas: output.UserAndGroupQuotas != null ? de_OpenZFSUserAndGroupQuotas(output.UserAndGroupQuotas, context) : undefined,
4645
- VolumePath: (0, smithy_client_1.expectString)(output.VolumePath),
4646
- };
2852
+ const de_CreateVolumeResponse = (output, context) => {
2853
+ return (0, smithy_client_1.take)(output, {
2854
+ Volume: (_) => de_Volume(_, context),
2855
+ });
4647
2856
  };
4648
- const de_ReleaseFileSystemNfsV3LocksResponse = (output, context) => {
4649
- return {
4650
- FileSystem: output.FileSystem != null ? de_FileSystem(output.FileSystem, context) : undefined,
4651
- };
2857
+ const de_DataRepositoryAssociation = (output, context) => {
2858
+ return (0, smithy_client_1.take)(output, {
2859
+ AssociationId: smithy_client_1.expectString,
2860
+ BatchImportMetaDataOnCreate: smithy_client_1.expectBoolean,
2861
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2862
+ DataRepositoryPath: smithy_client_1.expectString,
2863
+ DataRepositorySubdirectories: smithy_client_1._json,
2864
+ FailureDetails: smithy_client_1._json,
2865
+ FileCacheId: smithy_client_1.expectString,
2866
+ FileCachePath: smithy_client_1.expectString,
2867
+ FileSystemId: smithy_client_1.expectString,
2868
+ FileSystemPath: smithy_client_1.expectString,
2869
+ ImportedFileChunkSize: smithy_client_1.expectInt32,
2870
+ Lifecycle: smithy_client_1.expectString,
2871
+ NFS: smithy_client_1._json,
2872
+ ResourceARN: smithy_client_1.expectString,
2873
+ S3: smithy_client_1._json,
2874
+ Tags: smithy_client_1._json,
2875
+ });
4652
2876
  };
4653
- const de_RepositoryDnsIps = (output, context) => {
2877
+ const de_DataRepositoryAssociations = (output, context) => {
4654
2878
  const retVal = (output || [])
4655
2879
  .filter((e) => e != null)
4656
2880
  .map((entry) => {
4657
- if (entry === null) {
4658
- return null;
4659
- }
4660
- return (0, smithy_client_1.expectString)(entry);
2881
+ return de_DataRepositoryAssociation(entry, context);
4661
2882
  });
4662
2883
  return retVal;
4663
2884
  };
4664
- const de_ResourceDoesNotSupportTagging = (output, context) => {
4665
- return {
4666
- Message: (0, smithy_client_1.expectString)(output.Message),
4667
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
4668
- };
4669
- };
4670
- const de_ResourceNotFound = (output, context) => {
4671
- return {
4672
- Message: (0, smithy_client_1.expectString)(output.Message),
4673
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
4674
- };
4675
- };
4676
- const de_RestoreVolumeFromSnapshotResponse = (output, context) => {
4677
- return {
4678
- AdministrativeActions: output.AdministrativeActions != null
4679
- ? de_AdministrativeActions(output.AdministrativeActions, context)
4680
- : undefined,
4681
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4682
- VolumeId: (0, smithy_client_1.expectString)(output.VolumeId),
4683
- };
2885
+ const de_DataRepositoryTask = (output, context) => {
2886
+ return (0, smithy_client_1.take)(output, {
2887
+ CapacityToRelease: smithy_client_1.expectLong,
2888
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2889
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2890
+ FailureDetails: smithy_client_1._json,
2891
+ FileCacheId: smithy_client_1.expectString,
2892
+ FileSystemId: smithy_client_1.expectString,
2893
+ Lifecycle: smithy_client_1.expectString,
2894
+ Paths: smithy_client_1._json,
2895
+ Report: smithy_client_1._json,
2896
+ ResourceARN: smithy_client_1.expectString,
2897
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2898
+ Status: (_) => de_DataRepositoryTaskStatus(_, context),
2899
+ Tags: smithy_client_1._json,
2900
+ TaskId: smithy_client_1.expectString,
2901
+ Type: smithy_client_1.expectString,
2902
+ });
4684
2903
  };
4685
- const de_RouteTableIds = (output, context) => {
2904
+ const de_DataRepositoryTasks = (output, context) => {
4686
2905
  const retVal = (output || [])
4687
2906
  .filter((e) => e != null)
4688
2907
  .map((entry) => {
4689
- if (entry === null) {
4690
- return null;
4691
- }
4692
- return (0, smithy_client_1.expectString)(entry);
2908
+ return de_DataRepositoryTask(entry, context);
4693
2909
  });
4694
2910
  return retVal;
4695
2911
  };
4696
- const de_S3DataRepositoryConfiguration = (output, context) => {
4697
- return {
4698
- AutoExportPolicy: output.AutoExportPolicy != null ? de_AutoExportPolicy(output.AutoExportPolicy, context) : undefined,
4699
- AutoImportPolicy: output.AutoImportPolicy != null ? de_AutoImportPolicy(output.AutoImportPolicy, context) : undefined,
4700
- };
2912
+ const de_DataRepositoryTaskStatus = (output, context) => {
2913
+ return (0, smithy_client_1.take)(output, {
2914
+ FailedCount: smithy_client_1.expectLong,
2915
+ LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2916
+ ReleasedCapacity: smithy_client_1.expectLong,
2917
+ SucceededCount: smithy_client_1.expectLong,
2918
+ TotalCount: smithy_client_1.expectLong,
2919
+ });
4701
2920
  };
4702
- const de_SelfManagedActiveDirectoryAttributes = (output, context) => {
4703
- return {
4704
- DnsIps: output.DnsIps != null ? de_DnsIps(output.DnsIps, context) : undefined,
4705
- DomainName: (0, smithy_client_1.expectString)(output.DomainName),
4706
- FileSystemAdministratorsGroup: (0, smithy_client_1.expectString)(output.FileSystemAdministratorsGroup),
4707
- OrganizationalUnitDistinguishedName: (0, smithy_client_1.expectString)(output.OrganizationalUnitDistinguishedName),
4708
- UserName: (0, smithy_client_1.expectString)(output.UserName),
4709
- };
2921
+ const de_DescribeBackupsResponse = (output, context) => {
2922
+ return (0, smithy_client_1.take)(output, {
2923
+ Backups: (_) => de_Backups(_, context),
2924
+ NextToken: smithy_client_1.expectString,
2925
+ });
4710
2926
  };
4711
- const de_ServiceLimitExceeded = (output, context) => {
4712
- return {
4713
- Limit: (0, smithy_client_1.expectString)(output.Limit),
4714
- Message: (0, smithy_client_1.expectString)(output.Message),
4715
- };
2927
+ const de_DescribeDataRepositoryAssociationsResponse = (output, context) => {
2928
+ return (0, smithy_client_1.take)(output, {
2929
+ Associations: (_) => de_DataRepositoryAssociations(_, context),
2930
+ NextToken: smithy_client_1.expectString,
2931
+ });
4716
2932
  };
4717
- const de_Snapshot = (output, context) => {
4718
- return {
4719
- AdministrativeActions: output.AdministrativeActions != null
4720
- ? de_AdministrativeActions(output.AdministrativeActions, context)
4721
- : undefined,
4722
- CreationTime: output.CreationTime != null
4723
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4724
- : undefined,
4725
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4726
- LifecycleTransitionReason: output.LifecycleTransitionReason != null
4727
- ? de_LifecycleTransitionReason(output.LifecycleTransitionReason, context)
4728
- : undefined,
4729
- Name: (0, smithy_client_1.expectString)(output.Name),
4730
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
4731
- SnapshotId: (0, smithy_client_1.expectString)(output.SnapshotId),
4732
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4733
- VolumeId: (0, smithy_client_1.expectString)(output.VolumeId),
4734
- };
2933
+ const de_DescribeDataRepositoryTasksResponse = (output, context) => {
2934
+ return (0, smithy_client_1.take)(output, {
2935
+ DataRepositoryTasks: (_) => de_DataRepositoryTasks(_, context),
2936
+ NextToken: smithy_client_1.expectString,
2937
+ });
4735
2938
  };
4736
- const de_SnapshotNotFound = (output, context) => {
4737
- return {
4738
- Message: (0, smithy_client_1.expectString)(output.Message),
4739
- };
2939
+ const de_DescribeFileCachesResponse = (output, context) => {
2940
+ return (0, smithy_client_1.take)(output, {
2941
+ FileCaches: (_) => de_FileCaches(_, context),
2942
+ NextToken: smithy_client_1.expectString,
2943
+ });
4740
2944
  };
4741
- const de_Snapshots = (output, context) => {
4742
- const retVal = (output || [])
4743
- .filter((e) => e != null)
4744
- .map((entry) => {
4745
- if (entry === null) {
4746
- return null;
4747
- }
4748
- return de_Snapshot(entry, context);
2945
+ const de_DescribeFileSystemsResponse = (output, context) => {
2946
+ return (0, smithy_client_1.take)(output, {
2947
+ FileSystems: (_) => de_FileSystems(_, context),
2948
+ NextToken: smithy_client_1.expectString,
4749
2949
  });
4750
- return retVal;
4751
2950
  };
4752
- const de_SourceBackupUnavailable = (output, context) => {
4753
- return {
4754
- BackupId: (0, smithy_client_1.expectString)(output.BackupId),
4755
- Message: (0, smithy_client_1.expectString)(output.Message),
4756
- };
2951
+ const de_DescribeSnapshotsResponse = (output, context) => {
2952
+ return (0, smithy_client_1.take)(output, {
2953
+ NextToken: smithy_client_1.expectString,
2954
+ Snapshots: (_) => de_Snapshots(_, context),
2955
+ });
4757
2956
  };
4758
- const de_StorageVirtualMachine = (output, context) => {
4759
- return {
4760
- ActiveDirectoryConfiguration: output.ActiveDirectoryConfiguration != null
4761
- ? de_SvmActiveDirectoryConfiguration(output.ActiveDirectoryConfiguration, context)
4762
- : undefined,
4763
- CreationTime: output.CreationTime != null
4764
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4765
- : undefined,
4766
- Endpoints: output.Endpoints != null ? de_SvmEndpoints(output.Endpoints, context) : undefined,
4767
- FileSystemId: (0, smithy_client_1.expectString)(output.FileSystemId),
4768
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4769
- LifecycleTransitionReason: output.LifecycleTransitionReason != null
4770
- ? de_LifecycleTransitionReason(output.LifecycleTransitionReason, context)
4771
- : undefined,
4772
- Name: (0, smithy_client_1.expectString)(output.Name),
4773
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
4774
- RootVolumeSecurityStyle: (0, smithy_client_1.expectString)(output.RootVolumeSecurityStyle),
4775
- StorageVirtualMachineId: (0, smithy_client_1.expectString)(output.StorageVirtualMachineId),
4776
- Subtype: (0, smithy_client_1.expectString)(output.Subtype),
4777
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4778
- UUID: (0, smithy_client_1.expectString)(output.UUID),
4779
- };
2957
+ const de_DescribeStorageVirtualMachinesResponse = (output, context) => {
2958
+ return (0, smithy_client_1.take)(output, {
2959
+ NextToken: smithy_client_1.expectString,
2960
+ StorageVirtualMachines: (_) => de_StorageVirtualMachines(_, context),
2961
+ });
4780
2962
  };
4781
- const de_StorageVirtualMachineNotFound = (output, context) => {
4782
- return {
4783
- Message: (0, smithy_client_1.expectString)(output.Message),
4784
- };
2963
+ const de_DescribeVolumesResponse = (output, context) => {
2964
+ return (0, smithy_client_1.take)(output, {
2965
+ NextToken: smithy_client_1.expectString,
2966
+ Volumes: (_) => de_Volumes(_, context),
2967
+ });
4785
2968
  };
4786
- const de_StorageVirtualMachines = (output, context) => {
4787
- const retVal = (output || [])
4788
- .filter((e) => e != null)
4789
- .map((entry) => {
4790
- if (entry === null) {
4791
- return null;
4792
- }
4793
- return de_StorageVirtualMachine(entry, context);
2969
+ const de_FileCache = (output, context) => {
2970
+ return (0, smithy_client_1.take)(output, {
2971
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2972
+ DNSName: smithy_client_1.expectString,
2973
+ DataRepositoryAssociationIds: smithy_client_1._json,
2974
+ FailureDetails: smithy_client_1._json,
2975
+ FileCacheId: smithy_client_1.expectString,
2976
+ FileCacheType: smithy_client_1.expectString,
2977
+ FileCacheTypeVersion: smithy_client_1.expectString,
2978
+ KmsKeyId: smithy_client_1.expectString,
2979
+ Lifecycle: smithy_client_1.expectString,
2980
+ LustreConfiguration: smithy_client_1._json,
2981
+ NetworkInterfaceIds: smithy_client_1._json,
2982
+ OwnerId: smithy_client_1.expectString,
2983
+ ResourceARN: smithy_client_1.expectString,
2984
+ StorageCapacity: smithy_client_1.expectInt32,
2985
+ SubnetIds: smithy_client_1._json,
2986
+ VpcId: smithy_client_1.expectString,
2987
+ });
2988
+ };
2989
+ const de_FileCacheCreating = (output, context) => {
2990
+ return (0, smithy_client_1.take)(output, {
2991
+ CopyTagsToDataRepositoryAssociations: smithy_client_1.expectBoolean,
2992
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2993
+ DNSName: smithy_client_1.expectString,
2994
+ DataRepositoryAssociationIds: smithy_client_1._json,
2995
+ FailureDetails: smithy_client_1._json,
2996
+ FileCacheId: smithy_client_1.expectString,
2997
+ FileCacheType: smithy_client_1.expectString,
2998
+ FileCacheTypeVersion: smithy_client_1.expectString,
2999
+ KmsKeyId: smithy_client_1.expectString,
3000
+ Lifecycle: smithy_client_1.expectString,
3001
+ LustreConfiguration: smithy_client_1._json,
3002
+ NetworkInterfaceIds: smithy_client_1._json,
3003
+ OwnerId: smithy_client_1.expectString,
3004
+ ResourceARN: smithy_client_1.expectString,
3005
+ StorageCapacity: smithy_client_1.expectInt32,
3006
+ SubnetIds: smithy_client_1._json,
3007
+ Tags: smithy_client_1._json,
3008
+ VpcId: smithy_client_1.expectString,
4794
3009
  });
4795
- return retVal;
4796
3010
  };
4797
- const de_SubDirectoriesPaths = (output, context) => {
3011
+ const de_FileCaches = (output, context) => {
4798
3012
  const retVal = (output || [])
4799
3013
  .filter((e) => e != null)
4800
3014
  .map((entry) => {
4801
- if (entry === null) {
4802
- return null;
4803
- }
4804
- return (0, smithy_client_1.expectString)(entry);
3015
+ return de_FileCache(entry, context);
4805
3016
  });
4806
3017
  return retVal;
4807
3018
  };
4808
- const de_SubnetIds = (output, context) => {
3019
+ const de_FileSystem = (output, context) => {
3020
+ return (0, smithy_client_1.take)(output, {
3021
+ AdministrativeActions: (_) => de_AdministrativeActions(_, context),
3022
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3023
+ DNSName: smithy_client_1.expectString,
3024
+ FailureDetails: smithy_client_1._json,
3025
+ FileSystemId: smithy_client_1.expectString,
3026
+ FileSystemType: smithy_client_1.expectString,
3027
+ FileSystemTypeVersion: smithy_client_1.expectString,
3028
+ KmsKeyId: smithy_client_1.expectString,
3029
+ Lifecycle: smithy_client_1.expectString,
3030
+ LustreConfiguration: smithy_client_1._json,
3031
+ NetworkInterfaceIds: smithy_client_1._json,
3032
+ OntapConfiguration: smithy_client_1._json,
3033
+ OpenZFSConfiguration: smithy_client_1._json,
3034
+ OwnerId: smithy_client_1.expectString,
3035
+ ResourceARN: smithy_client_1.expectString,
3036
+ StorageCapacity: smithy_client_1.expectInt32,
3037
+ StorageType: smithy_client_1.expectString,
3038
+ SubnetIds: smithy_client_1._json,
3039
+ Tags: smithy_client_1._json,
3040
+ VpcId: smithy_client_1.expectString,
3041
+ WindowsConfiguration: smithy_client_1._json,
3042
+ });
3043
+ };
3044
+ const de_FileSystems = (output, context) => {
4809
3045
  const retVal = (output || [])
4810
3046
  .filter((e) => e != null)
4811
3047
  .map((entry) => {
4812
- if (entry === null) {
4813
- return null;
4814
- }
4815
- return (0, smithy_client_1.expectString)(entry);
3048
+ return de_FileSystem(entry, context);
4816
3049
  });
4817
3050
  return retVal;
4818
3051
  };
4819
- const de_SvmActiveDirectoryConfiguration = (output, context) => {
4820
- return {
4821
- NetBiosName: (0, smithy_client_1.expectString)(output.NetBiosName),
4822
- SelfManagedActiveDirectoryConfiguration: output.SelfManagedActiveDirectoryConfiguration != null
4823
- ? de_SelfManagedActiveDirectoryAttributes(output.SelfManagedActiveDirectoryConfiguration, context)
4824
- : undefined,
4825
- };
4826
- };
4827
- const de_SvmEndpoint = (output, context) => {
4828
- return {
4829
- DNSName: (0, smithy_client_1.expectString)(output.DNSName),
4830
- IpAddresses: output.IpAddresses != null ? de_OntapEndpointIpAddresses(output.IpAddresses, context) : undefined,
4831
- };
4832
- };
4833
- const de_SvmEndpoints = (output, context) => {
4834
- return {
4835
- Iscsi: output.Iscsi != null ? de_SvmEndpoint(output.Iscsi, context) : undefined,
4836
- Management: output.Management != null ? de_SvmEndpoint(output.Management, context) : undefined,
4837
- Nfs: output.Nfs != null ? de_SvmEndpoint(output.Nfs, context) : undefined,
4838
- Smb: output.Smb != null ? de_SvmEndpoint(output.Smb, context) : undefined,
4839
- };
3052
+ const de_ReleaseFileSystemNfsV3LocksResponse = (output, context) => {
3053
+ return (0, smithy_client_1.take)(output, {
3054
+ FileSystem: (_) => de_FileSystem(_, context),
3055
+ });
4840
3056
  };
4841
- const de_Tag = (output, context) => {
4842
- return {
4843
- Key: (0, smithy_client_1.expectString)(output.Key),
4844
- Value: (0, smithy_client_1.expectString)(output.Value),
4845
- };
3057
+ const de_RestoreVolumeFromSnapshotResponse = (output, context) => {
3058
+ return (0, smithy_client_1.take)(output, {
3059
+ AdministrativeActions: (_) => de_AdministrativeActions(_, context),
3060
+ Lifecycle: smithy_client_1.expectString,
3061
+ VolumeId: smithy_client_1.expectString,
3062
+ });
4846
3063
  };
4847
- const de_TagResourceResponse = (output, context) => {
4848
- return {};
3064
+ const de_Snapshot = (output, context) => {
3065
+ return (0, smithy_client_1.take)(output, {
3066
+ AdministrativeActions: (_) => de_AdministrativeActions(_, context),
3067
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3068
+ Lifecycle: smithy_client_1.expectString,
3069
+ LifecycleTransitionReason: smithy_client_1._json,
3070
+ Name: smithy_client_1.expectString,
3071
+ ResourceARN: smithy_client_1.expectString,
3072
+ SnapshotId: smithy_client_1.expectString,
3073
+ Tags: smithy_client_1._json,
3074
+ VolumeId: smithy_client_1.expectString,
3075
+ });
4849
3076
  };
4850
- const de_Tags = (output, context) => {
3077
+ const de_Snapshots = (output, context) => {
4851
3078
  const retVal = (output || [])
4852
3079
  .filter((e) => e != null)
4853
3080
  .map((entry) => {
4854
- if (entry === null) {
4855
- return null;
4856
- }
4857
- return de_Tag(entry, context);
3081
+ return de_Snapshot(entry, context);
4858
3082
  });
4859
3083
  return retVal;
4860
3084
  };
4861
- const de_TieringPolicy = (output, context) => {
4862
- return {
4863
- CoolingPeriod: (0, smithy_client_1.expectInt32)(output.CoolingPeriod),
4864
- Name: (0, smithy_client_1.expectString)(output.Name),
4865
- };
4866
- };
4867
- const de_UnsupportedOperation = (output, context) => {
4868
- return {
4869
- Message: (0, smithy_client_1.expectString)(output.Message),
4870
- };
3085
+ const de_StorageVirtualMachine = (output, context) => {
3086
+ return (0, smithy_client_1.take)(output, {
3087
+ ActiveDirectoryConfiguration: smithy_client_1._json,
3088
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3089
+ Endpoints: smithy_client_1._json,
3090
+ FileSystemId: smithy_client_1.expectString,
3091
+ Lifecycle: smithy_client_1.expectString,
3092
+ LifecycleTransitionReason: smithy_client_1._json,
3093
+ Name: smithy_client_1.expectString,
3094
+ ResourceARN: smithy_client_1.expectString,
3095
+ RootVolumeSecurityStyle: smithy_client_1.expectString,
3096
+ StorageVirtualMachineId: smithy_client_1.expectString,
3097
+ Subtype: smithy_client_1.expectString,
3098
+ Tags: smithy_client_1._json,
3099
+ UUID: smithy_client_1.expectString,
3100
+ });
4871
3101
  };
4872
- const de_UntagResourceResponse = (output, context) => {
4873
- return {};
3102
+ const de_StorageVirtualMachines = (output, context) => {
3103
+ const retVal = (output || [])
3104
+ .filter((e) => e != null)
3105
+ .map((entry) => {
3106
+ return de_StorageVirtualMachine(entry, context);
3107
+ });
3108
+ return retVal;
4874
3109
  };
4875
3110
  const de_UpdateDataRepositoryAssociationResponse = (output, context) => {
4876
- return {
4877
- Association: output.Association != null ? de_DataRepositoryAssociation(output.Association, context) : undefined,
4878
- };
3111
+ return (0, smithy_client_1.take)(output, {
3112
+ Association: (_) => de_DataRepositoryAssociation(_, context),
3113
+ });
4879
3114
  };
4880
3115
  const de_UpdateFileCacheResponse = (output, context) => {
4881
- return {
4882
- FileCache: output.FileCache != null ? de_FileCache(output.FileCache, context) : undefined,
4883
- };
3116
+ return (0, smithy_client_1.take)(output, {
3117
+ FileCache: (_) => de_FileCache(_, context),
3118
+ });
4884
3119
  };
4885
3120
  const de_UpdateFileSystemResponse = (output, context) => {
4886
- return {
4887
- FileSystem: output.FileSystem != null ? de_FileSystem(output.FileSystem, context) : undefined,
4888
- };
3121
+ return (0, smithy_client_1.take)(output, {
3122
+ FileSystem: (_) => de_FileSystem(_, context),
3123
+ });
4889
3124
  };
4890
3125
  const de_UpdateSnapshotResponse = (output, context) => {
4891
- return {
4892
- Snapshot: output.Snapshot != null ? de_Snapshot(output.Snapshot, context) : undefined,
4893
- };
3126
+ return (0, smithy_client_1.take)(output, {
3127
+ Snapshot: (_) => de_Snapshot(_, context),
3128
+ });
4894
3129
  };
4895
3130
  const de_UpdateStorageVirtualMachineResponse = (output, context) => {
4896
- return {
4897
- StorageVirtualMachine: output.StorageVirtualMachine != null
4898
- ? de_StorageVirtualMachine(output.StorageVirtualMachine, context)
4899
- : undefined,
4900
- };
3131
+ return (0, smithy_client_1.take)(output, {
3132
+ StorageVirtualMachine: (_) => de_StorageVirtualMachine(_, context),
3133
+ });
4901
3134
  };
4902
3135
  const de_UpdateVolumeResponse = (output, context) => {
4903
- return {
4904
- Volume: output.Volume != null ? de_Volume(output.Volume, context) : undefined,
4905
- };
3136
+ return (0, smithy_client_1.take)(output, {
3137
+ Volume: (_) => de_Volume(_, context),
3138
+ });
4906
3139
  };
4907
3140
  const de_Volume = (output, context) => {
4908
- return {
4909
- AdministrativeActions: output.AdministrativeActions != null
4910
- ? de_AdministrativeActions(output.AdministrativeActions, context)
4911
- : undefined,
4912
- CreationTime: output.CreationTime != null
4913
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4914
- : undefined,
4915
- FileSystemId: (0, smithy_client_1.expectString)(output.FileSystemId),
4916
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
4917
- LifecycleTransitionReason: output.LifecycleTransitionReason != null
4918
- ? de_LifecycleTransitionReason(output.LifecycleTransitionReason, context)
4919
- : undefined,
4920
- Name: (0, smithy_client_1.expectString)(output.Name),
4921
- OntapConfiguration: output.OntapConfiguration != null ? de_OntapVolumeConfiguration(output.OntapConfiguration, context) : undefined,
4922
- OpenZFSConfiguration: output.OpenZFSConfiguration != null
4923
- ? de_OpenZFSVolumeConfiguration(output.OpenZFSConfiguration, context)
4924
- : undefined,
4925
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
4926
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4927
- VolumeId: (0, smithy_client_1.expectString)(output.VolumeId),
4928
- VolumeType: (0, smithy_client_1.expectString)(output.VolumeType),
4929
- };
4930
- };
4931
- const de_VolumeNotFound = (output, context) => {
4932
- return {
4933
- Message: (0, smithy_client_1.expectString)(output.Message),
4934
- };
3141
+ return (0, smithy_client_1.take)(output, {
3142
+ AdministrativeActions: (_) => de_AdministrativeActions(_, context),
3143
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3144
+ FileSystemId: smithy_client_1.expectString,
3145
+ Lifecycle: smithy_client_1.expectString,
3146
+ LifecycleTransitionReason: smithy_client_1._json,
3147
+ Name: smithy_client_1.expectString,
3148
+ OntapConfiguration: smithy_client_1._json,
3149
+ OpenZFSConfiguration: smithy_client_1._json,
3150
+ ResourceARN: smithy_client_1.expectString,
3151
+ Tags: smithy_client_1._json,
3152
+ VolumeId: smithy_client_1.expectString,
3153
+ VolumeType: smithy_client_1.expectString,
3154
+ });
4935
3155
  };
4936
3156
  const de_Volumes = (output, context) => {
4937
3157
  const retVal = (output || [])
4938
3158
  .filter((e) => e != null)
4939
3159
  .map((entry) => {
4940
- if (entry === null) {
4941
- return null;
4942
- }
4943
3160
  return de_Volume(entry, context);
4944
3161
  });
4945
3162
  return retVal;
4946
3163
  };
4947
- const de_WindowsAuditLogConfiguration = (output, context) => {
4948
- return {
4949
- AuditLogDestination: (0, smithy_client_1.expectString)(output.AuditLogDestination),
4950
- FileAccessAuditLogLevel: (0, smithy_client_1.expectString)(output.FileAccessAuditLogLevel),
4951
- FileShareAccessAuditLogLevel: (0, smithy_client_1.expectString)(output.FileShareAccessAuditLogLevel),
4952
- };
4953
- };
4954
- const de_WindowsFileSystemConfiguration = (output, context) => {
4955
- return {
4956
- ActiveDirectoryId: (0, smithy_client_1.expectString)(output.ActiveDirectoryId),
4957
- Aliases: output.Aliases != null ? de_Aliases(output.Aliases, context) : undefined,
4958
- AuditLogConfiguration: output.AuditLogConfiguration != null
4959
- ? de_WindowsAuditLogConfiguration(output.AuditLogConfiguration, context)
4960
- : undefined,
4961
- AutomaticBackupRetentionDays: (0, smithy_client_1.expectInt32)(output.AutomaticBackupRetentionDays),
4962
- CopyTagsToBackups: (0, smithy_client_1.expectBoolean)(output.CopyTagsToBackups),
4963
- DailyAutomaticBackupStartTime: (0, smithy_client_1.expectString)(output.DailyAutomaticBackupStartTime),
4964
- DeploymentType: (0, smithy_client_1.expectString)(output.DeploymentType),
4965
- MaintenanceOperationsInProgress: output.MaintenanceOperationsInProgress != null
4966
- ? de_FileSystemMaintenanceOperations(output.MaintenanceOperationsInProgress, context)
4967
- : undefined,
4968
- PreferredFileServerIp: (0, smithy_client_1.expectString)(output.PreferredFileServerIp),
4969
- PreferredSubnetId: (0, smithy_client_1.expectString)(output.PreferredSubnetId),
4970
- RemoteAdministrationEndpoint: (0, smithy_client_1.expectString)(output.RemoteAdministrationEndpoint),
4971
- SelfManagedActiveDirectoryConfiguration: output.SelfManagedActiveDirectoryConfiguration != null
4972
- ? de_SelfManagedActiveDirectoryAttributes(output.SelfManagedActiveDirectoryConfiguration, context)
4973
- : undefined,
4974
- ThroughputCapacity: (0, smithy_client_1.expectInt32)(output.ThroughputCapacity),
4975
- WeeklyMaintenanceStartTime: (0, smithy_client_1.expectString)(output.WeeklyMaintenanceStartTime),
4976
- };
4977
- };
4978
3164
  const deserializeMetadata = (output) => ({
4979
3165
  httpStatusCode: output.statusCode,
4980
3166
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -4988,6 +3174,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
4988
3174
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4989
3175
  };
4990
3176
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3177
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(FSxServiceException_1.FSxServiceException);
4991
3178
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4992
3179
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4993
3180
  const contents = {