Skip to main content

live_sources

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

Overview

Namelive_sources
TypeResource
Idaws.mediatailor.live_sources

Fields

The following fields are returned by SELECT queries:

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_live_sourceselectlive_source_name, source_location_name, regionThe live source to describe.
list_live_sourcesselectsource_location_name, regionmaxResults, nextTokenLists the live sources contained in a source location. A source represents a piece of content.
create_live_sourceinsertlive_source_name, source_location_name, region, HttpPackageConfigurationsThe live source configuration.
update_live_sourceupdatelive_source_name, source_location_name, region, HttpPackageConfigurationsUpdates a live source's configuration.
delete_live_sourcedeletelive_source_name, source_location_name, regionThe live 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
live_source_namestringThe name of the live source.
regionstringAWS region (default: us-east-1)
source_location_namestringThe name of the source location associated with this Live Source.
maxResultsintegerThe maximum number of live sources that you want MediaTailor to return in response to the current request. If there are more than MaxResults live 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 ListLiveSources 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

The live source to describe.

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

INSERT examples

The live source configuration.

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

UPDATE examples

Updates a live source's configuration.

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

DELETE examples

The live source to delete.

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