@aws-sdk/client-service-catalog-appregistry 3.476.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/ListApplicationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssociatedAttributeGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssociatedResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAttributeGroupsForApplicationPaginator.js +2 -24
- package/dist-cjs/pagination/ListAttributeGroupsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +143 -324
- package/dist-es/pagination/ListApplicationsPaginator.js +2 -23
- package/dist-es/pagination/ListAssociatedAttributeGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListAssociatedResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListAttributeGroupsForApplicationPaginator.js +2 -23
- package/dist-es/pagination/ListAttributeGroupsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +144 -325
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssociatedAttributeGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssociatedResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAttributeGroupsForApplicationPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAttributeGroupsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssociatedAttributeGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssociatedResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAttributeGroupsForApplicationPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAttributeGroupsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
|
|
2
3
|
import { ServiceCatalogAppRegistryClient } from "../ServiceCatalogAppRegistryClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListApplicationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListApplications(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 ServiceCatalogAppRegistryClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
|
|
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 paginateListApplications = createPaginator(ServiceCatalogAppRegistryClient, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAssociatedAttributeGroupsCommand, } from "../commands/ListAssociatedAttributeGroupsCommand";
|
|
2
3
|
import { ServiceCatalogAppRegistryClient } from "../ServiceCatalogAppRegistryClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAssociatedAttributeGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAssociatedAttributeGroups(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 ServiceCatalogAppRegistryClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
|
|
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 paginateListAssociatedAttributeGroups = createPaginator(ServiceCatalogAppRegistryClient, ListAssociatedAttributeGroupsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAssociatedResourcesCommand, } from "../commands/ListAssociatedResourcesCommand";
|
|
2
3
|
import { ServiceCatalogAppRegistryClient } from "../ServiceCatalogAppRegistryClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAssociatedResourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAssociatedResources(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 ServiceCatalogAppRegistryClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
|
|
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 paginateListAssociatedResources = createPaginator(ServiceCatalogAppRegistryClient, ListAssociatedResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAttributeGroupsForApplicationCommand, } from "../commands/ListAttributeGroupsForApplicationCommand";
|
|
2
3
|
import { ServiceCatalogAppRegistryClient } from "../ServiceCatalogAppRegistryClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAttributeGroupsForApplicationCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAttributeGroupsForApplication(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 ServiceCatalogAppRegistryClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
|
|
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 paginateListAttributeGroupsForApplication = createPaginator(ServiceCatalogAppRegistryClient, ListAttributeGroupsForApplicationCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAttributeGroupsCommand, } from "../commands/ListAttributeGroupsCommand";
|
|
2
3
|
import { ServiceCatalogAppRegistryClient } from "../ServiceCatalogAppRegistryClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAttributeGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAttributeGroups(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 ServiceCatalogAppRegistryClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
|
|
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 paginateListAttributeGroups = createPaginator(ServiceCatalogAppRegistryClient, ListAttributeGroupsCommand, "nextToken", "nextToken", "maxResults");
|