@aws-sdk/client-datasync 3.183.0 → 3.185.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 (62) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/DataSync.js +185 -178
  4. package/dist-es/DataSyncClient.js +28 -22
  5. package/dist-es/commands/CancelTaskExecutionCommand.js +28 -21
  6. package/dist-es/commands/CreateAgentCommand.js +28 -21
  7. package/dist-es/commands/CreateLocationEfsCommand.js +28 -21
  8. package/dist-es/commands/CreateLocationFsxLustreCommand.js +28 -21
  9. package/dist-es/commands/CreateLocationFsxOntapCommand.js +28 -21
  10. package/dist-es/commands/CreateLocationFsxOpenZfsCommand.js +28 -21
  11. package/dist-es/commands/CreateLocationFsxWindowsCommand.js +28 -21
  12. package/dist-es/commands/CreateLocationHdfsCommand.js +28 -21
  13. package/dist-es/commands/CreateLocationNfsCommand.js +28 -21
  14. package/dist-es/commands/CreateLocationObjectStorageCommand.js +28 -21
  15. package/dist-es/commands/CreateLocationS3Command.js +28 -21
  16. package/dist-es/commands/CreateLocationSmbCommand.js +28 -21
  17. package/dist-es/commands/CreateTaskCommand.js +28 -21
  18. package/dist-es/commands/DeleteAgentCommand.js +28 -21
  19. package/dist-es/commands/DeleteLocationCommand.js +28 -21
  20. package/dist-es/commands/DeleteTaskCommand.js +28 -21
  21. package/dist-es/commands/DescribeAgentCommand.js +28 -21
  22. package/dist-es/commands/DescribeLocationEfsCommand.js +28 -21
  23. package/dist-es/commands/DescribeLocationFsxLustreCommand.js +28 -21
  24. package/dist-es/commands/DescribeLocationFsxOntapCommand.js +28 -21
  25. package/dist-es/commands/DescribeLocationFsxOpenZfsCommand.js +28 -21
  26. package/dist-es/commands/DescribeLocationFsxWindowsCommand.js +28 -21
  27. package/dist-es/commands/DescribeLocationHdfsCommand.js +28 -21
  28. package/dist-es/commands/DescribeLocationNfsCommand.js +28 -21
  29. package/dist-es/commands/DescribeLocationObjectStorageCommand.js +28 -21
  30. package/dist-es/commands/DescribeLocationS3Command.js +28 -21
  31. package/dist-es/commands/DescribeLocationSmbCommand.js +28 -21
  32. package/dist-es/commands/DescribeTaskCommand.js +28 -21
  33. package/dist-es/commands/DescribeTaskExecutionCommand.js +28 -21
  34. package/dist-es/commands/ListAgentsCommand.js +28 -21
  35. package/dist-es/commands/ListLocationsCommand.js +28 -21
  36. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  37. package/dist-es/commands/ListTaskExecutionsCommand.js +28 -21
  38. package/dist-es/commands/ListTasksCommand.js +28 -21
  39. package/dist-es/commands/StartTaskExecutionCommand.js +28 -21
  40. package/dist-es/commands/TagResourceCommand.js +28 -21
  41. package/dist-es/commands/UntagResourceCommand.js +28 -21
  42. package/dist-es/commands/UpdateAgentCommand.js +28 -21
  43. package/dist-es/commands/UpdateLocationHdfsCommand.js +28 -21
  44. package/dist-es/commands/UpdateLocationNfsCommand.js +28 -21
  45. package/dist-es/commands/UpdateLocationObjectStorageCommand.js +28 -21
  46. package/dist-es/commands/UpdateLocationSmbCommand.js +28 -21
  47. package/dist-es/commands/UpdateTaskCommand.js +28 -21
  48. package/dist-es/commands/UpdateTaskExecutionCommand.js +28 -21
  49. package/dist-es/endpoints.js +8 -8
  50. package/dist-es/models/DataSyncServiceException.js +10 -5
  51. package/dist-es/models/models_0.js +136 -366
  52. package/dist-es/pagination/ListAgentsPaginator.js +68 -25
  53. package/dist-es/pagination/ListLocationsPaginator.js +68 -25
  54. package/dist-es/pagination/ListTagsForResourcePaginator.js +68 -25
  55. package/dist-es/pagination/ListTaskExecutionsPaginator.js +68 -25
  56. package/dist-es/pagination/ListTasksPaginator.js +68 -25
  57. package/dist-es/protocols/Aws_json1_1.js +3288 -2608
  58. package/dist-es/runtimeConfig.browser.js +12 -26
  59. package/dist-es/runtimeConfig.js +12 -30
  60. package/dist-es/runtimeConfig.native.js +5 -8
  61. package/dist-es/runtimeConfig.shared.js +11 -8
  62. package/package.json +5 -5
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateLocationNfsRequestFilterSensitiveLog, UpdateLocationNfsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateLocationNfsCommand, serializeAws_json1_1UpdateLocationNfsCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateLocationNfsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateLocationNfsCommand = (function (_super) {
7
+ __extends(UpdateLocationNfsCommand, _super);
8
+ function UpdateLocationNfsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateLocationNfsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "DataSyncClient";
15
- const commandName = "UpdateLocationNfsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DataSyncClient";
18
+ var commandName = "UpdateLocationNfsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateLocationNfsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateLocationNfsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateLocationNfsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateLocationNfsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateLocationNfsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateLocationNfsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateLocationNfsCommand;
38
+ }($Command));
39
+ export { UpdateLocationNfsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateLocationObjectStorageRequestFilterSensitiveLog, UpdateLocationObjectStorageResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateLocationObjectStorageCommand, serializeAws_json1_1UpdateLocationObjectStorageCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateLocationObjectStorageCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateLocationObjectStorageCommand = (function (_super) {
7
+ __extends(UpdateLocationObjectStorageCommand, _super);
8
+ function UpdateLocationObjectStorageCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateLocationObjectStorageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "DataSyncClient";
15
- const commandName = "UpdateLocationObjectStorageCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DataSyncClient";
18
+ var commandName = "UpdateLocationObjectStorageCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateLocationObjectStorageRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateLocationObjectStorageResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateLocationObjectStorageCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateLocationObjectStorageCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateLocationObjectStorageCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateLocationObjectStorageCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateLocationObjectStorageCommand;
38
+ }($Command));
39
+ export { UpdateLocationObjectStorageCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateLocationSmbRequestFilterSensitiveLog, UpdateLocationSmbResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateLocationSmbCommand, serializeAws_json1_1UpdateLocationSmbCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateLocationSmbCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateLocationSmbCommand = (function (_super) {
7
+ __extends(UpdateLocationSmbCommand, _super);
8
+ function UpdateLocationSmbCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateLocationSmbCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "DataSyncClient";
15
- const commandName = "UpdateLocationSmbCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DataSyncClient";
18
+ var commandName = "UpdateLocationSmbCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateLocationSmbRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateLocationSmbResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateLocationSmbCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateLocationSmbCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateLocationSmbCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateLocationSmbCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateLocationSmbCommand;
38
+ }($Command));
39
+ export { UpdateLocationSmbCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateTaskRequestFilterSensitiveLog, UpdateTaskResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateTaskCommand, serializeAws_json1_1UpdateTaskCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateTaskCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateTaskCommand = (function (_super) {
7
+ __extends(UpdateTaskCommand, _super);
8
+ function UpdateTaskCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateTaskCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "DataSyncClient";
15
- const commandName = "UpdateTaskCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DataSyncClient";
18
+ var commandName = "UpdateTaskCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateTaskRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateTaskResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateTaskCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateTaskCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateTaskCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateTaskCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateTaskCommand;
38
+ }($Command));
39
+ export { UpdateTaskCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateTaskExecutionRequestFilterSensitiveLog, UpdateTaskExecutionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateTaskExecutionCommand, serializeAws_json1_1UpdateTaskExecutionCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateTaskExecutionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateTaskExecutionCommand = (function (_super) {
7
+ __extends(UpdateTaskExecutionCommand, _super);
8
+ function UpdateTaskExecutionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateTaskExecutionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "DataSyncClient";
15
- const commandName = "UpdateTaskExecutionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DataSyncClient";
18
+ var commandName = "UpdateTaskExecutionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateTaskExecutionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateTaskExecutionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateTaskExecutionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateTaskExecutionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateTaskExecutionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateTaskExecutionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateTaskExecutionCommand;
38
+ }($Command));
39
+ export { UpdateTaskExecutionCommand };
@@ -1,5 +1,6 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
+ var regionHash = {
3
4
  "ca-central-1": {
4
5
  variants: [
5
6
  {
@@ -57,7 +58,7 @@ const regionHash = {
57
58
  ],
58
59
  },
59
60
  };
60
- const partitionHash = {
61
+ var partitionHash = {
61
62
  aws: {
62
63
  regions: [
63
64
  "af-south-1",
@@ -182,9 +183,8 @@ const partitionHash = {
182
183
  ],
183
184
  },
184
185
  };
185
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
186
- ...options,
187
- signingService: "datasync",
188
- regionHash,
189
- partitionHash,
190
- });
186
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
187
+ return __generator(this, function (_a) {
188
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "datasync", regionHash: regionHash, partitionHash: partitionHash }))];
189
+ });
190
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class DataSyncServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, DataSyncServiceException.prototype);
3
+ var DataSyncServiceException = (function (_super) {
4
+ __extends(DataSyncServiceException, _super);
5
+ function DataSyncServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, DataSyncServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return DataSyncServiceException;
11
+ }(__ServiceException));
12
+ export { DataSyncServiceException };