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

com.pulumi.awsnative.eventschemas.kotlin.DiscovererArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.eventschemas.kotlin

import com.pulumi.awsnative.eventschemas.DiscovererArgs.builder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::EventSchemas::Discoverer
 * ## Example Usage
 * ### Example
 * No Java example available.
 * @property crossAccount Defines whether event schemas from other accounts are discovered. Default is True.
 * @property description A description for the discoverer.
 * @property sourceArn The ARN of the event bus.
 * @property tags Tags associated with the resource.
 */
public data class DiscovererArgs(
    public val crossAccount: Output? = null,
    public val description: Output? = null,
    public val sourceArn: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.eventschemas.DiscovererArgs =
        com.pulumi.awsnative.eventschemas.DiscovererArgs.builder()
            .crossAccount(crossAccount?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .sourceArn(sourceArn?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DiscovererArgs].
 */
@PulumiTagMarker
public class DiscovererArgsBuilder internal constructor() {
    private var crossAccount: Output? = null

    private var description: Output? = null

    private var sourceArn: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Defines whether event schemas from other accounts are discovered. Default is True.
     */
    @JvmName("qdwtunrkgpxnvvhg")
    public suspend fun crossAccount(`value`: Output) {
        this.crossAccount = value
    }

    /**
     * @param value A description for the discoverer.
     */
    @JvmName("ptsvdrmdcognswue")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The ARN of the event bus.
     */
    @JvmName("ssvkwbrkjbgxxmvx")
    public suspend fun sourceArn(`value`: Output) {
        this.sourceArn = value
    }

    /**
     * @param value Tags associated with the resource.
     */
    @JvmName("rqupoyftieloaxbi")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Tags associated with the resource.
     */
    @JvmName("xijjtjyhxtgekxkb")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Defines whether event schemas from other accounts are discovered. Default is True.
     */
    @JvmName("hmudrigxhsrbolgm")
    public suspend fun crossAccount(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.crossAccount = mapped
    }

    /**
     * @param value A description for the discoverer.
     */
    @JvmName("vbfangjtivbifyta")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The ARN of the event bus.
     */
    @JvmName("maadutuydcqqmxab")
    public suspend fun sourceArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceArn = mapped
    }

    /**
     * @param value Tags associated with the resource.
     */
    @JvmName("egxadiduifeopyuh")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Tags associated with the resource.
     */
    @JvmName("hyfxdoyiannucphh")
    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 Tags associated with the resource.
     */
    @JvmName("wksfhltlgpftrcwa")
    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 Tags associated with the resource.
     */
    @JvmName("jbaeapsfxxqmbtpy")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Tags associated with the resource.
     */
    @JvmName("prpvwrekqiiwgnoq")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): DiscovererArgs = DiscovererArgs(
        crossAccount = crossAccount,
        description = description,
        sourceArn = sourceArn,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy