Interface LayerVersionOptions

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

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

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.lambda.*;
 import software.amazon.awscdk.core.*;
 LayerVersionOptions layerVersionOptions = LayerVersionOptions.builder()
         .description("description")
         .layerVersionName("layerVersionName")
         .license("license")
         .removalPolicy(RemovalPolicy.DESTROY)
         .build();
 
  • Method Details

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      The description the this Lambda Layer.

      Default: - No description.

    • getLayerVersionName

      @Stability(Stable) @Nullable default String getLayerVersionName()
      The name of the layer.

      Default: - A name will be generated.

    • getLicense

      @Stability(Stable) @Nullable default String getLicense()
      The SPDX licence identifier or URL to the license file for this layer.

      Default: - No license information will be recorded.

    • getRemovalPolicy

      @Stability(Stable) @Nullable default RemovalPolicy getRemovalPolicy()
      Whether to retain this version of the layer when a new version is added or when the stack is deleted.

      Default: RemovalPolicy.DESTROY

    • builder

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