@aws-sdk/client-datasync 3.975.0 → 3.980.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/dist-cjs/index.js +18 -11
- package/dist-es/DataSync.js +13 -1
- package/dist-types/DataSync.d.ts +36 -1
- package/dist-types/ts3.4/DataSync.d.ts +40 -1
- package/package.json +18 -18
package/dist-cjs/index.js
CHANGED
|
@@ -2129,6 +2129,16 @@ class UpdateTaskExecutionCommand extends smithyClient.Command
|
|
|
2129
2129
|
.build() {
|
|
2130
2130
|
}
|
|
2131
2131
|
|
|
2132
|
+
const paginateListAgents = core.createPaginator(DataSyncClient, ListAgentsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2133
|
+
|
|
2134
|
+
const paginateListLocations = core.createPaginator(DataSyncClient, ListLocationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2135
|
+
|
|
2136
|
+
const paginateListTagsForResource = core.createPaginator(DataSyncClient, ListTagsForResourceCommand, "NextToken", "NextToken", "MaxResults");
|
|
2137
|
+
|
|
2138
|
+
const paginateListTaskExecutions = core.createPaginator(DataSyncClient, ListTaskExecutionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2139
|
+
|
|
2140
|
+
const paginateListTasks = core.createPaginator(DataSyncClient, ListTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
2141
|
+
|
|
2132
2142
|
const commands = {
|
|
2133
2143
|
CancelTaskExecutionCommand,
|
|
2134
2144
|
CreateAgentCommand,
|
|
@@ -2184,19 +2194,16 @@ const commands = {
|
|
|
2184
2194
|
UpdateTaskCommand,
|
|
2185
2195
|
UpdateTaskExecutionCommand,
|
|
2186
2196
|
};
|
|
2197
|
+
const paginators = {
|
|
2198
|
+
paginateListAgents,
|
|
2199
|
+
paginateListLocations,
|
|
2200
|
+
paginateListTagsForResource,
|
|
2201
|
+
paginateListTaskExecutions,
|
|
2202
|
+
paginateListTasks,
|
|
2203
|
+
};
|
|
2187
2204
|
class DataSync extends DataSyncClient {
|
|
2188
2205
|
}
|
|
2189
|
-
smithyClient.createAggregatedClient(commands, DataSync);
|
|
2190
|
-
|
|
2191
|
-
const paginateListAgents = core.createPaginator(DataSyncClient, ListAgentsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2192
|
-
|
|
2193
|
-
const paginateListLocations = core.createPaginator(DataSyncClient, ListLocationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2194
|
-
|
|
2195
|
-
const paginateListTagsForResource = core.createPaginator(DataSyncClient, ListTagsForResourceCommand, "NextToken", "NextToken", "MaxResults");
|
|
2196
|
-
|
|
2197
|
-
const paginateListTaskExecutions = core.createPaginator(DataSyncClient, ListTaskExecutionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2198
|
-
|
|
2199
|
-
const paginateListTasks = core.createPaginator(DataSyncClient, ListTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
2206
|
+
smithyClient.createAggregatedClient(commands, DataSync, { paginators });
|
|
2200
2207
|
|
|
2201
2208
|
const AgentStatus = {
|
|
2202
2209
|
OFFLINE: "OFFLINE",
|
package/dist-es/DataSync.js
CHANGED
|
@@ -53,6 +53,11 @@ import { UpdateLocationSmbCommand, } from "./commands/UpdateLocationSmbCommand";
|
|
|
53
53
|
import { UpdateTaskCommand } from "./commands/UpdateTaskCommand";
|
|
54
54
|
import { UpdateTaskExecutionCommand, } from "./commands/UpdateTaskExecutionCommand";
|
|
55
55
|
import { DataSyncClient } from "./DataSyncClient";
|
|
56
|
+
import { paginateListAgents } from "./pagination/ListAgentsPaginator";
|
|
57
|
+
import { paginateListLocations } from "./pagination/ListLocationsPaginator";
|
|
58
|
+
import { paginateListTagsForResource } from "./pagination/ListTagsForResourcePaginator";
|
|
59
|
+
import { paginateListTaskExecutions } from "./pagination/ListTaskExecutionsPaginator";
|
|
60
|
+
import { paginateListTasks } from "./pagination/ListTasksPaginator";
|
|
56
61
|
const commands = {
|
|
57
62
|
CancelTaskExecutionCommand,
|
|
58
63
|
CreateAgentCommand,
|
|
@@ -108,6 +113,13 @@ const commands = {
|
|
|
108
113
|
UpdateTaskCommand,
|
|
109
114
|
UpdateTaskExecutionCommand,
|
|
110
115
|
};
|
|
116
|
+
const paginators = {
|
|
117
|
+
paginateListAgents,
|
|
118
|
+
paginateListLocations,
|
|
119
|
+
paginateListTagsForResource,
|
|
120
|
+
paginateListTaskExecutions,
|
|
121
|
+
paginateListTasks,
|
|
122
|
+
};
|
|
111
123
|
export class DataSync extends DataSyncClient {
|
|
112
124
|
}
|
|
113
|
-
createAggregatedClient(commands, DataSync);
|
|
125
|
+
createAggregatedClient(commands, DataSync, { paginators });
|
package/dist-types/DataSync.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { CancelTaskExecutionCommandInput, CancelTaskExecutionCommandOutput } from "./commands/CancelTaskExecutionCommand";
|
|
3
3
|
import { CreateAgentCommandInput, CreateAgentCommandOutput } from "./commands/CreateAgentCommand";
|
|
4
4
|
import { CreateLocationAzureBlobCommandInput, CreateLocationAzureBlobCommandOutput } from "./commands/CreateLocationAzureBlobCommand";
|
|
@@ -376,6 +376,41 @@ export interface DataSync {
|
|
|
376
376
|
updateTaskExecution(args: UpdateTaskExecutionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTaskExecutionCommandOutput>;
|
|
377
377
|
updateTaskExecution(args: UpdateTaskExecutionCommandInput, cb: (err: any, data?: UpdateTaskExecutionCommandOutput) => void): void;
|
|
378
378
|
updateTaskExecution(args: UpdateTaskExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTaskExecutionCommandOutput) => void): void;
|
|
379
|
+
/**
|
|
380
|
+
* @see {@link ListAgentsCommand}
|
|
381
|
+
* @param args - command input.
|
|
382
|
+
* @param paginationConfig - optional pagination config.
|
|
383
|
+
* @returns AsyncIterable of {@link ListAgentsCommandOutput}.
|
|
384
|
+
*/
|
|
385
|
+
paginateListAgents(args?: ListAgentsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAgentsCommandOutput>;
|
|
386
|
+
/**
|
|
387
|
+
* @see {@link ListLocationsCommand}
|
|
388
|
+
* @param args - command input.
|
|
389
|
+
* @param paginationConfig - optional pagination config.
|
|
390
|
+
* @returns AsyncIterable of {@link ListLocationsCommandOutput}.
|
|
391
|
+
*/
|
|
392
|
+
paginateListLocations(args?: ListLocationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListLocationsCommandOutput>;
|
|
393
|
+
/**
|
|
394
|
+
* @see {@link ListTagsForResourceCommand}
|
|
395
|
+
* @param args - command input.
|
|
396
|
+
* @param paginationConfig - optional pagination config.
|
|
397
|
+
* @returns AsyncIterable of {@link ListTagsForResourceCommandOutput}.
|
|
398
|
+
*/
|
|
399
|
+
paginateListTagsForResource(args: ListTagsForResourceCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTagsForResourceCommandOutput>;
|
|
400
|
+
/**
|
|
401
|
+
* @see {@link ListTaskExecutionsCommand}
|
|
402
|
+
* @param args - command input.
|
|
403
|
+
* @param paginationConfig - optional pagination config.
|
|
404
|
+
* @returns AsyncIterable of {@link ListTaskExecutionsCommandOutput}.
|
|
405
|
+
*/
|
|
406
|
+
paginateListTaskExecutions(args?: ListTaskExecutionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTaskExecutionsCommandOutput>;
|
|
407
|
+
/**
|
|
408
|
+
* @see {@link ListTasksCommand}
|
|
409
|
+
* @param args - command input.
|
|
410
|
+
* @param paginationConfig - optional pagination config.
|
|
411
|
+
* @returns AsyncIterable of {@link ListTasksCommandOutput}.
|
|
412
|
+
*/
|
|
413
|
+
paginateListTasks(args?: ListTasksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTasksCommandOutput>;
|
|
379
414
|
}
|
|
380
415
|
/**
|
|
381
416
|
* <fullname>DataSync</fullname>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
CancelTaskExecutionCommandInput,
|
|
4
8
|
CancelTaskExecutionCommandOutput,
|
|
@@ -906,5 +910,40 @@ export interface DataSync {
|
|
|
906
910
|
options: __HttpHandlerOptions,
|
|
907
911
|
cb: (err: any, data?: UpdateTaskExecutionCommandOutput) => void
|
|
908
912
|
): void;
|
|
913
|
+
paginateListAgents(
|
|
914
|
+
args?: ListAgentsCommandInput,
|
|
915
|
+
paginationConfig?: Pick<
|
|
916
|
+
PaginationConfiguration,
|
|
917
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
918
|
+
>
|
|
919
|
+
): Paginator<ListAgentsCommandOutput>;
|
|
920
|
+
paginateListLocations(
|
|
921
|
+
args?: ListLocationsCommandInput,
|
|
922
|
+
paginationConfig?: Pick<
|
|
923
|
+
PaginationConfiguration,
|
|
924
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
925
|
+
>
|
|
926
|
+
): Paginator<ListLocationsCommandOutput>;
|
|
927
|
+
paginateListTagsForResource(
|
|
928
|
+
args: ListTagsForResourceCommandInput,
|
|
929
|
+
paginationConfig?: Pick<
|
|
930
|
+
PaginationConfiguration,
|
|
931
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
932
|
+
>
|
|
933
|
+
): Paginator<ListTagsForResourceCommandOutput>;
|
|
934
|
+
paginateListTaskExecutions(
|
|
935
|
+
args?: ListTaskExecutionsCommandInput,
|
|
936
|
+
paginationConfig?: Pick<
|
|
937
|
+
PaginationConfiguration,
|
|
938
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
939
|
+
>
|
|
940
|
+
): Paginator<ListTaskExecutionsCommandOutput>;
|
|
941
|
+
paginateListTasks(
|
|
942
|
+
args?: ListTasksCommandInput,
|
|
943
|
+
paginationConfig?: Pick<
|
|
944
|
+
PaginationConfiguration,
|
|
945
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
946
|
+
>
|
|
947
|
+
): Paginator<ListTasksCommandOutput>;
|
|
909
948
|
}
|
|
910
949
|
export declare class DataSync extends DataSyncClient implements DataSync {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-datasync",
|
|
3
3
|
"description": "AWS SDK for JavaScript Datasync Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.980.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-datasync",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.5",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.4",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.5",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.980.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.3",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|