Skip to main content

live_sources

Creates, updates, deletes or gets a live_source resource or lists live_sources in a region

Overview

Namelive_sources
TypeResource
DescriptionDefinition of AWS::MediaTailor::LiveSource Resource Type
Idaws.mediatailor.live_sources

Fields

NameDatatypeDescription
arnstring

The ARN of the live source.

http_package_configurationsarray

A list of HTTP package configuration parameters for this live source.

live_source_namestring
source_location_namestring
tagsarrayThe tags to assign to the live source.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTHttpPackageConfigurations, LiveSourceName, SourceLocationName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all live_sources in a region.

SELECT
region,
arn,
http_package_configurations,
live_source_name,
source_location_name,
tags
FROM aws.mediatailor.live_sources
WHERE region = 'us-east-1';

Gets all properties from an individual live_source.

SELECT
region,
arn,
http_package_configurations,
live_source_name,
source_location_name,
tags
FROM aws.mediatailor.live_sources
WHERE region = 'us-east-1' AND data__Identifier = '<LiveSourceName>|<SourceLocationName>';

INSERT example

Use the following StackQL query and manifest file to create a new live_source resource, using stack-deploy.

/*+ create */
INSERT INTO aws.mediatailor.live_sources (
HttpPackageConfigurations,
LiveSourceName,
SourceLocationName,
region
)
SELECT
'{{ HttpPackageConfigurations }}',
'{{ LiveSourceName }}',
'{{ SourceLocationName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.mediatailor.live_sources
WHERE data__Identifier = '<LiveSourceName|SourceLocationName>'
AND region = 'us-east-1';

Permissions

To operate on the live_sources resource, the following permissions are required:

Create

mediatailor:CreateLiveSource,
mediatailor:DescribeLiveSource,
mediatailor:TagResource

Read

mediatailor:DescribeLiveSource

Update

mediatailor:UpdateLiveSource,
mediatailor:DescribeLiveSource,
mediatailor:TagResource,
mediatailor:UntagResource

Delete

mediatailor:DeleteLiveSource,
mediatailor:DescribeLiveSource

List

mediatailor:ListLiveSources