Light Dark

Functions

get-function

fn (function_name: Str): GetFunctionResponse | AwsError

Get details about a Lambda function, including code location.

Example

result ::aws::lambda::functions/get-function("my-function")
result.configuration.function_name  // => "my-function"
result.configuration.runtime        // => "nodejs20.x"
result.configuration.handler        // => "index.handler"

get-function-configuration

fn (function_name: Str): FunctionConfiguration | AwsError

Get the configuration of a Lambda function (without code location).

Example

config ::aws::lambda::functions/get-function-configuration("my-function")
config.function_name  // => "my-function"
config.runtime        // => "nodejs20.x"
config.memory_size    // => 128
config.timeout        // => 3

list-functions

fn (max_items: Int, marker: Str): ListFunctionsResponse | AwsError
fn (max_items: Int): ListFunctionsResponse | AwsError
fn (): ListFunctionsResponse | AwsError

List all Lambda functions in the account/region.

Example

result ::aws::lambda::functions/list-functions()
result.functions
// => [{function_name: "my-function", runtime: "nodejs20.x", ...}, ...]

// With limit
result ::aws::lambda::functions/list-functions(10)

Types

FunctionConfiguration

FunctionConfiguration type {
    function_name: Str?,
    function_arn: Str?,
    runtime: Str?,
    role: Str?,
    handler: Str?,
    code_size: Int?,
    description: Str?,
    timeout: Int?,
    memory_size: Int?,
    last_modified: Str?,
    code_sha256: Str?,
    version: Str?,
    vpc_config: Map?,
    environment: Map?,
    state: Str?,
    state_reason: Str?,
    state_reason_code: Str?,
    architectures: Vec?
}

GetFunctionResponse

GetFunctionResponse type {
    configuration: FunctionConfiguration?,
    code: Map?,
    tags: Map?
}

ListFunctionsResponse

ListFunctionsResponse type {
    functions: Vec,
    next_marker: Str?
}