Class CfnLayerVersion

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:13.705Z") @Stability(Stable) public class CfnLayerVersion extends CfnResource implements IInspectable
https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlesslayerversion.

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();
 

See Also:
  • 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 software.constructs.Construct scope, @NotNull String id, @Nullable CfnLayerVersionProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnLayerVersion

      @Stability(Stable) public CfnLayerVersion(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). 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()
    • setCompatibleRuntimes

      @Stability(Stable) public void setCompatibleRuntimes(@Nullable List<String> value)
    • getContentUri

      @Stability(Stable) @Nullable public Object getContentUri()
    • setContentUri

      @Stability(Stable) public void setContentUri(@Nullable String value)
    • setContentUri

      @Stability(Stable) public void setContentUri(@Nullable IResolvable value)
    • setContentUri

      @Stability(Stable) public void setContentUri(@Nullable CfnLayerVersion.S3LocationProperty value)
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
    • getLayerName

      @Stability(Stable) @Nullable public String getLayerName()
    • setLayerName

      @Stability(Stable) public void setLayerName(@Nullable String value)
    • getLicenseInfo

      @Stability(Stable) @Nullable public String getLicenseInfo()
    • setLicenseInfo

      @Stability(Stable) public void setLicenseInfo(@Nullable String value)
    • getRetentionPolicy

      @Stability(Stable) @Nullable public String getRetentionPolicy()
    • setRetentionPolicy

      @Stability(Stable) public void setRetentionPolicy(@Nullable String value)