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
10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 | |