createDbSubnetGroup
inline suspend fun RdsClient.createDbSubnetGroup(crossinline block: CreateDbSubnetGroupRequest.Builder.() -> Unit): CreateDbSubnetGroupResponse
Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Web Services Region.
Samples
fun main() {
//sampleStart
// The following example creates a DB subnet group called mysubnetgroup using existing subnets.
val resp = rdsClient.createDbSubnetGroup {
dbSubnetGroupName = "mysubnetgroup"
dbSubnetGroupDescription = "test DB subnet group"
subnetIds = listOf<String>(
"subnet-0a1dc4e1a6f123456",
"subnet-070dd7ecb3aaaaaaa",
"subnet-00f5b198bc0abcdef"
)
}
//sampleEnd
}