@aws-sdk/client-datasync 3.128.0 → 3.137.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 (99) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/commands/CancelTaskExecutionCommand.js +2 -2
  3. package/dist-cjs/commands/CreateAgentCommand.js +2 -2
  4. package/dist-cjs/commands/CreateLocationEfsCommand.js +2 -2
  5. package/dist-cjs/commands/CreateLocationFsxLustreCommand.js +2 -2
  6. package/dist-cjs/commands/CreateLocationFsxOntapCommand.js +2 -2
  7. package/dist-cjs/commands/CreateLocationFsxOpenZfsCommand.js +2 -2
  8. package/dist-cjs/commands/CreateLocationFsxWindowsCommand.js +2 -2
  9. package/dist-cjs/commands/CreateLocationHdfsCommand.js +2 -2
  10. package/dist-cjs/commands/CreateLocationNfsCommand.js +2 -2
  11. package/dist-cjs/commands/CreateLocationObjectStorageCommand.js +2 -2
  12. package/dist-cjs/commands/CreateLocationS3Command.js +2 -2
  13. package/dist-cjs/commands/CreateLocationSmbCommand.js +2 -2
  14. package/dist-cjs/commands/CreateTaskCommand.js +2 -2
  15. package/dist-cjs/commands/DeleteAgentCommand.js +2 -2
  16. package/dist-cjs/commands/DeleteLocationCommand.js +2 -2
  17. package/dist-cjs/commands/DeleteTaskCommand.js +2 -2
  18. package/dist-cjs/commands/DescribeAgentCommand.js +2 -2
  19. package/dist-cjs/commands/DescribeLocationEfsCommand.js +2 -2
  20. package/dist-cjs/commands/DescribeLocationFsxLustreCommand.js +2 -2
  21. package/dist-cjs/commands/DescribeLocationFsxOntapCommand.js +2 -2
  22. package/dist-cjs/commands/DescribeLocationFsxOpenZfsCommand.js +2 -2
  23. package/dist-cjs/commands/DescribeLocationFsxWindowsCommand.js +2 -2
  24. package/dist-cjs/commands/DescribeLocationHdfsCommand.js +2 -2
  25. package/dist-cjs/commands/DescribeLocationNfsCommand.js +2 -2
  26. package/dist-cjs/commands/DescribeLocationObjectStorageCommand.js +2 -2
  27. package/dist-cjs/commands/DescribeLocationS3Command.js +2 -2
  28. package/dist-cjs/commands/DescribeLocationSmbCommand.js +2 -2
  29. package/dist-cjs/commands/DescribeTaskCommand.js +2 -2
  30. package/dist-cjs/commands/DescribeTaskExecutionCommand.js +2 -2
  31. package/dist-cjs/commands/ListAgentsCommand.js +2 -2
  32. package/dist-cjs/commands/ListLocationsCommand.js +2 -2
  33. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  34. package/dist-cjs/commands/ListTaskExecutionsCommand.js +2 -2
  35. package/dist-cjs/commands/ListTasksCommand.js +2 -2
  36. package/dist-cjs/commands/StartTaskExecutionCommand.js +2 -2
  37. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  38. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  39. package/dist-cjs/commands/UpdateAgentCommand.js +2 -2
  40. package/dist-cjs/commands/UpdateLocationHdfsCommand.js +2 -2
  41. package/dist-cjs/commands/UpdateLocationNfsCommand.js +2 -2
  42. package/dist-cjs/commands/UpdateLocationObjectStorageCommand.js +2 -2
  43. package/dist-cjs/commands/UpdateLocationSmbCommand.js +2 -2
  44. package/dist-cjs/commands/UpdateTaskCommand.js +2 -2
  45. package/dist-cjs/commands/UpdateTaskExecutionCommand.js +2 -2
  46. package/dist-cjs/models/models_0.js +454 -674
  47. package/dist-cjs/protocols/Aws_json1_1.js +3 -0
  48. package/dist-es/commands/CancelTaskExecutionCommand.js +3 -3
  49. package/dist-es/commands/CreateAgentCommand.js +3 -3
  50. package/dist-es/commands/CreateLocationEfsCommand.js +3 -3
  51. package/dist-es/commands/CreateLocationFsxLustreCommand.js +3 -3
  52. package/dist-es/commands/CreateLocationFsxOntapCommand.js +3 -3
  53. package/dist-es/commands/CreateLocationFsxOpenZfsCommand.js +3 -3
  54. package/dist-es/commands/CreateLocationFsxWindowsCommand.js +3 -3
  55. package/dist-es/commands/CreateLocationHdfsCommand.js +3 -3
  56. package/dist-es/commands/CreateLocationNfsCommand.js +3 -3
  57. package/dist-es/commands/CreateLocationObjectStorageCommand.js +3 -3
  58. package/dist-es/commands/CreateLocationS3Command.js +3 -3
  59. package/dist-es/commands/CreateLocationSmbCommand.js +3 -3
  60. package/dist-es/commands/CreateTaskCommand.js +3 -3
  61. package/dist-es/commands/DeleteAgentCommand.js +3 -3
  62. package/dist-es/commands/DeleteLocationCommand.js +3 -3
  63. package/dist-es/commands/DeleteTaskCommand.js +3 -3
  64. package/dist-es/commands/DescribeAgentCommand.js +3 -3
  65. package/dist-es/commands/DescribeLocationEfsCommand.js +3 -3
  66. package/dist-es/commands/DescribeLocationFsxLustreCommand.js +3 -3
  67. package/dist-es/commands/DescribeLocationFsxOntapCommand.js +3 -3
  68. package/dist-es/commands/DescribeLocationFsxOpenZfsCommand.js +3 -3
  69. package/dist-es/commands/DescribeLocationFsxWindowsCommand.js +3 -3
  70. package/dist-es/commands/DescribeLocationHdfsCommand.js +3 -3
  71. package/dist-es/commands/DescribeLocationNfsCommand.js +3 -3
  72. package/dist-es/commands/DescribeLocationObjectStorageCommand.js +3 -3
  73. package/dist-es/commands/DescribeLocationS3Command.js +3 -3
  74. package/dist-es/commands/DescribeLocationSmbCommand.js +3 -3
  75. package/dist-es/commands/DescribeTaskCommand.js +3 -3
  76. package/dist-es/commands/DescribeTaskExecutionCommand.js +3 -3
  77. package/dist-es/commands/ListAgentsCommand.js +3 -3
  78. package/dist-es/commands/ListLocationsCommand.js +3 -3
  79. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  80. package/dist-es/commands/ListTaskExecutionsCommand.js +3 -3
  81. package/dist-es/commands/ListTasksCommand.js +3 -3
  82. package/dist-es/commands/StartTaskExecutionCommand.js +3 -3
  83. package/dist-es/commands/TagResourceCommand.js +3 -3
  84. package/dist-es/commands/UntagResourceCommand.js +3 -3
  85. package/dist-es/commands/UpdateAgentCommand.js +3 -3
  86. package/dist-es/commands/UpdateLocationHdfsCommand.js +3 -3
  87. package/dist-es/commands/UpdateLocationNfsCommand.js +3 -3
  88. package/dist-es/commands/UpdateLocationObjectStorageCommand.js +3 -3
  89. package/dist-es/commands/UpdateLocationSmbCommand.js +3 -3
  90. package/dist-es/commands/UpdateTaskCommand.js +3 -3
  91. package/dist-es/commands/UpdateTaskExecutionCommand.js +3 -3
  92. package/dist-es/models/models_0.js +110 -440
  93. package/dist-es/protocols/Aws_json1_1.js +3 -0
  94. package/dist-types/DataSync.d.ts +22 -20
  95. package/dist-types/commands/CreateTaskCommand.d.ts +21 -19
  96. package/dist-types/commands/ListTasksCommand.d.ts +1 -1
  97. package/dist-types/models/models_0.d.ts +522 -689
  98. package/dist-types/ts3.4/models/models_0.d.ts +220 -440
  99. package/package.json +9 -9
@@ -3934,6 +3934,9 @@ var loadRestJsonErrorCode = function (output, data) {
3934
3934
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
3935
3935
  var sanitizeErrorCode = function (rawValue) {
3936
3936
  var cleanValue = rawValue;
3937
+ if (typeof cleanValue === "number") {
3938
+ cleanValue = cleanValue.toString();
3939
+ }
3937
3940
  if (cleanValue.indexOf(":") >= 0) {
3938
3941
  cleanValue = cleanValue.split(":")[0];
3939
3942
  }
@@ -158,25 +158,27 @@ export declare class DataSync extends DataSyncClient {
158
158
  createLocationSmb(args: CreateLocationSmbCommandInput, cb: (err: any, data?: CreateLocationSmbCommandOutput) => void): void;
159
159
  createLocationSmb(args: CreateLocationSmbCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLocationSmbCommandOutput) => void): void;
160
160
  /**
161
- * <p>Creates a task.</p>
162
- * <p>A task includes a source location and a destination location, and a configuration
163
- * that specifies how data is transferred. A task always transfers data from the source
164
- * location to the destination location. The configuration specifies options such as
165
- * task scheduling, bandwidth limits, etc. A task is the complete definition of a data
166
- * transfer.</p>
167
- * <p>When you create a task that transfers data between Amazon Web Services services in different Amazon Web Services Regions,
168
- * one of the two locations that you specify must reside in the Region where DataSync is being
169
- * used. The other location must be specified in a different Region.</p>
170
- * <p>You can transfer data between commercial Amazon Web Services Regions except for China, or between
171
- * Amazon Web Services GovCloud (US) Regions.</p>
172
- *
173
- * <important>
174
- * <p>When you use DataSync to copy files or objects between Amazon Web Services Regions,
175
- * you pay for data transfer between Regions. This is billed as data transfer OUT
176
- * from your source Region to your destination Region. For more information,
177
- * see <a href="http://aws.amazon.com/ec2/pricing/on-demand/#Data_Transfer">Data Transfer pricing</a>.
178
- * </p>
179
- * </important>
161
+ * <p>Configures a task, which defines where and how DataSync transfers your
162
+ * data.</p>
163
+ * <p>A task includes a source location, a destination location, and the preferences for how and
164
+ * when you want to transfer your data (such as bandwidth limits, scheduling, among other
165
+ * options).</p>
166
+ * <p>When you create a task that transfers data between Amazon Web Services services in
167
+ * different Amazon Web Services Regions, one of your locations must reside in the Region where
168
+ * you're using DataSync.</p>
169
+ * <p>For more information, see the following topics:</p>
170
+ * <ul>
171
+ * <li>
172
+ * <p>
173
+ * <a href="https://docs.aws.amazon.com/datasync/latest/userguide/working-with-locations.html">Working with DataSync locations</a>
174
+ * </p>
175
+ * </li>
176
+ * <li>
177
+ * <p>
178
+ * <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-task.html">Configure DataSync task settings</a>
179
+ * </p>
180
+ * </li>
181
+ * </ul>
180
182
  */
181
183
  createTask(args: CreateTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateTaskCommandOutput>;
182
184
  createTask(args: CreateTaskCommandInput, cb: (err: any, data?: CreateTaskCommandOutput) => void): void;
@@ -321,7 +323,7 @@ export declare class DataSync extends DataSyncClient {
321
323
  listTaskExecutions(args: ListTaskExecutionsCommandInput, cb: (err: any, data?: ListTaskExecutionsCommandOutput) => void): void;
322
324
  listTaskExecutions(args: ListTaskExecutionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTaskExecutionsCommandOutput) => void): void;
323
325
  /**
324
- * <p>Returns a list of all the tasks.</p>
326
+ * <p>Returns a list of the DataSync tasks you created.</p>
325
327
  */
326
328
  listTasks(args: ListTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListTasksCommandOutput>;
327
329
  listTasks(args: ListTasksCommandInput, cb: (err: any, data?: ListTasksCommandOutput) => void): void;
@@ -7,25 +7,27 @@ export interface CreateTaskCommandInput extends CreateTaskRequest {
7
7
  export interface CreateTaskCommandOutput extends CreateTaskResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Creates a task.</p>
11
- * <p>A task includes a source location and a destination location, and a configuration
12
- * that specifies how data is transferred. A task always transfers data from the source
13
- * location to the destination location. The configuration specifies options such as
14
- * task scheduling, bandwidth limits, etc. A task is the complete definition of a data
15
- * transfer.</p>
16
- * <p>When you create a task that transfers data between Amazon Web Services services in different Amazon Web Services Regions,
17
- * one of the two locations that you specify must reside in the Region where DataSync is being
18
- * used. The other location must be specified in a different Region.</p>
19
- * <p>You can transfer data between commercial Amazon Web Services Regions except for China, or between
20
- * Amazon Web Services GovCloud (US) Regions.</p>
21
- *
22
- * <important>
23
- * <p>When you use DataSync to copy files or objects between Amazon Web Services Regions,
24
- * you pay for data transfer between Regions. This is billed as data transfer OUT
25
- * from your source Region to your destination Region. For more information,
26
- * see <a href="http://aws.amazon.com/ec2/pricing/on-demand/#Data_Transfer">Data Transfer pricing</a>.
27
- * </p>
28
- * </important>
10
+ * <p>Configures a task, which defines where and how DataSync transfers your
11
+ * data.</p>
12
+ * <p>A task includes a source location, a destination location, and the preferences for how and
13
+ * when you want to transfer your data (such as bandwidth limits, scheduling, among other
14
+ * options).</p>
15
+ * <p>When you create a task that transfers data between Amazon Web Services services in
16
+ * different Amazon Web Services Regions, one of your locations must reside in the Region where
17
+ * you're using DataSync.</p>
18
+ * <p>For more information, see the following topics:</p>
19
+ * <ul>
20
+ * <li>
21
+ * <p>
22
+ * <a href="https://docs.aws.amazon.com/datasync/latest/userguide/working-with-locations.html">Working with DataSync locations</a>
23
+ * </p>
24
+ * </li>
25
+ * <li>
26
+ * <p>
27
+ * <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-task.html">Configure DataSync task settings</a>
28
+ * </p>
29
+ * </li>
30
+ * </ul>
29
31
  * @example
30
32
  * Use a bare-bones client and the command you need to make an API call.
31
33
  * ```javascript
@@ -7,7 +7,7 @@ export interface ListTasksCommandInput extends ListTasksRequest {
7
7
  export interface ListTasksCommandOutput extends ListTasksResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Returns a list of all the tasks.</p>
10
+ * <p>Returns a list of the DataSync tasks you created.</p>
11
11
  * @example
12
12
  * Use a bare-bones client and the command you need to make an API call.
13
13
  * ```javascript