Class CfnFunctionDefinitionVersion.FunctionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion.FunctionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionDefinitionVersion.FunctionProperty>
- Enclosing interface:
- CfnFunctionDefinitionVersion.FunctionProperty
@Stability(Stable)
public static final class CfnFunctionDefinitionVersion.FunctionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionDefinitionVersion.FunctionProperty>
A builder for
CfnFunctionDefinitionVersion.FunctionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.functionArn(String functionArn) Sets the value ofCfnFunctionDefinitionVersion.FunctionProperty.getFunctionArn()functionConfiguration(IResolvable functionConfiguration) Sets the value ofCfnFunctionDefinitionVersion.FunctionProperty.getFunctionConfiguration()functionConfiguration(CfnFunctionDefinitionVersion.FunctionConfigurationProperty functionConfiguration) Sets the value ofCfnFunctionDefinitionVersion.FunctionProperty.getFunctionConfiguration()Sets the value ofCfnFunctionDefinitionVersion.FunctionProperty.getId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionArn
@Stability(Stable) public CfnFunctionDefinitionVersion.FunctionProperty.Builder functionArn(String functionArn) Sets the value ofCfnFunctionDefinitionVersion.FunctionProperty.getFunctionArn()- Parameters:
functionArn- The Amazon Resource Name (ARN) of the alias (recommended) or version of the referenced Lambda function. This parameter is required.- Returns:
this
-
functionConfiguration
@Stability(Stable) public CfnFunctionDefinitionVersion.FunctionProperty.Builder functionConfiguration(IResolvable functionConfiguration) Sets the value ofCfnFunctionDefinitionVersion.FunctionProperty.getFunctionConfiguration()- Parameters:
functionConfiguration- The group-specific settings of the Lambda function. This parameter is required. These settings configure the function's behavior in the Greengrass group.- Returns:
this
-
functionConfiguration
@Stability(Stable) public CfnFunctionDefinitionVersion.FunctionProperty.Builder functionConfiguration(CfnFunctionDefinitionVersion.FunctionConfigurationProperty functionConfiguration) Sets the value ofCfnFunctionDefinitionVersion.FunctionProperty.getFunctionConfiguration()- Parameters:
functionConfiguration- The group-specific settings of the Lambda function. This parameter is required. These settings configure the function's behavior in the Greengrass group.- Returns:
this
-
id
Sets the value ofCfnFunctionDefinitionVersion.FunctionProperty.getId()- Parameters:
id- A descriptive or arbitrary ID for the function. This parameter is required. This value must be unique within the function definition version. Maximum length is 128 characters with pattern[a-zA-Z0-9:_-]+.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionDefinitionVersion.FunctionProperty>- Returns:
- a new instance of
CfnFunctionDefinitionVersion.FunctionProperty - Throws:
NullPointerException- if any required attribute was not provided
-