Interface CfnLayerVersionProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnLayerVersionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.665Z") @Stability(Stable) public interface CfnLayerVersionProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnLayerVersion.

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.*;
 CfnLayerVersionProps cfnLayerVersionProps = CfnLayerVersionProps.builder()
         .content(ContentProperty.builder()
                 .s3Bucket("s3Bucket")
                 .s3Key("s3Key")
                 // the properties below are optional
                 .s3ObjectVersion("s3ObjectVersion")
                 .build())
         // the properties below are optional
         .compatibleArchitectures(List.of("compatibleArchitectures"))
         .compatibleRuntimes(List.of("compatibleRuntimes"))
         .description("description")
         .layerName("layerName")
         .licenseInfo("licenseInfo")
         .build();
 
  • Method Details

    • getContent

      @Stability(Stable) @NotNull Object getContent()
      The function layer archive.
    • getCompatibleArchitectures

      @Stability(Stable) @Nullable default List<String> getCompatibleArchitectures()
      A list of compatible instruction set architectures .
    • getCompatibleRuntimes

      @Stability(Stable) @Nullable default List<String> getCompatibleRuntimes()
      A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions .
    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      The description of the version.
    • getLayerName

      @Stability(Stable) @Nullable default String getLayerName()
      The name or Amazon Resource Name (ARN) of the layer.
    • getLicenseInfo

      @Stability(Stable) @Nullable default String getLicenseInfo()
      The layer's software license. It can be any of the following:.

      • An SPDX license identifier . For example, MIT .
      • The URL of a license hosted on the internet. For example, https://opensource.org/licenses/MIT .
      • The full text of the license.
    • builder

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