@aws-sdk/client-clouddirectory 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.
Files changed (77) hide show
  1. package/dist-cjs/pagination/ListAppliedSchemaArnsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListAttachedIndicesPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListDevelopmentSchemaArnsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListDirectoriesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListFacetAttributesPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListFacetNamesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListIndexPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListManagedSchemaArnsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListObjectAttributesPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListObjectChildrenPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListObjectParentPathsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListObjectParentsPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListObjectPoliciesPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListPolicyAttachmentsPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListPublishedSchemaArnsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -24
  17. package/dist-cjs/pagination/ListTypedLinkFacetAttributesPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListTypedLinkFacetNamesPaginator.js +2 -24
  19. package/dist-cjs/pagination/LookupPolicyPaginator.js +2 -24
  20. package/dist-es/pagination/ListAppliedSchemaArnsPaginator.js +2 -23
  21. package/dist-es/pagination/ListAttachedIndicesPaginator.js +2 -23
  22. package/dist-es/pagination/ListDevelopmentSchemaArnsPaginator.js +2 -23
  23. package/dist-es/pagination/ListDirectoriesPaginator.js +2 -23
  24. package/dist-es/pagination/ListFacetAttributesPaginator.js +2 -23
  25. package/dist-es/pagination/ListFacetNamesPaginator.js +2 -23
  26. package/dist-es/pagination/ListIndexPaginator.js +2 -23
  27. package/dist-es/pagination/ListManagedSchemaArnsPaginator.js +2 -23
  28. package/dist-es/pagination/ListObjectAttributesPaginator.js +2 -23
  29. package/dist-es/pagination/ListObjectChildrenPaginator.js +2 -23
  30. package/dist-es/pagination/ListObjectParentPathsPaginator.js +2 -23
  31. package/dist-es/pagination/ListObjectParentsPaginator.js +2 -23
  32. package/dist-es/pagination/ListObjectPoliciesPaginator.js +2 -23
  33. package/dist-es/pagination/ListPolicyAttachmentsPaginator.js +2 -23
  34. package/dist-es/pagination/ListPublishedSchemaArnsPaginator.js +2 -23
  35. package/dist-es/pagination/ListTagsForResourcePaginator.js +2 -23
  36. package/dist-es/pagination/ListTypedLinkFacetAttributesPaginator.js +2 -23
  37. package/dist-es/pagination/ListTypedLinkFacetNamesPaginator.js +2 -23
  38. package/dist-es/pagination/LookupPolicyPaginator.js +2 -23
  39. package/dist-types/pagination/ListAppliedSchemaArnsPaginator.d.ts +1 -1
  40. package/dist-types/pagination/ListAttachedIndicesPaginator.d.ts +1 -1
  41. package/dist-types/pagination/ListDevelopmentSchemaArnsPaginator.d.ts +1 -1
  42. package/dist-types/pagination/ListDirectoriesPaginator.d.ts +1 -1
  43. package/dist-types/pagination/ListFacetAttributesPaginator.d.ts +1 -1
  44. package/dist-types/pagination/ListFacetNamesPaginator.d.ts +1 -1
  45. package/dist-types/pagination/ListIndexPaginator.d.ts +1 -1
  46. package/dist-types/pagination/ListManagedSchemaArnsPaginator.d.ts +1 -1
  47. package/dist-types/pagination/ListObjectAttributesPaginator.d.ts +1 -1
  48. package/dist-types/pagination/ListObjectChildrenPaginator.d.ts +1 -1
  49. package/dist-types/pagination/ListObjectParentPathsPaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListObjectParentsPaginator.d.ts +1 -1
  51. package/dist-types/pagination/ListObjectPoliciesPaginator.d.ts +1 -1
  52. package/dist-types/pagination/ListPolicyAttachmentsPaginator.d.ts +1 -1
  53. package/dist-types/pagination/ListPublishedSchemaArnsPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  55. package/dist-types/pagination/ListTypedLinkFacetAttributesPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListTypedLinkFacetNamesPaginator.d.ts +1 -1
  57. package/dist-types/pagination/LookupPolicyPaginator.d.ts +1 -1
  58. package/dist-types/ts3.4/pagination/ListAppliedSchemaArnsPaginator.d.ts +3 -3
  59. package/dist-types/ts3.4/pagination/ListAttachedIndicesPaginator.d.ts +3 -3
  60. package/dist-types/ts3.4/pagination/ListDevelopmentSchemaArnsPaginator.d.ts +3 -3
  61. package/dist-types/ts3.4/pagination/ListDirectoriesPaginator.d.ts +3 -3
  62. package/dist-types/ts3.4/pagination/ListFacetAttributesPaginator.d.ts +3 -3
  63. package/dist-types/ts3.4/pagination/ListFacetNamesPaginator.d.ts +3 -3
  64. package/dist-types/ts3.4/pagination/ListIndexPaginator.d.ts +3 -3
  65. package/dist-types/ts3.4/pagination/ListManagedSchemaArnsPaginator.d.ts +3 -3
  66. package/dist-types/ts3.4/pagination/ListObjectAttributesPaginator.d.ts +3 -3
  67. package/dist-types/ts3.4/pagination/ListObjectChildrenPaginator.d.ts +3 -3
  68. package/dist-types/ts3.4/pagination/ListObjectParentPathsPaginator.d.ts +3 -3
  69. package/dist-types/ts3.4/pagination/ListObjectParentsPaginator.d.ts +3 -3
  70. package/dist-types/ts3.4/pagination/ListObjectPoliciesPaginator.d.ts +3 -3
  71. package/dist-types/ts3.4/pagination/ListPolicyAttachmentsPaginator.d.ts +3 -3
  72. package/dist-types/ts3.4/pagination/ListPublishedSchemaArnsPaginator.d.ts +3 -3
  73. package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +3 -3
  74. package/dist-types/ts3.4/pagination/ListTypedLinkFacetAttributesPaginator.d.ts +3 -3
  75. package/dist-types/ts3.4/pagination/ListTypedLinkFacetNamesPaginator.d.ts +3 -3
  76. package/dist-types/ts3.4/pagination/LookupPolicyPaginator.d.ts +3 -3
  77. package/package.json +5 -5
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListAppliedSchemaArnsCommand, } from "../commands/ListAppliedSchemaArnsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAppliedSchemaArnsCommand(input), ...args);
5
- };
6
- export async function* paginateListAppliedSchemaArns(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListAppliedSchemaArns = createPaginator(CloudDirectoryClient, ListAppliedSchemaArnsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListAttachedIndicesCommand, } from "../commands/ListAttachedIndicesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAttachedIndicesCommand(input), ...args);
5
- };
6
- export async function* paginateListAttachedIndices(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListAttachedIndices = createPaginator(CloudDirectoryClient, ListAttachedIndicesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListDevelopmentSchemaArnsCommand, } from "../commands/ListDevelopmentSchemaArnsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDevelopmentSchemaArnsCommand(input), ...args);
5
- };
6
- export async function* paginateListDevelopmentSchemaArns(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListDevelopmentSchemaArns = createPaginator(CloudDirectoryClient, ListDevelopmentSchemaArnsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListDirectoriesCommand, } from "../commands/ListDirectoriesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDirectoriesCommand(input), ...args);
5
- };
6
- export async function* paginateListDirectories(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListDirectories = createPaginator(CloudDirectoryClient, ListDirectoriesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListFacetAttributesCommand, } from "../commands/ListFacetAttributesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFacetAttributesCommand(input), ...args);
5
- };
6
- export async function* paginateListFacetAttributes(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListFacetAttributes = createPaginator(CloudDirectoryClient, ListFacetAttributesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListFacetNamesCommand, } from "../commands/ListFacetNamesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFacetNamesCommand(input), ...args);
5
- };
6
- export async function* paginateListFacetNames(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListFacetNames = createPaginator(CloudDirectoryClient, ListFacetNamesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListIndexCommand } from "../commands/ListIndexCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListIndexCommand(input), ...args);
5
- };
6
- export async function* paginateListIndex(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListIndex = createPaginator(CloudDirectoryClient, ListIndexCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListManagedSchemaArnsCommand, } from "../commands/ListManagedSchemaArnsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListManagedSchemaArnsCommand(input), ...args);
5
- };
6
- export async function* paginateListManagedSchemaArns(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListManagedSchemaArns = createPaginator(CloudDirectoryClient, ListManagedSchemaArnsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListObjectAttributesCommand, } from "../commands/ListObjectAttributesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListObjectAttributesCommand(input), ...args);
5
- };
6
- export async function* paginateListObjectAttributes(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListObjectAttributes = createPaginator(CloudDirectoryClient, ListObjectAttributesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListObjectChildrenCommand, } from "../commands/ListObjectChildrenCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListObjectChildrenCommand(input), ...args);
5
- };
6
- export async function* paginateListObjectChildren(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListObjectChildren = createPaginator(CloudDirectoryClient, ListObjectChildrenCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListObjectParentPathsCommand, } from "../commands/ListObjectParentPathsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListObjectParentPathsCommand(input), ...args);
5
- };
6
- export async function* paginateListObjectParentPaths(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListObjectParentPaths = createPaginator(CloudDirectoryClient, ListObjectParentPathsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListObjectParentsCommand, } from "../commands/ListObjectParentsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListObjectParentsCommand(input), ...args);
5
- };
6
- export async function* paginateListObjectParents(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListObjectParents = createPaginator(CloudDirectoryClient, ListObjectParentsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListObjectPoliciesCommand, } from "../commands/ListObjectPoliciesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListObjectPoliciesCommand(input), ...args);
5
- };
6
- export async function* paginateListObjectPolicies(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListObjectPolicies = createPaginator(CloudDirectoryClient, ListObjectPoliciesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListPolicyAttachmentsCommand, } from "../commands/ListPolicyAttachmentsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPolicyAttachmentsCommand(input), ...args);
5
- };
6
- export async function* paginateListPolicyAttachments(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListPolicyAttachments = createPaginator(CloudDirectoryClient, ListPolicyAttachmentsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListPublishedSchemaArnsCommand, } from "../commands/ListPublishedSchemaArnsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPublishedSchemaArnsCommand(input), ...args);
5
- };
6
- export async function* paginateListPublishedSchemaArns(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListPublishedSchemaArns = createPaginator(CloudDirectoryClient, ListPublishedSchemaArnsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListTagsForResourceCommand, } from "../commands/ListTagsForResourceCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTagsForResourceCommand(input), ...args);
5
- };
6
- export async function* paginateListTagsForResource(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListTagsForResource = createPaginator(CloudDirectoryClient, ListTagsForResourceCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListTypedLinkFacetAttributesCommand, } from "../commands/ListTypedLinkFacetAttributesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTypedLinkFacetAttributesCommand(input), ...args);
5
- };
6
- export async function* paginateListTypedLinkFacetAttributes(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListTypedLinkFacetAttributes = createPaginator(CloudDirectoryClient, ListTypedLinkFacetAttributesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { ListTypedLinkFacetNamesCommand, } from "../commands/ListTypedLinkFacetNamesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTypedLinkFacetNamesCommand(input), ...args);
5
- };
6
- export async function* paginateListTypedLinkFacetNames(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateListTypedLinkFacetNames = createPaginator(CloudDirectoryClient, ListTypedLinkFacetNamesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudDirectoryClient } from "../CloudDirectoryClient";
2
3
  import { LookupPolicyCommand, } from "../commands/LookupPolicyCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new LookupPolicyCommand(input), ...args);
5
- };
6
- export async function* paginateLookupPolicy(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 CloudDirectoryClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
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 paginateLookupPolicy = createPaginator(CloudDirectoryClient, LookupPolicyCommand, "NextToken", "NextToken", "MaxResults");
@@ -4,4 +4,4 @@ import { CloudDirectoryPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAppliedSchemaArns(config: CloudDirectoryPaginationConfiguration, input: ListAppliedSchemaArnsCommandInput, ...additionalArguments: any): Paginator<ListAppliedSchemaArnsCommandOutput>;
7
+ export declare const paginateListAppliedSchemaArns: (config: CloudDirectoryPaginationConfiguration, input: ListAppliedSchemaArnsCommandInput, ...rest: any[]) => Paginator<ListAppliedSchemaArnsCommandOutput>;
@@ -4,4 +4,4 @@ import { CloudDirectoryPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAttachedIndices(config: CloudDirectoryPaginationConfiguration, input: ListAttachedIndicesCommandInput, ...additionalArguments: any): Paginator<ListAttachedIndicesCommandOutput>;
7
+ export declare const paginateListAttachedIndices: (config: CloudDirectoryPaginationConfiguration, input: ListAttachedIndicesCommandInput, ...rest: any[]) => Paginator<ListAttachedIndicesCommandOutput>;
@@ -4,4 +4,4 @@ import { CloudDirectoryPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDevelopmentSchemaArns(config: CloudDirectoryPaginationConfiguration, input: ListDevelopmentSchemaArnsCommandInput, ...additionalArguments: any): Paginator<ListDevelopmentSchemaArnsCommandOutput>;
7
+ export declare const paginateListDevelopmentSchemaArns: (config: CloudDirectoryPaginationConfiguration, input: ListDevelopmentSchemaArnsCommandInput, ...rest: any[]) => Paginator<ListDevelopmentSchemaArnsCommandOutput>;
@@ -4,4 +4,4 @@ import { CloudDirectoryPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDirectories(config: CloudDirectoryPaginationConfiguration, input: ListDirectoriesCommandInput, ...additionalArguments: any): Paginator<ListDirectoriesCommandOutput>;
7
+ export declare const paginateListDirectories: (config: CloudDirectoryPaginationConfiguration, input: ListDirectoriesCommandInput, ...rest: any[]) => Paginator<ListDirectoriesCommandOutput>;
@@ -4,4 +4,4 @@ import { CloudDirectoryPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListFacetAttributes(config: CloudDirectoryPaginationConfiguration, input: ListFacetAttributesCommandInput, ...additionalArguments: any): Paginator<ListFacetAttributesCommandOutput>;
7
+ export declare const paginateListFacetAttributes: (config: CloudDirectoryPaginationConfiguration, input: ListFacetAttributesCommandInput, ...rest: any[]) => Paginator<ListFacetAttributesCommandOutput>;
@@ -4,4 +4,4 @@ import { CloudDirectoryPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListFacetNames(config: CloudDirectoryPaginationConfiguration, input: ListFacetNamesCommandInput, ...additionalArguments: any): Paginator<ListFacetNamesCommandOutput>;
7
+ export declare const paginateListFacetNames: (config: CloudDirectoryPaginationConfiguration, input: ListFacetNamesCommandInput, ...rest: any[]) => Paginator<ListFacetNamesCommandOutput>;
@@ -4,4 +4,4 @@ import { CloudDirectoryPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListIndex(config: CloudDirectoryPaginationConfiguration, input: ListIndexCommandInput, ...additionalArguments: any): Paginator<ListIndexCommandOutput>;
7
+ export declare const paginateListIndex: (config: CloudDirectoryPaginationConfiguration, input: ListIndexCommandInput, ...rest: any[]) => Paginator<ListIndexCommandOutput>;
@@ -4,4 +4,4 @@ import { CloudDirectoryPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListManagedSchemaArns(config: CloudDirectoryPaginationConfiguration, input: ListManagedSchemaArnsCommandInput, ...additionalArguments: any): Paginator<ListManagedSchemaArnsCommandOutput>;
7
+ export declare const paginateListManagedSchemaArns: (config: CloudDirectoryPaginationConfiguration, input: ListManagedSchemaArnsCommandInput, ...rest: any[]) => Paginator<ListManagedSchemaArnsCommandOutput>;
@@ -4,4 +4,4 @@ import { CloudDirectoryPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListObjectAttributes(config: CloudDirectoryPaginationConfiguration, input: ListObjectAttributesCommandInput, ...additionalArguments: any): Paginator<ListObjectAttributesCommandOutput>;
7
+ export declare const paginateListObjectAttributes: (config: CloudDirectoryPaginationConfiguration, input: ListObjectAttributesCommandInput, ...rest: any[]) => Paginator<ListObjectAttributesCommandOutput>;
@@ -4,4 +4,4 @@ import { CloudDirectoryPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListObjectChildren(config: CloudDirectoryPaginationConfiguration, input: ListObjectChildrenCommandInput, ...additionalArguments: any): Paginator<ListObjectChildrenCommandOutput>;
7
+ export declare const paginateListObjectChildren: (config: CloudDirectoryPaginationConfiguration, input: ListObjectChildrenCommandInput, ...rest: any[]) => Paginator<ListObjectChildrenCommandOutput>;
@@ -4,4 +4,4 @@ import { CloudDirectoryPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListObjectParentPaths(config: CloudDirectoryPaginationConfiguration, input: ListObjectParentPathsCommandInput, ...additionalArguments: any): Paginator<ListObjectParentPathsCommandOutput>;
7
+ export declare const paginateListObjectParentPaths: (config: CloudDirectoryPaginationConfiguration, input: ListObjectParentPathsCommandInput, ...rest: any[]) => Paginator<ListObjectParentPathsCommandOutput>;
@@ -4,4 +4,4 @@ import { CloudDirectoryPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListObjectParents(config: CloudDirectoryPaginationConfiguration, input: ListObjectParentsCommandInput, ...additionalArguments: any): Paginator<ListObjectParentsCommandOutput>;
7
+ export declare const paginateListObjectParents: (config: CloudDirectoryPaginationConfiguration, input: ListObjectParentsCommandInput, ...rest: any[]) => Paginator<ListObjectParentsCommandOutput>;