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.94.0 (build b380f01)", date="2024-03-01T20:58:26.580Z") @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.*;
 import software.amazon.awscdk.services.lambda.*;
 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