@aws-sdk/client-signer 3.35.0 → 3.38.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/CHANGELOG.md +47 -0
- package/dist-cjs/Signer.js +0 -20
- package/dist-cjs/SignerClient.js +0 -25
- package/dist-cjs/commands/AddProfilePermissionCommand.js +0 -25
- package/dist-cjs/commands/CancelSigningProfileCommand.js +0 -28
- package/dist-cjs/commands/DescribeSigningJobCommand.js +0 -27
- package/dist-cjs/commands/GetSigningPlatformCommand.js +0 -25
- package/dist-cjs/commands/GetSigningProfileCommand.js +0 -25
- package/dist-cjs/commands/ListProfilePermissionsCommand.js +0 -25
- package/dist-cjs/commands/ListSigningJobsCommand.js +0 -31
- package/dist-cjs/commands/ListSigningPlatformsCommand.js +0 -31
- package/dist-cjs/commands/ListSigningProfilesCommand.js +0 -32
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/PutSigningProfileCommand.js +0 -27
- package/dist-cjs/commands/RemoveProfilePermissionCommand.js +0 -25
- package/dist-cjs/commands/RevokeSignatureCommand.js +0 -26
- package/dist-cjs/commands/RevokeSigningProfileCommand.js +0 -27
- package/dist-cjs/commands/StartSigningJobCommand.js +0 -52
- package/dist-cjs/commands/TagResourceCommand.js +0 -28
- package/dist-cjs/commands/UntagResourceCommand.js +0 -26
- package/dist-cjs/commands/index.js +20 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +5 -25
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -184
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListSigningJobsPaginator.js +0 -11
- package/dist-cjs/pagination/ListSigningPlatformsPaginator.js +0 -11
- package/dist-cjs/pagination/ListSigningProfilesPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-cjs/waiters/index.js +4 -0
- package/dist-cjs/waiters/waitForSuccessfulSigningJob.js +0 -10
- package/dist-es/Signer.js +0 -1
- package/dist-es/SignerClient.js +0 -1
- package/dist-es/commands/AddProfilePermissionCommand.js +0 -1
- package/dist-es/commands/CancelSigningProfileCommand.js +0 -1
- package/dist-es/commands/DescribeSigningJobCommand.js +0 -1
- package/dist-es/commands/GetSigningPlatformCommand.js +0 -1
- package/dist-es/commands/GetSigningProfileCommand.js +0 -1
- package/dist-es/commands/ListProfilePermissionsCommand.js +0 -1
- package/dist-es/commands/ListSigningJobsCommand.js +0 -1
- package/dist-es/commands/ListSigningPlatformsCommand.js +0 -1
- package/dist-es/commands/ListSigningProfilesCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PutSigningProfileCommand.js +0 -1
- package/dist-es/commands/RemoveProfilePermissionCommand.js +0 -1
- package/dist-es/commands/RevokeSignatureCommand.js +0 -1
- package/dist-es/commands/RevokeSigningProfileCommand.js +0 -1
- package/dist-es/commands/StartSigningJobCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/index.js +17 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +5 -25
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListSigningJobsPaginator.js +0 -1
- package/dist-es/pagination/ListSigningPlatformsPaginator.js +0 -1
- package/dist-es/pagination/ListSigningProfilesPaginator.js +0 -1
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-es/waiters/index.js +1 -0
- package/dist-es/waiters/waitForSuccessfulSigningJob.js +0 -1
- package/dist-types/commands/index.d.ts +17 -0
- package/dist-types/index.d.ts +5 -24
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/Signer.d.ts +18 -130
- package/dist-types/ts3.4/SignerClient.d.ts +24 -105
- package/dist-types/ts3.4/commands/AddProfilePermissionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CancelSigningProfileCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeSigningJobCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetSigningPlatformCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetSigningProfileCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListProfilePermissionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListSigningJobsCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListSigningPlatformsCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListSigningProfilesCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutSigningProfileCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/RemoveProfilePermissionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/RevokeSignatureCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/RevokeSigningProfileCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartSigningJobCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/index.d.ts +17 -0
- package/dist-types/ts3.4/index.d.ts +5 -24
- package/dist-types/ts3.4/models/models_0.d.ts +279 -902
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForSuccessfulSigningJob.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +1 -0
- package/package.json +34 -31
- package/dist-cjs/Signer.js.map +0 -1
- package/dist-cjs/SignerClient.js.map +0 -1
- package/dist-cjs/commands/AddProfilePermissionCommand.js.map +0 -1
- package/dist-cjs/commands/CancelSigningProfileCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeSigningJobCommand.js.map +0 -1
- package/dist-cjs/commands/GetSigningPlatformCommand.js.map +0 -1
- package/dist-cjs/commands/GetSigningProfileCommand.js.map +0 -1
- package/dist-cjs/commands/ListProfilePermissionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListSigningJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListSigningPlatformsCommand.js.map +0 -1
- package/dist-cjs/commands/ListSigningProfilesCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PutSigningProfileCommand.js.map +0 -1
- package/dist-cjs/commands/RemoveProfilePermissionCommand.js.map +0 -1
- package/dist-cjs/commands/RevokeSignatureCommand.js.map +0 -1
- package/dist-cjs/commands/RevokeSigningProfileCommand.js.map +0 -1
- package/dist-cjs/commands/StartSigningJobCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.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/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListSigningJobsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListSigningPlatformsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListSigningProfilesPaginator.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-cjs/waiters/waitForSuccessfulSigningJob.js.map +0 -1
- package/dist-es/Signer.js.map +0 -1
- package/dist-es/SignerClient.js.map +0 -1
- package/dist-es/commands/AddProfilePermissionCommand.js.map +0 -1
- package/dist-es/commands/CancelSigningProfileCommand.js.map +0 -1
- package/dist-es/commands/DescribeSigningJobCommand.js.map +0 -1
- package/dist-es/commands/GetSigningPlatformCommand.js.map +0 -1
- package/dist-es/commands/GetSigningProfileCommand.js.map +0 -1
- package/dist-es/commands/ListProfilePermissionsCommand.js.map +0 -1
- package/dist-es/commands/ListSigningJobsCommand.js.map +0 -1
- package/dist-es/commands/ListSigningPlatformsCommand.js.map +0 -1
- package/dist-es/commands/ListSigningProfilesCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PutSigningProfileCommand.js.map +0 -1
- package/dist-es/commands/RemoveProfilePermissionCommand.js.map +0 -1
- package/dist-es/commands/RevokeSignatureCommand.js.map +0 -1
- package/dist-es/commands/RevokeSigningProfileCommand.js.map +0 -1
- package/dist-es/commands/StartSigningJobCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListSigningJobsPaginator.js.map +0 -1
- package/dist-es/pagination/ListSigningPlatformsPaginator.js.map +0 -1
- package/dist-es/pagination/ListSigningProfilesPaginator.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-es/waiters/waitForSuccessfulSigningJob.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/Signer.ts +0 -703
- package/src/SignerClient.ts +0 -327
- package/src/commands/AddProfilePermissionCommand.ts +0 -95
- package/src/commands/CancelSigningProfileCommand.ts +0 -98
- package/src/commands/DescribeSigningJobCommand.ts +0 -97
- package/src/commands/GetSigningPlatformCommand.ts +0 -95
- package/src/commands/GetSigningProfileCommand.ts +0 -95
- package/src/commands/ListProfilePermissionsCommand.ts +0 -95
- package/src/commands/ListSigningJobsCommand.ts +0 -101
- package/src/commands/ListSigningPlatformsCommand.ts +0 -101
- package/src/commands/ListSigningProfilesCommand.ts +0 -102
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/PutSigningProfileCommand.ts +0 -97
- package/src/commands/RemoveProfilePermissionCommand.ts +0 -95
- package/src/commands/RevokeSignatureCommand.ts +0 -96
- package/src/commands/RevokeSigningProfileCommand.ts +0 -97
- package/src/commands/StartSigningJobCommand.ts +0 -122
- package/src/commands/TagResourceCommand.ts +0 -98
- package/src/commands/UntagResourceCommand.ts +0 -96
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -25
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1831
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListSigningJobsPaginator.ts +0 -59
- package/src/pagination/ListSigningPlatformsPaginator.ts +0 -59
- package/src/pagination/ListSigningProfilesPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -2978
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/src/waiters/waitForSuccessfulSigningJob.ts +0 -58
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { Signer } from "../Signer";
|
|
4
|
-
import { SignerClient } from "../SignerClient";
|
|
5
|
-
|
|
6
|
-
export interface SignerPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: Signer | SignerClient;
|
|
8
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListSigningJobsCommand,
|
|
5
|
-
ListSigningJobsCommandInput,
|
|
6
|
-
ListSigningJobsCommandOutput,
|
|
7
|
-
} from "../commands/ListSigningJobsCommand";
|
|
8
|
-
import { Signer } from "../Signer";
|
|
9
|
-
import { SignerClient } from "../SignerClient";
|
|
10
|
-
import { SignerPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SignerClient,
|
|
17
|
-
input: ListSigningJobsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListSigningJobsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListSigningJobsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Signer,
|
|
28
|
-
input: ListSigningJobsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListSigningJobsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listSigningJobs(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListSigningJobs(
|
|
35
|
-
config: SignerPaginationConfiguration,
|
|
36
|
-
input: ListSigningJobsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListSigningJobsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListSigningJobsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Signer) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SignerClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Signer | SignerClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListSigningPlatformsCommand,
|
|
5
|
-
ListSigningPlatformsCommandInput,
|
|
6
|
-
ListSigningPlatformsCommandOutput,
|
|
7
|
-
} from "../commands/ListSigningPlatformsCommand";
|
|
8
|
-
import { Signer } from "../Signer";
|
|
9
|
-
import { SignerClient } from "../SignerClient";
|
|
10
|
-
import { SignerPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SignerClient,
|
|
17
|
-
input: ListSigningPlatformsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListSigningPlatformsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListSigningPlatformsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Signer,
|
|
28
|
-
input: ListSigningPlatformsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListSigningPlatformsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listSigningPlatforms(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListSigningPlatforms(
|
|
35
|
-
config: SignerPaginationConfiguration,
|
|
36
|
-
input: ListSigningPlatformsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListSigningPlatformsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListSigningPlatformsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Signer) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SignerClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Signer | SignerClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListSigningProfilesCommand,
|
|
5
|
-
ListSigningProfilesCommandInput,
|
|
6
|
-
ListSigningProfilesCommandOutput,
|
|
7
|
-
} from "../commands/ListSigningProfilesCommand";
|
|
8
|
-
import { Signer } from "../Signer";
|
|
9
|
-
import { SignerClient } from "../SignerClient";
|
|
10
|
-
import { SignerPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SignerClient,
|
|
17
|
-
input: ListSigningProfilesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListSigningProfilesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListSigningProfilesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Signer,
|
|
28
|
-
input: ListSigningProfilesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListSigningProfilesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listSigningProfiles(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListSigningProfiles(
|
|
35
|
-
config: SignerPaginationConfiguration,
|
|
36
|
-
input: ListSigningProfilesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListSigningProfilesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListSigningProfilesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Signer) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SignerClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Signer | SignerClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|