@aws-sdk/client-datasync 3.39.0 → 3.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist-cjs/DataSync.js +45 -0
  3. package/dist-cjs/commands/CreateLocationHdfsCommand.js +36 -0
  4. package/dist-cjs/commands/DescribeLocationHdfsCommand.js +36 -0
  5. package/dist-cjs/commands/UpdateLocationHdfsCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/endpoints.js +151 -26
  8. package/dist-cjs/models/models_0.js +70 -3
  9. package/dist-cjs/protocols/Aws_json1_1.js +336 -2
  10. package/dist-cjs/runtimeConfig.browser.js +6 -3
  11. package/dist-cjs/runtimeConfig.js +5 -3
  12. package/dist-es/DataSync.js +45 -0
  13. package/dist-es/commands/CreateLocationHdfsCommand.js +39 -0
  14. package/dist-es/commands/DescribeLocationHdfsCommand.js +39 -0
  15. package/dist-es/commands/UpdateLocationHdfsCommand.js +39 -0
  16. package/dist-es/commands/index.js +3 -0
  17. package/dist-es/endpoints.js +151 -26
  18. package/dist-es/models/models_0.js +51 -0
  19. package/dist-es/protocols/Aws_json1_1.js +328 -0
  20. package/dist-es/runtimeConfig.browser.js +3 -2
  21. package/dist-es/runtimeConfig.js +3 -3
  22. package/dist-types/DataSync.d.ts +23 -0
  23. package/dist-types/DataSyncClient.d.ts +13 -2
  24. package/dist-types/commands/CancelTaskExecutionCommand.d.ts +1 -1
  25. package/dist-types/commands/CreateAgentCommand.d.ts +1 -1
  26. package/dist-types/commands/CreateLocationEfsCommand.d.ts +1 -1
  27. package/dist-types/commands/CreateLocationFsxWindowsCommand.d.ts +1 -1
  28. package/dist-types/commands/CreateLocationHdfsCommand.d.ts +35 -0
  29. package/dist-types/commands/CreateLocationNfsCommand.d.ts +1 -1
  30. package/dist-types/commands/CreateLocationObjectStorageCommand.d.ts +1 -1
  31. package/dist-types/commands/CreateLocationS3Command.d.ts +1 -1
  32. package/dist-types/commands/CreateLocationSmbCommand.d.ts +1 -1
  33. package/dist-types/commands/CreateTaskCommand.d.ts +1 -1
  34. package/dist-types/commands/DeleteAgentCommand.d.ts +1 -1
  35. package/dist-types/commands/DeleteLocationCommand.d.ts +1 -1
  36. package/dist-types/commands/DeleteTaskCommand.d.ts +1 -1
  37. package/dist-types/commands/DescribeAgentCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeLocationEfsCommand.d.ts +1 -1
  39. package/dist-types/commands/DescribeLocationFsxWindowsCommand.d.ts +1 -1
  40. package/dist-types/commands/DescribeLocationHdfsCommand.d.ts +36 -0
  41. package/dist-types/commands/DescribeLocationNfsCommand.d.ts +1 -1
  42. package/dist-types/commands/DescribeLocationObjectStorageCommand.d.ts +1 -1
  43. package/dist-types/commands/DescribeLocationS3Command.d.ts +1 -1
  44. package/dist-types/commands/DescribeLocationSmbCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribeTaskCommand.d.ts +1 -1
  46. package/dist-types/commands/DescribeTaskExecutionCommand.d.ts +1 -1
  47. package/dist-types/commands/ListAgentsCommand.d.ts +1 -1
  48. package/dist-types/commands/ListLocationsCommand.d.ts +1 -1
  49. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  50. package/dist-types/commands/ListTaskExecutionsCommand.d.ts +1 -1
  51. package/dist-types/commands/ListTasksCommand.d.ts +1 -1
  52. package/dist-types/commands/StartTaskExecutionCommand.d.ts +1 -1
  53. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  54. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdateAgentCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateLocationHdfsCommand.d.ts +36 -0
  57. package/dist-types/commands/UpdateLocationNfsCommand.d.ts +1 -1
  58. package/dist-types/commands/UpdateLocationObjectStorageCommand.d.ts +1 -1
  59. package/dist-types/commands/UpdateLocationSmbCommand.d.ts +1 -1
  60. package/dist-types/commands/UpdateTaskCommand.d.ts +1 -1
  61. package/dist-types/commands/UpdateTaskExecutionCommand.d.ts +1 -1
  62. package/dist-types/commands/index.d.ts +3 -0
  63. package/dist-types/models/models_0.d.ts +343 -25
  64. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  65. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  66. package/dist-types/runtimeConfig.d.ts +2 -0
  67. package/dist-types/runtimeConfig.native.d.ts +2 -0
  68. package/dist-types/ts3.4/DataSync.d.ts +15 -0
  69. package/dist-types/ts3.4/DataSyncClient.d.ts +9 -2
  70. package/dist-types/ts3.4/commands/CreateLocationHdfsCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/DescribeLocationHdfsCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/UpdateLocationHdfsCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  74. package/dist-types/ts3.4/models/models_0.d.ts +154 -0
  75. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +9 -0
  76. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  77. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  78. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  79. package/package.json +23 -23
@@ -45,6 +45,17 @@ export var serializeAws_json1_1CreateLocationFsxWindowsCommand = function (input
45
45
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
46
46
  });
47
47
  }); };
48
+ export var serializeAws_json1_1CreateLocationHdfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
49
+ var headers, body;
50
+ return __generator(this, function (_a) {
51
+ headers = {
52
+ "content-type": "application/x-amz-json-1.1",
53
+ "x-amz-target": "FmrsService.CreateLocationHdfs",
54
+ };
55
+ body = JSON.stringify(serializeAws_json1_1CreateLocationHdfsRequest(input, context));
56
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
57
+ });
58
+ }); };
48
59
  export var serializeAws_json1_1CreateLocationNfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
49
60
  var headers, body;
50
61
  return __generator(this, function (_a) {
@@ -166,6 +177,17 @@ export var serializeAws_json1_1DescribeLocationFsxWindowsCommand = function (inp
166
177
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
167
178
  });
168
179
  }); };
180
+ export var serializeAws_json1_1DescribeLocationHdfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
181
+ var headers, body;
182
+ return __generator(this, function (_a) {
183
+ headers = {
184
+ "content-type": "application/x-amz-json-1.1",
185
+ "x-amz-target": "FmrsService.DescribeLocationHdfs",
186
+ };
187
+ body = JSON.stringify(serializeAws_json1_1DescribeLocationHdfsRequest(input, context));
188
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
189
+ });
190
+ }); };
169
191
  export var serializeAws_json1_1DescribeLocationNfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
170
192
  var headers, body;
171
193
  return __generator(this, function (_a) {
@@ -331,6 +353,17 @@ export var serializeAws_json1_1UpdateAgentCommand = function (input, context) {
331
353
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
332
354
  });
333
355
  }); };
356
+ export var serializeAws_json1_1UpdateLocationHdfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
357
+ var headers, body;
358
+ return __generator(this, function (_a) {
359
+ headers = {
360
+ "content-type": "application/x-amz-json-1.1",
361
+ "x-amz-target": "FmrsService.UpdateLocationHdfs",
362
+ };
363
+ body = JSON.stringify(serializeAws_json1_1UpdateLocationHdfsRequest(input, context));
364
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
365
+ });
366
+ }); };
334
367
  export var serializeAws_json1_1UpdateLocationNfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
335
368
  var headers, body;
336
369
  return __generator(this, function (_a) {
@@ -642,6 +675,70 @@ var deserializeAws_json1_1CreateLocationFsxWindowsCommandError = function (outpu
642
675
  }
643
676
  });
644
677
  }); };
678
+ export var deserializeAws_json1_1CreateLocationHdfsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
679
+ var data, contents, response;
680
+ return __generator(this, function (_a) {
681
+ switch (_a.label) {
682
+ case 0:
683
+ if (output.statusCode >= 300) {
684
+ return [2, deserializeAws_json1_1CreateLocationHdfsCommandError(output, context)];
685
+ }
686
+ return [4, parseBody(output.body, context)];
687
+ case 1:
688
+ data = _a.sent();
689
+ contents = {};
690
+ contents = deserializeAws_json1_1CreateLocationHdfsResponse(data, context);
691
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
692
+ return [2, Promise.resolve(response)];
693
+ }
694
+ });
695
+ }); };
696
+ var deserializeAws_json1_1CreateLocationHdfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
697
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
698
+ var _e;
699
+ return __generator(this, function (_f) {
700
+ switch (_f.label) {
701
+ case 0:
702
+ _a = [__assign({}, output)];
703
+ _e = {};
704
+ return [4, parseBody(output.body, context)];
705
+ case 1:
706
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
707
+ errorCode = "UnknownError";
708
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
709
+ _b = errorCode;
710
+ switch (_b) {
711
+ case "InternalException": return [3, 2];
712
+ case "com.amazonaws.datasync#InternalException": return [3, 2];
713
+ case "InvalidRequestException": return [3, 4];
714
+ case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
715
+ }
716
+ return [3, 6];
717
+ case 2:
718
+ _c = [{}];
719
+ return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
720
+ case 3:
721
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
722
+ return [3, 7];
723
+ case 4:
724
+ _d = [{}];
725
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
726
+ case 5:
727
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
728
+ return [3, 7];
729
+ case 6:
730
+ parsedBody = parsedOutput.body;
731
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
732
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
733
+ _f.label = 7;
734
+ case 7:
735
+ message = response.message || response.Message || errorCode;
736
+ response.message = message;
737
+ delete response.Message;
738
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
739
+ }
740
+ });
741
+ }); };
645
742
  export var deserializeAws_json1_1CreateLocationNfsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
646
743
  var data, contents, response;
647
744
  return __generator(this, function (_a) {
@@ -1346,6 +1443,70 @@ var deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = function (out
1346
1443
  }
1347
1444
  });
1348
1445
  }); };
1446
+ export var deserializeAws_json1_1DescribeLocationHdfsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1447
+ var data, contents, response;
1448
+ return __generator(this, function (_a) {
1449
+ switch (_a.label) {
1450
+ case 0:
1451
+ if (output.statusCode >= 300) {
1452
+ return [2, deserializeAws_json1_1DescribeLocationHdfsCommandError(output, context)];
1453
+ }
1454
+ return [4, parseBody(output.body, context)];
1455
+ case 1:
1456
+ data = _a.sent();
1457
+ contents = {};
1458
+ contents = deserializeAws_json1_1DescribeLocationHdfsResponse(data, context);
1459
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1460
+ return [2, Promise.resolve(response)];
1461
+ }
1462
+ });
1463
+ }); };
1464
+ var deserializeAws_json1_1DescribeLocationHdfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1465
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
1466
+ var _e;
1467
+ return __generator(this, function (_f) {
1468
+ switch (_f.label) {
1469
+ case 0:
1470
+ _a = [__assign({}, output)];
1471
+ _e = {};
1472
+ return [4, parseBody(output.body, context)];
1473
+ case 1:
1474
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1475
+ errorCode = "UnknownError";
1476
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1477
+ _b = errorCode;
1478
+ switch (_b) {
1479
+ case "InternalException": return [3, 2];
1480
+ case "com.amazonaws.datasync#InternalException": return [3, 2];
1481
+ case "InvalidRequestException": return [3, 4];
1482
+ case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
1483
+ }
1484
+ return [3, 6];
1485
+ case 2:
1486
+ _c = [{}];
1487
+ return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
1488
+ case 3:
1489
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1490
+ return [3, 7];
1491
+ case 4:
1492
+ _d = [{}];
1493
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1494
+ case 5:
1495
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1496
+ return [3, 7];
1497
+ case 6:
1498
+ parsedBody = parsedOutput.body;
1499
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1500
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1501
+ _f.label = 7;
1502
+ case 7:
1503
+ message = response.message || response.Message || errorCode;
1504
+ response.message = message;
1505
+ delete response.Message;
1506
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1507
+ }
1508
+ });
1509
+ }); };
1349
1510
  export var deserializeAws_json1_1DescribeLocationNfsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1350
1511
  var data, contents, response;
1351
1512
  return __generator(this, function (_a) {
@@ -2306,6 +2467,70 @@ var deserializeAws_json1_1UpdateAgentCommandError = function (output, context) {
2306
2467
  }
2307
2468
  });
2308
2469
  }); };
2470
+ export var deserializeAws_json1_1UpdateLocationHdfsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2471
+ var data, contents, response;
2472
+ return __generator(this, function (_a) {
2473
+ switch (_a.label) {
2474
+ case 0:
2475
+ if (output.statusCode >= 300) {
2476
+ return [2, deserializeAws_json1_1UpdateLocationHdfsCommandError(output, context)];
2477
+ }
2478
+ return [4, parseBody(output.body, context)];
2479
+ case 1:
2480
+ data = _a.sent();
2481
+ contents = {};
2482
+ contents = deserializeAws_json1_1UpdateLocationHdfsResponse(data, context);
2483
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2484
+ return [2, Promise.resolve(response)];
2485
+ }
2486
+ });
2487
+ }); };
2488
+ var deserializeAws_json1_1UpdateLocationHdfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2489
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
2490
+ var _e;
2491
+ return __generator(this, function (_f) {
2492
+ switch (_f.label) {
2493
+ case 0:
2494
+ _a = [__assign({}, output)];
2495
+ _e = {};
2496
+ return [4, parseBody(output.body, context)];
2497
+ case 1:
2498
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
2499
+ errorCode = "UnknownError";
2500
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2501
+ _b = errorCode;
2502
+ switch (_b) {
2503
+ case "InternalException": return [3, 2];
2504
+ case "com.amazonaws.datasync#InternalException": return [3, 2];
2505
+ case "InvalidRequestException": return [3, 4];
2506
+ case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
2507
+ }
2508
+ return [3, 6];
2509
+ case 2:
2510
+ _c = [{}];
2511
+ return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
2512
+ case 3:
2513
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2514
+ return [3, 7];
2515
+ case 4:
2516
+ _d = [{}];
2517
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2518
+ case 5:
2519
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2520
+ return [3, 7];
2521
+ case 6:
2522
+ parsedBody = parsedOutput.body;
2523
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2524
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2525
+ _f.label = 7;
2526
+ case 7:
2527
+ message = response.message || response.Message || errorCode;
2528
+ response.message = message;
2529
+ delete response.Message;
2530
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2531
+ }
2532
+ });
2533
+ }); };
2309
2534
  export var deserializeAws_json1_1UpdateLocationNfsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2310
2535
  var data, contents, response;
2311
2536
  return __generator(this, function (_a) {
@@ -2680,6 +2905,21 @@ var serializeAws_json1_1CreateLocationFsxWindowsRequest = function (input, conte
2680
2905
  })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
2681
2906
  input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) })), (input.User !== undefined && input.User !== null && { User: input.User }));
2682
2907
  };
2908
+ var serializeAws_json1_1CreateLocationHdfsRequest = function (input, context) {
2909
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AgentArns !== undefined &&
2910
+ input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.AuthenticationType !== undefined &&
2911
+ input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.BlockSize !== undefined && input.BlockSize !== null && { BlockSize: input.BlockSize })), (input.KerberosKeytab !== undefined &&
2912
+ input.KerberosKeytab !== null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) })), (input.KerberosKrb5Conf !== undefined &&
2913
+ input.KerberosKrb5Conf !== null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) })), (input.KerberosPrincipal !== undefined &&
2914
+ input.KerberosPrincipal !== null && { KerberosPrincipal: input.KerberosPrincipal })), (input.KmsKeyProviderUri !== undefined &&
2915
+ input.KmsKeyProviderUri !== null && { KmsKeyProviderUri: input.KmsKeyProviderUri })), (input.NameNodes !== undefined &&
2916
+ input.NameNodes !== null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) })), (input.QopConfiguration !== undefined &&
2917
+ input.QopConfiguration !== null && {
2918
+ QopConfiguration: serializeAws_json1_1QopConfiguration(input.QopConfiguration, context),
2919
+ })), (input.ReplicationFactor !== undefined &&
2920
+ input.ReplicationFactor !== null && { ReplicationFactor: input.ReplicationFactor })), (input.SimpleUser !== undefined && input.SimpleUser !== null && { SimpleUser: input.SimpleUser })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
2921
+ input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
2922
+ };
2683
2923
  var serializeAws_json1_1CreateLocationNfsRequest = function (input, context) {
2684
2924
  return __assign(__assign(__assign(__assign(__assign({}, (input.MountOptions !== undefined &&
2685
2925
  input.MountOptions !== null && {
@@ -2741,6 +2981,9 @@ var serializeAws_json1_1DescribeLocationEfsRequest = function (input, context) {
2741
2981
  var serializeAws_json1_1DescribeLocationFsxWindowsRequest = function (input, context) {
2742
2982
  return __assign({}, (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }));
2743
2983
  };
2984
+ var serializeAws_json1_1DescribeLocationHdfsRequest = function (input, context) {
2985
+ return __assign({}, (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }));
2986
+ };
2744
2987
  var serializeAws_json1_1DescribeLocationNfsRequest = function (input, context) {
2745
2988
  return __assign({}, (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }));
2746
2989
  };
@@ -2799,6 +3042,19 @@ var serializeAws_json1_1FilterValues = function (input, context) {
2799
3042
  return entry;
2800
3043
  });
2801
3044
  };
3045
+ var serializeAws_json1_1HdfsNameNode = function (input, context) {
3046
+ return __assign(__assign({}, (input.Hostname !== undefined && input.Hostname !== null && { Hostname: input.Hostname })), (input.Port !== undefined && input.Port !== null && { Port: input.Port }));
3047
+ };
3048
+ var serializeAws_json1_1HdfsNameNodeList = function (input, context) {
3049
+ return input
3050
+ .filter(function (e) { return e != null; })
3051
+ .map(function (entry) {
3052
+ if (entry === null) {
3053
+ return null;
3054
+ }
3055
+ return serializeAws_json1_1HdfsNameNode(entry, context);
3056
+ });
3057
+ };
2802
3058
  var serializeAws_json1_1InputTagList = function (input, context) {
2803
3059
  return input
2804
3060
  .filter(function (e) { return e != null; })
@@ -2875,6 +3131,10 @@ var serializeAws_json1_1PLSubnetArnList = function (input, context) {
2875
3131
  return entry;
2876
3132
  });
2877
3133
  };
3134
+ var serializeAws_json1_1QopConfiguration = function (input, context) {
3135
+ return __assign(__assign({}, (input.DataTransferProtection !== undefined &&
3136
+ input.DataTransferProtection !== null && { DataTransferProtection: input.DataTransferProtection })), (input.RpcProtection !== undefined && input.RpcProtection !== null && { RpcProtection: input.RpcProtection }));
3137
+ };
2878
3138
  var serializeAws_json1_1S3Config = function (input, context) {
2879
3139
  return __assign({}, (input.BucketAccessRoleArn !== undefined &&
2880
3140
  input.BucketAccessRoleArn !== null && { BucketAccessRoleArn: input.BucketAccessRoleArn }));
@@ -2932,6 +3192,20 @@ var serializeAws_json1_1UntagResourceRequest = function (input, context) {
2932
3192
  var serializeAws_json1_1UpdateAgentRequest = function (input, context) {
2933
3193
  return __assign(__assign({}, (input.AgentArn !== undefined && input.AgentArn !== null && { AgentArn: input.AgentArn })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
2934
3194
  };
3195
+ var serializeAws_json1_1UpdateLocationHdfsRequest = function (input, context) {
3196
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AgentArns !== undefined &&
3197
+ input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.AuthenticationType !== undefined &&
3198
+ input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.BlockSize !== undefined && input.BlockSize !== null && { BlockSize: input.BlockSize })), (input.KerberosKeytab !== undefined &&
3199
+ input.KerberosKeytab !== null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) })), (input.KerberosKrb5Conf !== undefined &&
3200
+ input.KerberosKrb5Conf !== null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) })), (input.KerberosPrincipal !== undefined &&
3201
+ input.KerberosPrincipal !== null && { KerberosPrincipal: input.KerberosPrincipal })), (input.KmsKeyProviderUri !== undefined &&
3202
+ input.KmsKeyProviderUri !== null && { KmsKeyProviderUri: input.KmsKeyProviderUri })), (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn })), (input.NameNodes !== undefined &&
3203
+ input.NameNodes !== null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) })), (input.QopConfiguration !== undefined &&
3204
+ input.QopConfiguration !== null && {
3205
+ QopConfiguration: serializeAws_json1_1QopConfiguration(input.QopConfiguration, context),
3206
+ })), (input.ReplicationFactor !== undefined &&
3207
+ input.ReplicationFactor !== null && { ReplicationFactor: input.ReplicationFactor })), (input.SimpleUser !== undefined && input.SimpleUser !== null && { SimpleUser: input.SimpleUser })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }));
3208
+ };
2935
3209
  var serializeAws_json1_1UpdateLocationNfsRequest = function (input, context) {
2936
3210
  return __assign(__assign(__assign(__assign({}, (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn })), (input.MountOptions !== undefined &&
2937
3211
  input.MountOptions !== null && {
@@ -3009,6 +3283,11 @@ var deserializeAws_json1_1CreateLocationFsxWindowsResponse = function (output, c
3009
3283
  LocationArn: __expectString(output.LocationArn),
3010
3284
  };
3011
3285
  };
3286
+ var deserializeAws_json1_1CreateLocationHdfsResponse = function (output, context) {
3287
+ return {
3288
+ LocationArn: __expectString(output.LocationArn),
3289
+ };
3290
+ };
3012
3291
  var deserializeAws_json1_1CreateLocationNfsResponse = function (output, context) {
3013
3292
  return {
3014
3293
  LocationArn: __expectString(output.LocationArn),
@@ -3086,6 +3365,30 @@ var deserializeAws_json1_1DescribeLocationFsxWindowsResponse = function (output,
3086
3365
  User: __expectString(output.User),
3087
3366
  };
3088
3367
  };
3368
+ var deserializeAws_json1_1DescribeLocationHdfsResponse = function (output, context) {
3369
+ return {
3370
+ AgentArns: output.AgentArns !== undefined && output.AgentArns !== null
3371
+ ? deserializeAws_json1_1AgentArnList(output.AgentArns, context)
3372
+ : undefined,
3373
+ AuthenticationType: __expectString(output.AuthenticationType),
3374
+ BlockSize: __expectInt32(output.BlockSize),
3375
+ CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3376
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3377
+ : undefined,
3378
+ KerberosPrincipal: __expectString(output.KerberosPrincipal),
3379
+ KmsKeyProviderUri: __expectString(output.KmsKeyProviderUri),
3380
+ LocationArn: __expectString(output.LocationArn),
3381
+ LocationUri: __expectString(output.LocationUri),
3382
+ NameNodes: output.NameNodes !== undefined && output.NameNodes !== null
3383
+ ? deserializeAws_json1_1HdfsNameNodeList(output.NameNodes, context)
3384
+ : undefined,
3385
+ QopConfiguration: output.QopConfiguration !== undefined && output.QopConfiguration !== null
3386
+ ? deserializeAws_json1_1QopConfiguration(output.QopConfiguration, context)
3387
+ : undefined,
3388
+ ReplicationFactor: __expectInt32(output.ReplicationFactor),
3389
+ SimpleUser: __expectString(output.SimpleUser),
3390
+ };
3391
+ };
3089
3392
  var deserializeAws_json1_1DescribeLocationNfsResponse = function (output, context) {
3090
3393
  return {
3091
3394
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
@@ -3253,6 +3556,22 @@ var deserializeAws_json1_1FilterRule = function (output, context) {
3253
3556
  Value: __expectString(output.Value),
3254
3557
  };
3255
3558
  };
3559
+ var deserializeAws_json1_1HdfsNameNode = function (output, context) {
3560
+ return {
3561
+ Hostname: __expectString(output.Hostname),
3562
+ Port: __expectInt32(output.Port),
3563
+ };
3564
+ };
3565
+ var deserializeAws_json1_1HdfsNameNodeList = function (output, context) {
3566
+ return (output || [])
3567
+ .filter(function (e) { return e != null; })
3568
+ .map(function (entry) {
3569
+ if (entry === null) {
3570
+ return null;
3571
+ }
3572
+ return deserializeAws_json1_1HdfsNameNode(entry, context);
3573
+ });
3574
+ };
3256
3575
  var deserializeAws_json1_1InternalException = function (output, context) {
3257
3576
  return {
3258
3577
  errorCode: __expectString(output.errorCode),
@@ -3393,6 +3712,12 @@ var deserializeAws_json1_1PrivateLinkConfig = function (output, context) {
3393
3712
  VpcEndpointId: __expectString(output.VpcEndpointId),
3394
3713
  };
3395
3714
  };
3715
+ var deserializeAws_json1_1QopConfiguration = function (output, context) {
3716
+ return {
3717
+ DataTransferProtection: __expectString(output.DataTransferProtection),
3718
+ RpcProtection: __expectString(output.RpcProtection),
3719
+ };
3720
+ };
3396
3721
  var deserializeAws_json1_1S3Config = function (output, context) {
3397
3722
  return {
3398
3723
  BucketAccessRoleArn: __expectString(output.BucketAccessRoleArn),
@@ -3484,6 +3809,9 @@ var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
3484
3809
  var deserializeAws_json1_1UpdateAgentResponse = function (output, context) {
3485
3810
  return {};
3486
3811
  };
3812
+ var deserializeAws_json1_1UpdateLocationHdfsResponse = function (output, context) {
3813
+ return {};
3814
+ };
3487
3815
  var deserializeAws_json1_1UpdateLocationNfsResponse = function (output, context) {
3488
3816
  return {};
3489
3817
  };
@@ -1,6 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
5
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  export var getRuntimeConfig = function (config) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
15
  var clientSharedValues = getSharedRuntimeConfig(config);
15
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
16
17
  };
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
21
  };
@@ -3,6 +3,7 @@ import { CancelTaskExecutionCommandInput, CancelTaskExecutionCommandOutput } fro
3
3
  import { CreateAgentCommandInput, CreateAgentCommandOutput } from "./commands/CreateAgentCommand";
4
4
  import { CreateLocationEfsCommandInput, CreateLocationEfsCommandOutput } from "./commands/CreateLocationEfsCommand";
5
5
  import { CreateLocationFsxWindowsCommandInput, CreateLocationFsxWindowsCommandOutput } from "./commands/CreateLocationFsxWindowsCommand";
6
+ import { CreateLocationHdfsCommandInput, CreateLocationHdfsCommandOutput } from "./commands/CreateLocationHdfsCommand";
6
7
  import { CreateLocationNfsCommandInput, CreateLocationNfsCommandOutput } from "./commands/CreateLocationNfsCommand";
7
8
  import { CreateLocationObjectStorageCommandInput, CreateLocationObjectStorageCommandOutput } from "./commands/CreateLocationObjectStorageCommand";
8
9
  import { CreateLocationS3CommandInput, CreateLocationS3CommandOutput } from "./commands/CreateLocationS3Command";
@@ -14,6 +15,7 @@ import { DeleteTaskCommandInput, DeleteTaskCommandOutput } from "./commands/Dele
14
15
  import { DescribeAgentCommandInput, DescribeAgentCommandOutput } from "./commands/DescribeAgentCommand";
15
16
  import { DescribeLocationEfsCommandInput, DescribeLocationEfsCommandOutput } from "./commands/DescribeLocationEfsCommand";
16
17
  import { DescribeLocationFsxWindowsCommandInput, DescribeLocationFsxWindowsCommandOutput } from "./commands/DescribeLocationFsxWindowsCommand";
18
+ import { DescribeLocationHdfsCommandInput, DescribeLocationHdfsCommandOutput } from "./commands/DescribeLocationHdfsCommand";
17
19
  import { DescribeLocationNfsCommandInput, DescribeLocationNfsCommandOutput } from "./commands/DescribeLocationNfsCommand";
18
20
  import { DescribeLocationObjectStorageCommandInput, DescribeLocationObjectStorageCommandOutput } from "./commands/DescribeLocationObjectStorageCommand";
19
21
  import { DescribeLocationS3CommandInput, DescribeLocationS3CommandOutput } from "./commands/DescribeLocationS3Command";
@@ -29,6 +31,7 @@ import { StartTaskExecutionCommandInput, StartTaskExecutionCommandOutput } from
29
31
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
30
32
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
31
33
  import { UpdateAgentCommandInput, UpdateAgentCommandOutput } from "./commands/UpdateAgentCommand";
34
+ import { UpdateLocationHdfsCommandInput, UpdateLocationHdfsCommandOutput } from "./commands/UpdateLocationHdfsCommand";
32
35
  import { UpdateLocationNfsCommandInput, UpdateLocationNfsCommandOutput } from "./commands/UpdateLocationNfsCommand";
33
36
  import { UpdateLocationObjectStorageCommandInput, UpdateLocationObjectStorageCommandOutput } from "./commands/UpdateLocationObjectStorageCommand";
34
37
  import { UpdateLocationSmbCommandInput, UpdateLocationSmbCommandOutput } from "./commands/UpdateLocationSmbCommand";
@@ -90,6 +93,12 @@ export declare class DataSync extends DataSyncClient {
90
93
  createLocationFsxWindows(args: CreateLocationFsxWindowsCommandInput, options?: __HttpHandlerOptions): Promise<CreateLocationFsxWindowsCommandOutput>;
91
94
  createLocationFsxWindows(args: CreateLocationFsxWindowsCommandInput, cb: (err: any, data?: CreateLocationFsxWindowsCommandOutput) => void): void;
92
95
  createLocationFsxWindows(args: CreateLocationFsxWindowsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLocationFsxWindowsCommandOutput) => void): void;
96
+ /**
97
+ * <p>Creates an endpoint for a Hadoop Distributed File System (HDFS). </p>
98
+ */
99
+ createLocationHdfs(args: CreateLocationHdfsCommandInput, options?: __HttpHandlerOptions): Promise<CreateLocationHdfsCommandOutput>;
100
+ createLocationHdfs(args: CreateLocationHdfsCommandInput, cb: (err: any, data?: CreateLocationHdfsCommandOutput) => void): void;
101
+ createLocationHdfs(args: CreateLocationHdfsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLocationHdfsCommandOutput) => void): void;
93
102
  /**
94
103
  * <p>Defines a file system on a Network File System (NFS) server that can be read from or
95
104
  * written to.</p>
@@ -189,6 +198,13 @@ export declare class DataSync extends DataSyncClient {
189
198
  describeLocationFsxWindows(args: DescribeLocationFsxWindowsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLocationFsxWindowsCommandOutput>;
190
199
  describeLocationFsxWindows(args: DescribeLocationFsxWindowsCommandInput, cb: (err: any, data?: DescribeLocationFsxWindowsCommandOutput) => void): void;
191
200
  describeLocationFsxWindows(args: DescribeLocationFsxWindowsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLocationFsxWindowsCommandOutput) => void): void;
201
+ /**
202
+ * <p>Returns metadata, such as the authentication information about the Hadoop Distributed File
203
+ * System (HDFS) location. </p>
204
+ */
205
+ describeLocationHdfs(args: DescribeLocationHdfsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLocationHdfsCommandOutput>;
206
+ describeLocationHdfs(args: DescribeLocationHdfsCommandInput, cb: (err: any, data?: DescribeLocationHdfsCommandOutput) => void): void;
207
+ describeLocationHdfs(args: DescribeLocationHdfsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLocationHdfsCommandOutput) => void): void;
192
208
  /**
193
209
  * <p>Returns metadata, such as the path information, about an NFS location.</p>
194
210
  */
@@ -298,6 +314,13 @@ export declare class DataSync extends DataSyncClient {
298
314
  updateAgent(args: UpdateAgentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAgentCommandOutput>;
299
315
  updateAgent(args: UpdateAgentCommandInput, cb: (err: any, data?: UpdateAgentCommandOutput) => void): void;
300
316
  updateAgent(args: UpdateAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAgentCommandOutput) => void): void;
317
+ /**
318
+ * <p>Updates some parameters of a previously created location for a Hadoop Distributed File
319
+ * System cluster.</p>
320
+ */
321
+ updateLocationHdfs(args: UpdateLocationHdfsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLocationHdfsCommandOutput>;
322
+ updateLocationHdfs(args: UpdateLocationHdfsCommandInput, cb: (err: any, data?: UpdateLocationHdfsCommandOutput) => void): void;
323
+ updateLocationHdfs(args: UpdateLocationHdfsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLocationHdfsCommandOutput) => void): void;
301
324
  /**
302
325
  * <p>Updates some of the parameters of a previously created location for Network File System (NFS) access.
303
326
  * For information about creating an NFS location, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html">Creating a location for NFS</a>.</p>
@@ -10,6 +10,7 @@ import { CancelTaskExecutionCommandInput, CancelTaskExecutionCommandOutput } fro
10
10
  import { CreateAgentCommandInput, CreateAgentCommandOutput } from "./commands/CreateAgentCommand";
11
11
  import { CreateLocationEfsCommandInput, CreateLocationEfsCommandOutput } from "./commands/CreateLocationEfsCommand";
12
12
  import { CreateLocationFsxWindowsCommandInput, CreateLocationFsxWindowsCommandOutput } from "./commands/CreateLocationFsxWindowsCommand";
13
+ import { CreateLocationHdfsCommandInput, CreateLocationHdfsCommandOutput } from "./commands/CreateLocationHdfsCommand";
13
14
  import { CreateLocationNfsCommandInput, CreateLocationNfsCommandOutput } from "./commands/CreateLocationNfsCommand";
14
15
  import { CreateLocationObjectStorageCommandInput, CreateLocationObjectStorageCommandOutput } from "./commands/CreateLocationObjectStorageCommand";
15
16
  import { CreateLocationS3CommandInput, CreateLocationS3CommandOutput } from "./commands/CreateLocationS3Command";
@@ -21,6 +22,7 @@ import { DeleteTaskCommandInput, DeleteTaskCommandOutput } from "./commands/Dele
21
22
  import { DescribeAgentCommandInput, DescribeAgentCommandOutput } from "./commands/DescribeAgentCommand";
22
23
  import { DescribeLocationEfsCommandInput, DescribeLocationEfsCommandOutput } from "./commands/DescribeLocationEfsCommand";
23
24
  import { DescribeLocationFsxWindowsCommandInput, DescribeLocationFsxWindowsCommandOutput } from "./commands/DescribeLocationFsxWindowsCommand";
25
+ import { DescribeLocationHdfsCommandInput, DescribeLocationHdfsCommandOutput } from "./commands/DescribeLocationHdfsCommand";
24
26
  import { DescribeLocationNfsCommandInput, DescribeLocationNfsCommandOutput } from "./commands/DescribeLocationNfsCommand";
25
27
  import { DescribeLocationObjectStorageCommandInput, DescribeLocationObjectStorageCommandOutput } from "./commands/DescribeLocationObjectStorageCommand";
26
28
  import { DescribeLocationS3CommandInput, DescribeLocationS3CommandOutput } from "./commands/DescribeLocationS3Command";
@@ -36,13 +38,14 @@ import { StartTaskExecutionCommandInput, StartTaskExecutionCommandOutput } from
36
38
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
37
39
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
38
40
  import { UpdateAgentCommandInput, UpdateAgentCommandOutput } from "./commands/UpdateAgentCommand";
41
+ import { UpdateLocationHdfsCommandInput, UpdateLocationHdfsCommandOutput } from "./commands/UpdateLocationHdfsCommand";
39
42
  import { UpdateLocationNfsCommandInput, UpdateLocationNfsCommandOutput } from "./commands/UpdateLocationNfsCommand";
40
43
  import { UpdateLocationObjectStorageCommandInput, UpdateLocationObjectStorageCommandOutput } from "./commands/UpdateLocationObjectStorageCommand";
41
44
  import { UpdateLocationSmbCommandInput, UpdateLocationSmbCommandOutput } from "./commands/UpdateLocationSmbCommand";
42
45
  import { UpdateTaskCommandInput, UpdateTaskCommandOutput } from "./commands/UpdateTaskCommand";
43
46
  import { UpdateTaskExecutionCommandInput, UpdateTaskExecutionCommandOutput } from "./commands/UpdateTaskExecutionCommand";
44
- export declare type ServiceInputTypes = CancelTaskExecutionCommandInput | CreateAgentCommandInput | CreateLocationEfsCommandInput | CreateLocationFsxWindowsCommandInput | CreateLocationNfsCommandInput | CreateLocationObjectStorageCommandInput | CreateLocationS3CommandInput | CreateLocationSmbCommandInput | CreateTaskCommandInput | DeleteAgentCommandInput | DeleteLocationCommandInput | DeleteTaskCommandInput | DescribeAgentCommandInput | DescribeLocationEfsCommandInput | DescribeLocationFsxWindowsCommandInput | DescribeLocationNfsCommandInput | DescribeLocationObjectStorageCommandInput | DescribeLocationS3CommandInput | DescribeLocationSmbCommandInput | DescribeTaskCommandInput | DescribeTaskExecutionCommandInput | ListAgentsCommandInput | ListLocationsCommandInput | ListTagsForResourceCommandInput | ListTaskExecutionsCommandInput | ListTasksCommandInput | StartTaskExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAgentCommandInput | UpdateLocationNfsCommandInput | UpdateLocationObjectStorageCommandInput | UpdateLocationSmbCommandInput | UpdateTaskCommandInput | UpdateTaskExecutionCommandInput;
45
- export declare type ServiceOutputTypes = CancelTaskExecutionCommandOutput | CreateAgentCommandOutput | CreateLocationEfsCommandOutput | CreateLocationFsxWindowsCommandOutput | CreateLocationNfsCommandOutput | CreateLocationObjectStorageCommandOutput | CreateLocationS3CommandOutput | CreateLocationSmbCommandOutput | CreateTaskCommandOutput | DeleteAgentCommandOutput | DeleteLocationCommandOutput | DeleteTaskCommandOutput | DescribeAgentCommandOutput | DescribeLocationEfsCommandOutput | DescribeLocationFsxWindowsCommandOutput | DescribeLocationNfsCommandOutput | DescribeLocationObjectStorageCommandOutput | DescribeLocationS3CommandOutput | DescribeLocationSmbCommandOutput | DescribeTaskCommandOutput | DescribeTaskExecutionCommandOutput | ListAgentsCommandOutput | ListLocationsCommandOutput | ListTagsForResourceCommandOutput | ListTaskExecutionsCommandOutput | ListTasksCommandOutput | StartTaskExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAgentCommandOutput | UpdateLocationNfsCommandOutput | UpdateLocationObjectStorageCommandOutput | UpdateLocationSmbCommandOutput | UpdateTaskCommandOutput | UpdateTaskExecutionCommandOutput;
47
+ export declare type ServiceInputTypes = CancelTaskExecutionCommandInput | CreateAgentCommandInput | CreateLocationEfsCommandInput | CreateLocationFsxWindowsCommandInput | CreateLocationHdfsCommandInput | CreateLocationNfsCommandInput | CreateLocationObjectStorageCommandInput | CreateLocationS3CommandInput | CreateLocationSmbCommandInput | CreateTaskCommandInput | DeleteAgentCommandInput | DeleteLocationCommandInput | DeleteTaskCommandInput | DescribeAgentCommandInput | DescribeLocationEfsCommandInput | DescribeLocationFsxWindowsCommandInput | DescribeLocationHdfsCommandInput | DescribeLocationNfsCommandInput | DescribeLocationObjectStorageCommandInput | DescribeLocationS3CommandInput | DescribeLocationSmbCommandInput | DescribeTaskCommandInput | DescribeTaskExecutionCommandInput | ListAgentsCommandInput | ListLocationsCommandInput | ListTagsForResourceCommandInput | ListTaskExecutionsCommandInput | ListTasksCommandInput | StartTaskExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAgentCommandInput | UpdateLocationHdfsCommandInput | UpdateLocationNfsCommandInput | UpdateLocationObjectStorageCommandInput | UpdateLocationSmbCommandInput | UpdateTaskCommandInput | UpdateTaskExecutionCommandInput;
48
+ export declare type ServiceOutputTypes = CancelTaskExecutionCommandOutput | CreateAgentCommandOutput | CreateLocationEfsCommandOutput | CreateLocationFsxWindowsCommandOutput | CreateLocationHdfsCommandOutput | CreateLocationNfsCommandOutput | CreateLocationObjectStorageCommandOutput | CreateLocationS3CommandOutput | CreateLocationSmbCommandOutput | CreateTaskCommandOutput | DeleteAgentCommandOutput | DeleteLocationCommandOutput | DeleteTaskCommandOutput | DescribeAgentCommandOutput | DescribeLocationEfsCommandOutput | DescribeLocationFsxWindowsCommandOutput | DescribeLocationHdfsCommandOutput | DescribeLocationNfsCommandOutput | DescribeLocationObjectStorageCommandOutput | DescribeLocationS3CommandOutput | DescribeLocationSmbCommandOutput | DescribeTaskCommandOutput | DescribeTaskExecutionCommandOutput | ListAgentsCommandOutput | ListLocationsCommandOutput | ListTagsForResourceCommandOutput | ListTaskExecutionsCommandOutput | ListTasksCommandOutput | StartTaskExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAgentCommandOutput | UpdateLocationHdfsCommandOutput | UpdateLocationNfsCommandOutput | UpdateLocationObjectStorageCommandOutput | UpdateLocationSmbCommandOutput | UpdateTaskCommandOutput | UpdateTaskExecutionCommandOutput;
46
49
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
47
50
  /**
48
51
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -111,6 +114,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
111
114
  * Optional logger for logging debug/info/warn/error.
112
115
  */
113
116
  logger?: __Logger;
117
+ /**
118
+ * Enables IPv6/IPv4 dualstack endpoint.
119
+ */
120
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
121
+ /**
122
+ * Enables FIPS compatible endpoints.
123
+ */
124
+ useFipsEndpoint?: boolean | __Provider<boolean>;
114
125
  /**
115
126
  * Unique service identifier.
116
127
  * @internal
@@ -27,7 +27,7 @@ export interface CancelTaskExecutionCommandOutput extends CancelTaskExecutionRes
27
27
  *
28
28
  * @see {@link CancelTaskExecutionCommandInput} for command's `input` shape.
29
29
  * @see {@link CancelTaskExecutionCommandOutput} for command's `response` shape.
30
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
30
+ * @see {@link DataSyncClientResolvedConfig | config} for DataSyncClient's `config` shape.
31
31
  *
32
32
  */
33
33
  export declare class CancelTaskExecutionCommand extends $Command<CancelTaskExecutionCommandInput, CancelTaskExecutionCommandOutput, DataSyncClientResolvedConfig> {
@@ -34,7 +34,7 @@ export interface CreateAgentCommandOutput extends CreateAgentResponse, __Metadat
34
34
  *
35
35
  * @see {@link CreateAgentCommandInput} for command's `input` shape.
36
36
  * @see {@link CreateAgentCommandOutput} for command's `response` shape.
37
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
37
+ * @see {@link DataSyncClientResolvedConfig | config} for DataSyncClient's `config` shape.
38
38
  *
39
39
  */
40
40
  export declare class CreateAgentCommand extends $Command<CreateAgentCommandInput, CreateAgentCommandOutput, DataSyncClientResolvedConfig> {