modify_replication_instance
async
¶
modify_replication_instance(
replication_instance_arn: String,
*,
config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = 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.
>>> await 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/async_database_migration_service.py
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 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 | |