package lambda-runtime

  1. Overview
  2. Docs
type t = {
  1. memory_limit_in_mb : int;
    (*

    The amount of memory allocated to the lambda function in MB. This value is extracted from the `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` environment variable set by the lambda service.

    *)
  2. function_name : string;
    (*

    The name of the lambda function as registered with the lambda service. The value is extracted from the `AWS_LAMBDA_FUNCTION_NAME` environment variable set by the lambda service.

    *)
  3. function_version : string;
    (*

    The version of the function being invoked. This value is extracted from the `AWS_LAMBDA_FUNCTION_VERSION` environment variable set by the lambda service.

    *)
  4. invoked_function_arn : string;
    (*

    The fully qualified ARN (Amazon Resource Name) for the function invocation event. This value is returned by the lambda runtime APIs as a header.

    *)
  5. aws_request_id : string;
    (*

    The AWS Request ID for the current invocation event. This value is returned by the lambda runtime APIs as a header.

    *)
  6. xray_trace_id : string option;
    (*

    The x-ray trace id for the current invocation. this value is returned by the lambda runtime apis as a header. developers can use this value with the aws sdk to create new, custom sub-segments to the current invocation.

    *)
  7. log_stream_name : string;
    (*

    The name of the cloudwatch log stream for the current execution environment. this value is extracted from the `aws_lambda_log_stream_name` environment variable set by the lambda service.

    *)
  8. log_group_name : string;
    (*

    The name of the CloudWatch log group for the current execution environment. This value is extracted from the `AWS_LAMBDA_LOG_GROUP_NAME` environment variable set by the lambda service.

    *)
  9. client_context : Lambda_runtime__.Client.client_context option;
    (*

    The client context sent by the AWS Mobile SDK with the invocation request. This value is returned by the lambda runtime APIs as a header. This value is populated only if the invocation request originated from an AWS Mobile SDK or an SDK that attached the client context information to the request.

    *)
  10. identity : Lambda_runtime__.Client.cognito_identity option;
    (*

    The information of the Cognito Identity that sent the invocation request to the lambda service. This value is returned by the lambda runtime APIs in a header and it's only populated if the invocation request was performed with AWS credentials federated through the Cognito Identity service.

    *)
  11. deadline : int64;
    (*

    The deadline for the current handler execution in nanoseconds.

    *)
}
OCaml

Innovation. Community. Security.