1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. medialive
  6. getInput
Viewing docs for AWS v7.54.0
published on Friday, Nov 6, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.54.0
published on Friday, Nov 6, 2026 by Pulumi

    Data source for managing an AWS Elemental MediaLive Input.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.medialive.getInput({
        id: exampleAwsMedialiveInput.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.medialive.get_input(id=example_aws_medialive_input["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/medialive"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := medialive.LookupInput(ctx, &medialive.LookupInputArgs{
    			Id: exampleAwsMedialiveInput.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.MediaLive.GetInput.Invoke(new()
        {
            Id = exampleAwsMedialiveInput.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.medialive.MedialiveFunctions;
    import com.pulumi.aws.medialive.inputs.GetInputArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = MedialiveFunctions.getInput(GetInputArgs.builder()
                .id(exampleAwsMedialiveInput.get("id"))
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:medialive:getInput
          arguments:
            id: ${exampleAwsMedialiveInput.id}
    
    terraform {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_medialive_input" "example" {
      id = exampleAwsMedialiveInput.id
    }
    

    Using getInput

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getInput(args: GetInputArgs, opts?: InvokeOptions): Promise<GetInputResult>
    function getInputOutput(args: GetInputOutputArgs, opts?: InvokeOutputOptions): Output<GetInputResult>
    def get_input(id: Optional[str] = None,
                  region: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetInputResult
    def get_input_output(id: pulumi.Input[Optional[str]] = None,
                  region: pulumi.Input[Optional[str]] = None,
                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetInputResult]
    func LookupInput(ctx *Context, args *LookupInputArgs, opts ...InvokeOption) (*LookupInputResult, error)
    func LookupInputOutput(ctx *Context, args *LookupInputOutputArgs, opts ...InvokeOption) LookupInputResultOutput

    > Note: This function is named LookupInput in the Go SDK.

    public static class GetInput 
    {
        public static Task<GetInputResult> InvokeAsync(GetInputArgs args, InvokeOptions? opts = null)
        public static Output<GetInputResult> Invoke(GetInputInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetInputResult> Invoke(GetInputInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetInputResult> getInput(GetInputArgs args, InvokeOptions options)
    public static Output<GetInputResult> getInput(GetInputArgs args, InvokeOptions options)
    public static Output<GetInputResult> getInput(GetInputArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws:medialive/getInput:getInput
      arguments:
        # arguments dictionary
    data "aws_medialive_get_input" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    ID of the Input.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Id string
    ID of the Input.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    id string
    ID of the Input.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    id String
    ID of the Input.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    id string
    ID of the Input.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    id str
    ID of the Input.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    id String
    ID of the Input.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    getInput Result

    The following output properties are available:

    Arn string
    ARN of the Input.
    AttachedChannels List<string>
    Channels attached to Input.
    Destinations List<GetInputDestination>
    Destination settings for PUSH type inputs. See destinations Block for more details.
    Id string
    ID of the device.
    InputClass string
    Input class.
    InputDevices List<GetInputInputDevice>
    Settings for the devices. See inputDevices Block for more details.
    InputPartnerIds List<string>
    IDs for all Inputs which are partners of this one.
    InputSourceType string
    Source type of the input.
    MediaConnectFlows List<GetInputMediaConnectFlow>
    MediaConnect Flows. See mediaConnectFlows Block for more details.
    Name string
    Name of the input.
    Region string
    RoleArn string
    ARN of the role this input assumes during and after creation.
    SecurityGroups List<string>
    List of input security groups.
    Sources List<GetInputSource>
    Source URLs for a PULL-type input. See sources Block for more details.
    State string
    State of the input.
    Tags Dictionary<string, string>
    Map of tags assigned to the Input.
    Type string
    Type of the input.
    Arn string
    ARN of the Input.
    AttachedChannels []string
    Channels attached to Input.
    Destinations []GetInputDestination
    Destination settings for PUSH type inputs. See destinations Block for more details.
    Id string
    ID of the device.
    InputClass string
    Input class.
    InputDevices []GetInputInputDevice
    Settings for the devices. See inputDevices Block for more details.
    InputPartnerIds []string
    IDs for all Inputs which are partners of this one.
    InputSourceType string
    Source type of the input.
    MediaConnectFlows []GetInputMediaConnectFlow
    MediaConnect Flows. See mediaConnectFlows Block for more details.
    Name string
    Name of the input.
    Region string
    RoleArn string
    ARN of the role this input assumes during and after creation.
    SecurityGroups []string
    List of input security groups.
    Sources []GetInputSource
    Source URLs for a PULL-type input. See sources Block for more details.
    State string
    State of the input.
    Tags map[string]string
    Map of tags assigned to the Input.
    Type string
    Type of the input.
    arn string
    ARN of the Input.
    attached_channels list(string)
    Channels attached to Input.
    destinations list(object)
    Destination settings for PUSH type inputs. See destinations Block for more details.
    id string
    ID of the device.
    input_class string
    Input class.
    input_devices list(object)
    Settings for the devices. See inputDevices Block for more details.
    input_partner_ids list(string)
    IDs for all Inputs which are partners of this one.
    input_source_type string
    Source type of the input.
    media_connect_flows list(object)
    MediaConnect Flows. See mediaConnectFlows Block for more details.
    name string
    Name of the input.
    region string
    role_arn string
    ARN of the role this input assumes during and after creation.
    security_groups list(string)
    List of input security groups.
    sources list(object)
    Source URLs for a PULL-type input. See sources Block for more details.
    state string
    State of the input.
    tags map(string)
    Map of tags assigned to the Input.
    type string
    Type of the input.
    arn String
    ARN of the Input.
    attachedChannels List<String>
    Channels attached to Input.
    destinations List<GetInputDestination>
    Destination settings for PUSH type inputs. See destinations Block for more details.
    id String
    ID of the device.
    inputClass String
    Input class.
    inputDevices List<GetInputInputDevice>
    Settings for the devices. See inputDevices Block for more details.
    inputPartnerIds List<String>
    IDs for all Inputs which are partners of this one.
    inputSourceType String
    Source type of the input.
    mediaConnectFlows List<GetInputMediaConnectFlow>
    MediaConnect Flows. See mediaConnectFlows Block for more details.
    name String
    Name of the input.
    region String
    roleArn String
    ARN of the role this input assumes during and after creation.
    securityGroups List<String>
    List of input security groups.
    sources List<GetInputSource>
    Source URLs for a PULL-type input. See sources Block for more details.
    state String
    State of the input.
    tags Map<String,String>
    Map of tags assigned to the Input.
    type String
    Type of the input.
    arn string
    ARN of the Input.
    attachedChannels string[]
    Channels attached to Input.
    destinations GetInputDestination[]
    Destination settings for PUSH type inputs. See destinations Block for more details.
    id string
    ID of the device.
    inputClass string
    Input class.
    inputDevices GetInputInputDevice[]
    Settings for the devices. See inputDevices Block for more details.
    inputPartnerIds string[]
    IDs for all Inputs which are partners of this one.
    inputSourceType string
    Source type of the input.
    mediaConnectFlows GetInputMediaConnectFlow[]
    MediaConnect Flows. See mediaConnectFlows Block for more details.
    name string
    Name of the input.
    region string
    roleArn string
    ARN of the role this input assumes during and after creation.
    securityGroups string[]
    List of input security groups.
    sources GetInputSource[]
    Source URLs for a PULL-type input. See sources Block for more details.
    state string
    State of the input.
    tags {[key: string]: string}
    Map of tags assigned to the Input.
    type string
    Type of the input.
    arn str
    ARN of the Input.
    attached_channels Sequence[str]
    Channels attached to Input.
    destinations Sequence[GetInputDestination]
    Destination settings for PUSH type inputs. See destinations Block for more details.
    id str
    ID of the device.
    input_class str
    Input class.
    input_devices Sequence[GetInputInputDevice]
    Settings for the devices. See inputDevices Block for more details.
    input_partner_ids Sequence[str]
    IDs for all Inputs which are partners of this one.
    input_source_type str
    Source type of the input.
    media_connect_flows Sequence[GetInputMediaConnectFlow]
    MediaConnect Flows. See mediaConnectFlows Block for more details.
    name str
    Name of the input.
    region str
    role_arn str
    ARN of the role this input assumes during and after creation.
    security_groups Sequence[str]
    List of input security groups.
    sources Sequence[GetInputSource]
    Source URLs for a PULL-type input. See sources Block for more details.
    state str
    State of the input.
    tags Mapping[str, str]
    Map of tags assigned to the Input.
    type str
    Type of the input.
    arn String
    ARN of the Input.
    attachedChannels List<String>
    Channels attached to Input.
    destinations List<Property Map>
    Destination settings for PUSH type inputs. See destinations Block for more details.
    id String
    ID of the device.
    inputClass String
    Input class.
    inputDevices List<Property Map>
    Settings for the devices. See inputDevices Block for more details.
    inputPartnerIds List<String>
    IDs for all Inputs which are partners of this one.
    inputSourceType String
    Source type of the input.
    mediaConnectFlows List<Property Map>
    MediaConnect Flows. See mediaConnectFlows Block for more details.
    name String
    Name of the input.
    region String
    roleArn String
    ARN of the role this input assumes during and after creation.
    securityGroups List<String>
    List of input security groups.
    sources List<Property Map>
    Source URLs for a PULL-type input. See sources Block for more details.
    state String
    State of the input.
    tags Map<String>
    Map of tags assigned to the Input.
    type String
    Type of the input.

    Supporting Types

    GetInputDestination

    Ip string
    IP address.
    Port string
    Port.
    Url string
    URL where the stream is pulled from.
    Vpcs List<GetInputDestinationVpc>
    VPC settings. See destinations.vpc Block for more details.
    Ip string
    IP address.
    Port string
    Port.
    Url string
    URL where the stream is pulled from.
    Vpcs []GetInputDestinationVpc
    VPC settings. See destinations.vpc Block for more details.
    ip string
    IP address.
    port string
    Port.
    url string
    URL where the stream is pulled from.
    vpcs list(object)
    VPC settings. See destinations.vpc Block for more details.
    ip String
    IP address.
    port String
    Port.
    url String
    URL where the stream is pulled from.
    vpcs List<GetInputDestinationVpc>
    VPC settings. See destinations.vpc Block for more details.
    ip string
    IP address.
    port string
    Port.
    url string
    URL where the stream is pulled from.
    vpcs GetInputDestinationVpc[]
    VPC settings. See destinations.vpc Block for more details.
    ip str
    IP address.
    port str
    Port.
    url str
    URL where the stream is pulled from.
    vpcs Sequence[GetInputDestinationVpc]
    VPC settings. See destinations.vpc Block for more details.
    ip String
    IP address.
    port String
    Port.
    url String
    URL where the stream is pulled from.
    vpcs List<Property Map>
    VPC settings. See destinations.vpc Block for more details.

    GetInputDestinationVpc

    AvailabilityZone string
    Availability Zone.
    NetworkInterfaceId string
    Network interface ID.
    AvailabilityZone string
    Availability Zone.
    NetworkInterfaceId string
    Network interface ID.
    availability_zone string
    Availability Zone.
    network_interface_id string
    Network interface ID.
    availabilityZone String
    Availability Zone.
    networkInterfaceId String
    Network interface ID.
    availabilityZone string
    Availability Zone.
    networkInterfaceId string
    Network interface ID.
    availability_zone str
    Availability Zone.
    network_interface_id str
    Network interface ID.
    availabilityZone String
    Availability Zone.
    networkInterfaceId String
    Network interface ID.

    GetInputInputDevice

    Id string
    ID of the Input.
    Id string
    ID of the Input.
    id string
    ID of the Input.
    id String
    ID of the Input.
    id string
    ID of the Input.
    id str
    ID of the Input.
    id String
    ID of the Input.

    GetInputMediaConnectFlow

    FlowArn string
    ARN of the MediaConnect Flow.
    FlowArn string
    ARN of the MediaConnect Flow.
    flow_arn string
    ARN of the MediaConnect Flow.
    flowArn String
    ARN of the MediaConnect Flow.
    flowArn string
    ARN of the MediaConnect Flow.
    flow_arn str
    ARN of the MediaConnect Flow.
    flowArn String
    ARN of the MediaConnect Flow.

    GetInputSource

    PasswordParam string
    Key used to extract the password from EC2 Parameter store.
    Url string
    URL where the stream is pulled from.
    Username string
    Username for the input source.
    PasswordParam string
    Key used to extract the password from EC2 Parameter store.
    Url string
    URL where the stream is pulled from.
    Username string
    Username for the input source.
    password_param string
    Key used to extract the password from EC2 Parameter store.
    url string
    URL where the stream is pulled from.
    username string
    Username for the input source.
    passwordParam String
    Key used to extract the password from EC2 Parameter store.
    url String
    URL where the stream is pulled from.
    username String
    Username for the input source.
    passwordParam string
    Key used to extract the password from EC2 Parameter store.
    url string
    URL where the stream is pulled from.
    username string
    Username for the input source.
    password_param str
    Key used to extract the password from EC2 Parameter store.
    url str
    URL where the stream is pulled from.
    username str
    Username for the input source.
    passwordParam String
    Key used to extract the password from EC2 Parameter store.
    url String
    URL where the stream is pulled from.
    username String
    Username for the input source.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.54.0
    published on Friday, Nov 6, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial