listLayers

abstract suspend fun listLayers(input: ListLayersRequest = ListLayersRequest { }): ListLayersResponse

Lists Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture.

Samples

import aws.sdk.kotlin.services.lambda.model.Runtime

fun main() { 
   //sampleStart 
   // The following example returns information about layers that are compatible with the Python 3. 7
// runtime.
val resp = lambdaClient.listLayers {
    compatibleRuntime = Runtime.fromValue("python3.7")
} 
   //sampleEnd
}