AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.medialive.getInput
Explore with Pulumi AI
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)
public static Output<GetInputResult> getInput(GetInputArgs args, InvokeOptions options)
fn::invoke:
  function: aws:medialive/getInput:getInput
  arguments:
    # arguments dictionaryThe 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<GetInput Destination> 
- Id string
- InputClass string
- The input class.
- InputDevices List<GetInput Input Device> 
- Settings for the devices.
- InputPartner List<string>Ids 
- A list of IDs for all Inputs which are partners of this one.
- InputSource stringType 
- Source type of the input.
- MediaConnect List<GetFlows Input Media Connect Flow> 
- 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<GetInput Source> 
- The source URLs for a PULL-type input.
- State string
- The state of the input.
- 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
[]GetInput Destination 
- Id string
- InputClass string
- The input class.
- InputDevices []GetInput Input Device 
- Settings for the devices.
- InputPartner []stringIds 
- A list of IDs for all Inputs which are partners of this one.
- InputSource stringType 
- Source type of the input.
- MediaConnect []GetFlows Input Media Connect Flow 
- 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
[]GetInput Source 
- The source URLs for a PULL-type input.
- State string
- The state of the input.
- 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<GetInput Destination> 
- id String
- inputClass String
- The input class.
- inputDevices List<GetInput Input Device> 
- Settings for the devices.
- inputPartner List<String>Ids 
- A list of IDs for all Inputs which are partners of this one.
- inputSource StringType 
- Source type of the input.
- mediaConnect List<GetFlows Input Media Connect Flow> 
- 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<GetInput Source> 
- The source URLs for a PULL-type input.
- state String
- The state of the input.
- 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
GetInput Destination[] 
- id string
- inputClass string
- The input class.
- inputDevices GetInput Input Device[] 
- Settings for the devices.
- inputPartner string[]Ids 
- A list of IDs for all Inputs which are partners of this one.
- inputSource stringType 
- Source type of the input.
- mediaConnect GetFlows Input Media Connect Flow[] 
- 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
GetInput Source[] 
- The source URLs for a PULL-type input.
- state string
- The state of the input.
- {[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[GetInput Destination] 
- id str
- input_class str
- The input class.
- input_devices Sequence[GetInput Input Device] 
- Settings for the devices.
- input_partner_ Sequence[str]ids 
- A list of IDs for all Inputs which are partners of this one.
- input_source_ strtype 
- Source type of the input.
- media_connect_ Sequence[Getflows Input Media Connect Flow] 
- 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[GetInput Source] 
- The source URLs for a PULL-type input.
- state str
- The state of the input.
- 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.
- inputPartner List<String>Ids 
- A list of IDs for all Inputs which are partners of this one.
- inputSource StringType 
- Source type of the input.
- mediaConnect List<Property Map>Flows 
- 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.
- 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<GetInput Destination Vpc> 
- Ip string
- Port string
- Url string
- Vpcs
[]GetInput Destination Vpc 
- ip String
- port String
- url String
- vpcs
List<GetInput Destination Vpc> 
- ip string
- port string
- url string
- vpcs
GetInput Destination Vpc[] 
- ip str
- port str
- url str
- vpcs
Sequence[GetInput Destination Vpc] 
- ip String
- port String
- url String
- vpcs List<Property Map>
GetInputDestinationVpc   
- AvailabilityZone string
- NetworkInterface stringId 
- AvailabilityZone string
- NetworkInterface stringId 
- availabilityZone String
- networkInterface StringId 
- availabilityZone string
- networkInterface stringId 
- availabilityZone String
- networkInterface StringId 
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
- flow_arn str
- 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
- password_param str
- url str
- username str
- 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 awsTerraform Provider.