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

com.pulumi.awsnative.cloudtrail.kotlin.ChannelArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.cloudtrail.kotlin

import com.pulumi.awsnative.cloudtrail.ChannelArgs.builder
import com.pulumi.awsnative.cloudtrail.kotlin.inputs.ChannelDestinationArgs
import com.pulumi.awsnative.cloudtrail.kotlin.inputs.ChannelDestinationArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A channel receives events from a specific source (such as an on-premises storage solution or application, or a partner event data source), and delivers the events to one or more event data stores. You use channels to ingest events into CloudTrail from sources outside AWS.
 * @property destinations One or more resources to which events arriving through a channel are logged and stored.
 * @property name The name of the channel.
 * @property source The ARN of an on-premises storage solution or application, or a partner event source.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class ChannelArgs(
    public val destinations: Output>? = null,
    public val name: Output? = null,
    public val source: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudtrail.ChannelArgs =
        com.pulumi.awsnative.cloudtrail.ChannelArgs.builder()
            .destinations(
                destinations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .source(source?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var name: Output? = null

    private var source: Output? = null

    private var tags: Output>? = null

    /**
     * @param value One or more resources to which events arriving through a channel are logged and stored.
     */
    @JvmName("wipvwllvtquhgijv")
    public suspend fun destinations(`value`: Output>) {
        this.destinations = value
    }

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

    /**
     * @param values One or more resources to which events arriving through a channel are logged and stored.
     */
    @JvmName("ujlbmthhuxqtqcim")
    public suspend fun destinations(values: List>) {
        this.destinations = Output.all(values)
    }

    /**
     * @param value The name of the channel.
     */
    @JvmName("lhpfsmheabiinbiy")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ARN of an on-premises storage solution or application, or a partner event source.
     */
    @JvmName("qsqprcidvvsiivxt")
    public suspend fun source(`value`: Output) {
        this.source = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("gqvvxdmuyljnqeub")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("gdsiquitpsmqaecs")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value One or more resources to which events arriving through a channel are logged and stored.
     */
    @JvmName("vjanprtrgoghlbag")
    public suspend fun destinations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param argument One or more resources to which events arriving through a channel are logged and stored.
     */
    @JvmName("xrbskygnblawwehq")
    public suspend fun destinations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ChannelDestinationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param argument One or more resources to which events arriving through a channel are logged and stored.
     */
    @JvmName("ldysaeurvvhrsrju")
    public suspend fun destinations(vararg argument: suspend ChannelDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ChannelDestinationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param argument One or more resources to which events arriving through a channel are logged and stored.
     */
    @JvmName("ujlvagsxpvqxmtvi")
    public suspend fun destinations(argument: suspend ChannelDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ChannelDestinationArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param values One or more resources to which events arriving through a channel are logged and stored.
     */
    @JvmName("bouyhtygqvtsraju")
    public suspend fun destinations(vararg values: ChannelDestinationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

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

    /**
     * @param value The ARN of an on-premises storage solution or application, or a partner event source.
     */
    @JvmName("uecxtxbboqvguali")
    public suspend fun source(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.source = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("fhkcrhuilqdapnwr")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("vmgonymqbcaeletv")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("mbuytkcisduuhusm")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("bepuvgoqcwmelfin")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("ssrrvqlnbwgncyac")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ChannelArgs = ChannelArgs(
        destinations = destinations,
        name = name,
        source = source,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy