@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,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAppliedSchemaArns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListAppliedSchemaArnsCommand_1 = require("../commands/ListAppliedSchemaArnsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAppliedSchemaArnsCommand_1.ListAppliedSchemaArnsCommand(input), ...args);
8
- };
9
- async function* paginateListAppliedSchemaArns(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAppliedSchemaArns = paginateListAppliedSchemaArns;
7
+ exports.paginateListAppliedSchemaArns = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListAppliedSchemaArnsCommand_1.ListAppliedSchemaArnsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAttachedIndices = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListAttachedIndicesCommand_1 = require("../commands/ListAttachedIndicesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAttachedIndicesCommand_1.ListAttachedIndicesCommand(input), ...args);
8
- };
9
- async function* paginateListAttachedIndices(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAttachedIndices = paginateListAttachedIndices;
7
+ exports.paginateListAttachedIndices = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListAttachedIndicesCommand_1.ListAttachedIndicesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDevelopmentSchemaArns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListDevelopmentSchemaArnsCommand_1 = require("../commands/ListDevelopmentSchemaArnsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDevelopmentSchemaArnsCommand_1.ListDevelopmentSchemaArnsCommand(input), ...args);
8
- };
9
- async function* paginateListDevelopmentSchemaArns(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDevelopmentSchemaArns = paginateListDevelopmentSchemaArns;
7
+ exports.paginateListDevelopmentSchemaArns = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListDevelopmentSchemaArnsCommand_1.ListDevelopmentSchemaArnsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDirectories = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListDirectoriesCommand_1 = require("../commands/ListDirectoriesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDirectoriesCommand_1.ListDirectoriesCommand(input), ...args);
8
- };
9
- async function* paginateListDirectories(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDirectories = paginateListDirectories;
7
+ exports.paginateListDirectories = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListDirectoriesCommand_1.ListDirectoriesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFacetAttributes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListFacetAttributesCommand_1 = require("../commands/ListFacetAttributesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFacetAttributesCommand_1.ListFacetAttributesCommand(input), ...args);
8
- };
9
- async function* paginateListFacetAttributes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListFacetAttributes = paginateListFacetAttributes;
7
+ exports.paginateListFacetAttributes = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListFacetAttributesCommand_1.ListFacetAttributesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFacetNames = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListFacetNamesCommand_1 = require("../commands/ListFacetNamesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFacetNamesCommand_1.ListFacetNamesCommand(input), ...args);
8
- };
9
- async function* paginateListFacetNames(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListFacetNames = paginateListFacetNames;
7
+ exports.paginateListFacetNames = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListFacetNamesCommand_1.ListFacetNamesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListIndex = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListIndexCommand_1 = require("../commands/ListIndexCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIndexCommand_1.ListIndexCommand(input), ...args);
8
- };
9
- async function* paginateListIndex(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListIndex = paginateListIndex;
7
+ exports.paginateListIndex = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListIndexCommand_1.ListIndexCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListManagedSchemaArns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListManagedSchemaArnsCommand_1 = require("../commands/ListManagedSchemaArnsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListManagedSchemaArnsCommand_1.ListManagedSchemaArnsCommand(input), ...args);
8
- };
9
- async function* paginateListManagedSchemaArns(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListManagedSchemaArns = paginateListManagedSchemaArns;
7
+ exports.paginateListManagedSchemaArns = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListManagedSchemaArnsCommand_1.ListManagedSchemaArnsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListObjectAttributes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListObjectAttributesCommand_1 = require("../commands/ListObjectAttributesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListObjectAttributesCommand_1.ListObjectAttributesCommand(input), ...args);
8
- };
9
- async function* paginateListObjectAttributes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListObjectAttributes = paginateListObjectAttributes;
7
+ exports.paginateListObjectAttributes = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListObjectAttributesCommand_1.ListObjectAttributesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListObjectChildren = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListObjectChildrenCommand_1 = require("../commands/ListObjectChildrenCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListObjectChildrenCommand_1.ListObjectChildrenCommand(input), ...args);
8
- };
9
- async function* paginateListObjectChildren(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListObjectChildren = paginateListObjectChildren;
7
+ exports.paginateListObjectChildren = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListObjectChildrenCommand_1.ListObjectChildrenCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListObjectParentPaths = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListObjectParentPathsCommand_1 = require("../commands/ListObjectParentPathsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListObjectParentPathsCommand_1.ListObjectParentPathsCommand(input), ...args);
8
- };
9
- async function* paginateListObjectParentPaths(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListObjectParentPaths = paginateListObjectParentPaths;
7
+ exports.paginateListObjectParentPaths = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListObjectParentPathsCommand_1.ListObjectParentPathsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListObjectParents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListObjectParentsCommand_1 = require("../commands/ListObjectParentsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListObjectParentsCommand_1.ListObjectParentsCommand(input), ...args);
8
- };
9
- async function* paginateListObjectParents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListObjectParents = paginateListObjectParents;
7
+ exports.paginateListObjectParents = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListObjectParentsCommand_1.ListObjectParentsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListObjectPolicies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListObjectPoliciesCommand_1 = require("../commands/ListObjectPoliciesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListObjectPoliciesCommand_1.ListObjectPoliciesCommand(input), ...args);
8
- };
9
- async function* paginateListObjectPolicies(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListObjectPolicies = paginateListObjectPolicies;
7
+ exports.paginateListObjectPolicies = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListObjectPoliciesCommand_1.ListObjectPoliciesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPolicyAttachments = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListPolicyAttachmentsCommand_1 = require("../commands/ListPolicyAttachmentsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPolicyAttachmentsCommand_1.ListPolicyAttachmentsCommand(input), ...args);
8
- };
9
- async function* paginateListPolicyAttachments(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPolicyAttachments = paginateListPolicyAttachments;
7
+ exports.paginateListPolicyAttachments = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListPolicyAttachmentsCommand_1.ListPolicyAttachmentsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPublishedSchemaArns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListPublishedSchemaArnsCommand_1 = require("../commands/ListPublishedSchemaArnsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPublishedSchemaArnsCommand_1.ListPublishedSchemaArnsCommand(input), ...args);
8
- };
9
- async function* paginateListPublishedSchemaArns(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPublishedSchemaArns = paginateListPublishedSchemaArns;
7
+ exports.paginateListPublishedSchemaArns = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListPublishedSchemaArnsCommand_1.ListPublishedSchemaArnsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTagsForResource = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListTagsForResourceCommand_1 = require("../commands/ListTagsForResourceCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTagsForResourceCommand_1.ListTagsForResourceCommand(input), ...args);
8
- };
9
- async function* paginateListTagsForResource(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListTagsForResource = paginateListTagsForResource;
7
+ exports.paginateListTagsForResource = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListTagsForResourceCommand_1.ListTagsForResourceCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTypedLinkFacetAttributes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListTypedLinkFacetAttributesCommand_1 = require("../commands/ListTypedLinkFacetAttributesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTypedLinkFacetAttributesCommand_1.ListTypedLinkFacetAttributesCommand(input), ...args);
8
- };
9
- async function* paginateListTypedLinkFacetAttributes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListTypedLinkFacetAttributes = paginateListTypedLinkFacetAttributes;
7
+ exports.paginateListTypedLinkFacetAttributes = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListTypedLinkFacetAttributesCommand_1.ListTypedLinkFacetAttributesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTypedLinkFacetNames = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const ListTypedLinkFacetNamesCommand_1 = require("../commands/ListTypedLinkFacetNamesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTypedLinkFacetNamesCommand_1.ListTypedLinkFacetNamesCommand(input), ...args);
8
- };
9
- async function* paginateListTypedLinkFacetNames(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListTypedLinkFacetNames = paginateListTypedLinkFacetNames;
7
+ exports.paginateListTypedLinkFacetNames = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, ListTypedLinkFacetNamesCommand_1.ListTypedLinkFacetNamesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateLookupPolicy = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudDirectoryClient_1 = require("../CloudDirectoryClient");
5
6
  const LookupPolicyCommand_1 = require("../commands/LookupPolicyCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new LookupPolicyCommand_1.LookupPolicyCommand(input), ...args);
8
- };
9
- async function* paginateLookupPolicy(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudDirectoryClient_1.CloudDirectoryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudDirectory | CloudDirectoryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateLookupPolicy = paginateLookupPolicy;
7
+ exports.paginateLookupPolicy = (0, core_1.createPaginator)(CloudDirectoryClient_1.CloudDirectoryClient, LookupPolicyCommand_1.LookupPolicyCommand, "NextToken", "NextToken", "MaxResults");