InputArgs

data class InputArgs(val destinations: Output<List<InputDestinationArgs>>? = null, val inputDevices: Output<List<InputInputDeviceArgs>>? = null, val inputSecurityGroups: Output<List<String>>? = null, val mediaConnectFlows: Output<List<InputMediaConnectFlowArgs>>? = null, val name: Output<String>? = null, val roleArn: Output<String>? = null, val sources: Output<List<InputSourceArgs>>? = null, val tags: Output<Map<String, String>>? = null, val type: Output<String>? = null, val vpc: Output<InputVpcArgs>? = null) : ConvertibleToJava<InputArgs>

Resource for managing an AWS MediaLive Input.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.medialive.InputSecurityGroup("example", {
whitelistRules: [{
cidr: "10.0.0.8/32",
}],
tags: {
ENVIRONMENT: "prod",
},
});
const exampleInput = new aws.medialive.Input("example", {
name: "example-input",
inputSecurityGroups: [example&#46;id],
type: "UDP_PUSH",
tags: {
ENVIRONMENT: "prod",
},
});
import pulumi
import pulumi_aws as aws
example = aws.medialive.InputSecurityGroup("example",
whitelist_rules=[{
"cidr": "10.0.0.8/32",
}],
tags={
"ENVIRONMENT": "prod",
})
example_input = aws.medialive.Input("example",
name="example-input",
input_security_groups=[example&#46;id],
type="UDP_PUSH",
tags={
"ENVIRONMENT": "prod",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.MediaLive.InputSecurityGroup("example", new()
{
WhitelistRules = new[]
{
new Aws.MediaLive.Inputs.InputSecurityGroupWhitelistRuleArgs
{
Cidr = "10.0.0.8/32",
},
},
Tags =
{
{ "ENVIRONMENT", "prod" },
},
});
var exampleInput = new Aws.MediaLive.Input("example", new()
{
Name = "example-input",
InputSecurityGroups = new[]
{
example.Id,
},
Type = "UDP_PUSH",
Tags =
{
{ "ENVIRONMENT", "prod" },
},
});
});
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 {
example, err := medialive.NewInputSecurityGroup(ctx, "example", &medialive.InputSecurityGroupArgs{
WhitelistRules: medialive.InputSecurityGroupWhitelistRuleArray{
&medialive.InputSecurityGroupWhitelistRuleArgs{
Cidr: pulumi.String("10.0.0.8/32"),
},
},
Tags: pulumi.StringMap{
"ENVIRONMENT": pulumi.String("prod"),
},
})
if err != nil {
return err
}
_, err = medialive.NewInput(ctx, "example", &medialive.InputArgs{
Name: pulumi.String("example-input"),
InputSecurityGroups: pulumi.StringArray{
example.ID(),
},
Type: pulumi.String("UDP_PUSH"),
Tags: pulumi.StringMap{
"ENVIRONMENT": pulumi.String("prod"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.medialive.InputSecurityGroup;
import com.pulumi.aws.medialive.InputSecurityGroupArgs;
import com.pulumi.aws.medialive.inputs.InputSecurityGroupWhitelistRuleArgs;
import com.pulumi.aws.medialive.Input;
import com.pulumi.aws.medialive.InputArgs;
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) {
var example = new InputSecurityGroup("example", InputSecurityGroupArgs.builder()
.whitelistRules(InputSecurityGroupWhitelistRuleArgs.builder()
.cidr("10.0.0.8/32")
.build())
.tags(Map.of("ENVIRONMENT", "prod"))
.build());
var exampleInput = new Input("exampleInput", InputArgs.builder()
.name("example-input")
.inputSecurityGroups(example.id())
.type("UDP_PUSH")
.tags(Map.of("ENVIRONMENT", "prod"))
.build());
}
}
resources:
example:
type: aws:medialive:InputSecurityGroup
properties:
whitelistRules:
- cidr: 10.0.0.8/32
tags:
ENVIRONMENT: prod
exampleInput:
type: aws:medialive:Input
name: example
properties:
name: example-input
inputSecurityGroups:
- ${example.id}
type: UDP_PUSH
tags:
ENVIRONMENT: prod

Import

Using pulumi import, import MediaLive Input using the id. For example:

$ pulumi import aws:medialive/input:Input example 12345678

Constructors

Link copied to clipboard
constructor(destinations: Output<List<InputDestinationArgs>>? = null, inputDevices: Output<List<InputInputDeviceArgs>>? = null, inputSecurityGroups: Output<List<String>>? = null, mediaConnectFlows: Output<List<InputMediaConnectFlowArgs>>? = null, name: Output<String>? = null, roleArn: Output<String>? = null, sources: Output<List<InputSourceArgs>>? = null, tags: Output<Map<String, String>>? = null, type: Output<String>? = null, vpc: Output<InputVpcArgs>? = null)

Properties

Link copied to clipboard
val destinations: Output<List<InputDestinationArgs>>? = null

Destination settings for PUSH type inputs. See Destinations for more details.

Link copied to clipboard
val inputDevices: Output<List<InputInputDeviceArgs>>? = null

Settings for the devices. See Input Devices for more details.

Link copied to clipboard
val inputSecurityGroups: Output<List<String>>? = null

List of input security groups.

Link copied to clipboard

A list of the MediaConnect Flows. See Media Connect Flows for more details.

Link copied to clipboard
val name: Output<String>? = null

Name of the input.

Link copied to clipboard
val roleArn: Output<String>? = null

The ARN of the role this input assumes during and after creation.

Link copied to clipboard
val sources: Output<List<InputSourceArgs>>? = null

The source URLs for a PULL-type input. See Sources for more details.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the Input. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val type: Output<String>? = null

The different types of inputs that AWS Elemental MediaLive supports. The following arguments are optional:

Link copied to clipboard
val vpc: Output<InputVpcArgs>? = null

Settings for a private VPC Input. See VPC for more details.

Functions

Link copied to clipboard
open override fun toJava(): InputArgs