modifyDbClusterParameterGroup
Modifies the parameters of a DB cluster parameter group. To modify more than one parameter, submit a list of the following: ParameterName
, ParameterValue
, and ApplyMethod
. A maximum of 20 parameters can be modified in a single request.
There are two types of parameters - dynamic parameters and static parameters. Changes to dynamic parameters are applied to the DB cluster immediately without a reboot. Changes to static parameters are applied only after the DB cluster is rebooted, which can be done using RebootDBCluster
operation. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBClusterParameters
operation to verify that your DB cluster parameter group has been created or modified.
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
import aws.sdk.kotlin.services.rds.model.ApplyMethod
import aws.sdk.kotlin.services.rds.model.Parameter
fun main() {
//sampleStart
// The following example modifies the values of parameters in a DB cluster parameter group.
val resp = rdsClient.modifyDbClusterParameterGroup {
dbClusterParameterGroupName = "mydbclusterpg"
parameters = listOf<Parameter>(
Parameter {
parameterName = "server_audit_logging"
parameterValue = "1"
applyMethod = ApplyMethod.fromValue("immediate")
},
Parameter {
parameterName = "server_audit_logs_upload"
parameterValue = "1"
applyMethod = ApplyMethod.fromValue("immediate")
}
)
}
//sampleEnd
}