Class Function.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.Function.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Function>
- Enclosing class:
- Function
@Stability(Stable)
public static final class Function.Builder
extends Object
implements software.amazon.jsii.Builder<Function>
A fluent builder for
Function.-
Method Summary
Modifier and TypeMethodDescriptionbuild()code(FunctionCode code) The source code of the function.A comment to describe the function.static Function.BuilderfunctionName(String functionName) A name to identify the function.
-
Method Details
-
create
@Stability(Stable) public static Function.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
Function.Builder.
-
code
The source code of the function.- Parameters:
code- The source code of the function. This parameter is required.- Returns:
this
-
comment
A comment to describe the function.Default: - same as `functionName`
- Parameters:
comment- A comment to describe the function. This parameter is required.- Returns:
this
-
functionName
A name to identify the function.Default: - generated from the `id`
- Parameters:
functionName- A name to identify the function. This parameter is required.- Returns:
this
-
build
-