com.pulumi.awsnative.rds.kotlin.OptionGroupArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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