![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.rds.kotlin.DbSubnetGroupArgs.kt Maven / Gradle / Ivy
@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.DbSubnetGroupArgs.builder
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::DBSubnetGroup`` resource creates a database subnet group. Subnet groups must contain at least two subnets in two different Availability Zones in the same region.
* For more information, see [Working with DB subnet groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Subnets) in the *Amazon RDS User Guide*.
* @property dbSubnetGroupDescription The description for the DB subnet group.
* @property dbSubnetGroupName The name for the DB subnet group. This value is stored as a lowercase string.
* Constraints:
* + Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens.
* + Must not be default.
* + First character must be a letter.
* Example: ``mydbsubnetgroup``
* @property subnetIds The EC2 Subnet IDs for the DB subnet group.
* @property tags Tags to assign to the DB subnet group.
*/
public data class DbSubnetGroupArgs(
public val dbSubnetGroupDescription: Output? = null,
public val dbSubnetGroupName: Output? = null,
public val subnetIds: Output>? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.rds.DbSubnetGroupArgs =
com.pulumi.awsnative.rds.DbSubnetGroupArgs.builder()
.dbSubnetGroupDescription(dbSubnetGroupDescription?.applyValue({ args0 -> args0 }))
.dbSubnetGroupName(dbSubnetGroupName?.applyValue({ args0 -> args0 }))
.subnetIds(subnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [DbSubnetGroupArgs].
*/
@PulumiTagMarker
public class DbSubnetGroupArgsBuilder internal constructor() {
private var dbSubnetGroupDescription: Output? = null
private var dbSubnetGroupName: Output? = null
private var subnetIds: Output>? = null
private var tags: Output>? = null
/**
* @param value The description for the DB subnet group.
*/
@JvmName("nykripbhguwdlpti")
public suspend fun dbSubnetGroupDescription(`value`: Output) {
this.dbSubnetGroupDescription = value
}
/**
* @param value The name for the DB subnet group. This value is stored as a lowercase string.
* Constraints:
* + Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens.
* + Must not be default.
* + First character must be a letter.
* Example: ``mydbsubnetgroup``
*/
@JvmName("toxuscgmpdrtscki")
public suspend fun dbSubnetGroupName(`value`: Output) {
this.dbSubnetGroupName = value
}
/**
* @param value The EC2 Subnet IDs for the DB subnet group.
*/
@JvmName("ppvqkchewawhgmyd")
public suspend fun subnetIds(`value`: Output>) {
this.subnetIds = value
}
@JvmName("atvmlumpmbvsktpr")
public suspend fun subnetIds(vararg values: Output) {
this.subnetIds = Output.all(values.asList())
}
/**
* @param values The EC2 Subnet IDs for the DB subnet group.
*/
@JvmName("vytqylkuyofiygwd")
public suspend fun subnetIds(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy