Interface FunctionConfiguration.Builder

All Superinterfaces:
Buildable, CopyableBuilder<FunctionConfiguration.Builder,FunctionConfiguration>, SdkBuilder<FunctionConfiguration.Builder,FunctionConfiguration>, SdkPojo
Enclosing class:
FunctionConfiguration

public static interface FunctionConfiguration.Builder extends SdkPojo, CopyableBuilder<FunctionConfiguration.Builder,FunctionConfiguration>
  • Method Details

    • 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

      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:
    • 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.
    • environment

      The environment configuration of the function. This is a convenience method that creates an instance of the FunctionConfigurationEnvironment.Builder avoiding the need to create one manually via FunctionConfigurationEnvironment.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to environment(FunctionConfigurationEnvironment).

      Parameters:
      environment - a consumer that will call methods on FunctionConfigurationEnvironment.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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

      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.