modify_replication_instance
¶
modify_replication_instance(
replication_instance_arn: String,
*,
config_overrides: Optional[DatabaseMigrationServiceClientConfig] = None,
allocated_storage: Optional[IntegerOptional] = None,
apply_immediately: Optional[Boolean] = None,
replication_instance_class: Optional[ReplicationInstanceClass] = None,
vpc_security_group_ids: Optional[VpcSecurityGroupIdList] = 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,
replication_instance_identifier: Optional[String] = None,
network_type: Optional[String] = None,
kerberos_authentication_settings: Optional[KerberosAuthenticationSettings] = None,
) -> ModifyReplicationInstanceResponse
Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request.
Some settings are applied during the maintenance window.
Parameters:
-
replication_instance_arn(String) –The Amazon Resource Name (ARN) of the replication instance.
-
allocated_storage(Optional[IntegerOptional], default:None) –The amount of storage (in gigabytes) to be allocated for the replication instance.
-
apply_immediately(Optional[Boolean], default:None) –Indicates whether the changes should be applied immediately or during the next maintenance window.
-
replication_instance_class(Optional[ReplicationInstanceClass], default:None) –The compute and memory capacity of the replication instance as defined for the specified replication instance class. For example to specify the instance class dms.c4.large, set this parameter to
"dms.c4.large".For more information on the settings and capacities for the available replication instance classes, see Selecting the right DMS replication instance for your migration.
-
vpc_security_group_ids(Optional[VpcSecurityGroupIdList], default:None) –Specifies the VPC security group to be used with the replication instance. The VPC security group must work with the VPC containing the replication instance.
-
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 does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. 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 whether the replication instance is a Multi-AZ deployment. You can't set the
AvailabilityZoneparameter if the Multi-AZ parameter is set totrue. -
engine_version(Optional[String], default:None) –The engine version number of the replication instance.
When modifying a major engine version of an instance, also set
AllowMajorVersionUpgradetotrue. -
allow_major_version_upgrade(Optional[Boolean], default:None) –Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage, and the change is asynchronously applied as soon as possible.
This parameter must be set to
truewhen specifying a value for theEngineVersionparameter that is a different major version than the replication instance's current version. -
auto_minor_version_upgrade(Optional[BooleanOptional], default:None) –A value that indicates that minor version upgrades are applied automatically to the replication instance during the maintenance window. Changing this parameter doesn't result in an outage, except in the case described following. The change is asynchronously applied as soon as possible.
An outage does result if these factors apply:
-
This parameter is set to
trueduring the maintenance window. -
A newer minor version is available.
-
DMS has enabled automatic patching for the given engine version.
-
-
replication_instance_identifier(Optional[String], default:None) –The replication instance identifier. This parameter is stored as a lowercase string.
-
network_type(Optional[String], default:None) –The type of IP address protocol used by a replication instance, such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported.
-
kerberos_authentication_settings(Optional[KerberosAuthenticationSettings], default:None) –Specifies the settings required for kerberos authentication when modifying a replication instance.
Raises:
-
AccessDeniedFault–DMS was denied access to the endpoint. Check that the role is correctly configured.
-
InsufficientResourceCapacityFault–There are not enough resources allocated to the database migration.
-
InvalidResourceStateFault–The resource is in a state that prevents it from being used for database migration.
-
ResourceAlreadyExistsFault–The resource you are attempting to create already exists.
-
ResourceNotFoundFault–The resource could not be found.
-
StorageQuotaExceededFault–The storage quota has been exceeded.
-
UpgradeDependencyFailureFault–An upgrade dependency is preventing the database migration.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Modify replication instance Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request. Some settings are applied during the maintenance window.
>>> client.modify_replication_instance(replication_instance_arn='arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ', allocated_storage=123, apply_immediately=True, replication_instance_class='dms.t2.micro', vpc_security_group_ids=[], preferred_maintenance_window='sun:06:00-sun:14:00', multi_az=True, engine_version='1.5.0', allow_major_version_upgrade=True, auto_minor_version_upgrade=True, replication_instance_identifier='test-rep-1')
Source code in docs_src/capo_database_migration_service/_services/database_migration_service.py
8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 | |