modify_db_cluster_parameter_group
async
¶
modify_db_cluster_parameter_group(
*,
config_overrides: Optional[AsyncRDSClientConfig] = None,
db_cluster_parameter_group_name: Optional[String] = None,
parameters: Optional[ParametersList] = None,
) -> DBClusterParameterGroupNameMessage
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.
Parameters:
-
db_cluster_parameter_group_name(Optional[String], default:None) –The name of the DB cluster parameter group to modify.
-
parameters(Optional[ParametersList], default:None) –A list of parameters in the DB cluster parameter group to modify.
Valid Values (for the application method):
immediate | pending-rebootYou can use the
immediatevalue with dynamic parameters only. You can use thepending-rebootvalue for both dynamic and static parameters.When the application method is
immediate, changes to dynamic parameters are applied immediately to the DB clusters associated with the parameter group. When the application method ispending-reboot, changes to dynamic and static parameters are applied after a reboot without failover to the DB clusters associated with the parameter group.
Raises:
-
DBParameterGroupNotFoundFault–DBParameterGroupNamedoesn't refer to an existing DB parameter group. -
InvalidDBParameterGroupStateFault–The DB parameter group is in use or is in an invalid state. If you are attempting to delete the parameter group, you can't delete it when the parameter group is in this state.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To modify parameters in a DB cluster parameter group The following example modifies the values of parameters in a DB cluster parameter group.
>>> await client.modify_db_cluster_parameter_group(db_cluster_parameter_group_name='mydbclusterpg', parameters=[{'ParameterName': 'server_audit_logging', 'ParameterValue': '1', 'ApplyMethod': 'immediate'}, {'ParameterName': 'server_audit_logs_upload', 'ParameterValue': '1', 'ApplyMethod': 'immediate'}])
Source code in docs_src/capo_rds/_services/async_rds.py
11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 | |