modify_global_cluster
¶
modify_global_cluster(
*,
config_overrides: Optional[NeptuneClientConfig] = None,
global_cluster_identifier: Optional[GlobalClusterIdentifier] = None,
new_global_cluster_identifier: Optional[GlobalClusterIdentifier] = None,
deletion_protection: Optional[BooleanOptional] = None,
engine_version: Optional[String] = None,
allow_major_version_upgrade: Optional[BooleanOptional] = None,
) -> ModifyGlobalClusterResult
Modify a setting for an Amazon Neptune global cluster. You can change one or more database configuration parameters by specifying these parameters and their new values in the request.
Parameters:
-
global_cluster_identifier(Optional[GlobalClusterIdentifier], default:None) –The DB cluster identifier for the global cluster being modified. This parameter is not case-sensitive.
Constraints: Must match the identifier of an existing global database cluster.
-
new_global_cluster_identifier(Optional[GlobalClusterIdentifier], default:None) –A new cluster identifier to assign to the global database. This value is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 letters, numbers, or hyphens.
-
The first character must be a letter.
-
Can't end with a hyphen or contain two consecutive hyphens
Example:
my-cluster2 -
-
deletion_protection(Optional[BooleanOptional], default:None) –Indicates whether the global database has deletion protection enabled. The global database cannot be deleted when deletion protection is enabled.
-
engine_version(Optional[String], default:None) –The version number of the database engine to which you want to upgrade. Changing this parameter will result in an outage. The change is applied during the next maintenance window unless
ApplyImmediatelyis enabled.To list all of the available Neptune engine versions, use the following command:
-
allow_major_version_upgrade(Optional[BooleanOptional], default:None) –A value that indicates whether major version upgrades are allowed.
Constraints: You must allow major version upgrades if you specify a value for the
EngineVersionparameter that is a different major version than the DB cluster's current version.If you upgrade the major version of a global database, the cluster and DB instance parameter groups are set to the default parameter groups for the new version, so you will need to apply any custom parameter groups after completing the upgrade.
Raises:
-
GlobalClusterAlreadyExistsFault–The
GlobalClusterIdentifieralready exists. Choose a new global database identifier (unique name) to create a new global database cluster. -
GlobalClusterNotFoundFault–The
GlobalClusterIdentifierdoesn't refer to an existing global database cluster. -
InvalidDBClusterStateFault–The DB cluster is not in a valid state.
-
InvalidDBInstanceStateFault–The specified DB instance is not in the available state.
-
InvalidGlobalClusterStateFault–The global cluster is in an invalid state and can't perform the requested operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_neptune/_services/neptune.py
4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 | |