@aws-sdk/client-datasync 3.319.0 → 3.320.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 +113 -8
- package/dist-cjs/DataSync.js +26 -0
- package/dist-cjs/commands/AddStorageSystemCommand.js +46 -0
- package/dist-cjs/commands/DescribeDiscoveryJobCommand.js +45 -0
- package/dist-cjs/commands/DescribeStorageSystemCommand.js +45 -0
- package/dist-cjs/commands/DescribeStorageSystemResourceMetricsCommand.js +45 -0
- package/dist-cjs/commands/DescribeStorageSystemResourcesCommand.js +45 -0
- package/dist-cjs/commands/GenerateRecommendationsCommand.js +45 -0
- package/dist-cjs/commands/ListDiscoveryJobsCommand.js +45 -0
- package/dist-cjs/commands/ListStorageSystemsCommand.js +45 -0
- package/dist-cjs/commands/RemoveStorageSystemCommand.js +45 -0
- package/dist-cjs/commands/StartDiscoveryJobCommand.js +45 -0
- package/dist-cjs/commands/StopDiscoveryJobCommand.js +45 -0
- package/dist-cjs/commands/UpdateDiscoveryJobCommand.js +45 -0
- package/dist-cjs/commands/UpdateStorageSystemCommand.js +46 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/models/models_0.js +56 -8
- package/dist-cjs/pagination/DescribeStorageSystemResourceMetricsPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeStorageSystemResourcesPaginator.js +29 -0
- package/dist-cjs/pagination/ListDiscoveryJobsPaginator.js +29 -0
- package/dist-cjs/pagination/ListStorageSystemsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_json1_1.js +948 -87
- package/dist-es/DataSync.js +26 -0
- package/dist-es/commands/AddStorageSystemCommand.js +42 -0
- package/dist-es/commands/DescribeDiscoveryJobCommand.js +41 -0
- package/dist-es/commands/DescribeStorageSystemCommand.js +41 -0
- package/dist-es/commands/DescribeStorageSystemResourceMetricsCommand.js +41 -0
- package/dist-es/commands/DescribeStorageSystemResourcesCommand.js +41 -0
- package/dist-es/commands/GenerateRecommendationsCommand.js +41 -0
- package/dist-es/commands/ListDiscoveryJobsCommand.js +41 -0
- package/dist-es/commands/ListStorageSystemsCommand.js +41 -0
- package/dist-es/commands/RemoveStorageSystemCommand.js +41 -0
- package/dist-es/commands/StartDiscoveryJobCommand.js +41 -0
- package/dist-es/commands/StopDiscoveryJobCommand.js +41 -0
- package/dist-es/commands/UpdateDiscoveryJobCommand.js +41 -0
- package/dist-es/commands/UpdateStorageSystemCommand.js +42 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/models/models_0.js +51 -7
- package/dist-es/pagination/DescribeStorageSystemResourceMetricsPaginator.js +25 -0
- package/dist-es/pagination/DescribeStorageSystemResourcesPaginator.js +25 -0
- package/dist-es/pagination/ListDiscoveryJobsPaginator.js +25 -0
- package/dist-es/pagination/ListStorageSystemsPaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +908 -74
- package/dist-types/DataSync.d.ts +94 -2
- package/dist-types/DataSyncClient.d.ts +18 -4
- package/dist-types/commands/AddStorageSystemCommand.d.ts +91 -0
- package/dist-types/commands/CancelTaskExecutionCommand.d.ts +4 -3
- package/dist-types/commands/CreateAgentCommand.d.ts +4 -3
- package/dist-types/commands/CreateLocationEfsCommand.d.ts +2 -1
- package/dist-types/commands/CreateLocationFsxLustreCommand.d.ts +2 -1
- package/dist-types/commands/CreateLocationFsxOntapCommand.d.ts +3 -3
- package/dist-types/commands/CreateLocationFsxOpenZfsCommand.d.ts +4 -4
- package/dist-types/commands/CreateLocationFsxWindowsCommand.d.ts +2 -1
- package/dist-types/commands/CreateLocationHdfsCommand.d.ts +2 -1
- package/dist-types/commands/CreateLocationNfsCommand.d.ts +2 -1
- package/dist-types/commands/CreateLocationObjectStorageCommand.d.ts +5 -2
- package/dist-types/commands/CreateLocationS3Command.d.ts +20 -3
- package/dist-types/commands/CreateLocationSmbCommand.d.ts +2 -1
- package/dist-types/commands/CreateTaskCommand.d.ts +8 -1
- package/dist-types/commands/DeleteAgentCommand.d.ts +4 -4
- package/dist-types/commands/DeleteLocationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteTaskCommand.d.ts +2 -1
- package/dist-types/commands/DescribeAgentCommand.d.ts +4 -2
- package/dist-types/commands/DescribeDiscoveryJobCommand.d.ts +70 -0
- package/dist-types/commands/DescribeLocationEfsCommand.d.ts +4 -2
- package/dist-types/commands/DescribeLocationFsxLustreCommand.d.ts +2 -1
- package/dist-types/commands/DescribeLocationFsxOntapCommand.d.ts +2 -1
- package/dist-types/commands/DescribeLocationFsxOpenZfsCommand.d.ts +3 -2
- package/dist-types/commands/DescribeLocationFsxWindowsCommand.d.ts +4 -3
- package/dist-types/commands/DescribeLocationHdfsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeLocationNfsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeLocationObjectStorageCommand.d.ts +4 -2
- package/dist-types/commands/DescribeLocationS3Command.d.ts +2 -1
- package/dist-types/commands/DescribeLocationSmbCommand.d.ts +2 -1
- package/dist-types/commands/DescribeStorageSystemCommand.d.ts +71 -0
- package/dist-types/commands/DescribeStorageSystemResourceMetricsCommand.d.ts +77 -0
- package/dist-types/commands/DescribeStorageSystemResourcesCommand.d.ts +82 -0
- package/dist-types/commands/DescribeTaskCommand.d.ts +2 -1
- package/dist-types/commands/DescribeTaskExecutionCommand.d.ts +2 -1
- package/dist-types/commands/GenerateRecommendationsCommand.d.ts +82 -0
- package/dist-types/commands/ListAgentsCommand.d.ts +2 -1
- package/dist-types/commands/ListDiscoveryJobsCommand.d.ts +73 -0
- package/dist-types/commands/ListLocationsCommand.d.ts +2 -1
- package/dist-types/commands/ListStorageSystemsCommand.d.ts +71 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/commands/ListTaskExecutionsCommand.d.ts +2 -1
- package/dist-types/commands/ListTasksCommand.d.ts +2 -1
- package/dist-types/commands/RemoveStorageSystemCommand.d.ts +71 -0
- package/dist-types/commands/StartDiscoveryJobCommand.d.ts +80 -0
- package/dist-types/commands/StartTaskExecutionCommand.d.ts +10 -2
- package/dist-types/commands/StopDiscoveryJobCommand.d.ts +73 -0
- package/dist-types/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateAgentCommand.d.ts +2 -1
- package/dist-types/commands/UpdateDiscoveryJobCommand.d.ts +71 -0
- package/dist-types/commands/UpdateLocationHdfsCommand.d.ts +2 -1
- package/dist-types/commands/UpdateLocationNfsCommand.d.ts +5 -3
- package/dist-types/commands/UpdateLocationObjectStorageCommand.d.ts +2 -1
- package/dist-types/commands/UpdateLocationSmbCommand.d.ts +4 -3
- package/dist-types/commands/UpdateStorageSystemCommand.d.ts +84 -0
- package/dist-types/commands/UpdateTaskCommand.d.ts +2 -1
- package/dist-types/commands/UpdateTaskExecutionCommand.d.ts +7 -7
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +1429 -296
- package/dist-types/pagination/DescribeStorageSystemResourceMetricsPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeStorageSystemResourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDiscoveryJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListStorageSystemsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +117 -0
- package/dist-types/ts3.4/DataSync.d.ts +227 -0
- package/dist-types/ts3.4/DataSyncClient.d.ts +78 -0
- package/dist-types/ts3.4/commands/AddStorageSystemCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeDiscoveryJobCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeStorageSystemCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeStorageSystemResourceMetricsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeStorageSystemResourcesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GenerateRecommendationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListDiscoveryJobsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListStorageSystemsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/RemoveStorageSystemCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartDiscoveryJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StopDiscoveryJobCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateDiscoveryJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateStorageSystemCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/models/models_0.d.ts +302 -18
- package/dist-types/ts3.4/pagination/DescribeStorageSystemResourceMetricsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeStorageSystemResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDiscoveryJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListStorageSystemsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +156 -0
- package/package.json +4 -2
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListDiscoveryJobsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListDiscoveryJobsCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListDiscoveryJobsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "DataSyncClient";
|
|
27
|
+
const commandName = "ListDiscoveryJobsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_ListDiscoveryJobsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_ListDiscoveryJobsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ListDiscoveryJobsCommand = ListDiscoveryJobsCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListStorageSystemsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListStorageSystemsCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListStorageSystemsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "DataSyncClient";
|
|
27
|
+
const commandName = "ListStorageSystemsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_ListStorageSystemsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_ListStorageSystemsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ListStorageSystemsCommand = ListStorageSystemsCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemoveStorageSystemCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class RemoveStorageSystemCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveStorageSystemCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "DataSyncClient";
|
|
27
|
+
const commandName = "RemoveStorageSystemCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_RemoveStorageSystemCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_RemoveStorageSystemCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.RemoveStorageSystemCommand = RemoveStorageSystemCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartDiscoveryJobCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class StartDiscoveryJobCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartDiscoveryJobCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "DataSyncClient";
|
|
27
|
+
const commandName = "StartDiscoveryJobCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_StartDiscoveryJobCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_StartDiscoveryJobCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.StartDiscoveryJobCommand = StartDiscoveryJobCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StopDiscoveryJobCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class StopDiscoveryJobCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StopDiscoveryJobCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "DataSyncClient";
|
|
27
|
+
const commandName = "StopDiscoveryJobCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_StopDiscoveryJobCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_StopDiscoveryJobCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.StopDiscoveryJobCommand = StopDiscoveryJobCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateDiscoveryJobCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class UpdateDiscoveryJobCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateDiscoveryJobCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "DataSyncClient";
|
|
27
|
+
const commandName = "UpdateDiscoveryJobCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_UpdateDiscoveryJobCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_UpdateDiscoveryJobCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.UpdateDiscoveryJobCommand = UpdateDiscoveryJobCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateStorageSystemCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class UpdateStorageSystemCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateStorageSystemCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "DataSyncClient";
|
|
28
|
+
const commandName = "UpdateStorageSystemCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.UpdateStorageSystemRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_UpdateStorageSystemCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_UpdateStorageSystemCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UpdateStorageSystemCommand = UpdateStorageSystemCommand;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./AddStorageSystemCommand"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./CancelTaskExecutionCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CreateAgentCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./CreateLocationEfsCommand"), exports);
|
|
@@ -18,6 +19,7 @@ tslib_1.__exportStar(require("./DeleteAgentCommand"), exports);
|
|
|
18
19
|
tslib_1.__exportStar(require("./DeleteLocationCommand"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./DeleteTaskCommand"), exports);
|
|
20
21
|
tslib_1.__exportStar(require("./DescribeAgentCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./DescribeDiscoveryJobCommand"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./DescribeLocationEfsCommand"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./DescribeLocationFsxLustreCommand"), exports);
|
|
23
25
|
tslib_1.__exportStar(require("./DescribeLocationFsxOntapCommand"), exports);
|
|
@@ -28,20 +30,31 @@ tslib_1.__exportStar(require("./DescribeLocationNfsCommand"), exports);
|
|
|
28
30
|
tslib_1.__exportStar(require("./DescribeLocationObjectStorageCommand"), exports);
|
|
29
31
|
tslib_1.__exportStar(require("./DescribeLocationS3Command"), exports);
|
|
30
32
|
tslib_1.__exportStar(require("./DescribeLocationSmbCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./DescribeStorageSystemCommand"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./DescribeStorageSystemResourceMetricsCommand"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./DescribeStorageSystemResourcesCommand"), exports);
|
|
31
36
|
tslib_1.__exportStar(require("./DescribeTaskCommand"), exports);
|
|
32
37
|
tslib_1.__exportStar(require("./DescribeTaskExecutionCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./GenerateRecommendationsCommand"), exports);
|
|
33
39
|
tslib_1.__exportStar(require("./ListAgentsCommand"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./ListDiscoveryJobsCommand"), exports);
|
|
34
41
|
tslib_1.__exportStar(require("./ListLocationsCommand"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./ListStorageSystemsCommand"), exports);
|
|
35
43
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
36
44
|
tslib_1.__exportStar(require("./ListTaskExecutionsCommand"), exports);
|
|
37
45
|
tslib_1.__exportStar(require("./ListTasksCommand"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./RemoveStorageSystemCommand"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./StartDiscoveryJobCommand"), exports);
|
|
38
48
|
tslib_1.__exportStar(require("./StartTaskExecutionCommand"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./StopDiscoveryJobCommand"), exports);
|
|
39
50
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
40
51
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
41
52
|
tslib_1.__exportStar(require("./UpdateAgentCommand"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./UpdateDiscoveryJobCommand"), exports);
|
|
42
54
|
tslib_1.__exportStar(require("./UpdateLocationHdfsCommand"), exports);
|
|
43
55
|
tslib_1.__exportStar(require("./UpdateLocationNfsCommand"), exports);
|
|
44
56
|
tslib_1.__exportStar(require("./UpdateLocationObjectStorageCommand"), exports);
|
|
45
57
|
tslib_1.__exportStar(require("./UpdateLocationSmbCommand"), exports);
|
|
58
|
+
tslib_1.__exportStar(require("./UpdateStorageSystemCommand"), exports);
|
|
46
59
|
tslib_1.__exportStar(require("./UpdateTaskCommand"), exports);
|
|
47
60
|
tslib_1.__exportStar(require("./UpdateTaskExecutionCommand"), exports);
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DescribeLocationFsxOpenZfsResponseFilterSensitiveLog = exports.DescribeLocationFsxOntapResponseFilterSensitiveLog = exports.CreateLocationSmbRequestFilterSensitiveLog = exports.CreateLocationObjectStorageRequestFilterSensitiveLog = exports.CreateLocationFsxWindowsRequestFilterSensitiveLog = exports.CreateLocationFsxOpenZfsRequestFilterSensitiveLog = exports.CreateLocationFsxOntapRequestFilterSensitiveLog = exports.FsxProtocolFilterSensitiveLog = exports.FsxProtocolSmbFilterSensitiveLog = exports.AddStorageSystemRequestFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.TaskFilterName = exports.Operator = exports.LocationFilterName = exports.TaskExecutionStatus = exports.PhaseStatus = exports.TaskStatus = exports.RecommendationStatus = exports.DiscoveryResourceFilter = exports.DiscoveryResourceType = exports.StorageSystemConnectivityStatus = exports.DiscoveryJobStatus = exports.EndpointType = exports.VerifyMode = exports.Uid = exports.TransferMode = exports.TaskQueueing = exports.SmbSecurityDescriptorCopyFlags = exports.PreserveDevices = exports.PreserveDeletedFiles = exports.PosixPermissions = exports.OverwriteMode = exports.ObjectTags = exports.Mtime = exports.LogLevel = exports.Gid = exports.FilterType = exports.S3StorageClass = exports.ObjectStorageServerProtocol = exports.HdfsRpcProtection = exports.HdfsDataTransferProtection = exports.HdfsAuthenticationType = exports.SmbVersion = exports.NfsVersion = exports.EfsInTransitEncryption = exports.Atime = exports.AgentStatus = exports.InvalidRequestException = exports.InternalException = exports.DiscoverySystemType = void 0;
|
|
4
|
+
exports.UpdateStorageSystemRequestFilterSensitiveLog = exports.UpdateLocationSmbRequestFilterSensitiveLog = exports.UpdateLocationObjectStorageRequestFilterSensitiveLog = void 0;
|
|
4
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
6
|
const DataSyncServiceException_1 = require("./DataSyncServiceException");
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
ONLINE: "ONLINE",
|
|
9
|
-
};
|
|
10
|
-
exports.Atime = {
|
|
11
|
-
BEST_EFFORT: "BEST_EFFORT",
|
|
12
|
-
NONE: "NONE",
|
|
7
|
+
exports.DiscoverySystemType = {
|
|
8
|
+
NetAppONTAP: "NetAppONTAP",
|
|
13
9
|
};
|
|
14
10
|
class InternalException extends DataSyncServiceException_1.DataSyncServiceException {
|
|
15
11
|
constructor(opts) {
|
|
@@ -40,6 +36,14 @@ class InvalidRequestException extends DataSyncServiceException_1.DataSyncService
|
|
|
40
36
|
}
|
|
41
37
|
}
|
|
42
38
|
exports.InvalidRequestException = InvalidRequestException;
|
|
39
|
+
exports.AgentStatus = {
|
|
40
|
+
OFFLINE: "OFFLINE",
|
|
41
|
+
ONLINE: "ONLINE",
|
|
42
|
+
};
|
|
43
|
+
exports.Atime = {
|
|
44
|
+
BEST_EFFORT: "BEST_EFFORT",
|
|
45
|
+
NONE: "NONE",
|
|
46
|
+
};
|
|
43
47
|
exports.EfsInTransitEncryption = {
|
|
44
48
|
NONE: "NONE",
|
|
45
49
|
TLS1_2: "TLS1_2",
|
|
@@ -154,6 +158,34 @@ exports.EndpointType = {
|
|
|
154
158
|
PRIVATE_LINK: "PRIVATE_LINK",
|
|
155
159
|
PUBLIC: "PUBLIC",
|
|
156
160
|
};
|
|
161
|
+
exports.DiscoveryJobStatus = {
|
|
162
|
+
COMPLETED: "COMPLETED",
|
|
163
|
+
COMPLETED_WITH_ISSUES: "COMPLETED_WITH_ISSUES",
|
|
164
|
+
FAILED: "FAILED",
|
|
165
|
+
RUNNING: "RUNNING",
|
|
166
|
+
STOPPED: "STOPPED",
|
|
167
|
+
TERMINATED: "TERMINATED",
|
|
168
|
+
WARNING: "WARNING",
|
|
169
|
+
};
|
|
170
|
+
exports.StorageSystemConnectivityStatus = {
|
|
171
|
+
FAIL: "FAIL",
|
|
172
|
+
PASS: "PASS",
|
|
173
|
+
UNKNOWN: "UNKNOWN",
|
|
174
|
+
};
|
|
175
|
+
exports.DiscoveryResourceType = {
|
|
176
|
+
CLUSTER: "CLUSTER",
|
|
177
|
+
SVM: "SVM",
|
|
178
|
+
VOLUME: "VOLUME",
|
|
179
|
+
};
|
|
180
|
+
exports.DiscoveryResourceFilter = {
|
|
181
|
+
SVM: "SVM",
|
|
182
|
+
};
|
|
183
|
+
exports.RecommendationStatus = {
|
|
184
|
+
COMPLETED: "COMPLETED",
|
|
185
|
+
FAILED: "FAILED",
|
|
186
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
187
|
+
NONE: "NONE",
|
|
188
|
+
};
|
|
157
189
|
exports.TaskStatus = {
|
|
158
190
|
AVAILABLE: "AVAILABLE",
|
|
159
191
|
CREATING: "CREATING",
|
|
@@ -196,6 +228,17 @@ exports.TaskFilterName = {
|
|
|
196
228
|
CreationTime: "CreationTime",
|
|
197
229
|
LocationId: "LocationId",
|
|
198
230
|
};
|
|
231
|
+
const CredentialsFilterSensitiveLog = (obj) => ({
|
|
232
|
+
...obj,
|
|
233
|
+
...(obj.Username && { Username: smithy_client_1.SENSITIVE_STRING }),
|
|
234
|
+
...(obj.Password && { Password: smithy_client_1.SENSITIVE_STRING }),
|
|
235
|
+
});
|
|
236
|
+
exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog;
|
|
237
|
+
const AddStorageSystemRequestFilterSensitiveLog = (obj) => ({
|
|
238
|
+
...obj,
|
|
239
|
+
...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }),
|
|
240
|
+
});
|
|
241
|
+
exports.AddStorageSystemRequestFilterSensitiveLog = AddStorageSystemRequestFilterSensitiveLog;
|
|
199
242
|
const FsxProtocolSmbFilterSensitiveLog = (obj) => ({
|
|
200
243
|
...obj,
|
|
201
244
|
...(obj.Password && { Password: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -251,3 +294,8 @@ const UpdateLocationSmbRequestFilterSensitiveLog = (obj) => ({
|
|
|
251
294
|
...(obj.Password && { Password: smithy_client_1.SENSITIVE_STRING }),
|
|
252
295
|
});
|
|
253
296
|
exports.UpdateLocationSmbRequestFilterSensitiveLog = UpdateLocationSmbRequestFilterSensitiveLog;
|
|
297
|
+
const UpdateStorageSystemRequestFilterSensitiveLog = (obj) => ({
|
|
298
|
+
...obj,
|
|
299
|
+
...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }),
|
|
300
|
+
});
|
|
301
|
+
exports.UpdateStorageSystemRequestFilterSensitiveLog = UpdateStorageSystemRequestFilterSensitiveLog;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateDescribeStorageSystemResourceMetrics = void 0;
|
|
4
|
+
const DescribeStorageSystemResourceMetricsCommand_1 = require("../commands/DescribeStorageSystemResourceMetricsCommand");
|
|
5
|
+
const DataSyncClient_1 = require("../DataSyncClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new DescribeStorageSystemResourceMetricsCommand_1.DescribeStorageSystemResourceMetricsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateDescribeStorageSystemResourceMetrics(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof DataSyncClient_1.DataSyncClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected DataSync | DataSyncClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateDescribeStorageSystemResourceMetrics = paginateDescribeStorageSystemResourceMetrics;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateDescribeStorageSystemResources = void 0;
|
|
4
|
+
const DescribeStorageSystemResourcesCommand_1 = require("../commands/DescribeStorageSystemResourcesCommand");
|
|
5
|
+
const DataSyncClient_1 = require("../DataSyncClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new DescribeStorageSystemResourcesCommand_1.DescribeStorageSystemResourcesCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateDescribeStorageSystemResources(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof DataSyncClient_1.DataSyncClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected DataSync | DataSyncClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateDescribeStorageSystemResources = paginateDescribeStorageSystemResources;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListDiscoveryJobs = void 0;
|
|
4
|
+
const ListDiscoveryJobsCommand_1 = require("../commands/ListDiscoveryJobsCommand");
|
|
5
|
+
const DataSyncClient_1 = require("../DataSyncClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListDiscoveryJobsCommand_1.ListDiscoveryJobsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListDiscoveryJobs(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof DataSyncClient_1.DataSyncClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected DataSync | DataSyncClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListDiscoveryJobs = paginateListDiscoveryJobs;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListStorageSystems = void 0;
|
|
4
|
+
const ListStorageSystemsCommand_1 = require("../commands/ListStorageSystemsCommand");
|
|
5
|
+
const DataSyncClient_1 = require("../DataSyncClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListStorageSystemsCommand_1.ListStorageSystemsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListStorageSystems(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof DataSyncClient_1.DataSyncClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected DataSync | DataSyncClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListStorageSystems = paginateListStorageSystems;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DescribeStorageSystemResourceMetricsPaginator"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DescribeStorageSystemResourcesPaginator"), exports);
|
|
4
6
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
7
|
tslib_1.__exportStar(require("./ListAgentsPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListDiscoveryJobsPaginator"), exports);
|
|
6
9
|
tslib_1.__exportStar(require("./ListLocationsPaginator"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ListStorageSystemsPaginator"), exports);
|
|
7
11
|
tslib_1.__exportStar(require("./ListTagsForResourcePaginator"), exports);
|
|
8
12
|
tslib_1.__exportStar(require("./ListTaskExecutionsPaginator"), exports);
|
|
9
13
|
tslib_1.__exportStar(require("./ListTasksPaginator"), exports);
|