Class CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionDefinitionVersion.FunctionConfigurationProperty>
- Enclosing interface:
CfnFunctionDefinitionVersion.FunctionConfigurationProperty
@Stability(Stable)
public static final class CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionDefinitionVersion.FunctionConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encodingType
(String encodingType) environment
(IResolvable environment) Sets the value ofCfnFunctionDefinitionVersion.FunctionConfigurationProperty.getExecArgs()
executable
(String executable) memorySize
(Number memorySize) Sets the value ofCfnFunctionDefinitionVersion.FunctionConfigurationProperty.getPinned()
pinned
(IResolvable pinned) Sets the value ofCfnFunctionDefinitionVersion.FunctionConfigurationProperty.getPinned()
Sets the value ofCfnFunctionDefinitionVersion.FunctionConfigurationProperty.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encodingType
@Stability(Stable) public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder encodingType(String encodingType) - Parameters:
encodingType
- The expected encoding type of the input payload for the function. Valid values arejson
(default) andbinary
.- Returns:
this
-
environment
@Stability(Stable) public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder environment(IResolvable environment) - Parameters:
environment
- The environment configuration of the function.- Returns:
this
-
environment
@Stability(Stable) public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder environment(CfnFunctionDefinitionVersion.EnvironmentProperty environment) - Parameters:
environment
- The environment configuration of the function.- Returns:
this
-
execArgs
@Stability(Stable) public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder execArgs(String execArgs) Sets the value ofCfnFunctionDefinitionVersion.FunctionConfigurationProperty.getExecArgs()
- Parameters:
execArgs
- The execution arguments.- Returns:
this
-
executable
@Stability(Stable) public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder executable(String executable) - Parameters:
executable
- The name of the function executable.- Returns:
this
-
memorySize
@Stability(Stable) public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder memorySize(Number memorySize) - Parameters:
memorySize
- The memory size (in KB) required by the function.This property applies only to Lambda functions that run in a Greengrass container.
- Returns:
this
-
pinned
@Stability(Stable) public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder pinned(Boolean pinned) Sets the value ofCfnFunctionDefinitionVersion.FunctionConfigurationProperty.getPinned()
- Parameters:
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.- Returns:
this
-
pinned
@Stability(Stable) public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder pinned(IResolvable pinned) Sets the value ofCfnFunctionDefinitionVersion.FunctionConfigurationProperty.getPinned()
- Parameters:
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.- Returns:
this
-
timeout
@Stability(Stable) public CfnFunctionDefinitionVersion.FunctionConfigurationProperty.Builder timeout(Number timeout) Sets the value ofCfnFunctionDefinitionVersion.FunctionConfigurationProperty.getTimeout()
- Parameters:
timeout
- The allowed execution time (in seconds) after which the function should terminate. For pinned functions, this timeout applies for each request.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunctionDefinitionVersion.FunctionConfigurationProperty>
- Returns:
- a new instance of
CfnFunctionDefinitionVersion.FunctionConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-