2021/09/22 - AWS MediaTailor - 1 new 3 updated api methods
Changes This release adds support to configure logs for playback configuration.
Configures Amazon CloudWatch log settings for a playback configuration.
See also: AWS API Documentation
Request Syntax
client.configure_logs_for_playback_configuration( PercentEnabled=123, PlaybackConfigurationName='string' )
integer
[REQUIRED]
The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account. For example, if your playback configuration has 1000 sessions and percentEnabled is set to 60, MediaTailor sends logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which of the playback configuration sessions to send logs for. If you want to view logs for a specific session, you can use the debug log mode .
Valid values: 0 - 100
string
[REQUIRED]
The name of the playback configuration.
dict
Response Syntax
{ 'PercentEnabled': 123, 'PlaybackConfigurationName': 'string' }
Response Structure
(dict) --
Success.
PercentEnabled (integer) --
The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account.
PlaybackConfigurationName (string) --
The name of the playback configuration.
{'LogConfiguration': {'PercentEnabled': 'integer'}}
Returns the playback configuration for the specified name.
See also: AWS API Documentation
Request Syntax
client.get_playback_configuration( Name='string' )
string
[REQUIRED]
The identifier for the playback configuration.
dict
Response Syntax
{ 'AdDecisionServerUrl': 'string', 'AvailSuppression': { 'Mode': 'OFF'|'BEHIND_LIVE_EDGE', 'Value': 'string' }, 'Bumper': { 'EndUrl': 'string', 'StartUrl': 'string' }, 'CdnConfiguration': { 'AdSegmentUrlPrefix': 'string', 'ContentSegmentUrlPrefix': 'string' }, 'ConfigurationAliases': { 'string': { 'string': 'string' } }, 'DashConfiguration': { 'ManifestEndpointPrefix': 'string', 'MpdLocation': 'string', 'OriginManifestType': 'SINGLE_PERIOD'|'MULTI_PERIOD' }, 'HlsConfiguration': { 'ManifestEndpointPrefix': 'string' }, 'LivePreRollConfiguration': { 'AdDecisionServerUrl': 'string', 'MaxDurationSeconds': 123 }, 'LogConfiguration': { 'PercentEnabled': 123 }, 'ManifestProcessingRules': { 'AdMarkerPassthrough': { 'Enabled': True|False } }, 'Name': 'string', 'PersonalizationThresholdSeconds': 123, 'PlaybackConfigurationArn': 'string', 'PlaybackEndpointPrefix': 'string', 'SessionInitializationEndpointPrefix': 'string', 'SlateAdUrl': 'string', 'Tags': { 'string': 'string' }, 'TranscodeProfileName': 'string', 'VideoContentSourceUrl': 'string' }
Response Structure
(dict) --
Success.
AdDecisionServerUrl (string) --
The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.
AvailSuppression (dict) --
The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression .
Mode (string) --
Sets the ad suppression mode. By default, ad suppression is off and all ad breaks are filled with ads or slate. When Mode is set to BEHIND_LIVE_EDGE, ad suppression is active and MediaTailor won't fill ad breaks on or behind the ad suppression Value time in the manifest lookback window.
Value (string) --
A live edge offset time in HH:MM:SS. MediaTailor won't fill ad breaks on or behind this time in the manifest lookback window. If Value is set to 00:00:00, it is in sync with the live edge, and MediaTailor won't fill any ad breaks on or behind the live edge. If you set a Value time, MediaTailor won't fill any ad breaks on or behind this time in the manifest lookback window. For example, if you set 00:45:00, then MediaTailor will fill ad breaks that occur within 45 minutes behind the live edge, but won't fill ad breaks on or behind 45 minutes behind the live edge.
Bumper (dict) --
The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers .
EndUrl (string) --
The URL for the end bumper asset.
StartUrl (string) --
The URL for the start bumper asset.
CdnConfiguration (dict) --
The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
AdSegmentUrlPrefix (string) --
A non-default content delivery network (CDN) to serve ad segments. By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the origin ads.mediatailor.<region>.amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.
ContentSegmentUrlPrefix (string) --
A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server. First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this ContentSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.
ConfigurationAliases (dict) --
The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables .
(string) --
The dynamic variable that has aliases.
(dict) --
Map of aliases to the value to be used at request time.
(string) --
(string) --
DashConfiguration (dict) --
The configuration for DASH content.
ManifestEndpointPrefix (string) --
The URL generated by MediaTailor to initiate a playback session. The session uses server-side reporting. This setting is ignored in PUT operations.
MpdLocation (string) --
The setting that controls whether MediaTailor includes the Location tag in DASH manifests. MediaTailor populates the Location tag with the URL for manifest update requests, to be used by players that don't support sticky redirects. Disable this if you have CDN routing rules set up for accessing MediaTailor manifests, and you are either using client-side reporting or your players support sticky HTTP redirects. Valid values are DISABLED and EMT_DEFAULT. The EMT_DEFAULT setting enables the inclusion of the tag and is the default value.
OriginManifestType (string) --
The setting that controls whether MediaTailor handles manifests from the origin server as multi-period manifests or single-period manifests. If your origin server produces single-period manifests, set this to SINGLE_PERIOD. The default setting is MULTI_PERIOD. For multi-period manifests, omit this setting or set it to MULTI_PERIOD.
HlsConfiguration (dict) --
The configuration for HLS content.
ManifestEndpointPrefix (string) --
The URL that is used to initiate a playback session for devices that support Apple HLS. The session uses server-side reporting.
LivePreRollConfiguration (dict) --
The configuration for pre-roll ad insertion.
AdDecisionServerUrl (string) --
The URL for the ad decision server (ADS) for pre-roll ads. This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.
MaxDurationSeconds (integer) -- The maximum allowed duration for the pre-roll ad avail. AWS Elemental MediaTailor won't play pre-roll ads to exceed this duration, regardless of the total duration of ads that the ADS returns.
LogConfiguration (dict) --
The Amazon CloudWatch log settings for a playback configuration.
PercentEnabled (integer) --
The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account. For example, if your playback configuration has 1000 sessions and percentEnabled is set to 60, MediaTailor sends logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which of the playback configuration sessions to send logs for. If you want to view logs for a specific session, you can use the debug log mode .
Valid values: 0 - 100
ManifestProcessingRules (dict) --
The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.
AdMarkerPassthrough (dict) --
For HLS, when set to true, MediaTailor passes through EXT-X-CUE-IN, EXT-X-CUE-OUT, and EXT-X-SPLICEPOINT-SCTE35 ad markers from the origin manifest to the MediaTailor personalized manifest.
No logic is applied to these ad markers. For example, if EXT-X-CUE-OUT has a value of 60, but no ads are filled for that ad break, MediaTailor will not set the value to 0.
Enabled (boolean) --
Enables ad marker passthrough for your configuration.
Name (string) --
The identifier for the playback configuration.
PersonalizationThresholdSeconds (integer) --
Defines the maximum duration of underfilled ad time (in seconds) allowed in an ad break. If the duration of underfilled ad time exceeds the personalization threshold, then the personalization of the ad break is abandoned and the underlying content is shown. This feature applies to ad replacement in live and VOD streams, rather than ad insertion, because it relies on an underlying content stream. For more information about ad break behavior, including ad replacement and insertion, see Ad Behavior in AWS Elemental MediaTailor .
PlaybackConfigurationArn (string) --
The Amazon Resource Name (ARN) for the playback configuration.
PlaybackEndpointPrefix (string) --
The URL that the player accesses to get a manifest from AWS Elemental MediaTailor. This session will use server-side reporting.
SessionInitializationEndpointPrefix (string) --
The URL that the player uses to initialize a session that uses client-side reporting.
SlateAdUrl (string) --
The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID playback configurations. For VPAID, the slate is required because MediaTailor provides it in the slots designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.
Tags (dict) --
The tags assigned to the playback configuration.
(string) --
(string) --
TranscodeProfileName (string) --
The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.
VideoContentSourceUrl (string) --
The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.
{'Items': {'LogConfiguration': {'PercentEnabled': 'integer'}}}
Returns a list of the playback configurations defined in AWS Elemental MediaTailor. You can specify a maximum number of configurations to return at a time. The default maximum is 50. Results are returned in pagefuls. If MediaTailor has more configurations than the specified maximum, it provides parameters in the response that you can use to retrieve the next pageful.
See also: AWS API Documentation
Request Syntax
client.list_playback_configurations( MaxResults=123, NextToken='string' )
integer
Maximum number of records to return.
string
Pagination token returned by the GET list request when results exceed the maximum allowed. Use the token to fetch the next page of results.
dict
Response Syntax
{ 'Items': [ { 'AdDecisionServerUrl': 'string', 'AvailSuppression': { 'Mode': 'OFF'|'BEHIND_LIVE_EDGE', 'Value': 'string' }, 'Bumper': { 'EndUrl': 'string', 'StartUrl': 'string' }, 'CdnConfiguration': { 'AdSegmentUrlPrefix': 'string', 'ContentSegmentUrlPrefix': 'string' }, 'ConfigurationAliases': { 'string': { 'string': 'string' } }, 'DashConfiguration': { 'ManifestEndpointPrefix': 'string', 'MpdLocation': 'string', 'OriginManifestType': 'SINGLE_PERIOD'|'MULTI_PERIOD' }, 'HlsConfiguration': { 'ManifestEndpointPrefix': 'string' }, 'LivePreRollConfiguration': { 'AdDecisionServerUrl': 'string', 'MaxDurationSeconds': 123 }, 'LogConfiguration': { 'PercentEnabled': 123 }, 'ManifestProcessingRules': { 'AdMarkerPassthrough': { 'Enabled': True|False } }, 'Name': 'string', 'PersonalizationThresholdSeconds': 123, 'PlaybackConfigurationArn': 'string', 'PlaybackEndpointPrefix': 'string', 'SessionInitializationEndpointPrefix': 'string', 'SlateAdUrl': 'string', 'Tags': { 'string': 'string' }, 'TranscodeProfileName': 'string', 'VideoContentSourceUrl': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
Success.
Items (list) --
Array of playback configurations. This might be all the available configurations or a subset, depending on the settings that you provide and the total number of configurations stored.
(dict) --
Creates a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor .
AdDecisionServerUrl (string) --
The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is 25,000 characters.
AvailSuppression (dict) --
The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression .
Mode (string) --
Sets the ad suppression mode. By default, ad suppression is off and all ad breaks are filled with ads or slate. When Mode is set to BEHIND_LIVE_EDGE, ad suppression is active and MediaTailor won't fill ad breaks on or behind the ad suppression Value time in the manifest lookback window.
Value (string) --
A live edge offset time in HH:MM:SS. MediaTailor won't fill ad breaks on or behind this time in the manifest lookback window. If Value is set to 00:00:00, it is in sync with the live edge, and MediaTailor won't fill any ad breaks on or behind the live edge. If you set a Value time, MediaTailor won't fill any ad breaks on or behind this time in the manifest lookback window. For example, if you set 00:45:00, then MediaTailor will fill ad breaks that occur within 45 minutes behind the live edge, but won't fill ad breaks on or behind 45 minutes behind the live edge.
Bumper (dict) --
The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers .
EndUrl (string) --
The URL for the end bumper asset.
StartUrl (string) --
The URL for the start bumper asset.
CdnConfiguration (dict) --
The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
AdSegmentUrlPrefix (string) --
A non-default content delivery network (CDN) to serve ad segments. By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the origin ads.mediatailor.<region>.amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.
ContentSegmentUrlPrefix (string) --
A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server. First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this ContentSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.
ConfigurationAliases (dict) --
The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables .
(string) --
The dynamic variable that has aliases.
(dict) --
Map of aliases to the value to be used at request time.
(string) --
(string) --
DashConfiguration (dict) --
The configuration for a DASH source.
ManifestEndpointPrefix (string) --
The URL generated by MediaTailor to initiate a playback session. The session uses server-side reporting. This setting is ignored in PUT operations.
MpdLocation (string) --
The setting that controls whether MediaTailor includes the Location tag in DASH manifests. MediaTailor populates the Location tag with the URL for manifest update requests, to be used by players that don't support sticky redirects. Disable this if you have CDN routing rules set up for accessing MediaTailor manifests, and you are either using client-side reporting or your players support sticky HTTP redirects. Valid values are DISABLED and EMT_DEFAULT. The EMT_DEFAULT setting enables the inclusion of the tag and is the default value.
OriginManifestType (string) --
The setting that controls whether MediaTailor handles manifests from the origin server as multi-period manifests or single-period manifests. If your origin server produces single-period manifests, set this to SINGLE_PERIOD. The default setting is MULTI_PERIOD. For multi-period manifests, omit this setting or set it to MULTI_PERIOD.
HlsConfiguration (dict) --
The configuration for HLS content.
ManifestEndpointPrefix (string) --
The URL that is used to initiate a playback session for devices that support Apple HLS. The session uses server-side reporting.
LivePreRollConfiguration (dict) --
The configuration for pre-roll ad insertion.
AdDecisionServerUrl (string) --
The URL for the ad decision server (ADS) for pre-roll ads. This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.
MaxDurationSeconds (integer) -- The maximum allowed duration for the pre-roll ad avail. AWS Elemental MediaTailor won't play pre-roll ads to exceed this duration, regardless of the total duration of ads that the ADS returns.
LogConfiguration (dict) --
The Amazon CloudWatch log settings for a playback configuration.
PercentEnabled (integer) --
The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account. For example, if your playback configuration has 1000 sessions and percentEnabled is set to 60, MediaTailor sends logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which of the playback configuration sessions to send logs for. If you want to view logs for a specific session, you can use the debug log mode .
Valid values: 0 - 100
ManifestProcessingRules (dict) --
The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.
AdMarkerPassthrough (dict) --
For HLS, when set to true, MediaTailor passes through EXT-X-CUE-IN, EXT-X-CUE-OUT, and EXT-X-SPLICEPOINT-SCTE35 ad markers from the origin manifest to the MediaTailor personalized manifest.
No logic is applied to these ad markers. For example, if EXT-X-CUE-OUT has a value of 60, but no ads are filled for that ad break, MediaTailor will not set the value to 0.
Enabled (boolean) --
Enables ad marker passthrough for your configuration.
Name (string) --
The identifier for the playback configuration.
PersonalizationThresholdSeconds (integer) --
Defines the maximum duration of underfilled ad time (in seconds) allowed in an ad break. If the duration of underfilled ad time exceeds the personalization threshold, then the personalization of the ad break is abandoned and the underlying content is shown. This feature applies to ad replacement in live and VOD streams, rather than ad insertion, because it relies on an underlying content stream. For more information about ad break behavior, including ad replacement and insertion, see Ad Behavior in AWS Elemental MediaTailor .
PlaybackConfigurationArn (string) --
The Amazon Resource Name (ARN) for the playback configuration.
PlaybackEndpointPrefix (string) --
The URL that the player accesses to get a manifest from AWS Elemental MediaTailor.
SessionInitializationEndpointPrefix (string) --
The URL that the player uses to initialize a session that uses client-side reporting.
SlateAdUrl (string) --
The URL for a video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID playback configurations. For VPAID, the slate is required because MediaTailor provides it in the slots designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.
Tags (dict) --
The tags to assign to the playback configuration.
(string) --
(string) --
TranscodeProfileName (string) --
The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.
VideoContentSourceUrl (string) --
The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.
NextToken (string) --
Pagination token returned by the GET list request when results exceed the maximum allowed. Use the token to fetch the next page of results.
{'LogConfiguration': {'PercentEnabled': 'integer'}}
Adds a new playback configuration to AWS Elemental MediaTailor.
See also: AWS API Documentation
Request Syntax
client.put_playback_configuration( AdDecisionServerUrl='string', AvailSuppression={ 'Mode': 'OFF'|'BEHIND_LIVE_EDGE', 'Value': 'string' }, Bumper={ 'EndUrl': 'string', 'StartUrl': 'string' }, CdnConfiguration={ 'AdSegmentUrlPrefix': 'string', 'ContentSegmentUrlPrefix': 'string' }, ConfigurationAliases={ 'string': { 'string': 'string' } }, DashConfiguration={ 'MpdLocation': 'string', 'OriginManifestType': 'SINGLE_PERIOD'|'MULTI_PERIOD' }, LivePreRollConfiguration={ 'AdDecisionServerUrl': 'string', 'MaxDurationSeconds': 123 }, ManifestProcessingRules={ 'AdMarkerPassthrough': { 'Enabled': True|False } }, Name='string', PersonalizationThresholdSeconds=123, SlateAdUrl='string', Tags={ 'string': 'string' }, TranscodeProfileName='string', VideoContentSourceUrl='string' )
string
The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is 25,000 characters.
dict
The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression .
Mode (string) --
Sets the ad suppression mode. By default, ad suppression is off and all ad breaks are filled with ads or slate. When Mode is set to BEHIND_LIVE_EDGE, ad suppression is active and MediaTailor won't fill ad breaks on or behind the ad suppression Value time in the manifest lookback window.
Value (string) --
A live edge offset time in HH:MM:SS. MediaTailor won't fill ad breaks on or behind this time in the manifest lookback window. If Value is set to 00:00:00, it is in sync with the live edge, and MediaTailor won't fill any ad breaks on or behind the live edge. If you set a Value time, MediaTailor won't fill any ad breaks on or behind this time in the manifest lookback window. For example, if you set 00:45:00, then MediaTailor will fill ad breaks that occur within 45 minutes behind the live edge, but won't fill ad breaks on or behind 45 minutes behind the live edge.
dict
The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers .
EndUrl (string) --
The URL for the end bumper asset.
StartUrl (string) --
The URL for the start bumper asset.
dict
The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
AdSegmentUrlPrefix (string) --
A non-default content delivery network (CDN) to serve ad segments. By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the origin ads.mediatailor.<region>.amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.
ContentSegmentUrlPrefix (string) --
A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server. First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this ContentSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.
dict
The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables .
(string) --
The dynamic variable that has aliases.
(dict) --
Map of aliases to the value to be used at request time.
(string) --
(string) --
dict
The configuration for DASH content.
MpdLocation (string) --
The setting that controls whether MediaTailor includes the Location tag in DASH manifests. MediaTailor populates the Location tag with the URL for manifest update requests, to be used by players that don't support sticky redirects. Disable this if you have CDN routing rules set up for accessing MediaTailor manifests, and you are either using client-side reporting or your players support sticky HTTP redirects. Valid values are DISABLED and EMT_DEFAULT. The EMT_DEFAULT setting enables the inclusion of the tag and is the default value.
OriginManifestType (string) --
The setting that controls whether MediaTailor handles manifests from the origin server as multi-period manifests or single-period manifests. If your origin server produces single-period manifests, set this to SINGLE_PERIOD. The default setting is MULTI_PERIOD. For multi-period manifests, omit this setting or set it to MULTI_PERIOD.
dict
The configuration for pre-roll ad insertion.
AdDecisionServerUrl (string) --
The URL for the ad decision server (ADS) for pre-roll ads. This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.
MaxDurationSeconds (integer) -- The maximum allowed duration for the pre-roll ad avail. AWS Elemental MediaTailor won't play pre-roll ads to exceed this duration, regardless of the total duration of ads that the ADS returns.
dict
The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.
AdMarkerPassthrough (dict) --
For HLS, when set to true, MediaTailor passes through EXT-X-CUE-IN, EXT-X-CUE-OUT, and EXT-X-SPLICEPOINT-SCTE35 ad markers from the origin manifest to the MediaTailor personalized manifest.
No logic is applied to these ad markers. For example, if EXT-X-CUE-OUT has a value of 60, but no ads are filled for that ad break, MediaTailor will not set the value to 0.
Enabled (boolean) --
Enables ad marker passthrough for your configuration.
string
The identifier for the playback configuration.
integer
Defines the maximum duration of underfilled ad time (in seconds) allowed in an ad break. If the duration of underfilled ad time exceeds the personalization threshold, then the personalization of the ad break is abandoned and the underlying content is shown. This feature applies to ad replacement in live and VOD streams, rather than ad insertion, because it relies on an underlying content stream. For more information about ad break behavior, including ad replacement and insertion, see Ad Behavior in AWS Elemental MediaTailor .
string
The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID configurations. For VPAID, the slate is required because MediaTailor provides it in the slots that are designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.
dict
The tags to assign to the playback configuration.
(string) --
(string) --
string
The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.
string
The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.
dict
Response Syntax
{ 'AdDecisionServerUrl': 'string', 'AvailSuppression': { 'Mode': 'OFF'|'BEHIND_LIVE_EDGE', 'Value': 'string' }, 'Bumper': { 'EndUrl': 'string', 'StartUrl': 'string' }, 'CdnConfiguration': { 'AdSegmentUrlPrefix': 'string', 'ContentSegmentUrlPrefix': 'string' }, 'ConfigurationAliases': { 'string': { 'string': 'string' } }, 'DashConfiguration': { 'ManifestEndpointPrefix': 'string', 'MpdLocation': 'string', 'OriginManifestType': 'SINGLE_PERIOD'|'MULTI_PERIOD' }, 'HlsConfiguration': { 'ManifestEndpointPrefix': 'string' }, 'LivePreRollConfiguration': { 'AdDecisionServerUrl': 'string', 'MaxDurationSeconds': 123 }, 'LogConfiguration': { 'PercentEnabled': 123 }, 'ManifestProcessingRules': { 'AdMarkerPassthrough': { 'Enabled': True|False } }, 'Name': 'string', 'PersonalizationThresholdSeconds': 123, 'PlaybackConfigurationArn': 'string', 'PlaybackEndpointPrefix': 'string', 'SessionInitializationEndpointPrefix': 'string', 'SlateAdUrl': 'string', 'Tags': { 'string': 'string' }, 'TranscodeProfileName': 'string', 'VideoContentSourceUrl': 'string' }
Response Structure
(dict) --
Success.
AdDecisionServerUrl (string) --
The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.
AvailSuppression (dict) --
The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression .
Mode (string) --
Sets the ad suppression mode. By default, ad suppression is off and all ad breaks are filled with ads or slate. When Mode is set to BEHIND_LIVE_EDGE, ad suppression is active and MediaTailor won't fill ad breaks on or behind the ad suppression Value time in the manifest lookback window.
Value (string) --
A live edge offset time in HH:MM:SS. MediaTailor won't fill ad breaks on or behind this time in the manifest lookback window. If Value is set to 00:00:00, it is in sync with the live edge, and MediaTailor won't fill any ad breaks on or behind the live edge. If you set a Value time, MediaTailor won't fill any ad breaks on or behind this time in the manifest lookback window. For example, if you set 00:45:00, then MediaTailor will fill ad breaks that occur within 45 minutes behind the live edge, but won't fill ad breaks on or behind 45 minutes behind the live edge.
Bumper (dict) --
The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers .
EndUrl (string) --
The URL for the end bumper asset.
StartUrl (string) --
The URL for the start bumper asset.
CdnConfiguration (dict) --
The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
AdSegmentUrlPrefix (string) --
A non-default content delivery network (CDN) to serve ad segments. By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the origin ads.mediatailor.<region>.amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.
ContentSegmentUrlPrefix (string) --
A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server. First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this ContentSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.
ConfigurationAliases (dict) --
The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables .
(string) --
The dynamic variable that has aliases.
(dict) --
Map of aliases to the value to be used at request time.
(string) --
(string) --
DashConfiguration (dict) --
The configuration for DASH content.
ManifestEndpointPrefix (string) --
The URL generated by MediaTailor to initiate a playback session. The session uses server-side reporting. This setting is ignored in PUT operations.
MpdLocation (string) --
The setting that controls whether MediaTailor includes the Location tag in DASH manifests. MediaTailor populates the Location tag with the URL for manifest update requests, to be used by players that don't support sticky redirects. Disable this if you have CDN routing rules set up for accessing MediaTailor manifests, and you are either using client-side reporting or your players support sticky HTTP redirects. Valid values are DISABLED and EMT_DEFAULT. The EMT_DEFAULT setting enables the inclusion of the tag and is the default value.
OriginManifestType (string) --
The setting that controls whether MediaTailor handles manifests from the origin server as multi-period manifests or single-period manifests. If your origin server produces single-period manifests, set this to SINGLE_PERIOD. The default setting is MULTI_PERIOD. For multi-period manifests, omit this setting or set it to MULTI_PERIOD.
HlsConfiguration (dict) --
The configuration for HLS content.
ManifestEndpointPrefix (string) --
The URL that is used to initiate a playback session for devices that support Apple HLS. The session uses server-side reporting.
LivePreRollConfiguration (dict) --
The configuration for pre-roll ad insertion.
AdDecisionServerUrl (string) --
The URL for the ad decision server (ADS) for pre-roll ads. This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.
MaxDurationSeconds (integer) -- The maximum allowed duration for the pre-roll ad avail. AWS Elemental MediaTailor won't play pre-roll ads to exceed this duration, regardless of the total duration of ads that the ADS returns.
LogConfiguration (dict) --
The Amazon CloudWatch log settings for a playback configuration.
PercentEnabled (integer) --
The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account. For example, if your playback configuration has 1000 sessions and percentEnabled is set to 60, MediaTailor sends logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which of the playback configuration sessions to send logs for. If you want to view logs for a specific session, you can use the debug log mode .
Valid values: 0 - 100
ManifestProcessingRules (dict) --
The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.
AdMarkerPassthrough (dict) --
For HLS, when set to true, MediaTailor passes through EXT-X-CUE-IN, EXT-X-CUE-OUT, and EXT-X-SPLICEPOINT-SCTE35 ad markers from the origin manifest to the MediaTailor personalized manifest.
No logic is applied to these ad markers. For example, if EXT-X-CUE-OUT has a value of 60, but no ads are filled for that ad break, MediaTailor will not set the value to 0.
Enabled (boolean) --
Enables ad marker passthrough for your configuration.
Name (string) --
The identifier for the playback configuration.
PersonalizationThresholdSeconds (integer) --
Defines the maximum duration of underfilled ad time (in seconds) allowed in an ad break. If the duration of underfilled ad time exceeds the personalization threshold, then the personalization of the ad break is abandoned and the underlying content is shown. This feature applies to ad replacement in live and VOD streams, rather than ad insertion, because it relies on an underlying content stream. For more information about ad break behavior, including ad replacement and insertion, see Ad Behavior in AWS Elemental MediaTailor .
PlaybackConfigurationArn (string) --
The Amazon Resource Name (ARN) for the playback configuration.
PlaybackEndpointPrefix (string) --
The URL that the player accesses to get a manifest from AWS Elemental MediaTailor. This session will use server-side reporting.
SessionInitializationEndpointPrefix (string) --
The URL that the player uses to initialize a session that uses client-side reporting.
SlateAdUrl (string) --
The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID playback configurations. For VPAID, the slate is required because MediaTailor provides it in the slots designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.
Tags (dict) --
The tags assigned to the playback configuration.
(string) --
(string) --
TranscodeProfileName (string) --
The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.
VideoContentSourceUrl (string) --
The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.