getLayerVersion

Provides information about a Lambda Layer Version.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.LambdaFunctions;
import com.pulumi.aws.lambda.inputs.GetLayerVersionArgs;
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) {
final var config = ctx.config();
final var layerName = config.get("layerName");
final var existing = LambdaFunctions.getLayerVersion(GetLayerVersionArgs.builder()
.layerName(layerName)
.build());
}
}

Return

A collection of values returned by getLayerVersion.

Parameters

argument

A collection of arguments for invoking getLayerVersion.


suspend fun getLayerVersion(compatibleArchitecture: String? = null, compatibleRuntime: String? = null, layerName: String, version: Int? = null): GetLayerVersionResult

Return

A collection of values returned by getLayerVersion.

Parameters

compatibleArchitecture

Specific architecture the layer version could support. Conflicts with version. If specified, the latest available layer version supporting the provided architecture will be used.

compatibleRuntime

Specific runtime the layer version must support. Conflicts with version. If specified, the latest available layer version supporting the provided runtime will be used.

layerName

Name of the lambda layer.

version

Specific layer version. Conflicts with compatible_runtime and compatible_architecture. If omitted, the latest available layer version will be used.

See also


Return

A collection of values returned by getLayerVersion.

Parameters

argument

Builder for com.pulumi.aws.lambda.kotlin.inputs.GetLayerVersionPlainArgs.

See also