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
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 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 | |