@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:54.582Z") public interface ILayerVersion extends IResource
Modifier and Type | Interface and Description |
---|---|
static interface |
ILayerVersion.Jsii$Default
Internal default implementation for
ILayerVersion . |
static class |
ILayerVersion.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
Modifier and Type | Method and Description |
---|---|
void |
addPermission(java.lang.String id,
LayerVersionPermission permission)
Add permission for this layer version to specific entities.
|
default java.util.List<Runtime> |
getCompatibleRuntimes()
The runtimes compatible with this Layer.
|
java.lang.String |
getLayerVersionArn()
The ARN of the Lambda Layer version that this Layer defines.
|
applyRemovalPolicy, getEnv, getStack
getNode
java.lang.String getLayerVersionArn()
default java.util.List<Runtime> getCompatibleRuntimes()
Default: Runtime.All
void addPermission(java.lang.String id, LayerVersionPermission permission)
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.
id
- the ID of the grant in the construct tree. This parameter is required.permission
- the identification of the grantee. This parameter is required.