modify_db_instance
async
¶
modify_db_instance(
*,
config_overrides: Optional[AsyncNeptuneClientConfig] = None,
db_instance_identifier: Optional[String] = None,
allocated_storage: Optional[IntegerOptional] = None,
db_instance_class: Optional[String] = None,
db_subnet_group_name: Optional[String] = None,
db_security_groups: Optional[DBSecurityGroupNameList] = None,
vpc_security_group_ids: Optional[VpcSecurityGroupIdList] = None,
apply_immediately: Optional[Boolean] = None,
master_user_password: Optional[String] = None,
db_parameter_group_name: Optional[String] = None,
backup_retention_period: Optional[IntegerOptional] = None,
preferred_backup_window: Optional[String] = None,
preferred_maintenance_window: Optional[String] = None,
multi_az: Optional[BooleanOptional] = None,
engine_version: Optional[String] = None,
allow_major_version_upgrade: Optional[Boolean] = None,
auto_minor_version_upgrade: Optional[BooleanOptional] = None,
license_model: Optional[String] = None,
iops: Optional[IntegerOptional] = None,
option_group_name: Optional[String] = None,
new_db_instance_identifier: Optional[String] = None,
storage_type: Optional[String] = None,
tde_credential_arn: Optional[String] = None,
tde_credential_password: Optional[SensitiveString] = None,
ca_certificate_identifier: Optional[String] = None,
domain: Optional[String] = None,
copy_tags_to_snapshot: Optional[BooleanOptional] = None,
monitoring_interval: Optional[IntegerOptional] = None,
db_port_number: Optional[IntegerOptional] = None,
publicly_accessible: Optional[BooleanOptional] = None,
monitoring_role_arn: Optional[String] = None,
domain_iam_role_name: Optional[String] = None,
promotion_tier: Optional[IntegerOptional] = None,
enable_iam_database_authentication: Optional[BooleanOptional] = None,
enable_performance_insights: Optional[BooleanOptional] = None,
performance_insights_kms_key_id: Optional[String] = None,
cloudwatch_logs_export_configuration: Optional[
CloudwatchLogsExportConfiguration
] = None,
deletion_protection: Optional[BooleanOptional] = None,
) -> ModifyDBInstanceResult
Modifies settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. To learn what modifications you can make to your DB instance, call DescribeValidDBInstanceModifications before you call ModifyDBInstance.
Parameters:
-
db_instance_identifier(Optional[String], default:None) –The DB instance identifier. This value is stored as a lowercase string.
Constraints:
-
Must match the identifier of an existing DBInstance.
-
-
allocated_storage(Optional[IntegerOptional], default:None) –Not supported by Neptune.
-
db_instance_class(Optional[String], default:None) –The new compute and memory capacity of the DB instance, for example,
db.m4.large. Not all DB instance classes are available in all Amazon Regions.If you modify the DB instance class, an outage occurs during the change. The change is applied during the next maintenance window, unless
ApplyImmediatelyis specified astruefor this request.Default: Uses existing setting
-
db_subnet_group_name(Optional[String], default:None) –The new DB subnet group for the DB instance. You can use this parameter to move your DB instance to a different VPC.
Changing the subnet group causes an outage during the change. The change is applied during the next maintenance window, unless you specify
truefor theApplyImmediatelyparameter.Constraints: If supplied, must match the name of an existing DBSubnetGroup.
Example:
mySubnetGroup -
db_security_groups(Optional[DBSecurityGroupNameList], default:None) –A list of DB security groups to authorize on this DB instance. Changing this setting doesn't result in an outage and the change is asynchronously applied as soon as possible.
Constraints:
-
If supplied, must match existing DBSecurityGroups.
-
-
vpc_security_group_ids(Optional[VpcSecurityGroupIdList], default:None) –A list of EC2 VPC security groups to authorize on this DB instance. This change is asynchronously applied as soon as possible.
Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see ModifyDBCluster.
Constraints:
-
If supplied, must match existing VpcSecurityGroupIds.
-
-
apply_immediately(Optional[Boolean], default:None) –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 instance.If this parameter is set to
false, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and are applied on the next call to RebootDBInstance, or the next failure reboot.Default:
false -
master_user_password(Optional[String], default:None) –Not supported by Neptune.
-
db_parameter_group_name(Optional[String], default:None) –The name of the DB parameter group to apply to the DB instance. Changing this setting doesn't result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. The db instance will NOT be rebooted automatically and the parameter changes will NOT be applied during the next maintenance window.
Default: Uses existing setting
Constraints: The DB parameter group must be in the same DB parameter group family as this DB instance.
-
backup_retention_period(Optional[IntegerOptional], default:None) –Not applicable. The retention period for automated backups is managed by the DB cluster. For more information, see ModifyDBCluster.
Default: Uses existing setting
-
preferred_backup_window(Optional[String], default:None) –The daily time range during which automated backups are created if automated backups are enabled.
Not applicable. The daily time range for creating automated backups is managed by the DB cluster. For more information, see ModifyDBCluster.
Constraints:
-
Must be in the format hh24:mi-hh24:mi
-
Must be in Universal Time Coordinated (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 (in UTC) during which system maintenance can occur, which might result in an outage. Changing this parameter doesn't result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter will cause a reboot of the DB instance. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.
Default: Uses existing setting
Format: ddd:hh24:mi-ddd:hh24:mi
Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
Constraints: Must be at least 30 minutes
-
multi_az(Optional[BooleanOptional], default:None) –Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter doesn't result in an outage and the change is applied during the next maintenance window unless the
ApplyImmediatelyparameter is set totruefor this request. -
engine_version(Optional[String], default:None) –The version number of the database engine to upgrade to. Currently, setting this parameter has no effect. To upgrade your database engine to the most recent release, use the ApplyPendingMaintenanceAction API.
-
allow_major_version_upgrade(Optional[Boolean], default:None) –Indicates that major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible.
-
auto_minor_version_upgrade(Optional[BooleanOptional], default:None) –Indicates that minor version upgrades are applied automatically to the DB instance during the maintenance window. Changing this parameter doesn't result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to
trueduring the maintenance window, and a newer minor version is available, and Neptune has enabled auto patching for that engine version. -
license_model(Optional[String], default:None) –Not supported by Neptune.
-
iops(Optional[IntegerOptional], default:None) –The new Provisioned IOPS (I/O operations per second) value for the instance.
Changing this setting doesn't result in an outage and the change is applied during the next maintenance window unless the
ApplyImmediatelyparameter is set totruefor this request.Default: Uses existing setting
-
option_group_name(Optional[String], default:None) –(Not supported by Neptune)
-
new_db_instance_identifier(Optional[String], default:None) –The new DB instance identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot will occur immediately if you set
Apply Immediatelyto true, or will occur during the next maintenance window ifApply Immediatelyto false. 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:
mydbinstance -
-
storage_type(Optional[String], default:None) –Not applicable. In Neptune the storage type is managed at the DB Cluster level.
-
tde_credential_arn(Optional[String], default:None) –The ARN from the key store with which to associate the instance for TDE encryption.
-
tde_credential_password(Optional[SensitiveString], default:None) –The password for the given ARN from the key store in order to access the device.
-
ca_certificate_identifier(Optional[String], default:None) –Indicates the certificate that needs to be associated with the instance.
-
domain(Optional[String], default:None) –Not supported.
-
copy_tags_to_snapshot(Optional[BooleanOptional], default:None) –True to copy all tags from the DB instance to snapshots of the DB instance, and otherwise false. The default is false.
-
monitoring_interval(Optional[IntegerOptional], default:None) –The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0.
If
MonitoringRoleArnis specified, then you must also setMonitoringIntervalto a value other than 0.Valid Values:
0, 1, 5, 10, 15, 30, 60 -
db_port_number(Optional[IntegerOptional], default:None) –The port number on which the database accepts connections.
The value of the
DBPortNumberparameter must not match any of the port values specified for options in the option group for the DB instance.Your database will restart when you change the
DBPortNumbervalue regardless of the value of theApplyImmediatelyparameter.Default:
8182 -
publicly_accessible(Optional[BooleanOptional], default:None) –Indicates whether the DB instance is publicly accessible.
When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it.
When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.
-
monitoring_role_arn(Optional[String], default:None) –The ARN for the IAM role that permits Neptune to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example,
arn:aws:iam:123456789012:role/emaccess.If
MonitoringIntervalis set to a value other than 0, then you must supply aMonitoringRoleArnvalue. -
domain_iam_role_name(Optional[String], default:None) –Not supported
-
promotion_tier(Optional[IntegerOptional], default:None) –A value that specifies the order in which a Read Replica is promoted to the primary instance after a failure of the existing primary instance.
Default: 1
Valid Values: 0 - 15
-
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.
You can enable IAM database authentication for the following database engines
Not applicable. Mapping Amazon IAM accounts to database accounts is managed by the DB cluster. For more information, see ModifyDBCluster.
Default:
false -
enable_performance_insights(Optional[BooleanOptional], default:None) –(Not supported by Neptune)
-
performance_insights_kms_key_id(Optional[String], default:None) –(Not supported by Neptune)
-
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 instance or DB cluster.
-
deletion_protection(Optional[BooleanOptional], default:None) –A value that indicates whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. See Deleting a DB Instance.
Raises:
-
AuthorizationNotFoundFault–Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.
Neptune may not also be authorized via IAM to perform necessary actions on your behalf.
-
CertificateNotFoundFault–CertificateIdentifier does not refer to an existing certificate.
-
DBInstanceAlreadyExistsFault–User already has a DB instance with the given identifier.
-
DBInstanceNotFoundFault–DBInstanceIdentifier does not refer to an existing DB instance.
-
DBParameterGroupNotFoundFault–DBParameterGroupName does not refer to an existing DB parameter group.
-
DBSecurityGroupNotFoundFault–DBSecurityGroupName does not refer to an existing DB security group.
-
DBUpgradeDependencyFailureFault–The DB upgrade failed because a resource the DB depends on could not be modified.
-
DomainNotFoundFault–Domain does not refer to an existing Active Directory Domain.
-
InsufficientDBInstanceCapacityFault–Specified DB instance class is not available in the specified Availability Zone.
-
InvalidDBInstanceStateFault–The specified DB instance is not in the available state.
-
InvalidDBSecurityGroupStateFault–The state of the DB security group does not allow deletion.
-
InvalidVPCNetworkStateFault–DB subnet group does not cover all Availability Zones after it is created because users' change.
-
OptionGroupNotFoundFault–The designated option group could not be found.
-
ProvisionedIopsNotAvailableInAZFault–Provisioned IOPS not available in the specified Availability Zone.
-
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/async_neptune.py
4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 | |