modifyDbSubnetGroup

Modifies an existing 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 adds a subnet with the ID subnet 08e41f9e230222222 to the DB subnet group
// named mysubnetgroup. To keep the existing subnets in the subnet group, include their IDs as values in the
// subnet ids option. Make sure to have subnets with at least two different Availability Zones in the DB
// subnet group.
val resp = rdsClient.modifyDbSubnetGroup {
    dbSubnetGroupName = "mysubnetgroup"
    dbSubnetGroupDescription = ""
    subnetIds = listOf<String>(
        "subnet-0a1dc4e1a6f123456",
        "subnet-070dd7ecb3aaaaaaa",
        "subnet-00f5b198bc0abcdef",
        "subnet-08e41f9e230222222"
    )
} 
   //sampleEnd
}