@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
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
18
 
8
19
 
@@ -37,15 +37,6 @@ const UpdateLocationSmbCommand_1 = require("./commands/UpdateLocationSmbCommand"
37
37
  const UpdateTaskCommand_1 = require("./commands/UpdateTaskCommand");
38
38
  const UpdateTaskExecutionCommand_1 = require("./commands/UpdateTaskExecutionCommand");
39
39
  const DataSyncClient_1 = require("./DataSyncClient");
40
- /**
41
- * <fullname>DataSync</fullname>
42
- *
43
- * <p>DataSync is a managed data transfer service that makes it simpler for you to
44
- * automate moving data between on-premises storage and Amazon Simple Storage Service (Amazon S3)
45
- * or Amazon Elastic File System (Amazon EFS). </p>
46
- * <p>This API interface reference for DataSync contains documentation for a
47
- * programming interface that you can use to manage DataSync.</p>
48
- */
49
40
  class DataSync extends DataSyncClient_1.DataSyncClient {
50
41
  cancelTaskExecution(args, optionsOrCb, cb) {
51
42
  const command = new CancelTaskExecutionCommand_1.CancelTaskExecutionCommand(args);
@@ -10,15 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <fullname>DataSync</fullname>
15
- *
16
- * <p>DataSync is a managed data transfer service that makes it simpler for you to
17
- * automate moving data between on-premises storage and Amazon Simple Storage Service (Amazon S3)
18
- * or Amazon Elastic File System (Amazon EFS). </p>
19
- * <p>This API interface reference for DataSync contains documentation for a
20
- * programming interface that you can use to manage DataSync.</p>
21
- */
22
13
  class DataSyncClient extends smithy_client_1.Client {
23
14
  constructor(configuration) {
24
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -37,11 +28,6 @@ class DataSyncClient extends smithy_client_1.Client {
37
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
38
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
39
30
  }
40
- /**
41
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
42
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
43
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
44
- */
45
31
  destroy() {
46
32
  super.destroy();
47
33
  }
@@ -5,42 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Cancels execution of a task. </p>
10
- * <p>When you cancel a task execution, the transfer of some files is abruptly interrupted.
11
- * The contents of files that are transferred to the destination might be incomplete or
12
- * inconsistent with the source files. However, if you start a new task execution on the same
13
- * task and you allow the task execution to complete, file content on the destination is complete
14
- * and consistent. This applies to other unexpected failures that interrupt a task execution. In
15
- * all of these cases, DataSync successfully complete the transfer when you start the next
16
- * task execution.</p>
17
- * @example
18
- * Use a bare-bones client and the command you need to make an API call.
19
- * ```javascript
20
- * import { DataSyncClient, CancelTaskExecutionCommand } from "@aws-sdk/client-datasync"; // ES Modules import
21
- * // const { DataSyncClient, CancelTaskExecutionCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
22
- * const client = new DataSyncClient(config);
23
- * const command = new CancelTaskExecutionCommand(input);
24
- * const response = await client.send(command);
25
- * ```
26
- *
27
- * @see {@link CancelTaskExecutionCommandInput} for command's `input` shape.
28
- * @see {@link CancelTaskExecutionCommandOutput} for command's `response` shape.
29
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
30
- *
31
- */
32
8
  class CancelTaskExecutionCommand extends smithy_client_1.Command {
33
- // Start section: command_properties
34
- // End section: command_properties
35
9
  constructor(input) {
36
- // Start section: command_constructor
37
10
  super();
38
11
  this.input = input;
39
- // End section: command_constructor
40
12
  }
41
- /**
42
- * @internal
43
- */
44
13
  resolveMiddleware(clientStack, configuration, options) {
45
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
46
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,49 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Activates an DataSync agent that you have deployed on your host. The activation
10
- * process associates your agent with your account. In the activation process, you specify
11
- * information such as the Amazon Web Services Region that you want to activate the agent in. You activate the
12
- * agent in the Amazon Web Services Region where your target locations (in Amazon S3 or Amazon EFS) reside. Your
13
- * tasks are created in this Amazon Web Services Region.</p>
14
- * <p>You can activate the agent in a VPC (virtual private cloud) or provide the agent access to
15
- * a VPC endpoint so you can run tasks without going over the public internet.</p>
16
- * <p>You can use an agent for more than one location. If a task uses multiple agents, all of
17
- * them need to have status AVAILABLE for the task to run. If you use multiple agents for a
18
- * source location, the status of all the agents must be AVAILABLE for the task to run. </p>
19
- *
20
- *
21
- * <p>Agents are automatically updated by Amazon Web Services on a regular basis, using a mechanism that
22
- * ensures minimal interruption to your tasks.</p>
23
- * <p></p>
24
- * @example
25
- * Use a bare-bones client and the command you need to make an API call.
26
- * ```javascript
27
- * import { DataSyncClient, CreateAgentCommand } from "@aws-sdk/client-datasync"; // ES Modules import
28
- * // const { DataSyncClient, CreateAgentCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
29
- * const client = new DataSyncClient(config);
30
- * const command = new CreateAgentCommand(input);
31
- * const response = await client.send(command);
32
- * ```
33
- *
34
- * @see {@link CreateAgentCommandInput} for command's `input` shape.
35
- * @see {@link CreateAgentCommandOutput} for command's `response` shape.
36
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
37
- *
38
- */
39
8
  class CreateAgentCommand extends smithy_client_1.Command {
40
- // Start section: command_properties
41
- // End section: command_properties
42
9
  constructor(input) {
43
- // Start section: command_constructor
44
10
  super();
45
11
  this.input = input;
46
- // End section: command_constructor
47
12
  }
48
- /**
49
- * @internal
50
- */
51
13
  resolveMiddleware(clientStack, configuration, options) {
52
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
53
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Creates an endpoint for an Amazon EFS file system.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { DataSyncClient, CreateLocationEfsCommand } from "@aws-sdk/client-datasync"; // ES Modules import
14
- * // const { DataSyncClient, CreateLocationEfsCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
15
- * const client = new DataSyncClient(config);
16
- * const command = new CreateLocationEfsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link CreateLocationEfsCommandInput} for command's `input` shape.
21
- * @see {@link CreateLocationEfsCommandOutput} for command's `response` shape.
22
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class CreateLocationEfsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Creates an endpoint for an Amazon FSx for Windows File Server file system.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { DataSyncClient, CreateLocationFsxWindowsCommand } from "@aws-sdk/client-datasync"; // ES Modules import
14
- * // const { DataSyncClient, CreateLocationFsxWindowsCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
15
- * const client = new DataSyncClient(config);
16
- * const command = new CreateLocationFsxWindowsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link CreateLocationFsxWindowsCommandInput} for command's `input` shape.
21
- * @see {@link CreateLocationFsxWindowsCommandOutput} for command's `response` shape.
22
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class CreateLocationFsxWindowsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Defines a file system on a Network File System (NFS) server that can be read from or
10
- * written to.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { DataSyncClient, CreateLocationNfsCommand } from "@aws-sdk/client-datasync"; // ES Modules import
15
- * // const { DataSyncClient, CreateLocationNfsCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
16
- * const client = new DataSyncClient(config);
17
- * const command = new CreateLocationNfsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link CreateLocationNfsCommandInput} for command's `input` shape.
22
- * @see {@link CreateLocationNfsCommandOutput} for command's `response` shape.
23
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class CreateLocationNfsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Creates an endpoint for a self-managed object storage bucket. For more information
10
- * 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>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { DataSyncClient, CreateLocationObjectStorageCommand } from "@aws-sdk/client-datasync"; // ES Modules import
15
- * // const { DataSyncClient, CreateLocationObjectStorageCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
16
- * const client = new DataSyncClient(config);
17
- * const command = new CreateLocationObjectStorageCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link CreateLocationObjectStorageCommandInput} for command's `input` shape.
22
- * @see {@link CreateLocationObjectStorageCommandOutput} for command's `response` shape.
23
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class CreateLocationObjectStorageCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,41 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Creates an endpoint for an Amazon S3 bucket.</p>
10
- *
11
- *
12
- * <p>For
13
- * more information, see
14
- * <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-locations-cli.html#create-location-s3-cli">Create an Amazon S3 location</a>
15
- * in the <i>DataSync User Guide</i>.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { DataSyncClient, CreateLocationS3Command } from "@aws-sdk/client-datasync"; // ES Modules import
20
- * // const { DataSyncClient, CreateLocationS3Command } = require("@aws-sdk/client-datasync"); // CommonJS import
21
- * const client = new DataSyncClient(config);
22
- * const command = new CreateLocationS3Command(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link CreateLocationS3CommandInput} for command's `input` shape.
27
- * @see {@link CreateLocationS3CommandOutput} for command's `response` shape.
28
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
8
  class CreateLocationS3Command extends smithy_client_1.Command {
32
- // Start section: command_properties
33
- // End section: command_properties
34
9
  constructor(input) {
35
- // Start section: command_constructor
36
10
  super();
37
11
  this.input = input;
38
- // End section: command_constructor
39
12
  }
40
- /**
41
- * @internal
42
- */
43
13
  resolveMiddleware(clientStack, configuration, options) {
44
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
45
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Defines a file system on a Server Message Block (SMB) server that can be read from or
10
- * written to.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { DataSyncClient, CreateLocationSmbCommand } from "@aws-sdk/client-datasync"; // ES Modules import
15
- * // const { DataSyncClient, CreateLocationSmbCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
16
- * const client = new DataSyncClient(config);
17
- * const command = new CreateLocationSmbCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link CreateLocationSmbCommandInput} for command's `input` shape.
22
- * @see {@link CreateLocationSmbCommandOutput} for command's `response` shape.
23
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class CreateLocationSmbCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,53 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Creates a task.</p>
10
- * <p>A task includes a source location and a destination location, and a configuration
11
- * that specifies how data is transferred. A task always transfers data from the source
12
- * location to the destination location. The configuration specifies options such as
13
- * task scheduling, bandwidth limits, etc. A task is the complete definition of a data
14
- * transfer.</p>
15
- * <p>When you create a task that transfers data between Amazon Web Services services in different Amazon Web Services Regions,
16
- * one of the two locations that you specify must reside in the Region where DataSync is being
17
- * used. The other location must be specified in a different Region.</p>
18
- * <p>You can transfer data between commercial Amazon Web Services Regions except for China, or between
19
- * Amazon Web Services GovCloud (US) Regions.</p>
20
- *
21
- * <important>
22
- * <p>When you use DataSync to copy files or objects between Amazon Web Services Regions,
23
- * you pay for data transfer between Regions. This is billed as data transfer OUT
24
- * from your source Region to your destination Region. For more information,
25
- * see <a href="http://aws.amazon.com/ec2/pricing/on-demand/#Data_Transfer">Data Transfer pricing</a>.
26
- * </p>
27
- * </important>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { DataSyncClient, CreateTaskCommand } from "@aws-sdk/client-datasync"; // ES Modules import
32
- * // const { DataSyncClient, CreateTaskCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
33
- * const client = new DataSyncClient(config);
34
- * const command = new CreateTaskCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link CreateTaskCommandInput} for command's `input` shape.
39
- * @see {@link CreateTaskCommandOutput} for command's `response` shape.
40
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
8
  class CreateTaskCommand extends smithy_client_1.Command {
44
- // Start section: command_properties
45
- // End section: command_properties
46
9
  constructor(input) {
47
- // Start section: command_constructor
48
10
  super();
49
11
  this.input = input;
50
- // End section: command_constructor
51
12
  }
52
- /**
53
- * @internal
54
- */
55
13
  resolveMiddleware(clientStack, configuration, options) {
56
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
57
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Deletes an agent. To specify which agent to delete, use the Amazon Resource Name (ARN)
10
- * of the agent in your request. The operation disassociates the agent from your Amazon Web Services account.
11
- * However, it doesn't delete the agent virtual machine (VM) from your on-premises
12
- * environment.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { DataSyncClient, DeleteAgentCommand } from "@aws-sdk/client-datasync"; // ES Modules import
17
- * // const { DataSyncClient, DeleteAgentCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
18
- * const client = new DataSyncClient(config);
19
- * const command = new DeleteAgentCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link DeleteAgentCommandInput} for command's `input` shape.
24
- * @see {@link DeleteAgentCommandOutput} for command's `response` shape.
25
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class DeleteAgentCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Deletes the configuration of a location used by DataSync. </p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { DataSyncClient, DeleteLocationCommand } from "@aws-sdk/client-datasync"; // ES Modules import
14
- * // const { DataSyncClient, DeleteLocationCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
15
- * const client = new DataSyncClient(config);
16
- * const command = new DeleteLocationCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DeleteLocationCommandInput} for command's `input` shape.
21
- * @see {@link DeleteLocationCommandOutput} for command's `response` shape.
22
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DeleteLocationCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Deletes a task.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { DataSyncClient, DeleteTaskCommand } from "@aws-sdk/client-datasync"; // ES Modules import
14
- * // const { DataSyncClient, DeleteTaskCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
15
- * const client = new DataSyncClient(config);
16
- * const command = new DeleteTaskCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DeleteTaskCommandInput} for command's `input` shape.
21
- * @see {@link DeleteTaskCommandOutput} for command's `response` shape.
22
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DeleteTaskCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Returns metadata such as the name, the network interfaces, and the status (that is,
10
- * whether the agent is running or not) for an agent. To specify which agent to describe, use the
11
- * Amazon Resource Name (ARN) of the agent in your request. </p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { DataSyncClient, DescribeAgentCommand } from "@aws-sdk/client-datasync"; // ES Modules import
16
- * // const { DataSyncClient, DescribeAgentCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
17
- * const client = new DataSyncClient(config);
18
- * const command = new DescribeAgentCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link DescribeAgentCommandInput} for command's `input` shape.
23
- * @see {@link DescribeAgentCommandOutput} for command's `response` shape.
24
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class DescribeAgentCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Returns metadata, such as the path information about an Amazon EFS location.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { DataSyncClient, DescribeLocationEfsCommand } from "@aws-sdk/client-datasync"; // ES Modules import
14
- * // const { DataSyncClient, DescribeLocationEfsCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
15
- * const client = new DataSyncClient(config);
16
- * const command = new DescribeLocationEfsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeLocationEfsCommandInput} for command's `input` shape.
21
- * @see {@link DescribeLocationEfsCommandOutput} for command's `response` shape.
22
- * @see {@link DataSyncClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DescribeLocationEfsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);