@aws-sdk/client-redshift 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/DescribeClusterDbRevisionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeClusterParameterGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeClusterParametersPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeClusterSecurityGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeClusterSnapshotsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeClusterSubnetGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeClusterTracksPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeClusterVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeClustersPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeCustomDomainAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeDataSharesForConsumerPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeDataSharesForProducerPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeDataSharesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeDefaultClusterParametersPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeEndpointAccessPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeEndpointAuthorizationPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeEventSubscriptionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeEventsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeHsmClientCertificatesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeHsmConfigurationsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeInboundIntegrationsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeNodeConfigurationOptionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeOrderableClusterOptionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeRedshiftIdcApplicationsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeReservedNodeExchangeStatusPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeReservedNodeOfferingsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeReservedNodesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeScheduledActionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeSnapshotCopyGrantsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeSnapshotSchedulesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeTableRestoreStatusPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeTagsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeUsageLimitsPaginator.js +2 -24
- package/dist-cjs/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.js +2 -24
- package/dist-cjs/pagination/GetReservedNodeExchangeOfferingsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_query.js +3685 -3128
- package/dist-es/pagination/DescribeClusterDbRevisionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeClusterParameterGroupsPaginator.js +2 -23
- package/dist-es/pagination/DescribeClusterParametersPaginator.js +2 -23
- package/dist-es/pagination/DescribeClusterSecurityGroupsPaginator.js +2 -23
- package/dist-es/pagination/DescribeClusterSnapshotsPaginator.js +2 -23
- package/dist-es/pagination/DescribeClusterSubnetGroupsPaginator.js +2 -23
- package/dist-es/pagination/DescribeClusterTracksPaginator.js +2 -23
- package/dist-es/pagination/DescribeClusterVersionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeClustersPaginator.js +2 -23
- package/dist-es/pagination/DescribeCustomDomainAssociationsPaginator.js +2 -23
- package/dist-es/pagination/DescribeDataSharesForConsumerPaginator.js +2 -23
- package/dist-es/pagination/DescribeDataSharesForProducerPaginator.js +2 -23
- package/dist-es/pagination/DescribeDataSharesPaginator.js +2 -23
- package/dist-es/pagination/DescribeDefaultClusterParametersPaginator.js +2 -23
- package/dist-es/pagination/DescribeEndpointAccessPaginator.js +2 -23
- package/dist-es/pagination/DescribeEndpointAuthorizationPaginator.js +2 -23
- package/dist-es/pagination/DescribeEventSubscriptionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeEventsPaginator.js +2 -23
- package/dist-es/pagination/DescribeHsmClientCertificatesPaginator.js +2 -23
- package/dist-es/pagination/DescribeHsmConfigurationsPaginator.js +2 -23
- package/dist-es/pagination/DescribeInboundIntegrationsPaginator.js +2 -23
- package/dist-es/pagination/DescribeNodeConfigurationOptionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeOrderableClusterOptionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeRedshiftIdcApplicationsPaginator.js +2 -23
- package/dist-es/pagination/DescribeReservedNodeExchangeStatusPaginator.js +2 -23
- package/dist-es/pagination/DescribeReservedNodeOfferingsPaginator.js +2 -23
- package/dist-es/pagination/DescribeReservedNodesPaginator.js +2 -23
- package/dist-es/pagination/DescribeScheduledActionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeSnapshotCopyGrantsPaginator.js +2 -23
- package/dist-es/pagination/DescribeSnapshotSchedulesPaginator.js +2 -23
- package/dist-es/pagination/DescribeTableRestoreStatusPaginator.js +2 -23
- package/dist-es/pagination/DescribeTagsPaginator.js +2 -23
- package/dist-es/pagination/DescribeUsageLimitsPaginator.js +2 -23
- package/dist-es/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.js +2 -23
- package/dist-es/pagination/GetReservedNodeExchangeOfferingsPaginator.js +2 -23
- package/dist-es/protocols/Aws_query.js +3685 -3128
- package/dist-types/pagination/DescribeClusterDbRevisionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeClusterParameterGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeClusterParametersPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeClusterSecurityGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeClusterSnapshotsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeClusterSubnetGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeClusterTracksPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeClusterVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeClustersPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeCustomDomainAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeDataSharesForConsumerPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeDataSharesForProducerPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeDataSharesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeDefaultClusterParametersPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeEndpointAccessPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeEndpointAuthorizationPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeEventSubscriptionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeHsmClientCertificatesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeHsmConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeInboundIntegrationsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeNodeConfigurationOptionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeOrderableClusterOptionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeRedshiftIdcApplicationsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeReservedNodeExchangeStatusPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeReservedNodeOfferingsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeReservedNodesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeScheduledActionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeSnapshotCopyGrantsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeSnapshotSchedulesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeTableRestoreStatusPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeUsageLimitsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetReservedNodeExchangeOfferingsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeClusterDbRevisionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeClusterParameterGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeClusterParametersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeClusterSecurityGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeClusterSnapshotsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeClusterSubnetGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeClusterTracksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeClusterVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeClustersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeCustomDomainAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeDataSharesForConsumerPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeDataSharesForProducerPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeDataSharesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeDefaultClusterParametersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeEndpointAccessPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeEndpointAuthorizationPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeEventSubscriptionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeHsmClientCertificatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeHsmConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeInboundIntegrationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeNodeConfigurationOptionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeOrderableClusterOptionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeRedshiftIdcApplicationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeReservedNodeExchangeStatusPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeReservedNodeOfferingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeReservedNodesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeScheduledActionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeSnapshotCopyGrantsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeSnapshotSchedulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeTableRestoreStatusPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeUsageLimitsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetReservedNodeExchangeOfferingsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeClusterDbRevisionsCommand, } from "../commands/DescribeClusterDbRevisionsCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeClusterDbRevisionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeClusterDbRevisions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeClusterDbRevisions = createPaginator(RedshiftClient, DescribeClusterDbRevisionsCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeClusterParameterGroupsCommand, } from "../commands/DescribeClusterParameterGroupsCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeClusterParameterGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeClusterParameterGroups(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeClusterParameterGroups = createPaginator(RedshiftClient, DescribeClusterParameterGroupsCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeClusterParametersCommand, } from "../commands/DescribeClusterParametersCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeClusterParametersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeClusterParameters(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeClusterParameters = createPaginator(RedshiftClient, DescribeClusterParametersCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeClusterSecurityGroupsCommand, } from "../commands/DescribeClusterSecurityGroupsCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeClusterSecurityGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeClusterSecurityGroups(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeClusterSecurityGroups = createPaginator(RedshiftClient, DescribeClusterSecurityGroupsCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeClusterSnapshotsCommand, } from "../commands/DescribeClusterSnapshotsCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeClusterSnapshotsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeClusterSnapshots(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeClusterSnapshots = createPaginator(RedshiftClient, DescribeClusterSnapshotsCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeClusterSubnetGroupsCommand, } from "../commands/DescribeClusterSubnetGroupsCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeClusterSubnetGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeClusterSubnetGroups(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeClusterSubnetGroups = createPaginator(RedshiftClient, DescribeClusterSubnetGroupsCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeClusterTracksCommand, } from "../commands/DescribeClusterTracksCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeClusterTracksCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeClusterTracks(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeClusterTracks = createPaginator(RedshiftClient, DescribeClusterTracksCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeClusterVersionsCommand, } from "../commands/DescribeClusterVersionsCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeClusterVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeClusterVersions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeClusterVersions = createPaginator(RedshiftClient, DescribeClusterVersionsCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeClustersCommand, } from "../commands/DescribeClustersCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeClustersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeClusters(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeClusters = createPaginator(RedshiftClient, DescribeClustersCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeCustomDomainAssociationsCommand, } from "../commands/DescribeCustomDomainAssociationsCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeCustomDomainAssociationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeCustomDomainAssociations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeCustomDomainAssociations = createPaginator(RedshiftClient, DescribeCustomDomainAssociationsCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeDataSharesForConsumerCommand, } from "../commands/DescribeDataSharesForConsumerCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeDataSharesForConsumerCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeDataSharesForConsumer(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeDataSharesForConsumer = createPaginator(RedshiftClient, DescribeDataSharesForConsumerCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeDataSharesForProducerCommand, } from "../commands/DescribeDataSharesForProducerCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeDataSharesForProducerCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeDataSharesForProducer(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeDataSharesForProducer = createPaginator(RedshiftClient, DescribeDataSharesForProducerCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeDataSharesCommand, } from "../commands/DescribeDataSharesCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeDataSharesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeDataShares(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeDataShares = createPaginator(RedshiftClient, DescribeDataSharesCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeDefaultClusterParametersCommand, } from "../commands/DescribeDefaultClusterParametersCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeDefaultClusterParametersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeDefaultClusterParameters(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.DefaultClusterParameters.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeDefaultClusterParameters = createPaginator(RedshiftClient, DescribeDefaultClusterParametersCommand, "Marker", "DefaultClusterParameters.Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeEndpointAccessCommand, } from "../commands/DescribeEndpointAccessCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeEndpointAccessCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeEndpointAccess(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeEndpointAccess = createPaginator(RedshiftClient, DescribeEndpointAccessCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeEndpointAuthorizationCommand, } from "../commands/DescribeEndpointAuthorizationCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeEndpointAuthorizationCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeEndpointAuthorization(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeEndpointAuthorization = createPaginator(RedshiftClient, DescribeEndpointAuthorizationCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeEventSubscriptionsCommand, } from "../commands/DescribeEventSubscriptionsCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeEventSubscriptionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeEventSubscriptions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeEventSubscriptions = createPaginator(RedshiftClient, DescribeEventSubscriptionsCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeEventsCommand, } from "../commands/DescribeEventsCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeEventsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeEvents(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeEvents = createPaginator(RedshiftClient, DescribeEventsCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeHsmClientCertificatesCommand, } from "../commands/DescribeHsmClientCertificatesCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeHsmClientCertificatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeHsmClientCertificates(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeHsmClientCertificates = createPaginator(RedshiftClient, DescribeHsmClientCertificatesCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeHsmConfigurationsCommand, } from "../commands/DescribeHsmConfigurationsCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeHsmConfigurationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeHsmConfigurations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeHsmConfigurations = createPaginator(RedshiftClient, DescribeHsmConfigurationsCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeInboundIntegrationsCommand, } from "../commands/DescribeInboundIntegrationsCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeInboundIntegrationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeInboundIntegrations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeInboundIntegrations = createPaginator(RedshiftClient, DescribeInboundIntegrationsCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeNodeConfigurationOptionsCommand, } from "../commands/DescribeNodeConfigurationOptionsCommand";
|
|
2
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeNodeConfigurationOptionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeNodeConfigurationOptions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.Marker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeNodeConfigurationOptions = createPaginator(RedshiftClient, DescribeNodeConfigurationOptionsCommand, "Marker", "Marker", "MaxRecords");
|