@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.
- package/dist-cjs/pagination/ListAccessLogSubscriptionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListListenersPaginator.js +2 -24
- package/dist-cjs/pagination/ListRulesPaginator.js +2 -24
- package/dist-cjs/pagination/ListServiceNetworkServiceAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListServiceNetworkVpcAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListServiceNetworksPaginator.js +2 -24
- package/dist-cjs/pagination/ListServicesPaginator.js +2 -24
- package/dist-cjs/pagination/ListTargetGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTargetsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +300 -693
- package/dist-es/pagination/ListAccessLogSubscriptionsPaginator.js +2 -23
- package/dist-es/pagination/ListListenersPaginator.js +2 -23
- package/dist-es/pagination/ListRulesPaginator.js +2 -23
- package/dist-es/pagination/ListServiceNetworkServiceAssociationsPaginator.js +2 -23
- package/dist-es/pagination/ListServiceNetworkVpcAssociationsPaginator.js +2 -23
- package/dist-es/pagination/ListServiceNetworksPaginator.js +2 -23
- package/dist-es/pagination/ListServicesPaginator.js +2 -23
- package/dist-es/pagination/ListTargetGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListTargetsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +301 -694
- package/dist-types/pagination/ListAccessLogSubscriptionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListListenersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListServiceNetworkServiceAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListServiceNetworkVpcAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListServiceNetworksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListServicesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTargetGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTargetsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAccessLogSubscriptionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListListenersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListServiceNetworkServiceAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListServiceNetworkVpcAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListServiceNetworksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListServicesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTargetGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTargetsPaginator.d.ts +3 -3
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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");
|