Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

LambdaExecutionParameters

import type { LambdaExecutionParameters } from "https://aws-api.deno.dev/v0.3/services/greengrassv2.ts?docs=full";

Contains parameters for a Lambda function that runs on IoT Greengrass.

interface LambdaExecutionParameters {
environmentVariables?: {
[key: string]: string | null | undefined;
}
| null;
eventSources?: LambdaEventSource[] | null;
execArgs?: string[] | null;
inputPayloadEncodingType?: LambdaInputPayloadEncodingType | null;
linuxProcessParams?: LambdaLinuxProcessParams | null;
maxIdleTimeInSeconds?: number | null;
maxInstancesCount?: number | null;
maxQueueSize?: number | null;
pinned?: boolean | null;
statusTimeoutInSeconds?: number | null;
timeoutInSeconds?: number | null;
}

§Properties

§
environmentVariables?: {
[key: string]: string | null | undefined;
}
| null
[src]

The map of environment variables that are available to the Lambda function when it runs.

§
eventSources?: LambdaEventSource[] | null
[src]

The list of event sources to which to subscribe to receive work messages. The Lambda function runs when it receives a message from an event source. You can subscribe this function to local publish/subscribe messages and Amazon Web Services IoT Core MQTT messages.

§
execArgs?: string[] | null
[src]

The list of arguments to pass to the Lambda function when it runs.

§
inputPayloadEncodingType?: LambdaInputPayloadEncodingType | null
[src]

The encoding type that the Lambda function supports.

Default: json

§
linuxProcessParams?: LambdaLinuxProcessParams | null
[src]

The parameters for the Linux process that contains the Lambda function.

§
maxIdleTimeInSeconds?: number | null
[src]

The maximum amount of time in seconds that a non-pinned Lambda function can idle before the IoT Greengrass Core software stops its process.

§
maxInstancesCount?: number | null
[src]

The maximum number of instances that a non-pinned Lambda function can run at the same time.

§
maxQueueSize?: number | null
[src]

The maximum size of the message queue for the Lambda function component. The IoT Greengrass core stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to consume each message.

§
pinned?: boolean | null
[src]

Whether or not the Lambda function is pinned, or long-lived.

  • A pinned Lambda function starts when IoT Greengrass starts and keeps running in its own container.
  • A non-pinned Lambda function starts only when it receives a work item and exists after it idles for maxIdleTimeInSeconds. If the function has multiple work items, the IoT Greengrass Core software creates multiple instances of the function.

Default: true

§
statusTimeoutInSeconds?: number | null
[src]

The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.

§
timeoutInSeconds?: number | null
[src]

The maximum amount of time in seconds that the Lambda function can process a work item.