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
LookupLayerVersionin the Go SDK.
public static class GetLayerVersion {
public static Task<GetLayerVersionResult> InvokeAsync(GetLayerVersionArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Layer
Name string Name of the lambda layer.
- Compatible
Runtime 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.
- Layer
Name string Name of the lambda layer.
- Compatible
Runtime 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.
- layer
Name string Name of the lambda layer.
- compatible
Runtime 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.
- Compatible
Runtimes List<string> A list of Runtimes the specific Lambda Layer version is compatible with.
- Created
Date 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.
- Layer
Arn string The Amazon Resource Name (ARN) of the Lambda Layer without version.
- Layer
Name string - License
Info string License info associated with the specific Lambda Layer version.
- Source
Code stringHash Base64-encoded representation of raw SHA-256 sum of the zip file.
- Source
Code intSize The size in bytes of the function .zip file.
- Version int
This Lamba Layer version.
- Compatible
Runtime string
- Arn string
The Amazon Resource Name (ARN) of the Lambda Layer with version.
- Compatible
Runtimes []string A list of Runtimes the specific Lambda Layer version is compatible with.
- Created
Date 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.
- Layer
Arn string The Amazon Resource Name (ARN) of the Lambda Layer without version.
- Layer
Name string - License
Info string License info associated with the specific Lambda Layer version.
- Source
Code stringHash Base64-encoded representation of raw SHA-256 sum of the zip file.
- Source
Code intSize The size in bytes of the function .zip file.
- Version int
This Lamba Layer version.
- Compatible
Runtime string
- arn string
The Amazon Resource Name (ARN) of the Lambda Layer with version.
- compatible
Runtimes string[] A list of Runtimes the specific Lambda Layer version is compatible with.
- created
Date 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.
- layer
Arn string The Amazon Resource Name (ARN) of the Lambda Layer without version.
- layer
Name string - license
Info string License info associated with the specific Lambda Layer version.
- source
Code stringHash Base64-encoded representation of raw SHA-256 sum of the zip file.
- source
Code numberSize The size in bytes of the function .zip file.
- version number
This Lamba Layer version.
- compatible
Runtime 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_ strhash Base64-encoded representation of raw SHA-256 sum of the zip file.
- source_
code_ floatsize 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
awsTerraform Provider.