Skip to main content

vod_sources

Creates, updates, deletes, gets or lists a vod_sources resource.

Overview

Namevod_sources
TypeResource
Idaws.mediatailor.vod_sources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ad_break_opportunitiesarrayThe ad break opportunities within the VOD source.
arnstringThe ARN of the VOD source.
creation_timestring (date-time)The timestamp that indicates when the VOD source was created.
http_package_configurationsarrayThe VOD source's HTTP package configuration settings.
last_modified_timestring (date-time)The last modified time of the VOD source.
source_location_namestringThe name of the source location associated with the VOD source.
tagsobjectThe tags assigned to the VOD source. 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.
vod_source_namestringThe name of the VOD source.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_vod_sourceselectsource_location_name, vod_source_name, regionProvides details about a specific video on demand (VOD) source in a specific source location.
list_vod_sourcesselectsource_location_name, regionmaxResults, nextTokenLists the VOD sources contained in a source location. A source represents a piece of content.
create_vod_sourceinsertsource_location_name, vod_source_name, region, HttpPackageConfigurationsThe VOD source configuration parameters.
update_vod_sourceupdatesource_location_name, vod_source_name, region, HttpPackageConfigurationsUpdates a VOD source's configuration.
delete_vod_sourcedeletesource_location_name, vod_source_name, regionThe video on demand (VOD) source to delete.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
source_location_namestringThe name of the source location associated with this VOD Source.
vod_source_namestringThe name of the VOD source.
maxResultsintegerThe maximum number of VOD sources that you want MediaTailor to return in response to the current request. If there are more than MaxResults VOD sources, use the value of NextToken in the response to get the next page of results. The default value is 100. MediaTailor uses DynamoDB-based pagination, which means that a response might contain fewer than MaxResults items, including 0 items, even when more results are available. To retrieve all results, you must continue making requests using the NextToken value from each response until the response no longer includes a NextToken value.
nextTokenstringPagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results. For the first ListVodSources request, omit this value. For subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request. Continue making requests until the response no longer includes a NextToken value, which indicates that all results have been retrieved.

SELECT examples

Provides details about a specific video on demand (VOD) source in a specific source location.

SELECT
ad_break_opportunities,
arn,
creation_time,
http_package_configurations,
last_modified_time,
source_location_name,
tags,
vod_source_name
FROM aws.mediatailor.vod_sources
WHERE source_location_name = '{{ source_location_name }}' -- required
AND vod_source_name = '{{ vod_source_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

The VOD source configuration parameters.

INSERT INTO aws.mediatailor.vod_sources (
HttpPackageConfigurations,
Tags,
source_location_name,
vod_source_name,
region
)
SELECT
'{{ HttpPackageConfigurations }}' /* required */,
'{{ Tags }}',
'{{ source_location_name }}',
'{{ vod_source_name }}',
'{{ region }}'
RETURNING
arn,
creation_time,
http_package_configurations,
last_modified_time,
source_location_name,
tags,
vod_source_name
;

UPDATE examples

Updates a VOD source's configuration.

UPDATE aws.mediatailor.vod_sources
SET
HttpPackageConfigurations = '{{ HttpPackageConfigurations }}'
WHERE
source_location_name = '{{ source_location_name }}' --required
AND vod_source_name = '{{ vod_source_name }}' --required
AND region = '{{ region }}' --required
AND HttpPackageConfigurations = '{{ HttpPackageConfigurations }}' --required
RETURNING
arn,
creation_time,
http_package_configurations,
last_modified_time,
source_location_name,
tags,
vod_source_name;

DELETE examples

The video on demand (VOD) source to delete.

DELETE FROM aws.mediatailor.vod_sources
WHERE source_location_name = '{{ source_location_name }}' --required
AND vod_source_name = '{{ vod_source_name }}' --required
AND region = '{{ region }}' --required
;