sdi_sources
Creates, updates, deletes or gets a sdi_source
resource or lists sdi_sources
in a region
Overview
Name | sdi_sources |
Type | Resource |
Description | Definition of AWS::MediaLive::SdiSource Resource Type |
Id | aws.medialive.sdi_sources |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | The unique arn of the SdiSource. |
id | string | The unique identifier of the SdiSource. |
mode | string | The current state of the SdiSource. |
name | string | The name of the SdiSource. |
state | string | The current state of the SdiSource. |
type | string | The interface mode of the SdiSource. |
inputs | array | The list of inputs currently using this SDI source. |
tags | array | A collection of key-value pairs. |
region | string | AWS region. |
For more information, see AWS::MediaLive::SdiSource
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Name, Type, 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 sdi_sources
in a region.
SELECT
region,
arn,
id,
mode,
name,
state,
type,
inputs,
tags
FROM aws.medialive.sdi_sources
WHERE region = 'us-east-1';
Gets all properties from an individual sdi_source
.
SELECT
region,
arn,
id,
mode,
name,
state,
type,
inputs,
tags
FROM aws.medialive.sdi_sources
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
INSERT
example
Use the following StackQL query and manifest file to create a new sdi_source
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.medialive.sdi_sources (
Name,
Type,
region
)
SELECT
'{{ Name }}',
'{{ Type }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.medialive.sdi_sources (
Mode,
Name,
Type,
Tags,
region
)
SELECT
'{{ Mode }}',
'{{ Name }}',
'{{ Type }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: sdi_source
props:
- name: Mode
value: '{{ Mode }}'
- name: Name
value: '{{ Name }}'
- name: Type
value: '{{ Type }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.medialive.sdi_sources
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';
Permissions
To operate on the sdi_sources
resource, the following permissions are required:
Create
medialive:CreateSdiSource,
medialive:CreateTags,
medialive:DescribeSdiSource,
medialive:ListTagsForResource
Read
medialive:DescribeSdiSource,
medialive:ListTagsForResource
Update
medialive:UpdateSdiSource,
medialive:DescribeSdiSource,
medialive:CreateTags,
medialive:DeleteTags,
medialive:ListTagsForResource
Delete
medialive:DeleteSdiSource,
medialive:DescribeSdiSource
List
medialive:ListSdiSources