Class CfnLayerVersion

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:35.673Z") @Stability(Stable) public class CfnLayerVersion extends CfnResource implements IInspectable
A CloudFormation AWS::Serverless::LayerVersion.

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.sam.*;
 CfnLayerVersion cfnLayerVersion = CfnLayerVersion.Builder.create(this, "MyCfnLayerVersion")
         .compatibleRuntimes(List.of("compatibleRuntimes"))
         .contentUri("contentUri")
         .description("description")
         .layerName("layerName")
         .licenseInfo("licenseInfo")
         .retentionPolicy("retentionPolicy")
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
    • REQUIRED_TRANSFORM

      @Stability(Stable) public static final String REQUIRED_TRANSFORM
      The Transform a template must use in order to use this resource.
  • Constructor Details

    • CfnLayerVersion

      protected CfnLayerVersion(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnLayerVersion

      protected CfnLayerVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnLayerVersion

      @Stability(Stable) public CfnLayerVersion(@NotNull Construct scope, @NotNull String id, @Nullable CfnLayerVersionProps props)
      Create a new AWS::Serverless::LayerVersion.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
    • CfnLayerVersion

      @Stability(Stable) public CfnLayerVersion(@NotNull Construct scope, @NotNull String id)
      Create a new AWS::Serverless::LayerVersion.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCompatibleRuntimes

      @Stability(Stable) @Nullable public List<String> getCompatibleRuntimes()
      AWS::Serverless::LayerVersion.CompatibleRuntimes.
    • setCompatibleRuntimes

      @Stability(Stable) public void setCompatibleRuntimes(@Nullable List<String> value)
      AWS::Serverless::LayerVersion.CompatibleRuntimes.
    • getContentUri

      @Stability(Stable) @Nullable public Object getContentUri()
      AWS::Serverless::LayerVersion.ContentUri.
    • setContentUri

      @Stability(Stable) public void setContentUri(@Nullable String value)
      AWS::Serverless::LayerVersion.ContentUri.
    • setContentUri

      @Stability(Stable) public void setContentUri(@Nullable IResolvable value)
      AWS::Serverless::LayerVersion.ContentUri.
    • setContentUri

      @Stability(Stable) public void setContentUri(@Nullable CfnLayerVersion.S3LocationProperty value)
      AWS::Serverless::LayerVersion.ContentUri.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      AWS::Serverless::LayerVersion.Description.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      AWS::Serverless::LayerVersion.Description.
    • getLayerName

      @Stability(Stable) @Nullable public String getLayerName()
      AWS::Serverless::LayerVersion.LayerName.
    • setLayerName

      @Stability(Stable) public void setLayerName(@Nullable String value)
      AWS::Serverless::LayerVersion.LayerName.
    • getLicenseInfo

      @Stability(Stable) @Nullable public String getLicenseInfo()
      AWS::Serverless::LayerVersion.LicenseInfo.
    • setLicenseInfo

      @Stability(Stable) public void setLicenseInfo(@Nullable String value)
      AWS::Serverless::LayerVersion.LicenseInfo.
    • getRetentionPolicy

      @Stability(Stable) @Nullable public String getRetentionPolicy()
      AWS::Serverless::LayerVersion.RetentionPolicy.
    • setRetentionPolicy

      @Stability(Stable) public void setRetentionPolicy(@Nullable String value)
      AWS::Serverless::LayerVersion.RetentionPolicy.