@aws-sdk/client-datasync 3.118.1 → 3.127.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 +31 -0
- package/dist-cjs/DataSync.js +30 -0
- package/dist-cjs/commands/CreateLocationFsxOntapCommand.js +36 -0
- package/dist-cjs/commands/DescribeLocationFsxOntapCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +51 -15
- package/dist-cjs/protocols/Aws_json1_1.js +617 -572
- package/dist-es/DataSync.js +30 -0
- package/dist-es/commands/CreateLocationFsxOntapCommand.js +39 -0
- package/dist-es/commands/DescribeLocationFsxOntapCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +33 -13
- package/dist-es/protocols/Aws_json1_1.js +505 -442
- package/dist-types/DataSync.d.ts +17 -4
- package/dist-types/DataSyncClient.d.ts +4 -2
- package/dist-types/commands/CreateLocationFsxOntapCommand.d.ts +36 -0
- package/dist-types/commands/CreateLocationObjectStorageCommand.d.ts +1 -2
- package/dist-types/commands/DescribeLocationFsxOntapCommand.d.ts +35 -0
- package/dist-types/commands/DescribeLocationObjectStorageCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +293 -154
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/ts3.4/DataSync.d.ts +10 -0
- package/dist-types/ts3.4/DataSyncClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/CreateLocationFsxOntapCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeLocationFsxOntapCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +83 -14
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
- package/package.json +26 -26
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UpdateTaskExecutionCommand = exports.deserializeAws_json1_1UpdateTaskCommand = exports.deserializeAws_json1_1UpdateLocationSmbCommand = exports.deserializeAws_json1_1UpdateLocationObjectStorageCommand = exports.deserializeAws_json1_1UpdateLocationNfsCommand = exports.deserializeAws_json1_1UpdateLocationHdfsCommand = exports.deserializeAws_json1_1UpdateAgentCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartTaskExecutionCommand = exports.deserializeAws_json1_1ListTasksCommand = exports.deserializeAws_json1_1ListTaskExecutionsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListLocationsCommand = exports.deserializeAws_json1_1ListAgentsCommand = exports.deserializeAws_json1_1DescribeTaskExecutionCommand = exports.deserializeAws_json1_1DescribeTaskCommand = exports.deserializeAws_json1_1DescribeLocationSmbCommand = exports.deserializeAws_json1_1DescribeLocationS3Command = exports.deserializeAws_json1_1DescribeLocationObjectStorageCommand = exports.deserializeAws_json1_1DescribeLocationNfsCommand = exports.deserializeAws_json1_1DescribeLocationHdfsCommand = exports.deserializeAws_json1_1DescribeLocationFsxWindowsCommand = exports.deserializeAws_json1_1DescribeLocationFsxOpenZfsCommand = exports.deserializeAws_json1_1DescribeLocationFsxLustreCommand = exports.deserializeAws_json1_1DescribeLocationEfsCommand = exports.deserializeAws_json1_1DescribeAgentCommand = exports.deserializeAws_json1_1DeleteTaskCommand = exports.deserializeAws_json1_1DeleteLocationCommand = exports.deserializeAws_json1_1DeleteAgentCommand = exports.deserializeAws_json1_1CreateTaskCommand = exports.deserializeAws_json1_1CreateLocationSmbCommand = exports.deserializeAws_json1_1CreateLocationS3Command = exports.deserializeAws_json1_1CreateLocationObjectStorageCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1CreateLocationFsxOpenZfsCommand = exports.deserializeAws_json1_1CreateLocationFsxOntapCommand = exports.deserializeAws_json1_1CreateLocationFsxLustreCommand = exports.deserializeAws_json1_1CreateLocationEfsCommand = exports.deserializeAws_json1_1CreateAgentCommand = exports.deserializeAws_json1_1CancelTaskExecutionCommand = exports.serializeAws_json1_1UpdateTaskExecutionCommand = exports.serializeAws_json1_1UpdateTaskCommand = exports.serializeAws_json1_1UpdateLocationSmbCommand = exports.serializeAws_json1_1UpdateLocationObjectStorageCommand = exports.serializeAws_json1_1UpdateLocationNfsCommand = exports.serializeAws_json1_1UpdateLocationHdfsCommand = exports.serializeAws_json1_1UpdateAgentCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StartTaskExecutionCommand = exports.serializeAws_json1_1ListTasksCommand = exports.serializeAws_json1_1ListTaskExecutionsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListLocationsCommand = exports.serializeAws_json1_1ListAgentsCommand = exports.serializeAws_json1_1DescribeTaskExecutionCommand = exports.serializeAws_json1_1DescribeTaskCommand = exports.serializeAws_json1_1DescribeLocationSmbCommand = exports.serializeAws_json1_1DescribeLocationS3Command = exports.serializeAws_json1_1DescribeLocationObjectStorageCommand = exports.serializeAws_json1_1DescribeLocationNfsCommand = exports.serializeAws_json1_1DescribeLocationHdfsCommand = exports.serializeAws_json1_1DescribeLocationFsxWindowsCommand = exports.serializeAws_json1_1DescribeLocationFsxOpenZfsCommand = exports.serializeAws_json1_1DescribeLocationFsxOntapCommand = exports.serializeAws_json1_1DescribeLocationFsxLustreCommand = exports.serializeAws_json1_1DescribeLocationEfsCommand = exports.serializeAws_json1_1DescribeAgentCommand = exports.serializeAws_json1_1DeleteTaskCommand = exports.serializeAws_json1_1DeleteLocationCommand = exports.serializeAws_json1_1DeleteAgentCommand = exports.serializeAws_json1_1CreateTaskCommand = exports.serializeAws_json1_1CreateLocationSmbCommand = exports.serializeAws_json1_1CreateLocationS3Command = exports.serializeAws_json1_1CreateLocationObjectStorageCommand = exports.serializeAws_json1_1CreateLocationNfsCommand = exports.serializeAws_json1_1CreateLocationHdfsCommand = exports.serializeAws_json1_1CreateLocationFsxWindowsCommand = exports.serializeAws_json1_1CreateLocationFsxOpenZfsCommand = exports.serializeAws_json1_1CreateLocationFsxOntapCommand = exports.serializeAws_json1_1CreateLocationFsxLustreCommand = exports.serializeAws_json1_1CreateLocationEfsCommand = exports.serializeAws_json1_1CreateAgentCommand = exports.serializeAws_json1_1CancelTaskExecutionCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateTaskExecutionCommand = exports.deserializeAws_json1_1UpdateTaskCommand = exports.deserializeAws_json1_1UpdateLocationSmbCommand = exports.deserializeAws_json1_1UpdateLocationObjectStorageCommand = exports.deserializeAws_json1_1UpdateLocationNfsCommand = exports.deserializeAws_json1_1UpdateLocationHdfsCommand = exports.deserializeAws_json1_1UpdateAgentCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartTaskExecutionCommand = exports.deserializeAws_json1_1ListTasksCommand = exports.deserializeAws_json1_1ListTaskExecutionsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListLocationsCommand = exports.deserializeAws_json1_1ListAgentsCommand = exports.deserializeAws_json1_1DescribeTaskExecutionCommand = exports.deserializeAws_json1_1DescribeTaskCommand = exports.deserializeAws_json1_1DescribeLocationSmbCommand = exports.deserializeAws_json1_1DescribeLocationS3Command = exports.deserializeAws_json1_1DescribeLocationObjectStorageCommand = exports.deserializeAws_json1_1DescribeLocationNfsCommand = exports.deserializeAws_json1_1DescribeLocationHdfsCommand = exports.deserializeAws_json1_1DescribeLocationFsxWindowsCommand = exports.deserializeAws_json1_1DescribeLocationFsxOpenZfsCommand = exports.deserializeAws_json1_1DescribeLocationFsxOntapCommand = exports.deserializeAws_json1_1DescribeLocationFsxLustreCommand = exports.deserializeAws_json1_1DescribeLocationEfsCommand = exports.deserializeAws_json1_1DescribeAgentCommand = exports.deserializeAws_json1_1DeleteTaskCommand = exports.deserializeAws_json1_1DeleteLocationCommand = exports.deserializeAws_json1_1DeleteAgentCommand = exports.deserializeAws_json1_1CreateTaskCommand = exports.deserializeAws_json1_1CreateLocationSmbCommand = exports.deserializeAws_json1_1CreateLocationS3Command = exports.deserializeAws_json1_1CreateLocationObjectStorageCommand = exports.deserializeAws_json1_1CreateLocationNfsCommand = exports.deserializeAws_json1_1CreateLocationHdfsCommand = exports.deserializeAws_json1_1CreateLocationFsxWindowsCommand = 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 DataSyncServiceException_1 = require("../models/DataSyncServiceException");
|
|
@@ -46,6 +46,16 @@ const serializeAws_json1_1CreateLocationFsxLustreCommand = async (input, context
|
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
48
|
exports.serializeAws_json1_1CreateLocationFsxLustreCommand = serializeAws_json1_1CreateLocationFsxLustreCommand;
|
|
49
|
+
const serializeAws_json1_1CreateLocationFsxOntapCommand = async (input, context) => {
|
|
50
|
+
const headers = {
|
|
51
|
+
"content-type": "application/x-amz-json-1.1",
|
|
52
|
+
"x-amz-target": "FmrsService.CreateLocationFsxOntap",
|
|
53
|
+
};
|
|
54
|
+
let body;
|
|
55
|
+
body = JSON.stringify(serializeAws_json1_1CreateLocationFsxOntapRequest(input, context));
|
|
56
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
+
};
|
|
58
|
+
exports.serializeAws_json1_1CreateLocationFsxOntapCommand = serializeAws_json1_1CreateLocationFsxOntapCommand;
|
|
49
59
|
const serializeAws_json1_1CreateLocationFsxOpenZfsCommand = async (input, context) => {
|
|
50
60
|
const headers = {
|
|
51
61
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -186,6 +196,16 @@ const serializeAws_json1_1DescribeLocationFsxLustreCommand = async (input, conte
|
|
|
186
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
197
|
};
|
|
188
198
|
exports.serializeAws_json1_1DescribeLocationFsxLustreCommand = serializeAws_json1_1DescribeLocationFsxLustreCommand;
|
|
199
|
+
const serializeAws_json1_1DescribeLocationFsxOntapCommand = async (input, context) => {
|
|
200
|
+
const headers = {
|
|
201
|
+
"content-type": "application/x-amz-json-1.1",
|
|
202
|
+
"x-amz-target": "FmrsService.DescribeLocationFsxOntap",
|
|
203
|
+
};
|
|
204
|
+
let body;
|
|
205
|
+
body = JSON.stringify(serializeAws_json1_1DescribeLocationFsxOntapRequest(input, context));
|
|
206
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
|
+
};
|
|
208
|
+
exports.serializeAws_json1_1DescribeLocationFsxOntapCommand = serializeAws_json1_1DescribeLocationFsxOntapCommand;
|
|
189
209
|
const serializeAws_json1_1DescribeLocationFsxOpenZfsCommand = async (input, context) => {
|
|
190
210
|
const headers = {
|
|
191
211
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -446,8 +466,7 @@ const deserializeAws_json1_1CancelTaskExecutionCommandError = async (output, con
|
|
|
446
466
|
body: await parseBody(output.body, context),
|
|
447
467
|
};
|
|
448
468
|
let response;
|
|
449
|
-
|
|
450
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
469
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
451
470
|
switch (errorCode) {
|
|
452
471
|
case "InternalException":
|
|
453
472
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -457,10 +476,12 @@ const deserializeAws_json1_1CancelTaskExecutionCommandError = async (output, con
|
|
|
457
476
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
458
477
|
default:
|
|
459
478
|
const parsedBody = parsedOutput.body;
|
|
479
|
+
const $metadata = deserializeMetadata(output);
|
|
480
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
460
481
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
461
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
482
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
462
483
|
$fault: "client",
|
|
463
|
-
$metadata
|
|
484
|
+
$metadata,
|
|
464
485
|
});
|
|
465
486
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
466
487
|
}
|
|
@@ -485,8 +506,7 @@ const deserializeAws_json1_1CreateAgentCommandError = async (output, context) =>
|
|
|
485
506
|
body: await parseBody(output.body, context),
|
|
486
507
|
};
|
|
487
508
|
let response;
|
|
488
|
-
|
|
489
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
509
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
490
510
|
switch (errorCode) {
|
|
491
511
|
case "InternalException":
|
|
492
512
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -496,10 +516,12 @@ const deserializeAws_json1_1CreateAgentCommandError = async (output, context) =>
|
|
|
496
516
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
497
517
|
default:
|
|
498
518
|
const parsedBody = parsedOutput.body;
|
|
519
|
+
const $metadata = deserializeMetadata(output);
|
|
520
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
499
521
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
500
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
522
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
501
523
|
$fault: "client",
|
|
502
|
-
$metadata
|
|
524
|
+
$metadata,
|
|
503
525
|
});
|
|
504
526
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
505
527
|
}
|
|
@@ -524,8 +546,7 @@ const deserializeAws_json1_1CreateLocationEfsCommandError = async (output, conte
|
|
|
524
546
|
body: await parseBody(output.body, context),
|
|
525
547
|
};
|
|
526
548
|
let response;
|
|
527
|
-
|
|
528
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
549
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
550
|
switch (errorCode) {
|
|
530
551
|
case "InternalException":
|
|
531
552
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -535,10 +556,12 @@ const deserializeAws_json1_1CreateLocationEfsCommandError = async (output, conte
|
|
|
535
556
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
536
557
|
default:
|
|
537
558
|
const parsedBody = parsedOutput.body;
|
|
559
|
+
const $metadata = deserializeMetadata(output);
|
|
560
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
538
561
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
539
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
562
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
540
563
|
$fault: "client",
|
|
541
|
-
$metadata
|
|
564
|
+
$metadata,
|
|
542
565
|
});
|
|
543
566
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
544
567
|
}
|
|
@@ -563,8 +586,47 @@ const deserializeAws_json1_1CreateLocationFsxLustreCommandError = async (output,
|
|
|
563
586
|
body: await parseBody(output.body, context),
|
|
564
587
|
};
|
|
565
588
|
let response;
|
|
566
|
-
|
|
567
|
-
|
|
589
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
590
|
+
switch (errorCode) {
|
|
591
|
+
case "InternalException":
|
|
592
|
+
case "com.amazonaws.datasync#InternalException":
|
|
593
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
594
|
+
case "InvalidRequestException":
|
|
595
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
596
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
597
|
+
default:
|
|
598
|
+
const parsedBody = parsedOutput.body;
|
|
599
|
+
const $metadata = deserializeMetadata(output);
|
|
600
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
601
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
602
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
603
|
+
$fault: "client",
|
|
604
|
+
$metadata,
|
|
605
|
+
});
|
|
606
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
const deserializeAws_json1_1CreateLocationFsxOntapCommand = async (output, context) => {
|
|
610
|
+
if (output.statusCode >= 300) {
|
|
611
|
+
return deserializeAws_json1_1CreateLocationFsxOntapCommandError(output, context);
|
|
612
|
+
}
|
|
613
|
+
const data = await parseBody(output.body, context);
|
|
614
|
+
let contents = {};
|
|
615
|
+
contents = deserializeAws_json1_1CreateLocationFsxOntapResponse(data, context);
|
|
616
|
+
const response = {
|
|
617
|
+
$metadata: deserializeMetadata(output),
|
|
618
|
+
...contents,
|
|
619
|
+
};
|
|
620
|
+
return Promise.resolve(response);
|
|
621
|
+
};
|
|
622
|
+
exports.deserializeAws_json1_1CreateLocationFsxOntapCommand = deserializeAws_json1_1CreateLocationFsxOntapCommand;
|
|
623
|
+
const deserializeAws_json1_1CreateLocationFsxOntapCommandError = async (output, context) => {
|
|
624
|
+
const parsedOutput = {
|
|
625
|
+
...output,
|
|
626
|
+
body: await parseBody(output.body, context),
|
|
627
|
+
};
|
|
628
|
+
let response;
|
|
629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
630
|
switch (errorCode) {
|
|
569
631
|
case "InternalException":
|
|
570
632
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -574,10 +636,12 @@ const deserializeAws_json1_1CreateLocationFsxLustreCommandError = async (output,
|
|
|
574
636
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
575
637
|
default:
|
|
576
638
|
const parsedBody = parsedOutput.body;
|
|
639
|
+
const $metadata = deserializeMetadata(output);
|
|
640
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
577
641
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
578
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
642
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
579
643
|
$fault: "client",
|
|
580
|
-
$metadata
|
|
644
|
+
$metadata,
|
|
581
645
|
});
|
|
582
646
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
583
647
|
}
|
|
@@ -602,8 +666,7 @@ const deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError = async (output
|
|
|
602
666
|
body: await parseBody(output.body, context),
|
|
603
667
|
};
|
|
604
668
|
let response;
|
|
605
|
-
|
|
606
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
669
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
607
670
|
switch (errorCode) {
|
|
608
671
|
case "InternalException":
|
|
609
672
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -613,10 +676,12 @@ const deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError = async (output
|
|
|
613
676
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
614
677
|
default:
|
|
615
678
|
const parsedBody = parsedOutput.body;
|
|
679
|
+
const $metadata = deserializeMetadata(output);
|
|
680
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
616
681
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
617
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
682
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
618
683
|
$fault: "client",
|
|
619
|
-
$metadata
|
|
684
|
+
$metadata,
|
|
620
685
|
});
|
|
621
686
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
622
687
|
}
|
|
@@ -641,8 +706,7 @@ const deserializeAws_json1_1CreateLocationFsxWindowsCommandError = async (output
|
|
|
641
706
|
body: await parseBody(output.body, context),
|
|
642
707
|
};
|
|
643
708
|
let response;
|
|
644
|
-
|
|
645
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
646
710
|
switch (errorCode) {
|
|
647
711
|
case "InternalException":
|
|
648
712
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -652,10 +716,12 @@ const deserializeAws_json1_1CreateLocationFsxWindowsCommandError = async (output
|
|
|
652
716
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
653
717
|
default:
|
|
654
718
|
const parsedBody = parsedOutput.body;
|
|
719
|
+
const $metadata = deserializeMetadata(output);
|
|
720
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
655
721
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
656
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
722
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
657
723
|
$fault: "client",
|
|
658
|
-
$metadata
|
|
724
|
+
$metadata,
|
|
659
725
|
});
|
|
660
726
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
661
727
|
}
|
|
@@ -680,8 +746,7 @@ const deserializeAws_json1_1CreateLocationHdfsCommandError = async (output, cont
|
|
|
680
746
|
body: await parseBody(output.body, context),
|
|
681
747
|
};
|
|
682
748
|
let response;
|
|
683
|
-
|
|
684
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
749
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
685
750
|
switch (errorCode) {
|
|
686
751
|
case "InternalException":
|
|
687
752
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -691,10 +756,12 @@ const deserializeAws_json1_1CreateLocationHdfsCommandError = async (output, cont
|
|
|
691
756
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
692
757
|
default:
|
|
693
758
|
const parsedBody = parsedOutput.body;
|
|
759
|
+
const $metadata = deserializeMetadata(output);
|
|
760
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
694
761
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
695
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
762
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
696
763
|
$fault: "client",
|
|
697
|
-
$metadata
|
|
764
|
+
$metadata,
|
|
698
765
|
});
|
|
699
766
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
700
767
|
}
|
|
@@ -719,8 +786,7 @@ const deserializeAws_json1_1CreateLocationNfsCommandError = async (output, conte
|
|
|
719
786
|
body: await parseBody(output.body, context),
|
|
720
787
|
};
|
|
721
788
|
let response;
|
|
722
|
-
|
|
723
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
790
|
switch (errorCode) {
|
|
725
791
|
case "InternalException":
|
|
726
792
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -730,10 +796,12 @@ const deserializeAws_json1_1CreateLocationNfsCommandError = async (output, conte
|
|
|
730
796
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
731
797
|
default:
|
|
732
798
|
const parsedBody = parsedOutput.body;
|
|
799
|
+
const $metadata = deserializeMetadata(output);
|
|
800
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
733
801
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
734
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
802
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
735
803
|
$fault: "client",
|
|
736
|
-
$metadata
|
|
804
|
+
$metadata,
|
|
737
805
|
});
|
|
738
806
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
739
807
|
}
|
|
@@ -758,8 +826,7 @@ const deserializeAws_json1_1CreateLocationObjectStorageCommandError = async (out
|
|
|
758
826
|
body: await parseBody(output.body, context),
|
|
759
827
|
};
|
|
760
828
|
let response;
|
|
761
|
-
|
|
762
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
830
|
switch (errorCode) {
|
|
764
831
|
case "InternalException":
|
|
765
832
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -769,10 +836,12 @@ const deserializeAws_json1_1CreateLocationObjectStorageCommandError = async (out
|
|
|
769
836
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
770
837
|
default:
|
|
771
838
|
const parsedBody = parsedOutput.body;
|
|
839
|
+
const $metadata = deserializeMetadata(output);
|
|
840
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
772
841
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
773
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
842
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
774
843
|
$fault: "client",
|
|
775
|
-
$metadata
|
|
844
|
+
$metadata,
|
|
776
845
|
});
|
|
777
846
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
778
847
|
}
|
|
@@ -797,8 +866,7 @@ const deserializeAws_json1_1CreateLocationS3CommandError = async (output, contex
|
|
|
797
866
|
body: await parseBody(output.body, context),
|
|
798
867
|
};
|
|
799
868
|
let response;
|
|
800
|
-
|
|
801
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
870
|
switch (errorCode) {
|
|
803
871
|
case "InternalException":
|
|
804
872
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -808,10 +876,12 @@ const deserializeAws_json1_1CreateLocationS3CommandError = async (output, contex
|
|
|
808
876
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
809
877
|
default:
|
|
810
878
|
const parsedBody = parsedOutput.body;
|
|
879
|
+
const $metadata = deserializeMetadata(output);
|
|
880
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
811
881
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
812
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
882
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
813
883
|
$fault: "client",
|
|
814
|
-
$metadata
|
|
884
|
+
$metadata,
|
|
815
885
|
});
|
|
816
886
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
817
887
|
}
|
|
@@ -836,8 +906,7 @@ const deserializeAws_json1_1CreateLocationSmbCommandError = async (output, conte
|
|
|
836
906
|
body: await parseBody(output.body, context),
|
|
837
907
|
};
|
|
838
908
|
let response;
|
|
839
|
-
|
|
840
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
909
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
910
|
switch (errorCode) {
|
|
842
911
|
case "InternalException":
|
|
843
912
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -847,10 +916,12 @@ const deserializeAws_json1_1CreateLocationSmbCommandError = async (output, conte
|
|
|
847
916
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
848
917
|
default:
|
|
849
918
|
const parsedBody = parsedOutput.body;
|
|
919
|
+
const $metadata = deserializeMetadata(output);
|
|
920
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
850
921
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
851
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
922
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
852
923
|
$fault: "client",
|
|
853
|
-
$metadata
|
|
924
|
+
$metadata,
|
|
854
925
|
});
|
|
855
926
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
856
927
|
}
|
|
@@ -875,8 +946,7 @@ const deserializeAws_json1_1CreateTaskCommandError = async (output, context) =>
|
|
|
875
946
|
body: await parseBody(output.body, context),
|
|
876
947
|
};
|
|
877
948
|
let response;
|
|
878
|
-
|
|
879
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
950
|
switch (errorCode) {
|
|
881
951
|
case "InternalException":
|
|
882
952
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -886,10 +956,12 @@ const deserializeAws_json1_1CreateTaskCommandError = async (output, context) =>
|
|
|
886
956
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
887
957
|
default:
|
|
888
958
|
const parsedBody = parsedOutput.body;
|
|
959
|
+
const $metadata = deserializeMetadata(output);
|
|
960
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
889
961
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
890
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
962
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
891
963
|
$fault: "client",
|
|
892
|
-
$metadata
|
|
964
|
+
$metadata,
|
|
893
965
|
});
|
|
894
966
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
895
967
|
}
|
|
@@ -914,8 +986,7 @@ const deserializeAws_json1_1DeleteAgentCommandError = async (output, context) =>
|
|
|
914
986
|
body: await parseBody(output.body, context),
|
|
915
987
|
};
|
|
916
988
|
let response;
|
|
917
|
-
|
|
918
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
989
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
990
|
switch (errorCode) {
|
|
920
991
|
case "InternalException":
|
|
921
992
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -925,10 +996,12 @@ const deserializeAws_json1_1DeleteAgentCommandError = async (output, context) =>
|
|
|
925
996
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
926
997
|
default:
|
|
927
998
|
const parsedBody = parsedOutput.body;
|
|
999
|
+
const $metadata = deserializeMetadata(output);
|
|
1000
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
928
1001
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
929
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1002
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
930
1003
|
$fault: "client",
|
|
931
|
-
$metadata
|
|
1004
|
+
$metadata,
|
|
932
1005
|
});
|
|
933
1006
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
934
1007
|
}
|
|
@@ -953,8 +1026,7 @@ const deserializeAws_json1_1DeleteLocationCommandError = async (output, context)
|
|
|
953
1026
|
body: await parseBody(output.body, context),
|
|
954
1027
|
};
|
|
955
1028
|
let response;
|
|
956
|
-
|
|
957
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
1030
|
switch (errorCode) {
|
|
959
1031
|
case "InternalException":
|
|
960
1032
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -964,10 +1036,12 @@ const deserializeAws_json1_1DeleteLocationCommandError = async (output, context)
|
|
|
964
1036
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
965
1037
|
default:
|
|
966
1038
|
const parsedBody = parsedOutput.body;
|
|
1039
|
+
const $metadata = deserializeMetadata(output);
|
|
1040
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
967
1041
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
968
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1042
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
969
1043
|
$fault: "client",
|
|
970
|
-
$metadata
|
|
1044
|
+
$metadata,
|
|
971
1045
|
});
|
|
972
1046
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
973
1047
|
}
|
|
@@ -992,8 +1066,7 @@ const deserializeAws_json1_1DeleteTaskCommandError = async (output, context) =>
|
|
|
992
1066
|
body: await parseBody(output.body, context),
|
|
993
1067
|
};
|
|
994
1068
|
let response;
|
|
995
|
-
|
|
996
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
1070
|
switch (errorCode) {
|
|
998
1071
|
case "InternalException":
|
|
999
1072
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1003,10 +1076,12 @@ const deserializeAws_json1_1DeleteTaskCommandError = async (output, context) =>
|
|
|
1003
1076
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1004
1077
|
default:
|
|
1005
1078
|
const parsedBody = parsedOutput.body;
|
|
1079
|
+
const $metadata = deserializeMetadata(output);
|
|
1080
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1006
1081
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1007
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1082
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1008
1083
|
$fault: "client",
|
|
1009
|
-
$metadata
|
|
1084
|
+
$metadata,
|
|
1010
1085
|
});
|
|
1011
1086
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1012
1087
|
}
|
|
@@ -1031,8 +1106,7 @@ const deserializeAws_json1_1DescribeAgentCommandError = async (output, context)
|
|
|
1031
1106
|
body: await parseBody(output.body, context),
|
|
1032
1107
|
};
|
|
1033
1108
|
let response;
|
|
1034
|
-
|
|
1035
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
1110
|
switch (errorCode) {
|
|
1037
1111
|
case "InternalException":
|
|
1038
1112
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1042,10 +1116,12 @@ const deserializeAws_json1_1DescribeAgentCommandError = async (output, context)
|
|
|
1042
1116
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1043
1117
|
default:
|
|
1044
1118
|
const parsedBody = parsedOutput.body;
|
|
1119
|
+
const $metadata = deserializeMetadata(output);
|
|
1120
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1045
1121
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1046
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1122
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1047
1123
|
$fault: "client",
|
|
1048
|
-
$metadata
|
|
1124
|
+
$metadata,
|
|
1049
1125
|
});
|
|
1050
1126
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1051
1127
|
}
|
|
@@ -1070,8 +1146,7 @@ const deserializeAws_json1_1DescribeLocationEfsCommandError = async (output, con
|
|
|
1070
1146
|
body: await parseBody(output.body, context),
|
|
1071
1147
|
};
|
|
1072
1148
|
let response;
|
|
1073
|
-
|
|
1074
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1075
1150
|
switch (errorCode) {
|
|
1076
1151
|
case "InternalException":
|
|
1077
1152
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1081,10 +1156,12 @@ const deserializeAws_json1_1DescribeLocationEfsCommandError = async (output, con
|
|
|
1081
1156
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1082
1157
|
default:
|
|
1083
1158
|
const parsedBody = parsedOutput.body;
|
|
1159
|
+
const $metadata = deserializeMetadata(output);
|
|
1160
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1084
1161
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1085
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1162
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1086
1163
|
$fault: "client",
|
|
1087
|
-
$metadata
|
|
1164
|
+
$metadata,
|
|
1088
1165
|
});
|
|
1089
1166
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1090
1167
|
}
|
|
@@ -1109,8 +1186,47 @@ const deserializeAws_json1_1DescribeLocationFsxLustreCommandError = async (outpu
|
|
|
1109
1186
|
body: await parseBody(output.body, context),
|
|
1110
1187
|
};
|
|
1111
1188
|
let response;
|
|
1112
|
-
|
|
1113
|
-
|
|
1189
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
|
+
switch (errorCode) {
|
|
1191
|
+
case "InternalException":
|
|
1192
|
+
case "com.amazonaws.datasync#InternalException":
|
|
1193
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1194
|
+
case "InvalidRequestException":
|
|
1195
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1196
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1197
|
+
default:
|
|
1198
|
+
const parsedBody = parsedOutput.body;
|
|
1199
|
+
const $metadata = deserializeMetadata(output);
|
|
1200
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1201
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1202
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1203
|
+
$fault: "client",
|
|
1204
|
+
$metadata,
|
|
1205
|
+
});
|
|
1206
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1209
|
+
const deserializeAws_json1_1DescribeLocationFsxOntapCommand = async (output, context) => {
|
|
1210
|
+
if (output.statusCode >= 300) {
|
|
1211
|
+
return deserializeAws_json1_1DescribeLocationFsxOntapCommandError(output, context);
|
|
1212
|
+
}
|
|
1213
|
+
const data = await parseBody(output.body, context);
|
|
1214
|
+
let contents = {};
|
|
1215
|
+
contents = deserializeAws_json1_1DescribeLocationFsxOntapResponse(data, context);
|
|
1216
|
+
const response = {
|
|
1217
|
+
$metadata: deserializeMetadata(output),
|
|
1218
|
+
...contents,
|
|
1219
|
+
};
|
|
1220
|
+
return Promise.resolve(response);
|
|
1221
|
+
};
|
|
1222
|
+
exports.deserializeAws_json1_1DescribeLocationFsxOntapCommand = deserializeAws_json1_1DescribeLocationFsxOntapCommand;
|
|
1223
|
+
const deserializeAws_json1_1DescribeLocationFsxOntapCommandError = async (output, context) => {
|
|
1224
|
+
const parsedOutput = {
|
|
1225
|
+
...output,
|
|
1226
|
+
body: await parseBody(output.body, context),
|
|
1227
|
+
};
|
|
1228
|
+
let response;
|
|
1229
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
1230
|
switch (errorCode) {
|
|
1115
1231
|
case "InternalException":
|
|
1116
1232
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1120,10 +1236,12 @@ const deserializeAws_json1_1DescribeLocationFsxLustreCommandError = async (outpu
|
|
|
1120
1236
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1121
1237
|
default:
|
|
1122
1238
|
const parsedBody = parsedOutput.body;
|
|
1239
|
+
const $metadata = deserializeMetadata(output);
|
|
1240
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1123
1241
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1124
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1242
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1125
1243
|
$fault: "client",
|
|
1126
|
-
$metadata
|
|
1244
|
+
$metadata,
|
|
1127
1245
|
});
|
|
1128
1246
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1129
1247
|
}
|
|
@@ -1148,8 +1266,7 @@ const deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError = async (outp
|
|
|
1148
1266
|
body: await parseBody(output.body, context),
|
|
1149
1267
|
};
|
|
1150
1268
|
let response;
|
|
1151
|
-
|
|
1152
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
1270
|
switch (errorCode) {
|
|
1154
1271
|
case "InternalException":
|
|
1155
1272
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1159,10 +1276,12 @@ const deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError = async (outp
|
|
|
1159
1276
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1160
1277
|
default:
|
|
1161
1278
|
const parsedBody = parsedOutput.body;
|
|
1279
|
+
const $metadata = deserializeMetadata(output);
|
|
1280
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1162
1281
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1163
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1282
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1164
1283
|
$fault: "client",
|
|
1165
|
-
$metadata
|
|
1284
|
+
$metadata,
|
|
1166
1285
|
});
|
|
1167
1286
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1168
1287
|
}
|
|
@@ -1187,8 +1306,7 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = async (outp
|
|
|
1187
1306
|
body: await parseBody(output.body, context),
|
|
1188
1307
|
};
|
|
1189
1308
|
let response;
|
|
1190
|
-
|
|
1191
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1192
1310
|
switch (errorCode) {
|
|
1193
1311
|
case "InternalException":
|
|
1194
1312
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1198,10 +1316,12 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = async (outp
|
|
|
1198
1316
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1199
1317
|
default:
|
|
1200
1318
|
const parsedBody = parsedOutput.body;
|
|
1319
|
+
const $metadata = deserializeMetadata(output);
|
|
1320
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1201
1321
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1202
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1322
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1203
1323
|
$fault: "client",
|
|
1204
|
-
$metadata
|
|
1324
|
+
$metadata,
|
|
1205
1325
|
});
|
|
1206
1326
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1207
1327
|
}
|
|
@@ -1226,8 +1346,7 @@ const deserializeAws_json1_1DescribeLocationHdfsCommandError = async (output, co
|
|
|
1226
1346
|
body: await parseBody(output.body, context),
|
|
1227
1347
|
};
|
|
1228
1348
|
let response;
|
|
1229
|
-
|
|
1230
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
1350
|
switch (errorCode) {
|
|
1232
1351
|
case "InternalException":
|
|
1233
1352
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1237,10 +1356,12 @@ const deserializeAws_json1_1DescribeLocationHdfsCommandError = async (output, co
|
|
|
1237
1356
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1238
1357
|
default:
|
|
1239
1358
|
const parsedBody = parsedOutput.body;
|
|
1359
|
+
const $metadata = deserializeMetadata(output);
|
|
1360
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1240
1361
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1241
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1362
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1242
1363
|
$fault: "client",
|
|
1243
|
-
$metadata
|
|
1364
|
+
$metadata,
|
|
1244
1365
|
});
|
|
1245
1366
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1246
1367
|
}
|
|
@@ -1265,8 +1386,7 @@ const deserializeAws_json1_1DescribeLocationNfsCommandError = async (output, con
|
|
|
1265
1386
|
body: await parseBody(output.body, context),
|
|
1266
1387
|
};
|
|
1267
1388
|
let response;
|
|
1268
|
-
|
|
1269
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1389
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
1390
|
switch (errorCode) {
|
|
1271
1391
|
case "InternalException":
|
|
1272
1392
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1276,10 +1396,12 @@ const deserializeAws_json1_1DescribeLocationNfsCommandError = async (output, con
|
|
|
1276
1396
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1277
1397
|
default:
|
|
1278
1398
|
const parsedBody = parsedOutput.body;
|
|
1399
|
+
const $metadata = deserializeMetadata(output);
|
|
1400
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1279
1401
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1280
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1402
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1281
1403
|
$fault: "client",
|
|
1282
|
-
$metadata
|
|
1404
|
+
$metadata,
|
|
1283
1405
|
});
|
|
1284
1406
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1285
1407
|
}
|
|
@@ -1304,8 +1426,7 @@ const deserializeAws_json1_1DescribeLocationObjectStorageCommandError = async (o
|
|
|
1304
1426
|
body: await parseBody(output.body, context),
|
|
1305
1427
|
};
|
|
1306
1428
|
let response;
|
|
1307
|
-
|
|
1308
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
1430
|
switch (errorCode) {
|
|
1310
1431
|
case "InternalException":
|
|
1311
1432
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1315,10 +1436,12 @@ const deserializeAws_json1_1DescribeLocationObjectStorageCommandError = async (o
|
|
|
1315
1436
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1316
1437
|
default:
|
|
1317
1438
|
const parsedBody = parsedOutput.body;
|
|
1439
|
+
const $metadata = deserializeMetadata(output);
|
|
1440
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1318
1441
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1319
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1442
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1320
1443
|
$fault: "client",
|
|
1321
|
-
$metadata
|
|
1444
|
+
$metadata,
|
|
1322
1445
|
});
|
|
1323
1446
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1324
1447
|
}
|
|
@@ -1343,8 +1466,7 @@ const deserializeAws_json1_1DescribeLocationS3CommandError = async (output, cont
|
|
|
1343
1466
|
body: await parseBody(output.body, context),
|
|
1344
1467
|
};
|
|
1345
1468
|
let response;
|
|
1346
|
-
|
|
1347
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1348
1470
|
switch (errorCode) {
|
|
1349
1471
|
case "InternalException":
|
|
1350
1472
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1354,10 +1476,12 @@ const deserializeAws_json1_1DescribeLocationS3CommandError = async (output, cont
|
|
|
1354
1476
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1355
1477
|
default:
|
|
1356
1478
|
const parsedBody = parsedOutput.body;
|
|
1479
|
+
const $metadata = deserializeMetadata(output);
|
|
1480
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1357
1481
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1482
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1359
1483
|
$fault: "client",
|
|
1360
|
-
$metadata
|
|
1484
|
+
$metadata,
|
|
1361
1485
|
});
|
|
1362
1486
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1363
1487
|
}
|
|
@@ -1382,8 +1506,7 @@ const deserializeAws_json1_1DescribeLocationSmbCommandError = async (output, con
|
|
|
1382
1506
|
body: await parseBody(output.body, context),
|
|
1383
1507
|
};
|
|
1384
1508
|
let response;
|
|
1385
|
-
|
|
1386
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1509
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1387
1510
|
switch (errorCode) {
|
|
1388
1511
|
case "InternalException":
|
|
1389
1512
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1393,10 +1516,12 @@ const deserializeAws_json1_1DescribeLocationSmbCommandError = async (output, con
|
|
|
1393
1516
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1394
1517
|
default:
|
|
1395
1518
|
const parsedBody = parsedOutput.body;
|
|
1519
|
+
const $metadata = deserializeMetadata(output);
|
|
1520
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1396
1521
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1522
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1398
1523
|
$fault: "client",
|
|
1399
|
-
$metadata
|
|
1524
|
+
$metadata,
|
|
1400
1525
|
});
|
|
1401
1526
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1402
1527
|
}
|
|
@@ -1421,8 +1546,7 @@ const deserializeAws_json1_1DescribeTaskCommandError = async (output, context) =
|
|
|
1421
1546
|
body: await parseBody(output.body, context),
|
|
1422
1547
|
};
|
|
1423
1548
|
let response;
|
|
1424
|
-
|
|
1425
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1549
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
1550
|
switch (errorCode) {
|
|
1427
1551
|
case "InternalException":
|
|
1428
1552
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1432,10 +1556,12 @@ const deserializeAws_json1_1DescribeTaskCommandError = async (output, context) =
|
|
|
1432
1556
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1433
1557
|
default:
|
|
1434
1558
|
const parsedBody = parsedOutput.body;
|
|
1559
|
+
const $metadata = deserializeMetadata(output);
|
|
1560
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1435
1561
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1436
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1562
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1437
1563
|
$fault: "client",
|
|
1438
|
-
$metadata
|
|
1564
|
+
$metadata,
|
|
1439
1565
|
});
|
|
1440
1566
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1441
1567
|
}
|
|
@@ -1460,8 +1586,7 @@ const deserializeAws_json1_1DescribeTaskExecutionCommandError = async (output, c
|
|
|
1460
1586
|
body: await parseBody(output.body, context),
|
|
1461
1587
|
};
|
|
1462
1588
|
let response;
|
|
1463
|
-
|
|
1464
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
1590
|
switch (errorCode) {
|
|
1466
1591
|
case "InternalException":
|
|
1467
1592
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1471,10 +1596,12 @@ const deserializeAws_json1_1DescribeTaskExecutionCommandError = async (output, c
|
|
|
1471
1596
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1472
1597
|
default:
|
|
1473
1598
|
const parsedBody = parsedOutput.body;
|
|
1599
|
+
const $metadata = deserializeMetadata(output);
|
|
1600
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1474
1601
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1475
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1602
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1476
1603
|
$fault: "client",
|
|
1477
|
-
$metadata
|
|
1604
|
+
$metadata,
|
|
1478
1605
|
});
|
|
1479
1606
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1480
1607
|
}
|
|
@@ -1499,8 +1626,7 @@ const deserializeAws_json1_1ListAgentsCommandError = async (output, context) =>
|
|
|
1499
1626
|
body: await parseBody(output.body, context),
|
|
1500
1627
|
};
|
|
1501
1628
|
let response;
|
|
1502
|
-
|
|
1503
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
1630
|
switch (errorCode) {
|
|
1505
1631
|
case "InternalException":
|
|
1506
1632
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1510,10 +1636,12 @@ const deserializeAws_json1_1ListAgentsCommandError = async (output, context) =>
|
|
|
1510
1636
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1511
1637
|
default:
|
|
1512
1638
|
const parsedBody = parsedOutput.body;
|
|
1639
|
+
const $metadata = deserializeMetadata(output);
|
|
1640
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1513
1641
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1514
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1642
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1515
1643
|
$fault: "client",
|
|
1516
|
-
$metadata
|
|
1644
|
+
$metadata,
|
|
1517
1645
|
});
|
|
1518
1646
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1519
1647
|
}
|
|
@@ -1538,8 +1666,7 @@ const deserializeAws_json1_1ListLocationsCommandError = async (output, context)
|
|
|
1538
1666
|
body: await parseBody(output.body, context),
|
|
1539
1667
|
};
|
|
1540
1668
|
let response;
|
|
1541
|
-
|
|
1542
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1669
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
1670
|
switch (errorCode) {
|
|
1544
1671
|
case "InternalException":
|
|
1545
1672
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1549,10 +1676,12 @@ const deserializeAws_json1_1ListLocationsCommandError = async (output, context)
|
|
|
1549
1676
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1550
1677
|
default:
|
|
1551
1678
|
const parsedBody = parsedOutput.body;
|
|
1679
|
+
const $metadata = deserializeMetadata(output);
|
|
1680
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1552
1681
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1553
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1682
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1554
1683
|
$fault: "client",
|
|
1555
|
-
$metadata
|
|
1684
|
+
$metadata,
|
|
1556
1685
|
});
|
|
1557
1686
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1558
1687
|
}
|
|
@@ -1577,8 +1706,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1577
1706
|
body: await parseBody(output.body, context),
|
|
1578
1707
|
};
|
|
1579
1708
|
let response;
|
|
1580
|
-
|
|
1581
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
1710
|
switch (errorCode) {
|
|
1583
1711
|
case "InternalException":
|
|
1584
1712
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1588,10 +1716,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1588
1716
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1589
1717
|
default:
|
|
1590
1718
|
const parsedBody = parsedOutput.body;
|
|
1719
|
+
const $metadata = deserializeMetadata(output);
|
|
1720
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1591
1721
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1592
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1722
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1593
1723
|
$fault: "client",
|
|
1594
|
-
$metadata
|
|
1724
|
+
$metadata,
|
|
1595
1725
|
});
|
|
1596
1726
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1597
1727
|
}
|
|
@@ -1616,8 +1746,7 @@ const deserializeAws_json1_1ListTaskExecutionsCommandError = async (output, cont
|
|
|
1616
1746
|
body: await parseBody(output.body, context),
|
|
1617
1747
|
};
|
|
1618
1748
|
let response;
|
|
1619
|
-
|
|
1620
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1749
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
1750
|
switch (errorCode) {
|
|
1622
1751
|
case "InternalException":
|
|
1623
1752
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1627,10 +1756,12 @@ const deserializeAws_json1_1ListTaskExecutionsCommandError = async (output, cont
|
|
|
1627
1756
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1628
1757
|
default:
|
|
1629
1758
|
const parsedBody = parsedOutput.body;
|
|
1759
|
+
const $metadata = deserializeMetadata(output);
|
|
1760
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1630
1761
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1631
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1762
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1632
1763
|
$fault: "client",
|
|
1633
|
-
$metadata
|
|
1764
|
+
$metadata,
|
|
1634
1765
|
});
|
|
1635
1766
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1636
1767
|
}
|
|
@@ -1655,8 +1786,7 @@ const deserializeAws_json1_1ListTasksCommandError = async (output, context) => {
|
|
|
1655
1786
|
body: await parseBody(output.body, context),
|
|
1656
1787
|
};
|
|
1657
1788
|
let response;
|
|
1658
|
-
|
|
1659
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1789
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
1790
|
switch (errorCode) {
|
|
1661
1791
|
case "InternalException":
|
|
1662
1792
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1666,10 +1796,12 @@ const deserializeAws_json1_1ListTasksCommandError = async (output, context) => {
|
|
|
1666
1796
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1667
1797
|
default:
|
|
1668
1798
|
const parsedBody = parsedOutput.body;
|
|
1799
|
+
const $metadata = deserializeMetadata(output);
|
|
1800
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1669
1801
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1670
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1802
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1671
1803
|
$fault: "client",
|
|
1672
|
-
$metadata
|
|
1804
|
+
$metadata,
|
|
1673
1805
|
});
|
|
1674
1806
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1675
1807
|
}
|
|
@@ -1694,8 +1826,7 @@ const deserializeAws_json1_1StartTaskExecutionCommandError = async (output, cont
|
|
|
1694
1826
|
body: await parseBody(output.body, context),
|
|
1695
1827
|
};
|
|
1696
1828
|
let response;
|
|
1697
|
-
|
|
1698
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1829
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
1830
|
switch (errorCode) {
|
|
1700
1831
|
case "InternalException":
|
|
1701
1832
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1705,10 +1836,12 @@ const deserializeAws_json1_1StartTaskExecutionCommandError = async (output, cont
|
|
|
1705
1836
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1706
1837
|
default:
|
|
1707
1838
|
const parsedBody = parsedOutput.body;
|
|
1839
|
+
const $metadata = deserializeMetadata(output);
|
|
1840
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1708
1841
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1709
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1842
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1710
1843
|
$fault: "client",
|
|
1711
|
-
$metadata
|
|
1844
|
+
$metadata,
|
|
1712
1845
|
});
|
|
1713
1846
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1714
1847
|
}
|
|
@@ -1733,8 +1866,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1733
1866
|
body: await parseBody(output.body, context),
|
|
1734
1867
|
};
|
|
1735
1868
|
let response;
|
|
1736
|
-
|
|
1737
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1738
1870
|
switch (errorCode) {
|
|
1739
1871
|
case "InternalException":
|
|
1740
1872
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1744,10 +1876,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1744
1876
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1745
1877
|
default:
|
|
1746
1878
|
const parsedBody = parsedOutput.body;
|
|
1879
|
+
const $metadata = deserializeMetadata(output);
|
|
1880
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1747
1881
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1748
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1882
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1749
1883
|
$fault: "client",
|
|
1750
|
-
$metadata
|
|
1884
|
+
$metadata,
|
|
1751
1885
|
});
|
|
1752
1886
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1753
1887
|
}
|
|
@@ -1772,8 +1906,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1772
1906
|
body: await parseBody(output.body, context),
|
|
1773
1907
|
};
|
|
1774
1908
|
let response;
|
|
1775
|
-
|
|
1776
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1909
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1777
1910
|
switch (errorCode) {
|
|
1778
1911
|
case "InternalException":
|
|
1779
1912
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1783,10 +1916,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1783
1916
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1784
1917
|
default:
|
|
1785
1918
|
const parsedBody = parsedOutput.body;
|
|
1919
|
+
const $metadata = deserializeMetadata(output);
|
|
1920
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1786
1921
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1787
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1922
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1788
1923
|
$fault: "client",
|
|
1789
|
-
$metadata
|
|
1924
|
+
$metadata,
|
|
1790
1925
|
});
|
|
1791
1926
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1792
1927
|
}
|
|
@@ -1811,8 +1946,7 @@ const deserializeAws_json1_1UpdateAgentCommandError = async (output, context) =>
|
|
|
1811
1946
|
body: await parseBody(output.body, context),
|
|
1812
1947
|
};
|
|
1813
1948
|
let response;
|
|
1814
|
-
|
|
1815
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1949
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
1950
|
switch (errorCode) {
|
|
1817
1951
|
case "InternalException":
|
|
1818
1952
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1822,10 +1956,12 @@ const deserializeAws_json1_1UpdateAgentCommandError = async (output, context) =>
|
|
|
1822
1956
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1823
1957
|
default:
|
|
1824
1958
|
const parsedBody = parsedOutput.body;
|
|
1959
|
+
const $metadata = deserializeMetadata(output);
|
|
1960
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1825
1961
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1826
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1962
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1827
1963
|
$fault: "client",
|
|
1828
|
-
$metadata
|
|
1964
|
+
$metadata,
|
|
1829
1965
|
});
|
|
1830
1966
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1831
1967
|
}
|
|
@@ -1850,8 +1986,7 @@ const deserializeAws_json1_1UpdateLocationHdfsCommandError = async (output, cont
|
|
|
1850
1986
|
body: await parseBody(output.body, context),
|
|
1851
1987
|
};
|
|
1852
1988
|
let response;
|
|
1853
|
-
|
|
1854
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1989
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1855
1990
|
switch (errorCode) {
|
|
1856
1991
|
case "InternalException":
|
|
1857
1992
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1861,10 +1996,12 @@ const deserializeAws_json1_1UpdateLocationHdfsCommandError = async (output, cont
|
|
|
1861
1996
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1862
1997
|
default:
|
|
1863
1998
|
const parsedBody = parsedOutput.body;
|
|
1999
|
+
const $metadata = deserializeMetadata(output);
|
|
2000
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1864
2001
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1865
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2002
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1866
2003
|
$fault: "client",
|
|
1867
|
-
$metadata
|
|
2004
|
+
$metadata,
|
|
1868
2005
|
});
|
|
1869
2006
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1870
2007
|
}
|
|
@@ -1889,8 +2026,7 @@ const deserializeAws_json1_1UpdateLocationNfsCommandError = async (output, conte
|
|
|
1889
2026
|
body: await parseBody(output.body, context),
|
|
1890
2027
|
};
|
|
1891
2028
|
let response;
|
|
1892
|
-
|
|
1893
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1894
2030
|
switch (errorCode) {
|
|
1895
2031
|
case "InternalException":
|
|
1896
2032
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1900,10 +2036,12 @@ const deserializeAws_json1_1UpdateLocationNfsCommandError = async (output, conte
|
|
|
1900
2036
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1901
2037
|
default:
|
|
1902
2038
|
const parsedBody = parsedOutput.body;
|
|
2039
|
+
const $metadata = deserializeMetadata(output);
|
|
2040
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1903
2041
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1904
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2042
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1905
2043
|
$fault: "client",
|
|
1906
|
-
$metadata
|
|
2044
|
+
$metadata,
|
|
1907
2045
|
});
|
|
1908
2046
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1909
2047
|
}
|
|
@@ -1928,8 +2066,7 @@ const deserializeAws_json1_1UpdateLocationObjectStorageCommandError = async (out
|
|
|
1928
2066
|
body: await parseBody(output.body, context),
|
|
1929
2067
|
};
|
|
1930
2068
|
let response;
|
|
1931
|
-
|
|
1932
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2069
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1933
2070
|
switch (errorCode) {
|
|
1934
2071
|
case "InternalException":
|
|
1935
2072
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1939,10 +2076,12 @@ const deserializeAws_json1_1UpdateLocationObjectStorageCommandError = async (out
|
|
|
1939
2076
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1940
2077
|
default:
|
|
1941
2078
|
const parsedBody = parsedOutput.body;
|
|
2079
|
+
const $metadata = deserializeMetadata(output);
|
|
2080
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1942
2081
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1943
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2082
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1944
2083
|
$fault: "client",
|
|
1945
|
-
$metadata
|
|
2084
|
+
$metadata,
|
|
1946
2085
|
});
|
|
1947
2086
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1948
2087
|
}
|
|
@@ -1967,8 +2106,7 @@ const deserializeAws_json1_1UpdateLocationSmbCommandError = async (output, conte
|
|
|
1967
2106
|
body: await parseBody(output.body, context),
|
|
1968
2107
|
};
|
|
1969
2108
|
let response;
|
|
1970
|
-
|
|
1971
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2109
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
2110
|
switch (errorCode) {
|
|
1973
2111
|
case "InternalException":
|
|
1974
2112
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -1978,10 +2116,12 @@ const deserializeAws_json1_1UpdateLocationSmbCommandError = async (output, conte
|
|
|
1978
2116
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1979
2117
|
default:
|
|
1980
2118
|
const parsedBody = parsedOutput.body;
|
|
2119
|
+
const $metadata = deserializeMetadata(output);
|
|
2120
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1981
2121
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1982
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2122
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1983
2123
|
$fault: "client",
|
|
1984
|
-
$metadata
|
|
2124
|
+
$metadata,
|
|
1985
2125
|
});
|
|
1986
2126
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1987
2127
|
}
|
|
@@ -2006,8 +2146,7 @@ const deserializeAws_json1_1UpdateTaskCommandError = async (output, context) =>
|
|
|
2006
2146
|
body: await parseBody(output.body, context),
|
|
2007
2147
|
};
|
|
2008
2148
|
let response;
|
|
2009
|
-
|
|
2010
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2149
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
2150
|
switch (errorCode) {
|
|
2012
2151
|
case "InternalException":
|
|
2013
2152
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -2017,10 +2156,12 @@ const deserializeAws_json1_1UpdateTaskCommandError = async (output, context) =>
|
|
|
2017
2156
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2018
2157
|
default:
|
|
2019
2158
|
const parsedBody = parsedOutput.body;
|
|
2159
|
+
const $metadata = deserializeMetadata(output);
|
|
2160
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2020
2161
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
2021
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2162
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2022
2163
|
$fault: "client",
|
|
2023
|
-
$metadata
|
|
2164
|
+
$metadata,
|
|
2024
2165
|
});
|
|
2025
2166
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2026
2167
|
}
|
|
@@ -2045,8 +2186,7 @@ const deserializeAws_json1_1UpdateTaskExecutionCommandError = async (output, con
|
|
|
2045
2186
|
body: await parseBody(output.body, context),
|
|
2046
2187
|
};
|
|
2047
2188
|
let response;
|
|
2048
|
-
|
|
2049
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2189
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2050
2190
|
switch (errorCode) {
|
|
2051
2191
|
case "InternalException":
|
|
2052
2192
|
case "com.amazonaws.datasync#InternalException":
|
|
@@ -2056,10 +2196,12 @@ const deserializeAws_json1_1UpdateTaskExecutionCommandError = async (output, con
|
|
|
2056
2196
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2057
2197
|
default:
|
|
2058
2198
|
const parsedBody = parsedOutput.body;
|
|
2199
|
+
const $metadata = deserializeMetadata(output);
|
|
2200
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2059
2201
|
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
2060
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2202
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2061
2203
|
$fault: "client",
|
|
2062
|
-
$metadata
|
|
2204
|
+
$metadata,
|
|
2063
2205
|
});
|
|
2064
2206
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2065
2207
|
}
|
|
@@ -2094,283 +2236,243 @@ const serializeAws_json1_1AgentArnList = (input, context) => {
|
|
|
2094
2236
|
};
|
|
2095
2237
|
const serializeAws_json1_1CancelTaskExecutionRequest = (input, context) => {
|
|
2096
2238
|
return {
|
|
2097
|
-
...(input.TaskExecutionArn
|
|
2098
|
-
input.TaskExecutionArn !== null && { TaskExecutionArn: input.TaskExecutionArn }),
|
|
2239
|
+
...(input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }),
|
|
2099
2240
|
};
|
|
2100
2241
|
};
|
|
2101
2242
|
const serializeAws_json1_1CreateAgentRequest = (input, context) => {
|
|
2102
2243
|
return {
|
|
2103
|
-
...(input.ActivationKey
|
|
2104
|
-
...(input.AgentName
|
|
2105
|
-
...(input.SecurityGroupArns
|
|
2106
|
-
input.SecurityGroupArns !== null && {
|
|
2244
|
+
...(input.ActivationKey != null && { ActivationKey: input.ActivationKey }),
|
|
2245
|
+
...(input.AgentName != null && { AgentName: input.AgentName }),
|
|
2246
|
+
...(input.SecurityGroupArns != null && {
|
|
2107
2247
|
SecurityGroupArns: serializeAws_json1_1PLSecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2108
2248
|
}),
|
|
2109
|
-
...(input.SubnetArns
|
|
2110
|
-
|
|
2111
|
-
...(input.
|
|
2112
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2113
|
-
...(input.VpcEndpointId !== undefined && input.VpcEndpointId !== null && { VpcEndpointId: input.VpcEndpointId }),
|
|
2249
|
+
...(input.SubnetArns != null && { SubnetArns: serializeAws_json1_1PLSubnetArnList(input.SubnetArns, context) }),
|
|
2250
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2251
|
+
...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
|
|
2114
2252
|
};
|
|
2115
2253
|
};
|
|
2116
2254
|
const serializeAws_json1_1CreateLocationEfsRequest = (input, context) => {
|
|
2117
2255
|
return {
|
|
2118
|
-
...(input.AccessPointArn
|
|
2119
|
-
|
|
2120
|
-
...(input.
|
|
2121
|
-
|
|
2122
|
-
...(input.
|
|
2123
|
-
|
|
2124
|
-
...(input.
|
|
2125
|
-
input.FileSystemAccessRoleArn !== null && { FileSystemAccessRoleArn: input.FileSystemAccessRoleArn }),
|
|
2126
|
-
...(input.InTransitEncryption !== undefined &&
|
|
2127
|
-
input.InTransitEncryption !== null && { InTransitEncryption: input.InTransitEncryption }),
|
|
2128
|
-
...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
|
|
2129
|
-
...(input.Tags !== undefined &&
|
|
2130
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2256
|
+
...(input.AccessPointArn != null && { AccessPointArn: input.AccessPointArn }),
|
|
2257
|
+
...(input.Ec2Config != null && { Ec2Config: serializeAws_json1_1Ec2Config(input.Ec2Config, context) }),
|
|
2258
|
+
...(input.EfsFilesystemArn != null && { EfsFilesystemArn: input.EfsFilesystemArn }),
|
|
2259
|
+
...(input.FileSystemAccessRoleArn != null && { FileSystemAccessRoleArn: input.FileSystemAccessRoleArn }),
|
|
2260
|
+
...(input.InTransitEncryption != null && { InTransitEncryption: input.InTransitEncryption }),
|
|
2261
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2262
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2131
2263
|
};
|
|
2132
2264
|
};
|
|
2133
2265
|
const serializeAws_json1_1CreateLocationFsxLustreRequest = (input, context) => {
|
|
2134
2266
|
return {
|
|
2135
|
-
...(input.FsxFilesystemArn
|
|
2136
|
-
|
|
2137
|
-
...(input.SecurityGroupArns !== undefined &&
|
|
2138
|
-
input.SecurityGroupArns !== null && {
|
|
2267
|
+
...(input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn }),
|
|
2268
|
+
...(input.SecurityGroupArns != null && {
|
|
2139
2269
|
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2140
2270
|
}),
|
|
2141
|
-
...(input.Subdirectory
|
|
2142
|
-
...(input.Tags
|
|
2143
|
-
|
|
2271
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2272
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2273
|
+
};
|
|
2274
|
+
};
|
|
2275
|
+
const serializeAws_json1_1CreateLocationFsxOntapRequest = (input, context) => {
|
|
2276
|
+
return {
|
|
2277
|
+
...(input.Protocol != null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) }),
|
|
2278
|
+
...(input.SecurityGroupArns != null && {
|
|
2279
|
+
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2280
|
+
}),
|
|
2281
|
+
...(input.StorageVirtualMachineArn != null && { StorageVirtualMachineArn: input.StorageVirtualMachineArn }),
|
|
2282
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2283
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2144
2284
|
};
|
|
2145
2285
|
};
|
|
2146
2286
|
const serializeAws_json1_1CreateLocationFsxOpenZfsRequest = (input, context) => {
|
|
2147
2287
|
return {
|
|
2148
|
-
...(input.FsxFilesystemArn
|
|
2149
|
-
|
|
2150
|
-
...(input.
|
|
2151
|
-
input.Protocol !== null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) }),
|
|
2152
|
-
...(input.SecurityGroupArns !== undefined &&
|
|
2153
|
-
input.SecurityGroupArns !== null && {
|
|
2288
|
+
...(input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn }),
|
|
2289
|
+
...(input.Protocol != null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) }),
|
|
2290
|
+
...(input.SecurityGroupArns != null && {
|
|
2154
2291
|
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2155
2292
|
}),
|
|
2156
|
-
...(input.Subdirectory
|
|
2157
|
-
...(input.Tags
|
|
2158
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2293
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2294
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2159
2295
|
};
|
|
2160
2296
|
};
|
|
2161
2297
|
const serializeAws_json1_1CreateLocationFsxWindowsRequest = (input, context) => {
|
|
2162
2298
|
return {
|
|
2163
|
-
...(input.Domain
|
|
2164
|
-
...(input.FsxFilesystemArn
|
|
2165
|
-
|
|
2166
|
-
...(input.
|
|
2167
|
-
...(input.SecurityGroupArns !== undefined &&
|
|
2168
|
-
input.SecurityGroupArns !== null && {
|
|
2299
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
2300
|
+
...(input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn }),
|
|
2301
|
+
...(input.Password != null && { Password: input.Password }),
|
|
2302
|
+
...(input.SecurityGroupArns != null && {
|
|
2169
2303
|
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2170
2304
|
}),
|
|
2171
|
-
...(input.Subdirectory
|
|
2172
|
-
...(input.Tags
|
|
2173
|
-
|
|
2174
|
-
...(input.User !== undefined && input.User !== null && { User: input.User }),
|
|
2305
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2306
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2307
|
+
...(input.User != null && { User: input.User }),
|
|
2175
2308
|
};
|
|
2176
2309
|
};
|
|
2177
2310
|
const serializeAws_json1_1CreateLocationHdfsRequest = (input, context) => {
|
|
2178
2311
|
return {
|
|
2179
|
-
...(input.AgentArns
|
|
2180
|
-
|
|
2181
|
-
...(input.
|
|
2182
|
-
|
|
2183
|
-
...(input.
|
|
2184
|
-
...(input.
|
|
2185
|
-
|
|
2186
|
-
...(input.
|
|
2187
|
-
|
|
2188
|
-
...(input.KerberosPrincipal !== undefined &&
|
|
2189
|
-
input.KerberosPrincipal !== null && { KerberosPrincipal: input.KerberosPrincipal }),
|
|
2190
|
-
...(input.KmsKeyProviderUri !== undefined &&
|
|
2191
|
-
input.KmsKeyProviderUri !== null && { KmsKeyProviderUri: input.KmsKeyProviderUri }),
|
|
2192
|
-
...(input.NameNodes !== undefined &&
|
|
2193
|
-
input.NameNodes !== null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) }),
|
|
2194
|
-
...(input.QopConfiguration !== undefined &&
|
|
2195
|
-
input.QopConfiguration !== null && {
|
|
2312
|
+
...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
|
|
2313
|
+
...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
|
|
2314
|
+
...(input.BlockSize != null && { BlockSize: input.BlockSize }),
|
|
2315
|
+
...(input.KerberosKeytab != null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) }),
|
|
2316
|
+
...(input.KerberosKrb5Conf != null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) }),
|
|
2317
|
+
...(input.KerberosPrincipal != null && { KerberosPrincipal: input.KerberosPrincipal }),
|
|
2318
|
+
...(input.KmsKeyProviderUri != null && { KmsKeyProviderUri: input.KmsKeyProviderUri }),
|
|
2319
|
+
...(input.NameNodes != null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) }),
|
|
2320
|
+
...(input.QopConfiguration != null && {
|
|
2196
2321
|
QopConfiguration: serializeAws_json1_1QopConfiguration(input.QopConfiguration, context),
|
|
2197
2322
|
}),
|
|
2198
|
-
...(input.ReplicationFactor
|
|
2199
|
-
|
|
2200
|
-
...(input.
|
|
2201
|
-
...(input.
|
|
2202
|
-
...(input.Tags !== undefined &&
|
|
2203
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2323
|
+
...(input.ReplicationFactor != null && { ReplicationFactor: input.ReplicationFactor }),
|
|
2324
|
+
...(input.SimpleUser != null && { SimpleUser: input.SimpleUser }),
|
|
2325
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2326
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2204
2327
|
};
|
|
2205
2328
|
};
|
|
2206
2329
|
const serializeAws_json1_1CreateLocationNfsRequest = (input, context) => {
|
|
2207
2330
|
return {
|
|
2208
|
-
...(input.MountOptions
|
|
2209
|
-
input.MountOptions !== null && {
|
|
2331
|
+
...(input.MountOptions != null && {
|
|
2210
2332
|
MountOptions: serializeAws_json1_1NfsMountOptions(input.MountOptions, context),
|
|
2211
2333
|
}),
|
|
2212
|
-
...(input.OnPremConfig
|
|
2213
|
-
|
|
2214
|
-
...(input.
|
|
2215
|
-
|
|
2216
|
-
...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
|
|
2217
|
-
...(input.Tags !== undefined &&
|
|
2218
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2334
|
+
...(input.OnPremConfig != null && { OnPremConfig: serializeAws_json1_1OnPremConfig(input.OnPremConfig, context) }),
|
|
2335
|
+
...(input.ServerHostname != null && { ServerHostname: input.ServerHostname }),
|
|
2336
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2337
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2219
2338
|
};
|
|
2220
2339
|
};
|
|
2221
2340
|
const serializeAws_json1_1CreateLocationObjectStorageRequest = (input, context) => {
|
|
2222
2341
|
return {
|
|
2223
|
-
...(input.AccessKey
|
|
2224
|
-
...(input.AgentArns
|
|
2225
|
-
|
|
2226
|
-
...(input.
|
|
2227
|
-
...(input.
|
|
2228
|
-
...(input.
|
|
2229
|
-
|
|
2230
|
-
...(input.
|
|
2231
|
-
...(input.
|
|
2232
|
-
input.ServerProtocol !== null && { ServerProtocol: input.ServerProtocol }),
|
|
2233
|
-
...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
|
|
2234
|
-
...(input.Tags !== undefined &&
|
|
2235
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2342
|
+
...(input.AccessKey != null && { AccessKey: input.AccessKey }),
|
|
2343
|
+
...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
|
|
2344
|
+
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
2345
|
+
...(input.SecretKey != null && { SecretKey: input.SecretKey }),
|
|
2346
|
+
...(input.ServerHostname != null && { ServerHostname: input.ServerHostname }),
|
|
2347
|
+
...(input.ServerPort != null && { ServerPort: input.ServerPort }),
|
|
2348
|
+
...(input.ServerProtocol != null && { ServerProtocol: input.ServerProtocol }),
|
|
2349
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2350
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2236
2351
|
};
|
|
2237
2352
|
};
|
|
2238
2353
|
const serializeAws_json1_1CreateLocationS3Request = (input, context) => {
|
|
2239
2354
|
return {
|
|
2240
|
-
...(input.AgentArns
|
|
2241
|
-
|
|
2242
|
-
...(input.
|
|
2243
|
-
...(input.
|
|
2244
|
-
|
|
2245
|
-
...(input.
|
|
2246
|
-
input.S3StorageClass !== null && { S3StorageClass: input.S3StorageClass }),
|
|
2247
|
-
...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
|
|
2248
|
-
...(input.Tags !== undefined &&
|
|
2249
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2355
|
+
...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
|
|
2356
|
+
...(input.S3BucketArn != null && { S3BucketArn: input.S3BucketArn }),
|
|
2357
|
+
...(input.S3Config != null && { S3Config: serializeAws_json1_1S3Config(input.S3Config, context) }),
|
|
2358
|
+
...(input.S3StorageClass != null && { S3StorageClass: input.S3StorageClass }),
|
|
2359
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2360
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2250
2361
|
};
|
|
2251
2362
|
};
|
|
2252
2363
|
const serializeAws_json1_1CreateLocationSmbRequest = (input, context) => {
|
|
2253
2364
|
return {
|
|
2254
|
-
...(input.AgentArns
|
|
2255
|
-
|
|
2256
|
-
...(input.
|
|
2257
|
-
...(input.MountOptions !== undefined &&
|
|
2258
|
-
input.MountOptions !== null && {
|
|
2365
|
+
...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
|
|
2366
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
2367
|
+
...(input.MountOptions != null && {
|
|
2259
2368
|
MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
|
|
2260
2369
|
}),
|
|
2261
|
-
...(input.Password
|
|
2262
|
-
...(input.ServerHostname
|
|
2263
|
-
|
|
2264
|
-
...(input.
|
|
2265
|
-
...(input.
|
|
2266
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2267
|
-
...(input.User !== undefined && input.User !== null && { User: input.User }),
|
|
2370
|
+
...(input.Password != null && { Password: input.Password }),
|
|
2371
|
+
...(input.ServerHostname != null && { ServerHostname: input.ServerHostname }),
|
|
2372
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2373
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2374
|
+
...(input.User != null && { User: input.User }),
|
|
2268
2375
|
};
|
|
2269
2376
|
};
|
|
2270
2377
|
const serializeAws_json1_1CreateTaskRequest = (input, context) => {
|
|
2271
2378
|
return {
|
|
2272
|
-
...(input.CloudWatchLogGroupArn
|
|
2273
|
-
|
|
2274
|
-
...(input.
|
|
2275
|
-
|
|
2276
|
-
...(input.
|
|
2277
|
-
|
|
2278
|
-
...(input.
|
|
2279
|
-
|
|
2280
|
-
...(input.
|
|
2281
|
-
...(input.Options !== undefined &&
|
|
2282
|
-
input.Options !== null && { Options: serializeAws_json1_1Options(input.Options, context) }),
|
|
2283
|
-
...(input.Schedule !== undefined &&
|
|
2284
|
-
input.Schedule !== null && { Schedule: serializeAws_json1_1TaskSchedule(input.Schedule, context) }),
|
|
2285
|
-
...(input.SourceLocationArn !== undefined &&
|
|
2286
|
-
input.SourceLocationArn !== null && { SourceLocationArn: input.SourceLocationArn }),
|
|
2287
|
-
...(input.Tags !== undefined &&
|
|
2288
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2379
|
+
...(input.CloudWatchLogGroupArn != null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn }),
|
|
2380
|
+
...(input.DestinationLocationArn != null && { DestinationLocationArn: input.DestinationLocationArn }),
|
|
2381
|
+
...(input.Excludes != null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) }),
|
|
2382
|
+
...(input.Includes != null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) }),
|
|
2383
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2384
|
+
...(input.Options != null && { Options: serializeAws_json1_1Options(input.Options, context) }),
|
|
2385
|
+
...(input.Schedule != null && { Schedule: serializeAws_json1_1TaskSchedule(input.Schedule, context) }),
|
|
2386
|
+
...(input.SourceLocationArn != null && { SourceLocationArn: input.SourceLocationArn }),
|
|
2387
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2289
2388
|
};
|
|
2290
2389
|
};
|
|
2291
2390
|
const serializeAws_json1_1DeleteAgentRequest = (input, context) => {
|
|
2292
2391
|
return {
|
|
2293
|
-
...(input.AgentArn
|
|
2392
|
+
...(input.AgentArn != null && { AgentArn: input.AgentArn }),
|
|
2294
2393
|
};
|
|
2295
2394
|
};
|
|
2296
2395
|
const serializeAws_json1_1DeleteLocationRequest = (input, context) => {
|
|
2297
2396
|
return {
|
|
2298
|
-
...(input.LocationArn
|
|
2397
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2299
2398
|
};
|
|
2300
2399
|
};
|
|
2301
2400
|
const serializeAws_json1_1DeleteTaskRequest = (input, context) => {
|
|
2302
2401
|
return {
|
|
2303
|
-
...(input.TaskArn
|
|
2402
|
+
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2304
2403
|
};
|
|
2305
2404
|
};
|
|
2306
2405
|
const serializeAws_json1_1DescribeAgentRequest = (input, context) => {
|
|
2307
2406
|
return {
|
|
2308
|
-
...(input.AgentArn
|
|
2407
|
+
...(input.AgentArn != null && { AgentArn: input.AgentArn }),
|
|
2309
2408
|
};
|
|
2310
2409
|
};
|
|
2311
2410
|
const serializeAws_json1_1DescribeLocationEfsRequest = (input, context) => {
|
|
2312
2411
|
return {
|
|
2313
|
-
...(input.LocationArn
|
|
2412
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2314
2413
|
};
|
|
2315
2414
|
};
|
|
2316
2415
|
const serializeAws_json1_1DescribeLocationFsxLustreRequest = (input, context) => {
|
|
2317
2416
|
return {
|
|
2318
|
-
...(input.LocationArn
|
|
2417
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2418
|
+
};
|
|
2419
|
+
};
|
|
2420
|
+
const serializeAws_json1_1DescribeLocationFsxOntapRequest = (input, context) => {
|
|
2421
|
+
return {
|
|
2422
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2319
2423
|
};
|
|
2320
2424
|
};
|
|
2321
2425
|
const serializeAws_json1_1DescribeLocationFsxOpenZfsRequest = (input, context) => {
|
|
2322
2426
|
return {
|
|
2323
|
-
...(input.LocationArn
|
|
2427
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2324
2428
|
};
|
|
2325
2429
|
};
|
|
2326
2430
|
const serializeAws_json1_1DescribeLocationFsxWindowsRequest = (input, context) => {
|
|
2327
2431
|
return {
|
|
2328
|
-
...(input.LocationArn
|
|
2432
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2329
2433
|
};
|
|
2330
2434
|
};
|
|
2331
2435
|
const serializeAws_json1_1DescribeLocationHdfsRequest = (input, context) => {
|
|
2332
2436
|
return {
|
|
2333
|
-
...(input.LocationArn
|
|
2437
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2334
2438
|
};
|
|
2335
2439
|
};
|
|
2336
2440
|
const serializeAws_json1_1DescribeLocationNfsRequest = (input, context) => {
|
|
2337
2441
|
return {
|
|
2338
|
-
...(input.LocationArn
|
|
2442
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2339
2443
|
};
|
|
2340
2444
|
};
|
|
2341
2445
|
const serializeAws_json1_1DescribeLocationObjectStorageRequest = (input, context) => {
|
|
2342
2446
|
return {
|
|
2343
|
-
...(input.LocationArn
|
|
2447
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2344
2448
|
};
|
|
2345
2449
|
};
|
|
2346
2450
|
const serializeAws_json1_1DescribeLocationS3Request = (input, context) => {
|
|
2347
2451
|
return {
|
|
2348
|
-
...(input.LocationArn
|
|
2452
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2349
2453
|
};
|
|
2350
2454
|
};
|
|
2351
2455
|
const serializeAws_json1_1DescribeLocationSmbRequest = (input, context) => {
|
|
2352
2456
|
return {
|
|
2353
|
-
...(input.LocationArn
|
|
2457
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2354
2458
|
};
|
|
2355
2459
|
};
|
|
2356
2460
|
const serializeAws_json1_1DescribeTaskExecutionRequest = (input, context) => {
|
|
2357
2461
|
return {
|
|
2358
|
-
...(input.TaskExecutionArn
|
|
2359
|
-
input.TaskExecutionArn !== null && { TaskExecutionArn: input.TaskExecutionArn }),
|
|
2462
|
+
...(input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }),
|
|
2360
2463
|
};
|
|
2361
2464
|
};
|
|
2362
2465
|
const serializeAws_json1_1DescribeTaskRequest = (input, context) => {
|
|
2363
2466
|
return {
|
|
2364
|
-
...(input.TaskArn
|
|
2467
|
+
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2365
2468
|
};
|
|
2366
2469
|
};
|
|
2367
2470
|
const serializeAws_json1_1Ec2Config = (input, context) => {
|
|
2368
2471
|
return {
|
|
2369
|
-
...(input.SecurityGroupArns
|
|
2370
|
-
input.SecurityGroupArns !== null && {
|
|
2472
|
+
...(input.SecurityGroupArns != null && {
|
|
2371
2473
|
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2372
2474
|
}),
|
|
2373
|
-
...(input.SubnetArn
|
|
2475
|
+
...(input.SubnetArn != null && { SubnetArn: input.SubnetArn }),
|
|
2374
2476
|
};
|
|
2375
2477
|
};
|
|
2376
2478
|
const serializeAws_json1_1Ec2SecurityGroupArnList = (input, context) => {
|
|
@@ -2395,8 +2497,8 @@ const serializeAws_json1_1FilterList = (input, context) => {
|
|
|
2395
2497
|
};
|
|
2396
2498
|
const serializeAws_json1_1FilterRule = (input, context) => {
|
|
2397
2499
|
return {
|
|
2398
|
-
...(input.FilterType
|
|
2399
|
-
...(input.Value
|
|
2500
|
+
...(input.FilterType != null && { FilterType: input.FilterType }),
|
|
2501
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2400
2502
|
};
|
|
2401
2503
|
};
|
|
2402
2504
|
const serializeAws_json1_1FilterValues = (input, context) => {
|
|
@@ -2411,22 +2513,31 @@ const serializeAws_json1_1FilterValues = (input, context) => {
|
|
|
2411
2513
|
};
|
|
2412
2514
|
const serializeAws_json1_1FsxProtocol = (input, context) => {
|
|
2413
2515
|
return {
|
|
2414
|
-
...(input.NFS
|
|
2415
|
-
|
|
2516
|
+
...(input.NFS != null && { NFS: serializeAws_json1_1FsxProtocolNfs(input.NFS, context) }),
|
|
2517
|
+
...(input.SMB != null && { SMB: serializeAws_json1_1FsxProtocolSmb(input.SMB, context) }),
|
|
2416
2518
|
};
|
|
2417
2519
|
};
|
|
2418
2520
|
const serializeAws_json1_1FsxProtocolNfs = (input, context) => {
|
|
2419
2521
|
return {
|
|
2420
|
-
...(input.MountOptions
|
|
2421
|
-
input.MountOptions !== null && {
|
|
2522
|
+
...(input.MountOptions != null && {
|
|
2422
2523
|
MountOptions: serializeAws_json1_1NfsMountOptions(input.MountOptions, context),
|
|
2423
2524
|
}),
|
|
2424
2525
|
};
|
|
2425
2526
|
};
|
|
2527
|
+
const serializeAws_json1_1FsxProtocolSmb = (input, context) => {
|
|
2528
|
+
return {
|
|
2529
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
2530
|
+
...(input.MountOptions != null && {
|
|
2531
|
+
MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
|
|
2532
|
+
}),
|
|
2533
|
+
...(input.Password != null && { Password: input.Password }),
|
|
2534
|
+
...(input.User != null && { User: input.User }),
|
|
2535
|
+
};
|
|
2536
|
+
};
|
|
2426
2537
|
const serializeAws_json1_1HdfsNameNode = (input, context) => {
|
|
2427
2538
|
return {
|
|
2428
|
-
...(input.Hostname
|
|
2429
|
-
...(input.Port
|
|
2539
|
+
...(input.Hostname != null && { Hostname: input.Hostname }),
|
|
2540
|
+
...(input.Port != null && { Port: input.Port }),
|
|
2430
2541
|
};
|
|
2431
2542
|
};
|
|
2432
2543
|
const serializeAws_json1_1HdfsNameNodeList = (input, context) => {
|
|
@@ -2451,46 +2562,43 @@ const serializeAws_json1_1InputTagList = (input, context) => {
|
|
|
2451
2562
|
};
|
|
2452
2563
|
const serializeAws_json1_1ListAgentsRequest = (input, context) => {
|
|
2453
2564
|
return {
|
|
2454
|
-
...(input.MaxResults
|
|
2455
|
-
...(input.NextToken
|
|
2565
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2566
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2456
2567
|
};
|
|
2457
2568
|
};
|
|
2458
2569
|
const serializeAws_json1_1ListLocationsRequest = (input, context) => {
|
|
2459
2570
|
return {
|
|
2460
|
-
...(input.Filters
|
|
2461
|
-
|
|
2462
|
-
...(input.
|
|
2463
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2571
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1LocationFilters(input.Filters, context) }),
|
|
2572
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2573
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2464
2574
|
};
|
|
2465
2575
|
};
|
|
2466
2576
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2467
2577
|
return {
|
|
2468
|
-
...(input.MaxResults
|
|
2469
|
-
...(input.NextToken
|
|
2470
|
-
...(input.ResourceArn
|
|
2578
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2579
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2580
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2471
2581
|
};
|
|
2472
2582
|
};
|
|
2473
2583
|
const serializeAws_json1_1ListTaskExecutionsRequest = (input, context) => {
|
|
2474
2584
|
return {
|
|
2475
|
-
...(input.MaxResults
|
|
2476
|
-
...(input.NextToken
|
|
2477
|
-
...(input.TaskArn
|
|
2585
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2586
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2587
|
+
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2478
2588
|
};
|
|
2479
2589
|
};
|
|
2480
2590
|
const serializeAws_json1_1ListTasksRequest = (input, context) => {
|
|
2481
2591
|
return {
|
|
2482
|
-
...(input.Filters
|
|
2483
|
-
|
|
2484
|
-
...(input.
|
|
2485
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2592
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1TaskFilters(input.Filters, context) }),
|
|
2593
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2594
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2486
2595
|
};
|
|
2487
2596
|
};
|
|
2488
2597
|
const serializeAws_json1_1LocationFilter = (input, context) => {
|
|
2489
2598
|
return {
|
|
2490
|
-
...(input.Name
|
|
2491
|
-
...(input.Operator
|
|
2492
|
-
...(input.Values
|
|
2493
|
-
input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }),
|
|
2599
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2600
|
+
...(input.Operator != null && { Operator: input.Operator }),
|
|
2601
|
+
...(input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }),
|
|
2494
2602
|
};
|
|
2495
2603
|
};
|
|
2496
2604
|
const serializeAws_json1_1LocationFilters = (input, context) => {
|
|
@@ -2505,37 +2613,33 @@ const serializeAws_json1_1LocationFilters = (input, context) => {
|
|
|
2505
2613
|
};
|
|
2506
2614
|
const serializeAws_json1_1NfsMountOptions = (input, context) => {
|
|
2507
2615
|
return {
|
|
2508
|
-
...(input.Version
|
|
2616
|
+
...(input.Version != null && { Version: input.Version }),
|
|
2509
2617
|
};
|
|
2510
2618
|
};
|
|
2511
2619
|
const serializeAws_json1_1OnPremConfig = (input, context) => {
|
|
2512
2620
|
return {
|
|
2513
|
-
...(input.AgentArns
|
|
2514
|
-
input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
|
|
2621
|
+
...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
|
|
2515
2622
|
};
|
|
2516
2623
|
};
|
|
2517
2624
|
const serializeAws_json1_1Options = (input, context) => {
|
|
2518
2625
|
return {
|
|
2519
|
-
...(input.Atime
|
|
2520
|
-
...(input.BytesPerSecond
|
|
2521
|
-
|
|
2522
|
-
...(input.
|
|
2523
|
-
...(input.
|
|
2524
|
-
...(input.
|
|
2525
|
-
...(input.
|
|
2526
|
-
...(input.
|
|
2527
|
-
...(input.
|
|
2528
|
-
|
|
2529
|
-
...(input.
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
...(input.
|
|
2534
|
-
|
|
2535
|
-
...(input.
|
|
2536
|
-
...(input.TransferMode !== undefined && input.TransferMode !== null && { TransferMode: input.TransferMode }),
|
|
2537
|
-
...(input.Uid !== undefined && input.Uid !== null && { Uid: input.Uid }),
|
|
2538
|
-
...(input.VerifyMode !== undefined && input.VerifyMode !== null && { VerifyMode: input.VerifyMode }),
|
|
2626
|
+
...(input.Atime != null && { Atime: input.Atime }),
|
|
2627
|
+
...(input.BytesPerSecond != null && { BytesPerSecond: input.BytesPerSecond }),
|
|
2628
|
+
...(input.Gid != null && { Gid: input.Gid }),
|
|
2629
|
+
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
2630
|
+
...(input.Mtime != null && { Mtime: input.Mtime }),
|
|
2631
|
+
...(input.ObjectTags != null && { ObjectTags: input.ObjectTags }),
|
|
2632
|
+
...(input.OverwriteMode != null && { OverwriteMode: input.OverwriteMode }),
|
|
2633
|
+
...(input.PosixPermissions != null && { PosixPermissions: input.PosixPermissions }),
|
|
2634
|
+
...(input.PreserveDeletedFiles != null && { PreserveDeletedFiles: input.PreserveDeletedFiles }),
|
|
2635
|
+
...(input.PreserveDevices != null && { PreserveDevices: input.PreserveDevices }),
|
|
2636
|
+
...(input.SecurityDescriptorCopyFlags != null && {
|
|
2637
|
+
SecurityDescriptorCopyFlags: input.SecurityDescriptorCopyFlags,
|
|
2638
|
+
}),
|
|
2639
|
+
...(input.TaskQueueing != null && { TaskQueueing: input.TaskQueueing }),
|
|
2640
|
+
...(input.TransferMode != null && { TransferMode: input.TransferMode }),
|
|
2641
|
+
...(input.Uid != null && { Uid: input.Uid }),
|
|
2642
|
+
...(input.VerifyMode != null && { VerifyMode: input.VerifyMode }),
|
|
2539
2643
|
};
|
|
2540
2644
|
};
|
|
2541
2645
|
const serializeAws_json1_1PLSecurityGroupArnList = (input, context) => {
|
|
@@ -2560,33 +2664,28 @@ const serializeAws_json1_1PLSubnetArnList = (input, context) => {
|
|
|
2560
2664
|
};
|
|
2561
2665
|
const serializeAws_json1_1QopConfiguration = (input, context) => {
|
|
2562
2666
|
return {
|
|
2563
|
-
...(input.DataTransferProtection
|
|
2564
|
-
|
|
2565
|
-
...(input.RpcProtection !== undefined && input.RpcProtection !== null && { RpcProtection: input.RpcProtection }),
|
|
2667
|
+
...(input.DataTransferProtection != null && { DataTransferProtection: input.DataTransferProtection }),
|
|
2668
|
+
...(input.RpcProtection != null && { RpcProtection: input.RpcProtection }),
|
|
2566
2669
|
};
|
|
2567
2670
|
};
|
|
2568
2671
|
const serializeAws_json1_1S3Config = (input, context) => {
|
|
2569
2672
|
return {
|
|
2570
|
-
...(input.BucketAccessRoleArn
|
|
2571
|
-
input.BucketAccessRoleArn !== null && { BucketAccessRoleArn: input.BucketAccessRoleArn }),
|
|
2673
|
+
...(input.BucketAccessRoleArn != null && { BucketAccessRoleArn: input.BucketAccessRoleArn }),
|
|
2572
2674
|
};
|
|
2573
2675
|
};
|
|
2574
2676
|
const serializeAws_json1_1SmbMountOptions = (input, context) => {
|
|
2575
2677
|
return {
|
|
2576
|
-
...(input.Version
|
|
2678
|
+
...(input.Version != null && { Version: input.Version }),
|
|
2577
2679
|
};
|
|
2578
2680
|
};
|
|
2579
2681
|
const serializeAws_json1_1StartTaskExecutionRequest = (input, context) => {
|
|
2580
2682
|
return {
|
|
2581
|
-
...(input.Excludes
|
|
2582
|
-
|
|
2583
|
-
...(input.
|
|
2584
|
-
input.Includes !== null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) }),
|
|
2585
|
-
...(input.OverrideOptions !== undefined &&
|
|
2586
|
-
input.OverrideOptions !== null && {
|
|
2683
|
+
...(input.Excludes != null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) }),
|
|
2684
|
+
...(input.Includes != null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) }),
|
|
2685
|
+
...(input.OverrideOptions != null && {
|
|
2587
2686
|
OverrideOptions: serializeAws_json1_1Options(input.OverrideOptions, context),
|
|
2588
2687
|
}),
|
|
2589
|
-
...(input.TaskArn
|
|
2688
|
+
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2590
2689
|
};
|
|
2591
2690
|
};
|
|
2592
2691
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -2601,23 +2700,21 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
2601
2700
|
};
|
|
2602
2701
|
const serializeAws_json1_1TagListEntry = (input, context) => {
|
|
2603
2702
|
return {
|
|
2604
|
-
...(input.Key
|
|
2605
|
-
...(input.Value
|
|
2703
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2704
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2606
2705
|
};
|
|
2607
2706
|
};
|
|
2608
2707
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
2609
2708
|
return {
|
|
2610
|
-
...(input.ResourceArn
|
|
2611
|
-
...(input.Tags
|
|
2612
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2709
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2710
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2613
2711
|
};
|
|
2614
2712
|
};
|
|
2615
2713
|
const serializeAws_json1_1TaskFilter = (input, context) => {
|
|
2616
2714
|
return {
|
|
2617
|
-
...(input.Name
|
|
2618
|
-
...(input.Operator
|
|
2619
|
-
...(input.Values
|
|
2620
|
-
input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }),
|
|
2715
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2716
|
+
...(input.Operator != null && { Operator: input.Operator }),
|
|
2717
|
+
...(input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }),
|
|
2621
2718
|
};
|
|
2622
2719
|
};
|
|
2623
2720
|
const serializeAws_json1_1TaskFilters = (input, context) => {
|
|
@@ -2632,113 +2729,89 @@ const serializeAws_json1_1TaskFilters = (input, context) => {
|
|
|
2632
2729
|
};
|
|
2633
2730
|
const serializeAws_json1_1TaskSchedule = (input, context) => {
|
|
2634
2731
|
return {
|
|
2635
|
-
...(input.ScheduleExpression
|
|
2636
|
-
input.ScheduleExpression !== null && { ScheduleExpression: input.ScheduleExpression }),
|
|
2732
|
+
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
2637
2733
|
};
|
|
2638
2734
|
};
|
|
2639
2735
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
2640
2736
|
return {
|
|
2641
|
-
...(input.Keys
|
|
2642
|
-
|
|
2643
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2737
|
+
...(input.Keys != null && { Keys: serializeAws_json1_1TagKeyList(input.Keys, context) }),
|
|
2738
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2644
2739
|
};
|
|
2645
2740
|
};
|
|
2646
2741
|
const serializeAws_json1_1UpdateAgentRequest = (input, context) => {
|
|
2647
2742
|
return {
|
|
2648
|
-
...(input.AgentArn
|
|
2649
|
-
...(input.Name
|
|
2743
|
+
...(input.AgentArn != null && { AgentArn: input.AgentArn }),
|
|
2744
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2650
2745
|
};
|
|
2651
2746
|
};
|
|
2652
2747
|
const serializeAws_json1_1UpdateLocationHdfsRequest = (input, context) => {
|
|
2653
2748
|
return {
|
|
2654
|
-
...(input.AgentArns
|
|
2655
|
-
|
|
2656
|
-
...(input.
|
|
2657
|
-
|
|
2658
|
-
...(input.
|
|
2659
|
-
...(input.
|
|
2660
|
-
|
|
2661
|
-
...(input.
|
|
2662
|
-
|
|
2663
|
-
...(input.
|
|
2664
|
-
input.KerberosPrincipal !== null && { KerberosPrincipal: input.KerberosPrincipal }),
|
|
2665
|
-
...(input.KmsKeyProviderUri !== undefined &&
|
|
2666
|
-
input.KmsKeyProviderUri !== null && { KmsKeyProviderUri: input.KmsKeyProviderUri }),
|
|
2667
|
-
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
2668
|
-
...(input.NameNodes !== undefined &&
|
|
2669
|
-
input.NameNodes !== null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) }),
|
|
2670
|
-
...(input.QopConfiguration !== undefined &&
|
|
2671
|
-
input.QopConfiguration !== null && {
|
|
2749
|
+
...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
|
|
2750
|
+
...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
|
|
2751
|
+
...(input.BlockSize != null && { BlockSize: input.BlockSize }),
|
|
2752
|
+
...(input.KerberosKeytab != null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) }),
|
|
2753
|
+
...(input.KerberosKrb5Conf != null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) }),
|
|
2754
|
+
...(input.KerberosPrincipal != null && { KerberosPrincipal: input.KerberosPrincipal }),
|
|
2755
|
+
...(input.KmsKeyProviderUri != null && { KmsKeyProviderUri: input.KmsKeyProviderUri }),
|
|
2756
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2757
|
+
...(input.NameNodes != null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) }),
|
|
2758
|
+
...(input.QopConfiguration != null && {
|
|
2672
2759
|
QopConfiguration: serializeAws_json1_1QopConfiguration(input.QopConfiguration, context),
|
|
2673
2760
|
}),
|
|
2674
|
-
...(input.ReplicationFactor
|
|
2675
|
-
|
|
2676
|
-
...(input.
|
|
2677
|
-
...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
|
|
2761
|
+
...(input.ReplicationFactor != null && { ReplicationFactor: input.ReplicationFactor }),
|
|
2762
|
+
...(input.SimpleUser != null && { SimpleUser: input.SimpleUser }),
|
|
2763
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2678
2764
|
};
|
|
2679
2765
|
};
|
|
2680
2766
|
const serializeAws_json1_1UpdateLocationNfsRequest = (input, context) => {
|
|
2681
2767
|
return {
|
|
2682
|
-
...(input.LocationArn
|
|
2683
|
-
...(input.MountOptions
|
|
2684
|
-
input.MountOptions !== null && {
|
|
2768
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2769
|
+
...(input.MountOptions != null && {
|
|
2685
2770
|
MountOptions: serializeAws_json1_1NfsMountOptions(input.MountOptions, context),
|
|
2686
2771
|
}),
|
|
2687
|
-
...(input.OnPremConfig
|
|
2688
|
-
|
|
2689
|
-
...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
|
|
2772
|
+
...(input.OnPremConfig != null && { OnPremConfig: serializeAws_json1_1OnPremConfig(input.OnPremConfig, context) }),
|
|
2773
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2690
2774
|
};
|
|
2691
2775
|
};
|
|
2692
2776
|
const serializeAws_json1_1UpdateLocationObjectStorageRequest = (input, context) => {
|
|
2693
2777
|
return {
|
|
2694
|
-
...(input.AccessKey
|
|
2695
|
-
...(input.AgentArns
|
|
2696
|
-
|
|
2697
|
-
...(input.
|
|
2698
|
-
...(input.
|
|
2699
|
-
...(input.
|
|
2700
|
-
...(input.
|
|
2701
|
-
input.ServerProtocol !== null && { ServerProtocol: input.ServerProtocol }),
|
|
2702
|
-
...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
|
|
2778
|
+
...(input.AccessKey != null && { AccessKey: input.AccessKey }),
|
|
2779
|
+
...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
|
|
2780
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2781
|
+
...(input.SecretKey != null && { SecretKey: input.SecretKey }),
|
|
2782
|
+
...(input.ServerPort != null && { ServerPort: input.ServerPort }),
|
|
2783
|
+
...(input.ServerProtocol != null && { ServerProtocol: input.ServerProtocol }),
|
|
2784
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2703
2785
|
};
|
|
2704
2786
|
};
|
|
2705
2787
|
const serializeAws_json1_1UpdateLocationSmbRequest = (input, context) => {
|
|
2706
2788
|
return {
|
|
2707
|
-
...(input.AgentArns
|
|
2708
|
-
|
|
2709
|
-
...(input.
|
|
2710
|
-
...(input.
|
|
2711
|
-
...(input.MountOptions !== undefined &&
|
|
2712
|
-
input.MountOptions !== null && {
|
|
2789
|
+
...(input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
|
|
2790
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
2791
|
+
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2792
|
+
...(input.MountOptions != null && {
|
|
2713
2793
|
MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
|
|
2714
2794
|
}),
|
|
2715
|
-
...(input.Password
|
|
2716
|
-
...(input.Subdirectory
|
|
2717
|
-
...(input.User
|
|
2795
|
+
...(input.Password != null && { Password: input.Password }),
|
|
2796
|
+
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2797
|
+
...(input.User != null && { User: input.User }),
|
|
2718
2798
|
};
|
|
2719
2799
|
};
|
|
2720
2800
|
const serializeAws_json1_1UpdateTaskExecutionRequest = (input, context) => {
|
|
2721
2801
|
return {
|
|
2722
|
-
...(input.Options
|
|
2723
|
-
|
|
2724
|
-
...(input.TaskExecutionArn !== undefined &&
|
|
2725
|
-
input.TaskExecutionArn !== null && { TaskExecutionArn: input.TaskExecutionArn }),
|
|
2802
|
+
...(input.Options != null && { Options: serializeAws_json1_1Options(input.Options, context) }),
|
|
2803
|
+
...(input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }),
|
|
2726
2804
|
};
|
|
2727
2805
|
};
|
|
2728
2806
|
const serializeAws_json1_1UpdateTaskRequest = (input, context) => {
|
|
2729
2807
|
return {
|
|
2730
|
-
...(input.CloudWatchLogGroupArn
|
|
2731
|
-
|
|
2732
|
-
...(input.
|
|
2733
|
-
|
|
2734
|
-
...(input.
|
|
2735
|
-
|
|
2736
|
-
...(input.
|
|
2737
|
-
...(input.Options !== undefined &&
|
|
2738
|
-
input.Options !== null && { Options: serializeAws_json1_1Options(input.Options, context) }),
|
|
2739
|
-
...(input.Schedule !== undefined &&
|
|
2740
|
-
input.Schedule !== null && { Schedule: serializeAws_json1_1TaskSchedule(input.Schedule, context) }),
|
|
2741
|
-
...(input.TaskArn !== undefined && input.TaskArn !== null && { TaskArn: input.TaskArn }),
|
|
2808
|
+
...(input.CloudWatchLogGroupArn != null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn }),
|
|
2809
|
+
...(input.Excludes != null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) }),
|
|
2810
|
+
...(input.Includes != null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) }),
|
|
2811
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2812
|
+
...(input.Options != null && { Options: serializeAws_json1_1Options(input.Options, context) }),
|
|
2813
|
+
...(input.Schedule != null && { Schedule: serializeAws_json1_1TaskSchedule(input.Schedule, context) }),
|
|
2814
|
+
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2742
2815
|
};
|
|
2743
2816
|
};
|
|
2744
2817
|
const deserializeAws_json1_1AgentArnList = (output, context) => {
|
|
@@ -2788,6 +2861,11 @@ const deserializeAws_json1_1CreateLocationFsxLustreResponse = (output, context)
|
|
|
2788
2861
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2789
2862
|
};
|
|
2790
2863
|
};
|
|
2864
|
+
const deserializeAws_json1_1CreateLocationFsxOntapResponse = (output, context) => {
|
|
2865
|
+
return {
|
|
2866
|
+
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2867
|
+
};
|
|
2868
|
+
};
|
|
2791
2869
|
const deserializeAws_json1_1CreateLocationFsxOpenZfsResponse = (output, context) => {
|
|
2792
2870
|
return {
|
|
2793
2871
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
@@ -2840,15 +2918,15 @@ const deserializeAws_json1_1DeleteTaskResponse = (output, context) => {
|
|
|
2840
2918
|
const deserializeAws_json1_1DescribeAgentResponse = (output, context) => {
|
|
2841
2919
|
return {
|
|
2842
2920
|
AgentArn: (0, smithy_client_1.expectString)(output.AgentArn),
|
|
2843
|
-
CreationTime: output.CreationTime
|
|
2921
|
+
CreationTime: output.CreationTime != null
|
|
2844
2922
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2845
2923
|
: undefined,
|
|
2846
2924
|
EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
|
|
2847
|
-
LastConnectionTime: output.LastConnectionTime
|
|
2925
|
+
LastConnectionTime: output.LastConnectionTime != null
|
|
2848
2926
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastConnectionTime)))
|
|
2849
2927
|
: undefined,
|
|
2850
2928
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2851
|
-
PrivateLinkConfig: output.PrivateLinkConfig
|
|
2929
|
+
PrivateLinkConfig: output.PrivateLinkConfig != null
|
|
2852
2930
|
? deserializeAws_json1_1PrivateLinkConfig(output.PrivateLinkConfig, context)
|
|
2853
2931
|
: undefined,
|
|
2854
2932
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -2857,12 +2935,10 @@ const deserializeAws_json1_1DescribeAgentResponse = (output, context) => {
|
|
|
2857
2935
|
const deserializeAws_json1_1DescribeLocationEfsResponse = (output, context) => {
|
|
2858
2936
|
return {
|
|
2859
2937
|
AccessPointArn: (0, smithy_client_1.expectString)(output.AccessPointArn),
|
|
2860
|
-
CreationTime: output.CreationTime
|
|
2938
|
+
CreationTime: output.CreationTime != null
|
|
2861
2939
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2862
2940
|
: undefined,
|
|
2863
|
-
Ec2Config: output.Ec2Config
|
|
2864
|
-
? deserializeAws_json1_1Ec2Config(output.Ec2Config, context)
|
|
2865
|
-
: undefined,
|
|
2941
|
+
Ec2Config: output.Ec2Config != null ? deserializeAws_json1_1Ec2Config(output.Ec2Config, context) : undefined,
|
|
2866
2942
|
FileSystemAccessRoleArn: (0, smithy_client_1.expectString)(output.FileSystemAccessRoleArn),
|
|
2867
2943
|
InTransitEncryption: (0, smithy_client_1.expectString)(output.InTransitEncryption),
|
|
2868
2944
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
@@ -2871,40 +2947,53 @@ const deserializeAws_json1_1DescribeLocationEfsResponse = (output, context) => {
|
|
|
2871
2947
|
};
|
|
2872
2948
|
const deserializeAws_json1_1DescribeLocationFsxLustreResponse = (output, context) => {
|
|
2873
2949
|
return {
|
|
2874
|
-
CreationTime: output.CreationTime
|
|
2950
|
+
CreationTime: output.CreationTime != null
|
|
2875
2951
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2876
2952
|
: undefined,
|
|
2877
2953
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2878
2954
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2879
|
-
SecurityGroupArns: output.SecurityGroupArns
|
|
2955
|
+
SecurityGroupArns: output.SecurityGroupArns != null
|
|
2880
2956
|
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
2881
2957
|
: undefined,
|
|
2882
2958
|
};
|
|
2883
2959
|
};
|
|
2884
|
-
const
|
|
2960
|
+
const deserializeAws_json1_1DescribeLocationFsxOntapResponse = (output, context) => {
|
|
2885
2961
|
return {
|
|
2886
|
-
CreationTime: output.CreationTime
|
|
2962
|
+
CreationTime: output.CreationTime != null
|
|
2887
2963
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2888
2964
|
: undefined,
|
|
2965
|
+
FsxFilesystemArn: (0, smithy_client_1.expectString)(output.FsxFilesystemArn),
|
|
2889
2966
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2890
2967
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2891
|
-
Protocol: output.Protocol
|
|
2892
|
-
|
|
2968
|
+
Protocol: output.Protocol != null ? deserializeAws_json1_1FsxProtocol(output.Protocol, context) : undefined,
|
|
2969
|
+
SecurityGroupArns: output.SecurityGroupArns != null
|
|
2970
|
+
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
2971
|
+
: undefined,
|
|
2972
|
+
StorageVirtualMachineArn: (0, smithy_client_1.expectString)(output.StorageVirtualMachineArn),
|
|
2973
|
+
};
|
|
2974
|
+
};
|
|
2975
|
+
const deserializeAws_json1_1DescribeLocationFsxOpenZfsResponse = (output, context) => {
|
|
2976
|
+
return {
|
|
2977
|
+
CreationTime: output.CreationTime != null
|
|
2978
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2893
2979
|
: undefined,
|
|
2894
|
-
|
|
2980
|
+
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2981
|
+
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2982
|
+
Protocol: output.Protocol != null ? deserializeAws_json1_1FsxProtocol(output.Protocol, context) : undefined,
|
|
2983
|
+
SecurityGroupArns: output.SecurityGroupArns != null
|
|
2895
2984
|
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
2896
2985
|
: undefined,
|
|
2897
2986
|
};
|
|
2898
2987
|
};
|
|
2899
2988
|
const deserializeAws_json1_1DescribeLocationFsxWindowsResponse = (output, context) => {
|
|
2900
2989
|
return {
|
|
2901
|
-
CreationTime: output.CreationTime
|
|
2990
|
+
CreationTime: output.CreationTime != null
|
|
2902
2991
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2903
2992
|
: undefined,
|
|
2904
2993
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
2905
2994
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2906
2995
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2907
|
-
SecurityGroupArns: output.SecurityGroupArns
|
|
2996
|
+
SecurityGroupArns: output.SecurityGroupArns != null
|
|
2908
2997
|
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
2909
2998
|
: undefined,
|
|
2910
2999
|
User: (0, smithy_client_1.expectString)(output.User),
|
|
@@ -2912,22 +3001,18 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsResponse = (output, contex
|
|
|
2912
3001
|
};
|
|
2913
3002
|
const deserializeAws_json1_1DescribeLocationHdfsResponse = (output, context) => {
|
|
2914
3003
|
return {
|
|
2915
|
-
AgentArns: output.AgentArns
|
|
2916
|
-
? deserializeAws_json1_1AgentArnList(output.AgentArns, context)
|
|
2917
|
-
: undefined,
|
|
3004
|
+
AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
|
|
2918
3005
|
AuthenticationType: (0, smithy_client_1.expectString)(output.AuthenticationType),
|
|
2919
3006
|
BlockSize: (0, smithy_client_1.expectInt32)(output.BlockSize),
|
|
2920
|
-
CreationTime: output.CreationTime
|
|
3007
|
+
CreationTime: output.CreationTime != null
|
|
2921
3008
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2922
3009
|
: undefined,
|
|
2923
3010
|
KerberosPrincipal: (0, smithy_client_1.expectString)(output.KerberosPrincipal),
|
|
2924
3011
|
KmsKeyProviderUri: (0, smithy_client_1.expectString)(output.KmsKeyProviderUri),
|
|
2925
3012
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2926
3013
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2927
|
-
NameNodes: output.NameNodes
|
|
2928
|
-
|
|
2929
|
-
: undefined,
|
|
2930
|
-
QopConfiguration: output.QopConfiguration !== undefined && output.QopConfiguration !== null
|
|
3014
|
+
NameNodes: output.NameNodes != null ? deserializeAws_json1_1HdfsNameNodeList(output.NameNodes, context) : undefined,
|
|
3015
|
+
QopConfiguration: output.QopConfiguration != null
|
|
2931
3016
|
? deserializeAws_json1_1QopConfiguration(output.QopConfiguration, context)
|
|
2932
3017
|
: undefined,
|
|
2933
3018
|
ReplicationFactor: (0, smithy_client_1.expectInt32)(output.ReplicationFactor),
|
|
@@ -2936,26 +3021,20 @@ const deserializeAws_json1_1DescribeLocationHdfsResponse = (output, context) =>
|
|
|
2936
3021
|
};
|
|
2937
3022
|
const deserializeAws_json1_1DescribeLocationNfsResponse = (output, context) => {
|
|
2938
3023
|
return {
|
|
2939
|
-
CreationTime: output.CreationTime
|
|
3024
|
+
CreationTime: output.CreationTime != null
|
|
2940
3025
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2941
3026
|
: undefined,
|
|
2942
3027
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2943
3028
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2944
|
-
MountOptions: output.MountOptions
|
|
2945
|
-
|
|
2946
|
-
: undefined,
|
|
2947
|
-
OnPremConfig: output.OnPremConfig !== undefined && output.OnPremConfig !== null
|
|
2948
|
-
? deserializeAws_json1_1OnPremConfig(output.OnPremConfig, context)
|
|
2949
|
-
: undefined,
|
|
3029
|
+
MountOptions: output.MountOptions != null ? deserializeAws_json1_1NfsMountOptions(output.MountOptions, context) : undefined,
|
|
3030
|
+
OnPremConfig: output.OnPremConfig != null ? deserializeAws_json1_1OnPremConfig(output.OnPremConfig, context) : undefined,
|
|
2950
3031
|
};
|
|
2951
3032
|
};
|
|
2952
3033
|
const deserializeAws_json1_1DescribeLocationObjectStorageResponse = (output, context) => {
|
|
2953
3034
|
return {
|
|
2954
3035
|
AccessKey: (0, smithy_client_1.expectString)(output.AccessKey),
|
|
2955
|
-
AgentArns: output.AgentArns
|
|
2956
|
-
|
|
2957
|
-
: undefined,
|
|
2958
|
-
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3036
|
+
AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
|
|
3037
|
+
CreationTime: output.CreationTime != null
|
|
2959
3038
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2960
3039
|
: undefined,
|
|
2961
3040
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
@@ -2966,34 +3045,26 @@ const deserializeAws_json1_1DescribeLocationObjectStorageResponse = (output, con
|
|
|
2966
3045
|
};
|
|
2967
3046
|
const deserializeAws_json1_1DescribeLocationS3Response = (output, context) => {
|
|
2968
3047
|
return {
|
|
2969
|
-
AgentArns: output.AgentArns
|
|
2970
|
-
|
|
2971
|
-
: undefined,
|
|
2972
|
-
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3048
|
+
AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
|
|
3049
|
+
CreationTime: output.CreationTime != null
|
|
2973
3050
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2974
3051
|
: undefined,
|
|
2975
3052
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2976
3053
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2977
|
-
S3Config: output.S3Config
|
|
2978
|
-
? deserializeAws_json1_1S3Config(output.S3Config, context)
|
|
2979
|
-
: undefined,
|
|
3054
|
+
S3Config: output.S3Config != null ? deserializeAws_json1_1S3Config(output.S3Config, context) : undefined,
|
|
2980
3055
|
S3StorageClass: (0, smithy_client_1.expectString)(output.S3StorageClass),
|
|
2981
3056
|
};
|
|
2982
3057
|
};
|
|
2983
3058
|
const deserializeAws_json1_1DescribeLocationSmbResponse = (output, context) => {
|
|
2984
3059
|
return {
|
|
2985
|
-
AgentArns: output.AgentArns
|
|
2986
|
-
|
|
2987
|
-
: undefined,
|
|
2988
|
-
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3060
|
+
AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
|
|
3061
|
+
CreationTime: output.CreationTime != null
|
|
2989
3062
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2990
3063
|
: undefined,
|
|
2991
3064
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
2992
3065
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2993
3066
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2994
|
-
MountOptions: output.MountOptions
|
|
2995
|
-
? deserializeAws_json1_1SmbMountOptions(output.MountOptions, context)
|
|
2996
|
-
: undefined,
|
|
3067
|
+
MountOptions: output.MountOptions != null ? deserializeAws_json1_1SmbMountOptions(output.MountOptions, context) : undefined,
|
|
2997
3068
|
User: (0, smithy_client_1.expectString)(output.User),
|
|
2998
3069
|
};
|
|
2999
3070
|
};
|
|
@@ -3003,22 +3074,12 @@ const deserializeAws_json1_1DescribeTaskExecutionResponse = (output, context) =>
|
|
|
3003
3074
|
BytesWritten: (0, smithy_client_1.expectLong)(output.BytesWritten),
|
|
3004
3075
|
EstimatedBytesToTransfer: (0, smithy_client_1.expectLong)(output.EstimatedBytesToTransfer),
|
|
3005
3076
|
EstimatedFilesToTransfer: (0, smithy_client_1.expectLong)(output.EstimatedFilesToTransfer),
|
|
3006
|
-
Excludes: output.Excludes
|
|
3007
|
-
? deserializeAws_json1_1FilterList(output.Excludes, context)
|
|
3008
|
-
: undefined,
|
|
3077
|
+
Excludes: output.Excludes != null ? deserializeAws_json1_1FilterList(output.Excludes, context) : undefined,
|
|
3009
3078
|
FilesTransferred: (0, smithy_client_1.expectLong)(output.FilesTransferred),
|
|
3010
|
-
Includes: output.Includes
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
? deserializeAws_json1_1Options(output.Options, context)
|
|
3015
|
-
: undefined,
|
|
3016
|
-
Result: output.Result !== undefined && output.Result !== null
|
|
3017
|
-
? deserializeAws_json1_1TaskExecutionResultDetail(output.Result, context)
|
|
3018
|
-
: undefined,
|
|
3019
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
3020
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
3021
|
-
: undefined,
|
|
3079
|
+
Includes: output.Includes != null ? deserializeAws_json1_1FilterList(output.Includes, context) : undefined,
|
|
3080
|
+
Options: output.Options != null ? deserializeAws_json1_1Options(output.Options, context) : undefined,
|
|
3081
|
+
Result: output.Result != null ? deserializeAws_json1_1TaskExecutionResultDetail(output.Result, context) : undefined,
|
|
3082
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
3022
3083
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3023
3084
|
TaskExecutionArn: (0, smithy_client_1.expectString)(output.TaskExecutionArn),
|
|
3024
3085
|
};
|
|
@@ -3026,31 +3087,23 @@ const deserializeAws_json1_1DescribeTaskExecutionResponse = (output, context) =>
|
|
|
3026
3087
|
const deserializeAws_json1_1DescribeTaskResponse = (output, context) => {
|
|
3027
3088
|
return {
|
|
3028
3089
|
CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn),
|
|
3029
|
-
CreationTime: output.CreationTime
|
|
3090
|
+
CreationTime: output.CreationTime != null
|
|
3030
3091
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3031
3092
|
: undefined,
|
|
3032
3093
|
CurrentTaskExecutionArn: (0, smithy_client_1.expectString)(output.CurrentTaskExecutionArn),
|
|
3033
3094
|
DestinationLocationArn: (0, smithy_client_1.expectString)(output.DestinationLocationArn),
|
|
3034
|
-
DestinationNetworkInterfaceArns: output.DestinationNetworkInterfaceArns
|
|
3095
|
+
DestinationNetworkInterfaceArns: output.DestinationNetworkInterfaceArns != null
|
|
3035
3096
|
? deserializeAws_json1_1DestinationNetworkInterfaceArns(output.DestinationNetworkInterfaceArns, context)
|
|
3036
3097
|
: undefined,
|
|
3037
3098
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
3038
3099
|
ErrorDetail: (0, smithy_client_1.expectString)(output.ErrorDetail),
|
|
3039
|
-
Excludes: output.Excludes
|
|
3040
|
-
|
|
3041
|
-
: undefined,
|
|
3042
|
-
Includes: output.Includes !== undefined && output.Includes !== null
|
|
3043
|
-
? deserializeAws_json1_1FilterList(output.Includes, context)
|
|
3044
|
-
: undefined,
|
|
3100
|
+
Excludes: output.Excludes != null ? deserializeAws_json1_1FilterList(output.Excludes, context) : undefined,
|
|
3101
|
+
Includes: output.Includes != null ? deserializeAws_json1_1FilterList(output.Includes, context) : undefined,
|
|
3045
3102
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3046
|
-
Options: output.Options
|
|
3047
|
-
|
|
3048
|
-
: undefined,
|
|
3049
|
-
Schedule: output.Schedule !== undefined && output.Schedule !== null
|
|
3050
|
-
? deserializeAws_json1_1TaskSchedule(output.Schedule, context)
|
|
3051
|
-
: undefined,
|
|
3103
|
+
Options: output.Options != null ? deserializeAws_json1_1Options(output.Options, context) : undefined,
|
|
3104
|
+
Schedule: output.Schedule != null ? deserializeAws_json1_1TaskSchedule(output.Schedule, context) : undefined,
|
|
3052
3105
|
SourceLocationArn: (0, smithy_client_1.expectString)(output.SourceLocationArn),
|
|
3053
|
-
SourceNetworkInterfaceArns: output.SourceNetworkInterfaceArns
|
|
3106
|
+
SourceNetworkInterfaceArns: output.SourceNetworkInterfaceArns != null
|
|
3054
3107
|
? deserializeAws_json1_1SourceNetworkInterfaceArns(output.SourceNetworkInterfaceArns, context)
|
|
3055
3108
|
: undefined,
|
|
3056
3109
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -3070,7 +3123,7 @@ const deserializeAws_json1_1DestinationNetworkInterfaceArns = (output, context)
|
|
|
3070
3123
|
};
|
|
3071
3124
|
const deserializeAws_json1_1Ec2Config = (output, context) => {
|
|
3072
3125
|
return {
|
|
3073
|
-
SecurityGroupArns: output.SecurityGroupArns
|
|
3126
|
+
SecurityGroupArns: output.SecurityGroupArns != null
|
|
3074
3127
|
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
3075
3128
|
: undefined,
|
|
3076
3129
|
SubnetArn: (0, smithy_client_1.expectString)(output.SubnetArn),
|
|
@@ -3106,16 +3159,21 @@ const deserializeAws_json1_1FilterRule = (output, context) => {
|
|
|
3106
3159
|
};
|
|
3107
3160
|
const deserializeAws_json1_1FsxProtocol = (output, context) => {
|
|
3108
3161
|
return {
|
|
3109
|
-
NFS: output.NFS
|
|
3110
|
-
|
|
3111
|
-
: undefined,
|
|
3162
|
+
NFS: output.NFS != null ? deserializeAws_json1_1FsxProtocolNfs(output.NFS, context) : undefined,
|
|
3163
|
+
SMB: output.SMB != null ? deserializeAws_json1_1FsxProtocolSmb(output.SMB, context) : undefined,
|
|
3112
3164
|
};
|
|
3113
3165
|
};
|
|
3114
3166
|
const deserializeAws_json1_1FsxProtocolNfs = (output, context) => {
|
|
3115
3167
|
return {
|
|
3116
|
-
MountOptions: output.MountOptions
|
|
3117
|
-
|
|
3118
|
-
|
|
3168
|
+
MountOptions: output.MountOptions != null ? deserializeAws_json1_1NfsMountOptions(output.MountOptions, context) : undefined,
|
|
3169
|
+
};
|
|
3170
|
+
};
|
|
3171
|
+
const deserializeAws_json1_1FsxProtocolSmb = (output, context) => {
|
|
3172
|
+
return {
|
|
3173
|
+
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
3174
|
+
MountOptions: output.MountOptions != null ? deserializeAws_json1_1SmbMountOptions(output.MountOptions, context) : undefined,
|
|
3175
|
+
Password: (0, smithy_client_1.expectString)(output.Password),
|
|
3176
|
+
User: (0, smithy_client_1.expectString)(output.User),
|
|
3119
3177
|
};
|
|
3120
3178
|
};
|
|
3121
3179
|
const deserializeAws_json1_1HdfsNameNode = (output, context) => {
|
|
@@ -3150,32 +3208,26 @@ const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
|
3150
3208
|
};
|
|
3151
3209
|
const deserializeAws_json1_1ListAgentsResponse = (output, context) => {
|
|
3152
3210
|
return {
|
|
3153
|
-
Agents: output.Agents
|
|
3154
|
-
? deserializeAws_json1_1AgentList(output.Agents, context)
|
|
3155
|
-
: undefined,
|
|
3211
|
+
Agents: output.Agents != null ? deserializeAws_json1_1AgentList(output.Agents, context) : undefined,
|
|
3156
3212
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3157
3213
|
};
|
|
3158
3214
|
};
|
|
3159
3215
|
const deserializeAws_json1_1ListLocationsResponse = (output, context) => {
|
|
3160
3216
|
return {
|
|
3161
|
-
Locations: output.Locations
|
|
3162
|
-
? deserializeAws_json1_1LocationList(output.Locations, context)
|
|
3163
|
-
: undefined,
|
|
3217
|
+
Locations: output.Locations != null ? deserializeAws_json1_1LocationList(output.Locations, context) : undefined,
|
|
3164
3218
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3165
3219
|
};
|
|
3166
3220
|
};
|
|
3167
3221
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
3168
3222
|
return {
|
|
3169
3223
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3170
|
-
Tags: output.Tags
|
|
3171
|
-
? deserializeAws_json1_1OutputTagList(output.Tags, context)
|
|
3172
|
-
: undefined,
|
|
3224
|
+
Tags: output.Tags != null ? deserializeAws_json1_1OutputTagList(output.Tags, context) : undefined,
|
|
3173
3225
|
};
|
|
3174
3226
|
};
|
|
3175
3227
|
const deserializeAws_json1_1ListTaskExecutionsResponse = (output, context) => {
|
|
3176
3228
|
return {
|
|
3177
3229
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3178
|
-
TaskExecutions: output.TaskExecutions
|
|
3230
|
+
TaskExecutions: output.TaskExecutions != null
|
|
3179
3231
|
? deserializeAws_json1_1TaskExecutionList(output.TaskExecutions, context)
|
|
3180
3232
|
: undefined,
|
|
3181
3233
|
};
|
|
@@ -3183,9 +3235,7 @@ const deserializeAws_json1_1ListTaskExecutionsResponse = (output, context) => {
|
|
|
3183
3235
|
const deserializeAws_json1_1ListTasksResponse = (output, context) => {
|
|
3184
3236
|
return {
|
|
3185
3237
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3186
|
-
Tasks: output.Tasks
|
|
3187
|
-
? deserializeAws_json1_1TaskList(output.Tasks, context)
|
|
3188
|
-
: undefined,
|
|
3238
|
+
Tasks: output.Tasks != null ? deserializeAws_json1_1TaskList(output.Tasks, context) : undefined,
|
|
3189
3239
|
};
|
|
3190
3240
|
};
|
|
3191
3241
|
const deserializeAws_json1_1LocationList = (output, context) => {
|
|
@@ -3212,9 +3262,7 @@ const deserializeAws_json1_1NfsMountOptions = (output, context) => {
|
|
|
3212
3262
|
};
|
|
3213
3263
|
const deserializeAws_json1_1OnPremConfig = (output, context) => {
|
|
3214
3264
|
return {
|
|
3215
|
-
AgentArns: output.AgentArns
|
|
3216
|
-
? deserializeAws_json1_1AgentArnList(output.AgentArns, context)
|
|
3217
|
-
: undefined,
|
|
3265
|
+
AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
|
|
3218
3266
|
};
|
|
3219
3267
|
};
|
|
3220
3268
|
const deserializeAws_json1_1Options = (output, context) => {
|
|
@@ -3272,12 +3320,10 @@ const deserializeAws_json1_1PLSubnetArnList = (output, context) => {
|
|
|
3272
3320
|
const deserializeAws_json1_1PrivateLinkConfig = (output, context) => {
|
|
3273
3321
|
return {
|
|
3274
3322
|
PrivateLinkEndpoint: (0, smithy_client_1.expectString)(output.PrivateLinkEndpoint),
|
|
3275
|
-
SecurityGroupArns: output.SecurityGroupArns
|
|
3323
|
+
SecurityGroupArns: output.SecurityGroupArns != null
|
|
3276
3324
|
? deserializeAws_json1_1PLSecurityGroupArnList(output.SecurityGroupArns, context)
|
|
3277
3325
|
: undefined,
|
|
3278
|
-
SubnetArns: output.SubnetArns
|
|
3279
|
-
? deserializeAws_json1_1PLSubnetArnList(output.SubnetArns, context)
|
|
3280
|
-
: undefined,
|
|
3326
|
+
SubnetArns: output.SubnetArns != null ? deserializeAws_json1_1PLSubnetArnList(output.SubnetArns, context) : undefined,
|
|
3281
3327
|
VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
|
|
3282
3328
|
};
|
|
3283
3329
|
};
|
|
@@ -3461,5 +3507,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3461
3507
|
if (data["__type"] !== undefined) {
|
|
3462
3508
|
return sanitizeErrorCode(data["__type"]);
|
|
3463
3509
|
}
|
|
3464
|
-
return "";
|
|
3465
3510
|
};
|