@aws-sdk/client-vpc-lattice 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.
Files changed (37) hide show
  1. package/dist-cjs/pagination/ListAccessLogSubscriptionsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListListenersPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListRulesPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListServiceNetworkServiceAssociationsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListServiceNetworkVpcAssociationsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListServiceNetworksPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListServicesPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListTargetGroupsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListTargetsPaginator.js +2 -24
  10. package/dist-es/pagination/ListAccessLogSubscriptionsPaginator.js +2 -23
  11. package/dist-es/pagination/ListListenersPaginator.js +2 -23
  12. package/dist-es/pagination/ListRulesPaginator.js +2 -23
  13. package/dist-es/pagination/ListServiceNetworkServiceAssociationsPaginator.js +2 -23
  14. package/dist-es/pagination/ListServiceNetworkVpcAssociationsPaginator.js +2 -23
  15. package/dist-es/pagination/ListServiceNetworksPaginator.js +2 -23
  16. package/dist-es/pagination/ListServicesPaginator.js +2 -23
  17. package/dist-es/pagination/ListTargetGroupsPaginator.js +2 -23
  18. package/dist-es/pagination/ListTargetsPaginator.js +2 -23
  19. package/dist-types/pagination/ListAccessLogSubscriptionsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListListenersPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListRulesPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListServiceNetworkServiceAssociationsPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListServiceNetworkVpcAssociationsPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListServiceNetworksPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListServicesPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListTargetGroupsPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListTargetsPaginator.d.ts +1 -1
  28. package/dist-types/ts3.4/pagination/ListAccessLogSubscriptionsPaginator.d.ts +3 -3
  29. package/dist-types/ts3.4/pagination/ListListenersPaginator.d.ts +3 -3
  30. package/dist-types/ts3.4/pagination/ListRulesPaginator.d.ts +3 -3
  31. package/dist-types/ts3.4/pagination/ListServiceNetworkServiceAssociationsPaginator.d.ts +3 -3
  32. package/dist-types/ts3.4/pagination/ListServiceNetworkVpcAssociationsPaginator.d.ts +3 -3
  33. package/dist-types/ts3.4/pagination/ListServiceNetworksPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListServicesPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListTargetGroupsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListTargetsPaginator.d.ts +3 -3
  37. package/package.json +5 -5
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAccessLogSubscriptions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAccessLogSubscriptionsCommand_1 = require("../commands/ListAccessLogSubscriptionsCommand");
5
6
  const VPCLatticeClient_1 = require("../VPCLatticeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAccessLogSubscriptionsCommand_1.ListAccessLogSubscriptionsCommand(input), ...args);
8
- };
9
- async function* paginateListAccessLogSubscriptions(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 VPCLatticeClient_1.VPCLatticeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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.paginateListAccessLogSubscriptions = paginateListAccessLogSubscriptions;
7
+ exports.paginateListAccessLogSubscriptions = (0, core_1.createPaginator)(VPCLatticeClient_1.VPCLatticeClient, ListAccessLogSubscriptionsCommand_1.ListAccessLogSubscriptionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListListeners = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListListenersCommand_1 = require("../commands/ListListenersCommand");
5
6
  const VPCLatticeClient_1 = require("../VPCLatticeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListListenersCommand_1.ListListenersCommand(input), ...args);
8
- };
9
- async function* paginateListListeners(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 VPCLatticeClient_1.VPCLatticeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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.paginateListListeners = paginateListListeners;
7
+ exports.paginateListListeners = (0, core_1.createPaginator)(VPCLatticeClient_1.VPCLatticeClient, ListListenersCommand_1.ListListenersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRules = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListRulesCommand_1 = require("../commands/ListRulesCommand");
5
6
  const VPCLatticeClient_1 = require("../VPCLatticeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRulesCommand_1.ListRulesCommand(input), ...args);
8
- };
9
- async function* paginateListRules(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 VPCLatticeClient_1.VPCLatticeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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.paginateListRules = paginateListRules;
7
+ exports.paginateListRules = (0, core_1.createPaginator)(VPCLatticeClient_1.VPCLatticeClient, ListRulesCommand_1.ListRulesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListServiceNetworkServiceAssociations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListServiceNetworkServiceAssociationsCommand_1 = require("../commands/ListServiceNetworkServiceAssociationsCommand");
5
6
  const VPCLatticeClient_1 = require("../VPCLatticeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListServiceNetworkServiceAssociationsCommand_1.ListServiceNetworkServiceAssociationsCommand(input), ...args);
8
- };
9
- async function* paginateListServiceNetworkServiceAssociations(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 VPCLatticeClient_1.VPCLatticeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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.paginateListServiceNetworkServiceAssociations = paginateListServiceNetworkServiceAssociations;
7
+ exports.paginateListServiceNetworkServiceAssociations = (0, core_1.createPaginator)(VPCLatticeClient_1.VPCLatticeClient, ListServiceNetworkServiceAssociationsCommand_1.ListServiceNetworkServiceAssociationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListServiceNetworkVpcAssociations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListServiceNetworkVpcAssociationsCommand_1 = require("../commands/ListServiceNetworkVpcAssociationsCommand");
5
6
  const VPCLatticeClient_1 = require("../VPCLatticeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListServiceNetworkVpcAssociationsCommand_1.ListServiceNetworkVpcAssociationsCommand(input), ...args);
8
- };
9
- async function* paginateListServiceNetworkVpcAssociations(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 VPCLatticeClient_1.VPCLatticeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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.paginateListServiceNetworkVpcAssociations = paginateListServiceNetworkVpcAssociations;
7
+ exports.paginateListServiceNetworkVpcAssociations = (0, core_1.createPaginator)(VPCLatticeClient_1.VPCLatticeClient, ListServiceNetworkVpcAssociationsCommand_1.ListServiceNetworkVpcAssociationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListServiceNetworks = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListServiceNetworksCommand_1 = require("../commands/ListServiceNetworksCommand");
5
6
  const VPCLatticeClient_1 = require("../VPCLatticeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListServiceNetworksCommand_1.ListServiceNetworksCommand(input), ...args);
8
- };
9
- async function* paginateListServiceNetworks(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 VPCLatticeClient_1.VPCLatticeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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.paginateListServiceNetworks = paginateListServiceNetworks;
7
+ exports.paginateListServiceNetworks = (0, core_1.createPaginator)(VPCLatticeClient_1.VPCLatticeClient, ListServiceNetworksCommand_1.ListServiceNetworksCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListServices = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListServicesCommand_1 = require("../commands/ListServicesCommand");
5
6
  const VPCLatticeClient_1 = require("../VPCLatticeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListServicesCommand_1.ListServicesCommand(input), ...args);
8
- };
9
- async function* paginateListServices(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 VPCLatticeClient_1.VPCLatticeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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.paginateListServices = paginateListServices;
7
+ exports.paginateListServices = (0, core_1.createPaginator)(VPCLatticeClient_1.VPCLatticeClient, ListServicesCommand_1.ListServicesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTargetGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTargetGroupsCommand_1 = require("../commands/ListTargetGroupsCommand");
5
6
  const VPCLatticeClient_1 = require("../VPCLatticeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTargetGroupsCommand_1.ListTargetGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListTargetGroups(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 VPCLatticeClient_1.VPCLatticeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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.paginateListTargetGroups = paginateListTargetGroups;
7
+ exports.paginateListTargetGroups = (0, core_1.createPaginator)(VPCLatticeClient_1.VPCLatticeClient, ListTargetGroupsCommand_1.ListTargetGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTargets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTargetsCommand_1 = require("../commands/ListTargetsCommand");
5
6
  const VPCLatticeClient_1 = require("../VPCLatticeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTargetsCommand_1.ListTargetsCommand(input), ...args);
8
- };
9
- async function* paginateListTargets(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 VPCLatticeClient_1.VPCLatticeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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.paginateListTargets = paginateListTargets;
7
+ exports.paginateListTargets = (0, core_1.createPaginator)(VPCLatticeClient_1.VPCLatticeClient, ListTargetsCommand_1.ListTargetsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAccessLogSubscriptionsCommand, } from "../commands/ListAccessLogSubscriptionsCommand";
2
3
  import { VPCLatticeClient } from "../VPCLatticeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAccessLogSubscriptionsCommand(input), ...args);
5
- };
6
- export async function* paginateListAccessLogSubscriptions(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 VPCLatticeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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 paginateListAccessLogSubscriptions = createPaginator(VPCLatticeClient, ListAccessLogSubscriptionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListListenersCommand, } from "../commands/ListListenersCommand";
2
3
  import { VPCLatticeClient } from "../VPCLatticeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListListenersCommand(input), ...args);
5
- };
6
- export async function* paginateListListeners(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 VPCLatticeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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 paginateListListeners = createPaginator(VPCLatticeClient, ListListenersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListRulesCommand } from "../commands/ListRulesCommand";
2
3
  import { VPCLatticeClient } from "../VPCLatticeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListRulesCommand(input), ...args);
5
- };
6
- export async function* paginateListRules(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 VPCLatticeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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 paginateListRules = createPaginator(VPCLatticeClient, ListRulesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListServiceNetworkServiceAssociationsCommand, } from "../commands/ListServiceNetworkServiceAssociationsCommand";
2
3
  import { VPCLatticeClient } from "../VPCLatticeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListServiceNetworkServiceAssociationsCommand(input), ...args);
5
- };
6
- export async function* paginateListServiceNetworkServiceAssociations(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 VPCLatticeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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 paginateListServiceNetworkServiceAssociations = createPaginator(VPCLatticeClient, ListServiceNetworkServiceAssociationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListServiceNetworkVpcAssociationsCommand, } from "../commands/ListServiceNetworkVpcAssociationsCommand";
2
3
  import { VPCLatticeClient } from "../VPCLatticeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListServiceNetworkVpcAssociationsCommand(input), ...args);
5
- };
6
- export async function* paginateListServiceNetworkVpcAssociations(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 VPCLatticeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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 paginateListServiceNetworkVpcAssociations = createPaginator(VPCLatticeClient, ListServiceNetworkVpcAssociationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListServiceNetworksCommand, } from "../commands/ListServiceNetworksCommand";
2
3
  import { VPCLatticeClient } from "../VPCLatticeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListServiceNetworksCommand(input), ...args);
5
- };
6
- export async function* paginateListServiceNetworks(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 VPCLatticeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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 paginateListServiceNetworks = createPaginator(VPCLatticeClient, ListServiceNetworksCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListServicesCommand, } from "../commands/ListServicesCommand";
2
3
  import { VPCLatticeClient } from "../VPCLatticeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListServicesCommand(input), ...args);
5
- };
6
- export async function* paginateListServices(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 VPCLatticeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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 paginateListServices = createPaginator(VPCLatticeClient, ListServicesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTargetGroupsCommand, } from "../commands/ListTargetGroupsCommand";
2
3
  import { VPCLatticeClient } from "../VPCLatticeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTargetGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateListTargetGroups(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 VPCLatticeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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 paginateListTargetGroups = createPaginator(VPCLatticeClient, ListTargetGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTargetsCommand } from "../commands/ListTargetsCommand";
2
3
  import { VPCLatticeClient } from "../VPCLatticeClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTargetsCommand(input), ...args);
5
- };
6
- export async function* paginateListTargets(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 VPCLatticeClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VPCLattice | VPCLatticeClient");
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 paginateListTargets = createPaginator(VPCLatticeClient, ListTargetsCommand, "nextToken", "nextToken", "maxResults");
@@ -4,4 +4,4 @@ import { VPCLatticePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAccessLogSubscriptions(config: VPCLatticePaginationConfiguration, input: ListAccessLogSubscriptionsCommandInput, ...additionalArguments: any): Paginator<ListAccessLogSubscriptionsCommandOutput>;
7
+ export declare const paginateListAccessLogSubscriptions: (config: VPCLatticePaginationConfiguration, input: ListAccessLogSubscriptionsCommandInput, ...rest: any[]) => Paginator<ListAccessLogSubscriptionsCommandOutput>;
@@ -4,4 +4,4 @@ import { VPCLatticePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListListeners(config: VPCLatticePaginationConfiguration, input: ListListenersCommandInput, ...additionalArguments: any): Paginator<ListListenersCommandOutput>;
7
+ export declare const paginateListListeners: (config: VPCLatticePaginationConfiguration, input: ListListenersCommandInput, ...rest: any[]) => Paginator<ListListenersCommandOutput>;
@@ -4,4 +4,4 @@ import { VPCLatticePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListRules(config: VPCLatticePaginationConfiguration, input: ListRulesCommandInput, ...additionalArguments: any): Paginator<ListRulesCommandOutput>;
7
+ export declare const paginateListRules: (config: VPCLatticePaginationConfiguration, input: ListRulesCommandInput, ...rest: any[]) => Paginator<ListRulesCommandOutput>;
@@ -4,4 +4,4 @@ import { VPCLatticePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListServiceNetworkServiceAssociations(config: VPCLatticePaginationConfiguration, input: ListServiceNetworkServiceAssociationsCommandInput, ...additionalArguments: any): Paginator<ListServiceNetworkServiceAssociationsCommandOutput>;
7
+ export declare const paginateListServiceNetworkServiceAssociations: (config: VPCLatticePaginationConfiguration, input: ListServiceNetworkServiceAssociationsCommandInput, ...rest: any[]) => Paginator<ListServiceNetworkServiceAssociationsCommandOutput>;
@@ -4,4 +4,4 @@ import { VPCLatticePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListServiceNetworkVpcAssociations(config: VPCLatticePaginationConfiguration, input: ListServiceNetworkVpcAssociationsCommandInput, ...additionalArguments: any): Paginator<ListServiceNetworkVpcAssociationsCommandOutput>;
7
+ export declare const paginateListServiceNetworkVpcAssociations: (config: VPCLatticePaginationConfiguration, input: ListServiceNetworkVpcAssociationsCommandInput, ...rest: any[]) => Paginator<ListServiceNetworkVpcAssociationsCommandOutput>;
@@ -4,4 +4,4 @@ import { VPCLatticePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListServiceNetworks(config: VPCLatticePaginationConfiguration, input: ListServiceNetworksCommandInput, ...additionalArguments: any): Paginator<ListServiceNetworksCommandOutput>;
7
+ export declare const paginateListServiceNetworks: (config: VPCLatticePaginationConfiguration, input: ListServiceNetworksCommandInput, ...rest: any[]) => Paginator<ListServiceNetworksCommandOutput>;
@@ -4,4 +4,4 @@ import { VPCLatticePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListServices(config: VPCLatticePaginationConfiguration, input: ListServicesCommandInput, ...additionalArguments: any): Paginator<ListServicesCommandOutput>;
7
+ export declare const paginateListServices: (config: VPCLatticePaginationConfiguration, input: ListServicesCommandInput, ...rest: any[]) => Paginator<ListServicesCommandOutput>;
@@ -4,4 +4,4 @@ import { VPCLatticePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTargetGroups(config: VPCLatticePaginationConfiguration, input: ListTargetGroupsCommandInput, ...additionalArguments: any): Paginator<ListTargetGroupsCommandOutput>;
7
+ export declare const paginateListTargetGroups: (config: VPCLatticePaginationConfiguration, input: ListTargetGroupsCommandInput, ...rest: any[]) => Paginator<ListTargetGroupsCommandOutput>;
@@ -4,4 +4,4 @@ import { VPCLatticePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTargets(config: VPCLatticePaginationConfiguration, input: ListTargetsCommandInput, ...additionalArguments: any): Paginator<ListTargetsCommandOutput>;
7
+ export declare const paginateListTargets: (config: VPCLatticePaginationConfiguration, input: ListTargetsCommandInput, ...rest: any[]) => Paginator<ListTargetsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAccessLogSubscriptionsCommandOutput,
5
5
  } from "../commands/ListAccessLogSubscriptionsCommand";
6
6
  import { VPCLatticePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAccessLogSubscriptions(
7
+ export declare const paginateListAccessLogSubscriptions: (
8
8
  config: VPCLatticePaginationConfiguration,
9
9
  input: ListAccessLogSubscriptionsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAccessLogSubscriptionsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAccessLogSubscriptionsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListListenersCommandOutput,
5
5
  } from "../commands/ListListenersCommand";
6
6
  import { VPCLatticePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListListeners(
7
+ export declare const paginateListListeners: (
8
8
  config: VPCLatticePaginationConfiguration,
9
9
  input: ListListenersCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListListenersCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListListenersCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListRulesCommandOutput,
5
5
  } from "../commands/ListRulesCommand";
6
6
  import { VPCLatticePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListRules(
7
+ export declare const paginateListRules: (
8
8
  config: VPCLatticePaginationConfiguration,
9
9
  input: ListRulesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListRulesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListRulesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListServiceNetworkServiceAssociationsCommandOutput,
5
5
  } from "../commands/ListServiceNetworkServiceAssociationsCommand";
6
6
  import { VPCLatticePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListServiceNetworkServiceAssociations(
7
+ export declare const paginateListServiceNetworkServiceAssociations: (
8
8
  config: VPCLatticePaginationConfiguration,
9
9
  input: ListServiceNetworkServiceAssociationsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListServiceNetworkServiceAssociationsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListServiceNetworkServiceAssociationsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListServiceNetworkVpcAssociationsCommandOutput,
5
5
  } from "../commands/ListServiceNetworkVpcAssociationsCommand";
6
6
  import { VPCLatticePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListServiceNetworkVpcAssociations(
7
+ export declare const paginateListServiceNetworkVpcAssociations: (
8
8
  config: VPCLatticePaginationConfiguration,
9
9
  input: ListServiceNetworkVpcAssociationsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListServiceNetworkVpcAssociationsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListServiceNetworkVpcAssociationsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListServiceNetworksCommandOutput,
5
5
  } from "../commands/ListServiceNetworksCommand";
6
6
  import { VPCLatticePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListServiceNetworks(
7
+ export declare const paginateListServiceNetworks: (
8
8
  config: VPCLatticePaginationConfiguration,
9
9
  input: ListServiceNetworksCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListServiceNetworksCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListServiceNetworksCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListServicesCommandOutput,
5
5
  } from "../commands/ListServicesCommand";
6
6
  import { VPCLatticePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListServices(
7
+ export declare const paginateListServices: (
8
8
  config: VPCLatticePaginationConfiguration,
9
9
  input: ListServicesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListServicesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListServicesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListTargetGroupsCommandOutput,
5
5
  } from "../commands/ListTargetGroupsCommand";
6
6
  import { VPCLatticePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListTargetGroups(
7
+ export declare const paginateListTargetGroups: (
8
8
  config: VPCLatticePaginationConfiguration,
9
9
  input: ListTargetGroupsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListTargetGroupsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListTargetGroupsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListTargetsCommandOutput,
5
5
  } from "../commands/ListTargetsCommand";
6
6
  import { VPCLatticePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListTargets(
7
+ export declare const paginateListTargets: (
8
8
  config: VPCLatticePaginationConfiguration,
9
9
  input: ListTargetsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListTargetsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListTargetsCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-vpc-lattice",
3
3
  "description": "AWS SDK for JavaScript Vpc Lattice Client for Node.js, Browser and React Native",
4
- "version": "3.477.0",
4
+ "version": "3.478.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,17 +20,17 @@
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.477.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
24
  "@aws-sdk/core": "3.477.0",
25
- "@aws-sdk/credential-provider-node": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.478.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",