Interface FunctionConfiguration.Builder

    • Method Detail

      • encodingType

        FunctionConfiguration.Builder encodingType​(String encodingType)
        The expected encoding type of the input payload for the function. The default is ''json''.
        Parameters:
        encodingType - The expected encoding type of the input payload for the function. The default is ''json''.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        EncodingType, EncodingType
      • encodingType

        FunctionConfiguration.Builder encodingType​(EncodingType encodingType)
        The expected encoding type of the input payload for the function. The default is ''json''.
        Parameters:
        encodingType - The expected encoding type of the input payload for the function. The default is ''json''.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        EncodingType, EncodingType
      • environment

        FunctionConfiguration.Builder environment​(FunctionConfigurationEnvironment environment)
        The environment configuration of the function.
        Parameters:
        environment - The environment configuration of the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • execArgs

        FunctionConfiguration.Builder execArgs​(String execArgs)
        The execution arguments.
        Parameters:
        execArgs - The execution arguments.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • executable

        FunctionConfiguration.Builder executable​(String executable)
        The name of the function executable.
        Parameters:
        executable - The name of the function executable.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • memorySize

        FunctionConfiguration.Builder memorySize​(Integer memorySize)
        The memory size, in KB, which the function requires. This setting is not applicable and should be cleared when you run the Lambda function without containerization.
        Parameters:
        memorySize - The memory size, in KB, which the function requires. This setting is not applicable and should be cleared when you run the Lambda function without containerization.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • pinned

        FunctionConfiguration.Builder pinned​(Boolean pinned)
        True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.
        Parameters:
        pinned - True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timeout

        FunctionConfiguration.Builder timeout​(Integer timeout)
        The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request.
        Parameters:
        timeout - The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • functionRuntimeOverride

        FunctionConfiguration.Builder functionRuntimeOverride​(String functionRuntimeOverride)
        The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda function.
        Parameters:
        functionRuntimeOverride - The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.