create_program
async
¶
create_program(
channel_name: __string,
program_name: __string,
schedule_configuration: ScheduleConfiguration,
source_location_name: __string,
*,
config_overrides: Optional[AsyncMediaTailorClientConfig] = None,
ad_breaks: Optional[__listOfAdBreak] = None,
live_source_name: Optional[__string] = None,
vod_source_name: Optional[__string] = None,
audience_media: Optional[__listOfAudienceMedia] = None,
tags: Optional[__mapOf__string] = None,
) -> CreateProgramResponse
Creates a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
Parameters:
-
ad_breaks(Optional[__listOfAdBreak], default:None) –The ad break configuration settings.
-
channel_name(__string) –The name of the channel for this Program.
-
live_source_name(Optional[__string], default:None) –The name of the LiveSource for this Program.
-
program_name(__string) –The name of the Program.
-
schedule_configuration(ScheduleConfiguration) –The schedule configuration settings.
-
source_location_name(__string) –The name of the source location.
-
vod_source_name(Optional[__string], default:None) –The name that's used to refer to a VOD source.
-
audience_media(Optional[__listOfAudienceMedia], default:None) –The list of AudienceMedia defined in program.
-
tags(Optional[__mapOf__string], default:None) –The tags to assign to the program. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mediatailor/_services/async_media_tailor.py
1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 | |