@aws-sdk/client-mediatailor 3.477.0 → 3.481.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/dist-cjs/commands/ConfigureLogsForChannelCommand.js +18 -41
- package/dist-cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js +18 -41
- package/dist-cjs/commands/CreateChannelCommand.js +18 -41
- package/dist-cjs/commands/CreateLiveSourceCommand.js +18 -41
- package/dist-cjs/commands/CreatePrefetchScheduleCommand.js +18 -41
- package/dist-cjs/commands/CreateProgramCommand.js +18 -41
- package/dist-cjs/commands/CreateSourceLocationCommand.js +18 -41
- package/dist-cjs/commands/CreateVodSourceCommand.js +18 -41
- package/dist-cjs/commands/DeleteChannelCommand.js +18 -41
- package/dist-cjs/commands/DeleteChannelPolicyCommand.js +18 -41
- package/dist-cjs/commands/DeleteLiveSourceCommand.js +18 -41
- package/dist-cjs/commands/DeletePlaybackConfigurationCommand.js +18 -41
- package/dist-cjs/commands/DeletePrefetchScheduleCommand.js +18 -41
- package/dist-cjs/commands/DeleteProgramCommand.js +18 -41
- package/dist-cjs/commands/DeleteSourceLocationCommand.js +18 -41
- package/dist-cjs/commands/DeleteVodSourceCommand.js +18 -41
- package/dist-cjs/commands/DescribeChannelCommand.js +18 -41
- package/dist-cjs/commands/DescribeLiveSourceCommand.js +18 -41
- package/dist-cjs/commands/DescribeProgramCommand.js +18 -41
- package/dist-cjs/commands/DescribeSourceLocationCommand.js +18 -41
- package/dist-cjs/commands/DescribeVodSourceCommand.js +18 -41
- package/dist-cjs/commands/GetChannelPolicyCommand.js +18 -41
- package/dist-cjs/commands/GetChannelScheduleCommand.js +18 -41
- package/dist-cjs/commands/GetPlaybackConfigurationCommand.js +18 -41
- package/dist-cjs/commands/GetPrefetchScheduleCommand.js +18 -41
- package/dist-cjs/commands/ListAlertsCommand.js +18 -41
- package/dist-cjs/commands/ListChannelsCommand.js +18 -41
- package/dist-cjs/commands/ListLiveSourcesCommand.js +18 -41
- package/dist-cjs/commands/ListPlaybackConfigurationsCommand.js +18 -41
- package/dist-cjs/commands/ListPrefetchSchedulesCommand.js +18 -41
- package/dist-cjs/commands/ListSourceLocationsCommand.js +18 -41
- package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-cjs/commands/ListVodSourcesCommand.js +18 -41
- package/dist-cjs/commands/PutChannelPolicyCommand.js +18 -41
- package/dist-cjs/commands/PutPlaybackConfigurationCommand.js +18 -41
- package/dist-cjs/commands/StartChannelCommand.js +18 -41
- package/dist-cjs/commands/StopChannelCommand.js +18 -41
- package/dist-cjs/commands/TagResourceCommand.js +18 -41
- package/dist-cjs/commands/UntagResourceCommand.js +18 -41
- package/dist-cjs/commands/UpdateChannelCommand.js +18 -41
- package/dist-cjs/commands/UpdateLiveSourceCommand.js +18 -41
- package/dist-cjs/commands/UpdateProgramCommand.js +18 -41
- package/dist-cjs/commands/UpdateSourceLocationCommand.js +18 -41
- package/dist-cjs/commands/UpdateVodSourceCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/GetChannelSchedulePaginator.js +2 -24
- package/dist-cjs/pagination/ListAlertsPaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelsPaginator.js +2 -24
- package/dist-cjs/pagination/ListLiveSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPlaybackConfigurationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPrefetchSchedulesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSourceLocationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListVodSourcesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +5 -0
- package/dist-es/commands/ConfigureLogsForChannelCommand.js +18 -41
- package/dist-es/commands/ConfigureLogsForPlaybackConfigurationCommand.js +18 -41
- package/dist-es/commands/CreateChannelCommand.js +18 -41
- package/dist-es/commands/CreateLiveSourceCommand.js +18 -41
- package/dist-es/commands/CreatePrefetchScheduleCommand.js +18 -41
- package/dist-es/commands/CreateProgramCommand.js +18 -41
- package/dist-es/commands/CreateSourceLocationCommand.js +18 -41
- package/dist-es/commands/CreateVodSourceCommand.js +18 -41
- package/dist-es/commands/DeleteChannelCommand.js +18 -41
- package/dist-es/commands/DeleteChannelPolicyCommand.js +18 -41
- package/dist-es/commands/DeleteLiveSourceCommand.js +18 -41
- package/dist-es/commands/DeletePlaybackConfigurationCommand.js +18 -41
- package/dist-es/commands/DeletePrefetchScheduleCommand.js +18 -41
- package/dist-es/commands/DeleteProgramCommand.js +18 -41
- package/dist-es/commands/DeleteSourceLocationCommand.js +18 -41
- package/dist-es/commands/DeleteVodSourceCommand.js +18 -41
- package/dist-es/commands/DescribeChannelCommand.js +18 -41
- package/dist-es/commands/DescribeLiveSourceCommand.js +18 -41
- package/dist-es/commands/DescribeProgramCommand.js +18 -41
- package/dist-es/commands/DescribeSourceLocationCommand.js +18 -41
- package/dist-es/commands/DescribeVodSourceCommand.js +18 -41
- package/dist-es/commands/GetChannelPolicyCommand.js +18 -41
- package/dist-es/commands/GetChannelScheduleCommand.js +18 -41
- package/dist-es/commands/GetPlaybackConfigurationCommand.js +18 -41
- package/dist-es/commands/GetPrefetchScheduleCommand.js +18 -41
- package/dist-es/commands/ListAlertsCommand.js +18 -41
- package/dist-es/commands/ListChannelsCommand.js +18 -41
- package/dist-es/commands/ListLiveSourcesCommand.js +18 -41
- package/dist-es/commands/ListPlaybackConfigurationsCommand.js +18 -41
- package/dist-es/commands/ListPrefetchSchedulesCommand.js +18 -41
- package/dist-es/commands/ListSourceLocationsCommand.js +18 -41
- package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-es/commands/ListVodSourcesCommand.js +18 -41
- package/dist-es/commands/PutChannelPolicyCommand.js +18 -41
- package/dist-es/commands/PutPlaybackConfigurationCommand.js +18 -41
- package/dist-es/commands/StartChannelCommand.js +18 -41
- package/dist-es/commands/StopChannelCommand.js +18 -41
- package/dist-es/commands/TagResourceCommand.js +18 -41
- package/dist-es/commands/UntagResourceCommand.js +18 -41
- package/dist-es/commands/UpdateChannelCommand.js +18 -41
- package/dist-es/commands/UpdateLiveSourceCommand.js +18 -41
- package/dist-es/commands/UpdateProgramCommand.js +18 -41
- package/dist-es/commands/UpdateSourceLocationCommand.js +18 -41
- package/dist-es/commands/UpdateVodSourceCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/GetChannelSchedulePaginator.js +2 -23
- package/dist-es/pagination/ListAlertsPaginator.js +2 -23
- package/dist-es/pagination/ListChannelsPaginator.js +2 -23
- package/dist-es/pagination/ListLiveSourcesPaginator.js +2 -23
- package/dist-es/pagination/ListPlaybackConfigurationsPaginator.js +2 -23
- package/dist-es/pagination/ListPrefetchSchedulesPaginator.js +2 -23
- package/dist-es/pagination/ListSourceLocationsPaginator.js +2 -23
- package/dist-es/pagination/ListVodSourcesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +5 -0
- package/dist-types/commands/ConfigureLogsForChannelCommand.d.ts +6 -21
- package/dist-types/commands/ConfigureLogsForPlaybackConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/CreateChannelCommand.d.ts +12 -21
- package/dist-types/commands/CreateLiveSourceCommand.d.ts +6 -21
- package/dist-types/commands/CreatePrefetchScheduleCommand.d.ts +6 -21
- package/dist-types/commands/CreateProgramCommand.d.ts +6 -21
- package/dist-types/commands/CreateSourceLocationCommand.d.ts +6 -21
- package/dist-types/commands/CreateVodSourceCommand.d.ts +6 -21
- package/dist-types/commands/DeleteChannelCommand.d.ts +6 -21
- package/dist-types/commands/DeleteChannelPolicyCommand.d.ts +6 -21
- package/dist-types/commands/DeleteLiveSourceCommand.d.ts +6 -21
- package/dist-types/commands/DeletePlaybackConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/DeletePrefetchScheduleCommand.d.ts +6 -21
- package/dist-types/commands/DeleteProgramCommand.d.ts +6 -21
- package/dist-types/commands/DeleteSourceLocationCommand.d.ts +6 -21
- package/dist-types/commands/DeleteVodSourceCommand.d.ts +6 -21
- package/dist-types/commands/DescribeChannelCommand.d.ts +9 -21
- package/dist-types/commands/DescribeLiveSourceCommand.d.ts +6 -21
- package/dist-types/commands/DescribeProgramCommand.d.ts +6 -21
- package/dist-types/commands/DescribeSourceLocationCommand.d.ts +6 -21
- package/dist-types/commands/DescribeVodSourceCommand.d.ts +6 -21
- package/dist-types/commands/GetChannelPolicyCommand.d.ts +6 -21
- package/dist-types/commands/GetChannelScheduleCommand.d.ts +6 -21
- package/dist-types/commands/GetPlaybackConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/GetPrefetchScheduleCommand.d.ts +6 -21
- package/dist-types/commands/ListAlertsCommand.d.ts +6 -21
- package/dist-types/commands/ListChannelsCommand.d.ts +6 -21
- package/dist-types/commands/ListLiveSourcesCommand.d.ts +6 -21
- package/dist-types/commands/ListPlaybackConfigurationsCommand.d.ts +6 -21
- package/dist-types/commands/ListPrefetchSchedulesCommand.d.ts +6 -21
- package/dist-types/commands/ListSourceLocationsCommand.d.ts +6 -21
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
- package/dist-types/commands/ListVodSourcesCommand.d.ts +6 -21
- package/dist-types/commands/PutChannelPolicyCommand.d.ts +6 -21
- package/dist-types/commands/PutPlaybackConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/StartChannelCommand.d.ts +6 -21
- package/dist-types/commands/StopChannelCommand.d.ts +6 -21
- package/dist-types/commands/TagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UpdateChannelCommand.d.ts +12 -21
- package/dist-types/commands/UpdateLiveSourceCommand.d.ts +6 -21
- package/dist-types/commands/UpdateProgramCommand.d.ts +6 -21
- package/dist-types/commands/UpdateSourceLocationCommand.d.ts +6 -21
- package/dist-types/commands/UpdateVodSourceCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/models/models_0.d.ts +51 -0
- package/dist-types/pagination/GetChannelSchedulePaginator.d.ts +1 -1
- package/dist-types/pagination/ListAlertsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLiveSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPlaybackConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPrefetchSchedulesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSourceLocationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVodSourcesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/ConfigureLogsForChannelCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ConfigureLogsForPlaybackConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateLiveSourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreatePrefetchScheduleCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateProgramCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateSourceLocationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateVodSourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteChannelPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteLiveSourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeletePlaybackConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeletePrefetchScheduleCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteProgramCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteSourceLocationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteVodSourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeChannelCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeLiveSourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeProgramCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeSourceLocationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeVodSourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetChannelPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetChannelScheduleCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetPlaybackConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetPrefetchScheduleCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListAlertsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListLiveSourcesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListPlaybackConfigurationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListPrefetchSchedulesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListSourceLocationsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListVodSourcesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutChannelPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutPlaybackConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/StartChannelCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/StopChannelCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateLiveSourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateProgramCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateSourceLocationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/UpdateVodSourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/dist-types/ts3.4/pagination/GetChannelSchedulePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAlertsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLiveSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPlaybackConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPrefetchSchedulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSourceLocationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVodSourcesPaginator.d.ts +3 -3
- package/package.json +11 -11
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListChannels = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListChannelsCommand_1 = require("../commands/ListChannelsCommand");
|
|
5
6
|
const MediaTailorClient_1 = require("../MediaTailorClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListChannelsCommand_1.ListChannelsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListChannels(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListChannels = paginateListChannels;
|
|
7
|
+
exports.paginateListChannels = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListChannelsCommand_1.ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListLiveSources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListLiveSourcesCommand_1 = require("../commands/ListLiveSourcesCommand");
|
|
5
6
|
const MediaTailorClient_1 = require("../MediaTailorClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListLiveSourcesCommand_1.ListLiveSourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListLiveSources(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListLiveSources = paginateListLiveSources;
|
|
7
|
+
exports.paginateListLiveSources = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListLiveSourcesCommand_1.ListLiveSourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPlaybackConfigurations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPlaybackConfigurationsCommand_1 = require("../commands/ListPlaybackConfigurationsCommand");
|
|
5
6
|
const MediaTailorClient_1 = require("../MediaTailorClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPlaybackConfigurationsCommand_1.ListPlaybackConfigurationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPlaybackConfigurations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListPlaybackConfigurations = paginateListPlaybackConfigurations;
|
|
7
|
+
exports.paginateListPlaybackConfigurations = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListPlaybackConfigurationsCommand_1.ListPlaybackConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPrefetchSchedules = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPrefetchSchedulesCommand_1 = require("../commands/ListPrefetchSchedulesCommand");
|
|
5
6
|
const MediaTailorClient_1 = require("../MediaTailorClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPrefetchSchedulesCommand_1.ListPrefetchSchedulesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPrefetchSchedules(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListPrefetchSchedules = paginateListPrefetchSchedules;
|
|
7
|
+
exports.paginateListPrefetchSchedules = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListPrefetchSchedulesCommand_1.ListPrefetchSchedulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSourceLocations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSourceLocationsCommand_1 = require("../commands/ListSourceLocationsCommand");
|
|
5
6
|
const MediaTailorClient_1 = require("../MediaTailorClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSourceLocationsCommand_1.ListSourceLocationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSourceLocations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListSourceLocations = paginateListSourceLocations;
|
|
7
|
+
exports.paginateListSourceLocations = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListSourceLocationsCommand_1.ListSourceLocationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListVodSources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListVodSourcesCommand_1 = require("../commands/ListVodSourcesCommand");
|
|
5
6
|
const MediaTailorClient_1 = require("../MediaTailorClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListVodSourcesCommand_1.ListVodSourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListVodSources(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListVodSources = paginateListVodSources;
|
|
7
|
+
exports.paginateListVodSources = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListVodSourcesCommand_1.ListVodSourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -50,6 +50,7 @@ const se_CreateChannelCommand = async (input, context) => {
|
|
|
50
50
|
PlaybackMode: [],
|
|
51
51
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
52
52
|
Tier: [],
|
|
53
|
+
TimeShiftConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
53
54
|
}));
|
|
54
55
|
b.m("POST").h(headers).b(body);
|
|
55
56
|
return b.build();
|
|
@@ -541,6 +542,7 @@ const se_UpdateChannelCommand = async (input, context) => {
|
|
|
541
542
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
542
543
|
FillerSlate: (_) => (0, smithy_client_1._json)(_),
|
|
543
544
|
Outputs: (_) => (0, smithy_client_1._json)(_),
|
|
545
|
+
TimeShiftConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
544
546
|
}));
|
|
545
547
|
b.m("PUT").h(headers).b(body);
|
|
546
548
|
return b.build();
|
|
@@ -690,6 +692,7 @@ const de_CreateChannelCommand = async (output, context) => {
|
|
|
690
692
|
PlaybackMode: smithy_client_1.expectString,
|
|
691
693
|
Tags: [, smithy_client_1._json, `tags`],
|
|
692
694
|
Tier: smithy_client_1.expectString,
|
|
695
|
+
TimeShiftConfiguration: smithy_client_1._json,
|
|
693
696
|
});
|
|
694
697
|
Object.assign(contents, doc);
|
|
695
698
|
return contents;
|
|
@@ -1095,6 +1098,7 @@ const de_DescribeChannelCommand = async (output, context) => {
|
|
|
1095
1098
|
PlaybackMode: smithy_client_1.expectString,
|
|
1096
1099
|
Tags: [, smithy_client_1._json, `tags`],
|
|
1097
1100
|
Tier: smithy_client_1.expectString,
|
|
1101
|
+
TimeShiftConfiguration: smithy_client_1._json,
|
|
1098
1102
|
});
|
|
1099
1103
|
Object.assign(contents, doc);
|
|
1100
1104
|
return contents;
|
|
@@ -1826,6 +1830,7 @@ const de_UpdateChannelCommand = async (output, context) => {
|
|
|
1826
1830
|
PlaybackMode: smithy_client_1.expectString,
|
|
1827
1831
|
Tags: [, smithy_client_1._json, `tags`],
|
|
1828
1832
|
Tier: smithy_client_1.expectString,
|
|
1833
|
+
TimeShiftConfiguration: smithy_client_1._json,
|
|
1829
1834
|
});
|
|
1830
1835
|
Object.assign(contents, doc);
|
|
1831
1836
|
return contents;
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ConfigureLogsForChannelCommand, se_ConfigureLogsForChannelCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ConfigureLogsForChannelCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaTailorClient";
|
|
26
|
-
const commandName = "ConfigureLogsForChannelCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaTailor",
|
|
35
|
-
operation: "ConfigureLogsForChannel",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ConfigureLogsForChannelCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ConfigureLogsForChannelCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ConfigureLogsForChannelCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaTailor", "ConfigureLogsForChannel", {})
|
|
19
|
+
.n("MediaTailorClient", "ConfigureLogsForChannelCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ConfigureLogsForChannelCommand)
|
|
22
|
+
.de(de_ConfigureLogsForChannelCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ConfigureLogsForPlaybackConfigurationCommand, se_ConfigureLogsForPlaybackConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ConfigureLogsForPlaybackConfigurationCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaTailorClient";
|
|
26
|
-
const commandName = "ConfigureLogsForPlaybackConfigurationCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaTailor",
|
|
35
|
-
operation: "ConfigureLogsForPlaybackConfiguration",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ConfigureLogsForPlaybackConfigurationCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ConfigureLogsForPlaybackConfigurationCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ConfigureLogsForPlaybackConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaTailor", "ConfigureLogsForPlaybackConfiguration", {})
|
|
19
|
+
.n("MediaTailorClient", "ConfigureLogsForPlaybackConfigurationCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ConfigureLogsForPlaybackConfigurationCommand)
|
|
22
|
+
.de(de_ConfigureLogsForPlaybackConfigurationCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_CreateChannelCommand, se_CreateChannelCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class CreateChannelCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaTailorClient";
|
|
26
|
-
const commandName = "CreateChannelCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaTailor",
|
|
35
|
-
operation: "CreateChannel",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_CreateChannelCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_CreateChannelCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class CreateChannelCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaTailor", "CreateChannel", {})
|
|
19
|
+
.n("MediaTailorClient", "CreateChannelCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_CreateChannelCommand)
|
|
22
|
+
.de(de_CreateChannelCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_CreateLiveSourceCommand, se_CreateLiveSourceCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class CreateLiveSourceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaTailorClient";
|
|
26
|
-
const commandName = "CreateLiveSourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaTailor",
|
|
35
|
-
operation: "CreateLiveSource",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_CreateLiveSourceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_CreateLiveSourceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class CreateLiveSourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaTailor", "CreateLiveSource", {})
|
|
19
|
+
.n("MediaTailorClient", "CreateLiveSourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_CreateLiveSourceCommand)
|
|
22
|
+
.de(de_CreateLiveSourceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_CreatePrefetchScheduleCommand, se_CreatePrefetchScheduleCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class CreatePrefetchScheduleCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaTailorClient";
|
|
26
|
-
const commandName = "CreatePrefetchScheduleCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaTailor",
|
|
35
|
-
operation: "CreatePrefetchSchedule",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_CreatePrefetchScheduleCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_CreatePrefetchScheduleCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class CreatePrefetchScheduleCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaTailor", "CreatePrefetchSchedule", {})
|
|
19
|
+
.n("MediaTailorClient", "CreatePrefetchScheduleCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_CreatePrefetchScheduleCommand)
|
|
22
|
+
.de(de_CreatePrefetchScheduleCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_CreateProgramCommand, se_CreateProgramCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class CreateProgramCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaTailorClient";
|
|
26
|
-
const commandName = "CreateProgramCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaTailor",
|
|
35
|
-
operation: "CreateProgram",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_CreateProgramCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_CreateProgramCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class CreateProgramCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaTailor", "CreateProgram", {})
|
|
19
|
+
.n("MediaTailorClient", "CreateProgramCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_CreateProgramCommand)
|
|
22
|
+
.de(de_CreateProgramCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|