updateComputeEnvironment

Updates an Batch compute environment.

Samples


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
}