@aws-sdk/client-api-gateway 3.282.0 → 3.287.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 (27) hide show
  1. package/dist-cjs/pagination/GetApiKeysPaginator.js +1 -8
  2. package/dist-cjs/pagination/GetBasePathMappingsPaginator.js +1 -8
  3. package/dist-cjs/pagination/GetClientCertificatesPaginator.js +1 -8
  4. package/dist-cjs/pagination/GetDeploymentsPaginator.js +1 -8
  5. package/dist-cjs/pagination/GetDomainNamesPaginator.js +1 -8
  6. package/dist-cjs/pagination/GetModelsPaginator.js +1 -8
  7. package/dist-cjs/pagination/GetResourcesPaginator.js +1 -8
  8. package/dist-cjs/pagination/GetRestApisPaginator.js +1 -8
  9. package/dist-cjs/pagination/GetUsagePaginator.js +1 -8
  10. package/dist-cjs/pagination/GetUsagePlanKeysPaginator.js +1 -8
  11. package/dist-cjs/pagination/GetUsagePlansPaginator.js +1 -8
  12. package/dist-cjs/pagination/GetVpcLinksPaginator.js +1 -8
  13. package/dist-es/pagination/GetApiKeysPaginator.js +1 -8
  14. package/dist-es/pagination/GetBasePathMappingsPaginator.js +1 -8
  15. package/dist-es/pagination/GetClientCertificatesPaginator.js +1 -8
  16. package/dist-es/pagination/GetDeploymentsPaginator.js +1 -8
  17. package/dist-es/pagination/GetDomainNamesPaginator.js +1 -8
  18. package/dist-es/pagination/GetModelsPaginator.js +1 -8
  19. package/dist-es/pagination/GetResourcesPaginator.js +1 -8
  20. package/dist-es/pagination/GetRestApisPaginator.js +1 -8
  21. package/dist-es/pagination/GetUsagePaginator.js +1 -8
  22. package/dist-es/pagination/GetUsagePlanKeysPaginator.js +1 -8
  23. package/dist-es/pagination/GetUsagePlansPaginator.js +1 -8
  24. package/dist-es/pagination/GetVpcLinksPaginator.js +1 -8
  25. package/dist-types/pagination/Interfaces.d.ts +1 -2
  26. package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
  27. package/package.json +9 -9
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetApiKeys = void 0;
4
- const APIGateway_1 = require("../APIGateway");
5
4
  const APIGatewayClient_1 = require("../APIGatewayClient");
6
5
  const GetApiKeysCommand_1 = require("../commands/GetApiKeysCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetApiKeysCommand_1.GetApiKeysCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getApiKeys(input, ...args);
12
- };
13
9
  async function* paginateGetApiKeys(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetApiKeys(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.position = token;
19
15
  input["limit"] = config.pageSize;
20
- if (config.client instanceof APIGateway_1.APIGateway) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
16
+ if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetBasePathMappings = void 0;
4
- const APIGateway_1 = require("../APIGateway");
5
4
  const APIGatewayClient_1 = require("../APIGatewayClient");
6
5
  const GetBasePathMappingsCommand_1 = require("../commands/GetBasePathMappingsCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetBasePathMappingsCommand_1.GetBasePathMappingsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getBasePathMappings(input, ...args);
12
- };
13
9
  async function* paginateGetBasePathMappings(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetBasePathMappings(config, input, ...additionalArgument
17
13
  while (hasNext) {
18
14
  input.position = token;
19
15
  input["limit"] = config.pageSize;
20
- if (config.client instanceof APIGateway_1.APIGateway) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
16
+ if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetClientCertificates = void 0;
4
- const APIGateway_1 = require("../APIGateway");
5
4
  const APIGatewayClient_1 = require("../APIGatewayClient");
6
5
  const GetClientCertificatesCommand_1 = require("../commands/GetClientCertificatesCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetClientCertificatesCommand_1.GetClientCertificatesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getClientCertificates(input, ...args);
12
- };
13
9
  async function* paginateGetClientCertificates(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetClientCertificates(config, input, ...additionalArgume
17
13
  while (hasNext) {
18
14
  input.position = token;
19
15
  input["limit"] = config.pageSize;
20
- if (config.client instanceof APIGateway_1.APIGateway) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
16
+ if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetDeployments = void 0;
4
- const APIGateway_1 = require("../APIGateway");
5
4
  const APIGatewayClient_1 = require("../APIGatewayClient");
6
5
  const GetDeploymentsCommand_1 = require("../commands/GetDeploymentsCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetDeploymentsCommand_1.GetDeploymentsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getDeployments(input, ...args);
12
- };
13
9
  async function* paginateGetDeployments(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetDeployments(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.position = token;
19
15
  input["limit"] = config.pageSize;
20
- if (config.client instanceof APIGateway_1.APIGateway) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
16
+ if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetDomainNames = void 0;
4
- const APIGateway_1 = require("../APIGateway");
5
4
  const APIGatewayClient_1 = require("../APIGatewayClient");
6
5
  const GetDomainNamesCommand_1 = require("../commands/GetDomainNamesCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetDomainNamesCommand_1.GetDomainNamesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getDomainNames(input, ...args);
12
- };
13
9
  async function* paginateGetDomainNames(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetDomainNames(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.position = token;
19
15
  input["limit"] = config.pageSize;
20
- if (config.client instanceof APIGateway_1.APIGateway) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
16
+ if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetModels = void 0;
4
- const APIGateway_1 = require("../APIGateway");
5
4
  const APIGatewayClient_1 = require("../APIGatewayClient");
6
5
  const GetModelsCommand_1 = require("../commands/GetModelsCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetModelsCommand_1.GetModelsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getModels(input, ...args);
12
- };
13
9
  async function* paginateGetModels(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetModels(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.position = token;
19
15
  input["limit"] = config.pageSize;
20
- if (config.client instanceof APIGateway_1.APIGateway) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
16
+ if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetResources = void 0;
4
- const APIGateway_1 = require("../APIGateway");
5
4
  const APIGatewayClient_1 = require("../APIGatewayClient");
6
5
  const GetResourcesCommand_1 = require("../commands/GetResourcesCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetResourcesCommand_1.GetResourcesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getResources(input, ...args);
12
- };
13
9
  async function* paginateGetResources(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetResources(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.position = token;
19
15
  input["limit"] = config.pageSize;
20
- if (config.client instanceof APIGateway_1.APIGateway) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
16
+ if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetRestApis = void 0;
4
- const APIGateway_1 = require("../APIGateway");
5
4
  const APIGatewayClient_1 = require("../APIGatewayClient");
6
5
  const GetRestApisCommand_1 = require("../commands/GetRestApisCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetRestApisCommand_1.GetRestApisCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getRestApis(input, ...args);
12
- };
13
9
  async function* paginateGetRestApis(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetRestApis(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.position = token;
19
15
  input["limit"] = config.pageSize;
20
- if (config.client instanceof APIGateway_1.APIGateway) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
16
+ if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetUsage = void 0;
4
- const APIGateway_1 = require("../APIGateway");
5
4
  const APIGatewayClient_1 = require("../APIGatewayClient");
6
5
  const GetUsageCommand_1 = require("../commands/GetUsageCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetUsageCommand_1.GetUsageCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getUsage(input, ...args);
12
- };
13
9
  async function* paginateGetUsage(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetUsage(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.position = token;
19
15
  input["limit"] = config.pageSize;
20
- if (config.client instanceof APIGateway_1.APIGateway) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
16
+ if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetUsagePlanKeys = void 0;
4
- const APIGateway_1 = require("../APIGateway");
5
4
  const APIGatewayClient_1 = require("../APIGatewayClient");
6
5
  const GetUsagePlanKeysCommand_1 = require("../commands/GetUsagePlanKeysCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetUsagePlanKeysCommand_1.GetUsagePlanKeysCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getUsagePlanKeys(input, ...args);
12
- };
13
9
  async function* paginateGetUsagePlanKeys(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetUsagePlanKeys(config, input, ...additionalArguments)
17
13
  while (hasNext) {
18
14
  input.position = token;
19
15
  input["limit"] = config.pageSize;
20
- if (config.client instanceof APIGateway_1.APIGateway) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
16
+ if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetUsagePlans = void 0;
4
- const APIGateway_1 = require("../APIGateway");
5
4
  const APIGatewayClient_1 = require("../APIGatewayClient");
6
5
  const GetUsagePlansCommand_1 = require("../commands/GetUsagePlansCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetUsagePlansCommand_1.GetUsagePlansCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getUsagePlans(input, ...args);
12
- };
13
9
  async function* paginateGetUsagePlans(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetUsagePlans(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.position = token;
19
15
  input["limit"] = config.pageSize;
20
- if (config.client instanceof APIGateway_1.APIGateway) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
16
+ if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetVpcLinks = void 0;
4
- const APIGateway_1 = require("../APIGateway");
5
4
  const APIGatewayClient_1 = require("../APIGatewayClient");
6
5
  const GetVpcLinksCommand_1 = require("../commands/GetVpcLinksCommand");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetVpcLinksCommand_1.GetVpcLinksCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getVpcLinks(input, ...args);
12
- };
13
9
  async function* paginateGetVpcLinks(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetVpcLinks(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.position = token;
19
15
  input["limit"] = config.pageSize;
20
- if (config.client instanceof APIGateway_1.APIGateway) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
16
+ if (config.client instanceof APIGatewayClient_1.APIGatewayClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,12 +1,8 @@
1
- import { APIGateway } from "../APIGateway";
2
1
  import { APIGatewayClient } from "../APIGatewayClient";
3
2
  import { GetApiKeysCommand } from "../commands/GetApiKeysCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetApiKeysCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getApiKeys(input, ...args);
9
- };
10
6
  export async function* paginateGetApiKeys(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetApiKeys(config, input, ...additionalArguments)
14
10
  while (hasNext) {
15
11
  input.position = token;
16
12
  input["limit"] = config.pageSize;
17
- if (config.client instanceof APIGateway) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof APIGatewayClient) {
13
+ if (config.client instanceof APIGatewayClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { APIGateway } from "../APIGateway";
2
1
  import { APIGatewayClient } from "../APIGatewayClient";
3
2
  import { GetBasePathMappingsCommand, } from "../commands/GetBasePathMappingsCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetBasePathMappingsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getBasePathMappings(input, ...args);
9
- };
10
6
  export async function* paginateGetBasePathMappings(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetBasePathMappings(config, input, ...additionalA
14
10
  while (hasNext) {
15
11
  input.position = token;
16
12
  input["limit"] = config.pageSize;
17
- if (config.client instanceof APIGateway) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof APIGatewayClient) {
13
+ if (config.client instanceof APIGatewayClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { APIGateway } from "../APIGateway";
2
1
  import { APIGatewayClient } from "../APIGatewayClient";
3
2
  import { GetClientCertificatesCommand, } from "../commands/GetClientCertificatesCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetClientCertificatesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getClientCertificates(input, ...args);
9
- };
10
6
  export async function* paginateGetClientCertificates(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetClientCertificates(config, input, ...additiona
14
10
  while (hasNext) {
15
11
  input.position = token;
16
12
  input["limit"] = config.pageSize;
17
- if (config.client instanceof APIGateway) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof APIGatewayClient) {
13
+ if (config.client instanceof APIGatewayClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { APIGateway } from "../APIGateway";
2
1
  import { APIGatewayClient } from "../APIGatewayClient";
3
2
  import { GetDeploymentsCommand, } from "../commands/GetDeploymentsCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetDeploymentsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getDeployments(input, ...args);
9
- };
10
6
  export async function* paginateGetDeployments(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetDeployments(config, input, ...additionalArgume
14
10
  while (hasNext) {
15
11
  input.position = token;
16
12
  input["limit"] = config.pageSize;
17
- if (config.client instanceof APIGateway) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof APIGatewayClient) {
13
+ if (config.client instanceof APIGatewayClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { APIGateway } from "../APIGateway";
2
1
  import { APIGatewayClient } from "../APIGatewayClient";
3
2
  import { GetDomainNamesCommand, } from "../commands/GetDomainNamesCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetDomainNamesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getDomainNames(input, ...args);
9
- };
10
6
  export async function* paginateGetDomainNames(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetDomainNames(config, input, ...additionalArgume
14
10
  while (hasNext) {
15
11
  input.position = token;
16
12
  input["limit"] = config.pageSize;
17
- if (config.client instanceof APIGateway) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof APIGatewayClient) {
13
+ if (config.client instanceof APIGatewayClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { APIGateway } from "../APIGateway";
2
1
  import { APIGatewayClient } from "../APIGatewayClient";
3
2
  import { GetModelsCommand } from "../commands/GetModelsCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetModelsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getModels(input, ...args);
9
- };
10
6
  export async function* paginateGetModels(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetModels(config, input, ...additionalArguments)
14
10
  while (hasNext) {
15
11
  input.position = token;
16
12
  input["limit"] = config.pageSize;
17
- if (config.client instanceof APIGateway) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof APIGatewayClient) {
13
+ if (config.client instanceof APIGatewayClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { APIGateway } from "../APIGateway";
2
1
  import { APIGatewayClient } from "../APIGatewayClient";
3
2
  import { GetResourcesCommand, } from "../commands/GetResourcesCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetResourcesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getResources(input, ...args);
9
- };
10
6
  export async function* paginateGetResources(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetResources(config, input, ...additionalArgument
14
10
  while (hasNext) {
15
11
  input.position = token;
16
12
  input["limit"] = config.pageSize;
17
- if (config.client instanceof APIGateway) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof APIGatewayClient) {
13
+ if (config.client instanceof APIGatewayClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { APIGateway } from "../APIGateway";
2
1
  import { APIGatewayClient } from "../APIGatewayClient";
3
2
  import { GetRestApisCommand } from "../commands/GetRestApisCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetRestApisCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getRestApis(input, ...args);
9
- };
10
6
  export async function* paginateGetRestApis(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetRestApis(config, input, ...additionalArguments
14
10
  while (hasNext) {
15
11
  input.position = token;
16
12
  input["limit"] = config.pageSize;
17
- if (config.client instanceof APIGateway) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof APIGatewayClient) {
13
+ if (config.client instanceof APIGatewayClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { APIGateway } from "../APIGateway";
2
1
  import { APIGatewayClient } from "../APIGatewayClient";
3
2
  import { GetUsageCommand } from "../commands/GetUsageCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetUsageCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getUsage(input, ...args);
9
- };
10
6
  export async function* paginateGetUsage(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetUsage(config, input, ...additionalArguments) {
14
10
  while (hasNext) {
15
11
  input.position = token;
16
12
  input["limit"] = config.pageSize;
17
- if (config.client instanceof APIGateway) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof APIGatewayClient) {
13
+ if (config.client instanceof APIGatewayClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { APIGateway } from "../APIGateway";
2
1
  import { APIGatewayClient } from "../APIGatewayClient";
3
2
  import { GetUsagePlanKeysCommand, } from "../commands/GetUsagePlanKeysCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetUsagePlanKeysCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getUsagePlanKeys(input, ...args);
9
- };
10
6
  export async function* paginateGetUsagePlanKeys(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetUsagePlanKeys(config, input, ...additionalArgu
14
10
  while (hasNext) {
15
11
  input.position = token;
16
12
  input["limit"] = config.pageSize;
17
- if (config.client instanceof APIGateway) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof APIGatewayClient) {
13
+ if (config.client instanceof APIGatewayClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { APIGateway } from "../APIGateway";
2
1
  import { APIGatewayClient } from "../APIGatewayClient";
3
2
  import { GetUsagePlansCommand, } from "../commands/GetUsagePlansCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetUsagePlansCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getUsagePlans(input, ...args);
9
- };
10
6
  export async function* paginateGetUsagePlans(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetUsagePlans(config, input, ...additionalArgumen
14
10
  while (hasNext) {
15
11
  input.position = token;
16
12
  input["limit"] = config.pageSize;
17
- if (config.client instanceof APIGateway) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof APIGatewayClient) {
13
+ if (config.client instanceof APIGatewayClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
- import { APIGateway } from "../APIGateway";
2
1
  import { APIGatewayClient } from "../APIGatewayClient";
3
2
  import { GetVpcLinksCommand } from "../commands/GetVpcLinksCommand";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetVpcLinksCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getVpcLinks(input, ...args);
9
- };
10
6
  export async function* paginateGetVpcLinks(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetVpcLinks(config, input, ...additionalArguments
14
10
  while (hasNext) {
15
11
  input.position = token;
16
12
  input["limit"] = config.pageSize;
17
- if (config.client instanceof APIGateway) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof APIGatewayClient) {
13
+ if (config.client instanceof APIGatewayClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { APIGateway } from "../APIGateway";
3
2
  import { APIGatewayClient } from "../APIGatewayClient";
4
3
  export interface APIGatewayPaginationConfiguration extends PaginationConfiguration {
5
- client: APIGateway | APIGatewayClient;
4
+ client: APIGatewayClient;
6
5
  }
@@ -1,7 +1,6 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { APIGateway } from "../APIGateway";
3
2
  import { APIGatewayClient } from "../APIGatewayClient";
4
3
  export interface APIGatewayPaginationConfiguration
5
4
  extends PaginationConfiguration {
6
- client: APIGateway | APIGatewayClient;
5
+ client: APIGatewayClient;
7
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-api-gateway",
3
3
  "description": "AWS SDK for JavaScript Api Gateway Client for Node.js, Browser and React Native",
4
- "version": "3.282.0",
4
+ "version": "3.287.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,24 +20,24 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.282.0",
24
- "@aws-sdk/config-resolver": "3.282.0",
25
- "@aws-sdk/credential-provider-node": "3.282.0",
23
+ "@aws-sdk/client-sts": "3.287.0",
24
+ "@aws-sdk/config-resolver": "3.287.0",
25
+ "@aws-sdk/credential-provider-node": "3.287.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.282.0",
27
27
  "@aws-sdk/hash-node": "3.272.0",
28
28
  "@aws-sdk/invalid-dependency": "3.272.0",
29
29
  "@aws-sdk/middleware-content-length": "3.282.0",
30
30
  "@aws-sdk/middleware-endpoint": "3.282.0",
31
31
  "@aws-sdk/middleware-host-header": "3.282.0",
32
- "@aws-sdk/middleware-logger": "3.272.0",
32
+ "@aws-sdk/middleware-logger": "3.287.0",
33
33
  "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
- "@aws-sdk/middleware-retry": "3.282.0",
34
+ "@aws-sdk/middleware-retry": "3.287.0",
35
35
  "@aws-sdk/middleware-sdk-api-gateway": "3.282.0",
36
36
  "@aws-sdk/middleware-serde": "3.272.0",
37
37
  "@aws-sdk/middleware-signing": "3.282.0",
38
38
  "@aws-sdk/middleware-stack": "3.272.0",
39
39
  "@aws-sdk/middleware-user-agent": "3.282.0",
40
- "@aws-sdk/node-config-provider": "3.272.0",
40
+ "@aws-sdk/node-config-provider": "3.287.0",
41
41
  "@aws-sdk/node-http-handler": "3.282.0",
42
42
  "@aws-sdk/protocol-http": "3.282.0",
43
43
  "@aws-sdk/smithy-client": "3.279.0",
@@ -47,11 +47,11 @@
47
47
  "@aws-sdk/util-body-length-browser": "3.188.0",
48
48
  "@aws-sdk/util-body-length-node": "3.208.0",
49
49
  "@aws-sdk/util-defaults-mode-browser": "3.279.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.282.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.287.0",
51
51
  "@aws-sdk/util-endpoints": "3.272.0",
52
52
  "@aws-sdk/util-retry": "3.272.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.282.0",
54
- "@aws-sdk/util-user-agent-node": "3.282.0",
54
+ "@aws-sdk/util-user-agent-node": "3.287.0",
55
55
  "@aws-sdk/util-utf8": "3.254.0",
56
56
  "tslib": "^2.3.1"
57
57
  },