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

com.pulumi.awsnative.rds.kotlin.inputs.OptionGroupOptionConfigurationArgs.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.rds.kotlin.inputs

import com.pulumi.awsnative.rds.inputs.OptionGroupOptionConfigurationArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The ``OptionConfiguration`` property type specifies an individual option, and its settings, within an ``AWS::RDS::OptionGroup`` resource.
 * @property dbSecurityGroupMemberships A list of DBSecurityGroupMembership name strings used for this option.
 * @property optionName The configuration of options to include in a group.
 * @property optionSettings The option settings to include in an option group.
 * @property optionVersion The version for the option.
 * @property port The optional port for the option.
 * @property vpcSecurityGroupMemberships A list of VpcSecurityGroupMembership name strings used for this option.
 */
public data class OptionGroupOptionConfigurationArgs(
    public val dbSecurityGroupMemberships: Output>? = null,
    public val optionName: Output,
    public val optionSettings: Output>? = null,
    public val optionVersion: Output? = null,
    public val port: Output? = null,
    public val vpcSecurityGroupMemberships: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.rds.inputs.OptionGroupOptionConfigurationArgs =
        com.pulumi.awsnative.rds.inputs.OptionGroupOptionConfigurationArgs.builder()
            .dbSecurityGroupMemberships(
                dbSecurityGroupMemberships?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .optionName(optionName.applyValue({ args0 -> args0 }))
            .optionSettings(
                optionSettings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .optionVersion(optionVersion?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 }))
            .vpcSecurityGroupMemberships(
                vpcSecurityGroupMemberships?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

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

    private var optionName: Output? = null

    private var optionSettings: Output>? = null

    private var optionVersion: Output? = null

    private var port: Output? = null

    private var vpcSecurityGroupMemberships: Output>? = null

    /**
     * @param value A list of DBSecurityGroupMembership name strings used for this option.
     */
    @JvmName("jcatcmajdmhomaqp")
    public suspend fun dbSecurityGroupMemberships(`value`: Output>) {
        this.dbSecurityGroupMemberships = value
    }

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

    /**
     * @param values A list of DBSecurityGroupMembership name strings used for this option.
     */
    @JvmName("phhuvmqigimwpflw")
    public suspend fun dbSecurityGroupMemberships(values: List>) {
        this.dbSecurityGroupMemberships = Output.all(values)
    }

    /**
     * @param value The configuration of options to include in a group.
     */
    @JvmName("jbnbrfeeaiscdipr")
    public suspend fun optionName(`value`: Output) {
        this.optionName = value
    }

    /**
     * @param value The option settings to include in an option group.
     */
    @JvmName("ehsgobawgtqnfqnt")
    public suspend fun optionSettings(`value`: Output>) {
        this.optionSettings = value
    }

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

    /**
     * @param values The option settings to include in an option group.
     */
    @JvmName("rbsnxuyiwphhayhu")
    public suspend fun optionSettings(values: List>) {
        this.optionSettings = Output.all(values)
    }

    /**
     * @param value The version for the option.
     */
    @JvmName("avyifbjycgvjwcte")
    public suspend fun optionVersion(`value`: Output) {
        this.optionVersion = value
    }

    /**
     * @param value The optional port for the option.
     */
    @JvmName("dwpsssrgccocbvnd")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value A list of VpcSecurityGroupMembership name strings used for this option.
     */
    @JvmName("evihbmfxykhxoanj")
    public suspend fun vpcSecurityGroupMemberships(`value`: Output>) {
        this.vpcSecurityGroupMemberships = value
    }

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

    /**
     * @param values A list of VpcSecurityGroupMembership name strings used for this option.
     */
    @JvmName("vdndqjlmbxdtfggh")
    public suspend fun vpcSecurityGroupMemberships(values: List>) {
        this.vpcSecurityGroupMemberships = Output.all(values)
    }

    /**
     * @param value A list of DBSecurityGroupMembership name strings used for this option.
     */
    @JvmName("rnkdhlgiobocmhwr")
    public suspend fun dbSecurityGroupMemberships(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbSecurityGroupMemberships = mapped
    }

    /**
     * @param values A list of DBSecurityGroupMembership name strings used for this option.
     */
    @JvmName("xthttwccpgbghnny")
    public suspend fun dbSecurityGroupMemberships(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dbSecurityGroupMemberships = mapped
    }

    /**
     * @param value The configuration of options to include in a group.
     */
    @JvmName("ylvscxgeaugtvago")
    public suspend fun optionName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.optionName = mapped
    }

    /**
     * @param value The option settings to include in an option group.
     */
    @JvmName("xptpwvffbgvyjgaa")
    public suspend fun optionSettings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.optionSettings = mapped
    }

    /**
     * @param argument The option settings to include in an option group.
     */
    @JvmName("wiiqavsghavurdyi")
    public suspend fun optionSettings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            OptionGroupOptionSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.optionSettings = mapped
    }

    /**
     * @param argument The option settings to include in an option group.
     */
    @JvmName("fycevlntmrrjqopy")
    public suspend fun optionSettings(vararg argument: suspend OptionGroupOptionSettingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            OptionGroupOptionSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.optionSettings = mapped
    }

    /**
     * @param argument The option settings to include in an option group.
     */
    @JvmName("qhmfvjhahbfmhhkf")
    public suspend fun optionSettings(argument: suspend OptionGroupOptionSettingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            OptionGroupOptionSettingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.optionSettings = mapped
    }

    /**
     * @param values The option settings to include in an option group.
     */
    @JvmName("aeospfjjgxybtqpr")
    public suspend fun optionSettings(vararg values: OptionGroupOptionSettingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.optionSettings = mapped
    }

    /**
     * @param value The version for the option.
     */
    @JvmName("agwyygcjbsybjmky")
    public suspend fun optionVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.optionVersion = mapped
    }

    /**
     * @param value The optional port for the option.
     */
    @JvmName("xceibrjruwqmxvop")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value A list of VpcSecurityGroupMembership name strings used for this option.
     */
    @JvmName("ykocxhitaqfjqirn")
    public suspend fun vpcSecurityGroupMemberships(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcSecurityGroupMemberships = mapped
    }

    /**
     * @param values A list of VpcSecurityGroupMembership name strings used for this option.
     */
    @JvmName("wfjpybgonsdlkvli")
    public suspend fun vpcSecurityGroupMemberships(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcSecurityGroupMemberships = mapped
    }

    internal fun build(): OptionGroupOptionConfigurationArgs = OptionGroupOptionConfigurationArgs(
        dbSecurityGroupMemberships = dbSecurityGroupMemberships,
        optionName = optionName ?: throw PulumiNullFieldException("optionName"),
        optionSettings = optionSettings,
        optionVersion = optionVersion,
        port = port,
        vpcSecurityGroupMemberships = vpcSecurityGroupMemberships,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy