@aws-sdk/client-cleanrooms 3.250.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/LICENSE +201 -0
- package/README.md +215 -0
- package/dist-cjs/CleanRooms.js +517 -0
- package/dist-cjs/CleanRoomsClient.js +40 -0
- package/dist-cjs/commands/BatchGetSchemaCommand.js +46 -0
- package/dist-cjs/commands/CreateCollaborationCommand.js +46 -0
- package/dist-cjs/commands/CreateConfiguredTableAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/CreateConfiguredTableAssociationCommand.js +46 -0
- package/dist-cjs/commands/CreateConfiguredTableCommand.js +46 -0
- package/dist-cjs/commands/CreateMembershipCommand.js +46 -0
- package/dist-cjs/commands/DeleteCollaborationCommand.js +46 -0
- package/dist-cjs/commands/DeleteConfiguredTableAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/DeleteConfiguredTableAssociationCommand.js +46 -0
- package/dist-cjs/commands/DeleteConfiguredTableCommand.js +46 -0
- package/dist-cjs/commands/DeleteMemberCommand.js +46 -0
- package/dist-cjs/commands/DeleteMembershipCommand.js +46 -0
- package/dist-cjs/commands/GetCollaborationCommand.js +46 -0
- package/dist-cjs/commands/GetConfiguredTableAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/GetConfiguredTableAssociationCommand.js +46 -0
- package/dist-cjs/commands/GetConfiguredTableCommand.js +46 -0
- package/dist-cjs/commands/GetMembershipCommand.js +46 -0
- package/dist-cjs/commands/GetProtectedQueryCommand.js +46 -0
- package/dist-cjs/commands/GetSchemaAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/GetSchemaCommand.js +46 -0
- package/dist-cjs/commands/ListCollaborationsCommand.js +46 -0
- package/dist-cjs/commands/ListConfiguredTableAssociationsCommand.js +46 -0
- package/dist-cjs/commands/ListConfiguredTablesCommand.js +46 -0
- package/dist-cjs/commands/ListMembersCommand.js +46 -0
- package/dist-cjs/commands/ListMembershipsCommand.js +46 -0
- package/dist-cjs/commands/ListProtectedQueriesCommand.js +46 -0
- package/dist-cjs/commands/ListSchemasCommand.js +46 -0
- package/dist-cjs/commands/StartProtectedQueryCommand.js +46 -0
- package/dist-cjs/commands/UpdateCollaborationCommand.js +46 -0
- package/dist-cjs/commands/UpdateConfiguredTableAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/UpdateConfiguredTableAssociationCommand.js +46 -0
- package/dist-cjs/commands/UpdateConfiguredTableCommand.js +46 -0
- package/dist-cjs/commands/UpdateMembershipCommand.js +46 -0
- package/dist-cjs/commands/UpdateProtectedQueryCommand.js +46 -0
- package/dist-cjs/commands/index.js +37 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/CleanRoomsServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +782 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListCollaborationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListConfiguredTableAssociationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListConfiguredTablesPaginator.js +36 -0
- package/dist-cjs/pagination/ListMembersPaginator.js +36 -0
- package/dist-cjs/pagination/ListMembershipsPaginator.js +36 -0
- package/dist-cjs/pagination/ListProtectedQueriesPaginator.js +36 -0
- package/dist-cjs/pagination/ListSchemasPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +3336 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +51 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/CleanRooms.js +513 -0
- package/dist-es/CleanRoomsClient.js +36 -0
- package/dist-es/commands/BatchGetSchemaCommand.js +42 -0
- package/dist-es/commands/CreateCollaborationCommand.js +42 -0
- package/dist-es/commands/CreateConfiguredTableAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/CreateConfiguredTableAssociationCommand.js +42 -0
- package/dist-es/commands/CreateConfiguredTableCommand.js +42 -0
- package/dist-es/commands/CreateMembershipCommand.js +42 -0
- package/dist-es/commands/DeleteCollaborationCommand.js +42 -0
- package/dist-es/commands/DeleteConfiguredTableAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/DeleteConfiguredTableAssociationCommand.js +42 -0
- package/dist-es/commands/DeleteConfiguredTableCommand.js +42 -0
- package/dist-es/commands/DeleteMemberCommand.js +42 -0
- package/dist-es/commands/DeleteMembershipCommand.js +42 -0
- package/dist-es/commands/GetCollaborationCommand.js +42 -0
- package/dist-es/commands/GetConfiguredTableAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/GetConfiguredTableAssociationCommand.js +42 -0
- package/dist-es/commands/GetConfiguredTableCommand.js +42 -0
- package/dist-es/commands/GetMembershipCommand.js +42 -0
- package/dist-es/commands/GetProtectedQueryCommand.js +42 -0
- package/dist-es/commands/GetSchemaAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/GetSchemaCommand.js +42 -0
- package/dist-es/commands/ListCollaborationsCommand.js +42 -0
- package/dist-es/commands/ListConfiguredTableAssociationsCommand.js +42 -0
- package/dist-es/commands/ListConfiguredTablesCommand.js +42 -0
- package/dist-es/commands/ListMembersCommand.js +42 -0
- package/dist-es/commands/ListMembershipsCommand.js +42 -0
- package/dist-es/commands/ListProtectedQueriesCommand.js +42 -0
- package/dist-es/commands/ListSchemasCommand.js +42 -0
- package/dist-es/commands/StartProtectedQueryCommand.js +42 -0
- package/dist-es/commands/UpdateCollaborationCommand.js +42 -0
- package/dist-es/commands/UpdateConfiguredTableAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/UpdateConfiguredTableAssociationCommand.js +42 -0
- package/dist-es/commands/UpdateConfiguredTableCommand.js +42 -0
- package/dist-es/commands/UpdateMembershipCommand.js +42 -0
- package/dist-es/commands/UpdateProtectedQueryCommand.js +42 -0
- package/dist-es/commands/index.js +34 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/CleanRoomsServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +663 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListCollaborationsPaginator.js +32 -0
- package/dist-es/pagination/ListConfiguredTableAssociationsPaginator.js +32 -0
- package/dist-es/pagination/ListConfiguredTablesPaginator.js +32 -0
- package/dist-es/pagination/ListMembersPaginator.js +32 -0
- package/dist-es/pagination/ListMembershipsPaginator.js +32 -0
- package/dist-es/pagination/ListProtectedQueriesPaginator.js +32 -0
- package/dist-es/pagination/ListSchemasPaginator.js +32 -0
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +3264 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +46 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/CleanRooms.d.ts +260 -0
- package/dist-types/CleanRoomsClient.d.ts +185 -0
- package/dist-types/commands/BatchGetSchemaCommand.d.ts +37 -0
- package/dist-types/commands/CreateCollaborationCommand.d.ts +37 -0
- package/dist-types/commands/CreateConfiguredTableAnalysisRuleCommand.d.ts +38 -0
- package/dist-types/commands/CreateConfiguredTableAssociationCommand.d.ts +38 -0
- package/dist-types/commands/CreateConfiguredTableCommand.d.ts +37 -0
- package/dist-types/commands/CreateMembershipCommand.d.ts +38 -0
- package/dist-types/commands/DeleteCollaborationCommand.d.ts +37 -0
- package/dist-types/commands/DeleteConfiguredTableAnalysisRuleCommand.d.ts +37 -0
- package/dist-types/commands/DeleteConfiguredTableAssociationCommand.d.ts +37 -0
- package/dist-types/commands/DeleteConfiguredTableCommand.d.ts +37 -0
- package/dist-types/commands/DeleteMemberCommand.d.ts +39 -0
- package/dist-types/commands/DeleteMembershipCommand.d.ts +37 -0
- package/dist-types/commands/GetCollaborationCommand.d.ts +37 -0
- package/dist-types/commands/GetConfiguredTableAnalysisRuleCommand.d.ts +37 -0
- package/dist-types/commands/GetConfiguredTableAssociationCommand.d.ts +37 -0
- package/dist-types/commands/GetConfiguredTableCommand.d.ts +37 -0
- package/dist-types/commands/GetMembershipCommand.d.ts +37 -0
- package/dist-types/commands/GetProtectedQueryCommand.d.ts +37 -0
- package/dist-types/commands/GetSchemaAnalysisRuleCommand.d.ts +37 -0
- package/dist-types/commands/GetSchemaCommand.d.ts +37 -0
- package/dist-types/commands/ListCollaborationsCommand.d.ts +37 -0
- package/dist-types/commands/ListConfiguredTableAssociationsCommand.d.ts +37 -0
- package/dist-types/commands/ListConfiguredTablesCommand.d.ts +37 -0
- package/dist-types/commands/ListMembersCommand.d.ts +37 -0
- package/dist-types/commands/ListMembershipsCommand.d.ts +37 -0
- package/dist-types/commands/ListProtectedQueriesCommand.d.ts +37 -0
- package/dist-types/commands/ListSchemasCommand.d.ts +37 -0
- package/dist-types/commands/StartProtectedQueryCommand.d.ts +37 -0
- package/dist-types/commands/UpdateCollaborationCommand.d.ts +37 -0
- package/dist-types/commands/UpdateConfiguredTableAnalysisRuleCommand.d.ts +37 -0
- package/dist-types/commands/UpdateConfiguredTableAssociationCommand.d.ts +37 -0
- package/dist-types/commands/UpdateConfiguredTableCommand.d.ts +37 -0
- package/dist-types/commands/UpdateMembershipCommand.d.ts +37 -0
- package/dist-types/commands/UpdateProtectedQueryCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +34 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/CleanRoomsServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2382 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListCollaborationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListConfiguredTableAssociationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListConfiguredTablesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMembersPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMembershipsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListProtectedQueriesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSchemasPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +104 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/CleanRooms.d.ts +600 -0
- package/dist-types/ts3.4/CleanRoomsClient.d.ts +315 -0
- package/dist-types/ts3.4/commands/BatchGetSchemaCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateCollaborationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateConfiguredTableAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateConfiguredTableAssociationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateConfiguredTableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateMembershipCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteCollaborationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteConfiguredTableAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteConfiguredTableAssociationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteConfiguredTableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteMemberCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteMembershipCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetCollaborationCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetConfiguredTableAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetConfiguredTableAssociationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetConfiguredTableCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetMembershipCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetProtectedQueryCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetSchemaAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetSchemaCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListCollaborationsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListConfiguredTableAssociationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListConfiguredTablesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListMembershipsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListProtectedQueriesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSchemasCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/StartProtectedQueryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateCollaborationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateConfiguredTableAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateConfiguredTableAssociationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateConfiguredTableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateMembershipCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateProtectedQueryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/CleanRoomsServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1131 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListCollaborationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConfiguredTableAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConfiguredTablesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMembersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMembershipsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProtectedQueriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSchemasPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +413 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
- package/package.json +103 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CleanRooms } from "../CleanRooms";
|
|
2
|
+
import { CleanRoomsClient } from "../CleanRoomsClient";
|
|
3
|
+
import { ListConfiguredTableAssociationsCommand, } from "../commands/ListConfiguredTableAssociationsCommand";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListConfiguredTableAssociationsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listConfiguredTableAssociations(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListConfiguredTableAssociations(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof CleanRooms) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof CleanRoomsClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected CleanRooms | CleanRoomsClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CleanRooms } from "../CleanRooms";
|
|
2
|
+
import { CleanRoomsClient } from "../CleanRoomsClient";
|
|
3
|
+
import { ListConfiguredTablesCommand, } from "../commands/ListConfiguredTablesCommand";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListConfiguredTablesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listConfiguredTables(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListConfiguredTables(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof CleanRooms) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof CleanRoomsClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected CleanRooms | CleanRoomsClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CleanRooms } from "../CleanRooms";
|
|
2
|
+
import { CleanRoomsClient } from "../CleanRoomsClient";
|
|
3
|
+
import { ListMembersCommand } from "../commands/ListMembersCommand";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListMembersCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listMembers(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListMembers(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof CleanRooms) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof CleanRoomsClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected CleanRooms | CleanRoomsClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CleanRooms } from "../CleanRooms";
|
|
2
|
+
import { CleanRoomsClient } from "../CleanRoomsClient";
|
|
3
|
+
import { ListMembershipsCommand, } from "../commands/ListMembershipsCommand";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListMembershipsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listMemberships(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListMemberships(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof CleanRooms) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof CleanRoomsClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected CleanRooms | CleanRoomsClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CleanRooms } from "../CleanRooms";
|
|
2
|
+
import { CleanRoomsClient } from "../CleanRoomsClient";
|
|
3
|
+
import { ListProtectedQueriesCommand, } from "../commands/ListProtectedQueriesCommand";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListProtectedQueriesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listProtectedQueries(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListProtectedQueries(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof CleanRooms) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof CleanRoomsClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected CleanRooms | CleanRoomsClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CleanRooms } from "../CleanRooms";
|
|
2
|
+
import { CleanRoomsClient } from "../CleanRoomsClient";
|
|
3
|
+
import { ListSchemasCommand } from "../commands/ListSchemasCommand";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListSchemasCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listSchemas(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListSchemas(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof CleanRooms) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof CleanRoomsClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected CleanRooms | CleanRoomsClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
2
|
+
export * from "./ListCollaborationsPaginator";
|
|
3
|
+
export * from "./ListConfiguredTableAssociationsPaginator";
|
|
4
|
+
export * from "./ListConfiguredTablesPaginator";
|
|
5
|
+
export * from "./ListMembersPaginator";
|
|
6
|
+
export * from "./ListMembershipsPaginator";
|
|
7
|
+
export * from "./ListProtectedQueriesPaginator";
|
|
8
|
+
export * from "./ListSchemasPaginator";
|