@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,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");