updateCapability
Updates some of the parameters for a capability, based on the specified parameters. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
Samples
import aws.sdk.kotlin.services.b2bi.model.S3Location
fun main() {
//sampleStart
// Sample UpdateCapability call
val resp = b2BiClient.updateCapability {
capabilityId = "ca-963a8121e4fc4e348"
name = "b2biexample"
instructionsDocuments = listOf<S3Location>(
S3Location {
bucketName = "test-bucket"
key = "instructiondoc.txt"
}
)
configuration = CapabilityConfiguration.Edi(EdiConfiguration {
type = EdiType.X12Details(X12Details {
transactionSet = X12TransactionSet.fromValue("X12_110")
version = X12Version.fromValue("VERSION_4010")
}
)
inputLocation = S3Location {
bucketName = "test-bucket"
key = "input/"
}
outputLocation = S3Location {
bucketName = "test-bucket"
key = "output/"
}
transformerId = "tr-9a893cf536df4658b"
}
)
}
//sampleEnd
}