create_prefetch_schedule
¶
create_prefetch_schedule(
name: __string,
playback_configuration_name: __string,
*,
config_overrides: Optional[MediaTailorClientConfig] = None,
consumption: Optional[PrefetchConsumption] = None,
retrieval: Optional[PrefetchRetrieval] = None,
recurring_prefetch_configuration: Optional[RecurringPrefetchConfiguration] = None,
schedule_type: Optional[PrefetchScheduleType] = None,
stream_id: Optional[__string] = None,
tags: Optional[__mapOf__string] = None,
) -> CreatePrefetchScheduleResponse
Creates a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.
Parameters:
-
consumption(Optional[PrefetchConsumption], default:None) –The configuration settings for how and when MediaTailor consumes prefetched ads from the ad decision server for single prefetch schedules. Each consumption configuration contains an end time and an optional start time that define the consumption window. Prefetch schedules automatically expire no earlier than seven days after the end time.
-
name(__string) –The name to assign to the schedule request.
-
playback_configuration_name(__string) –The name to assign to the playback configuration.
-
retrieval(Optional[PrefetchRetrieval], default:None) –The configuration settings for retrieval of prefetched ads from the ad decision server. Only one set of prefetched ads will be retrieved and subsequently consumed for each ad break.
-
recurring_prefetch_configuration(Optional[RecurringPrefetchConfiguration], default:None) –The configuration that defines how and when MediaTailor performs ad prefetching in a live event.
-
schedule_type(Optional[PrefetchScheduleType], default:None) –The frequency that MediaTailor creates prefetch schedules.
SINGLEindicates that this schedule applies to one ad break.RECURRINGindicates that MediaTailor automatically creates a schedule for each ad avail in a live event.For more information about the prefetch types and when you might use each, see Prefetching ads in Elemental MediaTailor.
-
stream_id(Optional[__string], default:None) –An optional stream identifier that MediaTailor uses to prefetch ads for multiple streams that use the same playback configuration. If
StreamIdis specified, MediaTailor returns all of the prefetch schedules with an exact match onStreamId. If not specified, MediaTailor returns all of the prefetch schedules for the playback configuration, regardless ofStreamId. -
tags(Optional[__mapOf__string], default:None) –The tags to assign to the prefetch schedule. 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/media_tailor.py
2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 | |