getFunction

abstract suspend fun getFunction(input: GetFunctionRequest): GetFunctionResponse

Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.

Samples

// The following example returns code and configuration details for version 1 of a function named my
// function.
val resp = lambdaClient.getFunction {
    functionName = "my-function"
    qualifier = "1"
}