@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:21.540Z") @Stability(value=Experimental) public class LayerVersion extends Resource implements ILayerVersion
| Modifier and Type | Class and Description |
|---|---|
static class |
LayerVersion.Builder
(experimental) A fluent builder for
LayerVersion. |
software.amazon.jsii.JsiiObject.InitializationModeILayerVersion.Jsii$Default, ILayerVersion.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
LayerVersion(software.constructs.Construct scope,
String id,
LayerVersionProps props) |
protected |
LayerVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LayerVersion(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPermission(String id,
LayerVersionPermission permission)
(experimental) Add permission for this layer version to specific entities.
|
static ILayerVersion |
fromLayerVersionArn(software.constructs.Construct scope,
String id,
String layerVersionArn)
(experimental) Imports a layer version by ARN.
|
static ILayerVersion |
fromLayerVersionAttributes(software.constructs.Construct scope,
String id,
LayerVersionAttributes attrs)
(experimental) Imports a Layer that has been defined externally.
|
List<Runtime> |
getCompatibleRuntimes()
(experimental) The runtimes compatible with this Layer.
|
String |
getLayerVersionArn()
(experimental) The ARN of the Lambda Layer version that this Layer defines.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected LayerVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected LayerVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public LayerVersion(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
LayerVersionProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static ILayerVersion fromLayerVersionArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String layerVersionArn)
Assumes it is compatible with all Lambda runtimes.
scope - This parameter is required.id - This parameter is required.layerVersionArn - This parameter is required.@Stability(value=Experimental) @NotNull public static ILayerVersion fromLayerVersionAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull LayerVersionAttributes attrs)
scope - the parent Construct that will use the imported layer. This parameter is required.id - the id of the imported layer in the construct tree. This parameter is required.attrs - the properties of the imported layer. This parameter is required.@Stability(value=Experimental)
public 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.
addPermission in interface ILayerVersionid - This parameter is required.permission - This parameter is required.@Stability(value=Experimental) @NotNull public String getLayerVersionArn()
getLayerVersionArn in interface ILayerVersion@Stability(value=Experimental) @Nullable public List<Runtime> getCompatibleRuntimes()
getCompatibleRuntimes in interface ILayerVersionCopyright © 2021. All rights reserved.