LayerVersionArgs

data class LayerVersionArgs(val compatibleRuntimes: Output<List<String>>? = null, val description: Output<String>? = null, val layerName: Output<String>? = null, val ossBucketName: Output<String>? = null, val ossObjectName: Output<String>? = null, val skipDestroy: Output<Boolean>? = null, val zipFile: Output<String>? = null) : ConvertibleToJava<LayerVersionArgs>

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

Constructors

Link copied to clipboard
fun LayerVersionArgs(compatibleRuntimes: Output<List<String>>? = null, description: Output<String>? = null, layerName: Output<String>? = null, ossBucketName: Output<String>? = null, ossObjectName: Output<String>? = null, skipDestroy: Output<Boolean>? = null, zipFile: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): LayerVersionArgs

Properties

Link copied to clipboard
val compatibleRuntimes: Output<List<String>>? = null

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>? = null

The description of the layer version.

Link copied to clipboard
val layerName: Output<String>? = null

The name of the layer.

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

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

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

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

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

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 zipFile: Output<String>? = null

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