@aws-sdk/client-opensearch 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/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-cjs/protocols/Aws_restJson1.js +361 -828
- 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-es/protocols/Aws_restJson1.js +362 -829
- 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 +7 -6
|
@@ -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");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetPackageVersionHistoryCommand, } from "../commands/GetPackageVersionHistoryCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetPackageVersionHistoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetPackageVersionHistory(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 paginateGetPackageVersionHistory = createPaginator(OpenSearchClient, GetPackageVersionHistoryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetUpgradeHistoryCommand, } from "../commands/GetUpgradeHistoryCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetUpgradeHistoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetUpgradeHistory(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 paginateGetUpgradeHistory = createPaginator(OpenSearchClient, GetUpgradeHistoryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDomainMaintenancesCommand, } from "../commands/ListDomainMaintenancesCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDomainMaintenancesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDomainMaintenances(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 paginateListDomainMaintenances = createPaginator(OpenSearchClient, ListDomainMaintenancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDomainsForPackageCommand, } from "../commands/ListDomainsForPackageCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDomainsForPackageCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDomainsForPackage(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 paginateListDomainsForPackage = createPaginator(OpenSearchClient, ListDomainsForPackageCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInstanceTypeDetailsCommand, } from "../commands/ListInstanceTypeDetailsCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInstanceTypeDetailsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInstanceTypeDetails(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 paginateListInstanceTypeDetails = createPaginator(OpenSearchClient, ListInstanceTypeDetailsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPackagesForDomainCommand, } from "../commands/ListPackagesForDomainCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPackagesForDomainCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPackagesForDomain(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 paginateListPackagesForDomain = createPaginator(OpenSearchClient, ListPackagesForDomainCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListScheduledActionsCommand, } from "../commands/ListScheduledActionsCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListScheduledActionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListScheduledActions(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 paginateListScheduledActions = createPaginator(OpenSearchClient, ListScheduledActionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListVersionsCommand, } from "../commands/ListVersionsCommand";
|
|
2
3
|
import { OpenSearchClient } from "../OpenSearchClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListVersions(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 paginateListVersions = createPaginator(OpenSearchClient, ListVersionsCommand, "NextToken", "NextToken", "MaxResults");
|