@aws-sdk/client-mediapackage 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/MediaPackage.js +0 -1
- package/dist-cjs/MediaPackageClient.js +0 -1
- package/dist-cjs/commands/ConfigureLogsCommand.js +0 -1
- package/dist-cjs/commands/CreateChannelCommand.js +0 -1
- package/dist-cjs/commands/CreateHarvestJobCommand.js +0 -1
- package/dist-cjs/commands/CreateOriginEndpointCommand.js +0 -1
- package/dist-cjs/commands/DeleteChannelCommand.js +0 -1
- package/dist-cjs/commands/DeleteOriginEndpointCommand.js +0 -1
- package/dist-cjs/commands/DescribeChannelCommand.js +0 -1
- package/dist-cjs/commands/DescribeHarvestJobCommand.js +0 -1
- package/dist-cjs/commands/DescribeOriginEndpointCommand.js +0 -1
- package/dist-cjs/commands/ListChannelsCommand.js +0 -1
- package/dist-cjs/commands/ListHarvestJobsCommand.js +0 -1
- package/dist-cjs/commands/ListOriginEndpointsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/RotateChannelCredentialsCommand.js +0 -1
- package/dist-cjs/commands/RotateIngestEndpointCredentialsCommand.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/UpdateOriginEndpointCommand.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/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListChannelsPaginator.js +0 -1
- package/dist-cjs/pagination/ListHarvestJobsPaginator.js +0 -1
- package/dist-cjs/pagination/ListOriginEndpointsPaginator.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/MediaPackage.js +0 -1
- package/dist-es/MediaPackageClient.js +0 -1
- package/dist-es/commands/ConfigureLogsCommand.js +0 -1
- package/dist-es/commands/CreateChannelCommand.js +0 -1
- package/dist-es/commands/CreateHarvestJobCommand.js +0 -1
- package/dist-es/commands/CreateOriginEndpointCommand.js +0 -1
- package/dist-es/commands/DeleteChannelCommand.js +0 -1
- package/dist-es/commands/DeleteOriginEndpointCommand.js +0 -1
- package/dist-es/commands/DescribeChannelCommand.js +0 -1
- package/dist-es/commands/DescribeHarvestJobCommand.js +0 -1
- package/dist-es/commands/DescribeOriginEndpointCommand.js +0 -1
- package/dist-es/commands/ListChannelsCommand.js +0 -1
- package/dist-es/commands/ListHarvestJobsCommand.js +0 -1
- package/dist-es/commands/ListOriginEndpointsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/RotateChannelCredentialsCommand.js +0 -1
- package/dist-es/commands/RotateIngestEndpointCredentialsCommand.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/UpdateOriginEndpointCommand.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/Interfaces.js +0 -1
- package/dist-es/pagination/ListChannelsPaginator.js +0 -1
- package/dist-es/pagination/ListHarvestJobsPaginator.js +0 -1
- package/dist-es/pagination/ListOriginEndpointsPaginator.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/MediaPackage.js.map +0 -1
- package/dist-cjs/MediaPackageClient.js.map +0 -1
- package/dist-cjs/commands/ConfigureLogsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateChannelCommand.js.map +0 -1
- package/dist-cjs/commands/CreateHarvestJobCommand.js.map +0 -1
- package/dist-cjs/commands/CreateOriginEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteChannelCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteOriginEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeChannelCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeHarvestJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeOriginEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/ListChannelsCommand.js.map +0 -1
- package/dist-cjs/commands/ListHarvestJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListOriginEndpointsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/RotateChannelCredentialsCommand.js.map +0 -1
- package/dist-cjs/commands/RotateIngestEndpointCredentialsCommand.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/UpdateOriginEndpointCommand.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/ListHarvestJobsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListOriginEndpointsPaginator.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/MediaPackage.js.map +0 -1
- package/dist-es/MediaPackageClient.js.map +0 -1
- package/dist-es/commands/ConfigureLogsCommand.js.map +0 -1
- package/dist-es/commands/CreateChannelCommand.js.map +0 -1
- package/dist-es/commands/CreateHarvestJobCommand.js.map +0 -1
- package/dist-es/commands/CreateOriginEndpointCommand.js.map +0 -1
- package/dist-es/commands/DeleteChannelCommand.js.map +0 -1
- package/dist-es/commands/DeleteOriginEndpointCommand.js.map +0 -1
- package/dist-es/commands/DescribeChannelCommand.js.map +0 -1
- package/dist-es/commands/DescribeHarvestJobCommand.js.map +0 -1
- package/dist-es/commands/DescribeOriginEndpointCommand.js.map +0 -1
- package/dist-es/commands/ListChannelsCommand.js.map +0 -1
- package/dist-es/commands/ListHarvestJobsCommand.js.map +0 -1
- package/dist-es/commands/ListOriginEndpointsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/RotateChannelCredentialsCommand.js.map +0 -1
- package/dist-es/commands/RotateIngestEndpointCredentialsCommand.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/UpdateOriginEndpointCommand.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/ListHarvestJobsPaginator.js.map +0 -1
- package/dist-es/pagination/ListOriginEndpointsPaginator.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/MediaPackage.ts +0 -691
- package/src/MediaPackageClient.ts +0 -317
- package/src/commands/ConfigureLogsCommand.ts +0 -95
- package/src/commands/CreateChannelCommand.ts +0 -95
- package/src/commands/CreateHarvestJobCommand.ts +0 -95
- package/src/commands/CreateOriginEndpointCommand.ts +0 -95
- package/src/commands/DeleteChannelCommand.ts +0 -95
- package/src/commands/DeleteOriginEndpointCommand.ts +0 -95
- package/src/commands/DescribeChannelCommand.ts +0 -95
- package/src/commands/DescribeHarvestJobCommand.ts +0 -95
- package/src/commands/DescribeOriginEndpointCommand.ts +0 -95
- package/src/commands/ListChannelsCommand.ts +0 -95
- package/src/commands/ListHarvestJobsCommand.ts +0 -95
- package/src/commands/ListOriginEndpointsCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -78
- package/src/commands/RotateChannelCredentialsCommand.ts +0 -97
- package/src/commands/RotateIngestEndpointCredentialsCommand.ts +0 -103
- package/src/commands/TagResourceCommand.ts +0 -78
- package/src/commands/UntagResourceCommand.ts +0 -78
- package/src/commands/UpdateChannelCommand.ts +0 -95
- package/src/commands/UpdateOriginEndpointCommand.ts +0 -95
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -26
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2553
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListChannelsPaginator.ts +0 -59
- package/src/pagination/ListHarvestJobsPaginator.ts +0 -59
- package/src/pagination/ListOriginEndpointsPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -3669
- 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,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { MediaPackage } from "../MediaPackage";
|
|
4
|
-
import { MediaPackageClient } from "../MediaPackageClient";
|
|
5
|
-
|
|
6
|
-
export interface MediaPackagePaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: MediaPackage | MediaPackageClient;
|
|
8
|
-
}
|
|
@@ -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 { MediaPackage } from "../MediaPackage";
|
|
9
|
-
import { MediaPackageClient } from "../MediaPackageClient";
|
|
10
|
-
import { MediaPackagePaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MediaPackageClient,
|
|
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: MediaPackage,
|
|
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: MediaPackagePaginationConfiguration,
|
|
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 MediaPackage) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MediaPackageClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MediaPackage | MediaPackageClient");
|
|
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
|
-
ListHarvestJobsCommand,
|
|
5
|
-
ListHarvestJobsCommandInput,
|
|
6
|
-
ListHarvestJobsCommandOutput,
|
|
7
|
-
} from "../commands/ListHarvestJobsCommand";
|
|
8
|
-
import { MediaPackage } from "../MediaPackage";
|
|
9
|
-
import { MediaPackageClient } from "../MediaPackageClient";
|
|
10
|
-
import { MediaPackagePaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MediaPackageClient,
|
|
17
|
-
input: ListHarvestJobsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListHarvestJobsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListHarvestJobsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MediaPackage,
|
|
28
|
-
input: ListHarvestJobsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListHarvestJobsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listHarvestJobs(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListHarvestJobs(
|
|
35
|
-
config: MediaPackagePaginationConfiguration,
|
|
36
|
-
input: ListHarvestJobsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListHarvestJobsCommandOutput> {
|
|
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: ListHarvestJobsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MediaPackage) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MediaPackageClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MediaPackage | MediaPackageClient");
|
|
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
|
-
ListOriginEndpointsCommand,
|
|
5
|
-
ListOriginEndpointsCommandInput,
|
|
6
|
-
ListOriginEndpointsCommandOutput,
|
|
7
|
-
} from "../commands/ListOriginEndpointsCommand";
|
|
8
|
-
import { MediaPackage } from "../MediaPackage";
|
|
9
|
-
import { MediaPackageClient } from "../MediaPackageClient";
|
|
10
|
-
import { MediaPackagePaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MediaPackageClient,
|
|
17
|
-
input: ListOriginEndpointsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListOriginEndpointsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListOriginEndpointsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MediaPackage,
|
|
28
|
-
input: ListOriginEndpointsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListOriginEndpointsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listOriginEndpoints(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListOriginEndpoints(
|
|
35
|
-
config: MediaPackagePaginationConfiguration,
|
|
36
|
-
input: ListOriginEndpointsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListOriginEndpointsCommandOutput> {
|
|
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: ListOriginEndpointsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MediaPackage) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MediaPackageClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MediaPackage | MediaPackageClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|