@aws-sdk/client-ivs 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 +48 -0
- package/README.md +54 -107
- package/dist-cjs/Ivs.js +0 -363
- package/dist-cjs/IvsClient.js +0 -368
- package/dist-cjs/commands/BatchGetChannelCommand.js +0 -25
- package/dist-cjs/commands/BatchGetStreamKeyCommand.js +0 -25
- package/dist-cjs/commands/CreateChannelCommand.js +0 -25
- package/dist-cjs/commands/CreateRecordingConfigurationCommand.js +0 -36
- package/dist-cjs/commands/CreateStreamKeyCommand.js +0 -28
- package/dist-cjs/commands/DeleteChannelCommand.js +0 -29
- package/dist-cjs/commands/DeletePlaybackKeyPairCommand.js +0 -27
- package/dist-cjs/commands/DeleteRecordingConfigurationCommand.js +0 -30
- package/dist-cjs/commands/DeleteStreamKeyCommand.js +0 -26
- package/dist-cjs/commands/GetChannelCommand.js +0 -25
- package/dist-cjs/commands/GetPlaybackKeyPairCommand.js +0 -29
- package/dist-cjs/commands/GetRecordingConfigurationCommand.js +0 -25
- package/dist-cjs/commands/GetStreamCommand.js +0 -25
- package/dist-cjs/commands/GetStreamKeyCommand.js +0 -25
- package/dist-cjs/commands/ImportPlaybackKeyPairCommand.js +0 -29
- package/dist-cjs/commands/ListChannelsCommand.js +0 -28
- package/dist-cjs/commands/ListPlaybackKeyPairsCommand.js +0 -26
- package/dist-cjs/commands/ListRecordingConfigurationsCommand.js +0 -26
- package/dist-cjs/commands/ListStreamKeysCommand.js +0 -25
- package/dist-cjs/commands/ListStreamsCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/PutMetadataCommand.js +0 -31
- package/dist-cjs/commands/StopStreamCommand.js +0 -32
- package/dist-cjs/commands/TagResourceCommand.js +0 -25
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateChannelCommand.js +0 -26
- package/dist-cjs/commands/index.js +29 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -36
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +7 -214
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListChannelsPaginator.js +0 -11
- package/dist-cjs/pagination/ListPlaybackKeyPairsPaginator.js +0 -11
- package/dist-cjs/pagination/ListRecordingConfigurationsPaginator.js +0 -11
- package/dist-cjs/pagination/ListStreamKeysPaginator.js +0 -11
- package/dist-cjs/pagination/ListStreamsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1 -17
- 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-es/Ivs.js +0 -1
- package/dist-es/IvsClient.js +0 -1
- package/dist-es/commands/BatchGetChannelCommand.js +0 -1
- package/dist-es/commands/BatchGetStreamKeyCommand.js +0 -1
- package/dist-es/commands/CreateChannelCommand.js +0 -1
- package/dist-es/commands/CreateRecordingConfigurationCommand.js +0 -1
- package/dist-es/commands/CreateStreamKeyCommand.js +0 -1
- package/dist-es/commands/DeleteChannelCommand.js +0 -1
- package/dist-es/commands/DeletePlaybackKeyPairCommand.js +0 -1
- package/dist-es/commands/DeleteRecordingConfigurationCommand.js +0 -1
- package/dist-es/commands/DeleteStreamKeyCommand.js +0 -1
- package/dist-es/commands/GetChannelCommand.js +0 -1
- package/dist-es/commands/GetPlaybackKeyPairCommand.js +0 -1
- package/dist-es/commands/GetRecordingConfigurationCommand.js +0 -1
- package/dist-es/commands/GetStreamCommand.js +0 -1
- package/dist-es/commands/GetStreamKeyCommand.js +0 -1
- package/dist-es/commands/ImportPlaybackKeyPairCommand.js +0 -1
- package/dist-es/commands/ListChannelsCommand.js +0 -1
- package/dist-es/commands/ListPlaybackKeyPairsCommand.js +0 -1
- package/dist-es/commands/ListRecordingConfigurationsCommand.js +0 -1
- package/dist-es/commands/ListStreamKeysCommand.js +0 -1
- package/dist-es/commands/ListStreamsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PutMetadataCommand.js +0 -1
- package/dist-es/commands/StopStreamCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateChannelCommand.js +0 -1
- package/dist-es/commands/index.js +26 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -36
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +7 -7
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListChannelsPaginator.js +0 -1
- package/dist-es/pagination/ListPlaybackKeyPairsPaginator.js +0 -1
- package/dist-es/pagination/ListRecordingConfigurationsPaginator.js +0 -1
- package/dist-es/pagination/ListStreamKeysPaginator.js +0 -1
- package/dist-es/pagination/ListStreamsPaginator.js +0 -1
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +1 -9
- 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-types/Ivs.d.ts +65 -124
- package/dist-types/IvsClient.d.ts +54 -111
- package/dist-types/commands/CreateRecordingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/ListChannelsCommand.d.ts +1 -1
- package/dist-types/commands/ListRecordingConfigurationsCommand.d.ts +1 -1
- package/dist-types/commands/ListStreamsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutMetadataCommand.d.ts +5 -7
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +26 -0
- package/dist-types/index.d.ts +4 -35
- package/dist-types/models/models_0.d.ts +92 -60
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/Ivs.d.ts +27 -494
- package/dist-types/ts3.4/IvsClient.d.ts +24 -448
- package/dist-types/ts3.4/commands/BatchGetChannelCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/BatchGetStreamKeyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateRecordingConfigurationCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/CreateStreamKeyCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeletePlaybackKeyPairCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteRecordingConfigurationCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DeleteStreamKeyCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetPlaybackKeyPairCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/GetRecordingConfigurationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetStreamCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetStreamKeyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ImportPlaybackKeyPairCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListPlaybackKeyPairsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListRecordingConfigurationsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListStreamKeysCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutMetadataCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/StopStreamCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/index.d.ts +26 -0
- package/dist-types/ts3.4/index.d.ts +4 -35
- package/dist-types/ts3.4/models/models_0.d.ts +237 -771
- package/dist-types/ts3.4/pagination/index.d.ts +6 -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/package.json +33 -30
- package/dist-cjs/Ivs.js.map +0 -1
- package/dist-cjs/IvsClient.js.map +0 -1
- package/dist-cjs/commands/BatchGetChannelCommand.js.map +0 -1
- package/dist-cjs/commands/BatchGetStreamKeyCommand.js.map +0 -1
- package/dist-cjs/commands/CreateChannelCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRecordingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/CreateStreamKeyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteChannelCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePlaybackKeyPairCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRecordingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteStreamKeyCommand.js.map +0 -1
- package/dist-cjs/commands/GetChannelCommand.js.map +0 -1
- package/dist-cjs/commands/GetPlaybackKeyPairCommand.js.map +0 -1
- package/dist-cjs/commands/GetRecordingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/GetStreamCommand.js.map +0 -1
- package/dist-cjs/commands/GetStreamKeyCommand.js.map +0 -1
- package/dist-cjs/commands/ImportPlaybackKeyPairCommand.js.map +0 -1
- package/dist-cjs/commands/ListChannelsCommand.js.map +0 -1
- package/dist-cjs/commands/ListPlaybackKeyPairsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRecordingConfigurationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListStreamKeysCommand.js.map +0 -1
- package/dist-cjs/commands/ListStreamsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PutMetadataCommand.js.map +0 -1
- package/dist-cjs/commands/StopStreamCommand.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/commands/UpdateChannelCommand.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/ListChannelsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListPlaybackKeyPairsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListRecordingConfigurationsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListStreamKeysPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListStreamsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -46
- package/dist-cjs/pagination/ListTagsForResourcePaginator.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/Ivs.js.map +0 -1
- package/dist-es/IvsClient.js.map +0 -1
- package/dist-es/commands/BatchGetChannelCommand.js.map +0 -1
- package/dist-es/commands/BatchGetStreamKeyCommand.js.map +0 -1
- package/dist-es/commands/CreateChannelCommand.js.map +0 -1
- package/dist-es/commands/CreateRecordingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/CreateStreamKeyCommand.js.map +0 -1
- package/dist-es/commands/DeleteChannelCommand.js.map +0 -1
- package/dist-es/commands/DeletePlaybackKeyPairCommand.js.map +0 -1
- package/dist-es/commands/DeleteRecordingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/DeleteStreamKeyCommand.js.map +0 -1
- package/dist-es/commands/GetChannelCommand.js.map +0 -1
- package/dist-es/commands/GetPlaybackKeyPairCommand.js.map +0 -1
- package/dist-es/commands/GetRecordingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/GetStreamCommand.js.map +0 -1
- package/dist-es/commands/GetStreamKeyCommand.js.map +0 -1
- package/dist-es/commands/ImportPlaybackKeyPairCommand.js.map +0 -1
- package/dist-es/commands/ListChannelsCommand.js.map +0 -1
- package/dist-es/commands/ListPlaybackKeyPairsCommand.js.map +0 -1
- package/dist-es/commands/ListRecordingConfigurationsCommand.js.map +0 -1
- package/dist-es/commands/ListStreamKeysCommand.js.map +0 -1
- package/dist-es/commands/ListStreamsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PutMetadataCommand.js.map +0 -1
- package/dist-es/commands/StopStreamCommand.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/commands/UpdateChannelCommand.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/ListChannelsPaginator.js.map +0 -1
- package/dist-es/pagination/ListPlaybackKeyPairsPaginator.js.map +0 -1
- package/dist-es/pagination/ListRecordingConfigurationsPaginator.js.map +0 -1
- package/dist-es/pagination/ListStreamKeysPaginator.js.map +0 -1
- package/dist-es/pagination/ListStreamsPaginator.js.map +0 -1
- package/dist-es/pagination/ListTagsForResourcePaginator.js +0 -75
- package/dist-es/pagination/ListTagsForResourcePaginator.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/pagination/ListTagsForResourcePaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +0 -4
- package/jest.config.js +0 -4
- package/src/Ivs.ts +0 -1317
- package/src/IvsClient.ts +0 -697
- package/src/commands/BatchGetChannelCommand.ts +0 -95
- package/src/commands/BatchGetStreamKeyCommand.ts +0 -95
- package/src/commands/CreateChannelCommand.ts +0 -95
- package/src/commands/CreateRecordingConfigurationCommand.ts +0 -111
- package/src/commands/CreateStreamKeyCommand.ts +0 -98
- package/src/commands/DeleteChannelCommand.ts +0 -99
- package/src/commands/DeletePlaybackKeyPairCommand.ts +0 -97
- package/src/commands/DeleteRecordingConfigurationCommand.ts +0 -103
- package/src/commands/DeleteStreamKeyCommand.ts +0 -96
- package/src/commands/GetChannelCommand.ts +0 -95
- package/src/commands/GetPlaybackKeyPairCommand.ts +0 -99
- package/src/commands/GetRecordingConfigurationCommand.ts +0 -98
- package/src/commands/GetStreamCommand.ts +0 -91
- package/src/commands/GetStreamKeyCommand.ts +0 -95
- package/src/commands/ImportPlaybackKeyPairCommand.ts +0 -99
- package/src/commands/ListChannelsCommand.ts +0 -98
- package/src/commands/ListPlaybackKeyPairsCommand.ts +0 -96
- package/src/commands/ListRecordingConfigurationsCommand.ts +0 -101
- package/src/commands/ListStreamKeysCommand.ts +0 -95
- package/src/commands/ListStreamsCommand.ts +0 -96
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/PutMetadataCommand.ts +0 -101
- package/src/commands/StopStreamCommand.ts +0 -102
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateChannelCommand.ts +0 -96
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -36
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1673
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListChannelsPaginator.ts +0 -59
- package/src/pagination/ListPlaybackKeyPairsPaginator.ts +0 -59
- package/src/pagination/ListRecordingConfigurationsPaginator.ts +0 -59
- package/src/pagination/ListStreamKeysPaginator.ts +0 -59
- package/src/pagination/ListStreamsPaginator.ts +0 -55
- package/src/pagination/ListTagsForResourcePaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -3327
- 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/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListChannelsCommand,
|
|
5
|
-
ListChannelsCommandInput,
|
|
6
|
-
ListChannelsCommandOutput,
|
|
7
|
-
} from "../commands/ListChannelsCommand";
|
|
8
|
-
import { Ivs } from "../Ivs";
|
|
9
|
-
import { IvsClient } from "../IvsClient";
|
|
10
|
-
import { IvsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: IvsClient,
|
|
17
|
-
input: ListChannelsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListChannelsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListChannelsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Ivs,
|
|
28
|
-
input: ListChannelsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListChannelsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listChannels(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListChannels(
|
|
35
|
-
config: IvsPaginationConfiguration,
|
|
36
|
-
input: ListChannelsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListChannelsCommandOutput> {
|
|
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: ListChannelsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Ivs) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof IvsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Ivs | IvsClient");
|
|
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
|
-
ListPlaybackKeyPairsCommand,
|
|
5
|
-
ListPlaybackKeyPairsCommandInput,
|
|
6
|
-
ListPlaybackKeyPairsCommandOutput,
|
|
7
|
-
} from "../commands/ListPlaybackKeyPairsCommand";
|
|
8
|
-
import { Ivs } from "../Ivs";
|
|
9
|
-
import { IvsClient } from "../IvsClient";
|
|
10
|
-
import { IvsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: IvsClient,
|
|
17
|
-
input: ListPlaybackKeyPairsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListPlaybackKeyPairsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListPlaybackKeyPairsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Ivs,
|
|
28
|
-
input: ListPlaybackKeyPairsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListPlaybackKeyPairsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listPlaybackKeyPairs(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListPlaybackKeyPairs(
|
|
35
|
-
config: IvsPaginationConfiguration,
|
|
36
|
-
input: ListPlaybackKeyPairsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListPlaybackKeyPairsCommandOutput> {
|
|
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: ListPlaybackKeyPairsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Ivs) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof IvsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Ivs | IvsClient");
|
|
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
|
-
ListRecordingConfigurationsCommand,
|
|
5
|
-
ListRecordingConfigurationsCommandInput,
|
|
6
|
-
ListRecordingConfigurationsCommandOutput,
|
|
7
|
-
} from "../commands/ListRecordingConfigurationsCommand";
|
|
8
|
-
import { Ivs } from "../Ivs";
|
|
9
|
-
import { IvsClient } from "../IvsClient";
|
|
10
|
-
import { IvsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: IvsClient,
|
|
17
|
-
input: ListRecordingConfigurationsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListRecordingConfigurationsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListRecordingConfigurationsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Ivs,
|
|
28
|
-
input: ListRecordingConfigurationsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListRecordingConfigurationsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listRecordingConfigurations(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListRecordingConfigurations(
|
|
35
|
-
config: IvsPaginationConfiguration,
|
|
36
|
-
input: ListRecordingConfigurationsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListRecordingConfigurationsCommandOutput> {
|
|
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: ListRecordingConfigurationsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Ivs) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof IvsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Ivs | IvsClient");
|
|
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
|
-
ListStreamKeysCommand,
|
|
5
|
-
ListStreamKeysCommandInput,
|
|
6
|
-
ListStreamKeysCommandOutput,
|
|
7
|
-
} from "../commands/ListStreamKeysCommand";
|
|
8
|
-
import { Ivs } from "../Ivs";
|
|
9
|
-
import { IvsClient } from "../IvsClient";
|
|
10
|
-
import { IvsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: IvsClient,
|
|
17
|
-
input: ListStreamKeysCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListStreamKeysCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListStreamKeysCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Ivs,
|
|
28
|
-
input: ListStreamKeysCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListStreamKeysCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listStreamKeys(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListStreamKeys(
|
|
35
|
-
config: IvsPaginationConfiguration,
|
|
36
|
-
input: ListStreamKeysCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListStreamKeysCommandOutput> {
|
|
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: ListStreamKeysCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Ivs) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof IvsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Ivs | IvsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ListStreamsCommand, ListStreamsCommandInput, ListStreamsCommandOutput } from "../commands/ListStreamsCommand";
|
|
4
|
-
import { Ivs } from "../Ivs";
|
|
5
|
-
import { IvsClient } from "../IvsClient";
|
|
6
|
-
import { IvsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
const makePagedClientRequest = async (
|
|
12
|
-
client: IvsClient,
|
|
13
|
-
input: ListStreamsCommandInput,
|
|
14
|
-
...args: any
|
|
15
|
-
): Promise<ListStreamsCommandOutput> => {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return await client.send(new ListStreamsCommand(input), ...args);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const makePagedRequest = async (
|
|
23
|
-
client: Ivs,
|
|
24
|
-
input: ListStreamsCommandInput,
|
|
25
|
-
...args: any
|
|
26
|
-
): Promise<ListStreamsCommandOutput> => {
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
return await client.listStreams(input, ...args);
|
|
29
|
-
};
|
|
30
|
-
export async function* paginateListStreams(
|
|
31
|
-
config: IvsPaginationConfiguration,
|
|
32
|
-
input: ListStreamsCommandInput,
|
|
33
|
-
...additionalArguments: any
|
|
34
|
-
): Paginator<ListStreamsCommandOutput> {
|
|
35
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
36
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
37
|
-
let hasNext = true;
|
|
38
|
-
let page: ListStreamsCommandOutput;
|
|
39
|
-
while (hasNext) {
|
|
40
|
-
input.nextToken = token;
|
|
41
|
-
input["maxResults"] = config.pageSize;
|
|
42
|
-
if (config.client instanceof Ivs) {
|
|
43
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else if (config.client instanceof IvsClient) {
|
|
45
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else {
|
|
47
|
-
throw new Error("Invalid client, expected Ivs | IvsClient");
|
|
48
|
-
}
|
|
49
|
-
yield page;
|
|
50
|
-
token = page.nextToken;
|
|
51
|
-
hasNext = !!token;
|
|
52
|
-
}
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListTagsForResourceCommand,
|
|
5
|
-
ListTagsForResourceCommandInput,
|
|
6
|
-
ListTagsForResourceCommandOutput,
|
|
7
|
-
} from "../commands/ListTagsForResourceCommand";
|
|
8
|
-
import { Ivs } from "../Ivs";
|
|
9
|
-
import { IvsClient } from "../IvsClient";
|
|
10
|
-
import { IvsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: IvsClient,
|
|
17
|
-
input: ListTagsForResourceCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListTagsForResourceCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Ivs,
|
|
28
|
-
input: ListTagsForResourceCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listTagsForResource(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListTagsForResource(
|
|
35
|
-
config: IvsPaginationConfiguration,
|
|
36
|
-
input: ListTagsForResourceCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListTagsForResourceCommandOutput> {
|
|
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: ListTagsForResourceCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Ivs) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof IvsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Ivs | IvsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|