listClusters

inline suspend fun EksClient.listClusters(crossinline block: ListClustersRequest.Builder.() -> Unit): ListClustersResponse

Lists the Amazon EKS clusters in your Amazon Web Services account in the specified Amazon Web Services Region.

Samples


fun main() { 
   //sampleStart 
   // This example command lists all of your available clusters in your default region.
val resp = eksClient.listClusters() 
   //sampleEnd
}