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 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

      @Stability(Stable) public Function.Builder code(FunctionCode code)
      The source code of the function.

      Parameters:
      code - The source code of the function. This parameter is required.
      Returns:
      this
    • comment

      @Stability(Stable) public Function.Builder comment(String 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

      @Stability(Stable) public Function.Builder functionName(String 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

      @Stability(Stable) public Function build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Function>
      Returns:
      a newly built instance of Function.