describeComputeEnvironments
abstract suspend fun describeComputeEnvironments(input: DescribeComputeEnvironmentsRequest = DescribeComputeEnvironmentsRequest { }): DescribeComputeEnvironmentsResponse
Describes one or more of your compute environments.
If you're using an unmanaged compute environment, you can use the DescribeComputeEnvironment
operation to determine the ecsClusterArn
that you launch your Amazon ECS container instances into.
Samples
fun main() {
//sampleStart
// This example describes the P2OnDemand compute environment.
val resp = batchClient.describeComputeEnvironments {
computeEnvironments = listOf<String>(
"P2OnDemand"
)
}
//sampleEnd
}