Class CfnComponentVersion.LambdaExecutionParametersProperty
Contains parameters for a Lambda function that runs on AWS IoT Greengrass .
Inheritance
Namespace: Amazon.CDK.AWS.GreengrassV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaExecutionParametersProperty : Object, CfnComponentVersion.ILambdaExecutionParametersProperty
Syntax (vb)
Public Class LambdaExecutionParametersProperty
Inherits Object
Implements CfnComponentVersion.ILambdaExecutionParametersProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GreengrassV2;
var lambdaExecutionParametersProperty = new LambdaExecutionParametersProperty {
EnvironmentVariables = new Dictionary<string, string> {
{ "environmentVariablesKey", "environmentVariables" }
},
EventSources = new [] { new LambdaEventSourceProperty {
Topic = "topic",
Type = "type"
} },
ExecArgs = new [] { "execArgs" },
InputPayloadEncodingType = "inputPayloadEncodingType",
LinuxProcessParams = new LambdaLinuxProcessParamsProperty {
ContainerParams = new LambdaContainerParamsProperty {
Devices = new [] { new LambdaDeviceMountProperty {
AddGroupOwner = false,
Path = "path",
Permission = "permission"
} },
MemorySizeInKb = 123,
MountRoSysfs = false,
Volumes = new [] { new LambdaVolumeMountProperty {
AddGroupOwner = false,
DestinationPath = "destinationPath",
Permission = "permission",
SourcePath = "sourcePath"
} }
},
IsolationMode = "isolationMode"
},
MaxIdleTimeInSeconds = 123,
MaxInstancesCount = 123,
MaxQueueSize = 123,
Pinned = false,
StatusTimeoutInSeconds = 123,
TimeoutInSeconds = 123
};
Synopsis
Constructors
LambdaExecutionParametersProperty() |
Properties
EnvironmentVariables | The map of environment variables that are available to the Lambda function when it runs. |
EventSources | The list of event sources to which to subscribe to receive work messages. |
ExecArgs | The list of arguments to pass to the Lambda function when it runs. |
InputPayloadEncodingType | The encoding type that the Lambda function supports. |
LinuxProcessParams | The parameters for the Linux process that contains the Lambda function. |
MaxIdleTimeInSeconds | The maximum amount of time in seconds that a non-pinned Lambda function can idle before the AWS IoT Greengrass Core software stops its process. |
MaxInstancesCount | The maximum number of instances that a non-pinned Lambda function can run at the same time. |
MaxQueueSize | The maximum size of the message queue for the Lambda function component. |
Pinned | Whether or not the Lambda function is pinned, or long-lived. |
StatusTimeoutInSeconds | 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 | The maximum amount of time in seconds that the Lambda function can process a work item. |
Constructors
LambdaExecutionParametersProperty()
public LambdaExecutionParametersProperty()
Properties
EnvironmentVariables
The map of environment variables that are available to the Lambda function when it runs.
public object EnvironmentVariables { get; set; }
Property Value
System.Object
Remarks
EventSources
The list of event sources to which to subscribe to receive work messages.
public object EventSources { get; set; }
Property Value
System.Object
Remarks
The Lambda function runs when it receives a message from an event source. You can subscribe this function to local publish/subscribe messages and AWS IoT Core MQTT messages.
ExecArgs
The list of arguments to pass to the Lambda function when it runs.
public string[] ExecArgs { get; set; }
Property Value
System.String[]
Remarks
InputPayloadEncodingType
The encoding type that the Lambda function supports.
public string InputPayloadEncodingType { get; set; }
Property Value
System.String
Remarks
LinuxProcessParams
The parameters for the Linux process that contains the Lambda function.
public object LinuxProcessParams { get; set; }
Property Value
System.Object
Remarks
MaxIdleTimeInSeconds
The maximum amount of time in seconds that a non-pinned Lambda function can idle before the AWS IoT Greengrass Core software stops its process.
public Nullable<double> MaxIdleTimeInSeconds { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
MaxInstancesCount
The maximum number of instances that a non-pinned Lambda function can run at the same time.
public Nullable<double> MaxInstancesCount { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
MaxQueueSize
The maximum size of the message queue for the Lambda function component.
public Nullable<double> MaxQueueSize { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
The AWS IoT Greengrass core device stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to consume each message.
Pinned
Whether or not the Lambda function is pinned, or long-lived.
public object Pinned { get; set; }
Property Value
System.Object
Remarks
StatusTimeoutInSeconds
The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
public Nullable<double> StatusTimeoutInSeconds { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
TimeoutInSeconds
The maximum amount of time in seconds that the Lambda function can process a work item.
public Nullable<double> TimeoutInSeconds { get; set; }
Property Value
System.Nullable<System.Double>