@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.
Files changed (51) hide show
  1. package/dist-cjs/pagination/GetApiKeysPaginator.js +2 -24
  2. package/dist-cjs/pagination/GetBasePathMappingsPaginator.js +2 -24
  3. package/dist-cjs/pagination/GetClientCertificatesPaginator.js +2 -24
  4. package/dist-cjs/pagination/GetDeploymentsPaginator.js +2 -24
  5. package/dist-cjs/pagination/GetDomainNamesPaginator.js +2 -24
  6. package/dist-cjs/pagination/GetModelsPaginator.js +2 -24
  7. package/dist-cjs/pagination/GetResourcesPaginator.js +2 -24
  8. package/dist-cjs/pagination/GetRestApisPaginator.js +2 -24
  9. package/dist-cjs/pagination/GetUsagePaginator.js +2 -24
  10. package/dist-cjs/pagination/GetUsagePlanKeysPaginator.js +2 -24
  11. package/dist-cjs/pagination/GetUsagePlansPaginator.js +2 -24
  12. package/dist-cjs/pagination/GetVpcLinksPaginator.js +2 -24
  13. package/dist-cjs/protocols/Aws_restJson1.js +773 -1669
  14. package/dist-es/pagination/GetApiKeysPaginator.js +2 -23
  15. package/dist-es/pagination/GetBasePathMappingsPaginator.js +2 -23
  16. package/dist-es/pagination/GetClientCertificatesPaginator.js +2 -23
  17. package/dist-es/pagination/GetDeploymentsPaginator.js +2 -23
  18. package/dist-es/pagination/GetDomainNamesPaginator.js +2 -23
  19. package/dist-es/pagination/GetModelsPaginator.js +2 -23
  20. package/dist-es/pagination/GetResourcesPaginator.js +2 -23
  21. package/dist-es/pagination/GetRestApisPaginator.js +2 -23
  22. package/dist-es/pagination/GetUsagePaginator.js +2 -23
  23. package/dist-es/pagination/GetUsagePlanKeysPaginator.js +2 -23
  24. package/dist-es/pagination/GetUsagePlansPaginator.js +2 -23
  25. package/dist-es/pagination/GetVpcLinksPaginator.js +2 -23
  26. package/dist-es/protocols/Aws_restJson1.js +774 -1670
  27. package/dist-types/pagination/GetApiKeysPaginator.d.ts +1 -1
  28. package/dist-types/pagination/GetBasePathMappingsPaginator.d.ts +1 -1
  29. package/dist-types/pagination/GetClientCertificatesPaginator.d.ts +1 -1
  30. package/dist-types/pagination/GetDeploymentsPaginator.d.ts +1 -1
  31. package/dist-types/pagination/GetDomainNamesPaginator.d.ts +1 -1
  32. package/dist-types/pagination/GetModelsPaginator.d.ts +1 -1
  33. package/dist-types/pagination/GetResourcesPaginator.d.ts +1 -1
  34. package/dist-types/pagination/GetRestApisPaginator.d.ts +1 -1
  35. package/dist-types/pagination/GetUsagePaginator.d.ts +1 -1
  36. package/dist-types/pagination/GetUsagePlanKeysPaginator.d.ts +1 -1
  37. package/dist-types/pagination/GetUsagePlansPaginator.d.ts +1 -1
  38. package/dist-types/pagination/GetVpcLinksPaginator.d.ts +1 -1
  39. package/dist-types/ts3.4/pagination/GetApiKeysPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/GetBasePathMappingsPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/GetClientCertificatesPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/GetDeploymentsPaginator.d.ts +3 -3
  43. package/dist-types/ts3.4/pagination/GetDomainNamesPaginator.d.ts +3 -3
  44. package/dist-types/ts3.4/pagination/GetModelsPaginator.d.ts +3 -3
  45. package/dist-types/ts3.4/pagination/GetResourcesPaginator.d.ts +3 -3
  46. package/dist-types/ts3.4/pagination/GetRestApisPaginator.d.ts +3 -3
  47. package/dist-types/ts3.4/pagination/GetUsagePaginator.d.ts +3 -3
  48. package/dist-types/ts3.4/pagination/GetUsagePlanKeysPaginator.d.ts +3 -3
  49. package/dist-types/ts3.4/pagination/GetUsagePlansPaginator.d.ts +3 -3
  50. package/dist-types/ts3.4/pagination/GetVpcLinksPaginator.d.ts +3 -3
  51. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetApiKeys = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const APIGatewayClient_1 = require("../APIGatewayClient");
5
6
  const GetApiKeysCommand_1 = require("../commands/GetApiKeysCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetApiKeysCommand_1.GetApiKeysCommand(input), ...args);
8
- };
9
- async function* paginateGetApiKeys(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.position = token;
15
- input["limit"] = config.pageSize;
16
- if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.position;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetApiKeys = paginateGetApiKeys;
7
+ exports.paginateGetApiKeys = (0, core_1.createPaginator)(APIGatewayClient_1.APIGatewayClient, GetApiKeysCommand_1.GetApiKeysCommand, "position", "position", "limit");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetBasePathMappings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const APIGatewayClient_1 = require("../APIGatewayClient");
5
6
  const GetBasePathMappingsCommand_1 = require("../commands/GetBasePathMappingsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetBasePathMappingsCommand_1.GetBasePathMappingsCommand(input), ...args);
8
- };
9
- async function* paginateGetBasePathMappings(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.position = token;
15
- input["limit"] = config.pageSize;
16
- if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.position;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetBasePathMappings = paginateGetBasePathMappings;
7
+ exports.paginateGetBasePathMappings = (0, core_1.createPaginator)(APIGatewayClient_1.APIGatewayClient, GetBasePathMappingsCommand_1.GetBasePathMappingsCommand, "position", "position", "limit");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetClientCertificates = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const APIGatewayClient_1 = require("../APIGatewayClient");
5
6
  const GetClientCertificatesCommand_1 = require("../commands/GetClientCertificatesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetClientCertificatesCommand_1.GetClientCertificatesCommand(input), ...args);
8
- };
9
- async function* paginateGetClientCertificates(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.position = token;
15
- input["limit"] = config.pageSize;
16
- if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.position;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetClientCertificates = paginateGetClientCertificates;
7
+ exports.paginateGetClientCertificates = (0, core_1.createPaginator)(APIGatewayClient_1.APIGatewayClient, GetClientCertificatesCommand_1.GetClientCertificatesCommand, "position", "position", "limit");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetDeployments = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const APIGatewayClient_1 = require("../APIGatewayClient");
5
6
  const GetDeploymentsCommand_1 = require("../commands/GetDeploymentsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetDeploymentsCommand_1.GetDeploymentsCommand(input), ...args);
8
- };
9
- async function* paginateGetDeployments(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.position = token;
15
- input["limit"] = config.pageSize;
16
- if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.position;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetDeployments = paginateGetDeployments;
7
+ exports.paginateGetDeployments = (0, core_1.createPaginator)(APIGatewayClient_1.APIGatewayClient, GetDeploymentsCommand_1.GetDeploymentsCommand, "position", "position", "limit");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetDomainNames = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const APIGatewayClient_1 = require("../APIGatewayClient");
5
6
  const GetDomainNamesCommand_1 = require("../commands/GetDomainNamesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetDomainNamesCommand_1.GetDomainNamesCommand(input), ...args);
8
- };
9
- async function* paginateGetDomainNames(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.position = token;
15
- input["limit"] = config.pageSize;
16
- if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.position;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetDomainNames = paginateGetDomainNames;
7
+ exports.paginateGetDomainNames = (0, core_1.createPaginator)(APIGatewayClient_1.APIGatewayClient, GetDomainNamesCommand_1.GetDomainNamesCommand, "position", "position", "limit");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetModels = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const APIGatewayClient_1 = require("../APIGatewayClient");
5
6
  const GetModelsCommand_1 = require("../commands/GetModelsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetModelsCommand_1.GetModelsCommand(input), ...args);
8
- };
9
- async function* paginateGetModels(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.position = token;
15
- input["limit"] = config.pageSize;
16
- if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.position;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetModels = paginateGetModels;
7
+ exports.paginateGetModels = (0, core_1.createPaginator)(APIGatewayClient_1.APIGatewayClient, GetModelsCommand_1.GetModelsCommand, "position", "position", "limit");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetResources = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const APIGatewayClient_1 = require("../APIGatewayClient");
5
6
  const GetResourcesCommand_1 = require("../commands/GetResourcesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetResourcesCommand_1.GetResourcesCommand(input), ...args);
8
- };
9
- async function* paginateGetResources(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.position = token;
15
- input["limit"] = config.pageSize;
16
- if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.position;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetResources = paginateGetResources;
7
+ exports.paginateGetResources = (0, core_1.createPaginator)(APIGatewayClient_1.APIGatewayClient, GetResourcesCommand_1.GetResourcesCommand, "position", "position", "limit");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetRestApis = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const APIGatewayClient_1 = require("../APIGatewayClient");
5
6
  const GetRestApisCommand_1 = require("../commands/GetRestApisCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetRestApisCommand_1.GetRestApisCommand(input), ...args);
8
- };
9
- async function* paginateGetRestApis(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.position = token;
15
- input["limit"] = config.pageSize;
16
- if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.position;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetRestApis = paginateGetRestApis;
7
+ exports.paginateGetRestApis = (0, core_1.createPaginator)(APIGatewayClient_1.APIGatewayClient, GetRestApisCommand_1.GetRestApisCommand, "position", "position", "limit");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetUsage = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const APIGatewayClient_1 = require("../APIGatewayClient");
5
6
  const GetUsageCommand_1 = require("../commands/GetUsageCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetUsageCommand_1.GetUsageCommand(input), ...args);
8
- };
9
- async function* paginateGetUsage(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.position = token;
15
- input["limit"] = config.pageSize;
16
- if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.position;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetUsage = paginateGetUsage;
7
+ exports.paginateGetUsage = (0, core_1.createPaginator)(APIGatewayClient_1.APIGatewayClient, GetUsageCommand_1.GetUsageCommand, "position", "position", "limit");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetUsagePlanKeys = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const APIGatewayClient_1 = require("../APIGatewayClient");
5
6
  const GetUsagePlanKeysCommand_1 = require("../commands/GetUsagePlanKeysCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetUsagePlanKeysCommand_1.GetUsagePlanKeysCommand(input), ...args);
8
- };
9
- async function* paginateGetUsagePlanKeys(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.position = token;
15
- input["limit"] = config.pageSize;
16
- if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.position;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetUsagePlanKeys = paginateGetUsagePlanKeys;
7
+ exports.paginateGetUsagePlanKeys = (0, core_1.createPaginator)(APIGatewayClient_1.APIGatewayClient, GetUsagePlanKeysCommand_1.GetUsagePlanKeysCommand, "position", "position", "limit");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetUsagePlans = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const APIGatewayClient_1 = require("../APIGatewayClient");
5
6
  const GetUsagePlansCommand_1 = require("../commands/GetUsagePlansCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetUsagePlansCommand_1.GetUsagePlansCommand(input), ...args);
8
- };
9
- async function* paginateGetUsagePlans(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.position = token;
15
- input["limit"] = config.pageSize;
16
- if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.position;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetUsagePlans = paginateGetUsagePlans;
7
+ exports.paginateGetUsagePlans = (0, core_1.createPaginator)(APIGatewayClient_1.APIGatewayClient, GetUsagePlansCommand_1.GetUsagePlansCommand, "position", "position", "limit");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetVpcLinks = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const APIGatewayClient_1 = require("../APIGatewayClient");
5
6
  const GetVpcLinksCommand_1 = require("../commands/GetVpcLinksCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetVpcLinksCommand_1.GetVpcLinksCommand(input), ...args);
8
- };
9
- async function* paginateGetVpcLinks(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.position = token;
15
- input["limit"] = config.pageSize;
16
- if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected APIGateway | APIGatewayClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.position;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetVpcLinks = paginateGetVpcLinks;
7
+ exports.paginateGetVpcLinks = (0, core_1.createPaginator)(APIGatewayClient_1.APIGatewayClient, GetVpcLinksCommand_1.GetVpcLinksCommand, "position", "position", "limit");