@aws-sdk/client-quicksight 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/DescribeFolderPermissionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeFolderResolvedPermissionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAnalysesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssetBundleExportJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssetBundleImportJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDashboardVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDashboardsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataSetsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListFolderMembersPaginator.js +2 -24
- package/dist-cjs/pagination/ListFoldersPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupMembershipsPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListIAMPolicyAssignmentsForUserPaginator.js +2 -24
- package/dist-cjs/pagination/ListIAMPolicyAssignmentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListIngestionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListNamespacesPaginator.js +2 -24
- package/dist-cjs/pagination/ListRoleMembershipsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTemplateAliasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListTemplateVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListThemeVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListThemesPaginator.js +2 -24
- package/dist-cjs/pagination/ListTopicsPaginator.js +2 -24
- package/dist-cjs/pagination/ListUserGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListUsersPaginator.js +2 -24
- package/dist-cjs/pagination/ListVPCConnectionsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchAnalysesPaginator.js +2 -24
- package/dist-cjs/pagination/SearchDashboardsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchDataSetsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchDataSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/SearchFoldersPaginator.js +2 -24
- package/dist-cjs/pagination/SearchGroupsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +1170 -2527
- package/dist-es/pagination/DescribeFolderPermissionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeFolderResolvedPermissionsPaginator.js +2 -23
- package/dist-es/pagination/ListAnalysesPaginator.js +2 -23
- package/dist-es/pagination/ListAssetBundleExportJobsPaginator.js +2 -23
- package/dist-es/pagination/ListAssetBundleImportJobsPaginator.js +2 -23
- package/dist-es/pagination/ListDashboardVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListDashboardsPaginator.js +2 -23
- package/dist-es/pagination/ListDataSetsPaginator.js +2 -23
- package/dist-es/pagination/ListDataSourcesPaginator.js +2 -23
- package/dist-es/pagination/ListFolderMembersPaginator.js +2 -23
- package/dist-es/pagination/ListFoldersPaginator.js +2 -23
- package/dist-es/pagination/ListGroupMembershipsPaginator.js +2 -23
- package/dist-es/pagination/ListGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListIAMPolicyAssignmentsForUserPaginator.js +2 -23
- package/dist-es/pagination/ListIAMPolicyAssignmentsPaginator.js +2 -23
- package/dist-es/pagination/ListIngestionsPaginator.js +2 -23
- package/dist-es/pagination/ListNamespacesPaginator.js +2 -23
- package/dist-es/pagination/ListRoleMembershipsPaginator.js +2 -23
- package/dist-es/pagination/ListTemplateAliasesPaginator.js +2 -23
- package/dist-es/pagination/ListTemplateVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListThemeVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListThemesPaginator.js +2 -23
- package/dist-es/pagination/ListTopicsPaginator.js +2 -23
- package/dist-es/pagination/ListUserGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListUsersPaginator.js +2 -23
- package/dist-es/pagination/ListVPCConnectionsPaginator.js +2 -23
- package/dist-es/pagination/SearchAnalysesPaginator.js +2 -23
- package/dist-es/pagination/SearchDashboardsPaginator.js +2 -23
- package/dist-es/pagination/SearchDataSetsPaginator.js +2 -23
- package/dist-es/pagination/SearchDataSourcesPaginator.js +2 -23
- package/dist-es/pagination/SearchFoldersPaginator.js +2 -23
- package/dist-es/pagination/SearchGroupsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +1171 -2528
- package/dist-types/pagination/DescribeFolderPermissionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeFolderResolvedPermissionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAnalysesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssetBundleExportJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssetBundleImportJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDashboardVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDashboardsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataSetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFolderMembersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFoldersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupMembershipsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIAMPolicyAssignmentsForUserPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIAMPolicyAssignmentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIngestionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListNamespacesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRoleMembershipsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTemplateAliasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTemplateVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThemeVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThemesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTopicsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUserGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUsersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVPCConnectionsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchAnalysesPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchDashboardsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchDataSetsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchDataSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchFoldersPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchGroupsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeFolderPermissionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeFolderResolvedPermissionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAnalysesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssetBundleExportJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssetBundleImportJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDashboardVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDashboardsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataSetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFolderMembersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFoldersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupMembershipsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIAMPolicyAssignmentsForUserPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIAMPolicyAssignmentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIngestionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListNamespacesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRoleMembershipsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTemplateAliasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTemplateVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThemeVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThemesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTopicsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUserGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVPCConnectionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchAnalysesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchDashboardsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchDataSetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchDataSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchFoldersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchGroupsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListThemesCommand } from "../commands/ListThemesCommand";
|
|
2
3
|
import { QuickSightClient } from "../QuickSightClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListThemesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListThemes(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 QuickSightClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected QuickSight | QuickSightClient");
|
|
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 paginateListThemes = createPaginator(QuickSightClient, ListThemesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTopicsCommand } from "../commands/ListTopicsCommand";
|
|
2
3
|
import { QuickSightClient } from "../QuickSightClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTopicsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTopics(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 QuickSightClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected QuickSight | QuickSightClient");
|
|
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 paginateListTopics = createPaginator(QuickSightClient, ListTopicsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListUserGroupsCommand, } from "../commands/ListUserGroupsCommand";
|
|
2
3
|
import { QuickSightClient } from "../QuickSightClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListUserGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListUserGroups(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 QuickSightClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected QuickSight | QuickSightClient");
|
|
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 paginateListUserGroups = createPaginator(QuickSightClient, ListUserGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListUsersCommand } from "../commands/ListUsersCommand";
|
|
2
3
|
import { QuickSightClient } from "../QuickSightClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListUsersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListUsers(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 QuickSightClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected QuickSight | QuickSightClient");
|
|
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 paginateListUsers = createPaginator(QuickSightClient, ListUsersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListVPCConnectionsCommand, } from "../commands/ListVPCConnectionsCommand";
|
|
2
3
|
import { QuickSightClient } from "../QuickSightClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListVPCConnectionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListVPCConnections(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 QuickSightClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected QuickSight | QuickSightClient");
|
|
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 paginateListVPCConnections = createPaginator(QuickSightClient, ListVPCConnectionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchAnalysesCommand, } from "../commands/SearchAnalysesCommand";
|
|
2
3
|
import { QuickSightClient } from "../QuickSightClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchAnalysesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchAnalyses(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 QuickSightClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected QuickSight | QuickSightClient");
|
|
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 paginateSearchAnalyses = createPaginator(QuickSightClient, SearchAnalysesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchDashboardsCommand, } from "../commands/SearchDashboardsCommand";
|
|
2
3
|
import { QuickSightClient } from "../QuickSightClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchDashboardsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchDashboards(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 QuickSightClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected QuickSight | QuickSightClient");
|
|
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 paginateSearchDashboards = createPaginator(QuickSightClient, SearchDashboardsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchDataSetsCommand, } from "../commands/SearchDataSetsCommand";
|
|
2
3
|
import { QuickSightClient } from "../QuickSightClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchDataSetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchDataSets(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 QuickSightClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected QuickSight | QuickSightClient");
|
|
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 paginateSearchDataSets = createPaginator(QuickSightClient, SearchDataSetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchDataSourcesCommand, } from "../commands/SearchDataSourcesCommand";
|
|
2
3
|
import { QuickSightClient } from "../QuickSightClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchDataSourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchDataSources(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 QuickSightClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected QuickSight | QuickSightClient");
|
|
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 paginateSearchDataSources = createPaginator(QuickSightClient, SearchDataSourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchFoldersCommand, } from "../commands/SearchFoldersCommand";
|
|
2
3
|
import { QuickSightClient } from "../QuickSightClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchFoldersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchFolders(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 QuickSightClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected QuickSight | QuickSightClient");
|
|
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 paginateSearchFolders = createPaginator(QuickSightClient, SearchFoldersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchGroupsCommand, } from "../commands/SearchGroupsCommand";
|
|
2
3
|
import { QuickSightClient } from "../QuickSightClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchGroups(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 QuickSightClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected QuickSight | QuickSightClient");
|
|
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 paginateSearchGroups = createPaginator(QuickSightClient, SearchGroupsCommand, "NextToken", "NextToken", "MaxResults");
|