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