Skip to main content

inputs

Creates, updates, deletes, gets or lists an inputs resource.

Overview

Nameinputs
TypeResource
Idaws.medialive.inputs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringPlaceholder documentation for __string
attached_channelsarrayPlaceholder documentation for __listOf__string
destinationsarrayA list of the destinations of the input (PUSH-type).
idstringPlaceholder documentation for __string
input_classstringSTANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the input. (STANDARD, SINGLE_PIPELINE)
input_devicesarrayPlaceholder documentation for __listOfInputDeviceSettings
input_network_locationstringWith the introduction of MediaLive Anywhere, a MediaLive input can now exist in two different places: AWS or inside an on-premises datacenter. By default all inputs will continue to be AWS inputs. (AWS, ON_PREMISES)
input_partner_idsarrayPlaceholder documentation for __listOf__string
input_source_typestringCertain pull input sources can be dynamic, meaning that they can have their URL's dynamically changes during input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs. (STATIC, DYNAMIC)
media_connect_flowsarrayA list of MediaConnect Flows for this input.
multicast_settingsobjectMulticast Input settings.
namestringPlaceholder documentation for __string
role_arnstringPlaceholder documentation for __string
router_settingsobjectInformation about any MediaConnect router association with this input.
sdi_sourcesarraySDI Sources for this Input.
security_groupsarrayPlaceholder documentation for __listOf__string
smpte_2110_receiver_group_settingsobjectConfigures the sources for the SMPTE 2110 Receiver Group input.
sourcesarrayA list of the sources of the input (PULL-type).
srt_settingsobjectThe settings associated with an SRT input.
statestringPlaceholder documentation for InputState (CREATING, DETACHED, ATTACHED, DELETING, DELETED)
tagsobjectA collection of key-value pairs.
typestringThe different types of inputs that AWS Elemental MediaLive supports. (UDP_PUSH, RTP_PUSH, RTMP_PUSH, RTMP_PULL, URL_PULL, MP4_FILE, MEDIACONNECT, INPUT_DEVICE, AWS_CDI, TS_FILE, SRT_CALLER, MULTICAST, SMPTE_2110_RECEIVER_GROUP, SDI, MEDIACONNECT_ROUTER, SRT_LISTENER)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_inputselectinput_id, regionProduces details about an input
list_inputsselectregionmaxResults, nextTokenProduces list of inputs that have been created
create_partner_inputinsertinput_id, regionCreate a partner input
create_inputinsertregionCreate an input
update_inputupdateinput_id, regionUpdates an input.
delete_inputdeleteinput_id, regionDeletes the input end point
reboot_input_deviceexecinput_device_id, regionSend a reboot command to the specified input device. The device will begin rebooting within a few seconds of sending the command. When the reboot is complete, the device’s connection status will change to connected.
start_input_deviceexecinput_device_id, regionStart an input device that is attached to a MediaConnect flow. (There is no need to start a device that is attached to a MediaLive input; MediaLive starts the device when the channel starts.)
stop_input_deviceexecinput_device_id, regionStop an input device that is attached to a MediaConnect flow. (There is no need to stop a device that is attached to a MediaLive input; MediaLive automatically stops the device when the channel stops.)

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
input_device_idstringThe unique ID of the input device to stop. For example, hd-123456789abcdef.
input_idstringUnique ID of the input
regionstringAWS region (default: us-east-1)
maxResultsinteger
nextTokenstring

SELECT examples

Produces details about an input

SELECT
arn,
attached_channels,
destinations,
id,
input_class,
input_devices,
input_network_location,
input_partner_ids,
input_source_type,
media_connect_flows,
multicast_settings,
name,
role_arn,
router_settings,
sdi_sources,
security_groups,
smpte_2110_receiver_group_settings,
sources,
srt_settings,
state,
tags,
type
FROM aws.medialive.inputs
WHERE input_id = '{{ input_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a partner input

INSERT INTO aws.medialive.inputs (
RequestId,
Tags,
input_id,
region
)
SELECT
'{{ RequestId }}',
'{{ Tags }}',
'{{ input_id }}',
'{{ region }}'
RETURNING
input
;

UPDATE examples

Updates an input.

UPDATE aws.medialive.inputs
SET
Destinations = '{{ Destinations }}',
InputDevices = '{{ InputDevices }}',
InputSecurityGroups = '{{ InputSecurityGroups }}',
MediaConnectFlows = '{{ MediaConnectFlows }}',
Name = '{{ Name }}',
RoleArn = '{{ RoleArn }}',
Sources = '{{ Sources }}',
SrtSettings = '{{ SrtSettings }}',
MulticastSettings = '{{ MulticastSettings }}',
Smpte2110ReceiverGroupSettings = '{{ Smpte2110ReceiverGroupSettings }}',
SdiSources = '{{ SdiSources }}',
SpecialRouterSettings = '{{ SpecialRouterSettings }}'
WHERE
input_id = '{{ input_id }}' --required
AND region = '{{ region }}' --required
RETURNING
input;

DELETE examples

Deletes the input end point

DELETE FROM aws.medialive.inputs
WHERE input_id = '{{ input_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Send a reboot command to the specified input device. The device will begin rebooting within a few seconds of sending the command. When the reboot is complete, the device’s connection status will change to connected.

EXEC aws.medialive.inputs.reboot_input_device
@input_device_id='{{ input_device_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"Force": "{{ Force }}"
}'
;