createTransformer

Creates a transformer. A transformer describes how to process the incoming EDI documents and extract the necessary information to the output file.

Samples

import aws.sdk.kotlin.services.b2bi.model.Tag
fun main() { 
   //sampleStart 
   // Sample CreateTransformer call
val resp = b2BiClient.createTransformer {
    clientToken = "foo"
    ediType = EdiType.X12Details(X12Details {
        transactionSet = X12TransactionSet.fromValue("X12_110")
        version = X12Version.fromValue("VERSION_4010")
    }
    )
    fileFormat = FileFormat.fromValue("JSON")
    mappingTemplate = "{}"
    name = "transformJSON"
    sampleDocument = "s3://test-bucket/sampleDoc.txt"
    tags = listOf<Tag>(
        Tag {
            key = "sampleKey"
            value = "sampleValue"
        }            
    )
} 
   //sampleEnd
}