@aws-sdk/client-opensearch 3.477.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/DescribeDomainAutoTunesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeInboundConnectionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeOutboundConnectionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribePackagesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeReservedInstanceOfferingsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeReservedInstancesPaginator.js +2 -24
- package/dist-cjs/pagination/GetPackageVersionHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/GetUpgradeHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/ListDomainMaintenancesPaginator.js +2 -24
- package/dist-cjs/pagination/ListDomainsForPackagePaginator.js +2 -24
- package/dist-cjs/pagination/ListInstanceTypeDetailsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPackagesForDomainPaginator.js +2 -24
- package/dist-cjs/pagination/ListScheduledActionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListVersionsPaginator.js +2 -24
- package/dist-es/pagination/DescribeDomainAutoTunesPaginator.js +2 -23
- package/dist-es/pagination/DescribeInboundConnectionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeOutboundConnectionsPaginator.js +2 -23
- package/dist-es/pagination/DescribePackagesPaginator.js +2 -23
- package/dist-es/pagination/DescribeReservedInstanceOfferingsPaginator.js +2 -23
- package/dist-es/pagination/DescribeReservedInstancesPaginator.js +2 -23
- package/dist-es/pagination/GetPackageVersionHistoryPaginator.js +2 -23
- package/dist-es/pagination/GetUpgradeHistoryPaginator.js +2 -23
- package/dist-es/pagination/ListDomainMaintenancesPaginator.js +2 -23
- package/dist-es/pagination/ListDomainsForPackagePaginator.js +2 -23
- package/dist-es/pagination/ListInstanceTypeDetailsPaginator.js +2 -23
- package/dist-es/pagination/ListPackagesForDomainPaginator.js +2 -23
- package/dist-es/pagination/ListScheduledActionsPaginator.js +2 -23
- package/dist-es/pagination/ListVersionsPaginator.js +2 -23
- package/dist-types/pagination/DescribeDomainAutoTunesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeInboundConnectionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeOutboundConnectionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribePackagesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeReservedInstanceOfferingsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeReservedInstancesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetPackageVersionHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/GetUpgradeHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDomainMaintenancesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDomainsForPackagePaginator.d.ts +1 -1
- package/dist-types/pagination/ListInstanceTypeDetailsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPackagesForDomainPaginator.d.ts +1 -1
- package/dist-types/pagination/ListScheduledActionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVersionsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeDomainAutoTunesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeInboundConnectionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeOutboundConnectionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribePackagesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeReservedInstanceOfferingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeReservedInstancesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetPackageVersionHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetUpgradeHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDomainMaintenancesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDomainsForPackagePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInstanceTypeDetailsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPackagesForDomainPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListScheduledActionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVersionsPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeDomainAutoTunes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeDomainAutoTunesCommand_1 = require("../commands/DescribeDomainAutoTunesCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeDomainAutoTunesCommand_1.DescribeDomainAutoTunesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeDomainAutoTunes(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateDescribeDomainAutoTunes = paginateDescribeDomainAutoTunes;
|
|
7
|
+
exports.paginateDescribeDomainAutoTunes = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, DescribeDomainAutoTunesCommand_1.DescribeDomainAutoTunesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeInboundConnections = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeInboundConnectionsCommand_1 = require("../commands/DescribeInboundConnectionsCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeInboundConnectionsCommand_1.DescribeInboundConnectionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeInboundConnections(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateDescribeInboundConnections = paginateDescribeInboundConnections;
|
|
7
|
+
exports.paginateDescribeInboundConnections = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, DescribeInboundConnectionsCommand_1.DescribeInboundConnectionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeOutboundConnections = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeOutboundConnectionsCommand_1 = require("../commands/DescribeOutboundConnectionsCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeOutboundConnectionsCommand_1.DescribeOutboundConnectionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeOutboundConnections(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateDescribeOutboundConnections = paginateDescribeOutboundConnections;
|
|
7
|
+
exports.paginateDescribeOutboundConnections = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, DescribeOutboundConnectionsCommand_1.DescribeOutboundConnectionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribePackages = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribePackagesCommand_1 = require("../commands/DescribePackagesCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribePackagesCommand_1.DescribePackagesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribePackages(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateDescribePackages = paginateDescribePackages;
|
|
7
|
+
exports.paginateDescribePackages = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, DescribePackagesCommand_1.DescribePackagesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeReservedInstanceOfferings = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeReservedInstanceOfferingsCommand_1 = require("../commands/DescribeReservedInstanceOfferingsCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeReservedInstanceOfferingsCommand_1.DescribeReservedInstanceOfferingsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeReservedInstanceOfferings(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateDescribeReservedInstanceOfferings = paginateDescribeReservedInstanceOfferings;
|
|
7
|
+
exports.paginateDescribeReservedInstanceOfferings = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, DescribeReservedInstanceOfferingsCommand_1.DescribeReservedInstanceOfferingsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeReservedInstances = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeReservedInstancesCommand_1 = require("../commands/DescribeReservedInstancesCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeReservedInstancesCommand_1.DescribeReservedInstancesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeReservedInstances(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateDescribeReservedInstances = paginateDescribeReservedInstances;
|
|
7
|
+
exports.paginateDescribeReservedInstances = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, DescribeReservedInstancesCommand_1.DescribeReservedInstancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetPackageVersionHistory = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetPackageVersionHistoryCommand_1 = require("../commands/GetPackageVersionHistoryCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetPackageVersionHistoryCommand_1.GetPackageVersionHistoryCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetPackageVersionHistory(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateGetPackageVersionHistory = paginateGetPackageVersionHistory;
|
|
7
|
+
exports.paginateGetPackageVersionHistory = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, GetPackageVersionHistoryCommand_1.GetPackageVersionHistoryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetUpgradeHistory = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetUpgradeHistoryCommand_1 = require("../commands/GetUpgradeHistoryCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetUpgradeHistoryCommand_1.GetUpgradeHistoryCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetUpgradeHistory(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateGetUpgradeHistory = paginateGetUpgradeHistory;
|
|
7
|
+
exports.paginateGetUpgradeHistory = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, GetUpgradeHistoryCommand_1.GetUpgradeHistoryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDomainMaintenances = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDomainMaintenancesCommand_1 = require("../commands/ListDomainMaintenancesCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDomainMaintenancesCommand_1.ListDomainMaintenancesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDomainMaintenances(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateListDomainMaintenances = paginateListDomainMaintenances;
|
|
7
|
+
exports.paginateListDomainMaintenances = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, ListDomainMaintenancesCommand_1.ListDomainMaintenancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDomainsForPackage = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDomainsForPackageCommand_1 = require("../commands/ListDomainsForPackageCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDomainsForPackageCommand_1.ListDomainsForPackageCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDomainsForPackage(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateListDomainsForPackage = paginateListDomainsForPackage;
|
|
7
|
+
exports.paginateListDomainsForPackage = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, ListDomainsForPackageCommand_1.ListDomainsForPackageCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListInstanceTypeDetails = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListInstanceTypeDetailsCommand_1 = require("../commands/ListInstanceTypeDetailsCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListInstanceTypeDetailsCommand_1.ListInstanceTypeDetailsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListInstanceTypeDetails(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateListInstanceTypeDetails = paginateListInstanceTypeDetails;
|
|
7
|
+
exports.paginateListInstanceTypeDetails = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, ListInstanceTypeDetailsCommand_1.ListInstanceTypeDetailsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPackagesForDomain = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPackagesForDomainCommand_1 = require("../commands/ListPackagesForDomainCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPackagesForDomainCommand_1.ListPackagesForDomainCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPackagesForDomain(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateListPackagesForDomain = paginateListPackagesForDomain;
|
|
7
|
+
exports.paginateListPackagesForDomain = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, ListPackagesForDomainCommand_1.ListPackagesForDomainCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListScheduledActions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListScheduledActionsCommand_1 = require("../commands/ListScheduledActionsCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListScheduledActionsCommand_1.ListScheduledActionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListScheduledActions(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateListScheduledActions = paginateListScheduledActions;
|
|
7
|
+
exports.paginateListScheduledActions = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, ListScheduledActionsCommand_1.ListScheduledActionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListVersionsCommand_1 = require("../commands/ListVersionsCommand");
|
|
5
6
|
const OpenSearchClient_1 = require("../OpenSearchClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListVersionsCommand_1.ListVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListVersions(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 OpenSearchClient_1.OpenSearchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
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.paginateListVersions = paginateListVersions;
|
|
7
|
+
exports.paginateListVersions = (0, core_1.createPaginator)(OpenSearchClient_1.OpenSearchClient, ListVersionsCommand_1.ListVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeDomainAutoTunesCommand, } from "../commands/DescribeDomainAutoTunesCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeDomainAutoTunesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeDomainAutoTunes(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof OpenSearchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeDomainAutoTunes = createPaginator(OpenSearchClient, DescribeDomainAutoTunesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeInboundConnectionsCommand, } from "../commands/DescribeInboundConnectionsCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeInboundConnectionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeInboundConnections(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof OpenSearchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeInboundConnections = createPaginator(OpenSearchClient, DescribeInboundConnectionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeOutboundConnectionsCommand, } from "../commands/DescribeOutboundConnectionsCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeOutboundConnectionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeOutboundConnections(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof OpenSearchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeOutboundConnections = createPaginator(OpenSearchClient, DescribeOutboundConnectionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribePackagesCommand, } from "../commands/DescribePackagesCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribePackagesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribePackages(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof OpenSearchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribePackages = createPaginator(OpenSearchClient, DescribePackagesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeReservedInstanceOfferingsCommand, } from "../commands/DescribeReservedInstanceOfferingsCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeReservedInstanceOfferingsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeReservedInstanceOfferings(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof OpenSearchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeReservedInstanceOfferings = createPaginator(OpenSearchClient, DescribeReservedInstanceOfferingsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeReservedInstancesCommand, } from "../commands/DescribeReservedInstancesCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeReservedInstancesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeReservedInstances(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof OpenSearchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected OpenSearch | OpenSearchClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeReservedInstances = createPaginator(OpenSearchClient, DescribeReservedInstancesCommand, "NextToken", "NextToken", "MaxResults");
|