create_input
(**kwargs)¶Create an input
See also: AWS API Documentation
Request Syntax
response = client.create_input(
Destinations=[
{
'StreamName': 'string'
},
],
InputDevices=[
{
'Id': 'string'
},
],
InputSecurityGroups=[
'string',
],
MediaConnectFlows=[
{
'FlowArn': 'string'
},
],
Name='string',
RequestId='string',
RoleArn='string',
Sources=[
{
'PasswordParam': 'string',
'Url': 'string',
'Username': 'string'
},
],
Tags={
'string': 'string'
},
Type='UDP_PUSH'|'RTP_PUSH'|'RTMP_PUSH'|'RTMP_PULL'|'URL_PULL'|'MP4_FILE'|'MEDIACONNECT'|'INPUT_DEVICE'|'AWS_CDI'|'TS_FILE',
Vpc={
'SecurityGroupIds': [
'string',
],
'SubnetIds': [
'string',
]
}
)
Destination settings for PUSH type inputs.
Settings for the devices.
A list of security groups referenced by IDs to attach to the input.
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.
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.
A collection of key-value pairs.
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.
dict
Response Syntax
{
'Input': {
'Arn': 'string',
'AttachedChannels': [
'string',
],
'Destinations': [
{
'Ip': 'string',
'Port': 'string',
'Url': 'string',
'Vpc': {
'AvailabilityZone': 'string',
'NetworkInterfaceId': 'string'
}
},
],
'Id': 'string',
'InputClass': 'STANDARD'|'SINGLE_PIPELINE',
'InputDevices': [
{
'Id': 'string'
},
],
'InputPartnerIds': [
'string',
],
'InputSourceType': 'STATIC'|'DYNAMIC',
'MediaConnectFlows': [
{
'FlowArn': 'string'
},
],
'Name': 'string',
'RoleArn': 'string',
'SecurityGroups': [
'string',
],
'Sources': [
{
'PasswordParam': 'string',
'Url': 'string',
'Username': 'string'
},
],
'State': 'CREATING'|'DETACHED'|'ATTACHED'|'DELETING'|'DELETED',
'Tags': {
'string': 'string'
},
'Type': 'UDP_PUSH'|'RTP_PUSH'|'RTMP_PUSH'|'RTMP_PULL'|'URL_PULL'|'MP4_FILE'|'MEDIACONNECT'|'INPUT_DEVICE'|'AWS_CDI'|'TS_FILE'
}
}
Response Structure
Exceptions
MediaLive.Client.exceptions.BadRequestException
MediaLive.Client.exceptions.InternalServerErrorException
MediaLive.Client.exceptions.ForbiddenException
MediaLive.Client.exceptions.BadGatewayException
MediaLive.Client.exceptions.GatewayTimeoutException
MediaLive.Client.exceptions.TooManyRequestsException