@Stability(value=Stable)
public static interface CfnComponentVersion.LambdaExecutionParametersProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrassv2.*;
LambdaExecutionParametersProperty lambdaExecutionParametersProperty = LambdaExecutionParametersProperty.builder()
.environmentVariables(Map.of(
"environmentVariablesKey", "environmentVariables"))
.eventSources(List.of(LambdaEventSourceProperty.builder()
.topic("topic")
.type("type")
.build()))
.execArgs(List.of("execArgs"))
.inputPayloadEncodingType("inputPayloadEncodingType")
.linuxProcessParams(LambdaLinuxProcessParamsProperty.builder()
.containerParams(LambdaContainerParamsProperty.builder()
.devices(List.of(LambdaDeviceMountProperty.builder()
.addGroupOwner(false)
.path("path")
.permission("permission")
.build()))
.memorySizeInKb(123)
.mountRoSysfs(false)
.volumes(List.of(LambdaVolumeMountProperty.builder()
.addGroupOwner(false)
.destinationPath("destinationPath")
.permission("permission")
.sourcePath("sourcePath")
.build()))
.build())
.isolationMode("isolationMode")
.build())
.maxIdleTimeInSeconds(123)
.maxInstancesCount(123)
.maxQueueSize(123)
.pinned(false)
.statusTimeoutInSeconds(123)
.timeoutInSeconds(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnComponentVersion.LambdaExecutionParametersProperty.Builder
A builder for
CfnComponentVersion.LambdaExecutionParametersProperty |
static class |
CfnComponentVersion.LambdaExecutionParametersProperty.Jsii$Proxy
An implementation for
CfnComponentVersion.LambdaExecutionParametersProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnComponentVersion.LambdaExecutionParametersProperty.Builder |
builder() |
default Object |
getEnvironmentVariables()
The map of environment variables that are available to the Lambda function when it runs.
|
default Object |
getEventSources()
The list of event sources to which to subscribe to receive work messages.
|
default List<String> |
getExecArgs()
The list of arguments to pass to the Lambda function when it runs.
|
default String |
getInputPayloadEncodingType()
The encoding type that the Lambda function supports.
|
default Object |
getLinuxProcessParams()
The parameters for the Linux process that contains the Lambda function.
|
default Number |
getMaxIdleTimeInSeconds()
The maximum amount of time in seconds that a non-pinned Lambda function can idle before the software stops its process.
|
default Number |
getMaxInstancesCount()
The maximum number of instances that a non-pinned Lambda function can run at the same time.
|
default Number |
getMaxQueueSize()
The maximum size of the message queue for the Lambda function component.
|
default Object |
getPinned()
Whether or not the Lambda function is pinned, or long-lived.
|
default Number |
getStatusTimeoutInSeconds()
The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
|
default Number |
getTimeoutInSeconds()
The maximum amount of time in seconds that the Lambda function can process a work item.
|
@Stability(value=Stable) @Nullable default Object getEnvironmentVariables()
@Stability(value=Stable) @Nullable default Object getEventSources()
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.
@Stability(value=Stable) @Nullable default List<String> getExecArgs()
@Stability(value=Stable) @Nullable default String getInputPayloadEncodingType()
Default: json
@Stability(value=Stable) @Nullable default Object getLinuxProcessParams()
@Stability(value=Stable) @Nullable default Number getMaxIdleTimeInSeconds()
@Stability(value=Stable) @Nullable default Number getMaxInstancesCount()
@Stability(value=Stable) @Nullable default Number getMaxQueueSize()
The Greengrass core device stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to consume each message.
@Stability(value=Stable) @Nullable default Object getPinned()
maxIdleTimeInSeconds . If the function has multiple work items, the software creates multiple instances of the function.
Default: true
@Stability(value=Stable) @Nullable default Number getStatusTimeoutInSeconds()
@Stability(value=Stable) @Nullable default Number getTimeoutInSeconds()
@Stability(value=Stable) static CfnComponentVersion.LambdaExecutionParametersProperty.Builder builder()
Copyright © 2022. All rights reserved.