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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FunctionConfiguration.BuilderencodingType(String encodingType)The expected encoding type of the input payload for the function.FunctionConfiguration.BuilderencodingType(EncodingType encodingType)The expected encoding type of the input payload for the function.default FunctionConfiguration.Builderenvironment(Consumer<FunctionConfigurationEnvironment.Builder> environment)The environment configuration of the function.FunctionConfiguration.Builderenvironment(FunctionConfigurationEnvironment environment)The environment configuration of the function.FunctionConfiguration.BuilderexecArgs(String execArgs)The execution arguments.FunctionConfiguration.Builderexecutable(String executable)The name of the function executable.FunctionConfiguration.BuilderfunctionRuntimeOverride(String functionRuntimeOverride)The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda function.FunctionConfiguration.BuildermemorySize(Integer memorySize)The memory size, in KB, which the function requires.FunctionConfiguration.Builderpinned(Boolean pinned)True if the function is pinned.FunctionConfiguration.Buildertimeout(Integer timeout)The allowed function execution time, after which Lambda should terminate the function.-
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
-
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.
-
environment
default FunctionConfiguration.Builder environment(Consumer<FunctionConfigurationEnvironment.Builder> environment)
The environment configuration of the function. This is a convenience method that creates an instance of theFunctionConfigurationEnvironment.Builderavoiding the need to create one manually viaFunctionConfigurationEnvironment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toenvironment(FunctionConfigurationEnvironment).- Parameters:
environment- a consumer that will call methods onFunctionConfigurationEnvironment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
environment(FunctionConfigurationEnvironment)
-
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.
-
-