@aws-sdk/client-app-mesh 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/ListGatewayRoutesPaginator.js +2 -24
- package/dist-cjs/pagination/ListMeshesPaginator.js +2 -24
- package/dist-cjs/pagination/ListRoutesPaginator.js +2 -24
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -24
- package/dist-cjs/pagination/ListVirtualGatewaysPaginator.js +2 -24
- package/dist-cjs/pagination/ListVirtualNodesPaginator.js +2 -24
- package/dist-cjs/pagination/ListVirtualRoutersPaginator.js +2 -24
- package/dist-cjs/pagination/ListVirtualServicesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +268 -593
- package/dist-es/pagination/ListGatewayRoutesPaginator.js +2 -23
- package/dist-es/pagination/ListMeshesPaginator.js +2 -23
- package/dist-es/pagination/ListRoutesPaginator.js +2 -23
- package/dist-es/pagination/ListTagsForResourcePaginator.js +2 -23
- package/dist-es/pagination/ListVirtualGatewaysPaginator.js +2 -23
- package/dist-es/pagination/ListVirtualNodesPaginator.js +2 -23
- package/dist-es/pagination/ListVirtualRoutersPaginator.js +2 -23
- package/dist-es/pagination/ListVirtualServicesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +269 -594
- package/dist-types/pagination/ListGatewayRoutesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMeshesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRoutesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/dist-types/pagination/ListVirtualGatewaysPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVirtualNodesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVirtualRoutersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVirtualServicesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListGatewayRoutesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMeshesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRoutesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVirtualGatewaysPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVirtualNodesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVirtualRoutersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVirtualServicesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppMeshClient } from "../AppMeshClient";
|
|
2
3
|
import { ListGatewayRoutesCommand, } from "../commands/ListGatewayRoutesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListGatewayRoutesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListGatewayRoutes(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppMeshClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppMesh | AppMeshClient");
|
|
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 paginateListGatewayRoutes = createPaginator(AppMeshClient, ListGatewayRoutesCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppMeshClient } from "../AppMeshClient";
|
|
2
3
|
import { ListMeshesCommand } from "../commands/ListMeshesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMeshesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMeshes(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppMeshClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppMesh | AppMeshClient");
|
|
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 paginateListMeshes = createPaginator(AppMeshClient, ListMeshesCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppMeshClient } from "../AppMeshClient";
|
|
2
3
|
import { ListRoutesCommand } from "../commands/ListRoutesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRoutesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRoutes(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppMeshClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppMesh | AppMeshClient");
|
|
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 paginateListRoutes = createPaginator(AppMeshClient, ListRoutesCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppMeshClient } from "../AppMeshClient";
|
|
2
3
|
import { ListTagsForResourceCommand, } from "../commands/ListTagsForResourceCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTagsForResourceCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTagsForResource(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppMeshClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppMesh | AppMeshClient");
|
|
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 paginateListTagsForResource = createPaginator(AppMeshClient, ListTagsForResourceCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppMeshClient } from "../AppMeshClient";
|
|
2
3
|
import { ListVirtualGatewaysCommand, } from "../commands/ListVirtualGatewaysCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListVirtualGatewaysCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListVirtualGateways(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppMeshClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppMesh | AppMeshClient");
|
|
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 paginateListVirtualGateways = createPaginator(AppMeshClient, ListVirtualGatewaysCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppMeshClient } from "../AppMeshClient";
|
|
2
3
|
import { ListVirtualNodesCommand, } from "../commands/ListVirtualNodesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListVirtualNodesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListVirtualNodes(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppMeshClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppMesh | AppMeshClient");
|
|
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 paginateListVirtualNodes = createPaginator(AppMeshClient, ListVirtualNodesCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppMeshClient } from "../AppMeshClient";
|
|
2
3
|
import { ListVirtualRoutersCommand, } from "../commands/ListVirtualRoutersCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListVirtualRoutersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListVirtualRouters(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppMeshClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppMesh | AppMeshClient");
|
|
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 paginateListVirtualRouters = createPaginator(AppMeshClient, ListVirtualRoutersCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppMeshClient } from "../AppMeshClient";
|
|
2
3
|
import { ListVirtualServicesCommand, } from "../commands/ListVirtualServicesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListVirtualServicesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListVirtualServices(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppMeshClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AppMesh | AppMeshClient");
|
|
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 paginateListVirtualServices = createPaginator(AppMeshClient, ListVirtualServicesCommand, "nextToken", "nextToken", "limit");
|