software.amazon.awscdk.services.lambda.LayerVersion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lambda Show documentation
Show all versions of lambda Show documentation
CDK Constructs for AWS Lambda
package software.amazon.awscdk.services.lambda;
/**
* Defines a new Lambda Layer version.
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.7.15 (build e429c41)", date = "2019-03-20T13:00:17.323Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.lambda.$Module.class, fqn = "@aws-cdk/aws-lambda.LayerVersion")
public class LayerVersion extends software.amazon.awscdk.services.lambda.LayerVersionBase {
protected LayerVersion(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
public LayerVersion(final software.amazon.awscdk.Construct scope, final java.lang.String id, final software.amazon.awscdk.services.lambda.LayerVersionProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.Jsii);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, java.util.stream.Stream.concat(java.util.stream.Stream.concat(java.util.stream.Stream.of(java.util.Objects.requireNonNull(scope, "scope is required")), java.util.stream.Stream.of(java.util.Objects.requireNonNull(id, "id is required"))), java.util.stream.Stream.of(java.util.Objects.requireNonNull(props, "props is required"))).toArray());
}
/**
* Imports a Layer that has been defined externally.
* @param scope the parent Construct that will use the imported layer.
* @param id the id of the imported layer in the construct tree.
* @param props the properties of the imported layer.
*/
public static software.amazon.awscdk.services.lambda.ILayerVersion import_(final software.amazon.awscdk.Construct scope, final java.lang.String id, final software.amazon.awscdk.services.lambda.LayerVersionImportProps props) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.lambda.LayerVersion.class, "import", software.amazon.awscdk.services.lambda.ILayerVersion.class, java.util.stream.Stream.concat(java.util.stream.Stream.concat(java.util.stream.Stream.of(java.util.Objects.requireNonNull(scope, "scope is required")), java.util.stream.Stream.of(java.util.Objects.requireNonNull(id, "id is required"))), java.util.stream.Stream.of(java.util.Objects.requireNonNull(props, "props is required"))).toArray());
}
/**
* The ARN of the Lambda Layer version that this Layer defines.
*/
@Override
public java.lang.String getLayerVersionArn() {
return this.jsiiGet("layerVersionArn", java.lang.String.class);
}
/**
* The runtimes compatible with this Layer.
*/
@Override
@javax.annotation.Nullable
public java.util.List getCompatibleRuntimes() {
return this.jsiiGet("compatibleRuntimes", java.util.List.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy