Skip to content

MigrationJob2Props

Properties for defining a MigrationJob2.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-dts-migrationjob2

Initializer

import ros_cdk_dts
ros_cdk_dts.MigrationJob2Props(
  data_initialization: typing.Union[bool, IResolvable],
  data_synchronization: typing.Union[bool, IResolvable],
  db_list: typing.Union[IResolvable, typing.Mapping[typing.Any]],
  destination_endpoint: typing.Union[IResolvable, DestinationEndpointProperty],
  dts_job_name: typing.Union[str, IResolvable],
  source_endpoint: typing.Union[IResolvable, SourceEndpointProperty],
  structure_initialization: typing.Union[bool, IResolvable],
  checkpoint: typing.Union[str, IResolvable] = None,
  data_check_configure: typing.Union[IResolvable, DataCheckConfigureProperty] = None,
  dedicated_cluster_id: typing.Union[str, IResolvable] = None,
  delay_notice: typing.Union[bool, IResolvable] = None,
  delay_phone: typing.Union[str, IResolvable] = None,
  delay_rule_time: typing.Union[typing.Union[int, float], IResolvable] = None,
  disaster_recovery_job: typing.Union[bool, IResolvable] = None,
  dts_bis_label: typing.Union[str, IResolvable] = None,
  dts_instance_id: typing.Union[str, IResolvable] = None,
  dts_job_id: typing.Union[str, IResolvable] = None,
  error_notice: typing.Union[bool, IResolvable] = None,
  error_phone: typing.Union[str, IResolvable] = None,
  file_oss_url: typing.Union[str, IResolvable] = None,
  reserve: typing.Union[IResolvable, typing.Mapping[typing.Any]] = None,
  status: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
data_initialization typing.Union[bool, ros_cdk_core.IResolvable] Property dataInitialization: Specifies whether to perform full data migration or full data synchronization.
data_synchronization typing.Union[bool, ros_cdk_core.IResolvable] Property dataSynchronization: Specifies whether to perform incremental data migration or incremental data synchronization.
db_list typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] Property dbList: The objects that you want to migrate or synchronize.
destination_endpoint typing.Union[ros_cdk_core.IResolvable, DestinationEndpointProperty] Property destinationEndpoint: Destination instance configuration.
dts_job_name typing.Union[str, ros_cdk_core.IResolvable] Property dtsJobName: The name of the DTS instance.
source_endpoint typing.Union[ros_cdk_core.IResolvable, SourceEndpointProperty] Property sourceEndpoint: Source instance configuration.
structure_initialization typing.Union[bool, ros_cdk_core.IResolvable] Property structureInitialization: Specifies whether to perform schema migration or schema synchronization.
checkpoint typing.Union[str, ros_cdk_core.IResolvable] Property checkpoint: The start offset of incremental data migration or synchronization.
data_check_configure typing.Union[ros_cdk_core.IResolvable, DataCheckConfigureProperty] Property dataCheckConfigure: The data verification task for a data migration or synchronization instance.
dedicated_cluster_id typing.Union[str, ros_cdk_core.IResolvable] Property dedicatedClusterId: The ID of the DTS dedicated cluster on which the task runs.
delay_notice typing.Union[bool, ros_cdk_core.IResolvable] Property delayNotice: Specifies whether to monitor the task latency.
delay_phone typing.Union[str, ros_cdk_core.IResolvable] Property delayPhone: The mobile numbers that receive latency-related alerts.
delay_rule_time typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property delayRuleTime: The threshold for latency alerts.
disaster_recovery_job typing.Union[bool, ros_cdk_core.IResolvable] Property disasterRecoveryJob: Specifies whether the instance is a disaster recovery instance.
dts_bis_label typing.Union[str, ros_cdk_core.IResolvable] Property dtsBisLabel: The environment tag of the DTS instance.
dts_instance_id typing.Union[str, ros_cdk_core.IResolvable] Property dtsInstanceId: The ID of the DTS instance.
dts_job_id typing.Union[str, ros_cdk_core.IResolvable] Property dtsJobId: The ID of the DTS task.
error_notice typing.Union[bool, ros_cdk_core.IResolvable] Property errorNotice: Specifies whether to monitor the task status.
error_phone typing.Union[str, ros_cdk_core.IResolvable] Property errorPhone: The mobile numbers that receive status-related alerts.
file_oss_url typing.Union[str, ros_cdk_core.IResolvable] Property fileOssUrl: The URL of the Object Storage Service (OSS) bucket that stores the files related to the DTS task.
reserve typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] Property reserve: The reserved parameter of DTS.
status typing.Union[str, ros_cdk_core.IResolvable] Property status: The status of the resource.

data_initializationRequired

data_initialization: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property dataInitialization: Specifies whether to perform full data migration or full data synchronization.

Default value: true. Valid values: true and false.


data_synchronizationRequired

data_synchronization: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property dataSynchronization: Specifies whether to perform incremental data migration or incremental data synchronization.

Default value: false. Valid values: true and false.


db_listRequired

db_list: typing.Union[IResolvable, typing.Mapping[typing.Any]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]

Property dbList: The objects that you want to migrate or synchronize.


destination_endpointRequired

destination_endpoint: typing.Union[IResolvable, DestinationEndpointProperty]

Property destinationEndpoint: Destination instance configuration.


dts_job_nameRequired

dts_job_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property dtsJobName: The name of the DTS instance.


source_endpointRequired

source_endpoint: typing.Union[IResolvable, SourceEndpointProperty]

Property sourceEndpoint: Source instance configuration.


structure_initializationRequired

structure_initialization: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property structureInitialization: Specifies whether to perform schema migration or schema synchronization.

Default value: true. Valid values: true and false.


checkpointOptional

checkpoint: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property checkpoint: The start offset of incremental data migration or synchronization.

This value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC.


data_check_configureOptional

data_check_configure: typing.Union[IResolvable, DataCheckConfigureProperty]

Property dataCheckConfigure: The data verification task for a data migration or synchronization instance.


dedicated_cluster_idOptional

dedicated_cluster_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property dedicatedClusterId: The ID of the DTS dedicated cluster on which the task runs.


delay_noticeOptional

delay_notice: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property delayNotice: Specifies whether to monitor the task latency.

Valid values: true and false


delay_phoneOptional

delay_phone: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property delayPhone: The mobile numbers that receive latency-related alerts.

Separate multiple mobile numbers with commas (,). Note: This parameter is available only for users of the China site (aliyun.com). Only mobile numbers in the Chinese mainland are supported. You can specify up to 10 mobile numbers. Users of the international site (alibabacloud.com) cannot receive alerts by using mobile numbers, but can configure alert rules for DTS tasks in the CloudMonitor console.


delay_rule_timeOptional

delay_rule_time: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property delayRuleTime: The threshold for latency alerts.

Unit: seconds. You can set the threshold based on your business requirements. To prevent jitters caused by network and database overloads, we recommend that you set the threshold to more than 10 seconds.


disaster_recovery_jobOptional

disaster_recovery_job: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property disasterRecoveryJob: Specifies whether the instance is a disaster recovery instance.

Valid values: true and false


dts_bis_labelOptional

dts_bis_label: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property dtsBisLabel: The environment tag of the DTS instance.

Valid values: normal and online.


dts_instance_idOptional

dts_instance_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property dtsInstanceId: The ID of the DTS instance.


dts_job_idOptional

dts_job_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property dtsJobId: The ID of the DTS task.


error_noticeOptional

error_notice: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property errorNotice: Specifies whether to monitor the task status.

Valid values: true and false.


error_phoneOptional

error_phone: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property errorPhone: The mobile numbers that receive status-related alerts.

Separate multiple mobile numbers with commas (,). Note: This parameter is available only for users of the China site (aliyun.com). Only mobile numbers in the Chinese mainland are supported. You can specify up to 10 mobile numbers. Users of the international site (alibabacloud.com) cannot receive alerts by using mobile numbers, but can configure alert rules for DTS tasks in the CloudMonitor console.


file_oss_urlOptional

file_oss_url: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property fileOssUrl: The URL of the Object Storage Service (OSS) bucket that stores the files related to the DTS task.


reserveOptional

reserve: typing.Union[IResolvable, typing.Mapping[typing.Any]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]

Property reserve: The reserved parameter of DTS.

You can specify this parameter to add more configurations of the source or destination instance to the DTS task. For example, you can specify the data storage format of the destination Kafka database and the ID of the CEN instance.


statusOptional

status: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property status: The status of the resource.

Valid values:

  • Migrating: Start the task.
  • Suspending: Suspend the task.
  • Stopping: Stop the task.