create_data_migration
async
¶
create_data_migration(
migration_project_identifier: String,
data_migration_type: MigrationTypeValue,
service_access_role_arn: String,
*,
config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None,
data_migration_name: Optional[String] = None,
enable_cloudwatch_logs: Optional[BooleanOptional] = None,
source_data_settings: Optional[SourceDataSettings] = None,
target_data_settings: Optional[TargetDataSettings] = None,
number_of_jobs: Optional[IntegerOptional] = None,
tags: Optional[TagList] = None,
selection_rules: Optional[SecretString] = None,
) -> CreateDataMigrationResponse
Creates a data migration using the provided settings.
Parameters:
-
data_migration_name(Optional[String], default:None) –A user-friendly name for the data migration. Data migration names have the following constraints:
-
Must begin with a letter, and can only contain ASCII letters, digits, and hyphens.
-
Can't end with a hyphen or contain two consecutive hyphens.
-
Length must be from 1 to 255 characters.
-
-
migration_project_identifier(String) –An identifier for the migration project.
-
data_migration_type(MigrationTypeValue) –Specifies if the data migration is full-load only, change data capture (CDC) only, or full-load and CDC.
-
service_access_role_arn(String) –The Amazon Resource Name (ARN) for the service access role that you want to use to create the data migration.
-
enable_cloudwatch_logs(Optional[BooleanOptional], default:None) –Specifies whether to enable CloudWatch logs for the data migration.
-
source_data_settings(Optional[SourceDataSettings], default:None) –Specifies information about the source data provider.
-
target_data_settings(Optional[TargetDataSettings], default:None) –Specifies information about the target data provider.
-
number_of_jobs(Optional[IntegerOptional], default:None) –The number of parallel jobs that trigger parallel threads to unload the tables from the source, and then load them to the target.
-
tags(Optional[TagList], default:None) –One or more tags to be assigned to the data migration.
-
selection_rules(Optional[SecretString], default:None) –An optional JSON string specifying what tables, views, and schemas to include or exclude from the migration.
Raises:
-
FailedDependencyFault–A dependency threw an exception.
-
InvalidOperationFault–The action or operation requested isn't valid.
-
ResourceAlreadyExistsFault–The resource you are attempting to create already exists.
-
ResourceNotFoundFault–The resource could not be found.
-
ResourceQuotaExceededFault–The quota for this resource quota has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_database_migration_service/_services/async_database_migration_service.py
763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 | |