All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.medialive.kotlin.InputArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.medialive.kotlin

import com.pulumi.aws.medialive.InputArgs.builder
import com.pulumi.aws.medialive.kotlin.inputs.InputDestinationArgs
import com.pulumi.aws.medialive.kotlin.inputs.InputDestinationArgsBuilder
import com.pulumi.aws.medialive.kotlin.inputs.InputInputDeviceArgs
import com.pulumi.aws.medialive.kotlin.inputs.InputInputDeviceArgsBuilder
import com.pulumi.aws.medialive.kotlin.inputs.InputMediaConnectFlowArgs
import com.pulumi.aws.medialive.kotlin.inputs.InputMediaConnectFlowArgsBuilder
import com.pulumi.aws.medialive.kotlin.inputs.InputSourceArgs
import com.pulumi.aws.medialive.kotlin.inputs.InputSourceArgsBuilder
import com.pulumi.aws.medialive.kotlin.inputs.InputVpcArgs
import com.pulumi.aws.medialive.kotlin.inputs.InputVpcArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource for managing an AWS MediaLive Input.
 * ## Example Usage
 * ### Basic Usage
 * 
 * ```typescript
 * 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",
 *     },
 * });
 * ```
 * ```python
 * 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",
 *     })
 * ```
 * ```csharp
 * 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" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * 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
 * 	})
 * }
 * ```
 * ```java
 * 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());
 *     }
 * }
 * ```
 * ```yaml
 * 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:
 * ```sh
 * $ pulumi import aws:medialive/input:Input example 12345678
 * ```
 * @property destinations Destination settings for PUSH type inputs. See Destinations for more details.
 * @property inputDevices Settings for the devices. See Input Devices for more details.
 * @property inputSecurityGroups List of input security groups.
 * @property mediaConnectFlows A list of the MediaConnect Flows. See Media Connect Flows for more details.
 * @property name Name of the input.
 * @property roleArn The ARN of the role this input assumes during and after creation.
 * @property sources The source URLs for a PULL-type input. See Sources for more details.
 * @property tags 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.
 * @property type The different types of inputs that AWS Elemental MediaLive supports.
 * The following arguments are optional:
 * @property vpc Settings for a private VPC Input. See VPC for more details.
 */
public data class InputArgs(
    public val destinations: Output>? = null,
    public val inputDevices: Output>? = null,
    public val inputSecurityGroups: Output>? = null,
    public val mediaConnectFlows: Output>? = null,
    public val name: Output? = null,
    public val roleArn: Output? = null,
    public val sources: Output>? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
    public val vpc: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.medialive.InputArgs =
        com.pulumi.aws.medialive.InputArgs.builder()
            .destinations(
                destinations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .inputDevices(
                inputDevices?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .inputSecurityGroups(inputSecurityGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .mediaConnectFlows(
                mediaConnectFlows?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .sources(
                sources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .type(type?.applyValue({ args0 -> args0 }))
            .vpc(vpc?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [InputArgs].
 */
@PulumiTagMarker
public class InputArgsBuilder internal constructor() {
    private var destinations: Output>? = null

    private var inputDevices: Output>? = null

    private var inputSecurityGroups: Output>? = null

    private var mediaConnectFlows: Output>? = null

    private var name: Output? = null

    private var roleArn: Output? = null

    private var sources: Output>? = null

    private var tags: Output>? = null

    private var type: Output? = null

    private var vpc: Output? = null

    /**
     * @param value Destination settings for PUSH type inputs. See Destinations for more details.
     */
    @JvmName("ocyhgxlxesjkbhni")
    public suspend fun destinations(`value`: Output>) {
        this.destinations = value
    }

    @JvmName("oflgvppybkxctlva")
    public suspend fun destinations(vararg values: Output) {
        this.destinations = Output.all(values.asList())
    }

    /**
     * @param values Destination settings for PUSH type inputs. See Destinations for more details.
     */
    @JvmName("bccwbnhvawwokfff")
    public suspend fun destinations(values: List>) {
        this.destinations = Output.all(values)
    }

    /**
     * @param value Settings for the devices. See Input Devices for more details.
     */
    @JvmName("mucrurqvtehrueku")
    public suspend fun inputDevices(`value`: Output>) {
        this.inputDevices = value
    }

    @JvmName("wdhsimpqcmfeghuv")
    public suspend fun inputDevices(vararg values: Output) {
        this.inputDevices = Output.all(values.asList())
    }

    /**
     * @param values Settings for the devices. See Input Devices for more details.
     */
    @JvmName("hthnahlwdmbcnwqr")
    public suspend fun inputDevices(values: List>) {
        this.inputDevices = Output.all(values)
    }

    /**
     * @param value List of input security groups.
     */
    @JvmName("ygjviljqeqxmxmyk")
    public suspend fun inputSecurityGroups(`value`: Output>) {
        this.inputSecurityGroups = value
    }

    @JvmName("qyhmmqepxnbhajpw")
    public suspend fun inputSecurityGroups(vararg values: Output) {
        this.inputSecurityGroups = Output.all(values.asList())
    }

    /**
     * @param values List of input security groups.
     */
    @JvmName("nuyeumqfqnlpujpy")
    public suspend fun inputSecurityGroups(values: List>) {
        this.inputSecurityGroups = Output.all(values)
    }

    /**
     * @param value A list of the MediaConnect Flows. See Media Connect Flows for more details.
     */
    @JvmName("ykvmulmgiyfxjpjr")
    public suspend fun mediaConnectFlows(`value`: Output>) {
        this.mediaConnectFlows = value
    }

    @JvmName("lannirtwmgqkcdwf")
    public suspend fun mediaConnectFlows(vararg values: Output) {
        this.mediaConnectFlows = Output.all(values.asList())
    }

    /**
     * @param values A list of the MediaConnect Flows. See Media Connect Flows for more details.
     */
    @JvmName("llknjfstqenmyxmk")
    public suspend fun mediaConnectFlows(values: List>) {
        this.mediaConnectFlows = Output.all(values)
    }

    /**
     * @param value Name of the input.
     */
    @JvmName("kntaashsgwinfidw")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ARN of the role this input assumes during and after creation.
     */
    @JvmName("giiwpiyuoklwrswm")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The source URLs for a PULL-type input. See Sources for more details.
     */
    @JvmName("yslcfvtwkstknihm")
    public suspend fun sources(`value`: Output>) {
        this.sources = value
    }

    @JvmName("mvdofictwxefxsmx")
    public suspend fun sources(vararg values: Output) {
        this.sources = Output.all(values.asList())
    }

    /**
     * @param values The source URLs for a PULL-type input. See Sources for more details.
     */
    @JvmName("mivvyhrcjcehtseh")
    public suspend fun sources(values: List>) {
        this.sources = Output.all(values)
    }

    /**
     * @param value 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.
     */
    @JvmName("laarnbsmvcmhwyeb")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The different types of inputs that AWS Elemental MediaLive supports.
     * The following arguments are optional:
     */
    @JvmName("oyqrxtxpfwuiafmy")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Settings for a private VPC Input. See VPC for more details.
     */
    @JvmName("mkottmpirsphuxyp")
    public suspend fun vpc(`value`: Output) {
        this.vpc = value
    }

    /**
     * @param value Destination settings for PUSH type inputs. See Destinations for more details.
     */
    @JvmName("fhmojugjffhcmgat")
    public suspend fun destinations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param argument Destination settings for PUSH type inputs. See Destinations for more details.
     */
    @JvmName("nunyathuspedlmht")
    public suspend fun destinations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InputDestinationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param argument Destination settings for PUSH type inputs. See Destinations for more details.
     */
    @JvmName("lccrdrxvgbbosvpt")
    public suspend fun destinations(vararg argument: suspend InputDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InputDestinationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param argument Destination settings for PUSH type inputs. See Destinations for more details.
     */
    @JvmName("wdanycfkiswcuvtx")
    public suspend fun destinations(argument: suspend InputDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(InputDestinationArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param values Destination settings for PUSH type inputs. See Destinations for more details.
     */
    @JvmName("dkspqrwyckbkyovu")
    public suspend fun destinations(vararg values: InputDestinationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param value Settings for the devices. See Input Devices for more details.
     */
    @JvmName("pccttdkwquscctkl")
    public suspend fun inputDevices(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputDevices = mapped
    }

    /**
     * @param argument Settings for the devices. See Input Devices for more details.
     */
    @JvmName("teswasmyhrsoemuj")
    public suspend fun inputDevices(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InputInputDeviceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.inputDevices = mapped
    }

    /**
     * @param argument Settings for the devices. See Input Devices for more details.
     */
    @JvmName("ebmebvuprenenotx")
    public suspend fun inputDevices(vararg argument: suspend InputInputDeviceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InputInputDeviceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.inputDevices = mapped
    }

    /**
     * @param argument Settings for the devices. See Input Devices for more details.
     */
    @JvmName("aybagrnlbxwaeaae")
    public suspend fun inputDevices(argument: suspend InputInputDeviceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(InputInputDeviceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.inputDevices = mapped
    }

    /**
     * @param values Settings for the devices. See Input Devices for more details.
     */
    @JvmName("nykrabbbxjbnshrp")
    public suspend fun inputDevices(vararg values: InputInputDeviceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputDevices = mapped
    }

    /**
     * @param value List of input security groups.
     */
    @JvmName("mxctqpbdfekxwkqs")
    public suspend fun inputSecurityGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputSecurityGroups = mapped
    }

    /**
     * @param values List of input security groups.
     */
    @JvmName("eowqjcxasiymfvtb")
    public suspend fun inputSecurityGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputSecurityGroups = mapped
    }

    /**
     * @param value A list of the MediaConnect Flows. See Media Connect Flows for more details.
     */
    @JvmName("fslsvqchxiurhyte")
    public suspend fun mediaConnectFlows(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mediaConnectFlows = mapped
    }

    /**
     * @param argument A list of the MediaConnect Flows. See Media Connect Flows for more details.
     */
    @JvmName("ekmqagmwwkactkwo")
    public suspend fun mediaConnectFlows(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InputMediaConnectFlowArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.mediaConnectFlows = mapped
    }

    /**
     * @param argument A list of the MediaConnect Flows. See Media Connect Flows for more details.
     */
    @JvmName("bjnuywrjmeieodrg")
    public suspend fun mediaConnectFlows(vararg argument: suspend InputMediaConnectFlowArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InputMediaConnectFlowArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.mediaConnectFlows = mapped
    }

    /**
     * @param argument A list of the MediaConnect Flows. See Media Connect Flows for more details.
     */
    @JvmName("daqhxtordretotxq")
    public suspend fun mediaConnectFlows(argument: suspend InputMediaConnectFlowArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(InputMediaConnectFlowArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.mediaConnectFlows = mapped
    }

    /**
     * @param values A list of the MediaConnect Flows. See Media Connect Flows for more details.
     */
    @JvmName("fbrgqtapbsuduchw")
    public suspend fun mediaConnectFlows(vararg values: InputMediaConnectFlowArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mediaConnectFlows = mapped
    }

    /**
     * @param value Name of the input.
     */
    @JvmName("ptxrlfccpiyytbur")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ARN of the role this input assumes during and after creation.
     */
    @JvmName("dtwtatcnptlnmdof")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The source URLs for a PULL-type input. See Sources for more details.
     */
    @JvmName("xstfkakwcwdjjpcm")
    public suspend fun sources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param argument The source URLs for a PULL-type input. See Sources for more details.
     */
    @JvmName("olkmsdjllxulhavu")
    public suspend fun sources(argument: List Unit>) {
        val toBeMapped = argument.toList().map { InputSourceArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument The source URLs for a PULL-type input. See Sources for more details.
     */
    @JvmName("xdpihvuroricfecv")
    public suspend fun sources(vararg argument: suspend InputSourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { InputSourceArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument The source URLs for a PULL-type input. See Sources for more details.
     */
    @JvmName("bgbgjbxpdepqnwha")
    public suspend fun sources(argument: suspend InputSourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(InputSourceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param values The source URLs for a PULL-type input. See Sources for more details.
     */
    @JvmName("wdsvjxudqpykpolx")
    public suspend fun sources(vararg values: InputSourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("ceinrgpqgywacjyl")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values 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.
     */
    @JvmName("kpgaphlkovlylnhc")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The different types of inputs that AWS Elemental MediaLive supports.
     * The following arguments are optional:
     */
    @JvmName("qcjdytvubpwgxdek")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Settings for a private VPC Input. See VPC for more details.
     */
    @JvmName("odbwyexijvtpxqon")
    public suspend fun vpc(`value`: InputVpcArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpc = mapped
    }

    /**
     * @param argument Settings for a private VPC Input. See VPC for more details.
     */
    @JvmName("vajmxxpuhxwwtekj")
    public suspend fun vpc(argument: suspend InputVpcArgsBuilder.() -> Unit) {
        val toBeMapped = InputVpcArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.vpc = mapped
    }

    internal fun build(): InputArgs = InputArgs(
        destinations = destinations,
        inputDevices = inputDevices,
        inputSecurityGroups = inputSecurityGroups,
        mediaConnectFlows = mediaConnectFlows,
        name = name,
        roleArn = roleArn,
        sources = sources,
        tags = tags,
        type = type,
        vpc = vpc,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy