@aws-sdk/client-api-gateway 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/GetApiKeysPaginator.js +2 -24
- package/dist-cjs/pagination/GetBasePathMappingsPaginator.js +2 -24
- package/dist-cjs/pagination/GetClientCertificatesPaginator.js +2 -24
- package/dist-cjs/pagination/GetDeploymentsPaginator.js +2 -24
- package/dist-cjs/pagination/GetDomainNamesPaginator.js +2 -24
- package/dist-cjs/pagination/GetModelsPaginator.js +2 -24
- package/dist-cjs/pagination/GetResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/GetRestApisPaginator.js +2 -24
- package/dist-cjs/pagination/GetUsagePaginator.js +2 -24
- package/dist-cjs/pagination/GetUsagePlanKeysPaginator.js +2 -24
- package/dist-cjs/pagination/GetUsagePlansPaginator.js +2 -24
- package/dist-cjs/pagination/GetVpcLinksPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +773 -1669
- package/dist-es/pagination/GetApiKeysPaginator.js +2 -23
- package/dist-es/pagination/GetBasePathMappingsPaginator.js +2 -23
- package/dist-es/pagination/GetClientCertificatesPaginator.js +2 -23
- package/dist-es/pagination/GetDeploymentsPaginator.js +2 -23
- package/dist-es/pagination/GetDomainNamesPaginator.js +2 -23
- package/dist-es/pagination/GetModelsPaginator.js +2 -23
- package/dist-es/pagination/GetResourcesPaginator.js +2 -23
- package/dist-es/pagination/GetRestApisPaginator.js +2 -23
- package/dist-es/pagination/GetUsagePaginator.js +2 -23
- package/dist-es/pagination/GetUsagePlanKeysPaginator.js +2 -23
- package/dist-es/pagination/GetUsagePlansPaginator.js +2 -23
- package/dist-es/pagination/GetVpcLinksPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +774 -1670
- package/dist-types/pagination/GetApiKeysPaginator.d.ts +1 -1
- package/dist-types/pagination/GetBasePathMappingsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetClientCertificatesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetDeploymentsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetDomainNamesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetModelsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetRestApisPaginator.d.ts +1 -1
- package/dist-types/pagination/GetUsagePaginator.d.ts +1 -1
- package/dist-types/pagination/GetUsagePlanKeysPaginator.d.ts +1 -1
- package/dist-types/pagination/GetUsagePlansPaginator.d.ts +1 -1
- package/dist-types/pagination/GetVpcLinksPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetApiKeysPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetBasePathMappingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetClientCertificatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetDeploymentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetDomainNamesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetModelsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetRestApisPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetUsagePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetUsagePlanKeysPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetUsagePlansPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetVpcLinksPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { APIGatewayClient } from "../APIGatewayClient";
|
|
2
3
|
import { GetApiKeysCommand } from "../commands/GetApiKeysCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetApiKeysCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetApiKeys(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.position = token;
|
|
12
|
-
input["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof APIGatewayClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.position;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetApiKeys = createPaginator(APIGatewayClient, GetApiKeysCommand, "position", "position", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { APIGatewayClient } from "../APIGatewayClient";
|
|
2
3
|
import { GetBasePathMappingsCommand, } from "../commands/GetBasePathMappingsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetBasePathMappingsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetBasePathMappings(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.position = token;
|
|
12
|
-
input["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof APIGatewayClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.position;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetBasePathMappings = createPaginator(APIGatewayClient, GetBasePathMappingsCommand, "position", "position", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { APIGatewayClient } from "../APIGatewayClient";
|
|
2
3
|
import { GetClientCertificatesCommand, } from "../commands/GetClientCertificatesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetClientCertificatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetClientCertificates(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.position = token;
|
|
12
|
-
input["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof APIGatewayClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.position;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetClientCertificates = createPaginator(APIGatewayClient, GetClientCertificatesCommand, "position", "position", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { APIGatewayClient } from "../APIGatewayClient";
|
|
2
3
|
import { GetDeploymentsCommand, } from "../commands/GetDeploymentsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetDeploymentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetDeployments(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.position = token;
|
|
12
|
-
input["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof APIGatewayClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.position;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetDeployments = createPaginator(APIGatewayClient, GetDeploymentsCommand, "position", "position", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { APIGatewayClient } from "../APIGatewayClient";
|
|
2
3
|
import { GetDomainNamesCommand, } from "../commands/GetDomainNamesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetDomainNamesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetDomainNames(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.position = token;
|
|
12
|
-
input["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof APIGatewayClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.position;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetDomainNames = createPaginator(APIGatewayClient, GetDomainNamesCommand, "position", "position", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { APIGatewayClient } from "../APIGatewayClient";
|
|
2
3
|
import { GetModelsCommand } from "../commands/GetModelsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetModelsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetModels(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.position = token;
|
|
12
|
-
input["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof APIGatewayClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.position;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetModels = createPaginator(APIGatewayClient, GetModelsCommand, "position", "position", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { APIGatewayClient } from "../APIGatewayClient";
|
|
2
3
|
import { GetResourcesCommand, } from "../commands/GetResourcesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetResourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetResources(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.position = token;
|
|
12
|
-
input["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof APIGatewayClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.position;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetResources = createPaginator(APIGatewayClient, GetResourcesCommand, "position", "position", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { APIGatewayClient } from "../APIGatewayClient";
|
|
2
3
|
import { GetRestApisCommand } from "../commands/GetRestApisCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetRestApisCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetRestApis(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.position = token;
|
|
12
|
-
input["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof APIGatewayClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.position;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetRestApis = createPaginator(APIGatewayClient, GetRestApisCommand, "position", "position", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { APIGatewayClient } from "../APIGatewayClient";
|
|
2
3
|
import { GetUsageCommand } from "../commands/GetUsageCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetUsageCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetUsage(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.position = token;
|
|
12
|
-
input["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof APIGatewayClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.position;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetUsage = createPaginator(APIGatewayClient, GetUsageCommand, "position", "position", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { APIGatewayClient } from "../APIGatewayClient";
|
|
2
3
|
import { GetUsagePlanKeysCommand, } from "../commands/GetUsagePlanKeysCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetUsagePlanKeysCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetUsagePlanKeys(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.position = token;
|
|
12
|
-
input["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof APIGatewayClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.position;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetUsagePlanKeys = createPaginator(APIGatewayClient, GetUsagePlanKeysCommand, "position", "position", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { APIGatewayClient } from "../APIGatewayClient";
|
|
2
3
|
import { GetUsagePlansCommand, } from "../commands/GetUsagePlansCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetUsagePlansCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetUsagePlans(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.position = token;
|
|
12
|
-
input["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof APIGatewayClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.position;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetUsagePlans = createPaginator(APIGatewayClient, GetUsagePlansCommand, "position", "position", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { APIGatewayClient } from "../APIGatewayClient";
|
|
2
3
|
import { GetVpcLinksCommand } from "../commands/GetVpcLinksCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetVpcLinksCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetVpcLinks(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.position = token;
|
|
12
|
-
input["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof APIGatewayClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.position;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetVpcLinks = createPaginator(APIGatewayClient, GetVpcLinksCommand, "position", "position", "limit");
|