@aws-sdk/client-datasync 3.180.0 → 3.183.0

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