Class CfnFunctionDefinition.FunctionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.FunctionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionDefinition.FunctionProperty>
- Enclosing interface:
CfnFunctionDefinition.FunctionProperty
@Stability(Stable)
public static final class CfnFunctionDefinition.FunctionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionDefinition.FunctionProperty>
A builder for
CfnFunctionDefinition.FunctionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.functionArn
(String functionArn) Sets the value ofCfnFunctionDefinition.FunctionProperty.getFunctionArn()
functionConfiguration
(IResolvable functionConfiguration) Sets the value ofCfnFunctionDefinition.FunctionProperty.getFunctionConfiguration()
functionConfiguration
(CfnFunctionDefinition.FunctionConfigurationProperty functionConfiguration) Sets the value ofCfnFunctionDefinition.FunctionProperty.getFunctionConfiguration()
Sets the value ofCfnFunctionDefinition.FunctionProperty.getId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionArn
@Stability(Stable) public CfnFunctionDefinition.FunctionProperty.Builder functionArn(String functionArn) Sets the value ofCfnFunctionDefinition.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 CfnFunctionDefinition.FunctionProperty.Builder functionConfiguration(IResolvable functionConfiguration) Sets the value ofCfnFunctionDefinition.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 CfnFunctionDefinition.FunctionProperty.Builder functionConfiguration(CfnFunctionDefinition.FunctionConfigurationProperty functionConfiguration) Sets the value ofCfnFunctionDefinition.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 ofCfnFunctionDefinition.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunctionDefinition.FunctionProperty>
- Returns:
- a new instance of
CfnFunctionDefinition.FunctionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-