Interface LambdaExecutionParameters.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LambdaExecutionParameters.Builder,LambdaExecutionParameters>,SdkBuilder<LambdaExecutionParameters.Builder,LambdaExecutionParameters>,SdkPojo
- Enclosing class:
- LambdaExecutionParameters
public static interface LambdaExecutionParameters.Builder extends SdkPojo, CopyableBuilder<LambdaExecutionParameters.Builder,LambdaExecutionParameters>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LambdaExecutionParameters.BuilderenvironmentVariables(Map<String,String> environmentVariables)The map of environment variables that are available to the Lambda function when it runs.LambdaExecutionParameters.BuildereventSources(Collection<LambdaEventSource> eventSources)The list of event sources to which to subscribe to receive work messages.LambdaExecutionParameters.BuildereventSources(Consumer<LambdaEventSource.Builder>... eventSources)The list of event sources to which to subscribe to receive work messages.LambdaExecutionParameters.BuildereventSources(LambdaEventSource... eventSources)The list of event sources to which to subscribe to receive work messages.LambdaExecutionParameters.BuilderexecArgs(String... execArgs)The list of arguments to pass to the Lambda function when it runs.LambdaExecutionParameters.BuilderexecArgs(Collection<String> execArgs)The list of arguments to pass to the Lambda function when it runs.LambdaExecutionParameters.BuilderinputPayloadEncodingType(String inputPayloadEncodingType)The encoding type that the Lambda function supports.LambdaExecutionParameters.BuilderinputPayloadEncodingType(LambdaInputPayloadEncodingType inputPayloadEncodingType)The encoding type that the Lambda function supports.default LambdaExecutionParameters.BuilderlinuxProcessParams(Consumer<LambdaLinuxProcessParams.Builder> linuxProcessParams)The parameters for the Linux process that contains the Lambda function.LambdaExecutionParameters.BuilderlinuxProcessParams(LambdaLinuxProcessParams linuxProcessParams)The parameters for the Linux process that contains the Lambda function.LambdaExecutionParameters.BuildermaxIdleTimeInSeconds(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.LambdaExecutionParameters.BuildermaxInstancesCount(Integer maxInstancesCount)The maximum number of instances that a non-pinned Lambda function can run at the same time.LambdaExecutionParameters.BuildermaxQueueSize(Integer maxQueueSize)The maximum size of the message queue for the Lambda function component.LambdaExecutionParameters.Builderpinned(Boolean pinned)Whether or not the Lambda function is pinned, or long-lived.LambdaExecutionParameters.BuilderstatusTimeoutInSeconds(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.LambdaExecutionParameters.BuildertimeoutInSeconds(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, sdkFields
-
-
-
-
Method Detail
-
eventSources
LambdaExecutionParameters.Builder eventSources(Collection<LambdaEventSource> 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
LambdaExecutionParameters.Builder eventSources(LambdaEventSource... 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
LambdaExecutionParameters.Builder eventSources(Consumer<LambdaEventSource.Builder>... 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.Builderavoiding the need to create one manually viaLambdaEventSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#eventSources(List.) - 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:
#eventSources(java.util.Collection)
-
maxQueueSize
LambdaExecutionParameters.Builder maxQueueSize(Integer 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
LambdaExecutionParameters.Builder maxInstancesCount(Integer 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
LambdaExecutionParameters.Builder 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.
- 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
LambdaExecutionParameters.Builder timeoutInSeconds(Integer 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
LambdaExecutionParameters.Builder 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.
- 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
LambdaExecutionParameters.Builder pinned(Boolean 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
LambdaExecutionParameters.Builder inputPayloadEncodingType(String 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:
LambdaInputPayloadEncodingType,LambdaInputPayloadEncodingType
-
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:
LambdaInputPayloadEncodingType,LambdaInputPayloadEncodingType
-
execArgs
LambdaExecutionParameters.Builder execArgs(Collection<String> 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
LambdaExecutionParameters.Builder execArgs(String... 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
LambdaExecutionParameters.Builder environmentVariables(Map<String,String> 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
LambdaExecutionParameters.Builder linuxProcessParams(LambdaLinuxProcessParams 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.Builderavoiding the need to create one manually viaLambdaLinuxProcessParams.builder().When the
Consumercompletes,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:
linuxProcessParams(LambdaLinuxProcessParams)
-
-