@Generated(value="jsii-pacmak/0.10.5 (build 46bc9b0)", date="2019-05-06T20:53:37.764Z") public class LayerVersion extends software.amazon.awscdk.Resource implements ILayerVersion
software.amazon.jsii.JsiiObject.InitializationModeILayerVersion.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
LayerVersion(software.amazon.awscdk.Construct scope,
String id,
LayerVersionProps props) |
protected |
LayerVersion(software.amazon.jsii.JsiiObject.InitializationMode mode) |
| Modifier and Type | Method and Description |
|---|---|
LayerVersionAttributes |
export()
Exports this layer for use in another Stack.
|
static ILayerVersion |
fromLayerVersionArn(software.amazon.awscdk.Construct scope,
String id,
String layerVersionArn)
Imports a layer version by ARN.
|
static ILayerVersion |
fromLayerVersionAttributes(software.amazon.awscdk.Construct scope,
String id,
LayerVersionAttributes attrs)
Imports a Layer that has been defined externally.
|
List<Runtime> |
getCompatibleRuntimes()
The runtimes compatible with this Layer.
|
String |
getLayerVersionArn()
The ARN of the Lambda Layer version that this Layer defines.
|
ILayerVersion |
grantUsage(String id,
LayerVersionUsageGrantee grantee)
Grants usage of this layer to specific entities.
|
getDependencyRoots, getNode, isConstruct, prepare, toString, validatejsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSetprotected LayerVersion(software.amazon.jsii.JsiiObject.InitializationMode mode)
public LayerVersion(software.amazon.awscdk.Construct scope,
String id,
LayerVersionProps props)
public static ILayerVersion fromLayerVersionArn(software.amazon.awscdk.Construct scope, String id, String layerVersionArn)
public static ILayerVersion fromLayerVersionAttributes(software.amazon.awscdk.Construct scope, String id, LayerVersionAttributes attrs)
scope - the parent Construct that will use the imported layer.id - the id of the imported layer in the construct tree.attrs - the properties of the imported layer.public LayerVersionAttributes export()
export in interface ILayerVersionpublic ILayerVersion grantUsage(String id, LayerVersionUsageGrantee grantee)
grantUsage in interface ILayerVersionid - the ID of the grant in the construct tree.grantee - the identification of the grantee.public String getLayerVersionArn()
getLayerVersionArn in interface ILayerVersion@Nullable public List<Runtime> getCompatibleRuntimes()
getCompatibleRuntimes in interface ILayerVersionCopyright © 2019. All rights reserved.