modify_migration_project
¶
modify_migration_project(
migration_project_identifier: String,
*,
config_overrides: Optional[DatabaseMigrationServiceClientConfig] = None,
migration_project_name: Optional[String] = None,
source_data_provider_descriptors: Optional[
DataProviderDescriptorDefinitionList
] = None,
target_data_provider_descriptors: Optional[
DataProviderDescriptorDefinitionList
] = None,
instance_profile_identifier: Optional[String] = None,
transformation_rules: Optional[String] = None,
description: Optional[String] = None,
schema_conversion_application_attributes: Optional[SCApplicationAttributes] = None,
) -> ModifyMigrationProjectResponse
Modifies the specified migration project using the provided parameters.
Required permissions: dms:UpdateMigrationProject. For more information, see Actions, resources, and condition keys for Database Migration Service.
The migration project must be closed before you can modify it.
Parameters:
-
migration_project_identifier(String) –The identifier of the migration project. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen, or contain two consecutive hyphens.
-
migration_project_name(Optional[String], default:None) –A user-friendly name for the migration project.
-
source_data_provider_descriptors(Optional[DataProviderDescriptorDefinitionList], default:None) –Information about the source data provider, including the name, ARN, and Amazon Web Services Secrets Manager parameters.
-
target_data_provider_descriptors(Optional[DataProviderDescriptorDefinitionList], default:None) –Information about the target data provider, including the name, ARN, and Amazon Web Services Secrets Manager parameters.
-
instance_profile_identifier(Optional[String], default:None) –The name or Amazon Resource Name (ARN) for the instance profile.
-
transformation_rules(Optional[String], default:None) –A JSON string that specifies the transformation rules for the migration project. Transformation rules let you customize how DMS Schema Conversion converts your source database objects, including renaming, adding prefixes or suffixes, and changing data types. For the transformation rule format and examples, see Transformation rules in DMS Schema Conversion.
Homogeneous data migrations do not support transformation rules.
-
description(Optional[String], default:None) –A user-friendly description of the migration project.
-
schema_conversion_application_attributes(Optional[SCApplicationAttributes], default:None) –The schema conversion application attributes, including the Amazon S3 bucket name and Amazon S3 role ARN.
Raises:
-
AccessDeniedFault–DMS was denied access to the endpoint. Check that the role is correctly configured.
-
FailedDependencyFault–A dependency threw an exception.
-
InvalidResourceStateFault–The resource is in a state that prevents it from being used for database migration.
-
ResourceNotFoundFault–The resource could not be found.
-
S3AccessDeniedFault–Insufficient privileges are preventing access to an Amazon S3 object.
-
S3ResourceNotFoundFault–A specified Amazon S3 bucket, bucket folder, or other object can't be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Modify a migration project The following example updates the source data provider and description of a migration project.
>>> client.modify_migration_project(migration_project_identifier='arn:aws:dms:us-east-1:111122223333:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS', description='Updated migration project description', source_data_provider_descriptors=[{'DataProviderIdentifier': 'arn:aws:dms:us-east-1:111122223333:data-provider:EXAMPLEABCDEFGHIJKLMNOPQRS'}])
Source code in docs_src/capo_database_migration_service/_services/database_migration_service.py
7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 | |