Interface IFunction

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IDependable, IEnvironmentAware, IFunctionRef, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IFunction.Jsii$Default
All Known Implementing Classes:
Function, IFunction.Jsii$Proxy

@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)", date="2025-11-10T13:40:00.208Z") @Stability(Stable) public interface IFunction extends software.amazon.jsii.JsiiSerializable, IResource, IFunctionRef
Represents a CloudFront Function.
  • Method Details

    • getFunctionArn

      @Stability(Stable) @NotNull String getFunctionArn()
      The ARN of the function.
    • getFunctionName

      @Stability(Stable) @NotNull String getFunctionName()
      The name of the function.
    • getNode

      @Stability(Stable) @NotNull software.constructs.Node getNode()
      The tree node.
      Specified by:
      getNode in interface software.constructs.IConstruct
    • getEnv

      @Stability(Stable) @NotNull ResourceEnvironment getEnv()
      The environment this resource belongs to.

      For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

      For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.

      Specified by:
      getEnv in interface IEnvironmentAware