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

com.pulumi.awsnative.athena.kotlin.WorkGroupArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.athena.kotlin

import com.pulumi.awsnative.athena.WorkGroupArgs.builder
import com.pulumi.awsnative.athena.kotlin.enums.WorkGroupState
import com.pulumi.awsnative.athena.kotlin.inputs.WorkGroupConfigurationArgs
import com.pulumi.awsnative.athena.kotlin.inputs.WorkGroupConfigurationArgsBuilder
import com.pulumi.awsnative.athena.kotlin.inputs.WorkGroupConfigurationUpdatesArgs
import com.pulumi.awsnative.athena.kotlin.inputs.WorkGroupConfigurationUpdatesArgsBuilder
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 schema for AWS::Athena::WorkGroup
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property description The workgroup description.
 * @property name The workGroup name.
 * @property recursiveDeleteOption The option to delete the workgroup and its contents even if the workgroup contains any named queries.
 * @property state The state of the workgroup: ENABLED or DISABLED.
 * @property tags One or more tags, separated by commas, that you want to attach to the workgroup as you create it
 * @property workGroupConfiguration The workgroup configuration
 * @property workGroupConfigurationUpdates The workgroup configuration update object
 */
public data class WorkGroupArgs(
    public val description: Output? = null,
    public val name: Output? = null,
    public val recursiveDeleteOption: Output? = null,
    public val state: Output? = null,
    public val tags: Output>? = null,
    public val workGroupConfiguration: Output? = null,
    public val workGroupConfigurationUpdates: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.athena.WorkGroupArgs =
        com.pulumi.awsnative.athena.WorkGroupArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .recursiveDeleteOption(recursiveDeleteOption?.applyValue({ args0 -> args0 }))
            .state(state?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .workGroupConfiguration(
                workGroupConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .workGroupConfigurationUpdates(
                workGroupConfigurationUpdates?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            ).build()
}

/**
 * Builder for [WorkGroupArgs].
 */
@PulumiTagMarker
public class WorkGroupArgsBuilder internal constructor() {
    private var description: Output? = null

    private var name: Output? = null

    private var recursiveDeleteOption: Output? = null

    private var state: Output? = null

    private var tags: Output>? = null

    private var workGroupConfiguration: Output? = null

    private var workGroupConfigurationUpdates: Output? = null

    /**
     * @param value The workgroup description.
     */
    @JvmName("hkhxspplbsbyxkci")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The workGroup name.
     */
    @JvmName("qldlyctjthotodix")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The option to delete the workgroup and its contents even if the workgroup contains any named queries.
     */
    @JvmName("kxvmlxeyqtisdbxr")
    public suspend fun recursiveDeleteOption(`value`: Output) {
        this.recursiveDeleteOption = value
    }

    /**
     * @param value The state of the workgroup: ENABLED or DISABLED.
     */
    @JvmName("ntpublnmbiguqsmf")
    public suspend fun state(`value`: Output) {
        this.state = value
    }

    /**
     * @param value One or more tags, separated by commas, that you want to attach to the workgroup as you create it
     */
    @JvmName("siplworhyacnyyau")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values One or more tags, separated by commas, that you want to attach to the workgroup as you create it
     */
    @JvmName("igjnyygaxvassxds")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The workgroup configuration
     */
    @JvmName("pqpraoywdcsbhgrm")
    public suspend fun workGroupConfiguration(`value`: Output) {
        this.workGroupConfiguration = value
    }

    /**
     * @param value The workgroup configuration update object
     */
    @JvmName("ylhksrbhgkhrjddt")
    public suspend fun workGroupConfigurationUpdates(`value`: Output) {
        this.workGroupConfigurationUpdates = value
    }

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

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

    /**
     * @param value The option to delete the workgroup and its contents even if the workgroup contains any named queries.
     */
    @JvmName("foacjhwqqwoxpekh")
    public suspend fun recursiveDeleteOption(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recursiveDeleteOption = mapped
    }

    /**
     * @param value The state of the workgroup: ENABLED or DISABLED.
     */
    @JvmName("snwiawhcixgqooem")
    public suspend fun state(`value`: WorkGroupState?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.state = mapped
    }

    /**
     * @param value One or more tags, separated by commas, that you want to attach to the workgroup as you create it
     */
    @JvmName("aufljpuuhcexqccu")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument One or more tags, separated by commas, that you want to attach to the workgroup as you create it
     */
    @JvmName("pfkvlgrciqowmilg")
    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 One or more tags, separated by commas, that you want to attach to the workgroup as you create it
     */
    @JvmName("vkwnyoruxxfoiiuw")
    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 One or more tags, separated by commas, that you want to attach to the workgroup as you create it
     */
    @JvmName("arjdgihtvtraravk")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values One or more tags, separated by commas, that you want to attach to the workgroup as you create it
     */
    @JvmName("cqiqddphvypqltik")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The workgroup configuration
     */
    @JvmName("rfywcnachvqjjtkf")
    public suspend fun workGroupConfiguration(`value`: WorkGroupConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workGroupConfiguration = mapped
    }

    /**
     * @param argument The workgroup configuration
     */
    @JvmName("jctneddfswsaflvf")
    public suspend fun workGroupConfiguration(argument: suspend WorkGroupConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = WorkGroupConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.workGroupConfiguration = mapped
    }

    /**
     * @param value The workgroup configuration update object
     */
    @JvmName("ssubqjowrudlllmc")
    public suspend fun workGroupConfigurationUpdates(`value`: WorkGroupConfigurationUpdatesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workGroupConfigurationUpdates = mapped
    }

    /**
     * @param argument The workgroup configuration update object
     */
    @JvmName("uefkdwjphlfimwba")
    public suspend fun workGroupConfigurationUpdates(argument: suspend WorkGroupConfigurationUpdatesArgsBuilder.() -> Unit) {
        val toBeMapped = WorkGroupConfigurationUpdatesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.workGroupConfigurationUpdates = mapped
    }

    internal fun build(): WorkGroupArgs = WorkGroupArgs(
        description = description,
        name = name,
        recursiveDeleteOption = recursiveDeleteOption,
        state = state,
        tags = tags,
        workGroupConfiguration = workGroupConfiguration,
        workGroupConfigurationUpdates = workGroupConfigurationUpdates,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy