modifyDbInstance
inline suspend fun RdsClient.modifyDbInstance(crossinline block: ModifyDbInstanceRequest.Builder.() -> Unit): ModifyDbInstanceResponse
Modifies settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. To learn what modifications you can make to your DB instance, call DescribeValidDBInstanceModifications
before you call ModifyDBInstance
.
Samples
fun main() {
//sampleStart
// The following example associates an option group and a parameter group with a compatible Microsoft
// SQL Server DB instance. The ApplyImmediately parameter causes the option and parameter groups to be
// associated immediately, instead of waiting until the next maintenance window.
val resp = rdsClient.modifyDbInstance {
dbInstanceIdentifier = "database-2"
applyImmediately = true
dbParameterGroupName = "test-sqlserver-se-2017"
optionGroupName = "test-se-2017"
}
//sampleEnd
}