Skip to main content

sdi_sources

Creates, updates, deletes, gets or lists a sdi_sources resource.

Overview

Namesdi_sources
TypeResource
Idaws.medialive.sdi_sources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringPlaceholder documentation for __string
idstringPlaceholder documentation for __string
inputsarrayPlaceholder documentation for __listOf__string
modestringUsed in SdiSource, CreateSdiSourceRequest, UpdateSdiSourceRequest. (QUADRANT, INTERLEAVE)
namestringPlaceholder documentation for __string
statestringSpecifies whether the SDI source is attached to an SDI input (IN_USE) or not (IDLE). (IDLE, IN_USE, DELETED)
typestringUsed in SdiSource, CreateSdiSourceRequest, UpdateSdiSourceRequest. (SINGLE, QUAD)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_sdi_sourceselectsdi_source_id, regionGets details about a SdiSource.
list_sdi_sourcesselectregionmaxResults, nextTokenList all the SdiSources in the AWS account.
create_sdi_sourceinsertregionCreate an SdiSource for each video source that uses the SDI protocol. You will reference the SdiSource when you create an SDI input in MediaLive. You will also reference it in an SdiSourceMapping, in order to create a connection between the logical SdiSource and the physical SDI card and port that the physical SDI source uses.
update_sdi_sourceupdatesdi_source_id, regionChange some of the settings in an SdiSource.
delete_sdi_sourcedeletesdi_source_id, regionDelete an SdiSource. The SdiSource must not be part of any SidSourceMapping and must not be attached to any input.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
sdi_source_idstringThe ID of the SdiSource.
maxResultsintegerThe maximum number of items to return.
nextTokenstringThe token to retrieve the next page of results.

SELECT examples

Gets details about a SdiSource.

SELECT
arn,
id,
inputs,
mode,
name,
state,
type
FROM aws.medialive.sdi_sources
WHERE sdi_source_id = '{{ sdi_source_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create an SdiSource for each video source that uses the SDI protocol. You will reference the SdiSource when you create an SDI input in MediaLive. You will also reference it in an SdiSourceMapping, in order to create a connection between the logical SdiSource and the physical SDI card and port that the physical SDI source uses.

INSERT INTO aws.medialive.sdi_sources (
Mode,
Name,
RequestId,
Tags,
Type,
region
)
SELECT
'{{ Mode }}',
'{{ Name }}',
'{{ RequestId }}',
'{{ Tags }}',
'{{ Type }}',
'{{ region }}'
RETURNING
sdi_source
;

UPDATE examples

Change some of the settings in an SdiSource.

UPDATE aws.medialive.sdi_sources
SET
Mode = '{{ Mode }}',
Name = '{{ Name }}',
Type = '{{ Type }}'
WHERE
sdi_source_id = '{{ sdi_source_id }}' --required
AND region = '{{ region }}' --required
RETURNING
sdi_source;

DELETE examples

Delete an SdiSource. The SdiSource must not be part of any SidSourceMapping and must not be attached to any input.

DELETE FROM aws.medialive.sdi_sources
WHERE sdi_source_id = '{{ sdi_source_id }}' --required
AND region = '{{ region }}' --required
;