startImportFileEnrichment
abstract suspend fun startImportFileEnrichment(input: StartImportFileEnrichmentRequest): StartImportFileEnrichmentResponse
Starts an import file enrichment job to process and enrich network migration import files with additional metadata and IP assignment strategies.
Samples
import aws.sdk.kotlin.services.mgn.model.EnrichmentSourceS3Configuration
import aws.sdk.kotlin.services.mgn.model.EnrichmentTargetS3Configuration
import aws.sdk.kotlin.services.mgn.model.IpAssignmentStrategy
fun main() {
//sampleStart
// Sample StartImportFileEnrichment call
val resp = mgnClient.startImportFileEnrichment {
s3BucketSource = EnrichmentSourceS3Configuration {
s3Bucket = "my-source-bucket"
s3BucketOwner = "123456789012"
s3Key = "imports/source-file.csv"
}
s3BucketTarget = EnrichmentTargetS3Configuration {
s3Bucket = "my-target-bucket"
s3BucketOwner = "123456789012"
s3Key = "enriched/output.csv"
}
ipAssignmentStrategy = IpAssignmentStrategy.fromValue("STATIC")
}
//sampleEnd
}