@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.
- package/dist-cjs/pagination/ListAppliedSchemaArnsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAttachedIndicesPaginator.js +2 -24
- package/dist-cjs/pagination/ListDevelopmentSchemaArnsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDirectoriesPaginator.js +2 -24
- package/dist-cjs/pagination/ListFacetAttributesPaginator.js +2 -24
- package/dist-cjs/pagination/ListFacetNamesPaginator.js +2 -24
- package/dist-cjs/pagination/ListIndexPaginator.js +2 -24
- package/dist-cjs/pagination/ListManagedSchemaArnsPaginator.js +2 -24
- package/dist-cjs/pagination/ListObjectAttributesPaginator.js +2 -24
- package/dist-cjs/pagination/ListObjectChildrenPaginator.js +2 -24
- package/dist-cjs/pagination/ListObjectParentPathsPaginator.js +2 -24
- package/dist-cjs/pagination/ListObjectParentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListObjectPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPolicyAttachmentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPublishedSchemaArnsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -24
- package/dist-cjs/pagination/ListTypedLinkFacetAttributesPaginator.js +2 -24
- package/dist-cjs/pagination/ListTypedLinkFacetNamesPaginator.js +2 -24
- package/dist-cjs/pagination/LookupPolicyPaginator.js +2 -24
- package/dist-es/pagination/ListAppliedSchemaArnsPaginator.js +2 -23
- package/dist-es/pagination/ListAttachedIndicesPaginator.js +2 -23
- package/dist-es/pagination/ListDevelopmentSchemaArnsPaginator.js +2 -23
- package/dist-es/pagination/ListDirectoriesPaginator.js +2 -23
- package/dist-es/pagination/ListFacetAttributesPaginator.js +2 -23
- package/dist-es/pagination/ListFacetNamesPaginator.js +2 -23
- package/dist-es/pagination/ListIndexPaginator.js +2 -23
- package/dist-es/pagination/ListManagedSchemaArnsPaginator.js +2 -23
- package/dist-es/pagination/ListObjectAttributesPaginator.js +2 -23
- package/dist-es/pagination/ListObjectChildrenPaginator.js +2 -23
- package/dist-es/pagination/ListObjectParentPathsPaginator.js +2 -23
- package/dist-es/pagination/ListObjectParentsPaginator.js +2 -23
- package/dist-es/pagination/ListObjectPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListPolicyAttachmentsPaginator.js +2 -23
- package/dist-es/pagination/ListPublishedSchemaArnsPaginator.js +2 -23
- package/dist-es/pagination/ListTagsForResourcePaginator.js +2 -23
- package/dist-es/pagination/ListTypedLinkFacetAttributesPaginator.js +2 -23
- package/dist-es/pagination/ListTypedLinkFacetNamesPaginator.js +2 -23
- package/dist-es/pagination/LookupPolicyPaginator.js +2 -23
- package/dist-types/pagination/ListAppliedSchemaArnsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAttachedIndicesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDevelopmentSchemaArnsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDirectoriesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFacetAttributesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFacetNamesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIndexPaginator.d.ts +1 -1
- package/dist-types/pagination/ListManagedSchemaArnsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListObjectAttributesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListObjectChildrenPaginator.d.ts +1 -1
- package/dist-types/pagination/ListObjectParentPathsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListObjectParentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListObjectPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPolicyAttachmentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPublishedSchemaArnsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/dist-types/pagination/ListTypedLinkFacetAttributesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTypedLinkFacetNamesPaginator.d.ts +1 -1
- package/dist-types/pagination/LookupPolicyPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAppliedSchemaArnsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAttachedIndicesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDevelopmentSchemaArnsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDirectoriesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFacetAttributesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFacetNamesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIndexPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListManagedSchemaArnsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListObjectAttributesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListObjectChildrenPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListObjectParentPathsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListObjectParentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListObjectPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPolicyAttachmentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPublishedSchemaArnsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTypedLinkFacetAttributesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTypedLinkFacetNamesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/LookupPolicyPaginator.d.ts +3 -3
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
7
|
+
export declare const paginateListObjectParents: (config: CloudDirectoryPaginationConfiguration, input: ListObjectParentsCommandInput, ...rest: any[]) => Paginator<ListObjectParentsCommandOutput>;
|