1. Packages
  2. AWS Classic
  3. API Docs
  4. medialive
  5. getInput

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.33.1 published on Thursday, May 2, 2024 by Pulumi

aws.medialive.getInput

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.33.1 published on Thursday, May 2, 2024 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/v6/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.List;
    import java.util.ArrayList;
    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.id())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:medialive:getInput
          Arguments:
            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?: InvokeOptions): Output<GetInputResult>
    def get_input(id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetInputResult
    def get_input_output(id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = 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 CompletableFuture<GetInputResult> getInput(GetInputArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:medialive/getInput:getInput
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getInput Result

    The following output properties are available:

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

    Supporting Types

    GetInputDestination

    Ip string
    Port string
    Url string
    Vpcs List<object>
    Ip string
    Port string
    Url string
    Vpcs []interface{}
    ip String
    port String
    url String
    vpcs List<Object>
    ip string
    port string
    url string
    vpcs any[]
    ip str
    port str
    url str
    vpcs Sequence[Any]
    ip String
    port String
    url String
    vpcs List<Any>

    GetInputInputDevice

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

    GetInputMediaConnectFlow

    FlowArn string
    FlowArn string
    flowArn String
    flowArn string
    flowArn String

    GetInputSource

    PasswordParam string
    Url string
    Username string
    PasswordParam string
    Url string
    Username string
    passwordParam String
    url String
    username String
    passwordParam string
    url string
    username string
    passwordParam String
    url String
    username String

    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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.33.1 published on Thursday, May 2, 2024 by Pulumi