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
Modifier and TypeMethodDescriptionencodingType
(String encodingType) The expected encoding type of the input payload for the function.encodingType
(EncodingType encodingType) The expected encoding type of the input payload for the function.default FunctionConfiguration.Builder
environment
(Consumer<FunctionConfigurationEnvironment.Builder> environment) The environment configuration of the function.environment
(FunctionConfigurationEnvironment environment) The environment configuration of the function.The execution arguments.executable
(String executable) The name of the function executable.functionRuntimeOverride
(String functionRuntimeOverride) The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda function.memorySize
(Integer memorySize) The memory size, in KB, which the function requires.True if the function is pinned.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 Details
-
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
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
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.Builder
avoiding the need to create one manually viaFunctionConfigurationEnvironment.builder()
.When the
Consumer
completes,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:
-
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
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
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
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.
-