@Generated(value="jsii-pacmak/1.14.1 (build 828de8a)", date="2020-11-24T22:28:23.739Z") @Stability(value=Experimental) public class KubectlLayer extends Construct implements ILayerVersion
https://github.com/aws-samples/aws-lambda-layer-kubectl| Modifier and Type | Class and Description |
|---|---|
static class |
KubectlLayer.Builder
(experimental) A fluent builder for
KubectlLayer. |
software.amazon.jsii.JsiiObject.InitializationModeILayerVersion.Jsii$Default, ILayerVersion.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
KubectlLayer(software.constructs.Construct scope,
String id) |
|
KubectlLayer(software.constructs.Construct scope,
String id,
KubectlLayerProps props) |
protected |
KubectlLayer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
KubectlLayer(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.
|
List<Runtime> |
getCompatibleRuntimes()
(experimental) All runtimes are compatible.
|
ResourceEnvironment |
getEnv()
(experimental) The environment this resource belongs to.
|
String |
getLayerVersionArn()
(experimental) The ARN of the AWS Lambda layer version.
|
Stack |
getStack()
(experimental) The stack in which this resource is defined.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected KubectlLayer(software.amazon.jsii.JsiiObjectRef objRef)
protected KubectlLayer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public KubectlLayer(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
KubectlLayerProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public KubectlLayer(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - 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 ILayerVersion_id - This parameter is required._permission - This parameter is required.@Stability(value=Experimental) @NotNull public ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
@Stability(value=Experimental) @NotNull public String getLayerVersionArn()
getLayerVersionArn in interface ILayerVersion@Stability(value=Experimental) @NotNull public Stack getStack()
@Stability(value=Experimental) @Nullable public List<Runtime> getCompatibleRuntimes()
getCompatibleRuntimes in interface ILayerVersionCopyright © 2020. All rights reserved.