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

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

package com.pulumi.awsnative.rds.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.rds.OptionGroupArgs.builder
import com.pulumi.awsnative.rds.kotlin.inputs.OptionGroupOptionConfigurationArgs
import com.pulumi.awsnative.rds.kotlin.inputs.OptionGroupOptionConfigurationArgsBuilder
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

/**
 * The ``AWS::RDS::OptionGroup`` resource creates or updates an option group, to enable and configure features that are specific to a particular DB engine.
 * @property engineName Specifies the name of the engine that this option group should be associated with.
 *  Valid Values:
 *   +   ``mariadb``
 *   +   ``mysql``
 *   +   ``oracle-ee``
 *   +   ``oracle-ee-cdb``
 *   +   ``oracle-se2``
 *   +   ``oracle-se2-cdb``
 *   +   ``postgres``
 *   +   ``sqlserver-ee``
 *   +   ``sqlserver-se``
 *   +   ``sqlserver-ex``
 *   +   ``sqlserver-web``
 * @property majorEngineVersion Specifies the major version of the engine that this option group should be associated with.
 * @property optionConfigurations A list of options and the settings for each option.
 * @property optionGroupDescription The description of the option group.
 * @property optionGroupName The name of the option group to be created.
 *  Constraints:
 *   +  Must be 1 to 255 letters, numbers, or hyphens
 *   +  First character must be a letter
 *   +  Can't end with a hyphen or contain two consecutive hyphens
 *  Example: ``myoptiongroup``
 *  If you don't specify a value for ``OptionGroupName`` property, a name is automatically created for the option group.
 *   This value is stored as a lowercase string.
 * @property tags An optional array of key-value pairs to apply to this option group.
 */
public data class OptionGroupArgs(
    public val engineName: Output? = null,
    public val majorEngineVersion: Output? = null,
    public val optionConfigurations: Output>? = null,
    public val optionGroupDescription: Output? = null,
    public val optionGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.rds.OptionGroupArgs =
        com.pulumi.awsnative.rds.OptionGroupArgs.builder()
            .engineName(engineName?.applyValue({ args0 -> args0 }))
            .majorEngineVersion(majorEngineVersion?.applyValue({ args0 -> args0 }))
            .optionConfigurations(
                optionConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .optionGroupDescription(optionGroupDescription?.applyValue({ args0 -> args0 }))
            .optionGroupName(optionGroupName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [OptionGroupArgs].
 */
@PulumiTagMarker
public class OptionGroupArgsBuilder internal constructor() {
    private var engineName: Output? = null

    private var majorEngineVersion: Output? = null

    private var optionConfigurations: Output>? = null

    private var optionGroupDescription: Output? = null

    private var optionGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Specifies the name of the engine that this option group should be associated with.
     *  Valid Values:
     *   +   ``mariadb``
     *   +   ``mysql``
     *   +   ``oracle-ee``
     *   +   ``oracle-ee-cdb``
     *   +   ``oracle-se2``
     *   +   ``oracle-se2-cdb``
     *   +   ``postgres``
     *   +   ``sqlserver-ee``
     *   +   ``sqlserver-se``
     *   +   ``sqlserver-ex``
     *   +   ``sqlserver-web``
     */
    @JvmName("xbpynnsakpttrqwe")
    public suspend fun engineName(`value`: Output) {
        this.engineName = value
    }

    /**
     * @param value Specifies the major version of the engine that this option group should be associated with.
     */
    @JvmName("rrcqrewmwbdrosbh")
    public suspend fun majorEngineVersion(`value`: Output) {
        this.majorEngineVersion = value
    }

    /**
     * @param value A list of options and the settings for each option.
     */
    @JvmName("kevaubjdrxdwxnln")
    public suspend fun optionConfigurations(`value`: Output>) {
        this.optionConfigurations = value
    }

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

    /**
     * @param values A list of options and the settings for each option.
     */
    @JvmName("glaeicciyccrfxjq")
    public suspend fun optionConfigurations(values: List>) {
        this.optionConfigurations = Output.all(values)
    }

    /**
     * @param value The description of the option group.
     */
    @JvmName("njtyskkyoublmtmf")
    public suspend fun optionGroupDescription(`value`: Output) {
        this.optionGroupDescription = value
    }

    /**
     * @param value The name of the option group to be created.
     *  Constraints:
     *   +  Must be 1 to 255 letters, numbers, or hyphens
     *   +  First character must be a letter
     *   +  Can't end with a hyphen or contain two consecutive hyphens
     *  Example: ``myoptiongroup``
     *  If you don't specify a value for ``OptionGroupName`` property, a name is automatically created for the option group.
     *   This value is stored as a lowercase string.
     */
    @JvmName("obcuklkaaqbgchye")
    public suspend fun optionGroupName(`value`: Output) {
        this.optionGroupName = value
    }

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

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

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

    /**
     * @param value Specifies the name of the engine that this option group should be associated with.
     *  Valid Values:
     *   +   ``mariadb``
     *   +   ``mysql``
     *   +   ``oracle-ee``
     *   +   ``oracle-ee-cdb``
     *   +   ``oracle-se2``
     *   +   ``oracle-se2-cdb``
     *   +   ``postgres``
     *   +   ``sqlserver-ee``
     *   +   ``sqlserver-se``
     *   +   ``sqlserver-ex``
     *   +   ``sqlserver-web``
     */
    @JvmName("invsumexxbuvhprb")
    public suspend fun engineName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.engineName = mapped
    }

    /**
     * @param value Specifies the major version of the engine that this option group should be associated with.
     */
    @JvmName("ywdgoymlaywlaiwy")
    public suspend fun majorEngineVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.majorEngineVersion = mapped
    }

    /**
     * @param value A list of options and the settings for each option.
     */
    @JvmName("pfsqfslbhjetodxi")
    public suspend fun optionConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.optionConfigurations = mapped
    }

    /**
     * @param argument A list of options and the settings for each option.
     */
    @JvmName("dwifmtnwkvgtkuxv")
    public suspend fun optionConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            OptionGroupOptionConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.optionConfigurations = mapped
    }

    /**
     * @param argument A list of options and the settings for each option.
     */
    @JvmName("wmsqmdugdqkwhvnv")
    public suspend fun optionConfigurations(vararg argument: suspend OptionGroupOptionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            OptionGroupOptionConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.optionConfigurations = mapped
    }

    /**
     * @param argument A list of options and the settings for each option.
     */
    @JvmName("uqfqwqnqtrbmrhda")
    public suspend fun optionConfigurations(argument: suspend OptionGroupOptionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            OptionGroupOptionConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.optionConfigurations = mapped
    }

    /**
     * @param values A list of options and the settings for each option.
     */
    @JvmName("picyaqmnhtqjgtwl")
    public suspend fun optionConfigurations(vararg values: OptionGroupOptionConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.optionConfigurations = mapped
    }

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

    /**
     * @param value The name of the option group to be created.
     *  Constraints:
     *   +  Must be 1 to 255 letters, numbers, or hyphens
     *   +  First character must be a letter
     *   +  Can't end with a hyphen or contain two consecutive hyphens
     *  Example: ``myoptiongroup``
     *  If you don't specify a value for ``OptionGroupName`` property, a name is automatically created for the option group.
     *   This value is stored as a lowercase string.
     */
    @JvmName("gbpwbjcxbsxugdwt")
    public suspend fun optionGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.optionGroupName = mapped
    }

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

    /**
     * @param argument An optional array of key-value pairs to apply to this option group.
     */
    @JvmName("phsjaxamlblobfrg")
    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 optional array of key-value pairs to apply to this option group.
     */
    @JvmName("vmsdfvrjxjaxulix")
    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 optional array of key-value pairs to apply to this option group.
     */
    @JvmName("bseenggmppnyclax")
    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 optional array of key-value pairs to apply to this option group.
     */
    @JvmName("wwskktsiytfcjkyd")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): OptionGroupArgs = OptionGroupArgs(
        engineName = engineName,
        majorEngineVersion = majorEngineVersion,
        optionConfigurations = optionConfigurations,
        optionGroupDescription = optionGroupDescription,
        optionGroupName = optionGroupName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy