modify_migration_project
async
¶
modify_migration_project(
migration_project_identifier: String,
*,
config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = 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.
>>> await 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/async_database_migration_service.py
7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 | |