Skip to main content

vod_sources

Creates, updates, deletes or gets a vod_source resource or lists vod_sources in a region

Overview

Namevod_sources
TypeResource
DescriptionDefinition of AWS::MediaTailor::VodSource Resource Type
Idaws.mediatailor.vod_sources

Fields

NameDatatypeDescription
arnstring

The ARN of the VOD source.

http_package_configurationsarray

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

source_location_namestring
tagsarrayThe tags to assign to the VOD source.
vod_source_namestring
regionstringAWS region.

Methods

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

SELECT examples

Gets all vod_sources in a region.

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

Gets all properties from an individual vod_source.

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

INSERT example

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

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

DELETE example

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

Permissions

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

Create

mediatailor:CreateVodSource,
mediatailor:DescribeVodSource,
mediatailor:TagResource

Read

mediatailor:DescribeVodSource

Update

mediatailor:DescribeVodSource,
mediatailor:TagResource,
mediatailor:UntagResource,
mediatailor:UpdateVodSource

Delete

mediatailor:DeleteVodSource,
mediatailor:DescribeVodSource

List

mediatailor:ListVodSources