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
Idawscc.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

NameResourceAccessible byRequired Params
create_resourcesdi_sourcesINSERTName, Type, region
delete_resourcesdi_sourcesDELETEIdentifier, region
update_resourcesdi_sourcesUPDATEIdentifier, PatchDocument, region
list_resourcessdi_sources_list_onlySELECTregion
get_resourcesdi_sourcesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual sdi_source.

SELECT
region,
arn,
id,
mode,
name,
state,
type,
inputs,
tags
FROM awscc.medialive.sdi_sources
WHERE
region = 'us-east-1' AND
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 awscc.medialive.sdi_sources (
Name,
Type,
region
)
SELECT
'{{ name }}',
'{{ type }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a sdi_source resource, using stack-deploy.

/*+ update */
UPDATE awscc.medialive.sdi_sources
SET PatchDocument = string('{{ {
"Mode": mode,
"Name": name,
"Type": type,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.medialive.sdi_sources
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';

Permissions

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

medialive:CreateSdiSource,
medialive:CreateTags,
medialive:DescribeSdiSource,
medialive:ListTagsForResource