LayerVersion

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.fc.LayerVersion;
import com.pulumi.alicloud.fc.LayerVersionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new LayerVersion("example", LayerVersionArgs.builder()
.compatibleRuntimes("nodejs12")
.layerName("your_layer_name")
.ossBucketName("your_code_oss_bucket_name")
.ossObjectName("your_code_oss_object_name")
.build());
}
}

Import

Function Compute Layer Version can be imported using the id, e.g.

$ pulumi import alicloud:fc/layerVersion:LayerVersion example my_function

Properties

Link copied to clipboard
val acl: Output<String>

The access mode of Layer Version.

Link copied to clipboard
val arn: Output<String>

The arn of Layer Version.

Link copied to clipboard
val codeCheckSum: Output<String>

The checksum of the layer code package.

Link copied to clipboard

The list of runtime environments that are supported by the layer. Valid values: nodejs14, nodejs12, nodejs10, nodejs8, nodejs6, python3.9, python3, python2.7, java11, java8, php7.2, go1,dotnetcore2.1, custom.

Link copied to clipboard
val description: Output<String>?

The description of the layer version.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val layerName: Output<String>

The name of the layer.

Link copied to clipboard
val ossBucketName: Output<String>?

The name of the OSS bucket that stores the ZIP package of the function code.

Link copied to clipboard
val ossObjectName: Output<String>?

The name of the OSS object (ZIP package) that contains the function code.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val skipDestroy: Output<Boolean>?

Whether to retain the old version of a previously deployed Lambda Layer. Default is false. When this is not set to true, changing any of compatible_runtimes, description, layer_name, oss_bucket_name, oss_object_name, or zip_file forces deletion of the existing layer version and creation of a new layer version.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>

The version of Layer Version.

Link copied to clipboard
val zipFile: Output<String>?

The ZIP package of the function code that is encoded in the Base64 format.