Interface LayerVersionProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, LayerVersionOptions
All Known Implementing Classes:
LayerVersionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.804Z") @Stability(Stable) public interface LayerVersionProps extends software.amazon.jsii.JsiiSerializable, LayerVersionOptions
Example:

 LayerVersion.Builder.create(this, "MyLayer")
         .removalPolicy(RemovalPolicy.RETAIN)
         .code(Code.fromAsset(join(__dirname, "lambda-handler")))
         .compatibleArchitectures(List.of(Architecture.X86_64, Architecture.ARM_64))
         .build();
 
  • Method Details

    • getCode

      @Stability(Stable) @NotNull Code getCode()
      The content of this Layer.

      Using Code.fromInline is not supported.

    • getCompatibleArchitectures

      @Stability(Stable) @Nullable default List<Architecture> getCompatibleArchitectures()
      The system architectures compatible with this layer.

      Default: [Architecture.X86_64]

    • getCompatibleRuntimes

      @Stability(Stable) @Nullable default List<Runtime> getCompatibleRuntimes()
      The runtimes compatible with this Layer.

      Default: - All runtimes are supported.

    • builder

      @Stability(Stable) static LayerVersionProps.Builder builder()
      Returns:
      a LayerVersionProps.Builder of LayerVersionProps