Skip to main content

channels

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

Overview

Namechannels
TypeResource
Idaws.medialive.channels

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
anywhere_settingsobjectAnywhere settings for this channel.
arnstringPlaceholder documentation for __string
cdi_input_specificationobjectPlaceholder documentation for CdiInputSpecification
channel_classstringA standard channel has two encoding pipelines and a single pipeline channel only has one. (STANDARD, SINGLE_PIPELINE)
channel_engine_versionobjectPlaceholder documentation for ChannelEngineVersionResponse
channel_security_groupsarrayPlaceholder documentation for __listOf__string
destinationsarrayPlaceholder documentation for __listOfOutputDestination
egress_endpointsarrayThe endpoints where outgoing connections initiate from
encoder_settingsobjectEncoder Settings
idstringPlaceholder documentation for __string
inference_settingsobjectInclude this setting to include Elemental Inference features in this channel.
input_attachmentsarrayPlaceholder documentation for __listOfInputAttachment
input_specificationobjectPlaceholder documentation for InputSpecification
linked_channel_settingsobjectLinked Channel Settings for this channel.
log_levelstringThe log level the user wants for their channel. (ERROR, WARNING, INFO, DEBUG, DISABLED)
maintenanceobjectMaintenance settings for this channel.
namestringPlaceholder documentation for __string
pipeline_detailsarrayRuntime details for the pipelines of a running channel.
pipelines_running_countintegerPlaceholder documentation for __integer
role_arnstringPlaceholder documentation for __string
statestringPlaceholder documentation for ChannelState (CREATING, CREATE_FAILED, IDLE, STARTING, RUNNING, RECOVERING, STOPPING, DELETING, DELETED, UPDATING, UPDATE_FAILED)
tagsobjectA collection of key-value pairs.
vpcobjectSettings for VPC output

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_channelselectchannel_id, regionGets details about a channel
list_channelsselectregionmaxResults, nextTokenProduces list of channels that have been created
create_channelinsertregionCreates a new channel
update_channel_classupdatechannel_id, region, ChannelClassChanges the class of the channel.
update_channelupdatechannel_id, regionUpdates a channel.
delete_channeldeletechannel_id, regionStarts deletion of channel. The associated outputs are also deleted.
batch_update_scheduleexecchannel_id, regionUpdate a channel schedule
restart_channel_pipelinesexecchannel_id, regionRestart pipelines in one channel that is currently running.
start_channelexecchannel_id, regionStarts an existing channel
stop_channelexecchannel_id, regionStops a running channel

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
channel_idstringA request to stop a running channel
regionstringAWS region (default: us-east-1)
maxResultsinteger
nextTokenstring

SELECT examples

Gets details about a channel

SELECT
anywhere_settings,
arn,
cdi_input_specification,
channel_class,
channel_engine_version,
channel_security_groups,
destinations,
egress_endpoints,
encoder_settings,
id,
inference_settings,
input_attachments,
input_specification,
linked_channel_settings,
log_level,
maintenance,
name,
pipeline_details,
pipelines_running_count,
role_arn,
state,
tags,
vpc
FROM aws.medialive.channels
WHERE channel_id = '{{ channel_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new channel

INSERT INTO aws.medialive.channels (
CdiInputSpecification,
ChannelClass,
Destinations,
EncoderSettings,
InputAttachments,
InputSpecification,
LogLevel,
Maintenance,
Name,
RequestId,
Reserved,
RoleArn,
Tags,
Vpc,
AnywhereSettings,
ChannelEngineVersion,
DryRun,
LinkedChannelSettings,
ChannelSecurityGroups,
InferenceSettings,
region
)
SELECT
'{{ CdiInputSpecification }}',
'{{ ChannelClass }}',
'{{ Destinations }}',
'{{ EncoderSettings }}',
'{{ InputAttachments }}',
'{{ InputSpecification }}',
'{{ LogLevel }}',
'{{ Maintenance }}',
'{{ Name }}',
'{{ RequestId }}',
'{{ Reserved }}',
'{{ RoleArn }}',
'{{ Tags }}',
'{{ Vpc }}',
'{{ AnywhereSettings }}',
'{{ ChannelEngineVersion }}',
{{ DryRun }},
'{{ LinkedChannelSettings }}',
'{{ ChannelSecurityGroups }}',
'{{ InferenceSettings }}',
'{{ region }}'
RETURNING
channel
;

UPDATE examples

Changes the class of the channel.

UPDATE aws.medialive.channels
SET
ChannelClass = '{{ ChannelClass }}',
Destinations = '{{ Destinations }}'
WHERE
channel_id = '{{ channel_id }}' --required
AND region = '{{ region }}' --required
AND ChannelClass = '{{ ChannelClass }}' --required
RETURNING
channel;

DELETE examples

Starts deletion of channel. The associated outputs are also deleted.

DELETE FROM aws.medialive.channels
WHERE channel_id = '{{ channel_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Update a channel schedule

EXEC aws.medialive.channels.batch_update_schedule
@channel_id='{{ channel_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"Creates": "{{ Creates }}",
"Deletes": "{{ Deletes }}"
}'
;