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

com.pulumi.aws.securitylake.kotlin.inputs.SubscriberSourceCustomLogSourceResourceArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.securitylake.kotlin.inputs

import com.pulumi.aws.securitylake.inputs.SubscriberSourceCustomLogSourceResourceArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property attributes The attributes of the third-party custom source. See `attributes` Block below.
 * @property providers The details of the log provider for the third-party custom source. See `provider` Block below.
 * @property sourceName The name for a third-party custom source. This must be a Regionally unique value.
 * @property sourceVersion The version for a third-party custom source. This must be a Regionally unique value.
 */
public data class SubscriberSourceCustomLogSourceResourceArgs(
    public val attributes: Output>? = null,
    public val providers: Output>? = null,
    public val sourceName: Output,
    public val sourceVersion: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.securitylake.inputs.SubscriberSourceCustomLogSourceResourceArgs =
        com.pulumi.aws.securitylake.inputs.SubscriberSourceCustomLogSourceResourceArgs.builder()
            .attributes(
                attributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .providers(
                providers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .sourceName(sourceName.applyValue({ args0 -> args0 }))
            .sourceVersion(sourceVersion?.applyValue({ args0 -> args0 })).build()
}

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

    private var providers: Output>? = null

    private var sourceName: Output? = null

    private var sourceVersion: Output? = null

    /**
     * @param value The attributes of the third-party custom source. See `attributes` Block below.
     */
    @JvmName("jwifavyndcgcinan")
    public suspend fun attributes(`value`: Output>) {
        this.attributes = value
    }

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

    /**
     * @param values The attributes of the third-party custom source. See `attributes` Block below.
     */
    @JvmName("pypuyhxnxbbturwe")
    public suspend fun attributes(values: List>) {
        this.attributes = Output.all(values)
    }

    /**
     * @param value The details of the log provider for the third-party custom source. See `provider` Block below.
     */
    @JvmName("qglaqkvsnbguyqhs")
    public suspend fun providers(`value`: Output>) {
        this.providers = value
    }

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

    /**
     * @param values The details of the log provider for the third-party custom source. See `provider` Block below.
     */
    @JvmName("kdodhlqqacyviwhc")
    public suspend fun providers(values: List>) {
        this.providers = Output.all(values)
    }

    /**
     * @param value The name for a third-party custom source. This must be a Regionally unique value.
     */
    @JvmName("fluefgjigbllikem")
    public suspend fun sourceName(`value`: Output) {
        this.sourceName = value
    }

    /**
     * @param value The version for a third-party custom source. This must be a Regionally unique value.
     */
    @JvmName("lqdwjqtlflsosgrr")
    public suspend fun sourceVersion(`value`: Output) {
        this.sourceVersion = value
    }

    /**
     * @param value The attributes of the third-party custom source. See `attributes` Block below.
     */
    @JvmName("ttskfjmhstaibajy")
    public suspend fun attributes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param argument The attributes of the third-party custom source. See `attributes` Block below.
     */
    @JvmName("xcthtapirkuqsrdm")
    public suspend fun attributes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SubscriberSourceCustomLogSourceResourceAttributeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param argument The attributes of the third-party custom source. See `attributes` Block below.
     */
    @JvmName("wuwmnikxtsmflgjy")
    public suspend fun attributes(vararg argument: suspend SubscriberSourceCustomLogSourceResourceAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SubscriberSourceCustomLogSourceResourceAttributeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param argument The attributes of the third-party custom source. See `attributes` Block below.
     */
    @JvmName("hnvehoowyelxcula")
    public suspend fun attributes(argument: suspend SubscriberSourceCustomLogSourceResourceAttributeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                SubscriberSourceCustomLogSourceResourceAttributeArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param values The attributes of the third-party custom source. See `attributes` Block below.
     */
    @JvmName("gawdhguniflbealx")
    public suspend fun attributes(vararg values: SubscriberSourceCustomLogSourceResourceAttributeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param value The details of the log provider for the third-party custom source. See `provider` Block below.
     */
    @JvmName("karfwatbrqixufni")
    public suspend fun providers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.providers = mapped
    }

    /**
     * @param argument The details of the log provider for the third-party custom source. See `provider` Block below.
     */
    @JvmName("cwbofwfwyxwhjhfc")
    public suspend fun providers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SubscriberSourceCustomLogSourceResourceProviderArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.providers = mapped
    }

    /**
     * @param argument The details of the log provider for the third-party custom source. See `provider` Block below.
     */
    @JvmName("scstgxqwyhrutcyx")
    public suspend fun providers(vararg argument: suspend SubscriberSourceCustomLogSourceResourceProviderArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SubscriberSourceCustomLogSourceResourceProviderArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.providers = mapped
    }

    /**
     * @param argument The details of the log provider for the third-party custom source. See `provider` Block below.
     */
    @JvmName("egvggtacgugdqsme")
    public suspend fun providers(argument: suspend SubscriberSourceCustomLogSourceResourceProviderArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                SubscriberSourceCustomLogSourceResourceProviderArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.providers = mapped
    }

    /**
     * @param values The details of the log provider for the third-party custom source. See `provider` Block below.
     */
    @JvmName("gypwtschdppceygh")
    public suspend fun providers(vararg values: SubscriberSourceCustomLogSourceResourceProviderArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.providers = mapped
    }

    /**
     * @param value The name for a third-party custom source. This must be a Regionally unique value.
     */
    @JvmName("eeqtqqxexbmrmsuc")
    public suspend fun sourceName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceName = mapped
    }

    /**
     * @param value The version for a third-party custom source. This must be a Regionally unique value.
     */
    @JvmName("cnmjwwirmwhbjvwq")
    public suspend fun sourceVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceVersion = mapped
    }

    internal fun build(): SubscriberSourceCustomLogSourceResourceArgs =
        SubscriberSourceCustomLogSourceResourceArgs(
            attributes = attributes,
            providers = providers,
            sourceName = sourceName ?: throw PulumiNullFieldException("sourceName"),
            sourceVersion = sourceVersion,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy