public static interface CfnComponentVersion.LambdaExecutionParametersProperty
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 java.lang.Object |
getEnvironmentVariables()
The map of environment variables that are available to the Lambda function when it runs.
|
default java.lang.Object |
getEventSources()
The list of event sources to which to subscribe to receive work messages.
|
default java.util.List<java.lang.String> |
getExecArgs()
The list of arguments to pass to the Lambda function when it runs.
|
default java.lang.String |
getInputPayloadEncodingType()
The encoding type that the Lambda function supports.
|
default java.lang.Object |
getLinuxProcessParams()
The parameters for the Linux process that contains the Lambda function.
|
default java.lang.Number |
getMaxIdleTimeInSeconds()
The maximum amount of time in seconds that a non-pinned Lambda function can idle before the software stops its process.
|
default java.lang.Number |
getMaxInstancesCount()
The maximum number of instances that a non-pinned Lambda function can run at the same time.
|
default java.lang.Number |
getMaxQueueSize()
The maximum size of the message queue for the Lambda function component.
|
default java.lang.Object |
getPinned()
Whether or not the Lambda function is pinned, or long-lived.
|
default java.lang.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 java.lang.Number |
getTimeoutInSeconds()
The maximum amount of time in seconds that the Lambda function can process a work item.
|
default java.lang.Object getEnvironmentVariables()
default java.lang.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.
default java.util.List<java.lang.String> getExecArgs()
default java.lang.String getInputPayloadEncodingType()
Default: json
default java.lang.Object getLinuxProcessParams()
default java.lang.Number getMaxIdleTimeInSeconds()
default java.lang.Number getMaxInstancesCount()
default java.lang.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.
default java.lang.Object getPinned()
maxIdleTimeInSeconds
. If the function has multiple work items, the software creates multiple instances of the function.
Default: true
default java.lang.Number getStatusTimeoutInSeconds()
default java.lang.Number getTimeoutInSeconds()