create-input
Description
Create an input
See also: AWS API Documentation
Synopsis
create-input
[--destinations <value>]
[--input-devices <value>]
[--input-security-groups <value>]
[--media-connect-flows <value>]
[--name <value>]
[--request-id <value>]
[--role-arn <value>]
[--sources <value>]
[--tags <value>]
[--type <value>]
[--vpc <value>]
[--srt-settings <value>]
[--input-network-location <value>]
[--multicast-settings <value>]
[--smpte2110-receiver-group-settings <value>]
[--sdi-sources <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
Options
--destinations (list) Destination settings for PUSH type inputs.(structure)
Endpoint settings for a PUSH type input.
StreamName -> (string)
Network -> (string)
NetworkRoutes -> (list)
If the push input has an input location of ON-PREM it’s a requirement to specify what the route of the input is going to be on the customer local network.
(structure)
A network route configuration.
Cidr -> (string)
Gateway -> (string)
StaticIpAddress -> (string)
Shorthand Syntax:
StreamName=string,Network=string,NetworkRoutes=[{Cidr=string,Gateway=string},{Cidr=string,Gateway=string}],StaticIpAddress=string ...
JSON Syntax:
[
{
"StreamName": "string",
"Network": "string",
"NetworkRoutes": [
{
"Cidr": "string",
"Gateway": "string"
}
...
],
"StaticIpAddress": "string"
}
...
]
--input-devices (list) Settings for the devices.(structure)
Settings for an input device.
Id -> (string)
Shorthand Syntax:
Id=string ...
JSON Syntax:
[
{
"Id": "string"
}
...
]
--input-security-groups (list) A list of security groups referenced by IDs to attach to the input.(string)
Syntax:
"string" "string" ...
--media-connect-flows (list) A list of the MediaConnect Flows that you want to use in this input. You can specify as few as one Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is in a separate Availability Zone as this ensures your EML input is redundant to AZ issues.(structure)
The settings for a MediaConnect Flow.
FlowArn -> (string)
Shorthand Syntax:
FlowArn=string ...
JSON Syntax:
[
{
"FlowArn": "string"
}
...
]
--name (string) Name of the input.
--request-id (string) Unique identifier of the request to ensure the request is handled exactly once in case of retries.
--role-arn (string) The Amazon Resource Name (ARN) of the role this input assumes during and after creation.
--sources (list) The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. Only specify sources for PULL type Inputs. Leave Destinations empty.(structure)
Settings for for a PULL type input.
PasswordParam -> (string)
Url -> (string)
Username -> (string)
Shorthand Syntax:
PasswordParam=string,Url=string,Username=string ...
JSON Syntax:
[
{
"PasswordParam": "string",
"Url": "string",
"Username": "string"
}
...
]
--tags (map) A collection of key-value pairs.key -> (string)
value -> (string)
Shorthand Syntax:
KeyName1=string,KeyName2=string
JSON Syntax:
{"string": "string"
...}
--type (string) The different types of inputs that AWS Elemental MediaLive supports.
Possible values:
UDP_PUSHRTP_PUSHRTMP_PUSHRTMP_PULLURL_PULLMP4_FILEMEDIACONNECTINPUT_DEVICEAWS_CDITS_FILESRT_CALLERMULTICASTSMPTE_2110_RECEIVER_GROUPSDI
--vpc (structure) Settings for a private VPC Input. When this property is specified, the input destination addresses will be created in a VPC rather than with public Internet addresses. This property requires setting the roleArn property on Input creation. Not compatible with the inputSecurityGroups property.SecurityGroupIds -> (list)
A list of up to 5 EC2 VPC security group IDs to attach to the Input VPC network interfaces. Requires subnetIds. If none are specified then the VPC default security group will be used.
(string)
SubnetIds -> (list)
A list of 2 VPC subnet IDs from the same VPC. Subnet IDs must be mapped to two unique availability zones (AZ).
(string)
Shorthand Syntax:
SecurityGroupIds=string,string,SubnetIds=string,string
JSON Syntax:
{
"SecurityGroupIds": ["string", ...],
"SubnetIds": ["string", ...]
}
--srt-settings (structure) The settings associated with an SRT input.SrtCallerSources -> (list)
Placeholder documentation for __listOfSrtCallerSourceRequest
(structure)
Configures the connection for a source that uses SRT as the connection protocol. In terms of establishing the connection, MediaLive is always the caller and the upstream system is always the listener. In terms of transmission of the source content, MediaLive is always the receiver and the upstream system is always the sender.
Decryption -> (structure)
Complete these parameters only if the content is encrypted.
Algorithm -> (string)
PassphraseSecretArn -> (string)
MinimumLatency -> (integer)
SrtListenerAddress -> (string)
SrtListenerPort -> (string)
StreamId -> (string)
JSON Syntax:
{
"SrtCallerSources": [
{
"Decryption": {
"Algorithm": "AES128"|"AES192"|"AES256",
"PassphraseSecretArn": "string"
},
"MinimumLatency": integer,
"SrtListenerAddress": "string",
"SrtListenerPort": "string",
"StreamId": "string"
}
...
]
}
--input-network-location (string) The location of this input. AWS, for an input existing in the AWS Cloud, On-Prem for an input in a customer network.
Possible values:
AWSON_PREMISES
--multicast-settings (structure) Multicast Input settings.Sources -> (list)
Placeholder documentation for __listOfMulticastSourceCreateRequest
(structure)
Pair of multicast url and source ip address (optional) that make up a multicast source.
SourceIp -> (string)
Url -> (string)
Shorthand Syntax:
Sources=[{SourceIp=string,Url=string},{SourceIp=string,Url=string}]
JSON Syntax:
{
"Sources": [
{
"SourceIp": "string",
"Url": "string"
}
...
]
}
--smpte2110-receiver-group-settings (structure) Include this parameter if the input is a SMPTE 2110 input, to identify the stream sources for this input.Smpte2110ReceiverGroups -> (list)
Placeholder documentation for __listOfSmpte2110ReceiverGroup
(structure)
A receiver group is a collection of video, audio, and ancillary streams that you want to group together and attach to one input.
SdpSettings -> (structure)
The single Smpte2110ReceiverGroupSdpSettings that identify the video, audio, and ancillary streams for this receiver group.
AncillarySdps -> (list)
A list of InputSdpLocations. Each item in the list specifies the SDP file and index for one ancillary SMPTE 2110 stream. Each stream encapsulates one captions stream (out of any number you can include) or the single SCTE 35 stream that you can include.
(structure)
The location of the SDP file for one of the SMPTE 2110 streams in a receiver group.
MediaIndex -> (integer)
SdpUrl -> (string)
AudioSdps -> (list)
A list of InputSdpLocations. Each item in the list specifies the SDP file and index for one audio SMPTE 2110 stream.
(structure)
The location of the SDP file for one of the SMPTE 2110 streams in a receiver group.
MediaIndex -> (integer)
SdpUrl -> (string)
VideoSdp -> (structure)
The InputSdpLocation that specifies the SDP file and index for the single video SMPTE 2110 stream for this 2110 input.
MediaIndex -> (integer)
SdpUrl -> (string)
JSON Syntax:
{
"Smpte2110ReceiverGroups": [
{
"SdpSettings": {
"AncillarySdps": [
{
"MediaIndex": integer,
"SdpUrl": "string"
}
...
],
"AudioSdps": [
{
"MediaIndex": integer,
"SdpUrl": "string"
}
...
],
"VideoSdp": {
"MediaIndex": integer,
"SdpUrl": "string"
}
}
}
...
]
}
--sdi-sources (list) SDI Sources for this Input.(string)
Syntax:
"string" "string" ...
--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.
--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
Global Options
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
- json
- text
- table
- yaml
- yaml-stream
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
- on
- off
- auto
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format (string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.
- base64
- raw-in-base64-out
--no-cli-pager (boolean)
Disable cli pager for output.
--cli-auto-prompt (boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt (boolean)
Disable automatically prompt for CLI input parameters.
Examples
Note
To use the following examples, you must have the AWS CLI installed and configured. See the Getting started guide in the AWS CLI User Guide for more information.
Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal’s quoting rules. See Using quotation marks with strings in the AWS CLI User Guide .
To create an input
The following create-input example creates an HLS PULL input by passing in a JSON file that contains the parameters that apply to this type of input. The JSON for this example input specifies two sources (addresses) to the input, in order to support redundancy in the ingest. These addresses require passwords.
aws medialive create-input \
--cli-input-json file://input-hls-pull-news.json
Contents of input-hls-pull-news.json:
{
"Name": "local_news",
"RequestId": "cli000059",
"Sources": [
{
"Url": "https://203.0.113.13/newschannel/anytownusa.m3u8",
"Username": "examplecorp",
"PasswordParam": "/medialive/examplecorp1"
},
{
"Url": "https://198.51.100.54/fillervideos/oceanwaves.mp4",
"Username": "examplecorp",
"PasswordParam": "examplecorp2"
}
],
"Type": "URL_PULL"
}
Output:
The output repeats back the contents of the JSON file, plus the following values. All parameters are ordered alphabetically.
-
Arnfor the input. The last part of the ARN is the unique input ID. -
Attached Channels, which is always empty for a newly created input. -
Destinations, which is empty in this example because it is used only with a PUSH input. -
Idfor the input, the same as the ID in the ARN. -
MediaConnectFlows, which is empty in this example because it is used only with an input of type MediaConnect. -
SecurityGroups, which is empty in this example because it is used only with a PUSH input. -
Stateof this input. -
Tags, which is empty (the default for this parameter).
For more information, see Creating an Input in the AWS Elemental MediaLive User Guide.
Output
Input -> (structure)
Placeholder documentation for Input
Arn -> (string)
AttachedChannels -> (list)
A list of channel IDs that that input is attached to (currently an input can only be attached to one channel).
(string)
Destinations -> (list)
A list of the destinations of the input (PUSH-type).
(structure)
The settings for a PUSH type input.
Ip -> (string)
Port -> (string)
Url -> (string)
Vpc -> (structure)
The properties for a VPC type input destination.
AvailabilityZone -> (string)
NetworkInterfaceId -> (string)
Network -> (string)
NetworkRoutes -> (list)
If the push input has an input location of ON-PREM it’s a requirement to specify what the route of the input is going to be on the customer local network.
(structure)
A network route configuration.
Cidr -> (string)
Gateway -> (string)
Id -> (string)
InputClass -> (string)
InputDevices -> (list)
Settings for the input devices.
(structure)
Settings for an input device.
Id -> (string)
InputPartnerIds -> (list)
A list of IDs for all Inputs which are partners of this one.
(string)
InputSourceType -> (string)
MediaConnectFlows -> (list)
A list of MediaConnect Flows for this input.
(structure)
The settings for a MediaConnect Flow.
FlowArn -> (string)
Name -> (string)
RoleArn -> (string)
SecurityGroups -> (list)
A list of IDs for all the Input Security Groups attached to the input.
(string)
Sources -> (list)
A list of the sources of the input (PULL-type).
(structure)
The settings for a PULL type input.
PasswordParam -> (string)
Url -> (string)
Username -> (string)
State -> (string)
Tags -> (map)
A collection of key-value pairs.
key -> (string)
value -> (string)
Type -> (string)
SrtSettings -> (structure)
The settings associated with an SRT input.
SrtCallerSources -> (list)
Placeholder documentation for __listOfSrtCallerSource
(structure)
The configuration for a source that uses SRT as the connection protocol. In terms of establishing the connection, MediaLive is always caller and the upstream system is always the listener. In terms of transmission of the source content, MediaLive is always the receiver and the upstream system is always the sender.
Decryption -> (structure)
The decryption settings for the SRT caller source. Present only if the source has decryption enabled.
Algorithm -> (string)
PassphraseSecretArn -> (string)
MinimumLatency -> (integer)
SrtListenerAddress -> (string)
SrtListenerPort -> (string)
StreamId -> (string)
InputNetworkLocation -> (string)
MulticastSettings -> (structure)
Multicast Input settings.
Sources -> (list)
Placeholder documentation for __listOfMulticastSource
(structure)
Pair of multicast url and source ip address (optional) that make up a multicast source.
SourceIp -> (string)
Url -> (string)
Smpte2110ReceiverGroupSettings -> (structure)
Include this parameter if the input is a SMPTE 2110 input, to identify the stream sources for this input.
Smpte2110ReceiverGroups -> (list)
Placeholder documentation for __listOfSmpte2110ReceiverGroup
(structure)
A receiver group is a collection of video, audio, and ancillary streams that you want to group together and attach to one input.
SdpSettings -> (structure)
The single Smpte2110ReceiverGroupSdpSettings that identify the video, audio, and ancillary streams for this receiver group.
AncillarySdps -> (list)
A list of InputSdpLocations. Each item in the list specifies the SDP file and index for one ancillary SMPTE 2110 stream. Each stream encapsulates one captions stream (out of any number you can include) or the single SCTE 35 stream that you can include.
(structure)
The location of the SDP file for one of the SMPTE 2110 streams in a receiver group.
MediaIndex -> (integer)
SdpUrl -> (string)
AudioSdps -> (list)
A list of InputSdpLocations. Each item in the list specifies the SDP file and index for one audio SMPTE 2110 stream.
(structure)
The location of the SDP file for one of the SMPTE 2110 streams in a receiver group.
MediaIndex -> (integer)
SdpUrl -> (string)
VideoSdp -> (structure)
The InputSdpLocation that specifies the SDP file and index for the single video SMPTE 2110 stream for this 2110 input.
MediaIndex -> (integer)
SdpUrl -> (string)
SdiSources -> (list)
SDI Sources for this Input.
(string)
© Copyright 2025, Amazon Web Services. Created using Sphinx.