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

com.pulumi.awsnative.redshiftserverless.kotlin.WorkgroupArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.redshiftserverless.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.redshiftserverless.WorkgroupArgs.builder
import com.pulumi.awsnative.redshiftserverless.kotlin.inputs.WorkgroupConfigParameterArgs
import com.pulumi.awsnative.redshiftserverless.kotlin.inputs.WorkgroupConfigParameterArgsBuilder
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::RedshiftServerless::Workgroup Resource Type
 * @property baseCapacity The base compute capacity of the workgroup in Redshift Processing Units (RPUs).
 * @property configParameters A list of parameters to set for finer control over a database. Available options are datestyle, enable_user_activity_logging, query_group, search_path, max_query_execution_time, and require_ssl.
 * @property enhancedVpcRouting The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
 * @property maxCapacity The max compute capacity of the workgroup in Redshift Processing Units (RPUs).
 * @property namespaceName The namespace the workgroup is associated with.
 * @property port The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.
 * @property publiclyAccessible A value that specifies whether the workgroup can be accessible from a public network.
 * @property securityGroupIds A list of security group IDs to associate with the workgroup.
 * @property subnetIds A list of subnet IDs the workgroup is associated with.
 * @property tags The map of the key-value pairs used to tag the workgroup.
 * @property workgroupName The name of the workgroup.
 */
public data class WorkgroupArgs(
    public val baseCapacity: Output? = null,
    public val configParameters: Output>? = null,
    public val enhancedVpcRouting: Output? = null,
    public val maxCapacity: Output? = null,
    public val namespaceName: Output? = null,
    public val port: Output? = null,
    public val publiclyAccessible: Output? = null,
    public val securityGroupIds: Output>? = null,
    public val subnetIds: Output>? = null,
    public val tags: Output>? = null,
    public val workgroupName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.redshiftserverless.WorkgroupArgs =
        com.pulumi.awsnative.redshiftserverless.WorkgroupArgs.builder()
            .baseCapacity(baseCapacity?.applyValue({ args0 -> args0 }))
            .configParameters(
                configParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .enhancedVpcRouting(enhancedVpcRouting?.applyValue({ args0 -> args0 }))
            .maxCapacity(maxCapacity?.applyValue({ args0 -> args0 }))
            .namespaceName(namespaceName?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 }))
            .publiclyAccessible(publiclyAccessible?.applyValue({ args0 -> args0 }))
            .securityGroupIds(securityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetIds(subnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .workgroupName(workgroupName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WorkgroupArgs].
 */
@PulumiTagMarker
public class WorkgroupArgsBuilder internal constructor() {
    private var baseCapacity: Output? = null

    private var configParameters: Output>? = null

    private var enhancedVpcRouting: Output? = null

    private var maxCapacity: Output? = null

    private var namespaceName: Output? = null

    private var port: Output? = null

    private var publiclyAccessible: Output? = null

    private var securityGroupIds: Output>? = null

    private var subnetIds: Output>? = null

    private var tags: Output>? = null

    private var workgroupName: Output? = null

    /**
     * @param value The base compute capacity of the workgroup in Redshift Processing Units (RPUs).
     */
    @JvmName("qlbrbmmcjplothai")
    public suspend fun baseCapacity(`value`: Output) {
        this.baseCapacity = value
    }

    /**
     * @param value A list of parameters to set for finer control over a database. Available options are datestyle, enable_user_activity_logging, query_group, search_path, max_query_execution_time, and require_ssl.
     */
    @JvmName("stlmvgwcmtccimdi")
    public suspend fun configParameters(`value`: Output>) {
        this.configParameters = value
    }

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

    /**
     * @param values A list of parameters to set for finer control over a database. Available options are datestyle, enable_user_activity_logging, query_group, search_path, max_query_execution_time, and require_ssl.
     */
    @JvmName("hfgwnnoojxmtyoob")
    public suspend fun configParameters(values: List>) {
        this.configParameters = Output.all(values)
    }

    /**
     * @param value The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
     */
    @JvmName("oyqanokuqlxbvsfp")
    public suspend fun enhancedVpcRouting(`value`: Output) {
        this.enhancedVpcRouting = value
    }

    /**
     * @param value The max compute capacity of the workgroup in Redshift Processing Units (RPUs).
     */
    @JvmName("hoirjtehwdlpxouc")
    public suspend fun maxCapacity(`value`: Output) {
        this.maxCapacity = value
    }

    /**
     * @param value The namespace the workgroup is associated with.
     */
    @JvmName("ofpjmvvhtplrfloc")
    public suspend fun namespaceName(`value`: Output) {
        this.namespaceName = value
    }

    /**
     * @param value The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.
     */
    @JvmName("wcflbchwggefyadp")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value A value that specifies whether the workgroup can be accessible from a public network.
     */
    @JvmName("oqldeffjdehxhcul")
    public suspend fun publiclyAccessible(`value`: Output) {
        this.publiclyAccessible = value
    }

    /**
     * @param value A list of security group IDs to associate with the workgroup.
     */
    @JvmName("kwdtmmnfrnrefdhu")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

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

    /**
     * @param values A list of security group IDs to associate with the workgroup.
     */
    @JvmName("lnunwugpewrgktfl")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value A list of subnet IDs the workgroup is associated with.
     */
    @JvmName("ufpwfexpjbtemdfd")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values A list of subnet IDs the workgroup is associated with.
     */
    @JvmName("wdwtfdrttwhejysa")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value The map of the key-value pairs used to tag the workgroup.
     */
    @JvmName("corogwfhwwipohmb")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The map of the key-value pairs used to tag the workgroup.
     */
    @JvmName("yfcyiuphsnjovajc")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value The base compute capacity of the workgroup in Redshift Processing Units (RPUs).
     */
    @JvmName("owvdnmhmpaffepnj")
    public suspend fun baseCapacity(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.baseCapacity = mapped
    }

    /**
     * @param value A list of parameters to set for finer control over a database. Available options are datestyle, enable_user_activity_logging, query_group, search_path, max_query_execution_time, and require_ssl.
     */
    @JvmName("ueoxvaccakiwafhd")
    public suspend fun configParameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configParameters = mapped
    }

    /**
     * @param argument A list of parameters to set for finer control over a database. Available options are datestyle, enable_user_activity_logging, query_group, search_path, max_query_execution_time, and require_ssl.
     */
    @JvmName("xwbimoxveoaruuwf")
    public suspend fun configParameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkgroupConfigParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.configParameters = mapped
    }

    /**
     * @param argument A list of parameters to set for finer control over a database. Available options are datestyle, enable_user_activity_logging, query_group, search_path, max_query_execution_time, and require_ssl.
     */
    @JvmName("qwudffcgddihcicb")
    public suspend fun configParameters(vararg argument: suspend WorkgroupConfigParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkgroupConfigParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.configParameters = mapped
    }

    /**
     * @param argument A list of parameters to set for finer control over a database. Available options are datestyle, enable_user_activity_logging, query_group, search_path, max_query_execution_time, and require_ssl.
     */
    @JvmName("aumgvbwmoknfemgb")
    public suspend fun configParameters(argument: suspend WorkgroupConfigParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkgroupConfigParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.configParameters = mapped
    }

    /**
     * @param values A list of parameters to set for finer control over a database. Available options are datestyle, enable_user_activity_logging, query_group, search_path, max_query_execution_time, and require_ssl.
     */
    @JvmName("ooqgvwmllrhevdow")
    public suspend fun configParameters(vararg values: WorkgroupConfigParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configParameters = mapped
    }

    /**
     * @param value The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
     */
    @JvmName("qtfyhfqamvtrjqwk")
    public suspend fun enhancedVpcRouting(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enhancedVpcRouting = mapped
    }

    /**
     * @param value The max compute capacity of the workgroup in Redshift Processing Units (RPUs).
     */
    @JvmName("rjicainetgawwnrb")
    public suspend fun maxCapacity(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxCapacity = mapped
    }

    /**
     * @param value The namespace the workgroup is associated with.
     */
    @JvmName("pnoffkiitmiqfnhk")
    public suspend fun namespaceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespaceName = mapped
    }

    /**
     * @param value The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.
     */
    @JvmName("qlrrrgdtyxubnqxa")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value A value that specifies whether the workgroup can be accessible from a public network.
     */
    @JvmName("oneajeqejcfpohpq")
    public suspend fun publiclyAccessible(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publiclyAccessible = mapped
    }

    /**
     * @param value A list of security group IDs to associate with the workgroup.
     */
    @JvmName("ksieysjepmdwtbld")
    public suspend fun securityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values A list of security group IDs to associate with the workgroup.
     */
    @JvmName("wfeursiceqqpuldd")
    public suspend fun securityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param value A list of subnet IDs the workgroup is associated with.
     */
    @JvmName("lnhjsatxtkunejtg")
    public suspend fun subnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values A list of subnet IDs the workgroup is associated with.
     */
    @JvmName("btihghutxdkfhmrs")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param value The map of the key-value pairs used to tag the workgroup.
     */
    @JvmName("dfiwehgaysmbirsc")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The map of the key-value pairs used to tag the workgroup.
     */
    @JvmName("nqptfxullmbrfmby")
    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 The map of the key-value pairs used to tag the workgroup.
     */
    @JvmName("ltlbbsidwygatggx")
    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 The map of the key-value pairs used to tag the workgroup.
     */
    @JvmName("wpojmhxqcplxvxmm")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The map of the key-value pairs used to tag the workgroup.
     */
    @JvmName("bjoohlhtofunufsp")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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

    internal fun build(): WorkgroupArgs = WorkgroupArgs(
        baseCapacity = baseCapacity,
        configParameters = configParameters,
        enhancedVpcRouting = enhancedVpcRouting,
        maxCapacity = maxCapacity,
        namespaceName = namespaceName,
        port = port,
        publiclyAccessible = publiclyAccessible,
        securityGroupIds = securityGroupIds,
        subnetIds = subnetIds,
        tags = tags,
        workgroupName = workgroupName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy