Interface CfnFunctionProps

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-31T18:44:15.161Z") @Stability(Stable) public interface CfnFunctionProps extends
Properties for defining a `CfnFunction`.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CfnFunctionProps cfnFunctionProps = CfnFunctionProps.builder()
         // the properties below are optional
  • Method Details

    • getFunctionCode

      @Stability(Stable) @NotNull String getFunctionCode()
      The function code.

      For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide .

    • getFunctionConfig

      @Stability(Stable) @NotNull Object getFunctionConfig()
      Contains configuration information about a CloudFront function.
    • getName

      @Stability(Stable) @NotNull String getName()
      A name to identify the function.
    • getAutoPublish

      @Stability(Stable) @Nullable default Object getAutoPublish()
      A flag that determines whether to automatically publish the function to the `LIVE` stage when it’s created.

      To automatically publish to the LIVE stage, set this property to true .

    • getFunctionMetadata

      @Stability(Stable) @Nullable default Object getFunctionMetadata()
      Contains metadata about a CloudFront function.
    • builder

      @Stability(Stable) static CfnFunctionProps.Builder builder()
      a CfnFunctionProps.Builder of CfnFunctionProps