CARVIEW |
Select Language
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html; charset=iso-8859-1
Content-Length: 297
Connection: keep-alive
Date: Thu, 31 Jul 2025 00:12:57 GMT
Location: https://sdk.amazonaws.com/kotlin/api/latest/lambda/aws.sdk.kotlin.services.lambda/-lambda-client/list-layers.html
Server: Server
Cache-Control: max-age=600
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=47304000; includeSubDomains
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Security-Policy: upgrade-insecure-requests; script-src 'self' 'unsafe-inline' *.awsstatic.com *.cdn.uis.awsstatic.com *.cdn.console.awsstatic.com d2c.aws.amazon.com a0.awsstatic.com *.feedback.console.aws.dev insights.docs.aws.com wss://insights.docs.aws.com/prod; object-src 'none';
X-Cache: Miss from cloudfront
Via: 1.1 f104d67b43a55209d755ce5f5be8730a.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: BOM78-P5
X-Amz-Cf-Id: bNkiM8UrchdUnYy9JUNW1lPifqXmcOFnEj971Y5Qy9z_ySFtYUYbOg==
HTTP/1.1 200 OK
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Content-Security-Policy: upgrade-insecure-requests; script-src 'self' 'unsafe-inline' *.awsstatic.com *.cdn.uis.awsstatic.com *.cdn.console.awsstatic.com docs.aws.amazon.com https://*.shortbread.aws.dev; img-src 'self' https://amazonwebservices.d2.sc.omtrdc.net https://aws.demdex.net https://dpm.demdex.net https://cm.everesttech.net https://a0.awsstatic.com/; frame-src 'self' https://aws.demdex.net https://dpm.demdex.net; connect-src 'self' https://amazonwebservices.d2.sc.omtrdc.net https://aws.demdex.net https://dpm.demdex.net https://cm.everesttech.net https://a0.awsstatic.com/ https://d2c.aws.amazon.com https://vs.aws.amazon.com https://*.shortbread.aws.dev; object-src 'none'; frame-ancestors 'self'; base-uri 'none'
Strict-Transport-Security: max-age=31536000
Date: Thu, 31 Jul 2025 00:13:00 GMT
Last-Modified: Wed, 30 Jul 2025 22:45:21 GMT
X-Frame-Options: SAMEORIGIN
x-amz-server-side-encryption: AES256
Content-Encoding: gzip
Server: AmazonS3
Cache-Control: no-store, no-cache, must-revalidate
Via: 1.1 a0dfc1e576cc19daa2f4d5ec699792f4.cloudfront.net (CloudFront), 1.1 82bb120a49c1eed26f2f41e5d4b1a1b2.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: TLV50-C1
X-XSS-Protection: 1; mode=block
ETag: W/"220cdbd6ec9699e4599365aef30f0ce1"
Vary: Accept-Encoding
X-Cache: Miss from cloudfront
X-Amz-Cf-Pop: BOM78-P1
X-Amz-Cf-Id: IFmtVQuXKN6T_p2BctU_PS9BPy2JkdCYuBJUK9kX1ZXasn4qRYOjYQ==
listLayers
AWS SDK for Kotlin
list
1.5.7
Platform filter
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
}