@aws-sdk/client-datasync 3.682.0 → 3.686.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.
- package/README.md +1 -1
- package/dist-cjs/index.js +11 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +5 -0
- package/dist-types/commands/CreateAgentCommand.d.ts +4 -19
- package/dist-types/commands/CreateTaskCommand.d.ts +1 -0
- package/dist-types/commands/DescribeTaskCommand.d.ts +1 -0
- package/dist-types/commands/DescribeTaskExecutionCommand.d.ts +19 -2
- package/dist-types/commands/ListTaskExecutionsCommand.d.ts +1 -0
- package/dist-types/commands/ListTasksCommand.d.ts +1 -0
- package/dist-types/commands/StartTaskExecutionCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +377 -128
- package/dist-types/ts3.4/models/models_0.d.ts +23 -0
- package/package.json +35 -35
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Guide</a>
|
|
|
19
19
|
|
|
20
20
|
## Installing
|
|
21
21
|
|
|
22
|
-
To install
|
|
22
|
+
To install this package, simply type add or install @aws-sdk/client-datasync
|
|
23
23
|
using your favorite package manager:
|
|
24
24
|
|
|
25
25
|
- `npm install @aws-sdk/client-datasync`
|
package/dist-cjs/index.js
CHANGED
|
@@ -130,6 +130,7 @@ __export(src_exports, {
|
|
|
130
130
|
TagResourceCommand: () => TagResourceCommand,
|
|
131
131
|
TaskExecutionStatus: () => TaskExecutionStatus,
|
|
132
132
|
TaskFilterName: () => TaskFilterName,
|
|
133
|
+
TaskMode: () => TaskMode,
|
|
133
134
|
TaskQueueing: () => TaskQueueing,
|
|
134
135
|
TaskStatus: () => TaskStatus,
|
|
135
136
|
TransferMode: () => TransferMode,
|
|
@@ -504,6 +505,10 @@ var ScheduleStatus = {
|
|
|
504
505
|
DISABLED: "DISABLED",
|
|
505
506
|
ENABLED: "ENABLED"
|
|
506
507
|
};
|
|
508
|
+
var TaskMode = {
|
|
509
|
+
BASIC: "BASIC",
|
|
510
|
+
ENHANCED: "ENHANCED"
|
|
511
|
+
};
|
|
507
512
|
var ObjectVersionIds = {
|
|
508
513
|
INCLUDE: "INCLUDE",
|
|
509
514
|
NONE: "NONE"
|
|
@@ -2209,6 +2214,9 @@ var de_DescribeTaskExecutionResponse = /* @__PURE__ */ __name((output, context)
|
|
|
2209
2214
|
EstimatedFilesToTransfer: import_smithy_client.expectLong,
|
|
2210
2215
|
Excludes: import_smithy_client._json,
|
|
2211
2216
|
FilesDeleted: import_smithy_client.expectLong,
|
|
2217
|
+
FilesFailed: import_smithy_client._json,
|
|
2218
|
+
FilesListed: import_smithy_client._json,
|
|
2219
|
+
FilesPrepared: import_smithy_client.expectLong,
|
|
2212
2220
|
FilesSkipped: import_smithy_client.expectLong,
|
|
2213
2221
|
FilesTransferred: import_smithy_client.expectLong,
|
|
2214
2222
|
FilesVerified: import_smithy_client.expectLong,
|
|
@@ -2220,6 +2228,7 @@ var de_DescribeTaskExecutionResponse = /* @__PURE__ */ __name((output, context)
|
|
|
2220
2228
|
StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2221
2229
|
Status: import_smithy_client.expectString,
|
|
2222
2230
|
TaskExecutionArn: import_smithy_client.expectString,
|
|
2231
|
+
TaskMode: import_smithy_client.expectString,
|
|
2223
2232
|
TaskReportConfig: import_smithy_client._json
|
|
2224
2233
|
});
|
|
2225
2234
|
}, "de_DescribeTaskExecutionResponse");
|
|
@@ -2243,6 +2252,7 @@ var de_DescribeTaskResponse = /* @__PURE__ */ __name((output, context) => {
|
|
|
2243
2252
|
SourceNetworkInterfaceArns: import_smithy_client._json,
|
|
2244
2253
|
Status: import_smithy_client.expectString,
|
|
2245
2254
|
TaskArn: import_smithy_client.expectString,
|
|
2255
|
+
TaskMode: import_smithy_client.expectString,
|
|
2246
2256
|
TaskReportConfig: import_smithy_client._json
|
|
2247
2257
|
});
|
|
2248
2258
|
}, "de_DescribeTaskResponse");
|
|
@@ -3475,6 +3485,7 @@ var paginateListTasks = (0, import_core.createPaginator)(DataSyncClient, ListTas
|
|
|
3475
3485
|
Uid,
|
|
3476
3486
|
VerifyMode,
|
|
3477
3487
|
ScheduleStatus,
|
|
3488
|
+
TaskMode,
|
|
3478
3489
|
ObjectVersionIds,
|
|
3479
3490
|
ReportOutputType,
|
|
3480
3491
|
ReportLevel,
|
|
@@ -168,6 +168,10 @@ export const ScheduleStatus = {
|
|
|
168
168
|
DISABLED: "DISABLED",
|
|
169
169
|
ENABLED: "ENABLED",
|
|
170
170
|
};
|
|
171
|
+
export const TaskMode = {
|
|
172
|
+
BASIC: "BASIC",
|
|
173
|
+
ENHANCED: "ENHANCED",
|
|
174
|
+
};
|
|
171
175
|
export const ObjectVersionIds = {
|
|
172
176
|
INCLUDE: "INCLUDE",
|
|
173
177
|
NONE: "NONE",
|
|
@@ -1542,6 +1542,9 @@ const de_DescribeTaskExecutionResponse = (output, context) => {
|
|
|
1542
1542
|
EstimatedFilesToTransfer: __expectLong,
|
|
1543
1543
|
Excludes: _json,
|
|
1544
1544
|
FilesDeleted: __expectLong,
|
|
1545
|
+
FilesFailed: _json,
|
|
1546
|
+
FilesListed: _json,
|
|
1547
|
+
FilesPrepared: __expectLong,
|
|
1545
1548
|
FilesSkipped: __expectLong,
|
|
1546
1549
|
FilesTransferred: __expectLong,
|
|
1547
1550
|
FilesVerified: __expectLong,
|
|
@@ -1553,6 +1556,7 @@ const de_DescribeTaskExecutionResponse = (output, context) => {
|
|
|
1553
1556
|
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1554
1557
|
Status: __expectString,
|
|
1555
1558
|
TaskExecutionArn: __expectString,
|
|
1559
|
+
TaskMode: __expectString,
|
|
1556
1560
|
TaskReportConfig: _json,
|
|
1557
1561
|
});
|
|
1558
1562
|
};
|
|
@@ -1576,6 +1580,7 @@ const de_DescribeTaskResponse = (output, context) => {
|
|
|
1576
1580
|
SourceNetworkInterfaceArns: _json,
|
|
1577
1581
|
Status: __expectString,
|
|
1578
1582
|
TaskArn: __expectString,
|
|
1583
|
+
TaskMode: __expectString,
|
|
1579
1584
|
TaskReportConfig: _json,
|
|
1580
1585
|
});
|
|
1581
1586
|
};
|
|
@@ -27,25 +27,10 @@ declare const CreateAgentCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Activates an DataSync agent that you
|
|
31
|
-
*
|
|
32
|
-
* <p>If you haven't deployed an agent yet, see
|
|
33
|
-
*
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>
|
|
36
|
-
* <a href="https://docs.aws.amazon.com/datasync/latest/userguide/agent-requirements.html">Agent requirements</a>
|
|
37
|
-
* </p>
|
|
38
|
-
* </li>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>
|
|
41
|
-
* <a href="https://docs.aws.amazon.com/datasync/latest/userguide/configure-agent.html">Create an agent</a>
|
|
42
|
-
* </p>
|
|
43
|
-
* </li>
|
|
44
|
-
* </ul>
|
|
45
|
-
* <note>
|
|
46
|
-
* <p>If you're transferring between Amazon Web Services storage services, you don't need a
|
|
47
|
-
* DataSync agent. </p>
|
|
48
|
-
* </note>
|
|
30
|
+
* <p>Activates an DataSync agent that you deploy in your storage environment.
|
|
31
|
+
* The activation process associates the agent with your Amazon Web Services account.</p>
|
|
32
|
+
* <p>If you haven't deployed an agent yet, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html">Do I need a DataSync agent?</a>
|
|
33
|
+
* </p>
|
|
49
34
|
* @example
|
|
50
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
51
36
|
* ```javascript
|
|
@@ -28,8 +28,13 @@ declare const DescribeTaskExecutionCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Provides information about an execution of your DataSync task. You can
|
|
31
|
-
* use this operation to help monitor the progress of an ongoing transfer or check the
|
|
32
|
-
* the transfer.</p>
|
|
31
|
+
* use this operation to help monitor the progress of an ongoing data transfer or check the
|
|
32
|
+
* results of the transfer.</p>
|
|
33
|
+
* <note>
|
|
34
|
+
* <p>Some <code>DescribeTaskExecution</code> response elements are only relevant to a
|
|
35
|
+
* specific task mode. For information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html#task-mode-differences">Understanding task mode differences</a> and <a href="https://docs.aws.amazon.com/datasync/latest/userguide/transfer-performance-metrics.html">Understanding data
|
|
36
|
+
* transfer performance metrics</a>.</p>
|
|
37
|
+
* </note>
|
|
33
38
|
* @example
|
|
34
39
|
* Use a bare-bones client and the command you need to make an API call.
|
|
35
40
|
* ```javascript
|
|
@@ -138,6 +143,18 @@ declare const DescribeTaskExecutionCommand_base: {
|
|
|
138
143
|
* // ErrorDetail: "STRING_VALUE",
|
|
139
144
|
* // },
|
|
140
145
|
* // EstimatedFilesToDelete: Number("long"),
|
|
146
|
+
* // TaskMode: "BASIC" || "ENHANCED",
|
|
147
|
+
* // FilesPrepared: Number("long"),
|
|
148
|
+
* // FilesListed: { // TaskExecutionFilesListedDetail
|
|
149
|
+
* // AtSource: Number("long"),
|
|
150
|
+
* // AtDestinationForDelete: Number("long"),
|
|
151
|
+
* // },
|
|
152
|
+
* // FilesFailed: { // TaskExecutionFilesFailedDetail
|
|
153
|
+
* // Prepare: Number("long"),
|
|
154
|
+
* // Transfer: Number("long"),
|
|
155
|
+
* // Verify: Number("long"),
|
|
156
|
+
* // Delete: Number("long"),
|
|
157
|
+
* // },
|
|
141
158
|
* // };
|
|
142
159
|
*
|
|
143
160
|
* ```
|
|
@@ -46,6 +46,7 @@ declare const ListTaskExecutionsCommand_base: {
|
|
|
46
46
|
* // { // TaskExecutionListEntry
|
|
47
47
|
* // TaskExecutionArn: "STRING_VALUE",
|
|
48
48
|
* // Status: "QUEUED" || "CANCELLING" || "LAUNCHING" || "PREPARING" || "TRANSFERRING" || "VERIFYING" || "SUCCESS" || "ERROR",
|
|
49
|
+
* // TaskMode: "BASIC" || "ENHANCED",
|
|
49
50
|
* // },
|
|
50
51
|
* // ],
|
|
51
52
|
* // NextToken: "STRING_VALUE",
|
|
@@ -55,6 +55,7 @@ declare const ListTasksCommand_base: {
|
|
|
55
55
|
* // TaskArn: "STRING_VALUE",
|
|
56
56
|
* // Status: "AVAILABLE" || "CREATING" || "QUEUED" || "RUNNING" || "UNAVAILABLE",
|
|
57
57
|
* // Name: "STRING_VALUE",
|
|
58
|
+
* // TaskMode: "BASIC" || "ENHANCED",
|
|
58
59
|
* // },
|
|
59
60
|
* // ],
|
|
60
61
|
* // NextToken: "STRING_VALUE",
|
|
@@ -29,7 +29,7 @@ declare const StartTaskExecutionCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>Starts an DataSync transfer task. For each task, you can only run one task
|
|
31
31
|
* execution at a time.</p>
|
|
32
|
-
* <p>There are several
|
|
32
|
+
* <p>There are several steps to a task execution. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/working-with-task-executions.html#understand-task-execution-statuses">Task execution statuses</a>.</p>
|
|
33
33
|
* <important>
|
|
34
34
|
* <p>If you're planning to transfer data to or from an Amazon S3 location, review
|
|
35
35
|
* <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#create-s3-location-s3-requests">how
|