Interface LambdaExecutionParameters.Builder

    • 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 the LambdaEventSource.Builder avoiding the need to create one manually via LambdaEventSource.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #eventSources(List).

        Parameters:
        eventSources - a consumer that will call methods on LambdaEventSource.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.
      • 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.