vod_sources
Creates, updates, deletes or gets a vod_source
resource or lists vod_sources
in a region
Overview
Name | vod_sources |
Type | Resource |
Description | Definition of AWS::MediaTailor::VodSource Resource Type |
Id | aws.mediatailor.vod_sources |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | The ARN of the VOD source. |
http_package_configurations | array | A list of HTTP package configuration parameters for this VOD source. |
source_location_name | string | |
tags | array | The tags to assign to the VOD source. |
vod_source_name | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | HttpPackageConfigurations, SourceLocationName, VodSourceName, 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 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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.mediatailor.vod_sources (
HttpPackageConfigurations,
SourceLocationName,
VodSourceName,
region
)
SELECT
'{{ HttpPackageConfigurations }}',
'{{ SourceLocationName }}',
'{{ VodSourceName }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.mediatailor.vod_sources (
HttpPackageConfigurations,
SourceLocationName,
Tags,
VodSourceName,
region
)
SELECT
'{{ HttpPackageConfigurations }}',
'{{ SourceLocationName }}',
'{{ Tags }}',
'{{ VodSourceName }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: vod_source
props:
- name: HttpPackageConfigurations
value:
- Path: '{{ Path }}'
SourceGroup: '{{ SourceGroup }}'
Type: '{{ Type }}'
- name: SourceLocationName
value: '{{ SourceLocationName }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: VodSourceName
value: '{{ VodSourceName }}'
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