playback_configurations
Creates, updates, deletes or gets a playback_configuration
resource or lists playback_configurations
in a region
Overview
Name | playback_configurations |
Type | Resource |
Description | Resource schema for AWS::MediaTailor::PlaybackConfiguration |
Id | aws.mediatailor.playback_configurations |
Fields
Name | Datatype | Description |
---|---|---|
ad_decision_server_url | 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. |
avail_suppression | object | The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression (https://docs.aws.amazon.com/mediatailor/latest/ug/ad-behavior.html). |
bumper | object | 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 (https://docs.aws.amazon.com/mediatailor/latest/ug/bumpers.html). |
cdn_configuration | object | The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management. |
configuration_aliases | undefined | The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables. |
dash_configuration | object | The configuration for DASH content. |
live_pre_roll_configuration | object | The configuration for pre-roll ad insertion. |
manifest_processing_rules | object | 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 | 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 (https://docs.aws.amazon.com/mediatailor/latest/ug/ad-behavior.html). |
session_initialization_endpoint_prefix | string | The URL that the player uses to initialize a session that uses client-side reporting. |
hls_configuration | object | The configuration for HLS content. |
playback_configuration_arn | string | The Amazon Resource Name (ARN) for the playback configuration. |
playback_endpoint_prefix | string | The URL that the player accesses to get a manifest from MediaTailor. This session will use server-side reporting. |
slate_ad_url | 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. |
tags | array | The tags to assign to the playback configuration. |
transcode_profile_name | 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. |
video_content_source_url | string | The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Name, VideoContentSourceUrl, AdDecisionServerUrl, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all playback_configurations
in a region.
SELECT
region,
ad_decision_server_url,
avail_suppression,
bumper,
cdn_configuration,
configuration_aliases,
dash_configuration,
live_pre_roll_configuration,
manifest_processing_rules,
name,
personalization_threshold_seconds,
session_initialization_endpoint_prefix,
hls_configuration,
playback_configuration_arn,
playback_endpoint_prefix,
slate_ad_url,
tags,
transcode_profile_name,
video_content_source_url
FROM aws.mediatailor.playback_configurations
WHERE region = 'us-east-1';
Gets all properties from an individual playback_configuration
.
SELECT
region,
ad_decision_server_url,
avail_suppression,
bumper,
cdn_configuration,
configuration_aliases,
dash_configuration,
live_pre_roll_configuration,
manifest_processing_rules,
name,
personalization_threshold_seconds,
session_initialization_endpoint_prefix,
hls_configuration,
playback_configuration_arn,
playback_endpoint_prefix,
slate_ad_url,
tags,
transcode_profile_name,
video_content_source_url
FROM aws.mediatailor.playback_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';
INSERT
example
Use the following StackQL query and manifest file to create a new playback_configuration
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.mediatailor.playback_configurations (
AdDecisionServerUrl,
Name,
VideoContentSourceUrl,
region
)
SELECT
'{{ AdDecisionServerUrl }}',
'{{ Name }}',
'{{ VideoContentSourceUrl }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.mediatailor.playback_configurations (
AdDecisionServerUrl,
AvailSuppression,
Bumper,
CdnConfiguration,
ConfigurationAliases,
DashConfiguration,
LivePreRollConfiguration,
ManifestProcessingRules,
Name,
PersonalizationThresholdSeconds,
HlsConfiguration,
SlateAdUrl,
Tags,
TranscodeProfileName,
VideoContentSourceUrl,
region
)
SELECT
'{{ AdDecisionServerUrl }}',
'{{ AvailSuppression }}',
'{{ Bumper }}',
'{{ CdnConfiguration }}',
'{{ ConfigurationAliases }}',
'{{ DashConfiguration }}',
'{{ LivePreRollConfiguration }}',
'{{ ManifestProcessingRules }}',
'{{ Name }}',
'{{ PersonalizationThresholdSeconds }}',
'{{ HlsConfiguration }}',
'{{ SlateAdUrl }}',
'{{ Tags }}',
'{{ TranscodeProfileName }}',
'{{ VideoContentSourceUrl }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: playback_configuration
props:
- name: AdDecisionServerUrl
value: '{{ AdDecisionServerUrl }}'
- name: AvailSuppression
value:
Mode: '{{ Mode }}'
Value: '{{ Value }}'
FillPolicy: '{{ FillPolicy }}'
- name: Bumper
value:
StartUrl: '{{ StartUrl }}'
EndUrl: '{{ EndUrl }}'
- name: CdnConfiguration
value:
AdSegmentUrlPrefix: '{{ AdSegmentUrlPrefix }}'
ContentSegmentUrlPrefix: '{{ ContentSegmentUrlPrefix }}'
- name: ConfigurationAliases
value: null
- name: DashConfiguration
value:
MpdLocation: '{{ MpdLocation }}'
OriginManifestType: '{{ OriginManifestType }}'
ManifestEndpointPrefix: '{{ ManifestEndpointPrefix }}'
- name: LivePreRollConfiguration
value:
AdDecisionServerUrl: '{{ AdDecisionServerUrl }}'
MaxDurationSeconds: '{{ MaxDurationSeconds }}'
- name: ManifestProcessingRules
value:
AdMarkerPassthrough:
Enabled: '{{ Enabled }}'
- name: Name
value: '{{ Name }}'
- name: PersonalizationThresholdSeconds
value: '{{ PersonalizationThresholdSeconds }}'
- name: HlsConfiguration
value:
ManifestEndpointPrefix: '{{ ManifestEndpointPrefix }}'
- name: SlateAdUrl
value: '{{ SlateAdUrl }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: TranscodeProfileName
value: '{{ TranscodeProfileName }}'
- name: VideoContentSourceUrl
value: '{{ VideoContentSourceUrl }}'
DELETE
example
/*+ delete */
DELETE FROM aws.mediatailor.playback_configurations
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';
Permissions
To operate on the playback_configurations
resource, the following permissions are required:
Create
mediatailor:PutPlaybackConfiguration,
mediatailor:ConfigureLogsForPlaybackConfiguration,
iam:CreateServiceLinkedRole,
mediatailor:UntagResource,
mediatailor:TagResource
Read
mediatailor:GetPlaybackConfiguration
Update
mediatailor:PutPlaybackConfiguration,
mediatailor:ConfigureLogsForPlaybackConfiguration,
iam:CreateServiceLinkedRole,
mediatailor:UntagResource,
mediatailor:TagResource
Delete
mediatailor:DeletePlaybackConfiguration
List
mediatailor:ListPlaybackConfigurations