Skip to main content

sdi_sources

Creates, updates, deletes or gets a sdi_source resource or lists sdi_sources in a region

Overview

Namesdi_sources
TypeResource
DescriptionDefinition of AWS::MediaLive::SdiSource Resource Type
Idaws.medialive.sdi_sources

Fields

NameDatatypeDescription
arnstringThe unique arn of the SdiSource.
idstringThe unique identifier of the SdiSource.
modestringThe current state of the SdiSource.
namestringThe name of the SdiSource.
statestringThe current state of the SdiSource.
typestringThe interface mode of the SdiSource.
inputsarrayThe list of inputs currently using this SDI source.
tagsarrayA collection of key-value pairs.
regionstringAWS region.

For more information, see AWS::MediaLive::SdiSource.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__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.

/*+ create */
INSERT INTO aws.medialive.sdi_sources (
Name,
Type,
region
)
SELECT
'{{ Name }}',
'{{ Type }}',
'{{ region }}';

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