@aws-sdk/client-fsx 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist-cjs/FSx.js +60 -0
- package/dist-cjs/commands/CreateFileCacheCommand.js +36 -0
- package/dist-cjs/commands/DeleteFileCacheCommand.js +36 -0
- package/dist-cjs/commands/DescribeFileCachesCommand.js +36 -0
- package/dist-cjs/commands/UpdateFileCacheCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +154 -27
- package/dist-cjs/pagination/DescribeFileCachesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +587 -39
- package/dist-es/FSx.js +209 -156
- package/dist-es/FSxClient.js +22 -28
- package/dist-es/commands/AssociateFileSystemAliasesCommand.js +21 -28
- package/dist-es/commands/CancelDataRepositoryTaskCommand.js +21 -28
- package/dist-es/commands/CopyBackupCommand.js +21 -28
- package/dist-es/commands/CreateBackupCommand.js +21 -28
- package/dist-es/commands/CreateDataRepositoryAssociationCommand.js +21 -28
- package/dist-es/commands/CreateDataRepositoryTaskCommand.js +21 -28
- package/dist-es/commands/CreateFileCacheCommand.js +32 -0
- package/dist-es/commands/CreateFileSystemCommand.js +21 -28
- package/dist-es/commands/CreateFileSystemFromBackupCommand.js +21 -28
- package/dist-es/commands/CreateSnapshotCommand.js +21 -28
- package/dist-es/commands/CreateStorageVirtualMachineCommand.js +21 -28
- package/dist-es/commands/CreateVolumeCommand.js +21 -28
- package/dist-es/commands/CreateVolumeFromBackupCommand.js +21 -28
- package/dist-es/commands/DeleteBackupCommand.js +21 -28
- package/dist-es/commands/DeleteDataRepositoryAssociationCommand.js +21 -28
- package/dist-es/commands/DeleteFileCacheCommand.js +32 -0
- package/dist-es/commands/DeleteFileSystemCommand.js +21 -28
- package/dist-es/commands/DeleteSnapshotCommand.js +21 -28
- package/dist-es/commands/DeleteStorageVirtualMachineCommand.js +21 -28
- package/dist-es/commands/DeleteVolumeCommand.js +21 -28
- package/dist-es/commands/DescribeBackupsCommand.js +21 -28
- package/dist-es/commands/DescribeDataRepositoryAssociationsCommand.js +21 -28
- package/dist-es/commands/DescribeDataRepositoryTasksCommand.js +21 -28
- package/dist-es/commands/DescribeFileCachesCommand.js +32 -0
- package/dist-es/commands/DescribeFileSystemAliasesCommand.js +21 -28
- package/dist-es/commands/DescribeFileSystemsCommand.js +21 -28
- package/dist-es/commands/DescribeSnapshotsCommand.js +21 -28
- package/dist-es/commands/DescribeStorageVirtualMachinesCommand.js +21 -28
- package/dist-es/commands/DescribeVolumesCommand.js +21 -28
- package/dist-es/commands/DisassociateFileSystemAliasesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ReleaseFileSystemNfsV3LocksCommand.js +21 -28
- package/dist-es/commands/RestoreVolumeFromSnapshotCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateDataRepositoryAssociationCommand.js +21 -28
- package/dist-es/commands/UpdateFileCacheCommand.js +32 -0
- package/dist-es/commands/UpdateFileSystemCommand.js +21 -28
- package/dist-es/commands/UpdateSnapshotCommand.js +21 -28
- package/dist-es/commands/UpdateStorageVirtualMachineCommand.js +21 -28
- package/dist-es/commands/UpdateVolumeCommand.js +21 -28
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/FSxServiceException.js +5 -10
- package/dist-es/models/models_0.js +1043 -617
- package/dist-es/pagination/DescribeBackupsPaginator.js +25 -68
- package/dist-es/pagination/DescribeDataRepositoryAssociationsPaginator.js +25 -68
- package/dist-es/pagination/DescribeDataRepositoryTasksPaginator.js +25 -68
- package/dist-es/pagination/DescribeFileCachesPaginator.js +32 -0
- package/dist-es/pagination/DescribeFileSystemAliasesPaginator.js +25 -68
- package/dist-es/pagination/DescribeFileSystemsPaginator.js +25 -68
- package/dist-es/pagination/DescribeSnapshotsPaginator.js +25 -68
- package/dist-es/pagination/DescribeStorageVirtualMachinesPaginator.js +25 -68
- package/dist-es/pagination/DescribeVolumesPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +3959 -3957
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-types/FSx.d.ts +118 -26
- package/dist-types/FSxClient.d.ts +6 -2
- package/dist-types/commands/CreateDataRepositoryAssociationCommand.d.ts +6 -0
- package/dist-types/commands/CreateFileCacheCommand.d.ts +58 -0
- package/dist-types/commands/CreateFileSystemCommand.d.ts +0 -10
- package/dist-types/commands/DeleteFileCacheCommand.d.ts +48 -0
- package/dist-types/commands/DescribeDataRepositoryAssociationsCommand.d.ts +13 -11
- package/dist-types/commands/DescribeDataRepositoryTasksCommand.d.ts +4 -4
- package/dist-types/commands/DescribeFileCachesCommand.d.ts +65 -0
- package/dist-types/commands/DescribeFileSystemsCommand.d.ts +0 -1
- package/dist-types/commands/UpdateFileCacheCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +964 -125
- package/dist-types/pagination/DescribeFileCachesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/ts3.4/FSx.d.ts +68 -0
- package/dist-types/ts3.4/FSxClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateFileCacheCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteFileCacheCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DescribeFileCachesCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdateFileCacheCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +239 -25
- package/dist-types/ts3.4/pagination/DescribeFileCachesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
- package/package.json +33 -33
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UpdateVolumeCommand = exports.deserializeAws_json1_1UpdateStorageVirtualMachineCommand = exports.deserializeAws_json1_1UpdateSnapshotCommand = exports.deserializeAws_json1_1UpdateFileSystemCommand = exports.deserializeAws_json1_1UpdateDataRepositoryAssociationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1RestoreVolumeFromSnapshotCommand = exports.deserializeAws_json1_1ReleaseFileSystemNfsV3LocksCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1DisassociateFileSystemAliasesCommand = exports.deserializeAws_json1_1DescribeVolumesCommand = exports.deserializeAws_json1_1DescribeStorageVirtualMachinesCommand = exports.deserializeAws_json1_1DescribeSnapshotsCommand = exports.deserializeAws_json1_1DescribeFileSystemsCommand = exports.deserializeAws_json1_1DescribeFileSystemAliasesCommand = exports.deserializeAws_json1_1DescribeDataRepositoryTasksCommand = exports.deserializeAws_json1_1DescribeDataRepositoryAssociationsCommand = exports.deserializeAws_json1_1DescribeBackupsCommand = exports.deserializeAws_json1_1DeleteVolumeCommand = exports.deserializeAws_json1_1DeleteStorageVirtualMachineCommand = exports.deserializeAws_json1_1DeleteSnapshotCommand = exports.deserializeAws_json1_1DeleteFileSystemCommand = exports.deserializeAws_json1_1DeleteDataRepositoryAssociationCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1CreateFileSystemFromBackupCommand = exports.deserializeAws_json1_1CreateFileSystemCommand = exports.deserializeAws_json1_1CreateFileCacheCommand = exports.deserializeAws_json1_1CreateDataRepositoryTaskCommand = exports.deserializeAws_json1_1CreateDataRepositoryAssociationCommand = exports.deserializeAws_json1_1CreateBackupCommand = exports.deserializeAws_json1_1CopyBackupCommand = exports.deserializeAws_json1_1CancelDataRepositoryTaskCommand = exports.deserializeAws_json1_1AssociateFileSystemAliasesCommand = exports.serializeAws_json1_1UpdateVolumeCommand = exports.serializeAws_json1_1UpdateStorageVirtualMachineCommand = exports.serializeAws_json1_1UpdateSnapshotCommand = exports.serializeAws_json1_1UpdateFileSystemCommand = exports.serializeAws_json1_1UpdateFileCacheCommand = exports.serializeAws_json1_1UpdateDataRepositoryAssociationCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1RestoreVolumeFromSnapshotCommand = exports.serializeAws_json1_1ReleaseFileSystemNfsV3LocksCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1DisassociateFileSystemAliasesCommand = exports.serializeAws_json1_1DescribeVolumesCommand = exports.serializeAws_json1_1DescribeStorageVirtualMachinesCommand = exports.serializeAws_json1_1DescribeSnapshotsCommand = exports.serializeAws_json1_1DescribeFileSystemsCommand = exports.serializeAws_json1_1DescribeFileSystemAliasesCommand = exports.serializeAws_json1_1DescribeFileCachesCommand = exports.serializeAws_json1_1DescribeDataRepositoryTasksCommand = exports.serializeAws_json1_1DescribeDataRepositoryAssociationsCommand = exports.serializeAws_json1_1DescribeBackupsCommand = exports.serializeAws_json1_1DeleteVolumeCommand = exports.serializeAws_json1_1DeleteStorageVirtualMachineCommand = exports.serializeAws_json1_1DeleteSnapshotCommand = exports.serializeAws_json1_1DeleteFileSystemCommand = exports.serializeAws_json1_1DeleteFileCacheCommand = exports.serializeAws_json1_1DeleteDataRepositoryAssociationCommand = exports.serializeAws_json1_1DeleteBackupCommand = exports.serializeAws_json1_1CreateVolumeFromBackupCommand = exports.serializeAws_json1_1CreateVolumeCommand = exports.serializeAws_json1_1CreateStorageVirtualMachineCommand = exports.serializeAws_json1_1CreateSnapshotCommand = exports.serializeAws_json1_1CreateFileSystemFromBackupCommand = exports.serializeAws_json1_1CreateFileSystemCommand = exports.serializeAws_json1_1CreateFileCacheCommand = exports.serializeAws_json1_1CreateDataRepositoryTaskCommand = exports.serializeAws_json1_1CreateDataRepositoryAssociationCommand = exports.serializeAws_json1_1CreateBackupCommand = exports.serializeAws_json1_1CopyBackupCommand = exports.serializeAws_json1_1CancelDataRepositoryTaskCommand = exports.serializeAws_json1_1AssociateFileSystemAliasesCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateVolumeCommand = exports.deserializeAws_json1_1UpdateStorageVirtualMachineCommand = exports.deserializeAws_json1_1UpdateSnapshotCommand = exports.deserializeAws_json1_1UpdateFileSystemCommand = exports.deserializeAws_json1_1UpdateFileCacheCommand = exports.deserializeAws_json1_1UpdateDataRepositoryAssociationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1RestoreVolumeFromSnapshotCommand = exports.deserializeAws_json1_1ReleaseFileSystemNfsV3LocksCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1DisassociateFileSystemAliasesCommand = exports.deserializeAws_json1_1DescribeVolumesCommand = exports.deserializeAws_json1_1DescribeStorageVirtualMachinesCommand = exports.deserializeAws_json1_1DescribeSnapshotsCommand = exports.deserializeAws_json1_1DescribeFileSystemsCommand = exports.deserializeAws_json1_1DescribeFileSystemAliasesCommand = exports.deserializeAws_json1_1DescribeFileCachesCommand = exports.deserializeAws_json1_1DescribeDataRepositoryTasksCommand = exports.deserializeAws_json1_1DescribeDataRepositoryAssociationsCommand = exports.deserializeAws_json1_1DescribeBackupsCommand = exports.deserializeAws_json1_1DeleteVolumeCommand = exports.deserializeAws_json1_1DeleteStorageVirtualMachineCommand = exports.deserializeAws_json1_1DeleteSnapshotCommand = exports.deserializeAws_json1_1DeleteFileSystemCommand = exports.deserializeAws_json1_1DeleteFileCacheCommand = exports.deserializeAws_json1_1DeleteDataRepositoryAssociationCommand = exports.deserializeAws_json1_1DeleteBackupCommand = exports.deserializeAws_json1_1CreateVolumeFromBackupCommand = exports.deserializeAws_json1_1CreateVolumeCommand = exports.deserializeAws_json1_1CreateStorageVirtualMachineCommand = exports.deserializeAws_json1_1CreateSnapshotCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -67,6 +67,16 @@ const serializeAws_json1_1CreateDataRepositoryTaskCommand = async (input, contex
|
|
|
67
67
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
68
|
};
|
|
69
69
|
exports.serializeAws_json1_1CreateDataRepositoryTaskCommand = serializeAws_json1_1CreateDataRepositoryTaskCommand;
|
|
70
|
+
const serializeAws_json1_1CreateFileCacheCommand = async (input, context) => {
|
|
71
|
+
const headers = {
|
|
72
|
+
"content-type": "application/x-amz-json-1.1",
|
|
73
|
+
"x-amz-target": "AWSSimbaAPIService_v20180301.CreateFileCache",
|
|
74
|
+
};
|
|
75
|
+
let body;
|
|
76
|
+
body = JSON.stringify(serializeAws_json1_1CreateFileCacheRequest(input, context));
|
|
77
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
+
};
|
|
79
|
+
exports.serializeAws_json1_1CreateFileCacheCommand = serializeAws_json1_1CreateFileCacheCommand;
|
|
70
80
|
const serializeAws_json1_1CreateFileSystemCommand = async (input, context) => {
|
|
71
81
|
const headers = {
|
|
72
82
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -147,6 +157,16 @@ const serializeAws_json1_1DeleteDataRepositoryAssociationCommand = async (input,
|
|
|
147
157
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
158
|
};
|
|
149
159
|
exports.serializeAws_json1_1DeleteDataRepositoryAssociationCommand = serializeAws_json1_1DeleteDataRepositoryAssociationCommand;
|
|
160
|
+
const serializeAws_json1_1DeleteFileCacheCommand = async (input, context) => {
|
|
161
|
+
const headers = {
|
|
162
|
+
"content-type": "application/x-amz-json-1.1",
|
|
163
|
+
"x-amz-target": "AWSSimbaAPIService_v20180301.DeleteFileCache",
|
|
164
|
+
};
|
|
165
|
+
let body;
|
|
166
|
+
body = JSON.stringify(serializeAws_json1_1DeleteFileCacheRequest(input, context));
|
|
167
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
+
};
|
|
169
|
+
exports.serializeAws_json1_1DeleteFileCacheCommand = serializeAws_json1_1DeleteFileCacheCommand;
|
|
150
170
|
const serializeAws_json1_1DeleteFileSystemCommand = async (input, context) => {
|
|
151
171
|
const headers = {
|
|
152
172
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -217,6 +237,16 @@ const serializeAws_json1_1DescribeDataRepositoryTasksCommand = async (input, con
|
|
|
217
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
238
|
};
|
|
219
239
|
exports.serializeAws_json1_1DescribeDataRepositoryTasksCommand = serializeAws_json1_1DescribeDataRepositoryTasksCommand;
|
|
240
|
+
const serializeAws_json1_1DescribeFileCachesCommand = async (input, context) => {
|
|
241
|
+
const headers = {
|
|
242
|
+
"content-type": "application/x-amz-json-1.1",
|
|
243
|
+
"x-amz-target": "AWSSimbaAPIService_v20180301.DescribeFileCaches",
|
|
244
|
+
};
|
|
245
|
+
let body;
|
|
246
|
+
body = JSON.stringify(serializeAws_json1_1DescribeFileCachesRequest(input, context));
|
|
247
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
|
+
};
|
|
249
|
+
exports.serializeAws_json1_1DescribeFileCachesCommand = serializeAws_json1_1DescribeFileCachesCommand;
|
|
220
250
|
const serializeAws_json1_1DescribeFileSystemAliasesCommand = async (input, context) => {
|
|
221
251
|
const headers = {
|
|
222
252
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -337,6 +367,16 @@ const serializeAws_json1_1UpdateDataRepositoryAssociationCommand = async (input,
|
|
|
337
367
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
368
|
};
|
|
339
369
|
exports.serializeAws_json1_1UpdateDataRepositoryAssociationCommand = serializeAws_json1_1UpdateDataRepositoryAssociationCommand;
|
|
370
|
+
const serializeAws_json1_1UpdateFileCacheCommand = async (input, context) => {
|
|
371
|
+
const headers = {
|
|
372
|
+
"content-type": "application/x-amz-json-1.1",
|
|
373
|
+
"x-amz-target": "AWSSimbaAPIService_v20180301.UpdateFileCache",
|
|
374
|
+
};
|
|
375
|
+
let body;
|
|
376
|
+
body = JSON.stringify(serializeAws_json1_1UpdateFileCacheRequest(input, context));
|
|
377
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
378
|
+
};
|
|
379
|
+
exports.serializeAws_json1_1UpdateFileCacheCommand = serializeAws_json1_1UpdateFileCacheCommand;
|
|
340
380
|
const serializeAws_json1_1UpdateFileSystemCommand = async (input, context) => {
|
|
341
381
|
const headers = {
|
|
342
382
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -394,7 +434,7 @@ exports.deserializeAws_json1_1AssociateFileSystemAliasesCommand = deserializeAws
|
|
|
394
434
|
const deserializeAws_json1_1AssociateFileSystemAliasesCommandError = async (output, context) => {
|
|
395
435
|
const parsedOutput = {
|
|
396
436
|
...output,
|
|
397
|
-
body: await
|
|
437
|
+
body: await parseErrorBody(output.body, context),
|
|
398
438
|
};
|
|
399
439
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
440
|
switch (errorCode) {
|
|
@@ -434,7 +474,7 @@ exports.deserializeAws_json1_1CancelDataRepositoryTaskCommand = deserializeAws_j
|
|
|
434
474
|
const deserializeAws_json1_1CancelDataRepositoryTaskCommandError = async (output, context) => {
|
|
435
475
|
const parsedOutput = {
|
|
436
476
|
...output,
|
|
437
|
-
body: await
|
|
477
|
+
body: await parseErrorBody(output.body, context),
|
|
438
478
|
};
|
|
439
479
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
440
480
|
switch (errorCode) {
|
|
@@ -480,7 +520,7 @@ exports.deserializeAws_json1_1CopyBackupCommand = deserializeAws_json1_1CopyBack
|
|
|
480
520
|
const deserializeAws_json1_1CopyBackupCommandError = async (output, context) => {
|
|
481
521
|
const parsedOutput = {
|
|
482
522
|
...output,
|
|
483
|
-
body: await
|
|
523
|
+
body: await parseErrorBody(output.body, context),
|
|
484
524
|
};
|
|
485
525
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
526
|
switch (errorCode) {
|
|
@@ -544,7 +584,7 @@ exports.deserializeAws_json1_1CreateBackupCommand = deserializeAws_json1_1Create
|
|
|
544
584
|
const deserializeAws_json1_1CreateBackupCommandError = async (output, context) => {
|
|
545
585
|
const parsedOutput = {
|
|
546
586
|
...output,
|
|
547
|
-
body: await
|
|
587
|
+
body: await parseErrorBody(output.body, context),
|
|
548
588
|
};
|
|
549
589
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
550
590
|
switch (errorCode) {
|
|
@@ -599,7 +639,7 @@ exports.deserializeAws_json1_1CreateDataRepositoryAssociationCommand = deseriali
|
|
|
599
639
|
const deserializeAws_json1_1CreateDataRepositoryAssociationCommandError = async (output, context) => {
|
|
600
640
|
const parsedOutput = {
|
|
601
641
|
...output,
|
|
602
|
-
body: await
|
|
642
|
+
body: await parseErrorBody(output.body, context),
|
|
603
643
|
};
|
|
604
644
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
605
645
|
switch (errorCode) {
|
|
@@ -648,7 +688,7 @@ exports.deserializeAws_json1_1CreateDataRepositoryTaskCommand = deserializeAws_j
|
|
|
648
688
|
const deserializeAws_json1_1CreateDataRepositoryTaskCommandError = async (output, context) => {
|
|
649
689
|
const parsedOutput = {
|
|
650
690
|
...output,
|
|
651
|
-
body: await
|
|
691
|
+
body: await parseErrorBody(output.body, context),
|
|
652
692
|
};
|
|
653
693
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
654
694
|
switch (errorCode) {
|
|
@@ -683,6 +723,58 @@ const deserializeAws_json1_1CreateDataRepositoryTaskCommandError = async (output
|
|
|
683
723
|
});
|
|
684
724
|
}
|
|
685
725
|
};
|
|
726
|
+
const deserializeAws_json1_1CreateFileCacheCommand = async (output, context) => {
|
|
727
|
+
if (output.statusCode >= 300) {
|
|
728
|
+
return deserializeAws_json1_1CreateFileCacheCommandError(output, context);
|
|
729
|
+
}
|
|
730
|
+
const data = await parseBody(output.body, context);
|
|
731
|
+
let contents = {};
|
|
732
|
+
contents = deserializeAws_json1_1CreateFileCacheResponse(data, context);
|
|
733
|
+
const response = {
|
|
734
|
+
$metadata: deserializeMetadata(output),
|
|
735
|
+
...contents,
|
|
736
|
+
};
|
|
737
|
+
return Promise.resolve(response);
|
|
738
|
+
};
|
|
739
|
+
exports.deserializeAws_json1_1CreateFileCacheCommand = deserializeAws_json1_1CreateFileCacheCommand;
|
|
740
|
+
const deserializeAws_json1_1CreateFileCacheCommandError = async (output, context) => {
|
|
741
|
+
const parsedOutput = {
|
|
742
|
+
...output,
|
|
743
|
+
body: await parseErrorBody(output.body, context),
|
|
744
|
+
};
|
|
745
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
746
|
+
switch (errorCode) {
|
|
747
|
+
case "BadRequest":
|
|
748
|
+
case "com.amazonaws.fsx#BadRequest":
|
|
749
|
+
throw await deserializeAws_json1_1BadRequestResponse(parsedOutput, context);
|
|
750
|
+
case "IncompatibleParameterError":
|
|
751
|
+
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
752
|
+
throw await deserializeAws_json1_1IncompatibleParameterErrorResponse(parsedOutput, context);
|
|
753
|
+
case "InternalServerError":
|
|
754
|
+
case "com.amazonaws.fsx#InternalServerError":
|
|
755
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
756
|
+
case "InvalidNetworkSettings":
|
|
757
|
+
case "com.amazonaws.fsx#InvalidNetworkSettings":
|
|
758
|
+
throw await deserializeAws_json1_1InvalidNetworkSettingsResponse(parsedOutput, context);
|
|
759
|
+
case "InvalidPerUnitStorageThroughput":
|
|
760
|
+
case "com.amazonaws.fsx#InvalidPerUnitStorageThroughput":
|
|
761
|
+
throw await deserializeAws_json1_1InvalidPerUnitStorageThroughputResponse(parsedOutput, context);
|
|
762
|
+
case "MissingFileCacheConfiguration":
|
|
763
|
+
case "com.amazonaws.fsx#MissingFileCacheConfiguration":
|
|
764
|
+
throw await deserializeAws_json1_1MissingFileCacheConfigurationResponse(parsedOutput, context);
|
|
765
|
+
case "ServiceLimitExceeded":
|
|
766
|
+
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
767
|
+
throw await deserializeAws_json1_1ServiceLimitExceededResponse(parsedOutput, context);
|
|
768
|
+
default:
|
|
769
|
+
const parsedBody = parsedOutput.body;
|
|
770
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
771
|
+
output,
|
|
772
|
+
parsedBody,
|
|
773
|
+
exceptionCtor: FSxServiceException_1.FSxServiceException,
|
|
774
|
+
errorCode,
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
};
|
|
686
778
|
const deserializeAws_json1_1CreateFileSystemCommand = async (output, context) => {
|
|
687
779
|
if (output.statusCode >= 300) {
|
|
688
780
|
return deserializeAws_json1_1CreateFileSystemCommandError(output, context);
|
|
@@ -700,7 +792,7 @@ exports.deserializeAws_json1_1CreateFileSystemCommand = deserializeAws_json1_1Cr
|
|
|
700
792
|
const deserializeAws_json1_1CreateFileSystemCommandError = async (output, context) => {
|
|
701
793
|
const parsedOutput = {
|
|
702
794
|
...output,
|
|
703
|
-
body: await
|
|
795
|
+
body: await parseErrorBody(output.body, context),
|
|
704
796
|
};
|
|
705
797
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
706
798
|
switch (errorCode) {
|
|
@@ -761,7 +853,7 @@ exports.deserializeAws_json1_1CreateFileSystemFromBackupCommand = deserializeAws
|
|
|
761
853
|
const deserializeAws_json1_1CreateFileSystemFromBackupCommandError = async (output, context) => {
|
|
762
854
|
const parsedOutput = {
|
|
763
855
|
...output,
|
|
764
|
-
body: await
|
|
856
|
+
body: await parseErrorBody(output.body, context),
|
|
765
857
|
};
|
|
766
858
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
767
859
|
switch (errorCode) {
|
|
@@ -819,7 +911,7 @@ exports.deserializeAws_json1_1CreateSnapshotCommand = deserializeAws_json1_1Crea
|
|
|
819
911
|
const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context) => {
|
|
820
912
|
const parsedOutput = {
|
|
821
913
|
...output,
|
|
822
|
-
body: await
|
|
914
|
+
body: await parseErrorBody(output.body, context),
|
|
823
915
|
};
|
|
824
916
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
917
|
switch (errorCode) {
|
|
@@ -862,7 +954,7 @@ exports.deserializeAws_json1_1CreateStorageVirtualMachineCommand = deserializeAw
|
|
|
862
954
|
const deserializeAws_json1_1CreateStorageVirtualMachineCommandError = async (output, context) => {
|
|
863
955
|
const parsedOutput = {
|
|
864
956
|
...output,
|
|
865
|
-
body: await
|
|
957
|
+
body: await parseErrorBody(output.body, context),
|
|
866
958
|
};
|
|
867
959
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
960
|
switch (errorCode) {
|
|
@@ -914,7 +1006,7 @@ exports.deserializeAws_json1_1CreateVolumeCommand = deserializeAws_json1_1Create
|
|
|
914
1006
|
const deserializeAws_json1_1CreateVolumeCommandError = async (output, context) => {
|
|
915
1007
|
const parsedOutput = {
|
|
916
1008
|
...output,
|
|
917
|
-
body: await
|
|
1009
|
+
body: await parseErrorBody(output.body, context),
|
|
918
1010
|
};
|
|
919
1011
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
1012
|
switch (errorCode) {
|
|
@@ -969,7 +1061,7 @@ exports.deserializeAws_json1_1CreateVolumeFromBackupCommand = deserializeAws_jso
|
|
|
969
1061
|
const deserializeAws_json1_1CreateVolumeFromBackupCommandError = async (output, context) => {
|
|
970
1062
|
const parsedOutput = {
|
|
971
1063
|
...output,
|
|
972
|
-
body: await
|
|
1064
|
+
body: await parseErrorBody(output.body, context),
|
|
973
1065
|
};
|
|
974
1066
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
1067
|
switch (errorCode) {
|
|
@@ -1024,7 +1116,7 @@ exports.deserializeAws_json1_1DeleteBackupCommand = deserializeAws_json1_1Delete
|
|
|
1024
1116
|
const deserializeAws_json1_1DeleteBackupCommandError = async (output, context) => {
|
|
1025
1117
|
const parsedOutput = {
|
|
1026
1118
|
...output,
|
|
1027
|
-
body: await
|
|
1119
|
+
body: await parseErrorBody(output.body, context),
|
|
1028
1120
|
};
|
|
1029
1121
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1030
1122
|
switch (errorCode) {
|
|
@@ -1076,7 +1168,7 @@ exports.deserializeAws_json1_1DeleteDataRepositoryAssociationCommand = deseriali
|
|
|
1076
1168
|
const deserializeAws_json1_1DeleteDataRepositoryAssociationCommandError = async (output, context) => {
|
|
1077
1169
|
const parsedOutput = {
|
|
1078
1170
|
...output,
|
|
1079
|
-
body: await
|
|
1171
|
+
body: await parseErrorBody(output.body, context),
|
|
1080
1172
|
};
|
|
1081
1173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1082
1174
|
switch (errorCode) {
|
|
@@ -1105,6 +1197,52 @@ const deserializeAws_json1_1DeleteDataRepositoryAssociationCommandError = async
|
|
|
1105
1197
|
});
|
|
1106
1198
|
}
|
|
1107
1199
|
};
|
|
1200
|
+
const deserializeAws_json1_1DeleteFileCacheCommand = async (output, context) => {
|
|
1201
|
+
if (output.statusCode >= 300) {
|
|
1202
|
+
return deserializeAws_json1_1DeleteFileCacheCommandError(output, context);
|
|
1203
|
+
}
|
|
1204
|
+
const data = await parseBody(output.body, context);
|
|
1205
|
+
let contents = {};
|
|
1206
|
+
contents = deserializeAws_json1_1DeleteFileCacheResponse(data, context);
|
|
1207
|
+
const response = {
|
|
1208
|
+
$metadata: deserializeMetadata(output),
|
|
1209
|
+
...contents,
|
|
1210
|
+
};
|
|
1211
|
+
return Promise.resolve(response);
|
|
1212
|
+
};
|
|
1213
|
+
exports.deserializeAws_json1_1DeleteFileCacheCommand = deserializeAws_json1_1DeleteFileCacheCommand;
|
|
1214
|
+
const deserializeAws_json1_1DeleteFileCacheCommandError = async (output, context) => {
|
|
1215
|
+
const parsedOutput = {
|
|
1216
|
+
...output,
|
|
1217
|
+
body: await parseErrorBody(output.body, context),
|
|
1218
|
+
};
|
|
1219
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
|
+
switch (errorCode) {
|
|
1221
|
+
case "BadRequest":
|
|
1222
|
+
case "com.amazonaws.fsx#BadRequest":
|
|
1223
|
+
throw await deserializeAws_json1_1BadRequestResponse(parsedOutput, context);
|
|
1224
|
+
case "FileCacheNotFound":
|
|
1225
|
+
case "com.amazonaws.fsx#FileCacheNotFound":
|
|
1226
|
+
throw await deserializeAws_json1_1FileCacheNotFoundResponse(parsedOutput, context);
|
|
1227
|
+
case "IncompatibleParameterError":
|
|
1228
|
+
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
1229
|
+
throw await deserializeAws_json1_1IncompatibleParameterErrorResponse(parsedOutput, context);
|
|
1230
|
+
case "InternalServerError":
|
|
1231
|
+
case "com.amazonaws.fsx#InternalServerError":
|
|
1232
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1233
|
+
case "ServiceLimitExceeded":
|
|
1234
|
+
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
1235
|
+
throw await deserializeAws_json1_1ServiceLimitExceededResponse(parsedOutput, context);
|
|
1236
|
+
default:
|
|
1237
|
+
const parsedBody = parsedOutput.body;
|
|
1238
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1239
|
+
output,
|
|
1240
|
+
parsedBody,
|
|
1241
|
+
exceptionCtor: FSxServiceException_1.FSxServiceException,
|
|
1242
|
+
errorCode,
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
};
|
|
1108
1246
|
const deserializeAws_json1_1DeleteFileSystemCommand = async (output, context) => {
|
|
1109
1247
|
if (output.statusCode >= 300) {
|
|
1110
1248
|
return deserializeAws_json1_1DeleteFileSystemCommandError(output, context);
|
|
@@ -1122,7 +1260,7 @@ exports.deserializeAws_json1_1DeleteFileSystemCommand = deserializeAws_json1_1De
|
|
|
1122
1260
|
const deserializeAws_json1_1DeleteFileSystemCommandError = async (output, context) => {
|
|
1123
1261
|
const parsedOutput = {
|
|
1124
1262
|
...output,
|
|
1125
|
-
body: await
|
|
1263
|
+
body: await parseErrorBody(output.body, context),
|
|
1126
1264
|
};
|
|
1127
1265
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1128
1266
|
switch (errorCode) {
|
|
@@ -1168,7 +1306,7 @@ exports.deserializeAws_json1_1DeleteSnapshotCommand = deserializeAws_json1_1Dele
|
|
|
1168
1306
|
const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context) => {
|
|
1169
1307
|
const parsedOutput = {
|
|
1170
1308
|
...output,
|
|
1171
|
-
body: await
|
|
1309
|
+
body: await parseErrorBody(output.body, context),
|
|
1172
1310
|
};
|
|
1173
1311
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
1312
|
switch (errorCode) {
|
|
@@ -1208,7 +1346,7 @@ exports.deserializeAws_json1_1DeleteStorageVirtualMachineCommand = deserializeAw
|
|
|
1208
1346
|
const deserializeAws_json1_1DeleteStorageVirtualMachineCommandError = async (output, context) => {
|
|
1209
1347
|
const parsedOutput = {
|
|
1210
1348
|
...output,
|
|
1211
|
-
body: await
|
|
1349
|
+
body: await parseErrorBody(output.body, context),
|
|
1212
1350
|
};
|
|
1213
1351
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
1352
|
switch (errorCode) {
|
|
@@ -1251,7 +1389,7 @@ exports.deserializeAws_json1_1DeleteVolumeCommand = deserializeAws_json1_1Delete
|
|
|
1251
1389
|
const deserializeAws_json1_1DeleteVolumeCommandError = async (output, context) => {
|
|
1252
1390
|
const parsedOutput = {
|
|
1253
1391
|
...output,
|
|
1254
|
-
body: await
|
|
1392
|
+
body: await parseErrorBody(output.body, context),
|
|
1255
1393
|
};
|
|
1256
1394
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
1395
|
switch (errorCode) {
|
|
@@ -1294,7 +1432,7 @@ exports.deserializeAws_json1_1DescribeBackupsCommand = deserializeAws_json1_1Des
|
|
|
1294
1432
|
const deserializeAws_json1_1DescribeBackupsCommandError = async (output, context) => {
|
|
1295
1433
|
const parsedOutput = {
|
|
1296
1434
|
...output,
|
|
1297
|
-
body: await
|
|
1435
|
+
body: await parseErrorBody(output.body, context),
|
|
1298
1436
|
};
|
|
1299
1437
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1300
1438
|
switch (errorCode) {
|
|
@@ -1340,7 +1478,7 @@ exports.deserializeAws_json1_1DescribeDataRepositoryAssociationsCommand = deseri
|
|
|
1340
1478
|
const deserializeAws_json1_1DescribeDataRepositoryAssociationsCommandError = async (output, context) => {
|
|
1341
1479
|
const parsedOutput = {
|
|
1342
1480
|
...output,
|
|
1343
|
-
body: await
|
|
1481
|
+
body: await parseErrorBody(output.body, context),
|
|
1344
1482
|
};
|
|
1345
1483
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1346
1484
|
switch (errorCode) {
|
|
@@ -1386,7 +1524,7 @@ exports.deserializeAws_json1_1DescribeDataRepositoryTasksCommand = deserializeAw
|
|
|
1386
1524
|
const deserializeAws_json1_1DescribeDataRepositoryTasksCommandError = async (output, context) => {
|
|
1387
1525
|
const parsedOutput = {
|
|
1388
1526
|
...output,
|
|
1389
|
-
body: await
|
|
1527
|
+
body: await parseErrorBody(output.body, context),
|
|
1390
1528
|
};
|
|
1391
1529
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
1530
|
switch (errorCode) {
|
|
@@ -1412,6 +1550,46 @@ const deserializeAws_json1_1DescribeDataRepositoryTasksCommandError = async (out
|
|
|
1412
1550
|
});
|
|
1413
1551
|
}
|
|
1414
1552
|
};
|
|
1553
|
+
const deserializeAws_json1_1DescribeFileCachesCommand = async (output, context) => {
|
|
1554
|
+
if (output.statusCode >= 300) {
|
|
1555
|
+
return deserializeAws_json1_1DescribeFileCachesCommandError(output, context);
|
|
1556
|
+
}
|
|
1557
|
+
const data = await parseBody(output.body, context);
|
|
1558
|
+
let contents = {};
|
|
1559
|
+
contents = deserializeAws_json1_1DescribeFileCachesResponse(data, context);
|
|
1560
|
+
const response = {
|
|
1561
|
+
$metadata: deserializeMetadata(output),
|
|
1562
|
+
...contents,
|
|
1563
|
+
};
|
|
1564
|
+
return Promise.resolve(response);
|
|
1565
|
+
};
|
|
1566
|
+
exports.deserializeAws_json1_1DescribeFileCachesCommand = deserializeAws_json1_1DescribeFileCachesCommand;
|
|
1567
|
+
const deserializeAws_json1_1DescribeFileCachesCommandError = async (output, context) => {
|
|
1568
|
+
const parsedOutput = {
|
|
1569
|
+
...output,
|
|
1570
|
+
body: await parseErrorBody(output.body, context),
|
|
1571
|
+
};
|
|
1572
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1573
|
+
switch (errorCode) {
|
|
1574
|
+
case "BadRequest":
|
|
1575
|
+
case "com.amazonaws.fsx#BadRequest":
|
|
1576
|
+
throw await deserializeAws_json1_1BadRequestResponse(parsedOutput, context);
|
|
1577
|
+
case "FileCacheNotFound":
|
|
1578
|
+
case "com.amazonaws.fsx#FileCacheNotFound":
|
|
1579
|
+
throw await deserializeAws_json1_1FileCacheNotFoundResponse(parsedOutput, context);
|
|
1580
|
+
case "InternalServerError":
|
|
1581
|
+
case "com.amazonaws.fsx#InternalServerError":
|
|
1582
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
1583
|
+
default:
|
|
1584
|
+
const parsedBody = parsedOutput.body;
|
|
1585
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1586
|
+
output,
|
|
1587
|
+
parsedBody,
|
|
1588
|
+
exceptionCtor: FSxServiceException_1.FSxServiceException,
|
|
1589
|
+
errorCode,
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
};
|
|
1415
1593
|
const deserializeAws_json1_1DescribeFileSystemAliasesCommand = async (output, context) => {
|
|
1416
1594
|
if (output.statusCode >= 300) {
|
|
1417
1595
|
return deserializeAws_json1_1DescribeFileSystemAliasesCommandError(output, context);
|
|
@@ -1429,7 +1607,7 @@ exports.deserializeAws_json1_1DescribeFileSystemAliasesCommand = deserializeAws_
|
|
|
1429
1607
|
const deserializeAws_json1_1DescribeFileSystemAliasesCommandError = async (output, context) => {
|
|
1430
1608
|
const parsedOutput = {
|
|
1431
1609
|
...output,
|
|
1432
|
-
body: await
|
|
1610
|
+
body: await parseErrorBody(output.body, context),
|
|
1433
1611
|
};
|
|
1434
1612
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1435
1613
|
switch (errorCode) {
|
|
@@ -1469,7 +1647,7 @@ exports.deserializeAws_json1_1DescribeFileSystemsCommand = deserializeAws_json1_
|
|
|
1469
1647
|
const deserializeAws_json1_1DescribeFileSystemsCommandError = async (output, context) => {
|
|
1470
1648
|
const parsedOutput = {
|
|
1471
1649
|
...output,
|
|
1472
|
-
body: await
|
|
1650
|
+
body: await parseErrorBody(output.body, context),
|
|
1473
1651
|
};
|
|
1474
1652
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
1653
|
switch (errorCode) {
|
|
@@ -1509,7 +1687,7 @@ exports.deserializeAws_json1_1DescribeSnapshotsCommand = deserializeAws_json1_1D
|
|
|
1509
1687
|
const deserializeAws_json1_1DescribeSnapshotsCommandError = async (output, context) => {
|
|
1510
1688
|
const parsedOutput = {
|
|
1511
1689
|
...output,
|
|
1512
|
-
body: await
|
|
1690
|
+
body: await parseErrorBody(output.body, context),
|
|
1513
1691
|
};
|
|
1514
1692
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1515
1693
|
switch (errorCode) {
|
|
@@ -1549,7 +1727,7 @@ exports.deserializeAws_json1_1DescribeStorageVirtualMachinesCommand = deserializ
|
|
|
1549
1727
|
const deserializeAws_json1_1DescribeStorageVirtualMachinesCommandError = async (output, context) => {
|
|
1550
1728
|
const parsedOutput = {
|
|
1551
1729
|
...output,
|
|
1552
|
-
body: await
|
|
1730
|
+
body: await parseErrorBody(output.body, context),
|
|
1553
1731
|
};
|
|
1554
1732
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
1733
|
switch (errorCode) {
|
|
@@ -1589,7 +1767,7 @@ exports.deserializeAws_json1_1DescribeVolumesCommand = deserializeAws_json1_1Des
|
|
|
1589
1767
|
const deserializeAws_json1_1DescribeVolumesCommandError = async (output, context) => {
|
|
1590
1768
|
const parsedOutput = {
|
|
1591
1769
|
...output,
|
|
1592
|
-
body: await
|
|
1770
|
+
body: await parseErrorBody(output.body, context),
|
|
1593
1771
|
};
|
|
1594
1772
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1595
1773
|
switch (errorCode) {
|
|
@@ -1629,7 +1807,7 @@ exports.deserializeAws_json1_1DisassociateFileSystemAliasesCommand = deserialize
|
|
|
1629
1807
|
const deserializeAws_json1_1DisassociateFileSystemAliasesCommandError = async (output, context) => {
|
|
1630
1808
|
const parsedOutput = {
|
|
1631
1809
|
...output,
|
|
1632
|
-
body: await
|
|
1810
|
+
body: await parseErrorBody(output.body, context),
|
|
1633
1811
|
};
|
|
1634
1812
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1635
1813
|
switch (errorCode) {
|
|
@@ -1669,7 +1847,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1669
1847
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1670
1848
|
const parsedOutput = {
|
|
1671
1849
|
...output,
|
|
1672
|
-
body: await
|
|
1850
|
+
body: await parseErrorBody(output.body, context),
|
|
1673
1851
|
};
|
|
1674
1852
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
1853
|
switch (errorCode) {
|
|
@@ -1715,7 +1893,7 @@ exports.deserializeAws_json1_1ReleaseFileSystemNfsV3LocksCommand = deserializeAw
|
|
|
1715
1893
|
const deserializeAws_json1_1ReleaseFileSystemNfsV3LocksCommandError = async (output, context) => {
|
|
1716
1894
|
const parsedOutput = {
|
|
1717
1895
|
...output,
|
|
1718
|
-
body: await
|
|
1896
|
+
body: await parseErrorBody(output.body, context),
|
|
1719
1897
|
};
|
|
1720
1898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1721
1899
|
switch (errorCode) {
|
|
@@ -1761,7 +1939,7 @@ exports.deserializeAws_json1_1RestoreVolumeFromSnapshotCommand = deserializeAws_
|
|
|
1761
1939
|
const deserializeAws_json1_1RestoreVolumeFromSnapshotCommandError = async (output, context) => {
|
|
1762
1940
|
const parsedOutput = {
|
|
1763
1941
|
...output,
|
|
1764
|
-
body: await
|
|
1942
|
+
body: await parseErrorBody(output.body, context),
|
|
1765
1943
|
};
|
|
1766
1944
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
1945
|
switch (errorCode) {
|
|
@@ -1801,7 +1979,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
1801
1979
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1802
1980
|
const parsedOutput = {
|
|
1803
1981
|
...output,
|
|
1804
|
-
body: await
|
|
1982
|
+
body: await parseErrorBody(output.body, context),
|
|
1805
1983
|
};
|
|
1806
1984
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1807
1985
|
switch (errorCode) {
|
|
@@ -1847,7 +2025,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
1847
2025
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1848
2026
|
const parsedOutput = {
|
|
1849
2027
|
...output,
|
|
1850
|
-
body: await
|
|
2028
|
+
body: await parseErrorBody(output.body, context),
|
|
1851
2029
|
};
|
|
1852
2030
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1853
2031
|
switch (errorCode) {
|
|
@@ -1893,7 +2071,7 @@ exports.deserializeAws_json1_1UpdateDataRepositoryAssociationCommand = deseriali
|
|
|
1893
2071
|
const deserializeAws_json1_1UpdateDataRepositoryAssociationCommandError = async (output, context) => {
|
|
1894
2072
|
const parsedOutput = {
|
|
1895
2073
|
...output,
|
|
1896
|
-
body: await
|
|
2074
|
+
body: await parseErrorBody(output.body, context),
|
|
1897
2075
|
};
|
|
1898
2076
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1899
2077
|
switch (errorCode) {
|
|
@@ -1922,6 +2100,58 @@ const deserializeAws_json1_1UpdateDataRepositoryAssociationCommandError = async
|
|
|
1922
2100
|
});
|
|
1923
2101
|
}
|
|
1924
2102
|
};
|
|
2103
|
+
const deserializeAws_json1_1UpdateFileCacheCommand = async (output, context) => {
|
|
2104
|
+
if (output.statusCode >= 300) {
|
|
2105
|
+
return deserializeAws_json1_1UpdateFileCacheCommandError(output, context);
|
|
2106
|
+
}
|
|
2107
|
+
const data = await parseBody(output.body, context);
|
|
2108
|
+
let contents = {};
|
|
2109
|
+
contents = deserializeAws_json1_1UpdateFileCacheResponse(data, context);
|
|
2110
|
+
const response = {
|
|
2111
|
+
$metadata: deserializeMetadata(output),
|
|
2112
|
+
...contents,
|
|
2113
|
+
};
|
|
2114
|
+
return Promise.resolve(response);
|
|
2115
|
+
};
|
|
2116
|
+
exports.deserializeAws_json1_1UpdateFileCacheCommand = deserializeAws_json1_1UpdateFileCacheCommand;
|
|
2117
|
+
const deserializeAws_json1_1UpdateFileCacheCommandError = async (output, context) => {
|
|
2118
|
+
const parsedOutput = {
|
|
2119
|
+
...output,
|
|
2120
|
+
body: await parseErrorBody(output.body, context),
|
|
2121
|
+
};
|
|
2122
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2123
|
+
switch (errorCode) {
|
|
2124
|
+
case "BadRequest":
|
|
2125
|
+
case "com.amazonaws.fsx#BadRequest":
|
|
2126
|
+
throw await deserializeAws_json1_1BadRequestResponse(parsedOutput, context);
|
|
2127
|
+
case "FileCacheNotFound":
|
|
2128
|
+
case "com.amazonaws.fsx#FileCacheNotFound":
|
|
2129
|
+
throw await deserializeAws_json1_1FileCacheNotFoundResponse(parsedOutput, context);
|
|
2130
|
+
case "IncompatibleParameterError":
|
|
2131
|
+
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2132
|
+
throw await deserializeAws_json1_1IncompatibleParameterErrorResponse(parsedOutput, context);
|
|
2133
|
+
case "InternalServerError":
|
|
2134
|
+
case "com.amazonaws.fsx#InternalServerError":
|
|
2135
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
2136
|
+
case "MissingFileCacheConfiguration":
|
|
2137
|
+
case "com.amazonaws.fsx#MissingFileCacheConfiguration":
|
|
2138
|
+
throw await deserializeAws_json1_1MissingFileCacheConfigurationResponse(parsedOutput, context);
|
|
2139
|
+
case "ServiceLimitExceeded":
|
|
2140
|
+
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2141
|
+
throw await deserializeAws_json1_1ServiceLimitExceededResponse(parsedOutput, context);
|
|
2142
|
+
case "UnsupportedOperation":
|
|
2143
|
+
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
2144
|
+
throw await deserializeAws_json1_1UnsupportedOperationResponse(parsedOutput, context);
|
|
2145
|
+
default:
|
|
2146
|
+
const parsedBody = parsedOutput.body;
|
|
2147
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2148
|
+
output,
|
|
2149
|
+
parsedBody,
|
|
2150
|
+
exceptionCtor: FSxServiceException_1.FSxServiceException,
|
|
2151
|
+
errorCode,
|
|
2152
|
+
});
|
|
2153
|
+
}
|
|
2154
|
+
};
|
|
1925
2155
|
const deserializeAws_json1_1UpdateFileSystemCommand = async (output, context) => {
|
|
1926
2156
|
if (output.statusCode >= 300) {
|
|
1927
2157
|
return deserializeAws_json1_1UpdateFileSystemCommandError(output, context);
|
|
@@ -1939,7 +2169,7 @@ exports.deserializeAws_json1_1UpdateFileSystemCommand = deserializeAws_json1_1Up
|
|
|
1939
2169
|
const deserializeAws_json1_1UpdateFileSystemCommandError = async (output, context) => {
|
|
1940
2170
|
const parsedOutput = {
|
|
1941
2171
|
...output,
|
|
1942
|
-
body: await
|
|
2172
|
+
body: await parseErrorBody(output.body, context),
|
|
1943
2173
|
};
|
|
1944
2174
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1945
2175
|
switch (errorCode) {
|
|
@@ -1991,7 +2221,7 @@ exports.deserializeAws_json1_1UpdateSnapshotCommand = deserializeAws_json1_1Upda
|
|
|
1991
2221
|
const deserializeAws_json1_1UpdateSnapshotCommandError = async (output, context) => {
|
|
1992
2222
|
const parsedOutput = {
|
|
1993
2223
|
...output,
|
|
1994
|
-
body: await
|
|
2224
|
+
body: await parseErrorBody(output.body, context),
|
|
1995
2225
|
};
|
|
1996
2226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
2227
|
switch (errorCode) {
|
|
@@ -2031,7 +2261,7 @@ exports.deserializeAws_json1_1UpdateStorageVirtualMachineCommand = deserializeAw
|
|
|
2031
2261
|
const deserializeAws_json1_1UpdateStorageVirtualMachineCommandError = async (output, context) => {
|
|
2032
2262
|
const parsedOutput = {
|
|
2033
2263
|
...output,
|
|
2034
|
-
body: await
|
|
2264
|
+
body: await parseErrorBody(output.body, context),
|
|
2035
2265
|
};
|
|
2036
2266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2037
2267
|
switch (errorCode) {
|
|
@@ -2077,7 +2307,7 @@ exports.deserializeAws_json1_1UpdateVolumeCommand = deserializeAws_json1_1Update
|
|
|
2077
2307
|
const deserializeAws_json1_1UpdateVolumeCommandError = async (output, context) => {
|
|
2078
2308
|
const parsedOutput = {
|
|
2079
2309
|
...output,
|
|
2080
|
-
body: await
|
|
2310
|
+
body: await parseErrorBody(output.body, context),
|
|
2081
2311
|
};
|
|
2082
2312
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2083
2313
|
switch (errorCode) {
|
|
@@ -2196,6 +2426,15 @@ const deserializeAws_json1_1DataRepositoryTaskNotFoundResponse = async (parsedOu
|
|
|
2196
2426
|
});
|
|
2197
2427
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2198
2428
|
};
|
|
2429
|
+
const deserializeAws_json1_1FileCacheNotFoundResponse = async (parsedOutput, context) => {
|
|
2430
|
+
const body = parsedOutput.body;
|
|
2431
|
+
const deserialized = deserializeAws_json1_1FileCacheNotFound(body, context);
|
|
2432
|
+
const exception = new models_0_1.FileCacheNotFound({
|
|
2433
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2434
|
+
...deserialized,
|
|
2435
|
+
});
|
|
2436
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2437
|
+
};
|
|
2199
2438
|
const deserializeAws_json1_1FileSystemNotFoundResponse = async (parsedOutput, context) => {
|
|
2200
2439
|
const body = parsedOutput.body;
|
|
2201
2440
|
const deserialized = deserializeAws_json1_1FileSystemNotFound(body, context);
|
|
@@ -2304,6 +2543,15 @@ const deserializeAws_json1_1InvalidSourceKmsKeyResponse = async (parsedOutput, c
|
|
|
2304
2543
|
});
|
|
2305
2544
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2306
2545
|
};
|
|
2546
|
+
const deserializeAws_json1_1MissingFileCacheConfigurationResponse = async (parsedOutput, context) => {
|
|
2547
|
+
const body = parsedOutput.body;
|
|
2548
|
+
const deserialized = deserializeAws_json1_1MissingFileCacheConfiguration(body, context);
|
|
2549
|
+
const exception = new models_0_1.MissingFileCacheConfiguration({
|
|
2550
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2551
|
+
...deserialized,
|
|
2552
|
+
});
|
|
2553
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2554
|
+
};
|
|
2307
2555
|
const deserializeAws_json1_1MissingFileSystemConfigurationResponse = async (parsedOutput, context) => {
|
|
2308
2556
|
const body = parsedOutput.body;
|
|
2309
2557
|
const deserialized = deserializeAws_json1_1MissingFileSystemConfiguration(body, context);
|
|
@@ -2486,6 +2734,7 @@ const serializeAws_json1_1CreateDataRepositoryAssociationRequest = (input, conte
|
|
|
2486
2734
|
const serializeAws_json1_1CreateDataRepositoryTaskRequest = (input, context) => {
|
|
2487
2735
|
var _a;
|
|
2488
2736
|
return {
|
|
2737
|
+
...(input.CapacityToRelease != null && { CapacityToRelease: input.CapacityToRelease }),
|
|
2489
2738
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2490
2739
|
...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
|
|
2491
2740
|
...(input.Paths != null && { Paths: serializeAws_json1_1DataRepositoryTaskPaths(input.Paths, context) }),
|
|
@@ -2494,6 +2743,47 @@ const serializeAws_json1_1CreateDataRepositoryTaskRequest = (input, context) =>
|
|
|
2494
2743
|
...(input.Type != null && { Type: input.Type }),
|
|
2495
2744
|
};
|
|
2496
2745
|
};
|
|
2746
|
+
const serializeAws_json1_1CreateFileCacheDataRepositoryAssociations = (input, context) => {
|
|
2747
|
+
return input
|
|
2748
|
+
.filter((e) => e != null)
|
|
2749
|
+
.map((entry) => {
|
|
2750
|
+
return serializeAws_json1_1FileCacheDataRepositoryAssociation(entry, context);
|
|
2751
|
+
});
|
|
2752
|
+
};
|
|
2753
|
+
const serializeAws_json1_1CreateFileCacheLustreConfiguration = (input, context) => {
|
|
2754
|
+
return {
|
|
2755
|
+
...(input.DeploymentType != null && { DeploymentType: input.DeploymentType }),
|
|
2756
|
+
...(input.MetadataConfiguration != null && {
|
|
2757
|
+
MetadataConfiguration: serializeAws_json1_1FileCacheLustreMetadataConfiguration(input.MetadataConfiguration, context),
|
|
2758
|
+
}),
|
|
2759
|
+
...(input.PerUnitStorageThroughput != null && { PerUnitStorageThroughput: input.PerUnitStorageThroughput }),
|
|
2760
|
+
...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
|
|
2761
|
+
};
|
|
2762
|
+
};
|
|
2763
|
+
const serializeAws_json1_1CreateFileCacheRequest = (input, context) => {
|
|
2764
|
+
var _a;
|
|
2765
|
+
return {
|
|
2766
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2767
|
+
...(input.CopyTagsToDataRepositoryAssociations != null && {
|
|
2768
|
+
CopyTagsToDataRepositoryAssociations: input.CopyTagsToDataRepositoryAssociations,
|
|
2769
|
+
}),
|
|
2770
|
+
...(input.DataRepositoryAssociations != null && {
|
|
2771
|
+
DataRepositoryAssociations: serializeAws_json1_1CreateFileCacheDataRepositoryAssociations(input.DataRepositoryAssociations, context),
|
|
2772
|
+
}),
|
|
2773
|
+
...(input.FileCacheType != null && { FileCacheType: input.FileCacheType }),
|
|
2774
|
+
...(input.FileCacheTypeVersion != null && { FileCacheTypeVersion: input.FileCacheTypeVersion }),
|
|
2775
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
2776
|
+
...(input.LustreConfiguration != null && {
|
|
2777
|
+
LustreConfiguration: serializeAws_json1_1CreateFileCacheLustreConfiguration(input.LustreConfiguration, context),
|
|
2778
|
+
}),
|
|
2779
|
+
...(input.SecurityGroupIds != null && {
|
|
2780
|
+
SecurityGroupIds: serializeAws_json1_1SecurityGroupIds(input.SecurityGroupIds, context),
|
|
2781
|
+
}),
|
|
2782
|
+
...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
|
|
2783
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
|
|
2784
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2785
|
+
};
|
|
2786
|
+
};
|
|
2497
2787
|
const serializeAws_json1_1CreateFileSystemFromBackupRequest = (input, context) => {
|
|
2498
2788
|
var _a;
|
|
2499
2789
|
return {
|
|
@@ -2510,6 +2800,7 @@ const serializeAws_json1_1CreateFileSystemFromBackupRequest = (input, context) =
|
|
|
2510
2800
|
...(input.SecurityGroupIds != null && {
|
|
2511
2801
|
SecurityGroupIds: serializeAws_json1_1SecurityGroupIds(input.SecurityGroupIds, context),
|
|
2512
2802
|
}),
|
|
2803
|
+
...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
|
|
2513
2804
|
...(input.StorageType != null && { StorageType: input.StorageType }),
|
|
2514
2805
|
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
|
|
2515
2806
|
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
@@ -2783,6 +3074,13 @@ const serializeAws_json1_1DeleteDataRepositoryAssociationRequest = (input, conte
|
|
|
2783
3074
|
...(input.DeleteDataInFileSystem != null && { DeleteDataInFileSystem: input.DeleteDataInFileSystem }),
|
|
2784
3075
|
};
|
|
2785
3076
|
};
|
|
3077
|
+
const serializeAws_json1_1DeleteFileCacheRequest = (input, context) => {
|
|
3078
|
+
var _a;
|
|
3079
|
+
return {
|
|
3080
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
3081
|
+
...(input.FileCacheId != null && { FileCacheId: input.FileCacheId }),
|
|
3082
|
+
};
|
|
3083
|
+
};
|
|
2786
3084
|
const serializeAws_json1_1DeleteFileSystemLustreConfiguration = (input, context) => {
|
|
2787
3085
|
return {
|
|
2788
3086
|
...(input.FinalBackupTags != null && { FinalBackupTags: serializeAws_json1_1Tags(input.FinalBackupTags, context) }),
|
|
@@ -2898,6 +3196,13 @@ const serializeAws_json1_1DescribeDataRepositoryTasksRequest = (input, context)
|
|
|
2898
3196
|
...(input.TaskIds != null && { TaskIds: serializeAws_json1_1TaskIds(input.TaskIds, context) }),
|
|
2899
3197
|
};
|
|
2900
3198
|
};
|
|
3199
|
+
const serializeAws_json1_1DescribeFileCachesRequest = (input, context) => {
|
|
3200
|
+
return {
|
|
3201
|
+
...(input.FileCacheIds != null && { FileCacheIds: serializeAws_json1_1FileCacheIds(input.FileCacheIds, context) }),
|
|
3202
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3203
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3204
|
+
};
|
|
3205
|
+
};
|
|
2901
3206
|
const serializeAws_json1_1DescribeFileSystemAliasesRequest = (input, context) => {
|
|
2902
3207
|
var _a;
|
|
2903
3208
|
return {
|
|
@@ -2970,6 +3275,34 @@ const serializeAws_json1_1EventTypes = (input, context) => {
|
|
|
2970
3275
|
return entry;
|
|
2971
3276
|
});
|
|
2972
3277
|
};
|
|
3278
|
+
const serializeAws_json1_1FileCacheDataRepositoryAssociation = (input, context) => {
|
|
3279
|
+
return {
|
|
3280
|
+
...(input.DataRepositoryPath != null && { DataRepositoryPath: input.DataRepositoryPath }),
|
|
3281
|
+
...(input.DataRepositorySubdirectories != null && {
|
|
3282
|
+
DataRepositorySubdirectories: serializeAws_json1_1SubDirectoriesPaths(input.DataRepositorySubdirectories, context),
|
|
3283
|
+
}),
|
|
3284
|
+
...(input.FileCachePath != null && { FileCachePath: input.FileCachePath }),
|
|
3285
|
+
...(input.NFS != null && { NFS: serializeAws_json1_1FileCacheNFSConfiguration(input.NFS, context) }),
|
|
3286
|
+
};
|
|
3287
|
+
};
|
|
3288
|
+
const serializeAws_json1_1FileCacheIds = (input, context) => {
|
|
3289
|
+
return input
|
|
3290
|
+
.filter((e) => e != null)
|
|
3291
|
+
.map((entry) => {
|
|
3292
|
+
return entry;
|
|
3293
|
+
});
|
|
3294
|
+
};
|
|
3295
|
+
const serializeAws_json1_1FileCacheLustreMetadataConfiguration = (input, context) => {
|
|
3296
|
+
return {
|
|
3297
|
+
...(input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }),
|
|
3298
|
+
};
|
|
3299
|
+
};
|
|
3300
|
+
const serializeAws_json1_1FileCacheNFSConfiguration = (input, context) => {
|
|
3301
|
+
return {
|
|
3302
|
+
...(input.DnsIps != null && { DnsIps: serializeAws_json1_1RepositoryDnsIps(input.DnsIps, context) }),
|
|
3303
|
+
...(input.Version != null && { Version: input.Version }),
|
|
3304
|
+
};
|
|
3305
|
+
};
|
|
2973
3306
|
const serializeAws_json1_1FileSystemIds = (input, context) => {
|
|
2974
3307
|
return input
|
|
2975
3308
|
.filter((e) => e != null)
|
|
@@ -3092,6 +3425,13 @@ const serializeAws_json1_1ReleaseFileSystemNfsV3LocksRequest = (input, context)
|
|
|
3092
3425
|
...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
|
|
3093
3426
|
};
|
|
3094
3427
|
};
|
|
3428
|
+
const serializeAws_json1_1RepositoryDnsIps = (input, context) => {
|
|
3429
|
+
return input
|
|
3430
|
+
.filter((e) => e != null)
|
|
3431
|
+
.map((entry) => {
|
|
3432
|
+
return entry;
|
|
3433
|
+
});
|
|
3434
|
+
};
|
|
3095
3435
|
const serializeAws_json1_1RestoreOpenZFSVolumeOptions = (input, context) => {
|
|
3096
3436
|
return input
|
|
3097
3437
|
.filter((e) => e != null)
|
|
@@ -3209,6 +3549,13 @@ const serializeAws_json1_1StorageVirtualMachineIds = (input, context) => {
|
|
|
3209
3549
|
return entry;
|
|
3210
3550
|
});
|
|
3211
3551
|
};
|
|
3552
|
+
const serializeAws_json1_1SubDirectoriesPaths = (input, context) => {
|
|
3553
|
+
return input
|
|
3554
|
+
.filter((e) => e != null)
|
|
3555
|
+
.map((entry) => {
|
|
3556
|
+
return entry;
|
|
3557
|
+
});
|
|
3558
|
+
};
|
|
3212
3559
|
const serializeAws_json1_1SubnetIds = (input, context) => {
|
|
3213
3560
|
return input
|
|
3214
3561
|
.filter((e) => e != null)
|
|
@@ -3270,6 +3617,21 @@ const serializeAws_json1_1UpdateDataRepositoryAssociationRequest = (input, conte
|
|
|
3270
3617
|
...(input.S3 != null && { S3: serializeAws_json1_1S3DataRepositoryConfiguration(input.S3, context) }),
|
|
3271
3618
|
};
|
|
3272
3619
|
};
|
|
3620
|
+
const serializeAws_json1_1UpdateFileCacheLustreConfiguration = (input, context) => {
|
|
3621
|
+
return {
|
|
3622
|
+
...(input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }),
|
|
3623
|
+
};
|
|
3624
|
+
};
|
|
3625
|
+
const serializeAws_json1_1UpdateFileCacheRequest = (input, context) => {
|
|
3626
|
+
var _a;
|
|
3627
|
+
return {
|
|
3628
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
3629
|
+
...(input.FileCacheId != null && { FileCacheId: input.FileCacheId }),
|
|
3630
|
+
...(input.LustreConfiguration != null && {
|
|
3631
|
+
LustreConfiguration: serializeAws_json1_1UpdateFileCacheLustreConfiguration(input.LustreConfiguration, context),
|
|
3632
|
+
}),
|
|
3633
|
+
};
|
|
3634
|
+
};
|
|
3273
3635
|
const serializeAws_json1_1UpdateFileSystemLustreConfiguration = (input, context) => {
|
|
3274
3636
|
return {
|
|
3275
3637
|
...(input.AutoImportPolicy != null && { AutoImportPolicy: input.AutoImportPolicy }),
|
|
@@ -3651,6 +4013,11 @@ const deserializeAws_json1_1CreateDataRepositoryTaskResponse = (output, context)
|
|
|
3651
4013
|
: undefined,
|
|
3652
4014
|
};
|
|
3653
4015
|
};
|
|
4016
|
+
const deserializeAws_json1_1CreateFileCacheResponse = (output, context) => {
|
|
4017
|
+
return {
|
|
4018
|
+
FileCache: output.FileCache != null ? deserializeAws_json1_1FileCacheCreating(output.FileCache, context) : undefined,
|
|
4019
|
+
};
|
|
4020
|
+
};
|
|
3654
4021
|
const deserializeAws_json1_1CreateFileSystemFromBackupResponse = (output, context) => {
|
|
3655
4022
|
return {
|
|
3656
4023
|
FileSystem: output.FileSystem != null ? deserializeAws_json1_1FileSystem(output.FileSystem, context) : undefined,
|
|
@@ -3691,18 +4058,35 @@ const deserializeAws_json1_1DataRepositoryAssociation = (output, context) => {
|
|
|
3691
4058
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3692
4059
|
: undefined,
|
|
3693
4060
|
DataRepositoryPath: (0, smithy_client_1.expectString)(output.DataRepositoryPath),
|
|
4061
|
+
DataRepositorySubdirectories: output.DataRepositorySubdirectories != null
|
|
4062
|
+
? deserializeAws_json1_1SubDirectoriesPaths(output.DataRepositorySubdirectories, context)
|
|
4063
|
+
: undefined,
|
|
3694
4064
|
FailureDetails: output.FailureDetails != null
|
|
3695
4065
|
? deserializeAws_json1_1DataRepositoryFailureDetails(output.FailureDetails, context)
|
|
3696
4066
|
: undefined,
|
|
4067
|
+
FileCacheId: (0, smithy_client_1.expectString)(output.FileCacheId),
|
|
4068
|
+
FileCachePath: (0, smithy_client_1.expectString)(output.FileCachePath),
|
|
3697
4069
|
FileSystemId: (0, smithy_client_1.expectString)(output.FileSystemId),
|
|
3698
4070
|
FileSystemPath: (0, smithy_client_1.expectString)(output.FileSystemPath),
|
|
3699
4071
|
ImportedFileChunkSize: (0, smithy_client_1.expectInt32)(output.ImportedFileChunkSize),
|
|
3700
4072
|
Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
|
|
4073
|
+
NFS: output.NFS != null ? deserializeAws_json1_1NFSDataRepositoryConfiguration(output.NFS, context) : undefined,
|
|
3701
4074
|
ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
|
|
3702
4075
|
S3: output.S3 != null ? deserializeAws_json1_1S3DataRepositoryConfiguration(output.S3, context) : undefined,
|
|
3703
4076
|
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
3704
4077
|
};
|
|
3705
4078
|
};
|
|
4079
|
+
const deserializeAws_json1_1DataRepositoryAssociationIds = (output, context) => {
|
|
4080
|
+
const retVal = (output || [])
|
|
4081
|
+
.filter((e) => e != null)
|
|
4082
|
+
.map((entry) => {
|
|
4083
|
+
if (entry === null) {
|
|
4084
|
+
return null;
|
|
4085
|
+
}
|
|
4086
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
4087
|
+
});
|
|
4088
|
+
return retVal;
|
|
4089
|
+
};
|
|
3706
4090
|
const deserializeAws_json1_1DataRepositoryAssociationNotFound = (output, context) => {
|
|
3707
4091
|
return {
|
|
3708
4092
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -3738,6 +4122,7 @@ const deserializeAws_json1_1DataRepositoryFailureDetails = (output, context) =>
|
|
|
3738
4122
|
};
|
|
3739
4123
|
const deserializeAws_json1_1DataRepositoryTask = (output, context) => {
|
|
3740
4124
|
return {
|
|
4125
|
+
CapacityToRelease: (0, smithy_client_1.expectLong)(output.CapacityToRelease),
|
|
3741
4126
|
CreationTime: output.CreationTime != null
|
|
3742
4127
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3743
4128
|
: undefined,
|
|
@@ -3745,6 +4130,7 @@ const deserializeAws_json1_1DataRepositoryTask = (output, context) => {
|
|
|
3745
4130
|
FailureDetails: output.FailureDetails != null
|
|
3746
4131
|
? deserializeAws_json1_1DataRepositoryTaskFailureDetails(output.FailureDetails, context)
|
|
3747
4132
|
: undefined,
|
|
4133
|
+
FileCacheId: (0, smithy_client_1.expectString)(output.FileCacheId),
|
|
3748
4134
|
FileSystemId: (0, smithy_client_1.expectString)(output.FileSystemId),
|
|
3749
4135
|
Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
|
|
3750
4136
|
Paths: output.Paths != null ? deserializeAws_json1_1DataRepositoryTaskPaths(output.Paths, context) : undefined,
|
|
@@ -3805,6 +4191,7 @@ const deserializeAws_json1_1DataRepositoryTaskStatus = (output, context) => {
|
|
|
3805
4191
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
3806
4192
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
3807
4193
|
: undefined,
|
|
4194
|
+
ReleasedCapacity: (0, smithy_client_1.expectLong)(output.ReleasedCapacity),
|
|
3808
4195
|
SucceededCount: (0, smithy_client_1.expectLong)(output.SucceededCount),
|
|
3809
4196
|
TotalCount: (0, smithy_client_1.expectLong)(output.TotalCount),
|
|
3810
4197
|
};
|
|
@@ -3822,6 +4209,12 @@ const deserializeAws_json1_1DeleteDataRepositoryAssociationResponse = (output, c
|
|
|
3822
4209
|
Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
|
|
3823
4210
|
};
|
|
3824
4211
|
};
|
|
4212
|
+
const deserializeAws_json1_1DeleteFileCacheResponse = (output, context) => {
|
|
4213
|
+
return {
|
|
4214
|
+
FileCacheId: (0, smithy_client_1.expectString)(output.FileCacheId),
|
|
4215
|
+
Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
|
|
4216
|
+
};
|
|
4217
|
+
};
|
|
3825
4218
|
const deserializeAws_json1_1DeleteFileSystemLustreResponse = (output, context) => {
|
|
3826
4219
|
return {
|
|
3827
4220
|
FinalBackupId: (0, smithy_client_1.expectString)(output.FinalBackupId),
|
|
@@ -3904,6 +4297,12 @@ const deserializeAws_json1_1DescribeDataRepositoryTasksResponse = (output, conte
|
|
|
3904
4297
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3905
4298
|
};
|
|
3906
4299
|
};
|
|
4300
|
+
const deserializeAws_json1_1DescribeFileCachesResponse = (output, context) => {
|
|
4301
|
+
return {
|
|
4302
|
+
FileCaches: output.FileCaches != null ? deserializeAws_json1_1FileCaches(output.FileCaches, context) : undefined,
|
|
4303
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4304
|
+
};
|
|
4305
|
+
};
|
|
3907
4306
|
const deserializeAws_json1_1DescribeFileSystemAliasesResponse = (output, context) => {
|
|
3908
4307
|
return {
|
|
3909
4308
|
Aliases: output.Aliases != null ? deserializeAws_json1_1Aliases(output.Aliases, context) : undefined,
|
|
@@ -3969,6 +4368,108 @@ const deserializeAws_json1_1EventTypes = (output, context) => {
|
|
|
3969
4368
|
});
|
|
3970
4369
|
return retVal;
|
|
3971
4370
|
};
|
|
4371
|
+
const deserializeAws_json1_1FileCache = (output, context) => {
|
|
4372
|
+
return {
|
|
4373
|
+
CreationTime: output.CreationTime != null
|
|
4374
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4375
|
+
: undefined,
|
|
4376
|
+
DNSName: (0, smithy_client_1.expectString)(output.DNSName),
|
|
4377
|
+
DataRepositoryAssociationIds: output.DataRepositoryAssociationIds != null
|
|
4378
|
+
? deserializeAws_json1_1DataRepositoryAssociationIds(output.DataRepositoryAssociationIds, context)
|
|
4379
|
+
: undefined,
|
|
4380
|
+
FailureDetails: output.FailureDetails != null
|
|
4381
|
+
? deserializeAws_json1_1FileCacheFailureDetails(output.FailureDetails, context)
|
|
4382
|
+
: undefined,
|
|
4383
|
+
FileCacheId: (0, smithy_client_1.expectString)(output.FileCacheId),
|
|
4384
|
+
FileCacheType: (0, smithy_client_1.expectString)(output.FileCacheType),
|
|
4385
|
+
FileCacheTypeVersion: (0, smithy_client_1.expectString)(output.FileCacheTypeVersion),
|
|
4386
|
+
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
4387
|
+
Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
|
|
4388
|
+
LustreConfiguration: output.LustreConfiguration != null
|
|
4389
|
+
? deserializeAws_json1_1FileCacheLustreConfiguration(output.LustreConfiguration, context)
|
|
4390
|
+
: undefined,
|
|
4391
|
+
NetworkInterfaceIds: output.NetworkInterfaceIds != null
|
|
4392
|
+
? deserializeAws_json1_1NetworkInterfaceIds(output.NetworkInterfaceIds, context)
|
|
4393
|
+
: undefined,
|
|
4394
|
+
OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
|
|
4395
|
+
ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
|
|
4396
|
+
StorageCapacity: (0, smithy_client_1.expectInt32)(output.StorageCapacity),
|
|
4397
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
|
|
4398
|
+
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
4399
|
+
};
|
|
4400
|
+
};
|
|
4401
|
+
const deserializeAws_json1_1FileCacheCreating = (output, context) => {
|
|
4402
|
+
return {
|
|
4403
|
+
CopyTagsToDataRepositoryAssociations: (0, smithy_client_1.expectBoolean)(output.CopyTagsToDataRepositoryAssociations),
|
|
4404
|
+
CreationTime: output.CreationTime != null
|
|
4405
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4406
|
+
: undefined,
|
|
4407
|
+
DNSName: (0, smithy_client_1.expectString)(output.DNSName),
|
|
4408
|
+
DataRepositoryAssociationIds: output.DataRepositoryAssociationIds != null
|
|
4409
|
+
? deserializeAws_json1_1DataRepositoryAssociationIds(output.DataRepositoryAssociationIds, context)
|
|
4410
|
+
: undefined,
|
|
4411
|
+
FailureDetails: output.FailureDetails != null
|
|
4412
|
+
? deserializeAws_json1_1FileCacheFailureDetails(output.FailureDetails, context)
|
|
4413
|
+
: undefined,
|
|
4414
|
+
FileCacheId: (0, smithy_client_1.expectString)(output.FileCacheId),
|
|
4415
|
+
FileCacheType: (0, smithy_client_1.expectString)(output.FileCacheType),
|
|
4416
|
+
FileCacheTypeVersion: (0, smithy_client_1.expectString)(output.FileCacheTypeVersion),
|
|
4417
|
+
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
4418
|
+
Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
|
|
4419
|
+
LustreConfiguration: output.LustreConfiguration != null
|
|
4420
|
+
? deserializeAws_json1_1FileCacheLustreConfiguration(output.LustreConfiguration, context)
|
|
4421
|
+
: undefined,
|
|
4422
|
+
NetworkInterfaceIds: output.NetworkInterfaceIds != null
|
|
4423
|
+
? deserializeAws_json1_1NetworkInterfaceIds(output.NetworkInterfaceIds, context)
|
|
4424
|
+
: undefined,
|
|
4425
|
+
OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
|
|
4426
|
+
ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
|
|
4427
|
+
StorageCapacity: (0, smithy_client_1.expectInt32)(output.StorageCapacity),
|
|
4428
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
|
|
4429
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
4430
|
+
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
4431
|
+
};
|
|
4432
|
+
};
|
|
4433
|
+
const deserializeAws_json1_1FileCacheFailureDetails = (output, context) => {
|
|
4434
|
+
return {
|
|
4435
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4436
|
+
};
|
|
4437
|
+
};
|
|
4438
|
+
const deserializeAws_json1_1FileCacheLustreConfiguration = (output, context) => {
|
|
4439
|
+
return {
|
|
4440
|
+
DeploymentType: (0, smithy_client_1.expectString)(output.DeploymentType),
|
|
4441
|
+
LogConfiguration: output.LogConfiguration != null
|
|
4442
|
+
? deserializeAws_json1_1LustreLogConfiguration(output.LogConfiguration, context)
|
|
4443
|
+
: undefined,
|
|
4444
|
+
MetadataConfiguration: output.MetadataConfiguration != null
|
|
4445
|
+
? deserializeAws_json1_1FileCacheLustreMetadataConfiguration(output.MetadataConfiguration, context)
|
|
4446
|
+
: undefined,
|
|
4447
|
+
MountName: (0, smithy_client_1.expectString)(output.MountName),
|
|
4448
|
+
PerUnitStorageThroughput: (0, smithy_client_1.expectInt32)(output.PerUnitStorageThroughput),
|
|
4449
|
+
WeeklyMaintenanceStartTime: (0, smithy_client_1.expectString)(output.WeeklyMaintenanceStartTime),
|
|
4450
|
+
};
|
|
4451
|
+
};
|
|
4452
|
+
const deserializeAws_json1_1FileCacheLustreMetadataConfiguration = (output, context) => {
|
|
4453
|
+
return {
|
|
4454
|
+
StorageCapacity: (0, smithy_client_1.expectInt32)(output.StorageCapacity),
|
|
4455
|
+
};
|
|
4456
|
+
};
|
|
4457
|
+
const deserializeAws_json1_1FileCacheNotFound = (output, context) => {
|
|
4458
|
+
return {
|
|
4459
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4460
|
+
};
|
|
4461
|
+
};
|
|
4462
|
+
const deserializeAws_json1_1FileCaches = (output, context) => {
|
|
4463
|
+
const retVal = (output || [])
|
|
4464
|
+
.filter((e) => e != null)
|
|
4465
|
+
.map((entry) => {
|
|
4466
|
+
if (entry === null) {
|
|
4467
|
+
return null;
|
|
4468
|
+
}
|
|
4469
|
+
return deserializeAws_json1_1FileCache(entry, context);
|
|
4470
|
+
});
|
|
4471
|
+
return retVal;
|
|
4472
|
+
};
|
|
3972
4473
|
const deserializeAws_json1_1FileSystem = (output, context) => {
|
|
3973
4474
|
return {
|
|
3974
4475
|
AdministrativeActions: output.AdministrativeActions != null
|
|
@@ -4171,6 +4672,11 @@ const deserializeAws_json1_1LustreRootSquashConfiguration = (output, context) =>
|
|
|
4171
4672
|
RootSquash: (0, smithy_client_1.expectString)(output.RootSquash),
|
|
4172
4673
|
};
|
|
4173
4674
|
};
|
|
4675
|
+
const deserializeAws_json1_1MissingFileCacheConfiguration = (output, context) => {
|
|
4676
|
+
return {
|
|
4677
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4678
|
+
};
|
|
4679
|
+
};
|
|
4174
4680
|
const deserializeAws_json1_1MissingFileSystemConfiguration = (output, context) => {
|
|
4175
4681
|
return {
|
|
4176
4682
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -4192,6 +4698,15 @@ const deserializeAws_json1_1NetworkInterfaceIds = (output, context) => {
|
|
|
4192
4698
|
});
|
|
4193
4699
|
return retVal;
|
|
4194
4700
|
};
|
|
4701
|
+
const deserializeAws_json1_1NFSDataRepositoryConfiguration = (output, context) => {
|
|
4702
|
+
return {
|
|
4703
|
+
AutoExportPolicy: output.AutoExportPolicy != null
|
|
4704
|
+
? deserializeAws_json1_1AutoExportPolicy(output.AutoExportPolicy, context)
|
|
4705
|
+
: undefined,
|
|
4706
|
+
DnsIps: output.DnsIps != null ? deserializeAws_json1_1RepositoryDnsIps(output.DnsIps, context) : undefined,
|
|
4707
|
+
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
4708
|
+
};
|
|
4709
|
+
};
|
|
4195
4710
|
const deserializeAws_json1_1NotServiceResourceError = (output, context) => {
|
|
4196
4711
|
return {
|
|
4197
4712
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -4348,6 +4863,17 @@ const deserializeAws_json1_1ReleaseFileSystemNfsV3LocksResponse = (output, conte
|
|
|
4348
4863
|
FileSystem: output.FileSystem != null ? deserializeAws_json1_1FileSystem(output.FileSystem, context) : undefined,
|
|
4349
4864
|
};
|
|
4350
4865
|
};
|
|
4866
|
+
const deserializeAws_json1_1RepositoryDnsIps = (output, context) => {
|
|
4867
|
+
const retVal = (output || [])
|
|
4868
|
+
.filter((e) => e != null)
|
|
4869
|
+
.map((entry) => {
|
|
4870
|
+
if (entry === null) {
|
|
4871
|
+
return null;
|
|
4872
|
+
}
|
|
4873
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
4874
|
+
});
|
|
4875
|
+
return retVal;
|
|
4876
|
+
};
|
|
4351
4877
|
const deserializeAws_json1_1ResourceDoesNotSupportTagging = (output, context) => {
|
|
4352
4878
|
return {
|
|
4353
4879
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -4482,6 +5008,17 @@ const deserializeAws_json1_1StorageVirtualMachines = (output, context) => {
|
|
|
4482
5008
|
});
|
|
4483
5009
|
return retVal;
|
|
4484
5010
|
};
|
|
5011
|
+
const deserializeAws_json1_1SubDirectoriesPaths = (output, context) => {
|
|
5012
|
+
const retVal = (output || [])
|
|
5013
|
+
.filter((e) => e != null)
|
|
5014
|
+
.map((entry) => {
|
|
5015
|
+
if (entry === null) {
|
|
5016
|
+
return null;
|
|
5017
|
+
}
|
|
5018
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5019
|
+
});
|
|
5020
|
+
return retVal;
|
|
5021
|
+
};
|
|
4485
5022
|
const deserializeAws_json1_1SubnetIds = (output, context) => {
|
|
4486
5023
|
const retVal = (output || [])
|
|
4487
5024
|
.filter((e) => e != null)
|
|
@@ -4558,6 +5095,11 @@ const deserializeAws_json1_1UpdateDataRepositoryAssociationResponse = (output, c
|
|
|
4558
5095
|
: undefined,
|
|
4559
5096
|
};
|
|
4560
5097
|
};
|
|
5098
|
+
const deserializeAws_json1_1UpdateFileCacheResponse = (output, context) => {
|
|
5099
|
+
return {
|
|
5100
|
+
FileCache: output.FileCache != null ? deserializeAws_json1_1FileCache(output.FileCache, context) : undefined,
|
|
5101
|
+
};
|
|
5102
|
+
};
|
|
4561
5103
|
const deserializeAws_json1_1UpdateFileSystemResponse = (output, context) => {
|
|
4562
5104
|
return {
|
|
4563
5105
|
FileSystem: output.FileSystem != null ? deserializeAws_json1_1FileSystem(output.FileSystem, context) : undefined,
|
|
@@ -4693,6 +5235,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4693
5235
|
}
|
|
4694
5236
|
return {};
|
|
4695
5237
|
});
|
|
5238
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
5239
|
+
var _a;
|
|
5240
|
+
const value = await parseBody(errorBody, context);
|
|
5241
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5242
|
+
return value;
|
|
5243
|
+
};
|
|
4696
5244
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4697
5245
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4698
5246
|
const sanitizeErrorCode = (rawValue) => {
|