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

com.pulumi.aws.medialive.kotlin.inputs.InputSourceArgs.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.inputs

import com.pulumi.aws.medialive.inputs.InputSourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property passwordParam The key used to extract the password from EC2 Parameter store.
 * @property url The URL where the stream is pulled from.
 * @property username The username for the input source.
 */
public data class InputSourceArgs(
    public val passwordParam: Output,
    public val url: Output,
    public val username: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.medialive.inputs.InputSourceArgs =
        com.pulumi.aws.medialive.inputs.InputSourceArgs.builder()
            .passwordParam(passwordParam.applyValue({ args0 -> args0 }))
            .url(url.applyValue({ args0 -> args0 }))
            .username(username.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InputSourceArgs].
 */
@PulumiTagMarker
public class InputSourceArgsBuilder internal constructor() {
    private var passwordParam: Output? = null

    private var url: Output? = null

    private var username: Output? = null

    /**
     * @param value The key used to extract the password from EC2 Parameter store.
     */
    @JvmName("fxebwnmxwackomkv")
    public suspend fun passwordParam(`value`: Output) {
        this.passwordParam = value
    }

    /**
     * @param value The URL where the stream is pulled from.
     */
    @JvmName("busfufudwpgefglp")
    public suspend fun url(`value`: Output) {
        this.url = value
    }

    /**
     * @param value The username for the input source.
     */
    @JvmName("pjgctsqombrphxkd")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value The key used to extract the password from EC2 Parameter store.
     */
    @JvmName("pridxuembajisecv")
    public suspend fun passwordParam(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.passwordParam = mapped
    }

    /**
     * @param value The URL where the stream is pulled from.
     */
    @JvmName("umgticrcpxevnlga")
    public suspend fun url(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.url = mapped
    }

    /**
     * @param value The username for the input source.
     */
    @JvmName("nunlxcogmoqsxxmb")
    public suspend fun username(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): InputSourceArgs = InputSourceArgs(
        passwordParam = passwordParam ?: throw PulumiNullFieldException("passwordParam"),
        url = url ?: throw PulumiNullFieldException("url"),
        username = username ?: throw PulumiNullFieldException("username"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy