get Layer Version
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
A collection of arguments for invoking getLayerVersion.
Return
A collection of values returned by getLayerVersion.
Parameters
Specific architecture the layer version could support. Conflicts with version. If specified, the latest available layer version supporting the provided architecture will be used.
Specific runtime the layer version must support. Conflicts with version. If specified, the latest available layer version supporting the provided runtime will be used.
Name of the lambda layer.
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
Builder for com.pulumi.aws.lambda.kotlin.inputs.GetLayerVersionPlainArgs.