@aws-sdk/client-mediatailor 3.35.0 → 3.36.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 +13 -0
- package/dist-cjs/MediaTailor.js +0 -1
- package/dist-cjs/MediaTailorClient.js +0 -1
- package/dist-cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js +0 -1
- package/dist-cjs/commands/CreateChannelCommand.js +0 -1
- package/dist-cjs/commands/CreateProgramCommand.js +0 -1
- package/dist-cjs/commands/CreateSourceLocationCommand.js +0 -1
- package/dist-cjs/commands/CreateVodSourceCommand.js +0 -1
- package/dist-cjs/commands/DeleteChannelCommand.js +0 -1
- package/dist-cjs/commands/DeleteChannelPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeletePlaybackConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DeleteProgramCommand.js +0 -1
- package/dist-cjs/commands/DeleteSourceLocationCommand.js +0 -1
- package/dist-cjs/commands/DeleteVodSourceCommand.js +0 -1
- package/dist-cjs/commands/DescribeChannelCommand.js +0 -1
- package/dist-cjs/commands/DescribeProgramCommand.js +0 -1
- package/dist-cjs/commands/DescribeSourceLocationCommand.js +0 -1
- package/dist-cjs/commands/DescribeVodSourceCommand.js +0 -1
- package/dist-cjs/commands/GetChannelPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetChannelScheduleCommand.js +0 -1
- package/dist-cjs/commands/GetPlaybackConfigurationCommand.js +0 -1
- package/dist-cjs/commands/ListAlertsCommand.js +0 -1
- package/dist-cjs/commands/ListChannelsCommand.js +0 -1
- package/dist-cjs/commands/ListPlaybackConfigurationsCommand.js +0 -1
- package/dist-cjs/commands/ListSourceLocationsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListVodSourcesCommand.js +0 -1
- package/dist-cjs/commands/PutChannelPolicyCommand.js +0 -1
- package/dist-cjs/commands/PutPlaybackConfigurationCommand.js +0 -1
- package/dist-cjs/commands/StartChannelCommand.js +0 -1
- package/dist-cjs/commands/StopChannelCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateChannelCommand.js +0 -1
- package/dist-cjs/commands/UpdateSourceLocationCommand.js +0 -1
- package/dist-cjs/commands/UpdateVodSourceCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/GetChannelSchedulePaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListAlertsPaginator.js +0 -1
- package/dist-cjs/pagination/ListChannelsPaginator.js +0 -1
- package/dist-cjs/pagination/ListPlaybackConfigurationsPaginator.js +0 -1
- package/dist-cjs/pagination/ListSourceLocationsPaginator.js +0 -1
- package/dist-cjs/pagination/ListVodSourcesPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/MediaTailor.js +0 -1
- package/dist-es/MediaTailorClient.js +0 -1
- package/dist-es/commands/ConfigureLogsForPlaybackConfigurationCommand.js +0 -1
- package/dist-es/commands/CreateChannelCommand.js +0 -1
- package/dist-es/commands/CreateProgramCommand.js +0 -1
- package/dist-es/commands/CreateSourceLocationCommand.js +0 -1
- package/dist-es/commands/CreateVodSourceCommand.js +0 -1
- package/dist-es/commands/DeleteChannelCommand.js +0 -1
- package/dist-es/commands/DeleteChannelPolicyCommand.js +0 -1
- package/dist-es/commands/DeletePlaybackConfigurationCommand.js +0 -1
- package/dist-es/commands/DeleteProgramCommand.js +0 -1
- package/dist-es/commands/DeleteSourceLocationCommand.js +0 -1
- package/dist-es/commands/DeleteVodSourceCommand.js +0 -1
- package/dist-es/commands/DescribeChannelCommand.js +0 -1
- package/dist-es/commands/DescribeProgramCommand.js +0 -1
- package/dist-es/commands/DescribeSourceLocationCommand.js +0 -1
- package/dist-es/commands/DescribeVodSourceCommand.js +0 -1
- package/dist-es/commands/GetChannelPolicyCommand.js +0 -1
- package/dist-es/commands/GetChannelScheduleCommand.js +0 -1
- package/dist-es/commands/GetPlaybackConfigurationCommand.js +0 -1
- package/dist-es/commands/ListAlertsCommand.js +0 -1
- package/dist-es/commands/ListChannelsCommand.js +0 -1
- package/dist-es/commands/ListPlaybackConfigurationsCommand.js +0 -1
- package/dist-es/commands/ListSourceLocationsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListVodSourcesCommand.js +0 -1
- package/dist-es/commands/PutChannelPolicyCommand.js +0 -1
- package/dist-es/commands/PutPlaybackConfigurationCommand.js +0 -1
- package/dist-es/commands/StartChannelCommand.js +0 -1
- package/dist-es/commands/StopChannelCommand.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/UpdateSourceLocationCommand.js +0 -1
- package/dist-es/commands/UpdateVodSourceCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/GetChannelSchedulePaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListAlertsPaginator.js +0 -1
- package/dist-es/pagination/ListChannelsPaginator.js +0 -1
- package/dist-es/pagination/ListPlaybackConfigurationsPaginator.js +0 -1
- package/dist-es/pagination/ListSourceLocationsPaginator.js +0 -1
- package/dist-es/pagination/ListVodSourcesPaginator.js +0 -1
- 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/package.json +33 -30
- package/dist-cjs/MediaTailor.js.map +0 -1
- package/dist-cjs/MediaTailorClient.js.map +0 -1
- package/dist-cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/CreateChannelCommand.js.map +0 -1
- package/dist-cjs/commands/CreateProgramCommand.js.map +0 -1
- package/dist-cjs/commands/CreateSourceLocationCommand.js.map +0 -1
- package/dist-cjs/commands/CreateVodSourceCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteChannelCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteChannelPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePlaybackConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteProgramCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteSourceLocationCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteVodSourceCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeChannelCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeProgramCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeSourceLocationCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeVodSourceCommand.js.map +0 -1
- package/dist-cjs/commands/GetChannelPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetChannelScheduleCommand.js.map +0 -1
- package/dist-cjs/commands/GetPlaybackConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/ListAlertsCommand.js.map +0 -1
- package/dist-cjs/commands/ListChannelsCommand.js.map +0 -1
- package/dist-cjs/commands/ListPlaybackConfigurationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListSourceLocationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListVodSourcesCommand.js.map +0 -1
- package/dist-cjs/commands/PutChannelPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/PutPlaybackConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/StartChannelCommand.js.map +0 -1
- package/dist-cjs/commands/StopChannelCommand.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/commands/UpdateSourceLocationCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateVodSourceCommand.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/GetChannelSchedulePaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListAlertsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListChannelsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListPlaybackConfigurationsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListSourceLocationsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListVodSourcesPaginator.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/MediaTailor.js.map +0 -1
- package/dist-es/MediaTailorClient.js.map +0 -1
- package/dist-es/commands/ConfigureLogsForPlaybackConfigurationCommand.js.map +0 -1
- package/dist-es/commands/CreateChannelCommand.js.map +0 -1
- package/dist-es/commands/CreateProgramCommand.js.map +0 -1
- package/dist-es/commands/CreateSourceLocationCommand.js.map +0 -1
- package/dist-es/commands/CreateVodSourceCommand.js.map +0 -1
- package/dist-es/commands/DeleteChannelCommand.js.map +0 -1
- package/dist-es/commands/DeleteChannelPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeletePlaybackConfigurationCommand.js.map +0 -1
- package/dist-es/commands/DeleteProgramCommand.js.map +0 -1
- package/dist-es/commands/DeleteSourceLocationCommand.js.map +0 -1
- package/dist-es/commands/DeleteVodSourceCommand.js.map +0 -1
- package/dist-es/commands/DescribeChannelCommand.js.map +0 -1
- package/dist-es/commands/DescribeProgramCommand.js.map +0 -1
- package/dist-es/commands/DescribeSourceLocationCommand.js.map +0 -1
- package/dist-es/commands/DescribeVodSourceCommand.js.map +0 -1
- package/dist-es/commands/GetChannelPolicyCommand.js.map +0 -1
- package/dist-es/commands/GetChannelScheduleCommand.js.map +0 -1
- package/dist-es/commands/GetPlaybackConfigurationCommand.js.map +0 -1
- package/dist-es/commands/ListAlertsCommand.js.map +0 -1
- package/dist-es/commands/ListChannelsCommand.js.map +0 -1
- package/dist-es/commands/ListPlaybackConfigurationsCommand.js.map +0 -1
- package/dist-es/commands/ListSourceLocationsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListVodSourcesCommand.js.map +0 -1
- package/dist-es/commands/PutChannelPolicyCommand.js.map +0 -1
- package/dist-es/commands/PutPlaybackConfigurationCommand.js.map +0 -1
- package/dist-es/commands/StartChannelCommand.js.map +0 -1
- package/dist-es/commands/StopChannelCommand.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/commands/UpdateSourceLocationCommand.js.map +0 -1
- package/dist-es/commands/UpdateVodSourceCommand.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/GetChannelSchedulePaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListAlertsPaginator.js.map +0 -1
- package/dist-es/pagination/ListChannelsPaginator.js.map +0 -1
- package/dist-es/pagination/ListPlaybackConfigurationsPaginator.js.map +0 -1
- package/dist-es/pagination/ListSourceLocationsPaginator.js.map +0 -1
- package/dist-es/pagination/ListVodSourcesPaginator.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/jest.config.js +0 -4
- package/src/MediaTailor.ts +0 -1195
- package/src/MediaTailorClient.ts +0 -371
- package/src/commands/ConfigureLogsForPlaybackConfigurationCommand.ts +0 -107
- package/src/commands/CreateChannelCommand.ts +0 -95
- package/src/commands/CreateProgramCommand.ts +0 -95
- package/src/commands/CreateSourceLocationCommand.ts +0 -95
- package/src/commands/CreateVodSourceCommand.ts +0 -95
- package/src/commands/DeleteChannelCommand.ts +0 -95
- package/src/commands/DeleteChannelPolicyCommand.ts +0 -95
- package/src/commands/DeletePlaybackConfigurationCommand.ts +0 -100
- package/src/commands/DeleteProgramCommand.ts +0 -95
- package/src/commands/DeleteSourceLocationCommand.ts +0 -95
- package/src/commands/DeleteVodSourceCommand.ts +0 -95
- package/src/commands/DescribeChannelCommand.ts +0 -95
- package/src/commands/DescribeProgramCommand.ts +0 -95
- package/src/commands/DescribeSourceLocationCommand.ts +0 -95
- package/src/commands/DescribeVodSourceCommand.ts +0 -95
- package/src/commands/GetChannelPolicyCommand.ts +0 -95
- package/src/commands/GetChannelScheduleCommand.ts +0 -95
- package/src/commands/GetPlaybackConfigurationCommand.ts +0 -95
- package/src/commands/ListAlertsCommand.ts +0 -95
- package/src/commands/ListChannelsCommand.ts +0 -95
- package/src/commands/ListPlaybackConfigurationsCommand.ts +0 -98
- package/src/commands/ListSourceLocationsCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/ListVodSourcesCommand.ts +0 -95
- package/src/commands/PutChannelPolicyCommand.ts +0 -95
- package/src/commands/PutPlaybackConfigurationCommand.ts +0 -95
- package/src/commands/StartChannelCommand.ts +0 -95
- package/src/commands/StopChannelCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateChannelCommand.ts +0 -95
- package/src/commands/UpdateSourceLocationCommand.ts +0 -95
- package/src/commands/UpdateVodSourceCommand.ts +0 -95
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -43
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2929
- package/src/pagination/GetChannelSchedulePaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListAlertsPaginator.ts +0 -55
- package/src/pagination/ListChannelsPaginator.ts +0 -59
- package/src/pagination/ListPlaybackConfigurationsPaginator.ts +0 -59
- package/src/pagination/ListSourceLocationsPaginator.ts +0 -59
- package/src/pagination/ListVodSourcesPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -4207
- 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
|
-
GetChannelScheduleCommand,
|
|
5
|
-
GetChannelScheduleCommandInput,
|
|
6
|
-
GetChannelScheduleCommandOutput,
|
|
7
|
-
} from "../commands/GetChannelScheduleCommand";
|
|
8
|
-
import { MediaTailor } from "../MediaTailor";
|
|
9
|
-
import { MediaTailorClient } from "../MediaTailorClient";
|
|
10
|
-
import { MediaTailorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MediaTailorClient,
|
|
17
|
-
input: GetChannelScheduleCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<GetChannelScheduleCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new GetChannelScheduleCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MediaTailor,
|
|
28
|
-
input: GetChannelScheduleCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<GetChannelScheduleCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.getChannelSchedule(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateGetChannelSchedule(
|
|
35
|
-
config: MediaTailorPaginationConfiguration,
|
|
36
|
-
input: GetChannelScheduleCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<GetChannelScheduleCommandOutput> {
|
|
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: GetChannelScheduleCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MediaTailor) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MediaTailorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { MediaTailor } from "../MediaTailor";
|
|
4
|
-
import { MediaTailorClient } from "../MediaTailorClient";
|
|
5
|
-
|
|
6
|
-
export interface MediaTailorPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: MediaTailor | MediaTailorClient;
|
|
8
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ListAlertsCommand, ListAlertsCommandInput, ListAlertsCommandOutput } from "../commands/ListAlertsCommand";
|
|
4
|
-
import { MediaTailor } from "../MediaTailor";
|
|
5
|
-
import { MediaTailorClient } from "../MediaTailorClient";
|
|
6
|
-
import { MediaTailorPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
const makePagedClientRequest = async (
|
|
12
|
-
client: MediaTailorClient,
|
|
13
|
-
input: ListAlertsCommandInput,
|
|
14
|
-
...args: any
|
|
15
|
-
): Promise<ListAlertsCommandOutput> => {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return await client.send(new ListAlertsCommand(input), ...args);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const makePagedRequest = async (
|
|
23
|
-
client: MediaTailor,
|
|
24
|
-
input: ListAlertsCommandInput,
|
|
25
|
-
...args: any
|
|
26
|
-
): Promise<ListAlertsCommandOutput> => {
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
return await client.listAlerts(input, ...args);
|
|
29
|
-
};
|
|
30
|
-
export async function* paginateListAlerts(
|
|
31
|
-
config: MediaTailorPaginationConfiguration,
|
|
32
|
-
input: ListAlertsCommandInput,
|
|
33
|
-
...additionalArguments: any
|
|
34
|
-
): Paginator<ListAlertsCommandOutput> {
|
|
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: ListAlertsCommandOutput;
|
|
39
|
-
while (hasNext) {
|
|
40
|
-
input.NextToken = token;
|
|
41
|
-
input["MaxResults"] = config.pageSize;
|
|
42
|
-
if (config.client instanceof MediaTailor) {
|
|
43
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else if (config.client instanceof MediaTailorClient) {
|
|
45
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else {
|
|
47
|
-
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
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
|
-
ListChannelsCommand,
|
|
5
|
-
ListChannelsCommandInput,
|
|
6
|
-
ListChannelsCommandOutput,
|
|
7
|
-
} from "../commands/ListChannelsCommand";
|
|
8
|
-
import { MediaTailor } from "../MediaTailor";
|
|
9
|
-
import { MediaTailorClient } from "../MediaTailorClient";
|
|
10
|
-
import { MediaTailorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MediaTailorClient,
|
|
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: MediaTailor,
|
|
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: MediaTailorPaginationConfiguration,
|
|
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 MediaTailor) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MediaTailorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
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
|
-
ListPlaybackConfigurationsCommand,
|
|
5
|
-
ListPlaybackConfigurationsCommandInput,
|
|
6
|
-
ListPlaybackConfigurationsCommandOutput,
|
|
7
|
-
} from "../commands/ListPlaybackConfigurationsCommand";
|
|
8
|
-
import { MediaTailor } from "../MediaTailor";
|
|
9
|
-
import { MediaTailorClient } from "../MediaTailorClient";
|
|
10
|
-
import { MediaTailorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MediaTailorClient,
|
|
17
|
-
input: ListPlaybackConfigurationsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListPlaybackConfigurationsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListPlaybackConfigurationsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MediaTailor,
|
|
28
|
-
input: ListPlaybackConfigurationsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListPlaybackConfigurationsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listPlaybackConfigurations(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListPlaybackConfigurations(
|
|
35
|
-
config: MediaTailorPaginationConfiguration,
|
|
36
|
-
input: ListPlaybackConfigurationsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListPlaybackConfigurationsCommandOutput> {
|
|
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: ListPlaybackConfigurationsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MediaTailor) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MediaTailorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
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
|
-
ListSourceLocationsCommand,
|
|
5
|
-
ListSourceLocationsCommandInput,
|
|
6
|
-
ListSourceLocationsCommandOutput,
|
|
7
|
-
} from "../commands/ListSourceLocationsCommand";
|
|
8
|
-
import { MediaTailor } from "../MediaTailor";
|
|
9
|
-
import { MediaTailorClient } from "../MediaTailorClient";
|
|
10
|
-
import { MediaTailorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MediaTailorClient,
|
|
17
|
-
input: ListSourceLocationsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListSourceLocationsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListSourceLocationsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MediaTailor,
|
|
28
|
-
input: ListSourceLocationsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListSourceLocationsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listSourceLocations(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListSourceLocations(
|
|
35
|
-
config: MediaTailorPaginationConfiguration,
|
|
36
|
-
input: ListSourceLocationsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListSourceLocationsCommandOutput> {
|
|
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: ListSourceLocationsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MediaTailor) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MediaTailorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
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
|
-
ListVodSourcesCommand,
|
|
5
|
-
ListVodSourcesCommandInput,
|
|
6
|
-
ListVodSourcesCommandOutput,
|
|
7
|
-
} from "../commands/ListVodSourcesCommand";
|
|
8
|
-
import { MediaTailor } from "../MediaTailor";
|
|
9
|
-
import { MediaTailorClient } from "../MediaTailorClient";
|
|
10
|
-
import { MediaTailorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MediaTailorClient,
|
|
17
|
-
input: ListVodSourcesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListVodSourcesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListVodSourcesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MediaTailor,
|
|
28
|
-
input: ListVodSourcesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListVodSourcesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listVodSources(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListVodSources(
|
|
35
|
-
config: MediaTailorPaginationConfiguration,
|
|
36
|
-
input: ListVodSourcesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListVodSourcesCommandOutput> {
|
|
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: ListVodSourcesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MediaTailor) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MediaTailorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|