Interface LambdaExecutionParameters.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LambdaExecutionParameters.Builder,
,LambdaExecutionParameters> SdkBuilder<LambdaExecutionParameters.Builder,
,LambdaExecutionParameters> SdkPojo
- Enclosing class:
LambdaExecutionParameters
-
Method Summary
Modifier and TypeMethodDescriptionenvironmentVariables
(Map<String, String> environmentVariables) The map of environment variables that are available to the Lambda function when it runs.eventSources
(Collection<LambdaEventSource> eventSources) The list of event sources to which to subscribe to receive work messages.eventSources
(Consumer<LambdaEventSource.Builder>... eventSources) The list of event sources to which to subscribe to receive work messages.eventSources
(LambdaEventSource... eventSources) The list of event sources to which to subscribe to receive work messages.The list of arguments to pass to the Lambda function when it runs.execArgs
(Collection<String> execArgs) The list of arguments to pass to the Lambda function when it runs.inputPayloadEncodingType
(String inputPayloadEncodingType) The encoding type that the Lambda function supports.inputPayloadEncodingType
(LambdaInputPayloadEncodingType inputPayloadEncodingType) The encoding type that the Lambda function supports.linuxProcessParams
(Consumer<LambdaLinuxProcessParams.Builder> linuxProcessParams) The parameters for the Linux process that contains the Lambda function.linuxProcessParams
(LambdaLinuxProcessParams linuxProcessParams) The parameters for the Linux process that contains the Lambda function.maxIdleTimeInSeconds
(Integer maxIdleTimeInSeconds) 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
(Integer maxInstancesCount) The maximum number of instances that a non-pinned Lambda function can run at the same time.maxQueueSize
(Integer maxQueueSize) The maximum size of the message queue for the Lambda function component.Whether or not the Lambda function is pinned, or long-lived.statusTimeoutInSeconds
(Integer 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
(Integer timeoutInSeconds) The maximum amount of time in seconds that the Lambda function can process a work item.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
eventSources
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.
- Parameters:
eventSources
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventSources
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.
- Parameters:
eventSources
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventSources
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.
This is a convenience method that creates an instance of theLambdaEventSource.Builder
avoiding the need to create one manually viaLambdaEventSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeventSources(List<LambdaEventSource>)
.- Parameters:
eventSources
- a consumer that will call methods onLambdaEventSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxQueueSize
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.
- Parameters:
maxQueueSize
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxInstancesCount
The maximum number of instances that a non-pinned Lambda function can run at the same time.
- Parameters:
maxInstancesCount
- The maximum number of instances that a non-pinned Lambda function can run at the same time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxIdleTimeInSeconds
The maximum amount of time in seconds that a non-pinned Lambda function can idle before the IoT Greengrass Core software stops its process.
- Parameters:
maxIdleTimeInSeconds
- The maximum amount of time in seconds that a non-pinned Lambda function can idle before the IoT Greengrass Core software stops its process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutInSeconds
The maximum amount of time in seconds that the Lambda function can process a work item.
- Parameters:
timeoutInSeconds
- The maximum amount of time in seconds that the Lambda function can process a work item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pinned
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
- Parameters:
pinned
- 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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
inputPayloadEncodingType
The encoding type that the Lambda function supports.
Default:
json
- Parameters:
inputPayloadEncodingType
- The encoding type that the Lambda function supports.Default:
json
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inputPayloadEncodingType
LambdaExecutionParameters.Builder inputPayloadEncodingType(LambdaInputPayloadEncodingType inputPayloadEncodingType) The encoding type that the Lambda function supports.
Default:
json
- Parameters:
inputPayloadEncodingType
- The encoding type that the Lambda function supports.Default:
json
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
execArgs
The list of arguments to pass to the Lambda function when it runs.
- Parameters:
execArgs
- The list of arguments to pass to the Lambda function when it runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
execArgs
The list of arguments to pass to the Lambda function when it runs.
- Parameters:
execArgs
- The list of arguments to pass to the Lambda function when it runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentVariables
The map of environment variables that are available to the Lambda function when it runs.
- Parameters:
environmentVariables
- The map of environment variables that are available to the Lambda function when it runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
linuxProcessParams
The parameters for the Linux process that contains the Lambda function.
- Parameters:
linuxProcessParams
- The parameters for the Linux process that contains the Lambda function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
linuxProcessParams
default LambdaExecutionParameters.Builder linuxProcessParams(Consumer<LambdaLinuxProcessParams.Builder> linuxProcessParams) The parameters for the Linux process that contains the Lambda function.
This is a convenience method that creates an instance of theLambdaLinuxProcessParams.Builder
avoiding the need to create one manually viaLambdaLinuxProcessParams.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolinuxProcessParams(LambdaLinuxProcessParams)
.- Parameters:
linuxProcessParams
- a consumer that will call methods onLambdaLinuxProcessParams.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-