Input Args
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.id],
type: "UDP_PUSH",
tags: {
ENVIRONMENT: "prod",
},
});
Content copied to clipboard
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.id],
type="UDP_PUSH",
tags={
"ENVIRONMENT": "prod",
})
Content copied to clipboard
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" },
},
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Import
Using pulumi import
, import MediaLive Input using the id
. For example:
$ pulumi import aws:medialive/input:Input example 12345678
Content copied to clipboard
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
Destination settings for PUSH type inputs. See Destinations for more details.
Link copied to clipboard
Settings for the devices. See Input Devices for more details.
Link copied to clipboard
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
The source URLs for a PULL-type input. See Sources for more details.
Link copied to clipboard
Settings for a private VPC Input. See VPC for more details.