put_playback_configuration
async
¶
put_playback_configuration(
name: __string,
*,
config_overrides: Optional[AsyncMediaTailorClientConfig] = None,
ad_decision_server_url: Optional[__string] = None,
avail_suppression: Optional[AvailSuppression] = None,
bumper: Optional[Bumper] = None,
cdn_configuration: Optional[CdnConfiguration] = None,
configuration_aliases: Optional[ConfigurationAliasesRequest] = None,
dash_configuration: Optional[DashConfigurationForPut] = None,
insertion_mode: Optional[InsertionMode] = None,
live_pre_roll_configuration: Optional[LivePreRollConfiguration] = None,
manifest_processing_rules: Optional[ManifestProcessingRules] = None,
personalization_threshold_seconds: Optional[__integerMin1] = None,
slate_ad_url: Optional[__string] = None,
tags: Optional[__mapOf__string] = None,
transcode_profile_name: Optional[__string] = None,
video_content_source_url: Optional[__string] = None,
ad_conditioning_configuration: Optional[AdConditioningConfiguration] = None,
ad_decision_server_configuration: Optional[AdDecisionServerConfiguration] = None,
yield_optimization_configuration: Optional[YieldOptimizationConfiguration] = None,
function_mapping: Optional[FunctionMapping] = None,
ads_personalization_timeouts: Optional[AdsPersonalizationTimeouts] = None,
ads_personalization_concurrency: Optional[AdsPersonalizationConcurrency] = None,
beaconing_configuration: Optional[BeaconingConfiguration] = None,
) -> PutPlaybackConfigurationResponse
Creates a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
Parameters:
-
ad_decision_server_url(Optional[__string], default:None) –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.
-
avail_suppression(Optional[AvailSuppression], default:None) –The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression.
-
bumper(Optional[Bumper], default:None) –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.
-
cdn_configuration(Optional[CdnConfiguration], default:None) –The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
-
configuration_aliases(Optional[ConfigurationAliasesRequest], default:None) –The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables.
-
dash_configuration(Optional[DashConfigurationForPut], default:None) –The configuration for DASH content.
-
insertion_mode(Optional[InsertionMode], default:None) –The setting that controls whether players can use stitched or guided ad insertion. The default,
STITCHED_ONLY, forces all player sessions to use stitched (server-side) ad insertion. ChoosingPLAYER_SELECTallows players to select either stitched or guided ad insertion at session-initialization time. The default for players that do not specify an insertion mode is stitched. -
live_pre_roll_configuration(Optional[LivePreRollConfiguration], default:None) –The configuration for pre-roll ad insertion.
-
manifest_processing_rules(Optional[ManifestProcessingRules], default:None) –The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.
-
name(__string) –The identifier for the playback configuration.
-
personalization_threshold_seconds(Optional[__integerMin1], default:None) –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.
-
slate_ad_url(Optional[__string], default:None) –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.
-
tags(Optional[__mapOf__string], default:None) –The tags to assign to the playback configuration. 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.
-
transcode_profile_name(Optional[__string], default:None) –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.
-
video_content_source_url(Optional[__string], default:None) –The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.
-
ad_conditioning_configuration(Optional[AdConditioningConfiguration], default:None) –The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns, and what priority MediaTailor uses when inserting ads.
-
ad_decision_server_configuration(Optional[AdDecisionServerConfiguration], default:None) –The configuration for customizing HTTP requests to the ad decision server (ADS). This includes settings for request method, headers, body content, and compression options.
-
yield_optimization_configuration(Optional[YieldOptimizationConfiguration], default:None) –Configuration for Yield Optimization, which fills unsold ad inventory in ad breaks with programmatic ads from Amazon Publisher Services (APS).
-
function_mapping(Optional[FunctionMapping], default:None) –A map of lifecycle hook event names to function identifiers. The function mapping specifies which function MediaTailor executes at each lifecycle hook during ad insertion. Valid keys are
PRE_SESSION_INITIALIZATION,PRE_ADS_REQUEST,POST_ADS_RESPONSE, andPRE_MANIFEST_INSERTION. For more information, see Functions lifecycle hooks in the MediaTailor User Guide. -
ads_personalization_timeouts(Optional[AdsPersonalizationTimeouts], default:None) –The timeout settings for ad decision server interactions. These settings control how long MediaTailor waits for ADS responses and the total time budget for ad personalization across live, VOD, and prefetch workflows.
-
ads_personalization_concurrency(Optional[AdsPersonalizationConcurrency], default:None) –The concurrency settings for ad decision server interactions. These settings control how many simultaneous ADS requests MediaTailor makes per manifest request.
-
beaconing_configuration(Optional[BeaconingConfiguration], default:None) –The beaconing configuration for this playback configuration, which controls whether MediaTailor includes beacons of its own in the ad tracking response. If you omit this setting, MediaTailor uses
INSIGHTS.
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
2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 | |