modify_db_cluster
¶
modify_db_cluster(
*,
config_overrides: Optional[NeptuneClientConfig] = None,
db_cluster_identifier: Optional[String] = None,
new_db_cluster_identifier: Optional[String] = None,
apply_immediately: Optional[Boolean] = None,
backup_retention_period: Optional[IntegerOptional] = None,
db_cluster_parameter_group_name: Optional[String] = None,
vpc_security_group_ids: Optional[VpcSecurityGroupIdList] = None,
port: Optional[IntegerOptional] = None,
master_user_password: Optional[String] = None,
option_group_name: Optional[String] = None,
preferred_backup_window: Optional[String] = None,
preferred_maintenance_window: Optional[String] = None,
enable_iam_database_authentication: Optional[BooleanOptional] = None,
cloudwatch_logs_export_configuration: Optional[
CloudwatchLogsExportConfiguration
] = None,
engine_version: Optional[String] = None,
allow_major_version_upgrade: Optional[Boolean] = None,
db_instance_parameter_group_name: Optional[String] = None,
deletion_protection: Optional[BooleanOptional] = None,
copy_tags_to_snapshot: Optional[BooleanOptional] = None,
serverless_v2_scaling_configuration: Optional[
ServerlessV2ScalingConfiguration
] = None,
storage_type: Optional[String] = None,
network_type: Optional[String] = None,
) -> ModifyDBClusterResult
Modify a setting for a DB cluster. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.
Parameters:
-
db_cluster_identifier(Optional[String], default:None) –The DB cluster identifier for the cluster being modified. This parameter is not case-sensitive.
Constraints:
-
Must match the identifier of an existing DBCluster.
-
-
new_db_cluster_identifier(Optional[String], default:None) –The new DB cluster identifier for the DB cluster when renaming a DB cluster. 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
-
Cannot end with a hyphen or contain two consecutive hyphens
Example:
my-cluster2 -
-
apply_immediately(Optional[Boolean], default:None) –A value that specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the
PreferredMaintenanceWindowsetting for the DB cluster. If this parameter is set tofalse, changes to the DB cluster are applied during the next maintenance window.The
ApplyImmediatelyparameter only affectsNewDBClusterIdentifiervalues. If you set theApplyImmediatelyparameter value to false, then changes toNewDBClusterIdentifiervalues are applied during the next maintenance window. All other changes are applied immediately, regardless of the value of theApplyImmediatelyparameter.Default:
false -
backup_retention_period(Optional[IntegerOptional], default:None) –The number of days for which automated backups are retained. You must specify a minimum value of 1.
Default: 1
Constraints:
-
Must be a value from 1 to 35
-
-
db_cluster_parameter_group_name(Optional[String], default:None) –The name of the DB cluster parameter group to use for the DB cluster.
-
vpc_security_group_ids(Optional[VpcSecurityGroupIdList], default:None) –A list of VPC security groups that the DB cluster will belong to.
-
port(Optional[IntegerOptional], default:None) –The port number on which the DB cluster accepts connections.
Constraints: Value must be
1150-65535Default: The same port as the original DB cluster.
-
master_user_password(Optional[String], default:None) –Not supported by Neptune.
-
option_group_name(Optional[String], default:None) –Not supported by Neptune.
-
preferred_backup_window(Optional[String], default:None) –The daily time range during which automated backups are created if automated backups are enabled, using the
BackupRetentionPeriodparameter.The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region.
Constraints:
-
Must be in the format
hh24:mi-hh24:mi. -
Must be in Universal Coordinated Time (UTC).
-
Must not conflict with the preferred maintenance window.
-
Must be at least 30 minutes.
-
-
preferred_maintenance_window(Optional[String], default:None) –The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format:
ddd:hh24:mi-ddd:hh24:miThe default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region, occurring on a random day of the week.
Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
Constraints: Minimum 30-minute window.
-
enable_iam_database_authentication(Optional[BooleanOptional], default:None) –True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.
Default:
false -
cloudwatch_logs_export_configuration(Optional[CloudwatchLogsExportConfiguration], default:None) –The configuration setting for the log types to be enabled for export to CloudWatch Logs for a specific DB cluster. See Using the CLI to publish Neptune audit logs to CloudWatch Logs.
-
engine_version(Optional[String], default:None) –The version number of the database engine to which you want to upgrade. Changing this parameter results in an outage. The change is applied during the next maintenance window unless the
ApplyImmediatelyparameter is set to true.For a list of valid engine versions, see Engine Releases for Amazon Neptune, or call DescribeDBEngineVersions.
-
allow_major_version_upgrade(Optional[Boolean], default:None) –A value that indicates whether upgrades between different major versions are allowed.
Constraints: You must set the allow-major-version-upgrade flag when providing an
EngineVersionparameter that uses a different major version than the DB cluster's current version. -
db_instance_parameter_group_name(Optional[String], default:None) –The name of the DB parameter group to apply to all instances of the DB cluster.
When you apply a parameter group using
DBInstanceParameterGroupName, parameter changes aren't applied during the next maintenance window but instead are applied immediately.Default: The existing name setting
Constraints:
-
The DB parameter group must be in the same DB parameter group family as the target DB cluster version.
-
The
DBInstanceParameterGroupNameparameter is only valid in combination with theAllowMajorVersionUpgradeparameter.
-
-
deletion_protection(Optional[BooleanOptional], default:None) –A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.
-
copy_tags_to_snapshot(Optional[BooleanOptional], default:None) –If set to
true, tags are copied to any snapshot of the DB cluster that is created. -
serverless_v2_scaling_configuration(Optional[ServerlessV2ScalingConfiguration], default:None) –Contains the scaling configuration of a Neptune Serverless DB cluster.
For more information, see Using Amazon Neptune Serverless in the Amazon Neptune User Guide.
-
storage_type(Optional[String], default:None) –The storage type to associate with the DB cluster.
Valid Values:
-
standard– ( the default ) Configures cost-effective database storage for applications with moderate to small I/O usage. -
iopt1– Enables I/O-Optimized storage that's designed to meet the needs of I/O-intensive graph workloads that require predictable pricing with low I/O latency and consistent I/O throughput.Neptune I/O-Optimized storage is only available starting with engine release 1.3.0.0.
-
-
network_type(Optional[String], default:None) –The network type of the DB cluster.
Valid Values:
-
IPV4– The DB cluster uses only IPv4 addresses for communication. -
DUAL– The DB cluster uses both IPv4 and IPv6 addresses for communication. The DB subnet group associated with the cluster must support IPv6.
-
Raises:
-
DBClusterAlreadyExistsFault–User already has a DB cluster with the given identifier.
-
DBClusterNotFoundFault–DBClusterIdentifier does not refer to an existing DB cluster.
-
DBClusterParameterGroupNotFoundFault–DBClusterParameterGroupName does not refer to an existing DB Cluster parameter group.
-
DBSubnetGroupNotFoundFault–DBSubnetGroupName does not refer to an existing DB subnet group.
-
InvalidDBClusterStateFault–The DB cluster is not in a valid state.
-
InvalidDBInstanceStateFault–The specified DB instance is not in the available state.
-
InvalidDBSecurityGroupStateFault–The state of the DB security group does not allow deletion.
-
InvalidDBSubnetGroupStateFault–The DB subnet group cannot be deleted because it is in use.
-
InvalidSubnet–The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.
-
InvalidVPCNetworkStateFault–DB subnet group does not cover all Availability Zones after it is created because users' change.
-
NetworkTypeNotSupportedFault–The specified NetworkType is not supported for the DB cluster, DB subnet group, or orderable DB instance option.
-
StorageQuotaExceededFault–Request would result in user exceeding the allowed amount of storage available across all DB instances.
-
StorageTypeNotSupportedFault–StorageType specified cannot be associated with the DB Instance.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_neptune/_services/neptune.py
4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 | |