Table Of Contents


User Guide

First time using the AWS CLI? See the User Guide for help getting started.

Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . medialive ]



Create an input

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.


[--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>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]


--destinations (list) Destination settings for PUSH type inputs.

Shorthand Syntax:

StreamName=string ...

JSON Syntax:

    "StreamName": "string"

--input-devices (list) Settings for the devices.

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" "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.

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.

Shorthand Syntax:

PasswordParam=string,Url=string,Username=string ...

JSON Syntax:

    "PasswordParam": "string",
    "Url": "string",
    "Username": "string"

--tags (map) A collection of key-value pairs.

Shorthand Syntax:


JSON Syntax:

{"string": "string"

--type (string) Placeholder documentation for InputType

Possible values:

  • MP4_FILE

--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.

Shorthand Syntax:


JSON Syntax:

  "SecurityGroupIds": ["string", ...],
  "SubnetIds": ["string", ...]

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI 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.

--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. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.


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-jason file://input-hls-pull-news.json

Contents of input-hls-pull-news.json:

    "Name": "local_news",
    "RequestId": "cli000059",
    "Sources": [
                    "Url": "",
                    "Username": "examplecorp",
                    "PasswordParam": "/medialive/examplecorp1"
                    "Url": "",
                    "Username": "examplecorp",
                    "PasswordParam": "examplecorp2"
    "Type": "URL_PULL"


The output repeats back the contents of the JSON file, plus the following values. All parameters are ordered alphabetically.

  • Arn for 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.
  • Id for 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.
  • State of 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.


Input -> (structure)

Placeholder documentation for Input

Arn -> (string)

The Unique ARN of the input (generated, immutable).

AttachedChannels -> (list)

A list of channel IDs that that input is attached to (currently an input can only be attached to one channel).


Placeholder documentation for __string

Destinations -> (list)

A list of the destinations of the input (PUSH-type).


The settings for a PUSH type input.

Ip -> (string)

The system-generated static IP address of endpoint. It remains fixed for the lifetime of the input.

Port -> (string)

The port number for the input.

Url -> (string)

This represents the endpoint that the customer stream will be pushed to.

Vpc -> (structure)

The properties for a VPC type input destination.

AvailabilityZone -> (string)

The availability zone of the Input destination.

NetworkInterfaceId -> (string)

The network interface ID of the Input destination in the VPC.

Id -> (string)

The generated ID of the input (unique for user account, immutable).

InputClass -> (string)

STANDARD - 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.

InputDevices -> (list)

Settings for the input devices.


Settings for an input device.

Id -> (string)

The unique ID for the device.

InputSourceType -> (string)

Certain 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 inputs.

MediaConnectFlows -> (list)

A list of MediaConnect Flows for this input.


The settings for a MediaConnect Flow.

FlowArn -> (string)

The unique ARN of the MediaConnect Flow being used as a source.

Name -> (string)

The user-assigned name (This is a mutable value).

RoleArn -> (string)

The Amazon Resource Name (ARN) of the role this input assumes during and after creation.

SecurityGroups -> (list)

A list of IDs for all the Input Security Groups attached to the input.


Placeholder documentation for __string

Sources -> (list)

A list of the sources of the input (PULL-type).


The settings for a PULL type input.

PasswordParam -> (string)

The key used to extract the password from EC2 Parameter store.

Url -> (string)

This represents the customer's source URL where stream is pulled from.

Username -> (string)

The username for the input source.

State -> (string)

Placeholder documentation for InputState

Tags -> (map)

A collection of key-value pairs.

key -> (string)

Placeholder documentation for __string

value -> (string)

Placeholder documentation for __string

Type -> (string)

Placeholder documentation for InputType