@aws-sdk/client-m2 3.476.0 → 3.478.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/pagination/ListApplicationVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListApplicationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListBatchJobDefinitionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListBatchJobExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataSetImportHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataSetsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDeploymentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEngineVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEnvironmentsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +217 -469
- package/dist-es/pagination/ListApplicationVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListApplicationsPaginator.js +2 -23
- package/dist-es/pagination/ListBatchJobDefinitionsPaginator.js +2 -23
- package/dist-es/pagination/ListBatchJobExecutionsPaginator.js +2 -23
- package/dist-es/pagination/ListDataSetImportHistoryPaginator.js +2 -23
- package/dist-es/pagination/ListDataSetsPaginator.js +2 -23
- package/dist-es/pagination/ListDeploymentsPaginator.js +2 -23
- package/dist-es/pagination/ListEngineVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListEnvironmentsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +218 -470
- package/dist-types/pagination/ListApplicationVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBatchJobDefinitionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBatchJobExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataSetImportHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataSetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDeploymentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEngineVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListApplicationVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBatchJobDefinitionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBatchJobExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataSetImportHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataSetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEngineVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListApplicationVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListApplicationVersionsCommand_1 = require("../commands/ListApplicationVersionsCommand");
|
|
5
6
|
const M2Client_1 = require("../M2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListApplicationVersionsCommand_1.ListApplicationVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListApplicationVersions(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 M2Client_1.M2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected M2 | M2Client");
|
|
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.paginateListApplicationVersions = paginateListApplicationVersions;
|
|
7
|
+
exports.paginateListApplicationVersions = (0, core_1.createPaginator)(M2Client_1.M2Client, ListApplicationVersionsCommand_1.ListApplicationVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListApplications = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListApplicationsCommand_1 = require("../commands/ListApplicationsCommand");
|
|
5
6
|
const M2Client_1 = require("../M2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListApplicationsCommand_1.ListApplicationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListApplications(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 M2Client_1.M2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected M2 | M2Client");
|
|
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.paginateListApplications = paginateListApplications;
|
|
7
|
+
exports.paginateListApplications = (0, core_1.createPaginator)(M2Client_1.M2Client, ListApplicationsCommand_1.ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListBatchJobDefinitions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListBatchJobDefinitionsCommand_1 = require("../commands/ListBatchJobDefinitionsCommand");
|
|
5
6
|
const M2Client_1 = require("../M2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListBatchJobDefinitionsCommand_1.ListBatchJobDefinitionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListBatchJobDefinitions(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 M2Client_1.M2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected M2 | M2Client");
|
|
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.paginateListBatchJobDefinitions = paginateListBatchJobDefinitions;
|
|
7
|
+
exports.paginateListBatchJobDefinitions = (0, core_1.createPaginator)(M2Client_1.M2Client, ListBatchJobDefinitionsCommand_1.ListBatchJobDefinitionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListBatchJobExecutions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListBatchJobExecutionsCommand_1 = require("../commands/ListBatchJobExecutionsCommand");
|
|
5
6
|
const M2Client_1 = require("../M2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListBatchJobExecutionsCommand_1.ListBatchJobExecutionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListBatchJobExecutions(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 M2Client_1.M2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected M2 | M2Client");
|
|
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.paginateListBatchJobExecutions = paginateListBatchJobExecutions;
|
|
7
|
+
exports.paginateListBatchJobExecutions = (0, core_1.createPaginator)(M2Client_1.M2Client, ListBatchJobExecutionsCommand_1.ListBatchJobExecutionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDataSetImportHistory = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDataSetImportHistoryCommand_1 = require("../commands/ListDataSetImportHistoryCommand");
|
|
5
6
|
const M2Client_1 = require("../M2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDataSetImportHistoryCommand_1.ListDataSetImportHistoryCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDataSetImportHistory(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 M2Client_1.M2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected M2 | M2Client");
|
|
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.paginateListDataSetImportHistory = paginateListDataSetImportHistory;
|
|
7
|
+
exports.paginateListDataSetImportHistory = (0, core_1.createPaginator)(M2Client_1.M2Client, ListDataSetImportHistoryCommand_1.ListDataSetImportHistoryCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDataSets = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDataSetsCommand_1 = require("../commands/ListDataSetsCommand");
|
|
5
6
|
const M2Client_1 = require("../M2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDataSetsCommand_1.ListDataSetsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDataSets(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 M2Client_1.M2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected M2 | M2Client");
|
|
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.paginateListDataSets = paginateListDataSets;
|
|
7
|
+
exports.paginateListDataSets = (0, core_1.createPaginator)(M2Client_1.M2Client, ListDataSetsCommand_1.ListDataSetsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDeployments = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDeploymentsCommand_1 = require("../commands/ListDeploymentsCommand");
|
|
5
6
|
const M2Client_1 = require("../M2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDeploymentsCommand_1.ListDeploymentsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDeployments(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 M2Client_1.M2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected M2 | M2Client");
|
|
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.paginateListDeployments = paginateListDeployments;
|
|
7
|
+
exports.paginateListDeployments = (0, core_1.createPaginator)(M2Client_1.M2Client, ListDeploymentsCommand_1.ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListEngineVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListEngineVersionsCommand_1 = require("../commands/ListEngineVersionsCommand");
|
|
5
6
|
const M2Client_1 = require("../M2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListEngineVersionsCommand_1.ListEngineVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListEngineVersions(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 M2Client_1.M2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected M2 | M2Client");
|
|
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.paginateListEngineVersions = paginateListEngineVersions;
|
|
7
|
+
exports.paginateListEngineVersions = (0, core_1.createPaginator)(M2Client_1.M2Client, ListEngineVersionsCommand_1.ListEngineVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListEnvironments = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListEnvironmentsCommand_1 = require("../commands/ListEnvironmentsCommand");
|
|
5
6
|
const M2Client_1 = require("../M2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListEnvironmentsCommand_1.ListEnvironmentsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListEnvironments(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 M2Client_1.M2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected M2 | M2Client");
|
|
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.paginateListEnvironments = paginateListEnvironments;
|
|
7
|
+
exports.paginateListEnvironments = (0, core_1.createPaginator)(M2Client_1.M2Client, ListEnvironmentsCommand_1.ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
|