Class CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.greengrass.CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty>
- Enclosing interface:
CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty
@Stability(Stable)
public static final class CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encodingType(String encodingType) environment(IResolvable environment) executable(String executable) memorySize(Number memorySize) pinned(IResolvable pinned)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encodingType
@Stability(Stable) public CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.Builder encodingType(String encodingType) Sets the value ofCfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.getEncodingType()- Parameters:
encodingType- The expected encoding type of the input payload for the function. Valid values arejson(default) andbinary.- Returns:
this
-
environment
@Stability(Stable) public CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.Builder environment(IResolvable environment) Sets the value ofCfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.getEnvironment()- Parameters:
environment- The environment configuration of the function.- Returns:
this
-
environment
@Stability(Stable) public CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.Builder environment(CfnFunctionDefinitionVersionPropsMixin.EnvironmentProperty environment) Sets the value ofCfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.getEnvironment()- Parameters:
environment- The environment configuration of the function.- Returns:
this
-
execArgs
@Stability(Stable) public CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.Builder execArgs(String execArgs) Sets the value ofCfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.getExecArgs()- Parameters:
execArgs- The execution arguments.- Returns:
this
-
executable
@Stability(Stable) public CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.Builder executable(String executable) Sets the value ofCfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.getExecutable()- Parameters:
executable- The name of the function executable.- Returns:
this
-
memorySize
@Stability(Stable) public CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.Builder memorySize(Number memorySize) Sets the value ofCfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.getMemorySize()- 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 CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.Builder pinned(Boolean pinned) - 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 CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.Builder pinned(IResolvable pinned) - 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 CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty.Builder timeout(Number timeout) - 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
@Stability(Stable) public CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty>- Returns:
- a new instance of
CfnFunctionDefinitionVersionPropsMixin.FunctionConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-