@aws-sdk/client-tnb 3.276.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/LICENSE +201 -0
- package/README.md +205 -0
- package/dist-cjs/Tnb.js +502 -0
- package/dist-cjs/TnbClient.js +40 -0
- package/dist-cjs/commands/CancelSolNetworkOperationCommand.js +46 -0
- package/dist-cjs/commands/CreateSolFunctionPackageCommand.js +46 -0
- package/dist-cjs/commands/CreateSolNetworkInstanceCommand.js +46 -0
- package/dist-cjs/commands/CreateSolNetworkPackageCommand.js +46 -0
- package/dist-cjs/commands/DeleteSolFunctionPackageCommand.js +46 -0
- package/dist-cjs/commands/DeleteSolNetworkInstanceCommand.js +46 -0
- package/dist-cjs/commands/DeleteSolNetworkPackageCommand.js +46 -0
- package/dist-cjs/commands/GetSolFunctionInstanceCommand.js +46 -0
- package/dist-cjs/commands/GetSolFunctionPackageCommand.js +46 -0
- package/dist-cjs/commands/GetSolFunctionPackageContentCommand.js +46 -0
- package/dist-cjs/commands/GetSolFunctionPackageDescriptorCommand.js +46 -0
- package/dist-cjs/commands/GetSolNetworkInstanceCommand.js +46 -0
- package/dist-cjs/commands/GetSolNetworkOperationCommand.js +46 -0
- package/dist-cjs/commands/GetSolNetworkPackageCommand.js +46 -0
- package/dist-cjs/commands/GetSolNetworkPackageContentCommand.js +46 -0
- package/dist-cjs/commands/GetSolNetworkPackageDescriptorCommand.js +46 -0
- package/dist-cjs/commands/InstantiateSolNetworkInstanceCommand.js +46 -0
- package/dist-cjs/commands/ListSolFunctionInstancesCommand.js +46 -0
- package/dist-cjs/commands/ListSolFunctionPackagesCommand.js +46 -0
- package/dist-cjs/commands/ListSolNetworkInstancesCommand.js +46 -0
- package/dist-cjs/commands/ListSolNetworkOperationsCommand.js +46 -0
- package/dist-cjs/commands/ListSolNetworkPackagesCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/PutSolFunctionPackageContentCommand.js +46 -0
- package/dist-cjs/commands/PutSolNetworkPackageContentCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/TerminateSolNetworkInstanceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateSolFunctionPackageCommand.js +46 -0
- package/dist-cjs/commands/UpdateSolNetworkInstanceCommand.js +46 -0
- package/dist-cjs/commands/UpdateSolNetworkPackageCommand.js +46 -0
- package/dist-cjs/commands/ValidateSolFunctionPackageContentCommand.js +46 -0
- package/dist-cjs/commands/ValidateSolNetworkPackageContentCommand.js +46 -0
- package/dist-cjs/commands/index.js +36 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/TnbServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +559 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListSolFunctionInstancesPaginator.js +36 -0
- package/dist-cjs/pagination/ListSolFunctionPackagesPaginator.js +36 -0
- package/dist-cjs/pagination/ListSolNetworkInstancesPaginator.js +36 -0
- package/dist-cjs/pagination/ListSolNetworkOperationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSolNetworkPackagesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2944 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/Tnb.js +498 -0
- package/dist-es/TnbClient.js +36 -0
- package/dist-es/commands/CancelSolNetworkOperationCommand.js +42 -0
- package/dist-es/commands/CreateSolFunctionPackageCommand.js +42 -0
- package/dist-es/commands/CreateSolNetworkInstanceCommand.js +42 -0
- package/dist-es/commands/CreateSolNetworkPackageCommand.js +42 -0
- package/dist-es/commands/DeleteSolFunctionPackageCommand.js +42 -0
- package/dist-es/commands/DeleteSolNetworkInstanceCommand.js +42 -0
- package/dist-es/commands/DeleteSolNetworkPackageCommand.js +42 -0
- package/dist-es/commands/GetSolFunctionInstanceCommand.js +42 -0
- package/dist-es/commands/GetSolFunctionPackageCommand.js +42 -0
- package/dist-es/commands/GetSolFunctionPackageContentCommand.js +42 -0
- package/dist-es/commands/GetSolFunctionPackageDescriptorCommand.js +42 -0
- package/dist-es/commands/GetSolNetworkInstanceCommand.js +42 -0
- package/dist-es/commands/GetSolNetworkOperationCommand.js +42 -0
- package/dist-es/commands/GetSolNetworkPackageCommand.js +42 -0
- package/dist-es/commands/GetSolNetworkPackageContentCommand.js +42 -0
- package/dist-es/commands/GetSolNetworkPackageDescriptorCommand.js +42 -0
- package/dist-es/commands/InstantiateSolNetworkInstanceCommand.js +42 -0
- package/dist-es/commands/ListSolFunctionInstancesCommand.js +42 -0
- package/dist-es/commands/ListSolFunctionPackagesCommand.js +42 -0
- package/dist-es/commands/ListSolNetworkInstancesCommand.js +42 -0
- package/dist-es/commands/ListSolNetworkOperationsCommand.js +42 -0
- package/dist-es/commands/ListSolNetworkPackagesCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/PutSolFunctionPackageContentCommand.js +42 -0
- package/dist-es/commands/PutSolNetworkPackageContentCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/TerminateSolNetworkInstanceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateSolFunctionPackageCommand.js +42 -0
- package/dist-es/commands/UpdateSolNetworkInstanceCommand.js +42 -0
- package/dist-es/commands/UpdateSolNetworkPackageCommand.js +42 -0
- package/dist-es/commands/ValidateSolFunctionPackageContentCommand.js +42 -0
- package/dist-es/commands/ValidateSolNetworkPackageContentCommand.js +42 -0
- package/dist-es/commands/index.js +33 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/TnbServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +455 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListSolFunctionInstancesPaginator.js +32 -0
- package/dist-es/pagination/ListSolFunctionPackagesPaginator.js +32 -0
- package/dist-es/pagination/ListSolNetworkInstancesPaginator.js +32 -0
- package/dist-es/pagination/ListSolNetworkOperationsPaginator.js +32 -0
- package/dist-es/pagination/ListSolNetworkPackagesPaginator.js +32 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +2874 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/Tnb.d.ts +284 -0
- package/dist-types/TnbClient.d.ts +174 -0
- package/dist-types/commands/CancelSolNetworkOperationCommand.d.ts +38 -0
- package/dist-types/commands/CreateSolFunctionPackageCommand.d.ts +40 -0
- package/dist-types/commands/CreateSolNetworkInstanceCommand.d.ts +39 -0
- package/dist-types/commands/CreateSolNetworkPackageCommand.d.ts +41 -0
- package/dist-types/commands/DeleteSolFunctionPackageCommand.d.ts +40 -0
- package/dist-types/commands/DeleteSolNetworkInstanceCommand.d.ts +39 -0
- package/dist-types/commands/DeleteSolNetworkPackageCommand.d.ts +39 -0
- package/dist-types/commands/GetSolFunctionInstanceCommand.d.ts +38 -0
- package/dist-types/commands/GetSolFunctionPackageCommand.d.ts +38 -0
- package/dist-types/commands/GetSolFunctionPackageContentCommand.d.ts +38 -0
- package/dist-types/commands/GetSolFunctionPackageDescriptorCommand.d.ts +39 -0
- package/dist-types/commands/GetSolNetworkInstanceCommand.d.ts +38 -0
- package/dist-types/commands/GetSolNetworkOperationCommand.d.ts +38 -0
- package/dist-types/commands/GetSolNetworkPackageCommand.d.ts +38 -0
- package/dist-types/commands/GetSolNetworkPackageContentCommand.d.ts +38 -0
- package/dist-types/commands/GetSolNetworkPackageDescriptorCommand.d.ts +38 -0
- package/dist-types/commands/InstantiateSolNetworkInstanceCommand.d.ts +39 -0
- package/dist-types/commands/ListSolFunctionInstancesCommand.d.ts +38 -0
- package/dist-types/commands/ListSolFunctionPackagesCommand.d.ts +38 -0
- package/dist-types/commands/ListSolNetworkInstancesCommand.d.ts +38 -0
- package/dist-types/commands/ListSolNetworkOperationsCommand.d.ts +38 -0
- package/dist-types/commands/ListSolNetworkPackagesCommand.d.ts +38 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/PutSolFunctionPackageContentCommand.d.ts +38 -0
- package/dist-types/commands/PutSolNetworkPackageContentCommand.d.ts +38 -0
- package/dist-types/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/commands/TerminateSolNetworkInstanceCommand.d.ts +39 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/commands/UpdateSolFunctionPackageCommand.d.ts +38 -0
- package/dist-types/commands/UpdateSolNetworkInstanceCommand.d.ts +38 -0
- package/dist-types/commands/UpdateSolNetworkPackageCommand.d.ts +39 -0
- package/dist-types/commands/ValidateSolFunctionPackageContentCommand.d.ts +38 -0
- package/dist-types/commands/ValidateSolNetworkPackageContentCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +33 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/TnbServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1935 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListSolFunctionInstancesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSolFunctionPackagesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSolNetworkInstancesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSolNetworkOperationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSolNetworkPackagesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +101 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/Tnb.d.ts +571 -0
- package/dist-types/ts3.4/TnbClient.d.ts +309 -0
- package/dist-types/ts3.4/commands/CancelSolNetworkOperationCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateSolFunctionPackageCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateSolNetworkInstanceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateSolNetworkPackageCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteSolFunctionPackageCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteSolNetworkInstanceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteSolNetworkPackageCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetSolFunctionInstanceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetSolFunctionPackageCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetSolFunctionPackageContentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetSolFunctionPackageDescriptorCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetSolNetworkInstanceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetSolNetworkOperationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetSolNetworkPackageCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetSolNetworkPackageContentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetSolNetworkPackageDescriptorCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/InstantiateSolNetworkInstanceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSolFunctionInstancesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSolFunctionPackagesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSolNetworkInstancesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSolNetworkOperationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSolNetworkPackagesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutSolFunctionPackageContentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutSolNetworkPackageContentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/TerminateSolNetworkInstanceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateSolFunctionPackageCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateSolNetworkInstanceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateSolNetworkPackageCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ValidateSolFunctionPackageContentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ValidateSolNetworkPackageContentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/TnbServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +855 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListSolFunctionInstancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSolFunctionPackagesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSolNetworkInstancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSolNetworkOperationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSolNetworkPackagesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +401 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +102 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListSolFunctionInstancesCommand, } from "../commands/ListSolFunctionInstancesCommand";
|
|
2
|
+
import { Tnb } from "../Tnb";
|
|
3
|
+
import { TnbClient } from "../TnbClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListSolFunctionInstancesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listSolFunctionInstances(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListSolFunctionInstances(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Tnb) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof TnbClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Tnb | TnbClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListSolFunctionPackagesCommand, } from "../commands/ListSolFunctionPackagesCommand";
|
|
2
|
+
import { Tnb } from "../Tnb";
|
|
3
|
+
import { TnbClient } from "../TnbClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListSolFunctionPackagesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listSolFunctionPackages(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListSolFunctionPackages(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Tnb) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof TnbClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Tnb | TnbClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListSolNetworkInstancesCommand, } from "../commands/ListSolNetworkInstancesCommand";
|
|
2
|
+
import { Tnb } from "../Tnb";
|
|
3
|
+
import { TnbClient } from "../TnbClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListSolNetworkInstancesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listSolNetworkInstances(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListSolNetworkInstances(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Tnb) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof TnbClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Tnb | TnbClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListSolNetworkOperationsCommand, } from "../commands/ListSolNetworkOperationsCommand";
|
|
2
|
+
import { Tnb } from "../Tnb";
|
|
3
|
+
import { TnbClient } from "../TnbClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListSolNetworkOperationsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listSolNetworkOperations(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListSolNetworkOperations(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Tnb) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof TnbClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Tnb | TnbClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListSolNetworkPackagesCommand, } from "../commands/ListSolNetworkPackagesCommand";
|
|
2
|
+
import { Tnb } from "../Tnb";
|
|
3
|
+
import { TnbClient } from "../TnbClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListSolNetworkPackagesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listSolNetworkPackages(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListSolNetworkPackages(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Tnb) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof TnbClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Tnb | TnbClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
2
|
+
export * from "./ListSolFunctionInstancesPaginator";
|
|
3
|
+
export * from "./ListSolFunctionPackagesPaginator";
|
|
4
|
+
export * from "./ListSolNetworkInstancesPaginator";
|
|
5
|
+
export * from "./ListSolNetworkOperationsPaginator";
|
|
6
|
+
export * from "./ListSolNetworkPackagesPaginator";
|