@aws-sdk/client-serverlessapplicationrepository 3.33.0 → 3.36.1
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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/ServerlessApplicationRepository.js +2 -25
- package/dist-cjs/ServerlessApplicationRepositoryClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/CreateApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateApplicationVersionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateCloudFormationChangeSetCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateCloudFormationTemplateCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetApplicationPolicyCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetCloudFormationTemplateCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListApplicationDependenciesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListApplicationVersionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListApplicationsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/PutApplicationPolicyCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/UnshareApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -127
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListApplicationDependenciesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListApplicationVersionsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListApplicationsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +2 -8
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/ServerlessApplicationRepository.js +3 -26
- package/dist-es/ServerlessApplicationRepositoryClient.js +37 -0
- package/{dist/es → dist-es}/commands/CreateApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateApplicationVersionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateCloudFormationChangeSetCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateCloudFormationTemplateCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetApplicationPolicyCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetCloudFormationTemplateCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListApplicationDependenciesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListApplicationVersionsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListApplicationsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/PutApplicationPolicyCommand.js +4 -33
- package/{dist/es → dist-es}/commands/UnshareApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -127
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListApplicationDependenciesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListApplicationVersionsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListApplicationsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +412 -418
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/ServerlessApplicationRepository.d.ts +3 -3
- package/{dist/types → dist-types}/ServerlessApplicationRepositoryClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/CreateApplicationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateApplicationVersionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateCloudFormationChangeSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateCloudFormationTemplateCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteApplicationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetApplicationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetApplicationPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetCloudFormationTemplateCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListApplicationDependenciesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListApplicationVersionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListApplicationsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PutApplicationPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UnshareApplicationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateApplicationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListApplicationDependenciesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListApplicationVersionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/ServerlessApplicationRepository.d.ts +18 -70
- package/{dist/types → dist-types}/ts3.4/ServerlessApplicationRepositoryClient.d.ts +33 -117
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/CreateApplicationVersionCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/CreateCloudFormationChangeSetCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/CreateCloudFormationTemplateCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/GetApplicationPolicyCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/GetCloudFormationTemplateCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/ListApplicationDependenciesCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/ListApplicationVersionsCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutApplicationPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UnshareApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +684 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListApplicationDependenciesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListApplicationVersionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/ServerlessApplicationRepository.ts +0 -547
- package/ServerlessApplicationRepositoryClient.ts +0 -321
- package/commands/CreateApplicationCommand.ts +0 -98
- package/commands/CreateApplicationVersionCommand.ts +0 -98
- package/commands/CreateCloudFormationChangeSetCommand.ts +0 -103
- package/commands/CreateCloudFormationTemplateCommand.ts +0 -103
- package/commands/DeleteApplicationCommand.ts +0 -98
- package/commands/GetApplicationCommand.ts +0 -98
- package/commands/GetApplicationPolicyCommand.ts +0 -98
- package/commands/GetCloudFormationTemplateCommand.ts +0 -101
- package/commands/ListApplicationDependenciesCommand.ts +0 -103
- package/commands/ListApplicationVersionsCommand.ts +0 -98
- package/commands/ListApplicationsCommand.ts +0 -98
- package/commands/PutApplicationPolicyCommand.ts +0 -101
- package/commands/UnshareApplicationCommand.ts +0 -98
- package/commands/UpdateApplicationCommand.ts +0 -98
- package/dist/cjs/ServerlessApplicationRepository.js.map +0 -1
- package/dist/cjs/ServerlessApplicationRepositoryClient.js +0 -63
- package/dist/cjs/ServerlessApplicationRepositoryClient.js.map +0 -1
- package/dist/cjs/commands/CreateApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/CreateApplicationVersionCommand.js.map +0 -1
- package/dist/cjs/commands/CreateCloudFormationChangeSetCommand.js.map +0 -1
- package/dist/cjs/commands/CreateCloudFormationTemplateCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/GetApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/GetApplicationPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/GetCloudFormationTemplateCommand.js.map +0 -1
- package/dist/cjs/commands/ListApplicationDependenciesCommand.js.map +0 -1
- package/dist/cjs/commands/ListApplicationVersionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListApplicationsCommand.js.map +0 -1
- package/dist/cjs/commands/PutApplicationPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/UnshareApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListApplicationDependenciesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListApplicationVersionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListApplicationsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/ServerlessApplicationRepository.js.map +0 -1
- package/dist/es/ServerlessApplicationRepositoryClient.js +0 -65
- package/dist/es/ServerlessApplicationRepositoryClient.js.map +0 -1
- package/dist/es/commands/CreateApplicationCommand.js.map +0 -1
- package/dist/es/commands/CreateApplicationVersionCommand.js.map +0 -1
- package/dist/es/commands/CreateCloudFormationChangeSetCommand.js.map +0 -1
- package/dist/es/commands/CreateCloudFormationTemplateCommand.js.map +0 -1
- package/dist/es/commands/DeleteApplicationCommand.js.map +0 -1
- package/dist/es/commands/GetApplicationCommand.js.map +0 -1
- package/dist/es/commands/GetApplicationPolicyCommand.js.map +0 -1
- package/dist/es/commands/GetCloudFormationTemplateCommand.js.map +0 -1
- package/dist/es/commands/ListApplicationDependenciesCommand.js.map +0 -1
- package/dist/es/commands/ListApplicationVersionsCommand.js.map +0 -1
- package/dist/es/commands/ListApplicationsCommand.js.map +0 -1
- package/dist/es/commands/PutApplicationPolicyCommand.js.map +0 -1
- package/dist/es/commands/UnshareApplicationCommand.js.map +0 -1
- package/dist/es/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -22
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListApplicationDependenciesPaginator.js.map +0 -1
- package/dist/es/pagination/ListApplicationVersionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListApplicationsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/commands/CreateApplicationCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteApplicationCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetApplicationCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListApplicationsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/PutApplicationPolicyCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/UnshareApplicationCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateApplicationCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1325
- package/endpoints.ts +0 -66
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1649
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListApplicationDependenciesPaginator.ts +0 -60
- package/pagination/ListApplicationVersionsPaginator.ts +0 -60
- package/pagination/ListApplicationsPaginator.ts +0 -60
- package/protocols/Aws_restJson1.ts +0 -2545
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
package/pagination/Interfaces.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ServerlessApplicationRepository } from "../ServerlessApplicationRepository";
|
|
2
|
-
import { ServerlessApplicationRepositoryClient } from "../ServerlessApplicationRepositoryClient";
|
|
3
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
4
|
-
|
|
5
|
-
export interface ServerlessApplicationRepositoryPaginationConfiguration extends PaginationConfiguration {
|
|
6
|
-
client: ServerlessApplicationRepository | ServerlessApplicationRepositoryClient;
|
|
7
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ServerlessApplicationRepository } from "../ServerlessApplicationRepository";
|
|
2
|
-
import { ServerlessApplicationRepositoryClient } from "../ServerlessApplicationRepositoryClient";
|
|
3
|
-
import {
|
|
4
|
-
ListApplicationDependenciesCommand,
|
|
5
|
-
ListApplicationDependenciesCommandInput,
|
|
6
|
-
ListApplicationDependenciesCommandOutput,
|
|
7
|
-
} from "../commands/ListApplicationDependenciesCommand";
|
|
8
|
-
import { ServerlessApplicationRepositoryPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: ServerlessApplicationRepositoryClient,
|
|
16
|
-
input: ListApplicationDependenciesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListApplicationDependenciesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListApplicationDependenciesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: ServerlessApplicationRepository,
|
|
27
|
-
input: ListApplicationDependenciesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListApplicationDependenciesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listApplicationDependencies(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListApplicationDependencies(
|
|
34
|
-
config: ServerlessApplicationRepositoryPaginationConfiguration,
|
|
35
|
-
input: ListApplicationDependenciesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListApplicationDependenciesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListApplicationDependenciesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxItems"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof ServerlessApplicationRepository) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof ServerlessApplicationRepositoryClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error(
|
|
51
|
-
"Invalid client, expected ServerlessApplicationRepository | ServerlessApplicationRepositoryClient"
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
yield page;
|
|
55
|
-
token = page.NextToken;
|
|
56
|
-
hasNext = !!token;
|
|
57
|
-
}
|
|
58
|
-
// @ts-ignore
|
|
59
|
-
return undefined;
|
|
60
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ServerlessApplicationRepository } from "../ServerlessApplicationRepository";
|
|
2
|
-
import { ServerlessApplicationRepositoryClient } from "../ServerlessApplicationRepositoryClient";
|
|
3
|
-
import {
|
|
4
|
-
ListApplicationVersionsCommand,
|
|
5
|
-
ListApplicationVersionsCommandInput,
|
|
6
|
-
ListApplicationVersionsCommandOutput,
|
|
7
|
-
} from "../commands/ListApplicationVersionsCommand";
|
|
8
|
-
import { ServerlessApplicationRepositoryPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: ServerlessApplicationRepositoryClient,
|
|
16
|
-
input: ListApplicationVersionsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListApplicationVersionsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListApplicationVersionsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: ServerlessApplicationRepository,
|
|
27
|
-
input: ListApplicationVersionsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListApplicationVersionsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listApplicationVersions(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListApplicationVersions(
|
|
34
|
-
config: ServerlessApplicationRepositoryPaginationConfiguration,
|
|
35
|
-
input: ListApplicationVersionsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListApplicationVersionsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListApplicationVersionsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxItems"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof ServerlessApplicationRepository) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof ServerlessApplicationRepositoryClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error(
|
|
51
|
-
"Invalid client, expected ServerlessApplicationRepository | ServerlessApplicationRepositoryClient"
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
yield page;
|
|
55
|
-
token = page.NextToken;
|
|
56
|
-
hasNext = !!token;
|
|
57
|
-
}
|
|
58
|
-
// @ts-ignore
|
|
59
|
-
return undefined;
|
|
60
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ServerlessApplicationRepository } from "../ServerlessApplicationRepository";
|
|
2
|
-
import { ServerlessApplicationRepositoryClient } from "../ServerlessApplicationRepositoryClient";
|
|
3
|
-
import {
|
|
4
|
-
ListApplicationsCommand,
|
|
5
|
-
ListApplicationsCommandInput,
|
|
6
|
-
ListApplicationsCommandOutput,
|
|
7
|
-
} from "../commands/ListApplicationsCommand";
|
|
8
|
-
import { ServerlessApplicationRepositoryPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: ServerlessApplicationRepositoryClient,
|
|
16
|
-
input: ListApplicationsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListApplicationsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListApplicationsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: ServerlessApplicationRepository,
|
|
27
|
-
input: ListApplicationsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListApplicationsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listApplications(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListApplications(
|
|
34
|
-
config: ServerlessApplicationRepositoryPaginationConfiguration,
|
|
35
|
-
input: ListApplicationsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListApplicationsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListApplicationsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxItems"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof ServerlessApplicationRepository) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof ServerlessApplicationRepositoryClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error(
|
|
51
|
-
"Invalid client, expected ServerlessApplicationRepository | ServerlessApplicationRepositoryClient"
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
yield page;
|
|
55
|
-
token = page.NextToken;
|
|
56
|
-
hasNext = !!token;
|
|
57
|
-
}
|
|
58
|
-
// @ts-ignore
|
|
59
|
-
return undefined;
|
|
60
|
-
}
|