@Generated(value="jsii-pacmak/1.14.0 (build 729554b)", date="2020-10-29T17:34:18.527Z") @Stability(value=Stable) public interface ILayerVersion extends software.amazon.jsii.JsiiSerializable, 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(String id,
LayerVersionPermission permission)
Add permission for this layer version to specific entities.
|
default List<Runtime> |
getCompatibleRuntimes()
The runtimes compatible with this Layer.
|
String |
getLayerVersionArn()
The ARN of the Lambda Layer version that this Layer defines.
|
getNode@Stability(value=Stable) @NotNull String getLayerVersionArn()
@Stability(value=Stable) @Nullable default List<Runtime> getCompatibleRuntimes()
Default: Runtime.All
@Stability(value=Stable)
void addPermission(@NotNull
String id,
@NotNull
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.Copyright © 2020. All rights reserved.