@aws-sdk/client-vpc-lattice 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 (39) 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-cjs/protocols/Aws_restJson1.js +300 -693
  11. package/dist-es/pagination/ListAccessLogSubscriptionsPaginator.js +2 -23
  12. package/dist-es/pagination/ListListenersPaginator.js +2 -23
  13. package/dist-es/pagination/ListRulesPaginator.js +2 -23
  14. package/dist-es/pagination/ListServiceNetworkServiceAssociationsPaginator.js +2 -23
  15. package/dist-es/pagination/ListServiceNetworkVpcAssociationsPaginator.js +2 -23
  16. package/dist-es/pagination/ListServiceNetworksPaginator.js +2 -23
  17. package/dist-es/pagination/ListServicesPaginator.js +2 -23
  18. package/dist-es/pagination/ListTargetGroupsPaginator.js +2 -23
  19. package/dist-es/pagination/ListTargetsPaginator.js +2 -23
  20. package/dist-es/protocols/Aws_restJson1.js +301 -694
  21. package/dist-types/pagination/ListAccessLogSubscriptionsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListListenersPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListRulesPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListServiceNetworkServiceAssociationsPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListServiceNetworkVpcAssociationsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListServiceNetworksPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListServicesPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListTargetGroupsPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListTargetsPaginator.d.ts +1 -1
  30. package/dist-types/ts3.4/pagination/ListAccessLogSubscriptionsPaginator.d.ts +3 -3
  31. package/dist-types/ts3.4/pagination/ListListenersPaginator.d.ts +3 -3
  32. package/dist-types/ts3.4/pagination/ListRulesPaginator.d.ts +3 -3
  33. package/dist-types/ts3.4/pagination/ListServiceNetworkServiceAssociationsPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListServiceNetworkVpcAssociationsPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListServiceNetworksPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListServicesPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListTargetGroupsPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListTargetsPaginator.d.ts +3 -3
  39. package/package.json +7 -6
@@ -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");