Interface ILayerVersion
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,ILayerVersionRef,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ILayerVersion.Jsii$Default
- All Known Implementing Classes:
AwsCliLayer,ILayerVersion.Jsii$Proxy,LayerVersion,NodeProxyAgentLayer,PythonLayerVersion
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:41.287Z")
@Stability(Stable)
public interface ILayerVersion
extends software.amazon.jsii.JsiiSerializable, IResource, ILayerVersionRef
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forILayerVersion.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPermission(String id, LayerVersionPermission permission) Add permission for this layer version to specific entities.The runtimes compatible with this Layer.The ARN of the Lambda Layer version that this Layer defines.software.constructs.NodegetNode()The tree node.Methods inherited from interface software.amazon.awscdk.services.lambda.ILayerVersionRef
getLayerVersionRefMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLayerVersionArn
The ARN of the Lambda Layer version that this Layer defines. -
getCompatibleRuntimes
The runtimes compatible with this Layer.Default: - All supported runtimes. Setting this to Runtime.ALL is equivalent to leaving it undefined.
-
addPermission
@Stability(Stable) 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:GetLayerVersionpermission on the layer version.- 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.
-
getNode
@Stability(Stable) @NotNull software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct
-