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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.medialive.sdi_sources
WHERE
Identifier = '{{ id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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