public static final class CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder encodingType(java.lang.String encodingType)
encodingType
- The expected encoding type of the input payload for the function.
Valid values are json
(default) and binary
.this
public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder environment(IResolvable environment)
environment
- The environment configuration of the function.this
public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder environment(CfnFunctionDefinitionVersion.EnvironmentProperty environment)
environment
- The environment configuration of the function.this
public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder execArgs(java.lang.String execArgs)
CfnFunctionDefinitionVersion.FunctionConfigurationProperty.getExecArgs()
execArgs
- The execution arguments.this
public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder executable(java.lang.String executable)
executable
- The name of the function executable.this
public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder memorySize(java.lang.Number memorySize)
memorySize
- The memory size (in KB) required by the function.
This property applies only to Lambda functions that run in a Greengrass container.
this
public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder pinned(java.lang.Boolean pinned)
CfnFunctionDefinitionVersion.FunctionConfigurationProperty.getPinned()
pinned
- Indicates whether the function is pinned (or *long-lived* ).
Pinned functions start when the core starts and process all requests in the same container. The default value is false.this
public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder pinned(IResolvable pinned)
CfnFunctionDefinitionVersion.FunctionConfigurationProperty.getPinned()
pinned
- Indicates whether the function is pinned (or *long-lived* ).
Pinned functions start when the core starts and process all requests in the same container. The default value is false.this
public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder timeout(java.lang.Number timeout)
CfnFunctionDefinitionVersion.FunctionConfigurationProperty.getTimeout()
timeout
- The allowed execution time (in seconds) after which the function should terminate.
For pinned functions, this timeout applies for each request.this
public CfnFunctionDefinitionVersion.FunctionConfigurationProperty build()
CfnFunctionDefinitionVersion.FunctionConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided