Interface ILayerVersion.Jsii$Default

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IConstruct.Jsii$Default, software.constructs.IDependable, software.constructs.IDependable.Jsii$Default, IEnvironmentAware, IEnvironmentAware.Jsii$Default, ILayerVersion, ILayerVersionRef, ILayerVersionRef.Jsii$Default, IResource, IResource.Jsii$Default, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ILayerVersion.Jsii$Proxy
Enclosing interface:
ILayerVersion

@Internal public static interface ILayerVersion.Jsii$Default extends ILayerVersion, IResource.Jsii$Default, ILayerVersionRef.Jsii$Default
Internal default implementation for ILayerVersion.
  • Method Details

    • getLayerVersionArn

      @Stability(Stable) @NotNull default String getLayerVersionArn()
      The ARN of the Lambda Layer version that this Layer defines.
      Specified by:
      getLayerVersionArn in interface ILayerVersion
    • getCompatibleRuntimes

      @Stability(Stable) @Nullable default List<Runtime> getCompatibleRuntimes()
      The runtimes compatible with this Layer.

      Default: - All supported runtimes. Setting this to Runtime.ALL is equivalent to leaving it undefined.

      Specified by:
      getCompatibleRuntimes in interface ILayerVersion
    • addPermission

      @Stability(Stable) default void addPermission(@NotNull String id, @NotNull LayerVersionPermission permission)
      Add permission for this layer version to specific entities.

      Usage within the same account where the layer is defined is always allowed and does not require calling this method. Note that the principal that creates the Lambda function using the layer (for example, a CloudFormation changeset execution role) also needs to have the lambda:GetLayerVersion permission on the layer version.

      Specified by:
      addPermission in interface ILayerVersion
      Parameters:
      id - the ID of the grant in the construct tree. This parameter is required.
      permission - the identification of the grantee. This parameter is required.