@aws-sdk/client-fsx 3.41.0 → 3.45.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.
Files changed (88) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist-cjs/FSx.js +150 -0
  3. package/dist-cjs/commands/CreateDataRepositoryAssociationCommand.js +36 -0
  4. package/dist-cjs/commands/CreateSnapshotCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteDataRepositoryAssociationCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteSnapshotCommand.js +36 -0
  7. package/dist-cjs/commands/DescribeDataRepositoryAssociationsCommand.js +36 -0
  8. package/dist-cjs/commands/DescribeSnapshotsCommand.js +36 -0
  9. package/dist-cjs/commands/ReleaseFileSystemNfsV3LocksCommand.js +36 -0
  10. package/dist-cjs/commands/RestoreVolumeFromSnapshotCommand.js +36 -0
  11. package/dist-cjs/commands/UpdateDataRepositoryAssociationCommand.js +36 -0
  12. package/dist-cjs/commands/UpdateSnapshotCommand.js +36 -0
  13. package/dist-cjs/commands/index.js +10 -0
  14. package/dist-cjs/endpoints.js +1 -0
  15. package/dist-cjs/models/models_0.js +386 -44
  16. package/dist-cjs/pagination/DescribeDataRepositoryAssociationsPaginator.js +35 -0
  17. package/dist-cjs/pagination/DescribeSnapshotsPaginator.js +35 -0
  18. package/dist-cjs/pagination/index.js +2 -0
  19. package/dist-cjs/protocols/Aws_json1_1.js +1745 -131
  20. package/dist-es/FSx.js +150 -0
  21. package/dist-es/commands/CreateDataRepositoryAssociationCommand.js +39 -0
  22. package/dist-es/commands/CreateSnapshotCommand.js +39 -0
  23. package/dist-es/commands/DeleteDataRepositoryAssociationCommand.js +39 -0
  24. package/dist-es/commands/DeleteSnapshotCommand.js +39 -0
  25. package/dist-es/commands/DescribeDataRepositoryAssociationsCommand.js +39 -0
  26. package/dist-es/commands/DescribeSnapshotsCommand.js +39 -0
  27. package/dist-es/commands/ReleaseFileSystemNfsV3LocksCommand.js +39 -0
  28. package/dist-es/commands/RestoreVolumeFromSnapshotCommand.js +39 -0
  29. package/dist-es/commands/UpdateDataRepositoryAssociationCommand.js +39 -0
  30. package/dist-es/commands/UpdateSnapshotCommand.js +39 -0
  31. package/dist-es/commands/index.js +10 -0
  32. package/dist-es/endpoints.js +1 -0
  33. package/dist-es/models/models_0.js +277 -28
  34. package/dist-es/pagination/DescribeDataRepositoryAssociationsPaginator.js +74 -0
  35. package/dist-es/pagination/DescribeSnapshotsPaginator.js +74 -0
  36. package/dist-es/pagination/index.js +2 -0
  37. package/dist-es/protocols/Aws_json1_1.js +1653 -74
  38. package/dist-types/FSx.d.ts +406 -146
  39. package/dist-types/FSxClient.d.ts +12 -2
  40. package/dist-types/commands/CopyBackupCommand.d.ts +12 -12
  41. package/dist-types/commands/CreateBackupCommand.d.ts +27 -25
  42. package/dist-types/commands/CreateDataRepositoryAssociationCommand.d.ts +45 -0
  43. package/dist-types/commands/CreateDataRepositoryTaskCommand.d.ts +6 -5
  44. package/dist-types/commands/CreateFileSystemCommand.d.ts +36 -16
  45. package/dist-types/commands/CreateFileSystemFromBackupCommand.d.ts +14 -14
  46. package/dist-types/commands/CreateSnapshotCommand.d.ts +62 -0
  47. package/dist-types/commands/CreateVolumeCommand.d.ts +2 -1
  48. package/dist-types/commands/DeleteBackupCommand.d.ts +4 -3
  49. package/dist-types/commands/DeleteDataRepositoryAssociationCommand.d.ts +41 -0
  50. package/dist-types/commands/DeleteFileSystemCommand.d.ts +14 -15
  51. package/dist-types/commands/DeleteSnapshotCommand.d.ts +39 -0
  52. package/dist-types/commands/DeleteVolumeCommand.d.ts +2 -4
  53. package/dist-types/commands/DescribeBackupsCommand.d.ts +17 -18
  54. package/dist-types/commands/DescribeDataRepositoryAssociationsCommand.d.ts +53 -0
  55. package/dist-types/commands/DescribeFileSystemsCommand.d.ts +9 -9
  56. package/dist-types/commands/DescribeSnapshotsCommand.d.ts +61 -0
  57. package/dist-types/commands/DescribeVolumesCommand.d.ts +2 -1
  58. package/dist-types/commands/ReleaseFileSystemNfsV3LocksCommand.d.ts +36 -0
  59. package/dist-types/commands/RestoreVolumeFromSnapshotCommand.d.ts +36 -0
  60. package/dist-types/commands/UpdateDataRepositoryAssociationCommand.d.ts +37 -0
  61. package/dist-types/commands/UpdateFileSystemCommand.d.ts +95 -22
  62. package/dist-types/commands/UpdateSnapshotCommand.d.ts +35 -0
  63. package/dist-types/commands/UpdateVolumeCommand.d.ts +1 -1
  64. package/dist-types/commands/index.d.ts +10 -0
  65. package/dist-types/models/models_0.d.ts +2705 -649
  66. package/dist-types/pagination/DescribeDataRepositoryAssociationsPaginator.d.ts +4 -0
  67. package/dist-types/pagination/DescribeSnapshotsPaginator.d.ts +4 -0
  68. package/dist-types/pagination/index.d.ts +2 -0
  69. package/dist-types/protocols/Aws_json1_1.d.ts +30 -0
  70. package/dist-types/ts3.4/FSx.d.ts +50 -0
  71. package/dist-types/ts3.4/FSxClient.d.ts +12 -2
  72. package/dist-types/ts3.4/commands/CreateDataRepositoryAssociationCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/CreateSnapshotCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/DeleteDataRepositoryAssociationCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/DeleteSnapshotCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/DescribeDataRepositoryAssociationsCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/DescribeSnapshotsCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/ReleaseFileSystemNfsV3LocksCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/RestoreVolumeFromSnapshotCommand.d.ts +17 -0
  80. package/dist-types/ts3.4/commands/UpdateDataRepositoryAssociationCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/UpdateSnapshotCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  83. package/dist-types/ts3.4/models/models_0.d.ts +790 -81
  84. package/dist-types/ts3.4/pagination/DescribeDataRepositoryAssociationsPaginator.d.ts +4 -0
  85. package/dist-types/ts3.4/pagination/DescribeSnapshotsPaginator.d.ts +4 -0
  86. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  87. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +30 -0
  88. package/package.json +5 -5
@@ -46,6 +46,17 @@ export var serializeAws_json1_1CreateBackupCommand = function (input, context) {
46
46
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
47
47
  });
48
48
  }); };
49
+ export var serializeAws_json1_1CreateDataRepositoryAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
50
+ var headers, body;
51
+ return __generator(this, function (_a) {
52
+ headers = {
53
+ "content-type": "application/x-amz-json-1.1",
54
+ "x-amz-target": "AWSSimbaAPIService_v20180301.CreateDataRepositoryAssociation",
55
+ };
56
+ body = JSON.stringify(serializeAws_json1_1CreateDataRepositoryAssociationRequest(input, context));
57
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
58
+ });
59
+ }); };
49
60
  export var serializeAws_json1_1CreateDataRepositoryTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
50
61
  var headers, body;
51
62
  return __generator(this, function (_a) {
@@ -79,6 +90,17 @@ export var serializeAws_json1_1CreateFileSystemFromBackupCommand = function (inp
79
90
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
80
91
  });
81
92
  }); };
93
+ export var serializeAws_json1_1CreateSnapshotCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
94
+ var headers, body;
95
+ return __generator(this, function (_a) {
96
+ headers = {
97
+ "content-type": "application/x-amz-json-1.1",
98
+ "x-amz-target": "AWSSimbaAPIService_v20180301.CreateSnapshot",
99
+ };
100
+ body = JSON.stringify(serializeAws_json1_1CreateSnapshotRequest(input, context));
101
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
102
+ });
103
+ }); };
82
104
  export var serializeAws_json1_1CreateStorageVirtualMachineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
83
105
  var headers, body;
84
106
  return __generator(this, function (_a) {
@@ -123,6 +145,17 @@ export var serializeAws_json1_1DeleteBackupCommand = function (input, context) {
123
145
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
124
146
  });
125
147
  }); };
148
+ export var serializeAws_json1_1DeleteDataRepositoryAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
149
+ var headers, body;
150
+ return __generator(this, function (_a) {
151
+ headers = {
152
+ "content-type": "application/x-amz-json-1.1",
153
+ "x-amz-target": "AWSSimbaAPIService_v20180301.DeleteDataRepositoryAssociation",
154
+ };
155
+ body = JSON.stringify(serializeAws_json1_1DeleteDataRepositoryAssociationRequest(input, context));
156
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
157
+ });
158
+ }); };
126
159
  export var serializeAws_json1_1DeleteFileSystemCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
127
160
  var headers, body;
128
161
  return __generator(this, function (_a) {
@@ -134,6 +167,17 @@ export var serializeAws_json1_1DeleteFileSystemCommand = function (input, contex
134
167
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
135
168
  });
136
169
  }); };
170
+ export var serializeAws_json1_1DeleteSnapshotCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
171
+ var headers, body;
172
+ return __generator(this, function (_a) {
173
+ headers = {
174
+ "content-type": "application/x-amz-json-1.1",
175
+ "x-amz-target": "AWSSimbaAPIService_v20180301.DeleteSnapshot",
176
+ };
177
+ body = JSON.stringify(serializeAws_json1_1DeleteSnapshotRequest(input, context));
178
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
179
+ });
180
+ }); };
137
181
  export var serializeAws_json1_1DeleteStorageVirtualMachineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
138
182
  var headers, body;
139
183
  return __generator(this, function (_a) {
@@ -167,6 +211,17 @@ export var serializeAws_json1_1DescribeBackupsCommand = function (input, context
167
211
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
168
212
  });
169
213
  }); };
214
+ export var serializeAws_json1_1DescribeDataRepositoryAssociationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
215
+ var headers, body;
216
+ return __generator(this, function (_a) {
217
+ headers = {
218
+ "content-type": "application/x-amz-json-1.1",
219
+ "x-amz-target": "AWSSimbaAPIService_v20180301.DescribeDataRepositoryAssociations",
220
+ };
221
+ body = JSON.stringify(serializeAws_json1_1DescribeDataRepositoryAssociationsRequest(input, context));
222
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
223
+ });
224
+ }); };
170
225
  export var serializeAws_json1_1DescribeDataRepositoryTasksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
171
226
  var headers, body;
172
227
  return __generator(this, function (_a) {
@@ -200,6 +255,17 @@ export var serializeAws_json1_1DescribeFileSystemsCommand = function (input, con
200
255
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
201
256
  });
202
257
  }); };
258
+ export var serializeAws_json1_1DescribeSnapshotsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
259
+ var headers, body;
260
+ return __generator(this, function (_a) {
261
+ headers = {
262
+ "content-type": "application/x-amz-json-1.1",
263
+ "x-amz-target": "AWSSimbaAPIService_v20180301.DescribeSnapshots",
264
+ };
265
+ body = JSON.stringify(serializeAws_json1_1DescribeSnapshotsRequest(input, context));
266
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
267
+ });
268
+ }); };
203
269
  export var serializeAws_json1_1DescribeStorageVirtualMachinesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
204
270
  var headers, body;
205
271
  return __generator(this, function (_a) {
@@ -244,6 +310,28 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
244
310
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
245
311
  });
246
312
  }); };
313
+ export var serializeAws_json1_1ReleaseFileSystemNfsV3LocksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
314
+ var headers, body;
315
+ return __generator(this, function (_a) {
316
+ headers = {
317
+ "content-type": "application/x-amz-json-1.1",
318
+ "x-amz-target": "AWSSimbaAPIService_v20180301.ReleaseFileSystemNfsV3Locks",
319
+ };
320
+ body = JSON.stringify(serializeAws_json1_1ReleaseFileSystemNfsV3LocksRequest(input, context));
321
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
322
+ });
323
+ }); };
324
+ export var serializeAws_json1_1RestoreVolumeFromSnapshotCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
325
+ var headers, body;
326
+ return __generator(this, function (_a) {
327
+ headers = {
328
+ "content-type": "application/x-amz-json-1.1",
329
+ "x-amz-target": "AWSSimbaAPIService_v20180301.RestoreVolumeFromSnapshot",
330
+ };
331
+ body = JSON.stringify(serializeAws_json1_1RestoreVolumeFromSnapshotRequest(input, context));
332
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
333
+ });
334
+ }); };
247
335
  export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
248
336
  var headers, body;
249
337
  return __generator(this, function (_a) {
@@ -266,6 +354,17 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
266
354
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
267
355
  });
268
356
  }); };
357
+ export var serializeAws_json1_1UpdateDataRepositoryAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
358
+ var headers, body;
359
+ return __generator(this, function (_a) {
360
+ headers = {
361
+ "content-type": "application/x-amz-json-1.1",
362
+ "x-amz-target": "AWSSimbaAPIService_v20180301.UpdateDataRepositoryAssociation",
363
+ };
364
+ body = JSON.stringify(serializeAws_json1_1UpdateDataRepositoryAssociationRequest(input, context));
365
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
366
+ });
367
+ }); };
269
368
  export var serializeAws_json1_1UpdateFileSystemCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
270
369
  var headers, body;
271
370
  return __generator(this, function (_a) {
@@ -277,6 +376,17 @@ export var serializeAws_json1_1UpdateFileSystemCommand = function (input, contex
277
376
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
278
377
  });
279
378
  }); };
379
+ export var serializeAws_json1_1UpdateSnapshotCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
380
+ var headers, body;
381
+ return __generator(this, function (_a) {
382
+ headers = {
383
+ "content-type": "application/x-amz-json-1.1",
384
+ "x-amz-target": "AWSSimbaAPIService_v20180301.UpdateSnapshot",
385
+ };
386
+ body = JSON.stringify(serializeAws_json1_1UpdateSnapshotRequest(input, context));
387
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
388
+ });
389
+ }); };
280
390
  export var serializeAws_json1_1UpdateStorageVirtualMachineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
281
391
  var headers, body;
282
392
  return __generator(this, function (_a) {
@@ -707,6 +817,102 @@ var deserializeAws_json1_1CreateBackupCommandError = function (output, context)
707
817
  }
708
818
  });
709
819
  }); };
820
+ export var deserializeAws_json1_1CreateDataRepositoryAssociationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
821
+ var data, contents, response;
822
+ return __generator(this, function (_a) {
823
+ switch (_a.label) {
824
+ case 0:
825
+ if (output.statusCode >= 300) {
826
+ return [2, deserializeAws_json1_1CreateDataRepositoryAssociationCommandError(output, context)];
827
+ }
828
+ return [4, parseBody(output.body, context)];
829
+ case 1:
830
+ data = _a.sent();
831
+ contents = {};
832
+ contents = deserializeAws_json1_1CreateDataRepositoryAssociationResponse(data, context);
833
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
834
+ return [2, Promise.resolve(response)];
835
+ }
836
+ });
837
+ }); };
838
+ var deserializeAws_json1_1CreateDataRepositoryAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
839
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
840
+ var _j;
841
+ return __generator(this, function (_k) {
842
+ switch (_k.label) {
843
+ case 0:
844
+ _a = [__assign({}, output)];
845
+ _j = {};
846
+ return [4, parseBody(output.body, context)];
847
+ case 1:
848
+ parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
849
+ errorCode = "UnknownError";
850
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
851
+ _b = errorCode;
852
+ switch (_b) {
853
+ case "BadRequest": return [3, 2];
854
+ case "com.amazonaws.fsx#BadRequest": return [3, 2];
855
+ case "FileSystemNotFound": return [3, 4];
856
+ case "com.amazonaws.fsx#FileSystemNotFound": return [3, 4];
857
+ case "IncompatibleParameterError": return [3, 6];
858
+ case "com.amazonaws.fsx#IncompatibleParameterError": return [3, 6];
859
+ case "InternalServerError": return [3, 8];
860
+ case "com.amazonaws.fsx#InternalServerError": return [3, 8];
861
+ case "ServiceLimitExceeded": return [3, 10];
862
+ case "com.amazonaws.fsx#ServiceLimitExceeded": return [3, 10];
863
+ case "UnsupportedOperation": return [3, 12];
864
+ case "com.amazonaws.fsx#UnsupportedOperation": return [3, 12];
865
+ }
866
+ return [3, 14];
867
+ case 2:
868
+ _c = [{}];
869
+ return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
870
+ case 3:
871
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
872
+ return [3, 15];
873
+ case 4:
874
+ _d = [{}];
875
+ return [4, deserializeAws_json1_1FileSystemNotFoundResponse(parsedOutput, context)];
876
+ case 5:
877
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
878
+ return [3, 15];
879
+ case 6:
880
+ _e = [{}];
881
+ return [4, deserializeAws_json1_1IncompatibleParameterErrorResponse(parsedOutput, context)];
882
+ case 7:
883
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
884
+ return [3, 15];
885
+ case 8:
886
+ _f = [{}];
887
+ return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
888
+ case 9:
889
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
890
+ return [3, 15];
891
+ case 10:
892
+ _g = [{}];
893
+ return [4, deserializeAws_json1_1ServiceLimitExceededResponse(parsedOutput, context)];
894
+ case 11:
895
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
896
+ return [3, 15];
897
+ case 12:
898
+ _h = [{}];
899
+ return [4, deserializeAws_json1_1UnsupportedOperationResponse(parsedOutput, context)];
900
+ case 13:
901
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
902
+ return [3, 15];
903
+ case 14:
904
+ parsedBody = parsedOutput.body;
905
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
906
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
907
+ _k.label = 15;
908
+ case 15:
909
+ message = response.message || response.Message || errorCode;
910
+ response.message = message;
911
+ delete response.Message;
912
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
913
+ }
914
+ });
915
+ }); };
710
916
  export var deserializeAws_json1_1CreateDataRepositoryTaskCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
711
917
  var data, contents, response;
712
918
  return __generator(this, function (_a) {
@@ -1059,6 +1265,86 @@ var deserializeAws_json1_1CreateFileSystemFromBackupCommandError = function (out
1059
1265
  }
1060
1266
  });
1061
1267
  }); };
1268
+ export var deserializeAws_json1_1CreateSnapshotCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1269
+ var data, contents, response;
1270
+ return __generator(this, function (_a) {
1271
+ switch (_a.label) {
1272
+ case 0:
1273
+ if (output.statusCode >= 300) {
1274
+ return [2, deserializeAws_json1_1CreateSnapshotCommandError(output, context)];
1275
+ }
1276
+ return [4, parseBody(output.body, context)];
1277
+ case 1:
1278
+ data = _a.sent();
1279
+ contents = {};
1280
+ contents = deserializeAws_json1_1CreateSnapshotResponse(data, context);
1281
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1282
+ return [2, Promise.resolve(response)];
1283
+ }
1284
+ });
1285
+ }); };
1286
+ var deserializeAws_json1_1CreateSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1287
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
1288
+ var _g;
1289
+ return __generator(this, function (_h) {
1290
+ switch (_h.label) {
1291
+ case 0:
1292
+ _a = [__assign({}, output)];
1293
+ _g = {};
1294
+ return [4, parseBody(output.body, context)];
1295
+ case 1:
1296
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1297
+ errorCode = "UnknownError";
1298
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1299
+ _b = errorCode;
1300
+ switch (_b) {
1301
+ case "BadRequest": return [3, 2];
1302
+ case "com.amazonaws.fsx#BadRequest": return [3, 2];
1303
+ case "InternalServerError": return [3, 4];
1304
+ case "com.amazonaws.fsx#InternalServerError": return [3, 4];
1305
+ case "ServiceLimitExceeded": return [3, 6];
1306
+ case "com.amazonaws.fsx#ServiceLimitExceeded": return [3, 6];
1307
+ case "VolumeNotFound": return [3, 8];
1308
+ case "com.amazonaws.fsx#VolumeNotFound": return [3, 8];
1309
+ }
1310
+ return [3, 10];
1311
+ case 2:
1312
+ _c = [{}];
1313
+ return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
1314
+ case 3:
1315
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1316
+ return [3, 11];
1317
+ case 4:
1318
+ _d = [{}];
1319
+ return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
1320
+ case 5:
1321
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1322
+ return [3, 11];
1323
+ case 6:
1324
+ _e = [{}];
1325
+ return [4, deserializeAws_json1_1ServiceLimitExceededResponse(parsedOutput, context)];
1326
+ case 7:
1327
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1328
+ return [3, 11];
1329
+ case 8:
1330
+ _f = [{}];
1331
+ return [4, deserializeAws_json1_1VolumeNotFoundResponse(parsedOutput, context)];
1332
+ case 9:
1333
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1334
+ return [3, 11];
1335
+ case 10:
1336
+ parsedBody = parsedOutput.body;
1337
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1338
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1339
+ _h.label = 11;
1340
+ case 11:
1341
+ message = response.message || response.Message || errorCode;
1342
+ response.message = message;
1343
+ delete response.Message;
1344
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1345
+ }
1346
+ });
1347
+ }); };
1062
1348
  export var deserializeAws_json1_1CreateStorageVirtualMachineCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1063
1349
  var data, contents, response;
1064
1350
  return __generator(this, function (_a) {
@@ -1491,25 +1777,25 @@ var deserializeAws_json1_1DeleteBackupCommandError = function (output, context)
1491
1777
  }
1492
1778
  });
1493
1779
  }); };
1494
- export var deserializeAws_json1_1DeleteFileSystemCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1780
+ export var deserializeAws_json1_1DeleteDataRepositoryAssociationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1495
1781
  var data, contents, response;
1496
1782
  return __generator(this, function (_a) {
1497
1783
  switch (_a.label) {
1498
1784
  case 0:
1499
1785
  if (output.statusCode >= 300) {
1500
- return [2, deserializeAws_json1_1DeleteFileSystemCommandError(output, context)];
1786
+ return [2, deserializeAws_json1_1DeleteDataRepositoryAssociationCommandError(output, context)];
1501
1787
  }
1502
1788
  return [4, parseBody(output.body, context)];
1503
1789
  case 1:
1504
1790
  data = _a.sent();
1505
1791
  contents = {};
1506
- contents = deserializeAws_json1_1DeleteFileSystemResponse(data, context);
1792
+ contents = deserializeAws_json1_1DeleteDataRepositoryAssociationResponse(data, context);
1507
1793
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1508
1794
  return [2, Promise.resolve(response)];
1509
1795
  }
1510
1796
  });
1511
1797
  }); };
1512
- var deserializeAws_json1_1DeleteFileSystemCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1798
+ var deserializeAws_json1_1DeleteDataRepositoryAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1513
1799
  var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
1514
1800
  var _h;
1515
1801
  return __generator(this, function (_j) {
@@ -1526,8 +1812,8 @@ var deserializeAws_json1_1DeleteFileSystemCommandError = function (output, conte
1526
1812
  switch (_b) {
1527
1813
  case "BadRequest": return [3, 2];
1528
1814
  case "com.amazonaws.fsx#BadRequest": return [3, 2];
1529
- case "FileSystemNotFound": return [3, 4];
1530
- case "com.amazonaws.fsx#FileSystemNotFound": return [3, 4];
1815
+ case "DataRepositoryAssociationNotFound": return [3, 4];
1816
+ case "com.amazonaws.fsx#DataRepositoryAssociationNotFound": return [3, 4];
1531
1817
  case "IncompatibleParameterError": return [3, 6];
1532
1818
  case "com.amazonaws.fsx#IncompatibleParameterError": return [3, 6];
1533
1819
  case "InternalServerError": return [3, 8];
@@ -1544,7 +1830,7 @@ var deserializeAws_json1_1DeleteFileSystemCommandError = function (output, conte
1544
1830
  return [3, 13];
1545
1831
  case 4:
1546
1832
  _d = [{}];
1547
- return [4, deserializeAws_json1_1FileSystemNotFoundResponse(parsedOutput, context)];
1833
+ return [4, deserializeAws_json1_1DataRepositoryAssociationNotFoundResponse(parsedOutput, context)];
1548
1834
  case 5:
1549
1835
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1550
1836
  return [3, 13];
@@ -1579,46 +1865,206 @@ var deserializeAws_json1_1DeleteFileSystemCommandError = function (output, conte
1579
1865
  }
1580
1866
  });
1581
1867
  }); };
1582
- export var deserializeAws_json1_1DeleteStorageVirtualMachineCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1868
+ export var deserializeAws_json1_1DeleteFileSystemCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1583
1869
  var data, contents, response;
1584
1870
  return __generator(this, function (_a) {
1585
1871
  switch (_a.label) {
1586
1872
  case 0:
1587
1873
  if (output.statusCode >= 300) {
1588
- return [2, deserializeAws_json1_1DeleteStorageVirtualMachineCommandError(output, context)];
1874
+ return [2, deserializeAws_json1_1DeleteFileSystemCommandError(output, context)];
1589
1875
  }
1590
1876
  return [4, parseBody(output.body, context)];
1591
1877
  case 1:
1592
1878
  data = _a.sent();
1593
1879
  contents = {};
1594
- contents = deserializeAws_json1_1DeleteStorageVirtualMachineResponse(data, context);
1880
+ contents = deserializeAws_json1_1DeleteFileSystemResponse(data, context);
1595
1881
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1596
1882
  return [2, Promise.resolve(response)];
1597
1883
  }
1598
1884
  });
1599
1885
  }); };
1600
- var deserializeAws_json1_1DeleteStorageVirtualMachineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1601
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
1602
- var _g;
1603
- return __generator(this, function (_h) {
1604
- switch (_h.label) {
1886
+ var deserializeAws_json1_1DeleteFileSystemCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1887
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
1888
+ var _h;
1889
+ return __generator(this, function (_j) {
1890
+ switch (_j.label) {
1605
1891
  case 0:
1606
1892
  _a = [__assign({}, output)];
1607
- _g = {};
1893
+ _h = {};
1608
1894
  return [4, parseBody(output.body, context)];
1609
1895
  case 1:
1610
- parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1896
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1611
1897
  errorCode = "UnknownError";
1612
1898
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1613
1899
  _b = errorCode;
1614
1900
  switch (_b) {
1615
1901
  case "BadRequest": return [3, 2];
1616
1902
  case "com.amazonaws.fsx#BadRequest": return [3, 2];
1617
- case "IncompatibleParameterError": return [3, 4];
1618
- case "com.amazonaws.fsx#IncompatibleParameterError": return [3, 4];
1619
- case "InternalServerError": return [3, 6];
1620
- case "com.amazonaws.fsx#InternalServerError": return [3, 6];
1621
- case "StorageVirtualMachineNotFound": return [3, 8];
1903
+ case "FileSystemNotFound": return [3, 4];
1904
+ case "com.amazonaws.fsx#FileSystemNotFound": return [3, 4];
1905
+ case "IncompatibleParameterError": return [3, 6];
1906
+ case "com.amazonaws.fsx#IncompatibleParameterError": return [3, 6];
1907
+ case "InternalServerError": return [3, 8];
1908
+ case "com.amazonaws.fsx#InternalServerError": return [3, 8];
1909
+ case "ServiceLimitExceeded": return [3, 10];
1910
+ case "com.amazonaws.fsx#ServiceLimitExceeded": return [3, 10];
1911
+ }
1912
+ return [3, 12];
1913
+ case 2:
1914
+ _c = [{}];
1915
+ return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
1916
+ case 3:
1917
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1918
+ return [3, 13];
1919
+ case 4:
1920
+ _d = [{}];
1921
+ return [4, deserializeAws_json1_1FileSystemNotFoundResponse(parsedOutput, context)];
1922
+ case 5:
1923
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1924
+ return [3, 13];
1925
+ case 6:
1926
+ _e = [{}];
1927
+ return [4, deserializeAws_json1_1IncompatibleParameterErrorResponse(parsedOutput, context)];
1928
+ case 7:
1929
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1930
+ return [3, 13];
1931
+ case 8:
1932
+ _f = [{}];
1933
+ return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
1934
+ case 9:
1935
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1936
+ return [3, 13];
1937
+ case 10:
1938
+ _g = [{}];
1939
+ return [4, deserializeAws_json1_1ServiceLimitExceededResponse(parsedOutput, context)];
1940
+ case 11:
1941
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1942
+ return [3, 13];
1943
+ case 12:
1944
+ parsedBody = parsedOutput.body;
1945
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1946
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1947
+ _j.label = 13;
1948
+ case 13:
1949
+ message = response.message || response.Message || errorCode;
1950
+ response.message = message;
1951
+ delete response.Message;
1952
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1953
+ }
1954
+ });
1955
+ }); };
1956
+ export var deserializeAws_json1_1DeleteSnapshotCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1957
+ var data, contents, response;
1958
+ return __generator(this, function (_a) {
1959
+ switch (_a.label) {
1960
+ case 0:
1961
+ if (output.statusCode >= 300) {
1962
+ return [2, deserializeAws_json1_1DeleteSnapshotCommandError(output, context)];
1963
+ }
1964
+ return [4, parseBody(output.body, context)];
1965
+ case 1:
1966
+ data = _a.sent();
1967
+ contents = {};
1968
+ contents = deserializeAws_json1_1DeleteSnapshotResponse(data, context);
1969
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1970
+ return [2, Promise.resolve(response)];
1971
+ }
1972
+ });
1973
+ }); };
1974
+ var deserializeAws_json1_1DeleteSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1975
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
1976
+ var _f;
1977
+ return __generator(this, function (_g) {
1978
+ switch (_g.label) {
1979
+ case 0:
1980
+ _a = [__assign({}, output)];
1981
+ _f = {};
1982
+ return [4, parseBody(output.body, context)];
1983
+ case 1:
1984
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1985
+ errorCode = "UnknownError";
1986
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1987
+ _b = errorCode;
1988
+ switch (_b) {
1989
+ case "BadRequest": return [3, 2];
1990
+ case "com.amazonaws.fsx#BadRequest": return [3, 2];
1991
+ case "InternalServerError": return [3, 4];
1992
+ case "com.amazonaws.fsx#InternalServerError": return [3, 4];
1993
+ case "SnapshotNotFound": return [3, 6];
1994
+ case "com.amazonaws.fsx#SnapshotNotFound": return [3, 6];
1995
+ }
1996
+ return [3, 8];
1997
+ case 2:
1998
+ _c = [{}];
1999
+ return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
2000
+ case 3:
2001
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2002
+ return [3, 9];
2003
+ case 4:
2004
+ _d = [{}];
2005
+ return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
2006
+ case 5:
2007
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2008
+ return [3, 9];
2009
+ case 6:
2010
+ _e = [{}];
2011
+ return [4, deserializeAws_json1_1SnapshotNotFoundResponse(parsedOutput, context)];
2012
+ case 7:
2013
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2014
+ return [3, 9];
2015
+ case 8:
2016
+ parsedBody = parsedOutput.body;
2017
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2018
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2019
+ _g.label = 9;
2020
+ case 9:
2021
+ message = response.message || response.Message || errorCode;
2022
+ response.message = message;
2023
+ delete response.Message;
2024
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2025
+ }
2026
+ });
2027
+ }); };
2028
+ export var deserializeAws_json1_1DeleteStorageVirtualMachineCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2029
+ var data, contents, response;
2030
+ return __generator(this, function (_a) {
2031
+ switch (_a.label) {
2032
+ case 0:
2033
+ if (output.statusCode >= 300) {
2034
+ return [2, deserializeAws_json1_1DeleteStorageVirtualMachineCommandError(output, context)];
2035
+ }
2036
+ return [4, parseBody(output.body, context)];
2037
+ case 1:
2038
+ data = _a.sent();
2039
+ contents = {};
2040
+ contents = deserializeAws_json1_1DeleteStorageVirtualMachineResponse(data, context);
2041
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2042
+ return [2, Promise.resolve(response)];
2043
+ }
2044
+ });
2045
+ }); };
2046
+ var deserializeAws_json1_1DeleteStorageVirtualMachineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2047
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
2048
+ var _g;
2049
+ return __generator(this, function (_h) {
2050
+ switch (_h.label) {
2051
+ case 0:
2052
+ _a = [__assign({}, output)];
2053
+ _g = {};
2054
+ return [4, parseBody(output.body, context)];
2055
+ case 1:
2056
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2057
+ errorCode = "UnknownError";
2058
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2059
+ _b = errorCode;
2060
+ switch (_b) {
2061
+ case "BadRequest": return [3, 2];
2062
+ case "com.amazonaws.fsx#BadRequest": return [3, 2];
2063
+ case "IncompatibleParameterError": return [3, 4];
2064
+ case "com.amazonaws.fsx#IncompatibleParameterError": return [3, 4];
2065
+ case "InternalServerError": return [3, 6];
2066
+ case "com.amazonaws.fsx#InternalServerError": return [3, 6];
2067
+ case "StorageVirtualMachineNotFound": return [3, 8];
1622
2068
  case "com.amazonaws.fsx#StorageVirtualMachineNotFound": return [3, 8];
1623
2069
  }
1624
2070
  return [3, 10];
@@ -1827,6 +2273,94 @@ var deserializeAws_json1_1DescribeBackupsCommandError = function (output, contex
1827
2273
  }
1828
2274
  });
1829
2275
  }); };
2276
+ export var deserializeAws_json1_1DescribeDataRepositoryAssociationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2277
+ var data, contents, response;
2278
+ return __generator(this, function (_a) {
2279
+ switch (_a.label) {
2280
+ case 0:
2281
+ if (output.statusCode >= 300) {
2282
+ return [2, deserializeAws_json1_1DescribeDataRepositoryAssociationsCommandError(output, context)];
2283
+ }
2284
+ return [4, parseBody(output.body, context)];
2285
+ case 1:
2286
+ data = _a.sent();
2287
+ contents = {};
2288
+ contents = deserializeAws_json1_1DescribeDataRepositoryAssociationsResponse(data, context);
2289
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2290
+ return [2, Promise.resolve(response)];
2291
+ }
2292
+ });
2293
+ }); };
2294
+ var deserializeAws_json1_1DescribeDataRepositoryAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2295
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
2296
+ var _h;
2297
+ return __generator(this, function (_j) {
2298
+ switch (_j.label) {
2299
+ case 0:
2300
+ _a = [__assign({}, output)];
2301
+ _h = {};
2302
+ return [4, parseBody(output.body, context)];
2303
+ case 1:
2304
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2305
+ errorCode = "UnknownError";
2306
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2307
+ _b = errorCode;
2308
+ switch (_b) {
2309
+ case "BadRequest": return [3, 2];
2310
+ case "com.amazonaws.fsx#BadRequest": return [3, 2];
2311
+ case "DataRepositoryAssociationNotFound": return [3, 4];
2312
+ case "com.amazonaws.fsx#DataRepositoryAssociationNotFound": return [3, 4];
2313
+ case "FileSystemNotFound": return [3, 6];
2314
+ case "com.amazonaws.fsx#FileSystemNotFound": return [3, 6];
2315
+ case "InternalServerError": return [3, 8];
2316
+ case "com.amazonaws.fsx#InternalServerError": return [3, 8];
2317
+ case "InvalidDataRepositoryType": return [3, 10];
2318
+ case "com.amazonaws.fsx#InvalidDataRepositoryType": return [3, 10];
2319
+ }
2320
+ return [3, 12];
2321
+ case 2:
2322
+ _c = [{}];
2323
+ return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
2324
+ case 3:
2325
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2326
+ return [3, 13];
2327
+ case 4:
2328
+ _d = [{}];
2329
+ return [4, deserializeAws_json1_1DataRepositoryAssociationNotFoundResponse(parsedOutput, context)];
2330
+ case 5:
2331
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2332
+ return [3, 13];
2333
+ case 6:
2334
+ _e = [{}];
2335
+ return [4, deserializeAws_json1_1FileSystemNotFoundResponse(parsedOutput, context)];
2336
+ case 7:
2337
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2338
+ return [3, 13];
2339
+ case 8:
2340
+ _f = [{}];
2341
+ return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
2342
+ case 9:
2343
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2344
+ return [3, 13];
2345
+ case 10:
2346
+ _g = [{}];
2347
+ return [4, deserializeAws_json1_1InvalidDataRepositoryTypeResponse(parsedOutput, context)];
2348
+ case 11:
2349
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2350
+ return [3, 13];
2351
+ case 12:
2352
+ parsedBody = parsedOutput.body;
2353
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2354
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2355
+ _j.label = 13;
2356
+ case 13:
2357
+ message = response.message || response.Message || errorCode;
2358
+ response.message = message;
2359
+ delete response.Message;
2360
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2361
+ }
2362
+ });
2363
+ }); };
1830
2364
  export var deserializeAws_json1_1DescribeDataRepositoryTasksCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1831
2365
  var data, contents, response;
1832
2366
  return __generator(this, function (_a) {
@@ -1898,8 +2432,80 @@ var deserializeAws_json1_1DescribeDataRepositoryTasksCommandError = function (ou
1898
2432
  parsedBody = parsedOutput.body;
1899
2433
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
1900
2434
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1901
- _h.label = 11;
1902
- case 11:
2435
+ _h.label = 11;
2436
+ case 11:
2437
+ message = response.message || response.Message || errorCode;
2438
+ response.message = message;
2439
+ delete response.Message;
2440
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2441
+ }
2442
+ });
2443
+ }); };
2444
+ export var deserializeAws_json1_1DescribeFileSystemAliasesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2445
+ var data, contents, response;
2446
+ return __generator(this, function (_a) {
2447
+ switch (_a.label) {
2448
+ case 0:
2449
+ if (output.statusCode >= 300) {
2450
+ return [2, deserializeAws_json1_1DescribeFileSystemAliasesCommandError(output, context)];
2451
+ }
2452
+ return [4, parseBody(output.body, context)];
2453
+ case 1:
2454
+ data = _a.sent();
2455
+ contents = {};
2456
+ contents = deserializeAws_json1_1DescribeFileSystemAliasesResponse(data, context);
2457
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2458
+ return [2, Promise.resolve(response)];
2459
+ }
2460
+ });
2461
+ }); };
2462
+ var deserializeAws_json1_1DescribeFileSystemAliasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2463
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
2464
+ var _f;
2465
+ return __generator(this, function (_g) {
2466
+ switch (_g.label) {
2467
+ case 0:
2468
+ _a = [__assign({}, output)];
2469
+ _f = {};
2470
+ return [4, parseBody(output.body, context)];
2471
+ case 1:
2472
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2473
+ errorCode = "UnknownError";
2474
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2475
+ _b = errorCode;
2476
+ switch (_b) {
2477
+ case "BadRequest": return [3, 2];
2478
+ case "com.amazonaws.fsx#BadRequest": return [3, 2];
2479
+ case "FileSystemNotFound": return [3, 4];
2480
+ case "com.amazonaws.fsx#FileSystemNotFound": return [3, 4];
2481
+ case "InternalServerError": return [3, 6];
2482
+ case "com.amazonaws.fsx#InternalServerError": return [3, 6];
2483
+ }
2484
+ return [3, 8];
2485
+ case 2:
2486
+ _c = [{}];
2487
+ return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
2488
+ case 3:
2489
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2490
+ return [3, 9];
2491
+ case 4:
2492
+ _d = [{}];
2493
+ return [4, deserializeAws_json1_1FileSystemNotFoundResponse(parsedOutput, context)];
2494
+ case 5:
2495
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2496
+ return [3, 9];
2497
+ case 6:
2498
+ _e = [{}];
2499
+ return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
2500
+ case 7:
2501
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2502
+ return [3, 9];
2503
+ case 8:
2504
+ parsedBody = parsedOutput.body;
2505
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2506
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2507
+ _g.label = 9;
2508
+ case 9:
1903
2509
  message = response.message || response.Message || errorCode;
1904
2510
  response.message = message;
1905
2511
  delete response.Message;
@@ -1907,25 +2513,25 @@ var deserializeAws_json1_1DescribeDataRepositoryTasksCommandError = function (ou
1907
2513
  }
1908
2514
  });
1909
2515
  }); };
1910
- export var deserializeAws_json1_1DescribeFileSystemAliasesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2516
+ export var deserializeAws_json1_1DescribeFileSystemsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1911
2517
  var data, contents, response;
1912
2518
  return __generator(this, function (_a) {
1913
2519
  switch (_a.label) {
1914
2520
  case 0:
1915
2521
  if (output.statusCode >= 300) {
1916
- return [2, deserializeAws_json1_1DescribeFileSystemAliasesCommandError(output, context)];
2522
+ return [2, deserializeAws_json1_1DescribeFileSystemsCommandError(output, context)];
1917
2523
  }
1918
2524
  return [4, parseBody(output.body, context)];
1919
2525
  case 1:
1920
2526
  data = _a.sent();
1921
2527
  contents = {};
1922
- contents = deserializeAws_json1_1DescribeFileSystemAliasesResponse(data, context);
2528
+ contents = deserializeAws_json1_1DescribeFileSystemsResponse(data, context);
1923
2529
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1924
2530
  return [2, Promise.resolve(response)];
1925
2531
  }
1926
2532
  });
1927
2533
  }); };
1928
- var deserializeAws_json1_1DescribeFileSystemAliasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2534
+ var deserializeAws_json1_1DescribeFileSystemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1929
2535
  var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
1930
2536
  var _f;
1931
2537
  return __generator(this, function (_g) {
@@ -1979,25 +2585,25 @@ var deserializeAws_json1_1DescribeFileSystemAliasesCommandError = function (outp
1979
2585
  }
1980
2586
  });
1981
2587
  }); };
1982
- export var deserializeAws_json1_1DescribeFileSystemsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2588
+ export var deserializeAws_json1_1DescribeSnapshotsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1983
2589
  var data, contents, response;
1984
2590
  return __generator(this, function (_a) {
1985
2591
  switch (_a.label) {
1986
2592
  case 0:
1987
2593
  if (output.statusCode >= 300) {
1988
- return [2, deserializeAws_json1_1DescribeFileSystemsCommandError(output, context)];
2594
+ return [2, deserializeAws_json1_1DescribeSnapshotsCommandError(output, context)];
1989
2595
  }
1990
2596
  return [4, parseBody(output.body, context)];
1991
2597
  case 1:
1992
2598
  data = _a.sent();
1993
2599
  contents = {};
1994
- contents = deserializeAws_json1_1DescribeFileSystemsResponse(data, context);
2600
+ contents = deserializeAws_json1_1DescribeSnapshotsResponse(data, context);
1995
2601
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1996
2602
  return [2, Promise.resolve(response)];
1997
2603
  }
1998
2604
  });
1999
2605
  }); };
2000
- var deserializeAws_json1_1DescribeFileSystemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2606
+ var deserializeAws_json1_1DescribeSnapshotsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2001
2607
  var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
2002
2608
  var _f;
2003
2609
  return __generator(this, function (_g) {
@@ -2014,10 +2620,10 @@ var deserializeAws_json1_1DescribeFileSystemsCommandError = function (output, co
2014
2620
  switch (_b) {
2015
2621
  case "BadRequest": return [3, 2];
2016
2622
  case "com.amazonaws.fsx#BadRequest": return [3, 2];
2017
- case "FileSystemNotFound": return [3, 4];
2018
- case "com.amazonaws.fsx#FileSystemNotFound": return [3, 4];
2019
- case "InternalServerError": return [3, 6];
2020
- case "com.amazonaws.fsx#InternalServerError": return [3, 6];
2623
+ case "InternalServerError": return [3, 4];
2624
+ case "com.amazonaws.fsx#InternalServerError": return [3, 4];
2625
+ case "SnapshotNotFound": return [3, 6];
2626
+ case "com.amazonaws.fsx#SnapshotNotFound": return [3, 6];
2021
2627
  }
2022
2628
  return [3, 8];
2023
2629
  case 2:
@@ -2028,13 +2634,13 @@ var deserializeAws_json1_1DescribeFileSystemsCommandError = function (output, co
2028
2634
  return [3, 9];
2029
2635
  case 4:
2030
2636
  _d = [{}];
2031
- return [4, deserializeAws_json1_1FileSystemNotFoundResponse(parsedOutput, context)];
2637
+ return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
2032
2638
  case 5:
2033
2639
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2034
2640
  return [3, 9];
2035
2641
  case 6:
2036
2642
  _e = [{}];
2037
- return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
2643
+ return [4, deserializeAws_json1_1SnapshotNotFoundResponse(parsedOutput, context)];
2038
2644
  case 7:
2039
2645
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2040
2646
  return [3, 9];
@@ -2355,6 +2961,166 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
2355
2961
  }
2356
2962
  });
2357
2963
  }); };
2964
+ export var deserializeAws_json1_1ReleaseFileSystemNfsV3LocksCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2965
+ var data, contents, response;
2966
+ return __generator(this, function (_a) {
2967
+ switch (_a.label) {
2968
+ case 0:
2969
+ if (output.statusCode >= 300) {
2970
+ return [2, deserializeAws_json1_1ReleaseFileSystemNfsV3LocksCommandError(output, context)];
2971
+ }
2972
+ return [4, parseBody(output.body, context)];
2973
+ case 1:
2974
+ data = _a.sent();
2975
+ contents = {};
2976
+ contents = deserializeAws_json1_1ReleaseFileSystemNfsV3LocksResponse(data, context);
2977
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2978
+ return [2, Promise.resolve(response)];
2979
+ }
2980
+ });
2981
+ }); };
2982
+ var deserializeAws_json1_1ReleaseFileSystemNfsV3LocksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2983
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
2984
+ var _h;
2985
+ return __generator(this, function (_j) {
2986
+ switch (_j.label) {
2987
+ case 0:
2988
+ _a = [__assign({}, output)];
2989
+ _h = {};
2990
+ return [4, parseBody(output.body, context)];
2991
+ case 1:
2992
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2993
+ errorCode = "UnknownError";
2994
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2995
+ _b = errorCode;
2996
+ switch (_b) {
2997
+ case "BadRequest": return [3, 2];
2998
+ case "com.amazonaws.fsx#BadRequest": return [3, 2];
2999
+ case "FileSystemNotFound": return [3, 4];
3000
+ case "com.amazonaws.fsx#FileSystemNotFound": return [3, 4];
3001
+ case "IncompatibleParameterError": return [3, 6];
3002
+ case "com.amazonaws.fsx#IncompatibleParameterError": return [3, 6];
3003
+ case "InternalServerError": return [3, 8];
3004
+ case "com.amazonaws.fsx#InternalServerError": return [3, 8];
3005
+ case "ServiceLimitExceeded": return [3, 10];
3006
+ case "com.amazonaws.fsx#ServiceLimitExceeded": return [3, 10];
3007
+ }
3008
+ return [3, 12];
3009
+ case 2:
3010
+ _c = [{}];
3011
+ return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
3012
+ case 3:
3013
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3014
+ return [3, 13];
3015
+ case 4:
3016
+ _d = [{}];
3017
+ return [4, deserializeAws_json1_1FileSystemNotFoundResponse(parsedOutput, context)];
3018
+ case 5:
3019
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3020
+ return [3, 13];
3021
+ case 6:
3022
+ _e = [{}];
3023
+ return [4, deserializeAws_json1_1IncompatibleParameterErrorResponse(parsedOutput, context)];
3024
+ case 7:
3025
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3026
+ return [3, 13];
3027
+ case 8:
3028
+ _f = [{}];
3029
+ return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
3030
+ case 9:
3031
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3032
+ return [3, 13];
3033
+ case 10:
3034
+ _g = [{}];
3035
+ return [4, deserializeAws_json1_1ServiceLimitExceededResponse(parsedOutput, context)];
3036
+ case 11:
3037
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3038
+ return [3, 13];
3039
+ case 12:
3040
+ parsedBody = parsedOutput.body;
3041
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3042
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3043
+ _j.label = 13;
3044
+ case 13:
3045
+ message = response.message || response.Message || errorCode;
3046
+ response.message = message;
3047
+ delete response.Message;
3048
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3049
+ }
3050
+ });
3051
+ }); };
3052
+ export var deserializeAws_json1_1RestoreVolumeFromSnapshotCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3053
+ var data, contents, response;
3054
+ return __generator(this, function (_a) {
3055
+ switch (_a.label) {
3056
+ case 0:
3057
+ if (output.statusCode >= 300) {
3058
+ return [2, deserializeAws_json1_1RestoreVolumeFromSnapshotCommandError(output, context)];
3059
+ }
3060
+ return [4, parseBody(output.body, context)];
3061
+ case 1:
3062
+ data = _a.sent();
3063
+ contents = {};
3064
+ contents = deserializeAws_json1_1RestoreVolumeFromSnapshotResponse(data, context);
3065
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
3066
+ return [2, Promise.resolve(response)];
3067
+ }
3068
+ });
3069
+ }); };
3070
+ var deserializeAws_json1_1RestoreVolumeFromSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3071
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
3072
+ var _f;
3073
+ return __generator(this, function (_g) {
3074
+ switch (_g.label) {
3075
+ case 0:
3076
+ _a = [__assign({}, output)];
3077
+ _f = {};
3078
+ return [4, parseBody(output.body, context)];
3079
+ case 1:
3080
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
3081
+ errorCode = "UnknownError";
3082
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3083
+ _b = errorCode;
3084
+ switch (_b) {
3085
+ case "BadRequest": return [3, 2];
3086
+ case "com.amazonaws.fsx#BadRequest": return [3, 2];
3087
+ case "InternalServerError": return [3, 4];
3088
+ case "com.amazonaws.fsx#InternalServerError": return [3, 4];
3089
+ case "VolumeNotFound": return [3, 6];
3090
+ case "com.amazonaws.fsx#VolumeNotFound": return [3, 6];
3091
+ }
3092
+ return [3, 8];
3093
+ case 2:
3094
+ _c = [{}];
3095
+ return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
3096
+ case 3:
3097
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3098
+ return [3, 9];
3099
+ case 4:
3100
+ _d = [{}];
3101
+ return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
3102
+ case 5:
3103
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3104
+ return [3, 9];
3105
+ case 6:
3106
+ _e = [{}];
3107
+ return [4, deserializeAws_json1_1VolumeNotFoundResponse(parsedOutput, context)];
3108
+ case 7:
3109
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3110
+ return [3, 9];
3111
+ case 8:
3112
+ parsedBody = parsedOutput.body;
3113
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3114
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3115
+ _g.label = 9;
3116
+ case 9:
3117
+ message = response.message || response.Message || errorCode;
3118
+ response.message = message;
3119
+ delete response.Message;
3120
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3121
+ }
3122
+ });
3123
+ }); };
2358
3124
  export var deserializeAws_json1_1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2359
3125
  var data, contents, response;
2360
3126
  return __generator(this, function (_a) {
@@ -2496,25 +3262,113 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
2496
3262
  return [3, 13];
2497
3263
  case 4:
2498
3264
  _d = [{}];
2499
- return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
3265
+ return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
3266
+ case 5:
3267
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3268
+ return [3, 13];
3269
+ case 6:
3270
+ _e = [{}];
3271
+ return [4, deserializeAws_json1_1NotServiceResourceErrorResponse(parsedOutput, context)];
3272
+ case 7:
3273
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3274
+ return [3, 13];
3275
+ case 8:
3276
+ _f = [{}];
3277
+ return [4, deserializeAws_json1_1ResourceDoesNotSupportTaggingResponse(parsedOutput, context)];
3278
+ case 9:
3279
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3280
+ return [3, 13];
3281
+ case 10:
3282
+ _g = [{}];
3283
+ return [4, deserializeAws_json1_1ResourceNotFoundResponse(parsedOutput, context)];
3284
+ case 11:
3285
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3286
+ return [3, 13];
3287
+ case 12:
3288
+ parsedBody = parsedOutput.body;
3289
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3290
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3291
+ _j.label = 13;
3292
+ case 13:
3293
+ message = response.message || response.Message || errorCode;
3294
+ response.message = message;
3295
+ delete response.Message;
3296
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3297
+ }
3298
+ });
3299
+ }); };
3300
+ export var deserializeAws_json1_1UpdateDataRepositoryAssociationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3301
+ var data, contents, response;
3302
+ return __generator(this, function (_a) {
3303
+ switch (_a.label) {
3304
+ case 0:
3305
+ if (output.statusCode >= 300) {
3306
+ return [2, deserializeAws_json1_1UpdateDataRepositoryAssociationCommandError(output, context)];
3307
+ }
3308
+ return [4, parseBody(output.body, context)];
3309
+ case 1:
3310
+ data = _a.sent();
3311
+ contents = {};
3312
+ contents = deserializeAws_json1_1UpdateDataRepositoryAssociationResponse(data, context);
3313
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
3314
+ return [2, Promise.resolve(response)];
3315
+ }
3316
+ });
3317
+ }); };
3318
+ var deserializeAws_json1_1UpdateDataRepositoryAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3319
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
3320
+ var _h;
3321
+ return __generator(this, function (_j) {
3322
+ switch (_j.label) {
3323
+ case 0:
3324
+ _a = [__assign({}, output)];
3325
+ _h = {};
3326
+ return [4, parseBody(output.body, context)];
3327
+ case 1:
3328
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
3329
+ errorCode = "UnknownError";
3330
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3331
+ _b = errorCode;
3332
+ switch (_b) {
3333
+ case "BadRequest": return [3, 2];
3334
+ case "com.amazonaws.fsx#BadRequest": return [3, 2];
3335
+ case "DataRepositoryAssociationNotFound": return [3, 4];
3336
+ case "com.amazonaws.fsx#DataRepositoryAssociationNotFound": return [3, 4];
3337
+ case "IncompatibleParameterError": return [3, 6];
3338
+ case "com.amazonaws.fsx#IncompatibleParameterError": return [3, 6];
3339
+ case "InternalServerError": return [3, 8];
3340
+ case "com.amazonaws.fsx#InternalServerError": return [3, 8];
3341
+ case "ServiceLimitExceeded": return [3, 10];
3342
+ case "com.amazonaws.fsx#ServiceLimitExceeded": return [3, 10];
3343
+ }
3344
+ return [3, 12];
3345
+ case 2:
3346
+ _c = [{}];
3347
+ return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
3348
+ case 3:
3349
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3350
+ return [3, 13];
3351
+ case 4:
3352
+ _d = [{}];
3353
+ return [4, deserializeAws_json1_1DataRepositoryAssociationNotFoundResponse(parsedOutput, context)];
2500
3354
  case 5:
2501
3355
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2502
3356
  return [3, 13];
2503
3357
  case 6:
2504
3358
  _e = [{}];
2505
- return [4, deserializeAws_json1_1NotServiceResourceErrorResponse(parsedOutput, context)];
3359
+ return [4, deserializeAws_json1_1IncompatibleParameterErrorResponse(parsedOutput, context)];
2506
3360
  case 7:
2507
3361
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2508
3362
  return [3, 13];
2509
3363
  case 8:
2510
3364
  _f = [{}];
2511
- return [4, deserializeAws_json1_1ResourceDoesNotSupportTaggingResponse(parsedOutput, context)];
3365
+ return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
2512
3366
  case 9:
2513
3367
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2514
3368
  return [3, 13];
2515
3369
  case 10:
2516
3370
  _g = [{}];
2517
- return [4, deserializeAws_json1_1ResourceNotFoundResponse(parsedOutput, context)];
3371
+ return [4, deserializeAws_json1_1ServiceLimitExceededResponse(parsedOutput, context)];
2518
3372
  case 11:
2519
3373
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2520
3374
  return [3, 13];
@@ -2635,6 +3489,78 @@ var deserializeAws_json1_1UpdateFileSystemCommandError = function (output, conte
2635
3489
  }
2636
3490
  });
2637
3491
  }); };
3492
+ export var deserializeAws_json1_1UpdateSnapshotCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3493
+ var data, contents, response;
3494
+ return __generator(this, function (_a) {
3495
+ switch (_a.label) {
3496
+ case 0:
3497
+ if (output.statusCode >= 300) {
3498
+ return [2, deserializeAws_json1_1UpdateSnapshotCommandError(output, context)];
3499
+ }
3500
+ return [4, parseBody(output.body, context)];
3501
+ case 1:
3502
+ data = _a.sent();
3503
+ contents = {};
3504
+ contents = deserializeAws_json1_1UpdateSnapshotResponse(data, context);
3505
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
3506
+ return [2, Promise.resolve(response)];
3507
+ }
3508
+ });
3509
+ }); };
3510
+ var deserializeAws_json1_1UpdateSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3511
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
3512
+ var _f;
3513
+ return __generator(this, function (_g) {
3514
+ switch (_g.label) {
3515
+ case 0:
3516
+ _a = [__assign({}, output)];
3517
+ _f = {};
3518
+ return [4, parseBody(output.body, context)];
3519
+ case 1:
3520
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
3521
+ errorCode = "UnknownError";
3522
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3523
+ _b = errorCode;
3524
+ switch (_b) {
3525
+ case "BadRequest": return [3, 2];
3526
+ case "com.amazonaws.fsx#BadRequest": return [3, 2];
3527
+ case "InternalServerError": return [3, 4];
3528
+ case "com.amazonaws.fsx#InternalServerError": return [3, 4];
3529
+ case "SnapshotNotFound": return [3, 6];
3530
+ case "com.amazonaws.fsx#SnapshotNotFound": return [3, 6];
3531
+ }
3532
+ return [3, 8];
3533
+ case 2:
3534
+ _c = [{}];
3535
+ return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
3536
+ case 3:
3537
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3538
+ return [3, 9];
3539
+ case 4:
3540
+ _d = [{}];
3541
+ return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
3542
+ case 5:
3543
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3544
+ return [3, 9];
3545
+ case 6:
3546
+ _e = [{}];
3547
+ return [4, deserializeAws_json1_1SnapshotNotFoundResponse(parsedOutput, context)];
3548
+ case 7:
3549
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3550
+ return [3, 9];
3551
+ case 8:
3552
+ parsedBody = parsedOutput.body;
3553
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3554
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3555
+ _g.label = 9;
3556
+ case 9:
3557
+ message = response.message || response.Message || errorCode;
3558
+ response.message = message;
3559
+ delete response.Message;
3560
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3561
+ }
3562
+ });
3563
+ }); };
2638
3564
  export var deserializeAws_json1_1UpdateStorageVirtualMachineCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2639
3565
  var data, contents, response;
2640
3566
  return __generator(this, function (_a) {
@@ -2865,6 +3791,15 @@ var deserializeAws_json1_1BadRequestResponse = function (parsedOutput, context)
2865
3791
  return [2, contents];
2866
3792
  });
2867
3793
  }); };
3794
+ var deserializeAws_json1_1DataRepositoryAssociationNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
3795
+ var body, deserialized, contents;
3796
+ return __generator(this, function (_a) {
3797
+ body = parsedOutput.body;
3798
+ deserialized = deserializeAws_json1_1DataRepositoryAssociationNotFound(body, context);
3799
+ contents = __assign({ name: "DataRepositoryAssociationNotFound", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
3800
+ return [2, contents];
3801
+ });
3802
+ }); };
2868
3803
  var deserializeAws_json1_1DataRepositoryTaskEndedResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
2869
3804
  var body, deserialized, contents;
2870
3805
  return __generator(this, function (_a) {
@@ -2928,6 +3863,15 @@ var deserializeAws_json1_1InternalServerErrorResponse = function (parsedOutput,
2928
3863
  return [2, contents];
2929
3864
  });
2930
3865
  }); };
3866
+ var deserializeAws_json1_1InvalidDataRepositoryTypeResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
3867
+ var body, deserialized, contents;
3868
+ return __generator(this, function (_a) {
3869
+ body = parsedOutput.body;
3870
+ deserialized = deserializeAws_json1_1InvalidDataRepositoryType(body, context);
3871
+ contents = __assign({ name: "InvalidDataRepositoryType", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
3872
+ return [2, contents];
3873
+ });
3874
+ }); };
2931
3875
  var deserializeAws_json1_1InvalidDestinationKmsKeyResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
2932
3876
  var body, deserialized, contents;
2933
3877
  return __generator(this, function (_a) {
@@ -3045,6 +3989,15 @@ var deserializeAws_json1_1ServiceLimitExceededResponse = function (parsedOutput,
3045
3989
  return [2, contents];
3046
3990
  });
3047
3991
  }); };
3992
+ var deserializeAws_json1_1SnapshotNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
3993
+ var body, deserialized, contents;
3994
+ return __generator(this, function (_a) {
3995
+ body = parsedOutput.body;
3996
+ deserialized = deserializeAws_json1_1SnapshotNotFound(body, context);
3997
+ contents = __assign({ name: "SnapshotNotFound", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
3998
+ return [2, contents];
3999
+ });
4000
+ }); };
3048
4001
  var deserializeAws_json1_1SourceBackupUnavailableResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
3049
4002
  var body, deserialized, contents;
3050
4003
  return __generator(this, function (_a) {
@@ -3096,6 +4049,14 @@ var serializeAws_json1_1AssociateFileSystemAliasesRequest = function (input, con
3096
4049
  return __assign(__assign(__assign({}, (input.Aliases !== undefined &&
3097
4050
  input.Aliases !== null && { Aliases: serializeAws_json1_1AlternateDNSNames(input.Aliases, context) })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId }));
3098
4051
  };
4052
+ var serializeAws_json1_1AutoExportPolicy = function (input, context) {
4053
+ return __assign({}, (input.Events !== undefined &&
4054
+ input.Events !== null && { Events: serializeAws_json1_1EventTypes(input.Events, context) }));
4055
+ };
4056
+ var serializeAws_json1_1AutoImportPolicy = function (input, context) {
4057
+ return __assign({}, (input.Events !== undefined &&
4058
+ input.Events !== null && { Events: serializeAws_json1_1EventTypes(input.Events, context) }));
4059
+ };
3099
4060
  var serializeAws_json1_1BackupIds = function (input, context) {
3100
4061
  return input
3101
4062
  .filter(function (e) { return e != null; })
@@ -3121,6 +4082,15 @@ var serializeAws_json1_1CreateBackupRequest = function (input, context) {
3121
4082
  var _a;
3122
4083
  return __assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VolumeId !== undefined && input.VolumeId !== null && { VolumeId: input.VolumeId }));
3123
4084
  };
4085
+ var serializeAws_json1_1CreateDataRepositoryAssociationRequest = function (input, context) {
4086
+ var _a;
4087
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchImportMetaDataOnCreate !== undefined &&
4088
+ input.BatchImportMetaDataOnCreate !== null && { BatchImportMetaDataOnCreate: input.BatchImportMetaDataOnCreate })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.DataRepositoryPath !== undefined &&
4089
+ input.DataRepositoryPath !== null && { DataRepositoryPath: input.DataRepositoryPath })), (input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId })), (input.FileSystemPath !== undefined &&
4090
+ input.FileSystemPath !== null && { FileSystemPath: input.FileSystemPath })), (input.ImportedFileChunkSize !== undefined &&
4091
+ input.ImportedFileChunkSize !== null && { ImportedFileChunkSize: input.ImportedFileChunkSize })), (input.S3 !== undefined &&
4092
+ input.S3 !== null && { S3: serializeAws_json1_1S3DataRepositoryConfiguration(input.S3, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
4093
+ };
3124
4094
  var serializeAws_json1_1CreateDataRepositoryTaskRequest = function (input, context) {
3125
4095
  var _a;
3126
4096
  return __assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId })), (input.Paths !== undefined &&
@@ -3129,10 +4099,13 @@ var serializeAws_json1_1CreateDataRepositoryTaskRequest = function (input, conte
3129
4099
  };
3130
4100
  var serializeAws_json1_1CreateFileSystemFromBackupRequest = function (input, context) {
3131
4101
  var _a;
3132
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BackupId !== undefined && input.BackupId !== null && { BackupId: input.BackupId })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.FileSystemTypeVersion !== undefined &&
4102
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BackupId !== undefined && input.BackupId !== null && { BackupId: input.BackupId })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.FileSystemTypeVersion !== undefined &&
3133
4103
  input.FileSystemTypeVersion !== null && { FileSystemTypeVersion: input.FileSystemTypeVersion })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.LustreConfiguration !== undefined &&
3134
4104
  input.LustreConfiguration !== null && {
3135
4105
  LustreConfiguration: serializeAws_json1_1CreateFileSystemLustreConfiguration(input.LustreConfiguration, context),
4106
+ })), (input.OpenZFSConfiguration !== undefined &&
4107
+ input.OpenZFSConfiguration !== null && {
4108
+ OpenZFSConfiguration: serializeAws_json1_1CreateFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
3136
4109
  })), (input.SecurityGroupIds !== undefined &&
3137
4110
  input.SecurityGroupIds !== null && {
3138
4111
  SecurityGroupIds: serializeAws_json1_1SecurityGroupIds(input.SecurityGroupIds, context),
@@ -3143,7 +4116,7 @@ var serializeAws_json1_1CreateFileSystemFromBackupRequest = function (input, con
3143
4116
  }));
3144
4117
  };
3145
4118
  var serializeAws_json1_1CreateFileSystemLustreConfiguration = function (input, context) {
3146
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoImportPolicy !== undefined &&
4119
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoImportPolicy !== undefined &&
3147
4120
  input.AutoImportPolicy !== null && { AutoImportPolicy: input.AutoImportPolicy })), (input.AutomaticBackupRetentionDays !== undefined &&
3148
4121
  input.AutomaticBackupRetentionDays !== null && {
3149
4122
  AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
@@ -3155,7 +4128,10 @@ var serializeAws_json1_1CreateFileSystemLustreConfiguration = function (input, c
3155
4128
  input.DataCompressionType !== null && { DataCompressionType: input.DataCompressionType })), (input.DeploymentType !== undefined &&
3156
4129
  input.DeploymentType !== null && { DeploymentType: input.DeploymentType })), (input.DriveCacheType !== undefined &&
3157
4130
  input.DriveCacheType !== null && { DriveCacheType: input.DriveCacheType })), (input.ExportPath !== undefined && input.ExportPath !== null && { ExportPath: input.ExportPath })), (input.ImportPath !== undefined && input.ImportPath !== null && { ImportPath: input.ImportPath })), (input.ImportedFileChunkSize !== undefined &&
3158
- input.ImportedFileChunkSize !== null && { ImportedFileChunkSize: input.ImportedFileChunkSize })), (input.PerUnitStorageThroughput !== undefined &&
4131
+ input.ImportedFileChunkSize !== null && { ImportedFileChunkSize: input.ImportedFileChunkSize })), (input.LogConfiguration !== undefined &&
4132
+ input.LogConfiguration !== null && {
4133
+ LogConfiguration: serializeAws_json1_1LustreLogCreateConfiguration(input.LogConfiguration, context),
4134
+ })), (input.PerUnitStorageThroughput !== undefined &&
3159
4135
  input.PerUnitStorageThroughput !== null && { PerUnitStorageThroughput: input.PerUnitStorageThroughput })), (input.WeeklyMaintenanceStartTime !== undefined &&
3160
4136
  input.WeeklyMaintenanceStartTime !== null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }));
3161
4137
  };
@@ -3180,9 +4156,29 @@ var serializeAws_json1_1CreateFileSystemOntapConfiguration = function (input, co
3180
4156
  input.ThroughputCapacity !== null && { ThroughputCapacity: input.ThroughputCapacity })), (input.WeeklyMaintenanceStartTime !== undefined &&
3181
4157
  input.WeeklyMaintenanceStartTime !== null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }));
3182
4158
  };
4159
+ var serializeAws_json1_1CreateFileSystemOpenZFSConfiguration = function (input, context) {
4160
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutomaticBackupRetentionDays !== undefined &&
4161
+ input.AutomaticBackupRetentionDays !== null && {
4162
+ AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
4163
+ })), (input.CopyTagsToBackups !== undefined &&
4164
+ input.CopyTagsToBackups !== null && { CopyTagsToBackups: input.CopyTagsToBackups })), (input.CopyTagsToVolumes !== undefined &&
4165
+ input.CopyTagsToVolumes !== null && { CopyTagsToVolumes: input.CopyTagsToVolumes })), (input.DailyAutomaticBackupStartTime !== undefined &&
4166
+ input.DailyAutomaticBackupStartTime !== null && {
4167
+ DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
4168
+ })), (input.DeploymentType !== undefined &&
4169
+ input.DeploymentType !== null && { DeploymentType: input.DeploymentType })), (input.DiskIopsConfiguration !== undefined &&
4170
+ input.DiskIopsConfiguration !== null && {
4171
+ DiskIopsConfiguration: serializeAws_json1_1DiskIopsConfiguration(input.DiskIopsConfiguration, context),
4172
+ })), (input.RootVolumeConfiguration !== undefined &&
4173
+ input.RootVolumeConfiguration !== null && {
4174
+ RootVolumeConfiguration: serializeAws_json1_1OpenZFSCreateRootVolumeConfiguration(input.RootVolumeConfiguration, context),
4175
+ })), (input.ThroughputCapacity !== undefined &&
4176
+ input.ThroughputCapacity !== null && { ThroughputCapacity: input.ThroughputCapacity })), (input.WeeklyMaintenanceStartTime !== undefined &&
4177
+ input.WeeklyMaintenanceStartTime !== null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }));
4178
+ };
3183
4179
  var serializeAws_json1_1CreateFileSystemRequest = function (input, context) {
3184
4180
  var _a;
3185
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileSystemType !== undefined &&
4181
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileSystemType !== undefined &&
3186
4182
  input.FileSystemType !== null && { FileSystemType: input.FileSystemType })), (input.FileSystemTypeVersion !== undefined &&
3187
4183
  input.FileSystemTypeVersion !== null && { FileSystemTypeVersion: input.FileSystemTypeVersion })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.LustreConfiguration !== undefined &&
3188
4184
  input.LustreConfiguration !== null && {
@@ -3190,6 +4186,9 @@ var serializeAws_json1_1CreateFileSystemRequest = function (input, context) {
3190
4186
  })), (input.OntapConfiguration !== undefined &&
3191
4187
  input.OntapConfiguration !== null && {
3192
4188
  OntapConfiguration: serializeAws_json1_1CreateFileSystemOntapConfiguration(input.OntapConfiguration, context),
4189
+ })), (input.OpenZFSConfiguration !== undefined &&
4190
+ input.OpenZFSConfiguration !== null && {
4191
+ OpenZFSConfiguration: serializeAws_json1_1CreateFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
3193
4192
  })), (input.SecurityGroupIds !== undefined &&
3194
4193
  input.SecurityGroupIds !== null && {
3195
4194
  SecurityGroupIds: serializeAws_json1_1SecurityGroupIds(input.SecurityGroupIds, context),
@@ -3231,6 +4230,30 @@ var serializeAws_json1_1CreateOntapVolumeConfiguration = function (input, contex
3231
4230
  TieringPolicy: serializeAws_json1_1TieringPolicy(input.TieringPolicy, context),
3232
4231
  }));
3233
4232
  };
4233
+ var serializeAws_json1_1CreateOpenZFSOriginSnapshotConfiguration = function (input, context) {
4234
+ return __assign(__assign({}, (input.CopyStrategy !== undefined && input.CopyStrategy !== null && { CopyStrategy: input.CopyStrategy })), (input.SnapshotARN !== undefined && input.SnapshotARN !== null && { SnapshotARN: input.SnapshotARN }));
4235
+ };
4236
+ var serializeAws_json1_1CreateOpenZFSVolumeConfiguration = function (input, context) {
4237
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CopyTagsToSnapshots !== undefined &&
4238
+ input.CopyTagsToSnapshots !== null && { CopyTagsToSnapshots: input.CopyTagsToSnapshots })), (input.DataCompressionType !== undefined &&
4239
+ input.DataCompressionType !== null && { DataCompressionType: input.DataCompressionType })), (input.NfsExports !== undefined &&
4240
+ input.NfsExports !== null && { NfsExports: serializeAws_json1_1OpenZFSNfsExports(input.NfsExports, context) })), (input.OriginSnapshot !== undefined &&
4241
+ input.OriginSnapshot !== null && {
4242
+ OriginSnapshot: serializeAws_json1_1CreateOpenZFSOriginSnapshotConfiguration(input.OriginSnapshot, context),
4243
+ })), (input.ParentVolumeId !== undefined &&
4244
+ input.ParentVolumeId !== null && { ParentVolumeId: input.ParentVolumeId })), (input.ReadOnly !== undefined && input.ReadOnly !== null && { ReadOnly: input.ReadOnly })), (input.StorageCapacityQuotaGiB !== undefined &&
4245
+ input.StorageCapacityQuotaGiB !== null && { StorageCapacityQuotaGiB: input.StorageCapacityQuotaGiB })), (input.StorageCapacityReservationGiB !== undefined &&
4246
+ input.StorageCapacityReservationGiB !== null && {
4247
+ StorageCapacityReservationGiB: input.StorageCapacityReservationGiB,
4248
+ })), (input.UserAndGroupQuotas !== undefined &&
4249
+ input.UserAndGroupQuotas !== null && {
4250
+ UserAndGroupQuotas: serializeAws_json1_1OpenZFSUserAndGroupQuotas(input.UserAndGroupQuotas, context),
4251
+ }));
4252
+ };
4253
+ var serializeAws_json1_1CreateSnapshotRequest = function (input, context) {
4254
+ var _a;
4255
+ return __assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VolumeId !== undefined && input.VolumeId !== null && { VolumeId: input.VolumeId }));
4256
+ };
3234
4257
  var serializeAws_json1_1CreateStorageVirtualMachineRequest = function (input, context) {
3235
4258
  var _a;
3236
4259
  return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ActiveDirectoryConfiguration !== undefined &&
@@ -3255,11 +4278,24 @@ var serializeAws_json1_1CreateVolumeFromBackupRequest = function (input, context
3255
4278
  };
3256
4279
  var serializeAws_json1_1CreateVolumeRequest = function (input, context) {
3257
4280
  var _a;
3258
- return __assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.OntapConfiguration !== undefined &&
4281
+ return __assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.OntapConfiguration !== undefined &&
3259
4282
  input.OntapConfiguration !== null && {
3260
4283
  OntapConfiguration: serializeAws_json1_1CreateOntapVolumeConfiguration(input.OntapConfiguration, context),
4284
+ })), (input.OpenZFSConfiguration !== undefined &&
4285
+ input.OpenZFSConfiguration !== null && {
4286
+ OpenZFSConfiguration: serializeAws_json1_1CreateOpenZFSVolumeConfiguration(input.OpenZFSConfiguration, context),
3261
4287
  })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VolumeType !== undefined && input.VolumeType !== null && { VolumeType: input.VolumeType }));
3262
4288
  };
4289
+ var serializeAws_json1_1DataRepositoryAssociationIds = function (input, context) {
4290
+ return input
4291
+ .filter(function (e) { return e != null; })
4292
+ .map(function (entry) {
4293
+ if (entry === null) {
4294
+ return null;
4295
+ }
4296
+ return entry;
4297
+ });
4298
+ };
3263
4299
  var serializeAws_json1_1DataRepositoryTaskFilter = function (input, context) {
3264
4300
  return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Values !== undefined &&
3265
4301
  input.Values !== null && { Values: serializeAws_json1_1DataRepositoryTaskFilterValues(input.Values, context) }));
@@ -3298,16 +4334,29 @@ var serializeAws_json1_1DeleteBackupRequest = function (input, context) {
3298
4334
  var _a;
3299
4335
  return __assign(__assign({}, (input.BackupId !== undefined && input.BackupId !== null && { BackupId: input.BackupId })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() });
3300
4336
  };
4337
+ var serializeAws_json1_1DeleteDataRepositoryAssociationRequest = function (input, context) {
4338
+ var _a;
4339
+ return __assign(__assign(__assign({}, (input.AssociationId !== undefined && input.AssociationId !== null && { AssociationId: input.AssociationId })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.DeleteDataInFileSystem !== undefined &&
4340
+ input.DeleteDataInFileSystem !== null && { DeleteDataInFileSystem: input.DeleteDataInFileSystem }));
4341
+ };
3301
4342
  var serializeAws_json1_1DeleteFileSystemLustreConfiguration = function (input, context) {
3302
4343
  return __assign(__assign({}, (input.FinalBackupTags !== undefined &&
3303
4344
  input.FinalBackupTags !== null && { FinalBackupTags: serializeAws_json1_1Tags(input.FinalBackupTags, context) })), (input.SkipFinalBackup !== undefined &&
3304
4345
  input.SkipFinalBackup !== null && { SkipFinalBackup: input.SkipFinalBackup }));
3305
4346
  };
4347
+ var serializeAws_json1_1DeleteFileSystemOpenZFSConfiguration = function (input, context) {
4348
+ return __assign(__assign({}, (input.FinalBackupTags !== undefined &&
4349
+ input.FinalBackupTags !== null && { FinalBackupTags: serializeAws_json1_1Tags(input.FinalBackupTags, context) })), (input.SkipFinalBackup !== undefined &&
4350
+ input.SkipFinalBackup !== null && { SkipFinalBackup: input.SkipFinalBackup }));
4351
+ };
3306
4352
  var serializeAws_json1_1DeleteFileSystemRequest = function (input, context) {
3307
4353
  var _a;
3308
- return __assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId })), (input.LustreConfiguration !== undefined &&
4354
+ return __assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId })), (input.LustreConfiguration !== undefined &&
3309
4355
  input.LustreConfiguration !== null && {
3310
4356
  LustreConfiguration: serializeAws_json1_1DeleteFileSystemLustreConfiguration(input.LustreConfiguration, context),
4357
+ })), (input.OpenZFSConfiguration !== undefined &&
4358
+ input.OpenZFSConfiguration !== null && {
4359
+ OpenZFSConfiguration: serializeAws_json1_1DeleteFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
3311
4360
  })), (input.WindowsConfiguration !== undefined &&
3312
4361
  input.WindowsConfiguration !== null && {
3313
4362
  WindowsConfiguration: serializeAws_json1_1DeleteFileSystemWindowsConfiguration(input.WindowsConfiguration, context),
@@ -3318,6 +4367,20 @@ var serializeAws_json1_1DeleteFileSystemWindowsConfiguration = function (input,
3318
4367
  input.FinalBackupTags !== null && { FinalBackupTags: serializeAws_json1_1Tags(input.FinalBackupTags, context) })), (input.SkipFinalBackup !== undefined &&
3319
4368
  input.SkipFinalBackup !== null && { SkipFinalBackup: input.SkipFinalBackup }));
3320
4369
  };
4370
+ var serializeAws_json1_1DeleteOpenZFSVolumeOptions = function (input, context) {
4371
+ return input
4372
+ .filter(function (e) { return e != null; })
4373
+ .map(function (entry) {
4374
+ if (entry === null) {
4375
+ return null;
4376
+ }
4377
+ return entry;
4378
+ });
4379
+ };
4380
+ var serializeAws_json1_1DeleteSnapshotRequest = function (input, context) {
4381
+ var _a;
4382
+ return __assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.SnapshotId !== undefined && input.SnapshotId !== null && { SnapshotId: input.SnapshotId }));
4383
+ };
3321
4384
  var serializeAws_json1_1DeleteStorageVirtualMachineRequest = function (input, context) {
3322
4385
  var _a;
3323
4386
  return __assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.StorageVirtualMachineId !== undefined &&
@@ -3328,11 +4391,18 @@ var serializeAws_json1_1DeleteVolumeOntapConfiguration = function (input, contex
3328
4391
  input.FinalBackupTags !== null && { FinalBackupTags: serializeAws_json1_1Tags(input.FinalBackupTags, context) })), (input.SkipFinalBackup !== undefined &&
3329
4392
  input.SkipFinalBackup !== null && { SkipFinalBackup: input.SkipFinalBackup }));
3330
4393
  };
4394
+ var serializeAws_json1_1DeleteVolumeOpenZFSConfiguration = function (input, context) {
4395
+ return __assign({}, (input.Options !== undefined &&
4396
+ input.Options !== null && { Options: serializeAws_json1_1DeleteOpenZFSVolumeOptions(input.Options, context) }));
4397
+ };
3331
4398
  var serializeAws_json1_1DeleteVolumeRequest = function (input, context) {
3332
4399
  var _a;
3333
- return __assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.OntapConfiguration !== undefined &&
4400
+ return __assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.OntapConfiguration !== undefined &&
3334
4401
  input.OntapConfiguration !== null && {
3335
4402
  OntapConfiguration: serializeAws_json1_1DeleteVolumeOntapConfiguration(input.OntapConfiguration, context),
4403
+ })), (input.OpenZFSConfiguration !== undefined &&
4404
+ input.OpenZFSConfiguration !== null && {
4405
+ OpenZFSConfiguration: serializeAws_json1_1DeleteVolumeOpenZFSConfiguration(input.OpenZFSConfiguration, context),
3336
4406
  })), (input.VolumeId !== undefined && input.VolumeId !== null && { VolumeId: input.VolumeId }));
3337
4407
  };
3338
4408
  var serializeAws_json1_1DescribeBackupsRequest = function (input, context) {
@@ -3340,6 +4410,13 @@ var serializeAws_json1_1DescribeBackupsRequest = function (input, context) {
3340
4410
  input.BackupIds !== null && { BackupIds: serializeAws_json1_1BackupIds(input.BackupIds, context) })), (input.Filters !== undefined &&
3341
4411
  input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
3342
4412
  };
4413
+ var serializeAws_json1_1DescribeDataRepositoryAssociationsRequest = function (input, context) {
4414
+ return __assign(__assign(__assign(__assign({}, (input.AssociationIds !== undefined &&
4415
+ input.AssociationIds !== null && {
4416
+ AssociationIds: serializeAws_json1_1DataRepositoryAssociationIds(input.AssociationIds, context),
4417
+ })), (input.Filters !== undefined &&
4418
+ input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
4419
+ };
3343
4420
  var serializeAws_json1_1DescribeDataRepositoryTasksRequest = function (input, context) {
3344
4421
  return __assign(__assign(__assign(__assign({}, (input.Filters !== undefined &&
3345
4422
  input.Filters !== null && { Filters: serializeAws_json1_1DataRepositoryTaskFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.TaskIds !== undefined &&
@@ -3355,6 +4432,11 @@ var serializeAws_json1_1DescribeFileSystemsRequest = function (input, context) {
3355
4432
  FileSystemIds: serializeAws_json1_1FileSystemIds(input.FileSystemIds, context),
3356
4433
  })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
3357
4434
  };
4435
+ var serializeAws_json1_1DescribeSnapshotsRequest = function (input, context) {
4436
+ return __assign(__assign(__assign(__assign({}, (input.Filters !== undefined &&
4437
+ input.Filters !== null && { Filters: serializeAws_json1_1SnapshotFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SnapshotIds !== undefined &&
4438
+ input.SnapshotIds !== null && { SnapshotIds: serializeAws_json1_1SnapshotIds(input.SnapshotIds, context) }));
4439
+ };
3358
4440
  var serializeAws_json1_1DescribeStorageVirtualMachinesRequest = function (input, context) {
3359
4441
  return __assign(__assign(__assign(__assign({}, (input.Filters !== undefined &&
3360
4442
  input.Filters !== null && { Filters: serializeAws_json1_1StorageVirtualMachineFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StorageVirtualMachineIds !== undefined &&
@@ -3385,6 +4467,16 @@ var serializeAws_json1_1DnsIps = function (input, context) {
3385
4467
  return entry;
3386
4468
  });
3387
4469
  };
4470
+ var serializeAws_json1_1EventTypes = function (input, context) {
4471
+ return input
4472
+ .filter(function (e) { return e != null; })
4473
+ .map(function (entry) {
4474
+ if (entry === null) {
4475
+ return null;
4476
+ }
4477
+ return entry;
4478
+ });
4479
+ };
3388
4480
  var serializeAws_json1_1FileSystemIds = function (input, context) {
3389
4481
  return input
3390
4482
  .filter(function (e) { return e != null; })
@@ -3409,20 +4501,162 @@ var serializeAws_json1_1Filters = function (input, context) {
3409
4501
  return serializeAws_json1_1Filter(entry, context);
3410
4502
  });
3411
4503
  };
3412
- var serializeAws_json1_1FilterValues = function (input, context) {
4504
+ var serializeAws_json1_1FilterValues = function (input, context) {
4505
+ return input
4506
+ .filter(function (e) { return e != null; })
4507
+ .map(function (entry) {
4508
+ if (entry === null) {
4509
+ return null;
4510
+ }
4511
+ return entry;
4512
+ });
4513
+ };
4514
+ var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
4515
+ return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }));
4516
+ };
4517
+ var serializeAws_json1_1LustreLogCreateConfiguration = function (input, context) {
4518
+ return __assign(__assign({}, (input.Destination !== undefined && input.Destination !== null && { Destination: input.Destination })), (input.Level !== undefined && input.Level !== null && { Level: input.Level }));
4519
+ };
4520
+ var serializeAws_json1_1OpenZFSClientConfiguration = function (input, context) {
4521
+ return __assign(__assign({}, (input.Clients !== undefined && input.Clients !== null && { Clients: input.Clients })), (input.Options !== undefined &&
4522
+ input.Options !== null && { Options: serializeAws_json1_1OpenZFSNfsExportOptions(input.Options, context) }));
4523
+ };
4524
+ var serializeAws_json1_1OpenZFSClientConfigurations = function (input, context) {
4525
+ return input
4526
+ .filter(function (e) { return e != null; })
4527
+ .map(function (entry) {
4528
+ if (entry === null) {
4529
+ return null;
4530
+ }
4531
+ return serializeAws_json1_1OpenZFSClientConfiguration(entry, context);
4532
+ });
4533
+ };
4534
+ var serializeAws_json1_1OpenZFSCreateRootVolumeConfiguration = function (input, context) {
4535
+ return __assign(__assign(__assign(__assign(__assign({}, (input.CopyTagsToSnapshots !== undefined &&
4536
+ input.CopyTagsToSnapshots !== null && { CopyTagsToSnapshots: input.CopyTagsToSnapshots })), (input.DataCompressionType !== undefined &&
4537
+ input.DataCompressionType !== null && { DataCompressionType: input.DataCompressionType })), (input.NfsExports !== undefined &&
4538
+ input.NfsExports !== null && { NfsExports: serializeAws_json1_1OpenZFSNfsExports(input.NfsExports, context) })), (input.ReadOnly !== undefined && input.ReadOnly !== null && { ReadOnly: input.ReadOnly })), (input.UserAndGroupQuotas !== undefined &&
4539
+ input.UserAndGroupQuotas !== null && {
4540
+ UserAndGroupQuotas: serializeAws_json1_1OpenZFSUserAndGroupQuotas(input.UserAndGroupQuotas, context),
4541
+ }));
4542
+ };
4543
+ var serializeAws_json1_1OpenZFSNfsExport = function (input, context) {
4544
+ return __assign({}, (input.ClientConfigurations !== undefined &&
4545
+ input.ClientConfigurations !== null && {
4546
+ ClientConfigurations: serializeAws_json1_1OpenZFSClientConfigurations(input.ClientConfigurations, context),
4547
+ }));
4548
+ };
4549
+ var serializeAws_json1_1OpenZFSNfsExportOptions = function (input, context) {
4550
+ return input
4551
+ .filter(function (e) { return e != null; })
4552
+ .map(function (entry) {
4553
+ if (entry === null) {
4554
+ return null;
4555
+ }
4556
+ return entry;
4557
+ });
4558
+ };
4559
+ var serializeAws_json1_1OpenZFSNfsExports = function (input, context) {
4560
+ return input
4561
+ .filter(function (e) { return e != null; })
4562
+ .map(function (entry) {
4563
+ if (entry === null) {
4564
+ return null;
4565
+ }
4566
+ return serializeAws_json1_1OpenZFSNfsExport(entry, context);
4567
+ });
4568
+ };
4569
+ var serializeAws_json1_1OpenZFSUserAndGroupQuotas = function (input, context) {
4570
+ return input
4571
+ .filter(function (e) { return e != null; })
4572
+ .map(function (entry) {
4573
+ if (entry === null) {
4574
+ return null;
4575
+ }
4576
+ return serializeAws_json1_1OpenZFSUserOrGroupQuota(entry, context);
4577
+ });
4578
+ };
4579
+ var serializeAws_json1_1OpenZFSUserOrGroupQuota = function (input, context) {
4580
+ return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.StorageCapacityQuotaGiB !== undefined &&
4581
+ input.StorageCapacityQuotaGiB !== null && { StorageCapacityQuotaGiB: input.StorageCapacityQuotaGiB })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
4582
+ };
4583
+ var serializeAws_json1_1ReleaseFileSystemNfsV3LocksRequest = function (input, context) {
4584
+ var _a;
4585
+ return __assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId }));
4586
+ };
4587
+ var serializeAws_json1_1RestoreOpenZFSVolumeOptions = function (input, context) {
4588
+ return input
4589
+ .filter(function (e) { return e != null; })
4590
+ .map(function (entry) {
4591
+ if (entry === null) {
4592
+ return null;
4593
+ }
4594
+ return entry;
4595
+ });
4596
+ };
4597
+ var serializeAws_json1_1RestoreVolumeFromSnapshotRequest = function (input, context) {
4598
+ var _a;
4599
+ return __assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Options !== undefined &&
4600
+ input.Options !== null && { Options: serializeAws_json1_1RestoreOpenZFSVolumeOptions(input.Options, context) })), (input.SnapshotId !== undefined && input.SnapshotId !== null && { SnapshotId: input.SnapshotId })), (input.VolumeId !== undefined && input.VolumeId !== null && { VolumeId: input.VolumeId }));
4601
+ };
4602
+ var serializeAws_json1_1RouteTableIds = function (input, context) {
4603
+ return input
4604
+ .filter(function (e) { return e != null; })
4605
+ .map(function (entry) {
4606
+ if (entry === null) {
4607
+ return null;
4608
+ }
4609
+ return entry;
4610
+ });
4611
+ };
4612
+ var serializeAws_json1_1S3DataRepositoryConfiguration = function (input, context) {
4613
+ return __assign(__assign({}, (input.AutoExportPolicy !== undefined &&
4614
+ input.AutoExportPolicy !== null && {
4615
+ AutoExportPolicy: serializeAws_json1_1AutoExportPolicy(input.AutoExportPolicy, context),
4616
+ })), (input.AutoImportPolicy !== undefined &&
4617
+ input.AutoImportPolicy !== null && {
4618
+ AutoImportPolicy: serializeAws_json1_1AutoImportPolicy(input.AutoImportPolicy, context),
4619
+ }));
4620
+ };
4621
+ var serializeAws_json1_1SecurityGroupIds = function (input, context) {
4622
+ return input
4623
+ .filter(function (e) { return e != null; })
4624
+ .map(function (entry) {
4625
+ if (entry === null) {
4626
+ return null;
4627
+ }
4628
+ return entry;
4629
+ });
4630
+ };
4631
+ var serializeAws_json1_1SelfManagedActiveDirectoryConfiguration = function (input, context) {
4632
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DnsIps !== undefined &&
4633
+ input.DnsIps !== null && { DnsIps: serializeAws_json1_1DnsIps(input.DnsIps, context) })), (input.DomainName !== undefined && input.DomainName !== null && { DomainName: input.DomainName })), (input.FileSystemAdministratorsGroup !== undefined &&
4634
+ input.FileSystemAdministratorsGroup !== null && {
4635
+ FileSystemAdministratorsGroup: input.FileSystemAdministratorsGroup,
4636
+ })), (input.OrganizationalUnitDistinguishedName !== undefined &&
4637
+ input.OrganizationalUnitDistinguishedName !== null && {
4638
+ OrganizationalUnitDistinguishedName: input.OrganizationalUnitDistinguishedName,
4639
+ })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
4640
+ };
4641
+ var serializeAws_json1_1SelfManagedActiveDirectoryConfigurationUpdates = function (input, context) {
4642
+ return __assign(__assign(__assign({}, (input.DnsIps !== undefined &&
4643
+ input.DnsIps !== null && { DnsIps: serializeAws_json1_1DnsIps(input.DnsIps, context) })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
4644
+ };
4645
+ var serializeAws_json1_1SnapshotFilter = function (input, context) {
4646
+ return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Values !== undefined &&
4647
+ input.Values !== null && { Values: serializeAws_json1_1SnapshotFilterValues(input.Values, context) }));
4648
+ };
4649
+ var serializeAws_json1_1SnapshotFilters = function (input, context) {
3413
4650
  return input
3414
4651
  .filter(function (e) { return e != null; })
3415
4652
  .map(function (entry) {
3416
4653
  if (entry === null) {
3417
4654
  return null;
3418
4655
  }
3419
- return entry;
4656
+ return serializeAws_json1_1SnapshotFilter(entry, context);
3420
4657
  });
3421
4658
  };
3422
- var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
3423
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }));
3424
- };
3425
- var serializeAws_json1_1RouteTableIds = function (input, context) {
4659
+ var serializeAws_json1_1SnapshotFilterValues = function (input, context) {
3426
4660
  return input
3427
4661
  .filter(function (e) { return e != null; })
3428
4662
  .map(function (entry) {
@@ -3432,7 +4666,7 @@ var serializeAws_json1_1RouteTableIds = function (input, context) {
3432
4666
  return entry;
3433
4667
  });
3434
4668
  };
3435
- var serializeAws_json1_1SecurityGroupIds = function (input, context) {
4669
+ var serializeAws_json1_1SnapshotIds = function (input, context) {
3436
4670
  return input
3437
4671
  .filter(function (e) { return e != null; })
3438
4672
  .map(function (entry) {
@@ -3442,20 +4676,6 @@ var serializeAws_json1_1SecurityGroupIds = function (input, context) {
3442
4676
  return entry;
3443
4677
  });
3444
4678
  };
3445
- var serializeAws_json1_1SelfManagedActiveDirectoryConfiguration = function (input, context) {
3446
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DnsIps !== undefined &&
3447
- input.DnsIps !== null && { DnsIps: serializeAws_json1_1DnsIps(input.DnsIps, context) })), (input.DomainName !== undefined && input.DomainName !== null && { DomainName: input.DomainName })), (input.FileSystemAdministratorsGroup !== undefined &&
3448
- input.FileSystemAdministratorsGroup !== null && {
3449
- FileSystemAdministratorsGroup: input.FileSystemAdministratorsGroup,
3450
- })), (input.OrganizationalUnitDistinguishedName !== undefined &&
3451
- input.OrganizationalUnitDistinguishedName !== null && {
3452
- OrganizationalUnitDistinguishedName: input.OrganizationalUnitDistinguishedName,
3453
- })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
3454
- };
3455
- var serializeAws_json1_1SelfManagedActiveDirectoryConfigurationUpdates = function (input, context) {
3456
- return __assign(__assign(__assign({}, (input.DnsIps !== undefined &&
3457
- input.DnsIps !== null && { DnsIps: serializeAws_json1_1DnsIps(input.DnsIps, context) })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
3458
- };
3459
4679
  var serializeAws_json1_1StorageVirtualMachineFilter = function (input, context) {
3460
4680
  return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Values !== undefined &&
3461
4681
  input.Values !== null && {
@@ -3545,8 +4765,14 @@ var serializeAws_json1_1UntagResourceRequest = function (input, context) {
3545
4765
  return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.TagKeys !== undefined &&
3546
4766
  input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }));
3547
4767
  };
4768
+ var serializeAws_json1_1UpdateDataRepositoryAssociationRequest = function (input, context) {
4769
+ var _a;
4770
+ return __assign(__assign(__assign(__assign({}, (input.AssociationId !== undefined && input.AssociationId !== null && { AssociationId: input.AssociationId })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.ImportedFileChunkSize !== undefined &&
4771
+ input.ImportedFileChunkSize !== null && { ImportedFileChunkSize: input.ImportedFileChunkSize })), (input.S3 !== undefined &&
4772
+ input.S3 !== null && { S3: serializeAws_json1_1S3DataRepositoryConfiguration(input.S3, context) }));
4773
+ };
3548
4774
  var serializeAws_json1_1UpdateFileSystemLustreConfiguration = function (input, context) {
3549
- return __assign(__assign(__assign(__assign(__assign({}, (input.AutoImportPolicy !== undefined &&
4775
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoImportPolicy !== undefined &&
3550
4776
  input.AutoImportPolicy !== null && { AutoImportPolicy: input.AutoImportPolicy })), (input.AutomaticBackupRetentionDays !== undefined &&
3551
4777
  input.AutomaticBackupRetentionDays !== null && {
3552
4778
  AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
@@ -3554,7 +4780,10 @@ var serializeAws_json1_1UpdateFileSystemLustreConfiguration = function (input, c
3554
4780
  input.DailyAutomaticBackupStartTime !== null && {
3555
4781
  DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
3556
4782
  })), (input.DataCompressionType !== undefined &&
3557
- input.DataCompressionType !== null && { DataCompressionType: input.DataCompressionType })), (input.WeeklyMaintenanceStartTime !== undefined &&
4783
+ input.DataCompressionType !== null && { DataCompressionType: input.DataCompressionType })), (input.LogConfiguration !== undefined &&
4784
+ input.LogConfiguration !== null && {
4785
+ LogConfiguration: serializeAws_json1_1LustreLogCreateConfiguration(input.LogConfiguration, context),
4786
+ })), (input.WeeklyMaintenanceStartTime !== undefined &&
3558
4787
  input.WeeklyMaintenanceStartTime !== null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }));
3559
4788
  };
3560
4789
  var serializeAws_json1_1UpdateFileSystemOntapConfiguration = function (input, context) {
@@ -3568,14 +4797,33 @@ var serializeAws_json1_1UpdateFileSystemOntapConfiguration = function (input, co
3568
4797
  input.FsxAdminPassword !== null && { FsxAdminPassword: input.FsxAdminPassword })), (input.WeeklyMaintenanceStartTime !== undefined &&
3569
4798
  input.WeeklyMaintenanceStartTime !== null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }));
3570
4799
  };
4800
+ var serializeAws_json1_1UpdateFileSystemOpenZFSConfiguration = function (input, context) {
4801
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutomaticBackupRetentionDays !== undefined &&
4802
+ input.AutomaticBackupRetentionDays !== null && {
4803
+ AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
4804
+ })), (input.CopyTagsToBackups !== undefined &&
4805
+ input.CopyTagsToBackups !== null && { CopyTagsToBackups: input.CopyTagsToBackups })), (input.CopyTagsToVolumes !== undefined &&
4806
+ input.CopyTagsToVolumes !== null && { CopyTagsToVolumes: input.CopyTagsToVolumes })), (input.DailyAutomaticBackupStartTime !== undefined &&
4807
+ input.DailyAutomaticBackupStartTime !== null && {
4808
+ DailyAutomaticBackupStartTime: input.DailyAutomaticBackupStartTime,
4809
+ })), (input.DiskIopsConfiguration !== undefined &&
4810
+ input.DiskIopsConfiguration !== null && {
4811
+ DiskIopsConfiguration: serializeAws_json1_1DiskIopsConfiguration(input.DiskIopsConfiguration, context),
4812
+ })), (input.ThroughputCapacity !== undefined &&
4813
+ input.ThroughputCapacity !== null && { ThroughputCapacity: input.ThroughputCapacity })), (input.WeeklyMaintenanceStartTime !== undefined &&
4814
+ input.WeeklyMaintenanceStartTime !== null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }));
4815
+ };
3571
4816
  var serializeAws_json1_1UpdateFileSystemRequest = function (input, context) {
3572
4817
  var _a;
3573
- return __assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId })), (input.LustreConfiguration !== undefined &&
4818
+ return __assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId })), (input.LustreConfiguration !== undefined &&
3574
4819
  input.LustreConfiguration !== null && {
3575
4820
  LustreConfiguration: serializeAws_json1_1UpdateFileSystemLustreConfiguration(input.LustreConfiguration, context),
3576
4821
  })), (input.OntapConfiguration !== undefined &&
3577
4822
  input.OntapConfiguration !== null && {
3578
4823
  OntapConfiguration: serializeAws_json1_1UpdateFileSystemOntapConfiguration(input.OntapConfiguration, context),
4824
+ })), (input.OpenZFSConfiguration !== undefined &&
4825
+ input.OpenZFSConfiguration !== null && {
4826
+ OpenZFSConfiguration: serializeAws_json1_1UpdateFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
3579
4827
  })), (input.StorageCapacity !== undefined &&
3580
4828
  input.StorageCapacity !== null && { StorageCapacity: input.StorageCapacity })), (input.WindowsConfiguration !== undefined &&
3581
4829
  input.WindowsConfiguration !== null && {
@@ -3607,6 +4855,22 @@ var serializeAws_json1_1UpdateOntapVolumeConfiguration = function (input, contex
3607
4855
  TieringPolicy: serializeAws_json1_1TieringPolicy(input.TieringPolicy, context),
3608
4856
  }));
3609
4857
  };
4858
+ var serializeAws_json1_1UpdateOpenZFSVolumeConfiguration = function (input, context) {
4859
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataCompressionType !== undefined &&
4860
+ input.DataCompressionType !== null && { DataCompressionType: input.DataCompressionType })), (input.NfsExports !== undefined &&
4861
+ input.NfsExports !== null && { NfsExports: serializeAws_json1_1OpenZFSNfsExports(input.NfsExports, context) })), (input.ReadOnly !== undefined && input.ReadOnly !== null && { ReadOnly: input.ReadOnly })), (input.StorageCapacityQuotaGiB !== undefined &&
4862
+ input.StorageCapacityQuotaGiB !== null && { StorageCapacityQuotaGiB: input.StorageCapacityQuotaGiB })), (input.StorageCapacityReservationGiB !== undefined &&
4863
+ input.StorageCapacityReservationGiB !== null && {
4864
+ StorageCapacityReservationGiB: input.StorageCapacityReservationGiB,
4865
+ })), (input.UserAndGroupQuotas !== undefined &&
4866
+ input.UserAndGroupQuotas !== null && {
4867
+ UserAndGroupQuotas: serializeAws_json1_1OpenZFSUserAndGroupQuotas(input.UserAndGroupQuotas, context),
4868
+ }));
4869
+ };
4870
+ var serializeAws_json1_1UpdateSnapshotRequest = function (input, context) {
4871
+ var _a;
4872
+ return __assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SnapshotId !== undefined && input.SnapshotId !== null && { SnapshotId: input.SnapshotId }));
4873
+ };
3610
4874
  var serializeAws_json1_1UpdateStorageVirtualMachineRequest = function (input, context) {
3611
4875
  var _a;
3612
4876
  return __assign(__assign(__assign(__assign({}, (input.ActiveDirectoryConfiguration !== undefined &&
@@ -3624,9 +4888,12 @@ var serializeAws_json1_1UpdateSvmActiveDirectoryConfiguration = function (input,
3624
4888
  };
3625
4889
  var serializeAws_json1_1UpdateVolumeRequest = function (input, context) {
3626
4890
  var _a;
3627
- return __assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.OntapConfiguration !== undefined &&
4891
+ return __assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.OntapConfiguration !== undefined &&
3628
4892
  input.OntapConfiguration !== null && {
3629
4893
  OntapConfiguration: serializeAws_json1_1UpdateOntapVolumeConfiguration(input.OntapConfiguration, context),
4894
+ })), (input.OpenZFSConfiguration !== undefined &&
4895
+ input.OpenZFSConfiguration !== null && {
4896
+ OpenZFSConfiguration: serializeAws_json1_1UpdateOpenZFSVolumeConfiguration(input.OpenZFSConfiguration, context),
3630
4897
  })), (input.VolumeId !== undefined && input.VolumeId !== null && { VolumeId: input.VolumeId }));
3631
4898
  };
3632
4899
  var serializeAws_json1_1VolumeFilter = function (input, context) {
@@ -3699,6 +4966,9 @@ var deserializeAws_json1_1AdministrativeAction = function (output, context) {
3699
4966
  TargetFileSystemValues: output.TargetFileSystemValues !== undefined && output.TargetFileSystemValues !== null
3700
4967
  ? deserializeAws_json1_1FileSystem(output.TargetFileSystemValues, context)
3701
4968
  : undefined,
4969
+ TargetSnapshotValues: output.TargetSnapshotValues !== undefined && output.TargetSnapshotValues !== null
4970
+ ? deserializeAws_json1_1Snapshot(output.TargetSnapshotValues, context)
4971
+ : undefined,
3702
4972
  TargetVolumeValues: output.TargetVolumeValues !== undefined && output.TargetVolumeValues !== null
3703
4973
  ? deserializeAws_json1_1Volume(output.TargetVolumeValues, context)
3704
4974
  : undefined,
@@ -3742,6 +5012,20 @@ var deserializeAws_json1_1AssociateFileSystemAliasesResponse = function (output,
3742
5012
  : undefined,
3743
5013
  };
3744
5014
  };
5015
+ var deserializeAws_json1_1AutoExportPolicy = function (output, context) {
5016
+ return {
5017
+ Events: output.Events !== undefined && output.Events !== null
5018
+ ? deserializeAws_json1_1EventTypes(output.Events, context)
5019
+ : undefined,
5020
+ };
5021
+ };
5022
+ var deserializeAws_json1_1AutoImportPolicy = function (output, context) {
5023
+ return {
5024
+ Events: output.Events !== undefined && output.Events !== null
5025
+ ? deserializeAws_json1_1EventTypes(output.Events, context)
5026
+ : undefined,
5027
+ };
5028
+ };
3745
5029
  var deserializeAws_json1_1Backup = function (output, context) {
3746
5030
  return {
3747
5031
  BackupId: __expectString(output.BackupId),
@@ -3842,6 +5126,13 @@ var deserializeAws_json1_1CreateBackupResponse = function (output, context) {
3842
5126
  : undefined,
3843
5127
  };
3844
5128
  };
5129
+ var deserializeAws_json1_1CreateDataRepositoryAssociationResponse = function (output, context) {
5130
+ return {
5131
+ Association: output.Association !== undefined && output.Association !== null
5132
+ ? deserializeAws_json1_1DataRepositoryAssociation(output.Association, context)
5133
+ : undefined,
5134
+ };
5135
+ };
3845
5136
  var deserializeAws_json1_1CreateDataRepositoryTaskResponse = function (output, context) {
3846
5137
  return {
3847
5138
  DataRepositoryTask: output.DataRepositoryTask !== undefined && output.DataRepositoryTask !== null
@@ -3863,6 +5154,13 @@ var deserializeAws_json1_1CreateFileSystemResponse = function (output, context)
3863
5154
  : undefined,
3864
5155
  };
3865
5156
  };
5157
+ var deserializeAws_json1_1CreateSnapshotResponse = function (output, context) {
5158
+ return {
5159
+ Snapshot: output.Snapshot !== undefined && output.Snapshot !== null
5160
+ ? deserializeAws_json1_1Snapshot(output.Snapshot, context)
5161
+ : undefined,
5162
+ };
5163
+ };
3866
5164
  var deserializeAws_json1_1CreateStorageVirtualMachineResponse = function (output, context) {
3867
5165
  return {
3868
5166
  StorageVirtualMachine: output.StorageVirtualMachine !== undefined && output.StorageVirtualMachine !== null
@@ -3884,6 +5182,43 @@ var deserializeAws_json1_1CreateVolumeResponse = function (output, context) {
3884
5182
  : undefined,
3885
5183
  };
3886
5184
  };
5185
+ var deserializeAws_json1_1DataRepositoryAssociation = function (output, context) {
5186
+ return {
5187
+ AssociationId: __expectString(output.AssociationId),
5188
+ BatchImportMetaDataOnCreate: __expectBoolean(output.BatchImportMetaDataOnCreate),
5189
+ CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
5190
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
5191
+ : undefined,
5192
+ DataRepositoryPath: __expectString(output.DataRepositoryPath),
5193
+ FailureDetails: output.FailureDetails !== undefined && output.FailureDetails !== null
5194
+ ? deserializeAws_json1_1DataRepositoryFailureDetails(output.FailureDetails, context)
5195
+ : undefined,
5196
+ FileSystemId: __expectString(output.FileSystemId),
5197
+ FileSystemPath: __expectString(output.FileSystemPath),
5198
+ ImportedFileChunkSize: __expectInt32(output.ImportedFileChunkSize),
5199
+ Lifecycle: __expectString(output.Lifecycle),
5200
+ ResourceARN: __expectString(output.ResourceARN),
5201
+ S3: output.S3 !== undefined && output.S3 !== null
5202
+ ? deserializeAws_json1_1S3DataRepositoryConfiguration(output.S3, context)
5203
+ : undefined,
5204
+ Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
5205
+ };
5206
+ };
5207
+ var deserializeAws_json1_1DataRepositoryAssociationNotFound = function (output, context) {
5208
+ return {
5209
+ Message: __expectString(output.Message),
5210
+ };
5211
+ };
5212
+ var deserializeAws_json1_1DataRepositoryAssociations = function (output, context) {
5213
+ return (output || [])
5214
+ .filter(function (e) { return e != null; })
5215
+ .map(function (entry) {
5216
+ if (entry === null) {
5217
+ return null;
5218
+ }
5219
+ return deserializeAws_json1_1DataRepositoryAssociation(entry, context);
5220
+ });
5221
+ };
3887
5222
  var deserializeAws_json1_1DataRepositoryConfiguration = function (output, context) {
3888
5223
  return {
3889
5224
  AutoImportPolicy: __expectString(output.AutoImportPolicy),
@@ -3988,6 +5323,13 @@ var deserializeAws_json1_1DeleteBackupResponse = function (output, context) {
3988
5323
  Lifecycle: __expectString(output.Lifecycle),
3989
5324
  };
3990
5325
  };
5326
+ var deserializeAws_json1_1DeleteDataRepositoryAssociationResponse = function (output, context) {
5327
+ return {
5328
+ AssociationId: __expectString(output.AssociationId),
5329
+ DeleteDataInFileSystem: __expectBoolean(output.DeleteDataInFileSystem),
5330
+ Lifecycle: __expectString(output.Lifecycle),
5331
+ };
5332
+ };
3991
5333
  var deserializeAws_json1_1DeleteFileSystemLustreResponse = function (output, context) {
3992
5334
  return {
3993
5335
  FinalBackupId: __expectString(output.FinalBackupId),
@@ -3996,6 +5338,14 @@ var deserializeAws_json1_1DeleteFileSystemLustreResponse = function (output, con
3996
5338
  : undefined,
3997
5339
  };
3998
5340
  };
5341
+ var deserializeAws_json1_1DeleteFileSystemOpenZFSResponse = function (output, context) {
5342
+ return {
5343
+ FinalBackupId: __expectString(output.FinalBackupId),
5344
+ FinalBackupTags: output.FinalBackupTags !== undefined && output.FinalBackupTags !== null
5345
+ ? deserializeAws_json1_1Tags(output.FinalBackupTags, context)
5346
+ : undefined,
5347
+ };
5348
+ };
3999
5349
  var deserializeAws_json1_1DeleteFileSystemResponse = function (output, context) {
4000
5350
  return {
4001
5351
  FileSystemId: __expectString(output.FileSystemId),
@@ -4003,6 +5353,9 @@ var deserializeAws_json1_1DeleteFileSystemResponse = function (output, context)
4003
5353
  LustreResponse: output.LustreResponse !== undefined && output.LustreResponse !== null
4004
5354
  ? deserializeAws_json1_1DeleteFileSystemLustreResponse(output.LustreResponse, context)
4005
5355
  : undefined,
5356
+ OpenZFSResponse: output.OpenZFSResponse !== undefined && output.OpenZFSResponse !== null
5357
+ ? deserializeAws_json1_1DeleteFileSystemOpenZFSResponse(output.OpenZFSResponse, context)
5358
+ : undefined,
4006
5359
  WindowsResponse: output.WindowsResponse !== undefined && output.WindowsResponse !== null
4007
5360
  ? deserializeAws_json1_1DeleteFileSystemWindowsResponse(output.WindowsResponse, context)
4008
5361
  : undefined,
@@ -4016,6 +5369,12 @@ var deserializeAws_json1_1DeleteFileSystemWindowsResponse = function (output, co
4016
5369
  : undefined,
4017
5370
  };
4018
5371
  };
5372
+ var deserializeAws_json1_1DeleteSnapshotResponse = function (output, context) {
5373
+ return {
5374
+ Lifecycle: __expectString(output.Lifecycle),
5375
+ SnapshotId: __expectString(output.SnapshotId),
5376
+ };
5377
+ };
4019
5378
  var deserializeAws_json1_1DeleteStorageVirtualMachineResponse = function (output, context) {
4020
5379
  return {
4021
5380
  Lifecycle: __expectString(output.Lifecycle),
@@ -4047,6 +5406,14 @@ var deserializeAws_json1_1DescribeBackupsResponse = function (output, context) {
4047
5406
  NextToken: __expectString(output.NextToken),
4048
5407
  };
4049
5408
  };
5409
+ var deserializeAws_json1_1DescribeDataRepositoryAssociationsResponse = function (output, context) {
5410
+ return {
5411
+ Associations: output.Associations !== undefined && output.Associations !== null
5412
+ ? deserializeAws_json1_1DataRepositoryAssociations(output.Associations, context)
5413
+ : undefined,
5414
+ NextToken: __expectString(output.NextToken),
5415
+ };
5416
+ };
4050
5417
  var deserializeAws_json1_1DescribeDataRepositoryTasksResponse = function (output, context) {
4051
5418
  return {
4052
5419
  DataRepositoryTasks: output.DataRepositoryTasks !== undefined && output.DataRepositoryTasks !== null
@@ -4071,6 +5438,14 @@ var deserializeAws_json1_1DescribeFileSystemsResponse = function (output, contex
4071
5438
  NextToken: __expectString(output.NextToken),
4072
5439
  };
4073
5440
  };
5441
+ var deserializeAws_json1_1DescribeSnapshotsResponse = function (output, context) {
5442
+ return {
5443
+ NextToken: __expectString(output.NextToken),
5444
+ Snapshots: output.Snapshots !== undefined && output.Snapshots !== null
5445
+ ? deserializeAws_json1_1Snapshots(output.Snapshots, context)
5446
+ : undefined,
5447
+ };
5448
+ };
4074
5449
  var deserializeAws_json1_1DescribeStorageVirtualMachinesResponse = function (output, context) {
4075
5450
  return {
4076
5451
  NextToken: __expectString(output.NextToken),
@@ -4110,6 +5485,16 @@ var deserializeAws_json1_1DnsIps = function (output, context) {
4110
5485
  return __expectString(entry);
4111
5486
  });
4112
5487
  };
5488
+ var deserializeAws_json1_1EventTypes = function (output, context) {
5489
+ return (output || [])
5490
+ .filter(function (e) { return e != null; })
5491
+ .map(function (entry) {
5492
+ if (entry === null) {
5493
+ return null;
5494
+ }
5495
+ return __expectString(entry);
5496
+ });
5497
+ };
4113
5498
  var deserializeAws_json1_1FileSystem = function (output, context) {
4114
5499
  return {
4115
5500
  AdministrativeActions: output.AdministrativeActions !== undefined && output.AdministrativeActions !== null
@@ -4136,6 +5521,9 @@ var deserializeAws_json1_1FileSystem = function (output, context) {
4136
5521
  OntapConfiguration: output.OntapConfiguration !== undefined && output.OntapConfiguration !== null
4137
5522
  ? deserializeAws_json1_1OntapFileSystemConfiguration(output.OntapConfiguration, context)
4138
5523
  : undefined,
5524
+ OpenZFSConfiguration: output.OpenZFSConfiguration !== undefined && output.OpenZFSConfiguration !== null
5525
+ ? deserializeAws_json1_1OpenZFSFileSystemConfiguration(output.OpenZFSConfiguration, context)
5526
+ : undefined,
4139
5527
  OwnerId: __expectString(output.OwnerId),
4140
5528
  ResourceARN: __expectString(output.ResourceARN),
4141
5529
  StorageCapacity: __expectInt32(output.StorageCapacity),
@@ -4214,6 +5602,11 @@ var deserializeAws_json1_1InternalServerError = function (output, context) {
4214
5602
  Message: __expectString(output.Message),
4215
5603
  };
4216
5604
  };
5605
+ var deserializeAws_json1_1InvalidDataRepositoryType = function (output, context) {
5606
+ return {
5607
+ Message: __expectString(output.Message),
5608
+ };
5609
+ };
4217
5610
  var deserializeAws_json1_1InvalidDestinationKmsKey = function (output, context) {
4218
5611
  return {
4219
5612
  Message: __expectString(output.Message),
@@ -4274,11 +5667,20 @@ var deserializeAws_json1_1LustreFileSystemConfiguration = function (output, cont
4274
5667
  : undefined,
4275
5668
  DeploymentType: __expectString(output.DeploymentType),
4276
5669
  DriveCacheType: __expectString(output.DriveCacheType),
5670
+ LogConfiguration: output.LogConfiguration !== undefined && output.LogConfiguration !== null
5671
+ ? deserializeAws_json1_1LustreLogConfiguration(output.LogConfiguration, context)
5672
+ : undefined,
4277
5673
  MountName: __expectString(output.MountName),
4278
5674
  PerUnitStorageThroughput: __expectInt32(output.PerUnitStorageThroughput),
4279
5675
  WeeklyMaintenanceStartTime: __expectString(output.WeeklyMaintenanceStartTime),
4280
5676
  };
4281
5677
  };
5678
+ var deserializeAws_json1_1LustreLogConfiguration = function (output, context) {
5679
+ return {
5680
+ Destination: __expectString(output.Destination),
5681
+ Level: __expectString(output.Level),
5682
+ };
5683
+ };
4282
5684
  var deserializeAws_json1_1MissingFileSystemConfiguration = function (output, context) {
4283
5685
  return {
4284
5686
  Message: __expectString(output.Message),
@@ -4351,6 +5753,116 @@ var deserializeAws_json1_1OntapVolumeConfiguration = function (output, context)
4351
5753
  UUID: __expectString(output.UUID),
4352
5754
  };
4353
5755
  };
5756
+ var deserializeAws_json1_1OpenZFSClientConfiguration = function (output, context) {
5757
+ return {
5758
+ Clients: __expectString(output.Clients),
5759
+ Options: output.Options !== undefined && output.Options !== null
5760
+ ? deserializeAws_json1_1OpenZFSNfsExportOptions(output.Options, context)
5761
+ : undefined,
5762
+ };
5763
+ };
5764
+ var deserializeAws_json1_1OpenZFSClientConfigurations = function (output, context) {
5765
+ return (output || [])
5766
+ .filter(function (e) { return e != null; })
5767
+ .map(function (entry) {
5768
+ if (entry === null) {
5769
+ return null;
5770
+ }
5771
+ return deserializeAws_json1_1OpenZFSClientConfiguration(entry, context);
5772
+ });
5773
+ };
5774
+ var deserializeAws_json1_1OpenZFSFileSystemConfiguration = function (output, context) {
5775
+ return {
5776
+ AutomaticBackupRetentionDays: __expectInt32(output.AutomaticBackupRetentionDays),
5777
+ CopyTagsToBackups: __expectBoolean(output.CopyTagsToBackups),
5778
+ CopyTagsToVolumes: __expectBoolean(output.CopyTagsToVolumes),
5779
+ DailyAutomaticBackupStartTime: __expectString(output.DailyAutomaticBackupStartTime),
5780
+ DeploymentType: __expectString(output.DeploymentType),
5781
+ DiskIopsConfiguration: output.DiskIopsConfiguration !== undefined && output.DiskIopsConfiguration !== null
5782
+ ? deserializeAws_json1_1DiskIopsConfiguration(output.DiskIopsConfiguration, context)
5783
+ : undefined,
5784
+ RootVolumeId: __expectString(output.RootVolumeId),
5785
+ ThroughputCapacity: __expectInt32(output.ThroughputCapacity),
5786
+ WeeklyMaintenanceStartTime: __expectString(output.WeeklyMaintenanceStartTime),
5787
+ };
5788
+ };
5789
+ var deserializeAws_json1_1OpenZFSNfsExport = function (output, context) {
5790
+ return {
5791
+ ClientConfigurations: output.ClientConfigurations !== undefined && output.ClientConfigurations !== null
5792
+ ? deserializeAws_json1_1OpenZFSClientConfigurations(output.ClientConfigurations, context)
5793
+ : undefined,
5794
+ };
5795
+ };
5796
+ var deserializeAws_json1_1OpenZFSNfsExportOptions = function (output, context) {
5797
+ return (output || [])
5798
+ .filter(function (e) { return e != null; })
5799
+ .map(function (entry) {
5800
+ if (entry === null) {
5801
+ return null;
5802
+ }
5803
+ return __expectString(entry);
5804
+ });
5805
+ };
5806
+ var deserializeAws_json1_1OpenZFSNfsExports = function (output, context) {
5807
+ return (output || [])
5808
+ .filter(function (e) { return e != null; })
5809
+ .map(function (entry) {
5810
+ if (entry === null) {
5811
+ return null;
5812
+ }
5813
+ return deserializeAws_json1_1OpenZFSNfsExport(entry, context);
5814
+ });
5815
+ };
5816
+ var deserializeAws_json1_1OpenZFSOriginSnapshotConfiguration = function (output, context) {
5817
+ return {
5818
+ CopyStrategy: __expectString(output.CopyStrategy),
5819
+ SnapshotARN: __expectString(output.SnapshotARN),
5820
+ };
5821
+ };
5822
+ var deserializeAws_json1_1OpenZFSUserAndGroupQuotas = function (output, context) {
5823
+ return (output || [])
5824
+ .filter(function (e) { return e != null; })
5825
+ .map(function (entry) {
5826
+ if (entry === null) {
5827
+ return null;
5828
+ }
5829
+ return deserializeAws_json1_1OpenZFSUserOrGroupQuota(entry, context);
5830
+ });
5831
+ };
5832
+ var deserializeAws_json1_1OpenZFSUserOrGroupQuota = function (output, context) {
5833
+ return {
5834
+ Id: __expectInt32(output.Id),
5835
+ StorageCapacityQuotaGiB: __expectInt32(output.StorageCapacityQuotaGiB),
5836
+ Type: __expectString(output.Type),
5837
+ };
5838
+ };
5839
+ var deserializeAws_json1_1OpenZFSVolumeConfiguration = function (output, context) {
5840
+ return {
5841
+ CopyTagsToSnapshots: __expectBoolean(output.CopyTagsToSnapshots),
5842
+ DataCompressionType: __expectString(output.DataCompressionType),
5843
+ NfsExports: output.NfsExports !== undefined && output.NfsExports !== null
5844
+ ? deserializeAws_json1_1OpenZFSNfsExports(output.NfsExports, context)
5845
+ : undefined,
5846
+ OriginSnapshot: output.OriginSnapshot !== undefined && output.OriginSnapshot !== null
5847
+ ? deserializeAws_json1_1OpenZFSOriginSnapshotConfiguration(output.OriginSnapshot, context)
5848
+ : undefined,
5849
+ ParentVolumeId: __expectString(output.ParentVolumeId),
5850
+ ReadOnly: __expectBoolean(output.ReadOnly),
5851
+ StorageCapacityQuotaGiB: __expectInt32(output.StorageCapacityQuotaGiB),
5852
+ StorageCapacityReservationGiB: __expectInt32(output.StorageCapacityReservationGiB),
5853
+ UserAndGroupQuotas: output.UserAndGroupQuotas !== undefined && output.UserAndGroupQuotas !== null
5854
+ ? deserializeAws_json1_1OpenZFSUserAndGroupQuotas(output.UserAndGroupQuotas, context)
5855
+ : undefined,
5856
+ VolumePath: __expectString(output.VolumePath),
5857
+ };
5858
+ };
5859
+ var deserializeAws_json1_1ReleaseFileSystemNfsV3LocksResponse = function (output, context) {
5860
+ return {
5861
+ FileSystem: output.FileSystem !== undefined && output.FileSystem !== null
5862
+ ? deserializeAws_json1_1FileSystem(output.FileSystem, context)
5863
+ : undefined,
5864
+ };
5865
+ };
4354
5866
  var deserializeAws_json1_1ResourceDoesNotSupportTagging = function (output, context) {
4355
5867
  return {
4356
5868
  Message: __expectString(output.Message),
@@ -4363,6 +5875,12 @@ var deserializeAws_json1_1ResourceNotFound = function (output, context) {
4363
5875
  ResourceARN: __expectString(output.ResourceARN),
4364
5876
  };
4365
5877
  };
5878
+ var deserializeAws_json1_1RestoreVolumeFromSnapshotResponse = function (output, context) {
5879
+ return {
5880
+ Lifecycle: __expectString(output.Lifecycle),
5881
+ VolumeId: __expectString(output.VolumeId),
5882
+ };
5883
+ };
4366
5884
  var deserializeAws_json1_1RouteTableIds = function (output, context) {
4367
5885
  return (output || [])
4368
5886
  .filter(function (e) { return e != null; })
@@ -4373,6 +5891,16 @@ var deserializeAws_json1_1RouteTableIds = function (output, context) {
4373
5891
  return __expectString(entry);
4374
5892
  });
4375
5893
  };
5894
+ var deserializeAws_json1_1S3DataRepositoryConfiguration = function (output, context) {
5895
+ return {
5896
+ AutoExportPolicy: output.AutoExportPolicy !== undefined && output.AutoExportPolicy !== null
5897
+ ? deserializeAws_json1_1AutoExportPolicy(output.AutoExportPolicy, context)
5898
+ : undefined,
5899
+ AutoImportPolicy: output.AutoImportPolicy !== undefined && output.AutoImportPolicy !== null
5900
+ ? deserializeAws_json1_1AutoImportPolicy(output.AutoImportPolicy, context)
5901
+ : undefined,
5902
+ };
5903
+ };
4376
5904
  var deserializeAws_json1_1SelfManagedActiveDirectoryAttributes = function (output, context) {
4377
5905
  return {
4378
5906
  DnsIps: output.DnsIps !== undefined && output.DnsIps !== null
@@ -4390,6 +5918,37 @@ var deserializeAws_json1_1ServiceLimitExceeded = function (output, context) {
4390
5918
  Message: __expectString(output.Message),
4391
5919
  };
4392
5920
  };
5921
+ var deserializeAws_json1_1Snapshot = function (output, context) {
5922
+ return {
5923
+ AdministrativeActions: output.AdministrativeActions !== undefined && output.AdministrativeActions !== null
5924
+ ? deserializeAws_json1_1AdministrativeActions(output.AdministrativeActions, context)
5925
+ : undefined,
5926
+ CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
5927
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
5928
+ : undefined,
5929
+ Lifecycle: __expectString(output.Lifecycle),
5930
+ Name: __expectString(output.Name),
5931
+ ResourceARN: __expectString(output.ResourceARN),
5932
+ SnapshotId: __expectString(output.SnapshotId),
5933
+ Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
5934
+ VolumeId: __expectString(output.VolumeId),
5935
+ };
5936
+ };
5937
+ var deserializeAws_json1_1SnapshotNotFound = function (output, context) {
5938
+ return {
5939
+ Message: __expectString(output.Message),
5940
+ };
5941
+ };
5942
+ var deserializeAws_json1_1Snapshots = function (output, context) {
5943
+ return (output || [])
5944
+ .filter(function (e) { return e != null; })
5945
+ .map(function (entry) {
5946
+ if (entry === null) {
5947
+ return null;
5948
+ }
5949
+ return deserializeAws_json1_1Snapshot(entry, context);
5950
+ });
5951
+ };
4393
5952
  var deserializeAws_json1_1SourceBackupUnavailable = function (output, context) {
4394
5953
  return {
4395
5954
  BackupId: __expectString(output.BackupId),
@@ -4512,6 +6071,13 @@ var deserializeAws_json1_1UnsupportedOperation = function (output, context) {
4512
6071
  var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
4513
6072
  return {};
4514
6073
  };
6074
+ var deserializeAws_json1_1UpdateDataRepositoryAssociationResponse = function (output, context) {
6075
+ return {
6076
+ Association: output.Association !== undefined && output.Association !== null
6077
+ ? deserializeAws_json1_1DataRepositoryAssociation(output.Association, context)
6078
+ : undefined,
6079
+ };
6080
+ };
4515
6081
  var deserializeAws_json1_1UpdateFileSystemResponse = function (output, context) {
4516
6082
  return {
4517
6083
  FileSystem: output.FileSystem !== undefined && output.FileSystem !== null
@@ -4519,6 +6085,13 @@ var deserializeAws_json1_1UpdateFileSystemResponse = function (output, context)
4519
6085
  : undefined,
4520
6086
  };
4521
6087
  };
6088
+ var deserializeAws_json1_1UpdateSnapshotResponse = function (output, context) {
6089
+ return {
6090
+ Snapshot: output.Snapshot !== undefined && output.Snapshot !== null
6091
+ ? deserializeAws_json1_1Snapshot(output.Snapshot, context)
6092
+ : undefined,
6093
+ };
6094
+ };
4522
6095
  var deserializeAws_json1_1UpdateStorageVirtualMachineResponse = function (output, context) {
4523
6096
  return {
4524
6097
  StorageVirtualMachine: output.StorageVirtualMachine !== undefined && output.StorageVirtualMachine !== null
@@ -4535,6 +6108,9 @@ var deserializeAws_json1_1UpdateVolumeResponse = function (output, context) {
4535
6108
  };
4536
6109
  var deserializeAws_json1_1Volume = function (output, context) {
4537
6110
  return {
6111
+ AdministrativeActions: output.AdministrativeActions !== undefined && output.AdministrativeActions !== null
6112
+ ? deserializeAws_json1_1AdministrativeActions(output.AdministrativeActions, context)
6113
+ : undefined,
4538
6114
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
4539
6115
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4540
6116
  : undefined,
@@ -4547,6 +6123,9 @@ var deserializeAws_json1_1Volume = function (output, context) {
4547
6123
  OntapConfiguration: output.OntapConfiguration !== undefined && output.OntapConfiguration !== null
4548
6124
  ? deserializeAws_json1_1OntapVolumeConfiguration(output.OntapConfiguration, context)
4549
6125
  : undefined,
6126
+ OpenZFSConfiguration: output.OpenZFSConfiguration !== undefined && output.OpenZFSConfiguration !== null
6127
+ ? deserializeAws_json1_1OpenZFSVolumeConfiguration(output.OpenZFSConfiguration, context)
6128
+ : undefined,
4550
6129
  ResourceARN: __expectString(output.ResourceARN),
4551
6130
  Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
4552
6131
  VolumeId: __expectString(output.VolumeId),