startTransformerJob
inline suspend fun B2BiClient.startTransformerJob(crossinline block: StartTransformerJobRequest.Builder.() -> Unit): StartTransformerJobResponse
Runs a job, using a transformer, to parse input EDI (electronic data interchange) file into the output structures used by Amazon Web Services B2B Data Interchange.
If you only want to transform EDI (electronic data interchange) documents, you don't need to create profiles, partnerships or capabilities. Just create and configure a transformer, and then run the StartTransformerJob
API to process your files.
The system stores transformer jobs for 30 days. During that period, you can run GetTransformerJob and supply its transformerId
and transformerJobId
to return details of the job.
Samples
import aws.sdk.kotlin.services.b2bi.model.S3Location
fun main() {
//sampleStart
// Sample StartTransformerJob call
val resp = b2BiClient.startTransformerJob {
clientToken = "foo"
inputFile = S3Location {
bucketName = "test-bucket"
key = "input/inputFile.txt"
}
outputLocation = S3Location {
bucketName = "test-bucket"
key = "output/"
}
transformerId = "tr-974c129999f84d8c9"
}
//sampleEnd
}