GetLayerVersion

Provides information about a Lambda Layer Version.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var layerName = config.RequireObject<dynamic>("layerName");
        var existing = Output.Create(Aws.Lambda.GetLayerVersion.InvokeAsync(new Aws.Lambda.GetLayerVersionArgs
        {
            LayerName = layerName,
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := lambda.LookupLayerVersion(ctx, &lambda.LookupLayerVersionArgs{
            LayerName: layerName,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

config = pulumi.Config()
layer_name = config.require_object("layerName")
existing = aws.lambda.get_layer_version(layer_name=layer_name)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const config = new pulumi.Config();
const layerName = config.require("layerName");

const existing = pulumi.output(aws.lambda.getLayerVersion({
    layerName: layerName,
}, { async: true }));

Using GetLayerVersion

function getLayerVersion(args: GetLayerVersionArgs, opts?: InvokeOptions): Promise<GetLayerVersionResult>
function  get_layer_version(compatible_runtime=None, layer_name=None, version=None, opts=None)
func LookupLayerVersion(ctx *Context, args *LookupLayerVersionArgs, opts ...InvokeOption) (*LookupLayerVersionResult, error)

Note: This function is named LookupLayerVersion in the Go SDK.

public static class GetLayerVersion {
    public static Task<GetLayerVersionResult> InvokeAsync(GetLayerVersionArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

LayerName string

Name of the lambda layer.

CompatibleRuntime string

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

Version int

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

LayerName string

Name of the lambda layer.

CompatibleRuntime string

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

Version int

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

layerName string

Name of the lambda layer.

compatibleRuntime string

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

version number

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

layer_name str

Name of the lambda layer.

compatible_runtime str

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

version float

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

GetLayerVersion Result

The following output properties are available:

Arn string

The Amazon Resource Name (ARN) of the Lambda Layer with version.

CompatibleRuntimes List<string>

A list of Runtimes the specific Lambda Layer version is compatible with.

CreatedDate string

The date this resource was created.

Description string

Description of the specific Lambda Layer version.

Id string

The provider-assigned unique ID for this managed resource.

LayerArn string

The Amazon Resource Name (ARN) of the Lambda Layer without version.

LayerName string
LicenseInfo string

License info associated with the specific Lambda Layer version.

SourceCodeHash string

Base64-encoded representation of raw SHA-256 sum of the zip file.

SourceCodeSize int

The size in bytes of the function .zip file.

Version int

This Lamba Layer version.

CompatibleRuntime string
Arn string

The Amazon Resource Name (ARN) of the Lambda Layer with version.

CompatibleRuntimes []string

A list of Runtimes the specific Lambda Layer version is compatible with.

CreatedDate string

The date this resource was created.

Description string

Description of the specific Lambda Layer version.

Id string

The provider-assigned unique ID for this managed resource.

LayerArn string

The Amazon Resource Name (ARN) of the Lambda Layer without version.

LayerName string
LicenseInfo string

License info associated with the specific Lambda Layer version.

SourceCodeHash string

Base64-encoded representation of raw SHA-256 sum of the zip file.

SourceCodeSize int

The size in bytes of the function .zip file.

Version int

This Lamba Layer version.

CompatibleRuntime string
arn string

The Amazon Resource Name (ARN) of the Lambda Layer with version.

compatibleRuntimes string[]

A list of Runtimes the specific Lambda Layer version is compatible with.

createdDate string

The date this resource was created.

description string

Description of the specific Lambda Layer version.

id string

The provider-assigned unique ID for this managed resource.

layerArn string

The Amazon Resource Name (ARN) of the Lambda Layer without version.

layerName string
licenseInfo string

License info associated with the specific Lambda Layer version.

sourceCodeHash string

Base64-encoded representation of raw SHA-256 sum of the zip file.

sourceCodeSize number

The size in bytes of the function .zip file.

version number

This Lamba Layer version.

compatibleRuntime string
arn str

The Amazon Resource Name (ARN) of the Lambda Layer with version.

compatible_runtimes List[str]

A list of Runtimes the specific Lambda Layer version is compatible with.

created_date str

The date this resource was created.

description str

Description of the specific Lambda Layer version.

id str

The provider-assigned unique ID for this managed resource.

layer_arn str

The Amazon Resource Name (ARN) of the Lambda Layer without version.

layer_name str
license_info str

License info associated with the specific Lambda Layer version.

source_code_hash str

Base64-encoded representation of raw SHA-256 sum of the zip file.

source_code_size float

The size in bytes of the function .zip file.

version float

This Lamba Layer version.

compatible_runtime str

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.