@aws-sdk/client-datazone 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/ListAssetRevisionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataSourceRunActivitiesPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataSourceRunsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListDomainsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEnvironmentBlueprintConfigurationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEnvironmentBlueprintsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEnvironmentProfilesPaginator.js +2 -24
- package/dist-cjs/pagination/ListEnvironmentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListNotificationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListProjectMembershipsPaginator.js +2 -24
- package/dist-cjs/pagination/ListProjectsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSubscriptionGrantsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSubscriptionRequestsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSubscriptionTargetsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSubscriptionsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchGroupProfilesPaginator.js +2 -24
- package/dist-cjs/pagination/SearchListingsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchPaginator.js +2 -24
- package/dist-cjs/pagination/SearchTypesPaginator.js +2 -24
- package/dist-cjs/pagination/SearchUserProfilesPaginator.js +2 -24
- package/dist-es/pagination/ListAssetRevisionsPaginator.js +2 -23
- package/dist-es/pagination/ListDataSourceRunActivitiesPaginator.js +2 -23
- package/dist-es/pagination/ListDataSourceRunsPaginator.js +2 -23
- package/dist-es/pagination/ListDataSourcesPaginator.js +2 -23
- package/dist-es/pagination/ListDomainsPaginator.js +2 -23
- package/dist-es/pagination/ListEnvironmentBlueprintConfigurationsPaginator.js +2 -23
- package/dist-es/pagination/ListEnvironmentBlueprintsPaginator.js +2 -23
- package/dist-es/pagination/ListEnvironmentProfilesPaginator.js +2 -23
- package/dist-es/pagination/ListEnvironmentsPaginator.js +2 -23
- package/dist-es/pagination/ListNotificationsPaginator.js +2 -23
- package/dist-es/pagination/ListProjectMembershipsPaginator.js +2 -23
- package/dist-es/pagination/ListProjectsPaginator.js +2 -23
- package/dist-es/pagination/ListSubscriptionGrantsPaginator.js +2 -23
- package/dist-es/pagination/ListSubscriptionRequestsPaginator.js +2 -23
- package/dist-es/pagination/ListSubscriptionTargetsPaginator.js +2 -23
- package/dist-es/pagination/ListSubscriptionsPaginator.js +2 -23
- package/dist-es/pagination/SearchGroupProfilesPaginator.js +2 -23
- package/dist-es/pagination/SearchListingsPaginator.js +2 -23
- package/dist-es/pagination/SearchPaginator.js +2 -23
- package/dist-es/pagination/SearchTypesPaginator.js +2 -23
- package/dist-es/pagination/SearchUserProfilesPaginator.js +2 -23
- package/dist-types/pagination/ListAssetRevisionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataSourceRunActivitiesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataSourceRunsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDomainsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEnvironmentBlueprintConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEnvironmentBlueprintsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEnvironmentProfilesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListNotificationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProjectMembershipsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSubscriptionGrantsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSubscriptionRequestsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSubscriptionTargetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSubscriptionsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchGroupProfilesPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchListingsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchTypesPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchUserProfilesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAssetRevisionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataSourceRunActivitiesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataSourceRunsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDomainsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEnvironmentBlueprintConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEnvironmentBlueprintsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEnvironmentProfilesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListNotificationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProjectMembershipsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSubscriptionGrantsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSubscriptionRequestsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSubscriptionTargetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchGroupProfilesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchListingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchTypesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchUserProfilesPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchTypes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchTypesCommand_1 = require("../commands/SearchTypesCommand");
|
|
5
6
|
const DataZoneClient_1 = require("../DataZoneClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchTypesCommand_1.SearchTypesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchTypes(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 DataZoneClient_1.DataZoneClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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.paginateSearchTypes = paginateSearchTypes;
|
|
7
|
+
exports.paginateSearchTypes = (0, core_1.createPaginator)(DataZoneClient_1.DataZoneClient, SearchTypesCommand_1.SearchTypesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchUserProfiles = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchUserProfilesCommand_1 = require("../commands/SearchUserProfilesCommand");
|
|
5
6
|
const DataZoneClient_1 = require("../DataZoneClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchUserProfilesCommand_1.SearchUserProfilesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchUserProfiles(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 DataZoneClient_1.DataZoneClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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.paginateSearchUserProfiles = paginateSearchUserProfiles;
|
|
7
|
+
exports.paginateSearchUserProfiles = (0, core_1.createPaginator)(DataZoneClient_1.DataZoneClient, SearchUserProfilesCommand_1.SearchUserProfilesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAssetRevisionsCommand, } from "../commands/ListAssetRevisionsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAssetRevisionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAssetRevisions(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListAssetRevisions = createPaginator(DataZoneClient, ListAssetRevisionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDataSourceRunActivitiesCommand, } from "../commands/ListDataSourceRunActivitiesCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDataSourceRunActivitiesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDataSourceRunActivities(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListDataSourceRunActivities = createPaginator(DataZoneClient, ListDataSourceRunActivitiesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDataSourceRunsCommand, } from "../commands/ListDataSourceRunsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDataSourceRunsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDataSourceRuns(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListDataSourceRuns = createPaginator(DataZoneClient, ListDataSourceRunsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDataSourcesCommand, } from "../commands/ListDataSourcesCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDataSourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDataSources(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListDataSources = createPaginator(DataZoneClient, ListDataSourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDomainsCommand } from "../commands/ListDomainsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDomainsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDomains(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListDomains = createPaginator(DataZoneClient, ListDomainsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEnvironmentBlueprintConfigurationsCommand, } from "../commands/ListEnvironmentBlueprintConfigurationsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEnvironmentBlueprintConfigurationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEnvironmentBlueprintConfigurations(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListEnvironmentBlueprintConfigurations = createPaginator(DataZoneClient, ListEnvironmentBlueprintConfigurationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEnvironmentBlueprintsCommand, } from "../commands/ListEnvironmentBlueprintsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEnvironmentBlueprintsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEnvironmentBlueprints(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListEnvironmentBlueprints = createPaginator(DataZoneClient, ListEnvironmentBlueprintsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEnvironmentProfilesCommand, } from "../commands/ListEnvironmentProfilesCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEnvironmentProfilesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEnvironmentProfiles(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListEnvironmentProfiles = createPaginator(DataZoneClient, ListEnvironmentProfilesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEnvironmentsCommand, } from "../commands/ListEnvironmentsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEnvironmentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEnvironments(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListEnvironments = createPaginator(DataZoneClient, ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListNotificationsCommand, } from "../commands/ListNotificationsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListNotificationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListNotifications(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListNotifications = createPaginator(DataZoneClient, ListNotificationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListProjectMembershipsCommand, } from "../commands/ListProjectMembershipsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProjectMembershipsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProjectMemberships(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListProjectMemberships = createPaginator(DataZoneClient, ListProjectMembershipsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListProjectsCommand, } from "../commands/ListProjectsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProjectsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProjects(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListProjects = createPaginator(DataZoneClient, ListProjectsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSubscriptionGrantsCommand, } from "../commands/ListSubscriptionGrantsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSubscriptionGrantsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSubscriptionGrants(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListSubscriptionGrants = createPaginator(DataZoneClient, ListSubscriptionGrantsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSubscriptionRequestsCommand, } from "../commands/ListSubscriptionRequestsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSubscriptionRequestsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSubscriptionRequests(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListSubscriptionRequests = createPaginator(DataZoneClient, ListSubscriptionRequestsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSubscriptionTargetsCommand, } from "../commands/ListSubscriptionTargetsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSubscriptionTargetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSubscriptionTargets(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListSubscriptionTargets = createPaginator(DataZoneClient, ListSubscriptionTargetsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSubscriptionsCommand, } from "../commands/ListSubscriptionsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSubscriptionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSubscriptions(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateListSubscriptions = createPaginator(DataZoneClient, ListSubscriptionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchGroupProfilesCommand, } from "../commands/SearchGroupProfilesCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchGroupProfilesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchGroupProfiles(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateSearchGroupProfiles = createPaginator(DataZoneClient, SearchGroupProfilesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchListingsCommand, } from "../commands/SearchListingsCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchListingsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchListings(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateSearchListings = createPaginator(DataZoneClient, SearchListingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchCommand } from "../commands/SearchCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearch(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateSearch = createPaginator(DataZoneClient, SearchCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchTypesCommand } from "../commands/SearchTypesCommand";
|
|
2
3
|
import { DataZoneClient } from "../DataZoneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchTypesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchTypes(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 DataZoneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DataZone | DataZoneClient");
|
|
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 paginateSearchTypes = createPaginator(DataZoneClient, SearchTypesCommand, "nextToken", "nextToken", "maxResults");
|