Interface IVersion

All Superinterfaces:
IConnectable, software.constructs.IConstruct, software.constructs.IDependable, IEnvironmentAware, IFunction, IFunctionRef, IGrantable, IResource, IVersionRef, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IVersion.Jsii$Default
All Known Implementing Classes:
EdgeFunction, IVersion.Jsii$Proxy, Version

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-12-01T16:02:23.708Z") @Stability(Stable) public interface IVersion extends software.amazon.jsii.JsiiSerializable, IFunction, IVersionRef
  • Method Details

    • getEdgeArn

      @Stability(Stable) @NotNull String getEdgeArn()
      The ARN of the version for Lambda@Edge.
    • getLambda

      @Stability(Stable) @NotNull IFunction getLambda()
      The underlying AWS Lambda function.
    • getVersion

      @Stability(Stable) @NotNull String getVersion()
      The most recently deployed version of this function.
    • addAlias

      @Stability(Deprecated) @Deprecated @NotNull Alias addAlias(@NotNull String aliasName, @Nullable AliasOptions options)
      Deprecated.
      Calling addAlias on a Version object will cause the Alias to be replaced on every function update. Call function.addAlias() or new Alias() instead.
      (deprecated) Defines an alias for this version.

      Parameters:
      aliasName - The name of the alias. This parameter is required.
      options - Alias options.
    • addAlias

      @Stability(Deprecated) @Deprecated @NotNull Alias addAlias(@NotNull String aliasName)
      Deprecated.
      Calling addAlias on a Version object will cause the Alias to be replaced on every function update. Call function.addAlias() or new Alias() instead.
      (deprecated) Defines an alias for this version.

      Parameters:
      aliasName - The name of the alias. This parameter is required.
    • getNode

      @Stability(Stable) @NotNull software.constructs.Node getNode()
      The tree node.
      Specified by:
      getNode in interface software.constructs.IConstruct
      Specified by:
      getNode in interface IFunction
    • 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
      Specified by:
      getEnv in interface IFunction