Skip to main content

input_devices

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

Overview

Nameinput_devices
TypeResource
Idaws.medialive.input_devices

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringPlaceholder documentation for __string
availability_zonestringPlaceholder documentation for __string
connection_statestringThe state of the connection between the input device and AWS. (DISCONNECTED, CONNECTED)
device_settings_sync_statestringThe status of the action to synchronize the device configuration. If you change the configuration of the input device (for example, the maximum bitrate), MediaLive sends the new data to the device. The device might not update itself immediately. SYNCED means the device has updated its configuration. SYNCING means that it has not updated its configuration. (SYNCED, SYNCING)
device_update_statusstringThe status of software on the input device. (UP_TO_DATE, NOT_UP_TO_DATE, UPDATING)
hd_device_settingsobjectSettings that describe an input device that is type HD.
idstringPlaceholder documentation for __string
mac_addressstringPlaceholder documentation for __string
medialive_input_arnsarrayPlaceholder documentation for __listOf__string
namestringPlaceholder documentation for __string
network_settingsobjectThe network settings for the input device.
output_typestringThe output attachment type of the input device. Specifies MEDIACONNECT_FLOW if this device is the source for a MediaConnect flow. Specifies MEDIALIVE_INPUT if this device is the source for a MediaLive input. (NONE, MEDIALIVE_INPUT, MEDIACONNECT_FLOW)
serial_numberstringPlaceholder documentation for __string
tagsobjectA collection of key-value pairs.
typestringThe type of the input device. (HD, UHD)
uhd_device_settingsobjectSettings that describe an input device that is type UHD.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_input_deviceselectinput_device_id, regionGets the details for the input device
list_input_devicesselectregionmaxResults, nextTokenList input devices
update_input_deviceupdateinput_device_id, regionUpdates the parameters for the input device.
accept_input_device_transferexecinput_device_id, regionAccept an incoming input device transfer. The ownership of the device will transfer to your AWS account.
cancel_input_device_transferexecinput_device_id, regionCancel an input device transfer that you have requested.
reject_input_device_transferexecinput_device_id, regionReject the transfer of the specified input device to your AWS account.
start_input_device_maintenance_windowexecinput_device_id, regionStart a maintenance window for the specified input device. Starting a maintenance window will give the device up to two hours to install software. If the device was streaming prior to the maintenance, it will resume streaming when the software is fully installed. Devices automatically install updates while they are powered on and their MediaLive channels are stopped. A maintenance window allows you to update a device without having to stop MediaLive channels that use the device. The device must remain powered on and connected to the internet for the duration of the maintenance.
transfer_input_deviceexecinput_device_id, regionStart an input device transfer to another AWS account. After you make the request, the other account must accept or reject the transfer.

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 this input device. For example, hd-123456789abcdef.
regionstringAWS region (default: us-east-1)
maxResultsinteger
nextTokenstring

SELECT examples

Gets the details for the input device

SELECT
arn,
availability_zone,
connection_state,
device_settings_sync_state,
device_update_status,
hd_device_settings,
id,
mac_address,
medialive_input_arns,
name,
network_settings,
output_type,
serial_number,
tags,
type,
uhd_device_settings
FROM aws.medialive.input_devices
WHERE input_device_id = '{{ input_device_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates the parameters for the input device.

UPDATE aws.medialive.input_devices
SET
HdDeviceSettings = '{{ HdDeviceSettings }}',
Name = '{{ Name }}',
UhdDeviceSettings = '{{ UhdDeviceSettings }}',
AvailabilityZone = '{{ AvailabilityZone }}'
WHERE
input_device_id = '{{ input_device_id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
availability_zone,
connection_state,
device_settings_sync_state,
device_update_status,
hd_device_settings,
id,
mac_address,
medialive_input_arns,
name,
network_settings,
output_type,
serial_number,
tags,
type,
uhd_device_settings;

Lifecycle Methods

Accept an incoming input device transfer. The ownership of the device will transfer to your AWS account.

EXEC aws.medialive.input_devices.accept_input_device_transfer
@input_device_id='{{ input_device_id }}' --required,
@region='{{ region }}' --required
;