modifyDbCluster
inline suspend fun RdsClient.modifyDbCluster(crossinline block: ModifyDbClusterRequest.Builder.() -> Unit): ModifyDbClusterResponse
Modifies the settings of an Amazon Aurora DB cluster or a Multi-AZ DB cluster. You can change one or more settings by specifying these parameters and the new values in the request.
For more information on Amazon Aurora DB clusters, see What is Amazon Aurora? in the Amazon Aurora User Guide.
For more information on Multi-AZ DB clusters, see Multi-AZ DB cluster deployments in the Amazon RDS User Guide.
Samples
fun main() {
//sampleStart
// The following example changes the master user password for the DB cluster named cluster 2 and sets
// the backup retention period to 14 days. The ApplyImmediately parameter causes the changes to be made
// immediately, instead of waiting until the next maintenance window.
val resp = rdsClient.modifyDbCluster {
dbClusterIdentifier = "cluster-2"
applyImmediately = true
backupRetentionPeriod = 14
masterUserPassword = "newpassword99"
}
//sampleEnd
}