Interface ILayerVersion
- All Superinterfaces:
IConstruct
,software.constructs.IConstruct
,IDependable
,IResource
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ILayerVersion.Jsii$Default
- All Known Implementing Classes:
AwsCliLayer
,ILayerVersion.Jsii$Proxy
,KubectlLayer
,LayerVersion
,NodeProxyAgentLayer
,PythonLayerVersion
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.790Z")
@Stability(Stable)
public interface ILayerVersion
extends software.amazon.jsii.JsiiSerializable, IResource
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forILayerVersion
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPermission
(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.Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods 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: Runtime.All
-
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:GetLayerVersion
permission 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.
-