Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data CreatePrefetchSchedule = CreatePrefetchSchedule' {}
- newCreatePrefetchSchedule :: PrefetchConsumption -> Text -> Text -> PrefetchRetrieval -> CreatePrefetchSchedule
- createPrefetchSchedule_streamId :: Lens' CreatePrefetchSchedule (Maybe Text)
- createPrefetchSchedule_consumption :: Lens' CreatePrefetchSchedule PrefetchConsumption
- createPrefetchSchedule_name :: Lens' CreatePrefetchSchedule Text
- createPrefetchSchedule_playbackConfigurationName :: Lens' CreatePrefetchSchedule Text
- createPrefetchSchedule_retrieval :: Lens' CreatePrefetchSchedule PrefetchRetrieval
- data CreatePrefetchScheduleResponse = CreatePrefetchScheduleResponse' {}
- newCreatePrefetchScheduleResponse :: Int -> CreatePrefetchScheduleResponse
- createPrefetchScheduleResponse_arn :: Lens' CreatePrefetchScheduleResponse (Maybe Text)
- createPrefetchScheduleResponse_consumption :: Lens' CreatePrefetchScheduleResponse (Maybe PrefetchConsumption)
- createPrefetchScheduleResponse_name :: Lens' CreatePrefetchScheduleResponse (Maybe Text)
- createPrefetchScheduleResponse_playbackConfigurationName :: Lens' CreatePrefetchScheduleResponse (Maybe Text)
- createPrefetchScheduleResponse_retrieval :: Lens' CreatePrefetchScheduleResponse (Maybe PrefetchRetrieval)
- createPrefetchScheduleResponse_streamId :: Lens' CreatePrefetchScheduleResponse (Maybe Text)
- createPrefetchScheduleResponse_httpStatus :: Lens' CreatePrefetchScheduleResponse Int
Creating a Request
data CreatePrefetchSchedule Source #
See: newCreatePrefetchSchedule
smart constructor.
CreatePrefetchSchedule' | |
|
Instances
newCreatePrefetchSchedule Source #
Create a value of CreatePrefetchSchedule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreatePrefetchSchedule
, createPrefetchSchedule_streamId
- An optional stream identifier that MediaTailor uses to prefetch ads for
multiple streams that use the same playback configuration. If StreamId
is specified, MediaTailor returns all of the prefetch schedules with an
exact match on StreamId
. If not specified, MediaTailor returns all of
the prefetch schedules for the playback configuration, regardless of
StreamId
.
CreatePrefetchSchedule
, createPrefetchSchedule_consumption
- The configuration settings for MediaTailor's consumption of the
prefetched ads from the ad decision server. 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.
CreatePrefetchSchedule
, createPrefetchSchedule_name
- The name to assign to the schedule request.
CreatePrefetchSchedule
, createPrefetchSchedule_playbackConfigurationName
- The name to assign to the playback configuration.
CreatePrefetchSchedule
, createPrefetchSchedule_retrieval
- 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.
Request Lenses
createPrefetchSchedule_streamId :: Lens' CreatePrefetchSchedule (Maybe Text) Source #
An optional stream identifier that MediaTailor uses to prefetch ads for
multiple streams that use the same playback configuration. If StreamId
is specified, MediaTailor returns all of the prefetch schedules with an
exact match on StreamId
. If not specified, MediaTailor returns all of
the prefetch schedules for the playback configuration, regardless of
StreamId
.
createPrefetchSchedule_consumption :: Lens' CreatePrefetchSchedule PrefetchConsumption Source #
The configuration settings for MediaTailor's consumption of the prefetched ads from the ad decision server. 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.
createPrefetchSchedule_name :: Lens' CreatePrefetchSchedule Text Source #
The name to assign to the schedule request.
createPrefetchSchedule_playbackConfigurationName :: Lens' CreatePrefetchSchedule Text Source #
The name to assign to the playback configuration.
createPrefetchSchedule_retrieval :: Lens' CreatePrefetchSchedule PrefetchRetrieval Source #
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.
Destructuring the Response
data CreatePrefetchScheduleResponse Source #
See: newCreatePrefetchScheduleResponse
smart constructor.
CreatePrefetchScheduleResponse' | |
|
Instances
newCreatePrefetchScheduleResponse Source #
Create a value of CreatePrefetchScheduleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreatePrefetchScheduleResponse
, createPrefetchScheduleResponse_arn
- The ARN to assign to the prefetch schedule.
CreatePrefetchSchedule
, createPrefetchScheduleResponse_consumption
- The configuration settings for MediaTailor's consumption of the
prefetched ads from the ad decision server. 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.
CreatePrefetchSchedule
, createPrefetchScheduleResponse_name
- The name to assign to the prefetch schedule.
CreatePrefetchSchedule
, createPrefetchScheduleResponse_playbackConfigurationName
- The name to assign to the playback configuration.
CreatePrefetchSchedule
, createPrefetchScheduleResponse_retrieval
- 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.
CreatePrefetchSchedule
, createPrefetchScheduleResponse_streamId
- An optional stream identifier that MediaTailor uses to prefetch ads for
multiple streams that use the same playback configuration. If StreamId
is specified, MediaTailor returns all of the prefetch schedules with an
exact match on StreamId
. If not specified, MediaTailor returns all of
the prefetch schedules for the playback configuration, regardless of
StreamId
.
$sel:httpStatus:CreatePrefetchScheduleResponse'
, createPrefetchScheduleResponse_httpStatus
- The response's http status code.
Response Lenses
createPrefetchScheduleResponse_arn :: Lens' CreatePrefetchScheduleResponse (Maybe Text) Source #
The ARN to assign to the prefetch schedule.
createPrefetchScheduleResponse_consumption :: Lens' CreatePrefetchScheduleResponse (Maybe PrefetchConsumption) Source #
The configuration settings for MediaTailor's consumption of the prefetched ads from the ad decision server. 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.
createPrefetchScheduleResponse_name :: Lens' CreatePrefetchScheduleResponse (Maybe Text) Source #
The name to assign to the prefetch schedule.
createPrefetchScheduleResponse_playbackConfigurationName :: Lens' CreatePrefetchScheduleResponse (Maybe Text) Source #
The name to assign to the playback configuration.
createPrefetchScheduleResponse_retrieval :: Lens' CreatePrefetchScheduleResponse (Maybe PrefetchRetrieval) Source #
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.
createPrefetchScheduleResponse_streamId :: Lens' CreatePrefetchScheduleResponse (Maybe Text) Source #
An optional stream identifier that MediaTailor uses to prefetch ads for
multiple streams that use the same playback configuration. If StreamId
is specified, MediaTailor returns all of the prefetch schedules with an
exact match on StreamId
. If not specified, MediaTailor returns all of
the prefetch schedules for the playback configuration, regardless of
StreamId
.
createPrefetchScheduleResponse_httpStatus :: Lens' CreatePrefetchScheduleResponse Int Source #
The response's http status code.