@aws-sdk/client-datasync 3.36.0 → 3.36.1

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 (92) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/DataSync.js +0 -9
  3. package/dist-cjs/DataSyncClient.js +0 -14
  4. package/dist-cjs/commands/CancelTaskExecutionCommand.js +0 -31
  5. package/dist-cjs/commands/CreateAgentCommand.js +0 -38
  6. package/dist-cjs/commands/CreateLocationEfsCommand.js +0 -24
  7. package/dist-cjs/commands/CreateLocationFsxWindowsCommand.js +0 -24
  8. package/dist-cjs/commands/CreateLocationNfsCommand.js +0 -25
  9. package/dist-cjs/commands/CreateLocationObjectStorageCommand.js +0 -25
  10. package/dist-cjs/commands/CreateLocationS3Command.js +0 -30
  11. package/dist-cjs/commands/CreateLocationSmbCommand.js +0 -25
  12. package/dist-cjs/commands/CreateTaskCommand.js +0 -42
  13. package/dist-cjs/commands/DeleteAgentCommand.js +0 -27
  14. package/dist-cjs/commands/DeleteLocationCommand.js +0 -24
  15. package/dist-cjs/commands/DeleteTaskCommand.js +0 -24
  16. package/dist-cjs/commands/DescribeAgentCommand.js +0 -26
  17. package/dist-cjs/commands/DescribeLocationEfsCommand.js +0 -24
  18. package/dist-cjs/commands/DescribeLocationFsxWindowsCommand.js +0 -25
  19. package/dist-cjs/commands/DescribeLocationNfsCommand.js +0 -24
  20. package/dist-cjs/commands/DescribeLocationObjectStorageCommand.js +0 -25
  21. package/dist-cjs/commands/DescribeLocationS3Command.js +0 -24
  22. package/dist-cjs/commands/DescribeLocationSmbCommand.js +0 -24
  23. package/dist-cjs/commands/DescribeTaskCommand.js +0 -24
  24. package/dist-cjs/commands/DescribeTaskExecutionCommand.js +0 -24
  25. package/dist-cjs/commands/ListAgentsCommand.js +0 -31
  26. package/dist-cjs/commands/ListLocationsCommand.js +0 -27
  27. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
  28. package/dist-cjs/commands/ListTaskExecutionsCommand.js +0 -24
  29. package/dist-cjs/commands/ListTasksCommand.js +0 -24
  30. package/dist-cjs/commands/StartTaskExecutionCommand.js +0 -32
  31. package/dist-cjs/commands/TagResourceCommand.js +0 -24
  32. package/dist-cjs/commands/UntagResourceCommand.js +0 -24
  33. package/dist-cjs/commands/UpdateAgentCommand.js +0 -24
  34. package/dist-cjs/commands/UpdateLocationNfsCommand.js +0 -25
  35. package/dist-cjs/commands/UpdateLocationObjectStorageCommand.js +0 -26
  36. package/dist-cjs/commands/UpdateLocationSmbCommand.js +0 -26
  37. package/dist-cjs/commands/UpdateTaskCommand.js +0 -24
  38. package/dist-cjs/commands/UpdateTaskExecutionCommand.js +0 -33
  39. package/dist-cjs/models/models_0.js +0 -267
  40. package/dist-cjs/pagination/ListAgentsPaginator.js +0 -10
  41. package/dist-cjs/pagination/ListLocationsPaginator.js +0 -10
  42. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -10
  43. package/dist-cjs/pagination/ListTaskExecutionsPaginator.js +0 -10
  44. package/dist-cjs/pagination/ListTasksPaginator.js +0 -10
  45. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  46. package/dist-cjs/runtimeConfig.browser.js +1 -5
  47. package/dist-cjs/runtimeConfig.js +1 -5
  48. package/dist-cjs/runtimeConfig.native.js +0 -3
  49. package/dist-cjs/runtimeConfig.shared.js +0 -3
  50. package/dist-types/ts3.4/DataSync.d.ts +36 -201
  51. package/dist-types/ts3.4/DataSyncClient.d.ts +24 -95
  52. package/dist-types/ts3.4/commands/CancelTaskExecutionCommand.d.ts +2 -27
  53. package/dist-types/ts3.4/commands/CreateAgentCommand.d.ts +2 -34
  54. package/dist-types/ts3.4/commands/CreateLocationEfsCommand.d.ts +2 -20
  55. package/dist-types/ts3.4/commands/CreateLocationFsxWindowsCommand.d.ts +2 -20
  56. package/dist-types/ts3.4/commands/CreateLocationNfsCommand.d.ts +2 -21
  57. package/dist-types/ts3.4/commands/CreateLocationObjectStorageCommand.d.ts +2 -21
  58. package/dist-types/ts3.4/commands/CreateLocationS3Command.d.ts +2 -26
  59. package/dist-types/ts3.4/commands/CreateLocationSmbCommand.d.ts +2 -21
  60. package/dist-types/ts3.4/commands/CreateTaskCommand.d.ts +2 -38
  61. package/dist-types/ts3.4/commands/DeleteAgentCommand.d.ts +2 -23
  62. package/dist-types/ts3.4/commands/DeleteLocationCommand.d.ts +2 -20
  63. package/dist-types/ts3.4/commands/DeleteTaskCommand.d.ts +2 -20
  64. package/dist-types/ts3.4/commands/DescribeAgentCommand.d.ts +2 -22
  65. package/dist-types/ts3.4/commands/DescribeLocationEfsCommand.d.ts +2 -20
  66. package/dist-types/ts3.4/commands/DescribeLocationFsxWindowsCommand.d.ts +2 -21
  67. package/dist-types/ts3.4/commands/DescribeLocationNfsCommand.d.ts +2 -20
  68. package/dist-types/ts3.4/commands/DescribeLocationObjectStorageCommand.d.ts +2 -21
  69. package/dist-types/ts3.4/commands/DescribeLocationS3Command.d.ts +2 -20
  70. package/dist-types/ts3.4/commands/DescribeLocationSmbCommand.d.ts +2 -20
  71. package/dist-types/ts3.4/commands/DescribeTaskCommand.d.ts +2 -20
  72. package/dist-types/ts3.4/commands/DescribeTaskExecutionCommand.d.ts +2 -20
  73. package/dist-types/ts3.4/commands/ListAgentsCommand.d.ts +2 -27
  74. package/dist-types/ts3.4/commands/ListLocationsCommand.d.ts +2 -23
  75. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  76. package/dist-types/ts3.4/commands/ListTaskExecutionsCommand.d.ts +2 -20
  77. package/dist-types/ts3.4/commands/ListTasksCommand.d.ts +2 -20
  78. package/dist-types/ts3.4/commands/StartTaskExecutionCommand.d.ts +2 -28
  79. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  80. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  81. package/dist-types/ts3.4/commands/UpdateAgentCommand.d.ts +2 -20
  82. package/dist-types/ts3.4/commands/UpdateLocationNfsCommand.d.ts +2 -21
  83. package/dist-types/ts3.4/commands/UpdateLocationObjectStorageCommand.d.ts +2 -22
  84. package/dist-types/ts3.4/commands/UpdateLocationSmbCommand.d.ts +2 -22
  85. package/dist-types/ts3.4/commands/UpdateTaskCommand.d.ts +2 -20
  86. package/dist-types/ts3.4/commands/UpdateTaskExecutionCommand.d.ts +2 -29
  87. package/dist-types/ts3.4/models/models_0.d.ts +419 -1922
  88. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  89. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  90. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  91. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  92. package/package.json +3 -3
@@ -4,22 +4,13 @@ exports.paginateListAgents = void 0;
4
4
  const ListAgentsCommand_1 = require("../commands/ListAgentsCommand");
5
5
  const DataSync_1 = require("../DataSync");
6
6
  const DataSyncClient_1 = require("../DataSyncClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListAgentsCommand_1.ListAgentsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listAgents(input, ...args);
20
12
  };
21
13
  async function* paginateListAgents(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListAgents(config, input, ...additionalArguments) {
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListAgents = paginateListAgents;
@@ -4,22 +4,13 @@ exports.paginateListLocations = void 0;
4
4
  const ListLocationsCommand_1 = require("../commands/ListLocationsCommand");
5
5
  const DataSync_1 = require("../DataSync");
6
6
  const DataSyncClient_1 = require("../DataSyncClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListLocationsCommand_1.ListLocationsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listLocations(input, ...args);
20
12
  };
21
13
  async function* paginateListLocations(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListLocations(config, input, ...additionalArguments) {
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListLocations = paginateListLocations;
@@ -4,22 +4,13 @@ exports.paginateListTagsForResource = void 0;
4
4
  const ListTagsForResourceCommand_1 = require("../commands/ListTagsForResourceCommand");
5
5
  const DataSync_1 = require("../DataSync");
6
6
  const DataSyncClient_1 = require("../DataSyncClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListTagsForResourceCommand_1.ListTagsForResourceCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listTagsForResource(input, ...args);
20
12
  };
21
13
  async function* paginateListTagsForResource(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListTagsForResource(config, input, ...additionalArgument
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListTagsForResource = paginateListTagsForResource;
@@ -4,22 +4,13 @@ exports.paginateListTaskExecutions = void 0;
4
4
  const ListTaskExecutionsCommand_1 = require("../commands/ListTaskExecutionsCommand");
5
5
  const DataSync_1 = require("../DataSync");
6
6
  const DataSyncClient_1 = require("../DataSyncClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListTaskExecutionsCommand_1.ListTaskExecutionsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listTaskExecutions(input, ...args);
20
12
  };
21
13
  async function* paginateListTaskExecutions(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListTaskExecutions(config, input, ...additionalArguments
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListTaskExecutions = paginateListTaskExecutions;
@@ -4,22 +4,13 @@ exports.paginateListTasks = void 0;
4
4
  const ListTasksCommand_1 = require("../commands/ListTasksCommand");
5
5
  const DataSync_1 = require("../DataSync");
6
6
  const DataSyncClient_1 = require("../DataSyncClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListTasksCommand_1.ListTasksCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listTasks(input, ...args);
20
12
  };
21
13
  async function* paginateListTasks(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListTasks(config, input, ...additionalArguments) {
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListTasks = paginateListTasks;
@@ -3360,14 +3360,12 @@ const deserializeMetadata = (output) => {
3360
3360
  cfId: output.headers["x-amz-cf-id"],
3361
3361
  });
3362
3362
  };
3363
- // Collect low-level response body stream to Uint8Array.
3364
3363
  const collectBody = (streamBody = new Uint8Array(), context) => {
3365
3364
  if (streamBody instanceof Uint8Array) {
3366
3365
  return Promise.resolve(streamBody);
3367
3366
  }
3368
3367
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3369
3368
  };
3370
- // Encode Uint8Array data into string with utf-8.
3371
3369
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3372
3370
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3373
3371
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -3393,9 +3391,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
3393
3391
  }
3394
3392
  return {};
3395
3393
  });
3396
- /**
3397
- * Load an error code for the aws.rest-json-1.1 protocol.
3398
- */
3399
3394
  const loadRestJsonErrorCode = (output, data) => {
3400
3395
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3401
3396
  const sanitizeErrorCode = (rawValue) => {
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
8
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const client_sts_1 = require("@aws-sdk/client-sts");
8
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
9
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
- /**
21
- * @internal
22
- */
23
19
  const getRuntimeConfig = (config) => {
24
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -35,310 +35,145 @@ import { UpdateLocationSmbCommandInput, UpdateLocationSmbCommandOutput } from ".
35
35
  import { UpdateTaskCommandInput, UpdateTaskCommandOutput } from "./commands/UpdateTaskCommand";
36
36
  import { UpdateTaskExecutionCommandInput, UpdateTaskExecutionCommandOutput } from "./commands/UpdateTaskExecutionCommand";
37
37
  import { DataSyncClient } from "./DataSyncClient";
38
- /**
39
- * <fullname>DataSync</fullname>
40
- *
41
- * <p>DataSync is a managed data transfer service that makes it simpler for you to
42
- * automate moving data between on-premises storage and Amazon Simple Storage Service (Amazon S3)
43
- * or Amazon Elastic File System (Amazon EFS). </p>
44
- * <p>This API interface reference for DataSync contains documentation for a
45
- * programming interface that you can use to manage DataSync.</p>
46
- */
38
+
47
39
  export declare class DataSync extends DataSyncClient {
48
- /**
49
- * <p>Cancels execution of a task. </p>
50
- * <p>When you cancel a task execution, the transfer of some files is abruptly interrupted.
51
- * The contents of files that are transferred to the destination might be incomplete or
52
- * inconsistent with the source files. However, if you start a new task execution on the same
53
- * task and you allow the task execution to complete, file content on the destination is complete
54
- * and consistent. This applies to other unexpected failures that interrupt a task execution. In
55
- * all of these cases, DataSync successfully complete the transfer when you start the next
56
- * task execution.</p>
57
- */
40
+
58
41
  cancelTaskExecution(args: CancelTaskExecutionCommandInput, options?: __HttpHandlerOptions): Promise<CancelTaskExecutionCommandOutput>;
59
42
  cancelTaskExecution(args: CancelTaskExecutionCommandInput, cb: (err: any, data?: CancelTaskExecutionCommandOutput) => void): void;
60
43
  cancelTaskExecution(args: CancelTaskExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelTaskExecutionCommandOutput) => void): void;
61
- /**
62
- * <p>Activates an DataSync agent that you have deployed on your host. The activation
63
- * process associates your agent with your account. In the activation process, you specify
64
- * information such as the Amazon Web Services Region that you want to activate the agent in. You activate the
65
- * agent in the Amazon Web Services Region where your target locations (in Amazon S3 or Amazon EFS) reside. Your
66
- * tasks are created in this Amazon Web Services Region.</p>
67
- * <p>You can activate the agent in a VPC (virtual private cloud) or provide the agent access to
68
- * a VPC endpoint so you can run tasks without going over the public internet.</p>
69
- * <p>You can use an agent for more than one location. If a task uses multiple agents, all of
70
- * them need to have status AVAILABLE for the task to run. If you use multiple agents for a
71
- * source location, the status of all the agents must be AVAILABLE for the task to run. </p>
72
- *
73
- *
74
- * <p>Agents are automatically updated by Amazon Web Services on a regular basis, using a mechanism that
75
- * ensures minimal interruption to your tasks.</p>
76
- * <p></p>
77
- */
44
+
78
45
  createAgent(args: CreateAgentCommandInput, options?: __HttpHandlerOptions): Promise<CreateAgentCommandOutput>;
79
46
  createAgent(args: CreateAgentCommandInput, cb: (err: any, data?: CreateAgentCommandOutput) => void): void;
80
47
  createAgent(args: CreateAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAgentCommandOutput) => void): void;
81
- /**
82
- * <p>Creates an endpoint for an Amazon EFS file system.</p>
83
- */
48
+
84
49
  createLocationEfs(args: CreateLocationEfsCommandInput, options?: __HttpHandlerOptions): Promise<CreateLocationEfsCommandOutput>;
85
50
  createLocationEfs(args: CreateLocationEfsCommandInput, cb: (err: any, data?: CreateLocationEfsCommandOutput) => void): void;
86
51
  createLocationEfs(args: CreateLocationEfsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLocationEfsCommandOutput) => void): void;
87
- /**
88
- * <p>Creates an endpoint for an Amazon FSx for Windows File Server file system.</p>
89
- */
52
+
90
53
  createLocationFsxWindows(args: CreateLocationFsxWindowsCommandInput, options?: __HttpHandlerOptions): Promise<CreateLocationFsxWindowsCommandOutput>;
91
54
  createLocationFsxWindows(args: CreateLocationFsxWindowsCommandInput, cb: (err: any, data?: CreateLocationFsxWindowsCommandOutput) => void): void;
92
55
  createLocationFsxWindows(args: CreateLocationFsxWindowsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLocationFsxWindowsCommandOutput) => void): void;
93
- /**
94
- * <p>Defines a file system on a Network File System (NFS) server that can be read from or
95
- * written to.</p>
96
- */
56
+
97
57
  createLocationNfs(args: CreateLocationNfsCommandInput, options?: __HttpHandlerOptions): Promise<CreateLocationNfsCommandOutput>;
98
58
  createLocationNfs(args: CreateLocationNfsCommandInput, cb: (err: any, data?: CreateLocationNfsCommandOutput) => void): void;
99
59
  createLocationNfs(args: CreateLocationNfsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLocationNfsCommandOutput) => void): void;
100
- /**
101
- * <p>Creates an endpoint for a self-managed object storage bucket. For more information
102
- * about self-managed object storage locations, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-object-location.html">Creating a location for object storage</a>.</p>
103
- */
60
+
104
61
  createLocationObjectStorage(args: CreateLocationObjectStorageCommandInput, options?: __HttpHandlerOptions): Promise<CreateLocationObjectStorageCommandOutput>;
105
62
  createLocationObjectStorage(args: CreateLocationObjectStorageCommandInput, cb: (err: any, data?: CreateLocationObjectStorageCommandOutput) => void): void;
106
63
  createLocationObjectStorage(args: CreateLocationObjectStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLocationObjectStorageCommandOutput) => void): void;
107
- /**
108
- * <p>Creates an endpoint for an Amazon S3 bucket.</p>
109
- *
110
- *
111
- * <p>For
112
- * more information, see
113
- * <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-locations-cli.html#create-location-s3-cli">Create an Amazon S3 location</a>
114
- * in the <i>DataSync User Guide</i>.</p>
115
- */
64
+
116
65
  createLocationS3(args: CreateLocationS3CommandInput, options?: __HttpHandlerOptions): Promise<CreateLocationS3CommandOutput>;
117
66
  createLocationS3(args: CreateLocationS3CommandInput, cb: (err: any, data?: CreateLocationS3CommandOutput) => void): void;
118
67
  createLocationS3(args: CreateLocationS3CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLocationS3CommandOutput) => void): void;
119
- /**
120
- * <p>Defines a file system on a Server Message Block (SMB) server that can be read from or
121
- * written to.</p>
122
- */
68
+
123
69
  createLocationSmb(args: CreateLocationSmbCommandInput, options?: __HttpHandlerOptions): Promise<CreateLocationSmbCommandOutput>;
124
70
  createLocationSmb(args: CreateLocationSmbCommandInput, cb: (err: any, data?: CreateLocationSmbCommandOutput) => void): void;
125
71
  createLocationSmb(args: CreateLocationSmbCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLocationSmbCommandOutput) => void): void;
126
- /**
127
- * <p>Creates a task.</p>
128
- * <p>A task includes a source location and a destination location, and a configuration
129
- * that specifies how data is transferred. A task always transfers data from the source
130
- * location to the destination location. The configuration specifies options such as
131
- * task scheduling, bandwidth limits, etc. A task is the complete definition of a data
132
- * transfer.</p>
133
- * <p>When you create a task that transfers data between Amazon Web Services services in different Amazon Web Services Regions,
134
- * one of the two locations that you specify must reside in the Region where DataSync is being
135
- * used. The other location must be specified in a different Region.</p>
136
- * <p>You can transfer data between commercial Amazon Web Services Regions except for China, or between
137
- * Amazon Web Services GovCloud (US) Regions.</p>
138
- *
139
- * <important>
140
- * <p>When you use DataSync to copy files or objects between Amazon Web Services Regions,
141
- * you pay for data transfer between Regions. This is billed as data transfer OUT
142
- * from your source Region to your destination Region. For more information,
143
- * see <a href="http://aws.amazon.com/ec2/pricing/on-demand/#Data_Transfer">Data Transfer pricing</a>.
144
- * </p>
145
- * </important>
146
- */
72
+
147
73
  createTask(args: CreateTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateTaskCommandOutput>;
148
74
  createTask(args: CreateTaskCommandInput, cb: (err: any, data?: CreateTaskCommandOutput) => void): void;
149
75
  createTask(args: CreateTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTaskCommandOutput) => void): void;
150
- /**
151
- * <p>Deletes an agent. To specify which agent to delete, use the Amazon Resource Name (ARN)
152
- * of the agent in your request. The operation disassociates the agent from your Amazon Web Services account.
153
- * However, it doesn't delete the agent virtual machine (VM) from your on-premises
154
- * environment.</p>
155
- */
76
+
156
77
  deleteAgent(args: DeleteAgentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAgentCommandOutput>;
157
78
  deleteAgent(args: DeleteAgentCommandInput, cb: (err: any, data?: DeleteAgentCommandOutput) => void): void;
158
79
  deleteAgent(args: DeleteAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAgentCommandOutput) => void): void;
159
- /**
160
- * <p>Deletes the configuration of a location used by DataSync. </p>
161
- */
80
+
162
81
  deleteLocation(args: DeleteLocationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLocationCommandOutput>;
163
82
  deleteLocation(args: DeleteLocationCommandInput, cb: (err: any, data?: DeleteLocationCommandOutput) => void): void;
164
83
  deleteLocation(args: DeleteLocationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLocationCommandOutput) => void): void;
165
- /**
166
- * <p>Deletes a task.</p>
167
- */
84
+
168
85
  deleteTask(args: DeleteTaskCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTaskCommandOutput>;
169
86
  deleteTask(args: DeleteTaskCommandInput, cb: (err: any, data?: DeleteTaskCommandOutput) => void): void;
170
87
  deleteTask(args: DeleteTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTaskCommandOutput) => void): void;
171
- /**
172
- * <p>Returns metadata such as the name, the network interfaces, and the status (that is,
173
- * whether the agent is running or not) for an agent. To specify which agent to describe, use the
174
- * Amazon Resource Name (ARN) of the agent in your request. </p>
175
- */
88
+
176
89
  describeAgent(args: DescribeAgentCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAgentCommandOutput>;
177
90
  describeAgent(args: DescribeAgentCommandInput, cb: (err: any, data?: DescribeAgentCommandOutput) => void): void;
178
91
  describeAgent(args: DescribeAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAgentCommandOutput) => void): void;
179
- /**
180
- * <p>Returns metadata, such as the path information about an Amazon EFS location.</p>
181
- */
92
+
182
93
  describeLocationEfs(args: DescribeLocationEfsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLocationEfsCommandOutput>;
183
94
  describeLocationEfs(args: DescribeLocationEfsCommandInput, cb: (err: any, data?: DescribeLocationEfsCommandOutput) => void): void;
184
95
  describeLocationEfs(args: DescribeLocationEfsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLocationEfsCommandOutput) => void): void;
185
- /**
186
- * <p>Returns metadata, such as the path information about an Amazon FSx for Windows File Server
187
- * location.</p>
188
- */
96
+
189
97
  describeLocationFsxWindows(args: DescribeLocationFsxWindowsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLocationFsxWindowsCommandOutput>;
190
98
  describeLocationFsxWindows(args: DescribeLocationFsxWindowsCommandInput, cb: (err: any, data?: DescribeLocationFsxWindowsCommandOutput) => void): void;
191
99
  describeLocationFsxWindows(args: DescribeLocationFsxWindowsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLocationFsxWindowsCommandOutput) => void): void;
192
- /**
193
- * <p>Returns metadata, such as the path information, about an NFS location.</p>
194
- */
100
+
195
101
  describeLocationNfs(args: DescribeLocationNfsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLocationNfsCommandOutput>;
196
102
  describeLocationNfs(args: DescribeLocationNfsCommandInput, cb: (err: any, data?: DescribeLocationNfsCommandOutput) => void): void;
197
103
  describeLocationNfs(args: DescribeLocationNfsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLocationNfsCommandOutput) => void): void;
198
- /**
199
- * <p>Returns metadata about a self-managed object storage server location. For more information
200
- * about self-managed object storage locations, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-object-location.html">Creating a location for object storage</a>.</p>
201
- */
104
+
202
105
  describeLocationObjectStorage(args: DescribeLocationObjectStorageCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLocationObjectStorageCommandOutput>;
203
106
  describeLocationObjectStorage(args: DescribeLocationObjectStorageCommandInput, cb: (err: any, data?: DescribeLocationObjectStorageCommandOutput) => void): void;
204
107
  describeLocationObjectStorage(args: DescribeLocationObjectStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLocationObjectStorageCommandOutput) => void): void;
205
- /**
206
- * <p>Returns metadata, such as bucket name, about an Amazon S3 bucket location.</p>
207
- */
108
+
208
109
  describeLocationS3(args: DescribeLocationS3CommandInput, options?: __HttpHandlerOptions): Promise<DescribeLocationS3CommandOutput>;
209
110
  describeLocationS3(args: DescribeLocationS3CommandInput, cb: (err: any, data?: DescribeLocationS3CommandOutput) => void): void;
210
111
  describeLocationS3(args: DescribeLocationS3CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLocationS3CommandOutput) => void): void;
211
- /**
212
- * <p>Returns metadata, such as the path and user information about an SMB location.</p>
213
- */
112
+
214
113
  describeLocationSmb(args: DescribeLocationSmbCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLocationSmbCommandOutput>;
215
114
  describeLocationSmb(args: DescribeLocationSmbCommandInput, cb: (err: any, data?: DescribeLocationSmbCommandOutput) => void): void;
216
115
  describeLocationSmb(args: DescribeLocationSmbCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLocationSmbCommandOutput) => void): void;
217
- /**
218
- * <p>Returns metadata about a task.</p>
219
- */
116
+
220
117
  describeTask(args: DescribeTaskCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTaskCommandOutput>;
221
118
  describeTask(args: DescribeTaskCommandInput, cb: (err: any, data?: DescribeTaskCommandOutput) => void): void;
222
119
  describeTask(args: DescribeTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTaskCommandOutput) => void): void;
223
- /**
224
- * <p>Returns detailed metadata about a task that is being executed.</p>
225
- */
120
+
226
121
  describeTaskExecution(args: DescribeTaskExecutionCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTaskExecutionCommandOutput>;
227
122
  describeTaskExecution(args: DescribeTaskExecutionCommandInput, cb: (err: any, data?: DescribeTaskExecutionCommandOutput) => void): void;
228
123
  describeTaskExecution(args: DescribeTaskExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTaskExecutionCommandOutput) => void): void;
229
- /**
230
- * <p>Returns a list of agents owned by an Amazon Web Services account in the Amazon Web Services Region specified in the
231
- * request. The returned list is ordered by agent Amazon Resource Name (ARN).</p>
232
- * <p>By default, this operation returns a maximum of 100 agents. This operation supports
233
- * pagination that enables you to optionally reduce the number of agents returned in a
234
- * response.</p>
235
- * <p>If you have more agents than are returned in a response (that is, the response returns
236
- * only a truncated list of your agents), the response contains a marker that you can specify in
237
- * your next request to fetch the next page of agents.</p>
238
- */
124
+
239
125
  listAgents(args: ListAgentsCommandInput, options?: __HttpHandlerOptions): Promise<ListAgentsCommandOutput>;
240
126
  listAgents(args: ListAgentsCommandInput, cb: (err: any, data?: ListAgentsCommandOutput) => void): void;
241
127
  listAgents(args: ListAgentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAgentsCommandOutput) => void): void;
242
- /**
243
- * <p>Returns a list of source and destination locations.</p>
244
- * <p>If you have more locations than are returned in a response (that is, the response
245
- * returns only a truncated list of your agents), the response contains a token that you can
246
- * specify in your next request to fetch the next page of locations.</p>
247
- */
128
+
248
129
  listLocations(args: ListLocationsCommandInput, options?: __HttpHandlerOptions): Promise<ListLocationsCommandOutput>;
249
130
  listLocations(args: ListLocationsCommandInput, cb: (err: any, data?: ListLocationsCommandOutput) => void): void;
250
131
  listLocations(args: ListLocationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLocationsCommandOutput) => void): void;
251
- /**
252
- * <p>Returns all the tags associated with a specified resource. </p>
253
- */
132
+
254
133
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
255
134
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
256
135
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
257
- /**
258
- * <p>Returns a list of executed tasks.</p>
259
- */
136
+
260
137
  listTaskExecutions(args: ListTaskExecutionsCommandInput, options?: __HttpHandlerOptions): Promise<ListTaskExecutionsCommandOutput>;
261
138
  listTaskExecutions(args: ListTaskExecutionsCommandInput, cb: (err: any, data?: ListTaskExecutionsCommandOutput) => void): void;
262
139
  listTaskExecutions(args: ListTaskExecutionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTaskExecutionsCommandOutput) => void): void;
263
- /**
264
- * <p>Returns a list of all the tasks.</p>
265
- */
140
+
266
141
  listTasks(args: ListTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListTasksCommandOutput>;
267
142
  listTasks(args: ListTasksCommandInput, cb: (err: any, data?: ListTasksCommandOutput) => void): void;
268
143
  listTasks(args: ListTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTasksCommandOutput) => void): void;
269
- /**
270
- * <p>Starts a specific invocation of a task. A <code>TaskExecution</code> value represents
271
- * an individual run of a task. Each task can have at most one <code>TaskExecution</code> at a
272
- * time.</p>
273
- * <p>
274
- * <code>TaskExecution</code> has the following transition phases: INITIALIZING |
275
- * PREPARING | TRANSFERRING | VERIFYING | SUCCESS/FAILURE. </p>
276
- *
277
- * <p>For detailed information, see the Task Execution section in the Components and
278
- * Terminology topic in the <i>DataSync User Guide</i>.</p>
279
- */
144
+
280
145
  startTaskExecution(args: StartTaskExecutionCommandInput, options?: __HttpHandlerOptions): Promise<StartTaskExecutionCommandOutput>;
281
146
  startTaskExecution(args: StartTaskExecutionCommandInput, cb: (err: any, data?: StartTaskExecutionCommandOutput) => void): void;
282
147
  startTaskExecution(args: StartTaskExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartTaskExecutionCommandOutput) => void): void;
283
- /**
284
- * <p>Applies a key-value pair to an Amazon Web Services resource.</p>
285
- */
148
+
286
149
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
287
150
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
288
151
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
289
- /**
290
- * <p>Removes a tag from an Amazon Web Services resource.</p>
291
- */
152
+
292
153
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
293
154
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
294
155
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
295
- /**
296
- * <p>Updates the name of an agent.</p>
297
- */
156
+
298
157
  updateAgent(args: UpdateAgentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAgentCommandOutput>;
299
158
  updateAgent(args: UpdateAgentCommandInput, cb: (err: any, data?: UpdateAgentCommandOutput) => void): void;
300
159
  updateAgent(args: UpdateAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAgentCommandOutput) => void): void;
301
- /**
302
- * <p>Updates some of the parameters of a previously created location for Network File System (NFS) access.
303
- * 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>
304
- */
160
+
305
161
  updateLocationNfs(args: UpdateLocationNfsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLocationNfsCommandOutput>;
306
162
  updateLocationNfs(args: UpdateLocationNfsCommandInput, cb: (err: any, data?: UpdateLocationNfsCommandOutput) => void): void;
307
163
  updateLocationNfs(args: UpdateLocationNfsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLocationNfsCommandOutput) => void): void;
308
- /**
309
- * <p>Updates some of the parameters of a previously created location for self-managed object
310
- * storage server access. For information about creating a self-managed object storage location,
311
- * see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-object-location.html">Creating a location for object storage</a>.</p>
312
- */
164
+
313
165
  updateLocationObjectStorage(args: UpdateLocationObjectStorageCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLocationObjectStorageCommandOutput>;
314
166
  updateLocationObjectStorage(args: UpdateLocationObjectStorageCommandInput, cb: (err: any, data?: UpdateLocationObjectStorageCommandOutput) => void): void;
315
167
  updateLocationObjectStorage(args: UpdateLocationObjectStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLocationObjectStorageCommandOutput) => void): void;
316
- /**
317
- * <p>Updates some of the parameters of a previously created location for Server Message Block
318
- * (SMB) file system access. For information about creating an SMB location, see
319
- * <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html">Creating a location for SMB</a>.</p>
320
- */
168
+
321
169
  updateLocationSmb(args: UpdateLocationSmbCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLocationSmbCommandOutput>;
322
170
  updateLocationSmb(args: UpdateLocationSmbCommandInput, cb: (err: any, data?: UpdateLocationSmbCommandOutput) => void): void;
323
171
  updateLocationSmb(args: UpdateLocationSmbCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLocationSmbCommandOutput) => void): void;
324
- /**
325
- * <p>Updates the metadata associated with a task.</p>
326
- */
172
+
327
173
  updateTask(args: UpdateTaskCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTaskCommandOutput>;
328
174
  updateTask(args: UpdateTaskCommandInput, cb: (err: any, data?: UpdateTaskCommandOutput) => void): void;
329
175
  updateTask(args: UpdateTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTaskCommandOutput) => void): void;
330
- /**
331
- * <p>Updates execution of a task.</p>
332
- * <p>You can modify bandwidth throttling for a task execution that is running or queued.
333
- * For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/working-with-task-executions.html#adjust-bandwidth-throttling">Adjusting Bandwidth Throttling for a Task Execution</a>.</p>
334
- *
335
- * <note>
336
- * <p>The only <code>Option</code> that can be modified by <code>UpdateTaskExecution</code>
337
- * is <code>
338
- * <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-BytesPerSecond">BytesPerSecond</a>
339
- * </code>.</p>
340
- * </note>
341
- */
176
+
342
177
  updateTaskExecution(args: UpdateTaskExecutionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTaskExecutionCommandOutput>;
343
178
  updateTaskExecution(args: UpdateTaskExecutionCommandInput, cb: (err: any, data?: UpdateTaskExecutionCommandOutput) => void): void;
344
179
  updateTaskExecution(args: UpdateTaskExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTaskExecutionCommandOutput) => void): void;