updateComputeEnvironment
Updates an Batch compute environment.
Samples
import aws.sdk.kotlin.services.batch.model.CeState
fun main() {
//sampleStart
// This example disables the P2OnDemand compute environment so it can be deleted.
val resp = batchClient.updateComputeEnvironment {
computeEnvironment = "P2OnDemand"
state = CeState.fromValue("DISABLED")
}
//sampleEnd
}