createMigrationProject
abstract suspend fun createMigrationProject(input: CreateMigrationProjectRequest): CreateMigrationProjectResponse
Creates the migration project using the specified parameters.
You can run this action only after you create an instance profile and data providers using CreateInstanceProfile and CreateDataProvider.
Samples
// Creates the migration project with the specified parameters.
val resp = databaseMigrationClient.createMigrationProject {
migrationProjectName = "my-migration-project"
sourceDataProviderDescriptors = listOf<DataProviderDescriptorDefinition>(
DataProviderDescriptorDefinition {
dataProviderIdentifier = "arn:aws:dms:us-east-1:012345678901:data-provider:EXAMPLEABCDEFGHIJKLMNOPQRSTUVWXYZ012345"
secretsManagerSecretId = "arn:aws:secretsmanager:us-east-1:012345678901:secret:myorg/example1/ALL.SOURCE.ORACLE_12-A1B2C3"
secretsManagerAccessRoleArn = "arn:aws:iam::012345678901:role/myuser-admin-access"
}
)
targetDataProviderDescriptors = listOf<DataProviderDescriptorDefinition>(
DataProviderDescriptorDefinition {
dataProviderIdentifier = "arn:aws:dms:us-east-1:012345678901:data-provider:EXAMPLEABCDEFGHIJKLMNOPQRSTUVWXYZ012345"
secretsManagerSecretId = "arn:aws:secretsmanager:us-east-1:012345678901:secret:myorg/example1/TARGET.postgresql-A1B2C3"
secretsManagerAccessRoleArn = "arn:aws:iam::012345678901:role/myuser-admin-access"
}
)
instanceProfileIdentifier = "ip-au-17"
schemaConversionApplicationAttributes = ScApplicationAttributes {
s3BucketPath = "arn:aws:s3:::mylogin-bucket"
s3BucketRoleArn = "arn:aws:iam::012345678901:role/Admin"
}
tags = listOf<Tag>(
Tag {
key = "access"
value = "authorizedusers"
}
)
description = "description"
transformationRules = "{\"key0\":\"value0\",\"key1\":\"value1\",\"key2\":\"value2\"}"
}Content copied to clipboard