1. Packages
  2. AWS
  3. API Docs
  4. lambda
  5. getFunction
AWS v7.4.0 published on Wednesday, Aug 13, 2025 by Pulumi

aws.lambda.getFunction

Explore with Pulumi AI

aws logo
AWS v7.4.0 published on Wednesday, Aug 13, 2025 by Pulumi

    Provides details about an AWS Lambda Function. Use this data source to obtain information about an existing Lambda function for use in other resources or as a reference for function configurations.

    Note: This data source returns information about the latest version or alias specified by the qualifier. If no qualifier is provided, it returns information about the most recent published version, or $LATEST if no published version exists.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.lambda.getFunction({
        functionName: "my-lambda-function",
    });
    export const functionArn = example.then(example => example.arn);
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.lambda.get_function(function_name="my-lambda-function")
    pulumi.export("functionArn", example.arn)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambda"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := lambda.LookupFunction(ctx, &lambda.LookupFunctionArgs{
    			FunctionName: "my-lambda-function",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("functionArn", example.Arn)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Lambda.GetFunction.Invoke(new()
        {
            FunctionName = "my-lambda-function",
        });
    
        return new Dictionary<string, object?>
        {
            ["functionArn"] = example.Apply(getFunctionResult => getFunctionResult.Arn),
        };
    });
    
    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.GetFunctionArgs;
    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 example = LambdaFunctions.getFunction(GetFunctionArgs.builder()
                .functionName("my-lambda-function")
                .build());
    
            ctx.export("functionArn", example.arn());
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:lambda:getFunction
          arguments:
            functionName: my-lambda-function
    outputs:
      functionArn: ${example.arn}
    

    Using Function Alias

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.lambda.getFunction({
        functionName: "api-handler",
        qualifier: "production",
    });
    // Use in API Gateway integration
    const exampleIntegration = new aws.apigateway.Integration("example", {
        restApi: exampleAwsApiGatewayRestApi.id,
        resourceId: exampleAwsApiGatewayResource.id,
        httpMethod: exampleAwsApiGatewayMethod.httpMethod,
        integrationHttpMethod: "POST",
        type: "AWS_PROXY",
        uri: example.then(example => example.invokeArn),
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.lambda.get_function(function_name="api-handler",
        qualifier="production")
    # Use in API Gateway integration
    example_integration = aws.apigateway.Integration("example",
        rest_api=example_aws_api_gateway_rest_api["id"],
        resource_id=example_aws_api_gateway_resource["id"],
        http_method=example_aws_api_gateway_method["httpMethod"],
        integration_http_method="POST",
        type="AWS_PROXY",
        uri=example.invoke_arn)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/apigateway"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambda"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := lambda.LookupFunction(ctx, &lambda.LookupFunctionArgs{
    			FunctionName: "api-handler",
    			Qualifier:    pulumi.StringRef("production"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Use in API Gateway integration
    		_, err = apigateway.NewIntegration(ctx, "example", &apigateway.IntegrationArgs{
    			RestApi:               pulumi.Any(exampleAwsApiGatewayRestApi.Id),
    			ResourceId:            pulumi.Any(exampleAwsApiGatewayResource.Id),
    			HttpMethod:            pulumi.Any(exampleAwsApiGatewayMethod.HttpMethod),
    			IntegrationHttpMethod: pulumi.String("POST"),
    			Type:                  pulumi.String("AWS_PROXY"),
    			Uri:                   pulumi.String(example.InvokeArn),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Lambda.GetFunction.Invoke(new()
        {
            FunctionName = "api-handler",
            Qualifier = "production",
        });
    
        // Use in API Gateway integration
        var exampleIntegration = new Aws.ApiGateway.Integration("example", new()
        {
            RestApi = exampleAwsApiGatewayRestApi.Id,
            ResourceId = exampleAwsApiGatewayResource.Id,
            HttpMethod = exampleAwsApiGatewayMethod.HttpMethod,
            IntegrationHttpMethod = "POST",
            Type = "AWS_PROXY",
            Uri = example.Apply(getFunctionResult => getFunctionResult.InvokeArn),
        });
    
    });
    
    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.GetFunctionArgs;
    import com.pulumi.aws.apigateway.Integration;
    import com.pulumi.aws.apigateway.IntegrationArgs;
    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 example = LambdaFunctions.getFunction(GetFunctionArgs.builder()
                .functionName("api-handler")
                .qualifier("production")
                .build());
    
            // Use in API Gateway integration
            var exampleIntegration = new Integration("exampleIntegration", IntegrationArgs.builder()
                .restApi(exampleAwsApiGatewayRestApi.id())
                .resourceId(exampleAwsApiGatewayResource.id())
                .httpMethod(exampleAwsApiGatewayMethod.httpMethod())
                .integrationHttpMethod("POST")
                .type("AWS_PROXY")
                .uri(example.invokeArn())
                .build());
    
        }
    }
    
    resources:
      # Use in API Gateway integration
      exampleIntegration:
        type: aws:apigateway:Integration
        name: example
        properties:
          restApi: ${exampleAwsApiGatewayRestApi.id}
          resourceId: ${exampleAwsApiGatewayResource.id}
          httpMethod: ${exampleAwsApiGatewayMethod.httpMethod}
          integrationHttpMethod: POST
          type: AWS_PROXY
          uri: ${example.invokeArn}
    variables:
      example:
        fn::invoke:
          function: aws:lambda:getFunction
          arguments:
            functionName: api-handler
            qualifier: production
    

    Function Configuration Reference

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    // Get existing function details
    const reference = aws.lambda.getFunction({
        functionName: "existing-function",
    });
    // Create new function with similar configuration
    const example = new aws.lambda.Function("example", {
        code: new pulumi.asset.FileArchive("new-function.zip"),
        name: "new-function",
        role: reference.then(reference => reference.role),
        handler: reference.then(reference => reference.handler),
        runtime: reference.then(reference => reference.runtime).apply((x) => aws.lambda.Runtime[x]),
        memorySize: reference.then(reference => reference.memorySize),
        timeout: reference.then(reference => reference.timeout),
        architectures: reference.then(reference => reference.architectures),
        vpcConfig: {
            subnetIds: reference.then(reference => reference.vpcConfig?.subnetIds),
            securityGroupIds: reference.then(reference => reference.vpcConfig?.securityGroupIds),
        },
        environment: {
            variables: reference.then(reference => reference.environment?.variables),
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    # Get existing function details
    reference = aws.lambda.get_function(function_name="existing-function")
    # Create new function with similar configuration
    example = aws.lambda_.Function("example",
        code=pulumi.FileArchive("new-function.zip"),
        name="new-function",
        role=reference.role,
        handler=reference.handler,
        runtime=reference.runtime,
        memory_size=reference.memory_size,
        timeout=reference.timeout,
        architectures=reference.architectures,
        vpc_config={
            "subnet_ids": reference.vpc_config.subnet_ids,
            "security_group_ids": reference.vpc_config.security_group_ids,
        },
        environment={
            "variables": reference.environment.variables,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambda"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Get existing function details
    		reference, err := lambda.LookupFunction(ctx, &lambda.LookupFunctionArgs{
    			FunctionName: "existing-function",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Create new function with similar configuration
    		_, err = lambda.NewFunction(ctx, "example", &lambda.FunctionArgs{
    			Code:          pulumi.NewFileArchive("new-function.zip"),
    			Name:          pulumi.String("new-function"),
    			Role:          pulumi.String(reference.Role),
    			Handler:       pulumi.String(reference.Handler),
    			Runtime:       reference.Runtime.ApplyT(func(x *string) lambda.Runtime { return lambda.Runtime(*x) }).(lambda.RuntimeOutput),
    			MemorySize:    pulumi.Int(reference.MemorySize),
    			Timeout:       pulumi.Int(reference.Timeout),
    			Architectures: interface{}(reference.Architectures),
    			VpcConfig: &lambda.FunctionVpcConfigArgs{
    				SubnetIds:        interface{}(reference.VpcConfig.SubnetIds),
    				SecurityGroupIds: interface{}(reference.VpcConfig.SecurityGroupIds),
    			},
    			Environment: &lambda.FunctionEnvironmentArgs{
    				Variables: pulumi.StringMap(reference.Environment.Variables),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        // Get existing function details
        var reference = Aws.Lambda.GetFunction.Invoke(new()
        {
            FunctionName = "existing-function",
        });
    
        // Create new function with similar configuration
        var example = new Aws.Lambda.Function("example", new()
        {
            Code = new FileArchive("new-function.zip"),
            Name = "new-function",
            Role = reference.Apply(getFunctionResult => getFunctionResult.Role),
            Handler = reference.Apply(getFunctionResult => getFunctionResult.Handler),
            Runtime = reference.Apply(getFunctionResult => getFunctionResult.Runtime).Apply(System.Enum.Parse<Aws.Lambda.Runtime>),
            MemorySize = reference.Apply(getFunctionResult => getFunctionResult.MemorySize),
            Timeout = reference.Apply(getFunctionResult => getFunctionResult.Timeout),
            Architectures = reference.Apply(getFunctionResult => getFunctionResult.Architectures),
            VpcConfig = new Aws.Lambda.Inputs.FunctionVpcConfigArgs
            {
                SubnetIds = reference.Apply(getFunctionResult => getFunctionResult.VpcConfig?.SubnetIds),
                SecurityGroupIds = reference.Apply(getFunctionResult => getFunctionResult.VpcConfig?.SecurityGroupIds),
            },
            Environment = new Aws.Lambda.Inputs.FunctionEnvironmentArgs
            {
                Variables = reference.Apply(getFunctionResult => getFunctionResult.Environment?.Variables),
            },
        });
    
    });
    
    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.GetFunctionArgs;
    import com.pulumi.aws.lambda.Function;
    import com.pulumi.aws.lambda.FunctionArgs;
    import com.pulumi.aws.lambda.inputs.FunctionVpcConfigArgs;
    import com.pulumi.aws.lambda.inputs.FunctionEnvironmentArgs;
    import com.pulumi.asset.FileArchive;
    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) {
            // Get existing function details
            final var reference = LambdaFunctions.getFunction(GetFunctionArgs.builder()
                .functionName("existing-function")
                .build());
    
            // Create new function with similar configuration
            var example = new Function("example", FunctionArgs.builder()
                .code(new FileArchive("new-function.zip"))
                .name("new-function")
                .role(reference.role())
                .handler(reference.handler())
                .runtime(reference.runtime())
                .memorySize(reference.memorySize())
                .timeout(reference.timeout())
                .architectures(reference.architectures())
                .vpcConfig(FunctionVpcConfigArgs.builder()
                    .subnetIds(reference.vpcConfig().subnetIds())
                    .securityGroupIds(reference.vpcConfig().securityGroupIds())
                    .build())
                .environment(FunctionEnvironmentArgs.builder()
                    .variables(reference.environment().variables())
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Create new function with similar configuration
      example:
        type: aws:lambda:Function
        properties:
          code:
            fn::FileArchive: new-function.zip
          name: new-function
          role: ${reference.role}
          handler: ${reference.handler}
          runtime: ${reference.runtime}
          memorySize: ${reference.memorySize}
          timeout: ${reference.timeout}
          architectures: ${reference.architectures}
          vpcConfig:
            subnetIds: ${reference.vpcConfig.subnetIds}
            securityGroupIds: ${reference.vpcConfig.securityGroupIds}
          environment:
            variables: ${reference.environment.variables}
    variables:
      # Get existing function details
      reference:
        fn::invoke:
          function: aws:lambda:getFunction
          arguments:
            functionName: existing-function
    

    Function Version Management

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    // Get details about specific version
    const version = aws.lambda.getFunction({
        functionName: "my-function",
        qualifier: "3",
    });
    // Get details about latest version
    const latest = aws.lambda.getFunction({
        functionName: "my-function",
        qualifier: "$LATEST",
    });
    export const versionComparison = {
        specificVersion: version.then(version => version.version),
        latestVersion: latest.then(latest => latest.version),
        codeDifference: Promise.all([version, latest]).then(([version, latest]) => version.codeSha256 != latest.codeSha256),
    };
    
    import pulumi
    import pulumi_aws as aws
    
    # Get details about specific version
    version = aws.lambda.get_function(function_name="my-function",
        qualifier="3")
    # Get details about latest version
    latest = aws.lambda.get_function(function_name="my-function",
        qualifier="$LATEST")
    pulumi.export("versionComparison", {
        "specificVersion": version.version,
        "latestVersion": latest.version,
        "codeDifference": version.code_sha256 != latest.code_sha256,
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambda"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Get details about specific version
    		version, err := lambda.LookupFunction(ctx, &lambda.LookupFunctionArgs{
    			FunctionName: "my-function",
    			Qualifier:    pulumi.StringRef("3"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Get details about latest version
    		latest, err := lambda.LookupFunction(ctx, &lambda.LookupFunctionArgs{
    			FunctionName: "my-function",
    			Qualifier:    pulumi.StringRef("$LATEST"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("versionComparison", pulumi.Map{
    			"specificVersion": version.Version,
    			"latestVersion":   latest.Version,
    			"codeDifference":  pulumi.Bool(version.CodeSha256 != latest.CodeSha256),
    		})
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        // Get details about specific version
        var version = Aws.Lambda.GetFunction.Invoke(new()
        {
            FunctionName = "my-function",
            Qualifier = "3",
        });
    
        // Get details about latest version
        var latest = Aws.Lambda.GetFunction.Invoke(new()
        {
            FunctionName = "my-function",
            Qualifier = "$LATEST",
        });
    
        return new Dictionary<string, object?>
        {
            ["versionComparison"] = 
            {
                { "specificVersion", version.Apply(getFunctionResult => getFunctionResult.Version) },
                { "latestVersion", latest.Apply(getFunctionResult => getFunctionResult.Version) },
                { "codeDifference", Output.Tuple(version, latest).Apply(values =>
                {
                    var version = values.Item1;
                    var latest = values.Item2;
                    return version.Apply(getFunctionResult => getFunctionResult.CodeSha256) != latest.Apply(getFunctionResult => getFunctionResult.CodeSha256);
                }) },
            },
        };
    });
    
    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.GetFunctionArgs;
    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) {
            // Get details about specific version
            final var version = LambdaFunctions.getFunction(GetFunctionArgs.builder()
                .functionName("my-function")
                .qualifier("3")
                .build());
    
            // Get details about latest version
            final var latest = LambdaFunctions.getFunction(GetFunctionArgs.builder()
                .functionName("my-function")
                .qualifier("$LATEST")
                .build());
    
            ctx.export("versionComparison", Map.ofEntries(
                Map.entry("specificVersion", version.version()),
                Map.entry("latestVersion", latest.version()),
                Map.entry("codeDifference", version.codeSha256() != latest.codeSha256())
            ));
        }
    }
    
    Example coming soon!
    

    Using getFunction

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getFunction(args: GetFunctionArgs, opts?: InvokeOptions): Promise<GetFunctionResult>
    function getFunctionOutput(args: GetFunctionOutputArgs, opts?: InvokeOptions): Output<GetFunctionResult>
    def get_function(function_name: Optional[str] = None,
                     qualifier: Optional[str] = None,
                     region: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None,
                     opts: Optional[InvokeOptions] = None) -> GetFunctionResult
    def get_function_output(function_name: Optional[pulumi.Input[str]] = None,
                     qualifier: Optional[pulumi.Input[str]] = None,
                     region: Optional[pulumi.Input[str]] = None,
                     tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetFunctionResult]
    func LookupFunction(ctx *Context, args *LookupFunctionArgs, opts ...InvokeOption) (*LookupFunctionResult, error)
    func LookupFunctionOutput(ctx *Context, args *LookupFunctionOutputArgs, opts ...InvokeOption) LookupFunctionResultOutput

    > Note: This function is named LookupFunction in the Go SDK.

    public static class GetFunction 
    {
        public static Task<GetFunctionResult> InvokeAsync(GetFunctionArgs args, InvokeOptions? opts = null)
        public static Output<GetFunctionResult> Invoke(GetFunctionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
    public static Output<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:lambda/getFunction:getFunction
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FunctionName string

    Name of the Lambda function.

    The following arguments are optional:

    Qualifier string
    Alias name or version number of the Lambda function. E.g., $LATEST, my-alias, or 1. When not included: the data source resolves to the most recent published version; if no published version exists: it resolves to the most recent unpublished version.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Map of tags assigned to the Lambda Function.
    FunctionName string

    Name of the Lambda function.

    The following arguments are optional:

    Qualifier string
    Alias name or version number of the Lambda function. E.g., $LATEST, my-alias, or 1. When not included: the data source resolves to the most recent published version; if no published version exists: it resolves to the most recent unpublished version.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Map of tags assigned to the Lambda Function.
    functionName String

    Name of the Lambda function.

    The following arguments are optional:

    qualifier String
    Alias name or version number of the Lambda function. E.g., $LATEST, my-alias, or 1. When not included: the data source resolves to the most recent published version; if no published version exists: it resolves to the most recent unpublished version.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Map of tags assigned to the Lambda Function.
    functionName string

    Name of the Lambda function.

    The following arguments are optional:

    qualifier string
    Alias name or version number of the Lambda function. E.g., $LATEST, my-alias, or 1. When not included: the data source resolves to the most recent published version; if no published version exists: it resolves to the most recent unpublished version.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Map of tags assigned to the Lambda Function.
    function_name str

    Name of the Lambda function.

    The following arguments are optional:

    qualifier str
    Alias name or version number of the Lambda function. E.g., $LATEST, my-alias, or 1. When not included: the data source resolves to the most recent published version; if no published version exists: it resolves to the most recent unpublished version.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Map of tags assigned to the Lambda Function.
    functionName String

    Name of the Lambda function.

    The following arguments are optional:

    qualifier String
    Alias name or version number of the Lambda function. E.g., $LATEST, my-alias, or 1. When not included: the data source resolves to the most recent published version; if no published version exists: it resolves to the most recent unpublished version.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Map of tags assigned to the Lambda Function.

    getFunction Result

    The following output properties are available:

    Architectures List<string>
    Instruction set architecture for the Lambda function.
    Arn string
    ARN of the Amazon EFS Access Point that provides access to the file system.
    CodeSha256 string
    Base64-encoded representation of raw SHA-256 sum of the zip file.
    CodeSigningConfigArn string
    ARN for a Code Signing Configuration.
    DeadLetterConfig GetFunctionDeadLetterConfig
    Configuration for the function's dead letter queue. See below.
    Description string
    Description of what your Lambda Function does.
    Environment GetFunctionEnvironment
    Lambda environment's configuration settings. See below.
    EphemeralStorages List<GetFunctionEphemeralStorage>
    Amount of ephemeral storage (/tmp) allocated for the Lambda Function. See below.
    FileSystemConfigs List<GetFunctionFileSystemConfig>
    Connection settings for an Amazon EFS file system. See below.
    FunctionName string
    Handler string
    Function entrypoint in your code.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageUri string
    URI of the container image.
    InvokeArn string
    ARN to be used for invoking Lambda Function from API Gateway. Note: Starting with v4.51.0 of the provider, this will not include the qualifier.
    KmsKeyArn string
    ARN for the KMS encryption key.
    LastModified string
    Date this resource was last modified.
    Layers List<string>
    List of Lambda Layer ARNs attached to your Lambda Function.
    LoggingConfigs List<GetFunctionLoggingConfig>
    Advanced logging settings. See below.
    MemorySize int
    Amount of memory in MB your Lambda Function can use at runtime.
    QualifiedArn string
    Qualified (:QUALIFIER or :VERSION suffix) ARN identifying your Lambda Function. See also arn.
    QualifiedInvokeArn string
    Qualified (:QUALIFIER or :VERSION suffix) ARN to be used for invoking Lambda Function from API Gateway. See also invoke_arn.
    Region string
    ReservedConcurrentExecutions int
    Amount of reserved concurrent executions for this Lambda function or -1 if unreserved.
    Role string
    IAM role attached to the Lambda Function.
    Runtime string
    Runtime environment for the Lambda function.
    SigningJobArn string
    ARN of a signing job.
    SigningProfileVersionArn string
    ARN for a signing profile version.
    SourceCodeHash string
    (Deprecated use code_sha256 instead) Base64-encoded representation of raw SHA-256 sum of the zip file.

    Deprecated: source_code_hash is deprecated. Use code_sha256 instead.

    SourceCodeSize int
    Size in bytes of the function .zip file.
    Tags Dictionary<string, string>
    Map of tags assigned to the Lambda Function.
    Timeout int
    Function execution time at which Lambda should terminate the function.
    TracingConfig GetFunctionTracingConfig
    Tracing settings of the function. See below.
    Version string
    Version of the Lambda function returned. If qualifier is not set, this will resolve to the most recent published version. If no published version of the function exists, version will resolve to $LATEST.
    VpcConfig GetFunctionVpcConfig
    VPC configuration associated with your Lambda function. See below.
    Qualifier string
    Architectures []string
    Instruction set architecture for the Lambda function.
    Arn string
    ARN of the Amazon EFS Access Point that provides access to the file system.
    CodeSha256 string
    Base64-encoded representation of raw SHA-256 sum of the zip file.
    CodeSigningConfigArn string
    ARN for a Code Signing Configuration.
    DeadLetterConfig GetFunctionDeadLetterConfig
    Configuration for the function's dead letter queue. See below.
    Description string
    Description of what your Lambda Function does.
    Environment GetFunctionEnvironment
    Lambda environment's configuration settings. See below.
    EphemeralStorages []GetFunctionEphemeralStorage
    Amount of ephemeral storage (/tmp) allocated for the Lambda Function. See below.
    FileSystemConfigs []GetFunctionFileSystemConfig
    Connection settings for an Amazon EFS file system. See below.
    FunctionName string
    Handler string
    Function entrypoint in your code.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageUri string
    URI of the container image.
    InvokeArn string
    ARN to be used for invoking Lambda Function from API Gateway. Note: Starting with v4.51.0 of the provider, this will not include the qualifier.
    KmsKeyArn string
    ARN for the KMS encryption key.
    LastModified string
    Date this resource was last modified.
    Layers []string
    List of Lambda Layer ARNs attached to your Lambda Function.
    LoggingConfigs []GetFunctionLoggingConfig
    Advanced logging settings. See below.
    MemorySize int
    Amount of memory in MB your Lambda Function can use at runtime.
    QualifiedArn string
    Qualified (:QUALIFIER or :VERSION suffix) ARN identifying your Lambda Function. See also arn.
    QualifiedInvokeArn string
    Qualified (:QUALIFIER or :VERSION suffix) ARN to be used for invoking Lambda Function from API Gateway. See also invoke_arn.
    Region string
    ReservedConcurrentExecutions int
    Amount of reserved concurrent executions for this Lambda function or -1 if unreserved.
    Role string
    IAM role attached to the Lambda Function.
    Runtime string
    Runtime environment for the Lambda function.
    SigningJobArn string
    ARN of a signing job.
    SigningProfileVersionArn string
    ARN for a signing profile version.
    SourceCodeHash string
    (Deprecated use code_sha256 instead) Base64-encoded representation of raw SHA-256 sum of the zip file.

    Deprecated: source_code_hash is deprecated. Use code_sha256 instead.

    SourceCodeSize int
    Size in bytes of the function .zip file.
    Tags map[string]string
    Map of tags assigned to the Lambda Function.
    Timeout int
    Function execution time at which Lambda should terminate the function.
    TracingConfig GetFunctionTracingConfig
    Tracing settings of the function. See below.
    Version string
    Version of the Lambda function returned. If qualifier is not set, this will resolve to the most recent published version. If no published version of the function exists, version will resolve to $LATEST.
    VpcConfig GetFunctionVpcConfig
    VPC configuration associated with your Lambda function. See below.
    Qualifier string
    architectures List<String>
    Instruction set architecture for the Lambda function.
    arn String
    ARN of the Amazon EFS Access Point that provides access to the file system.
    codeSha256 String
    Base64-encoded representation of raw SHA-256 sum of the zip file.
    codeSigningConfigArn String
    ARN for a Code Signing Configuration.
    deadLetterConfig GetFunctionDeadLetterConfig
    Configuration for the function's dead letter queue. See below.
    description String
    Description of what your Lambda Function does.
    environment GetFunctionEnvironment
    Lambda environment's configuration settings. See below.
    ephemeralStorages List<GetFunctionEphemeralStorage>
    Amount of ephemeral storage (/tmp) allocated for the Lambda Function. See below.
    fileSystemConfigs List<GetFunctionFileSystemConfig>
    Connection settings for an Amazon EFS file system. See below.
    functionName String
    handler String
    Function entrypoint in your code.
    id String
    The provider-assigned unique ID for this managed resource.
    imageUri String
    URI of the container image.
    invokeArn String
    ARN to be used for invoking Lambda Function from API Gateway. Note: Starting with v4.51.0 of the provider, this will not include the qualifier.
    kmsKeyArn String
    ARN for the KMS encryption key.
    lastModified String
    Date this resource was last modified.
    layers List<String>
    List of Lambda Layer ARNs attached to your Lambda Function.
    loggingConfigs List<GetFunctionLoggingConfig>
    Advanced logging settings. See below.
    memorySize Integer
    Amount of memory in MB your Lambda Function can use at runtime.
    qualifiedArn String
    Qualified (:QUALIFIER or :VERSION suffix) ARN identifying your Lambda Function. See also arn.
    qualifiedInvokeArn String
    Qualified (:QUALIFIER or :VERSION suffix) ARN to be used for invoking Lambda Function from API Gateway. See also invoke_arn.
    region String
    reservedConcurrentExecutions Integer
    Amount of reserved concurrent executions for this Lambda function or -1 if unreserved.
    role String
    IAM role attached to the Lambda Function.
    runtime String
    Runtime environment for the Lambda function.
    signingJobArn String
    ARN of a signing job.
    signingProfileVersionArn String
    ARN for a signing profile version.
    sourceCodeHash String
    (Deprecated use code_sha256 instead) Base64-encoded representation of raw SHA-256 sum of the zip file.

    Deprecated: source_code_hash is deprecated. Use code_sha256 instead.

    sourceCodeSize Integer
    Size in bytes of the function .zip file.
    tags Map<String,String>
    Map of tags assigned to the Lambda Function.
    timeout Integer
    Function execution time at which Lambda should terminate the function.
    tracingConfig GetFunctionTracingConfig
    Tracing settings of the function. See below.
    version String
    Version of the Lambda function returned. If qualifier is not set, this will resolve to the most recent published version. If no published version of the function exists, version will resolve to $LATEST.
    vpcConfig GetFunctionVpcConfig
    VPC configuration associated with your Lambda function. See below.
    qualifier String
    architectures string[]
    Instruction set architecture for the Lambda function.
    arn string
    ARN of the Amazon EFS Access Point that provides access to the file system.
    codeSha256 string
    Base64-encoded representation of raw SHA-256 sum of the zip file.
    codeSigningConfigArn string
    ARN for a Code Signing Configuration.
    deadLetterConfig GetFunctionDeadLetterConfig
    Configuration for the function's dead letter queue. See below.
    description string
    Description of what your Lambda Function does.
    environment GetFunctionEnvironment
    Lambda environment's configuration settings. See below.
    ephemeralStorages GetFunctionEphemeralStorage[]
    Amount of ephemeral storage (/tmp) allocated for the Lambda Function. See below.
    fileSystemConfigs GetFunctionFileSystemConfig[]
    Connection settings for an Amazon EFS file system. See below.
    functionName string
    handler string
    Function entrypoint in your code.
    id string
    The provider-assigned unique ID for this managed resource.
    imageUri string
    URI of the container image.
    invokeArn string
    ARN to be used for invoking Lambda Function from API Gateway. Note: Starting with v4.51.0 of the provider, this will not include the qualifier.
    kmsKeyArn string
    ARN for the KMS encryption key.
    lastModified string
    Date this resource was last modified.
    layers string[]
    List of Lambda Layer ARNs attached to your Lambda Function.
    loggingConfigs GetFunctionLoggingConfig[]
    Advanced logging settings. See below.
    memorySize number
    Amount of memory in MB your Lambda Function can use at runtime.
    qualifiedArn string
    Qualified (:QUALIFIER or :VERSION suffix) ARN identifying your Lambda Function. See also arn.
    qualifiedInvokeArn string
    Qualified (:QUALIFIER or :VERSION suffix) ARN to be used for invoking Lambda Function from API Gateway. See also invoke_arn.
    region string
    reservedConcurrentExecutions number
    Amount of reserved concurrent executions for this Lambda function or -1 if unreserved.
    role string
    IAM role attached to the Lambda Function.
    runtime string
    Runtime environment for the Lambda function.
    signingJobArn string
    ARN of a signing job.
    signingProfileVersionArn string
    ARN for a signing profile version.
    sourceCodeHash string
    (Deprecated use code_sha256 instead) Base64-encoded representation of raw SHA-256 sum of the zip file.

    Deprecated: source_code_hash is deprecated. Use code_sha256 instead.

    sourceCodeSize number
    Size in bytes of the function .zip file.
    tags {[key: string]: string}
    Map of tags assigned to the Lambda Function.
    timeout number
    Function execution time at which Lambda should terminate the function.
    tracingConfig GetFunctionTracingConfig
    Tracing settings of the function. See below.
    version string
    Version of the Lambda function returned. If qualifier is not set, this will resolve to the most recent published version. If no published version of the function exists, version will resolve to $LATEST.
    vpcConfig GetFunctionVpcConfig
    VPC configuration associated with your Lambda function. See below.
    qualifier string
    architectures Sequence[str]
    Instruction set architecture for the Lambda function.
    arn str
    ARN of the Amazon EFS Access Point that provides access to the file system.
    code_sha256 str
    Base64-encoded representation of raw SHA-256 sum of the zip file.
    code_signing_config_arn str
    ARN for a Code Signing Configuration.
    dead_letter_config GetFunctionDeadLetterConfig
    Configuration for the function's dead letter queue. See below.
    description str
    Description of what your Lambda Function does.
    environment GetFunctionEnvironment
    Lambda environment's configuration settings. See below.
    ephemeral_storages Sequence[GetFunctionEphemeralStorage]
    Amount of ephemeral storage (/tmp) allocated for the Lambda Function. See below.
    file_system_configs Sequence[GetFunctionFileSystemConfig]
    Connection settings for an Amazon EFS file system. See below.
    function_name str
    handler str
    Function entrypoint in your code.
    id str
    The provider-assigned unique ID for this managed resource.
    image_uri str
    URI of the container image.
    invoke_arn str
    ARN to be used for invoking Lambda Function from API Gateway. Note: Starting with v4.51.0 of the provider, this will not include the qualifier.
    kms_key_arn str
    ARN for the KMS encryption key.
    last_modified str
    Date this resource was last modified.
    layers Sequence[str]
    List of Lambda Layer ARNs attached to your Lambda Function.
    logging_configs Sequence[GetFunctionLoggingConfig]
    Advanced logging settings. See below.
    memory_size int
    Amount of memory in MB your Lambda Function can use at runtime.
    qualified_arn str
    Qualified (:QUALIFIER or :VERSION suffix) ARN identifying your Lambda Function. See also arn.
    qualified_invoke_arn str
    Qualified (:QUALIFIER or :VERSION suffix) ARN to be used for invoking Lambda Function from API Gateway. See also invoke_arn.
    region str
    reserved_concurrent_executions int
    Amount of reserved concurrent executions for this Lambda function or -1 if unreserved.
    role str
    IAM role attached to the Lambda Function.
    runtime str
    Runtime environment for the Lambda function.
    signing_job_arn str
    ARN of a signing job.
    signing_profile_version_arn str
    ARN for a signing profile version.
    source_code_hash str
    (Deprecated use code_sha256 instead) Base64-encoded representation of raw SHA-256 sum of the zip file.

    Deprecated: source_code_hash is deprecated. Use code_sha256 instead.

    source_code_size int
    Size in bytes of the function .zip file.
    tags Mapping[str, str]
    Map of tags assigned to the Lambda Function.
    timeout int
    Function execution time at which Lambda should terminate the function.
    tracing_config GetFunctionTracingConfig
    Tracing settings of the function. See below.
    version str
    Version of the Lambda function returned. If qualifier is not set, this will resolve to the most recent published version. If no published version of the function exists, version will resolve to $LATEST.
    vpc_config GetFunctionVpcConfig
    VPC configuration associated with your Lambda function. See below.
    qualifier str
    architectures List<String>
    Instruction set architecture for the Lambda function.
    arn String
    ARN of the Amazon EFS Access Point that provides access to the file system.
    codeSha256 String
    Base64-encoded representation of raw SHA-256 sum of the zip file.
    codeSigningConfigArn String
    ARN for a Code Signing Configuration.
    deadLetterConfig Property Map
    Configuration for the function's dead letter queue. See below.
    description String
    Description of what your Lambda Function does.
    environment Property Map
    Lambda environment's configuration settings. See below.
    ephemeralStorages List<Property Map>
    Amount of ephemeral storage (/tmp) allocated for the Lambda Function. See below.
    fileSystemConfigs List<Property Map>
    Connection settings for an Amazon EFS file system. See below.
    functionName String
    handler String
    Function entrypoint in your code.
    id String
    The provider-assigned unique ID for this managed resource.
    imageUri String
    URI of the container image.
    invokeArn String
    ARN to be used for invoking Lambda Function from API Gateway. Note: Starting with v4.51.0 of the provider, this will not include the qualifier.
    kmsKeyArn String
    ARN for the KMS encryption key.
    lastModified String
    Date this resource was last modified.
    layers List<String>
    List of Lambda Layer ARNs attached to your Lambda Function.
    loggingConfigs List<Property Map>
    Advanced logging settings. See below.
    memorySize Number
    Amount of memory in MB your Lambda Function can use at runtime.
    qualifiedArn String
    Qualified (:QUALIFIER or :VERSION suffix) ARN identifying your Lambda Function. See also arn.
    qualifiedInvokeArn String
    Qualified (:QUALIFIER or :VERSION suffix) ARN to be used for invoking Lambda Function from API Gateway. See also invoke_arn.
    region String
    reservedConcurrentExecutions Number
    Amount of reserved concurrent executions for this Lambda function or -1 if unreserved.
    role String
    IAM role attached to the Lambda Function.
    runtime String
    Runtime environment for the Lambda function.
    signingJobArn String
    ARN of a signing job.
    signingProfileVersionArn String
    ARN for a signing profile version.
    sourceCodeHash String
    (Deprecated use code_sha256 instead) Base64-encoded representation of raw SHA-256 sum of the zip file.

    Deprecated: source_code_hash is deprecated. Use code_sha256 instead.

    sourceCodeSize Number
    Size in bytes of the function .zip file.
    tags Map<String>
    Map of tags assigned to the Lambda Function.
    timeout Number
    Function execution time at which Lambda should terminate the function.
    tracingConfig Property Map
    Tracing settings of the function. See below.
    version String
    Version of the Lambda function returned. If qualifier is not set, this will resolve to the most recent published version. If no published version of the function exists, version will resolve to $LATEST.
    vpcConfig Property Map
    VPC configuration associated with your Lambda function. See below.
    qualifier String

    Supporting Types

    GetFunctionDeadLetterConfig

    TargetArn string
    ARN of an SNS topic or SQS queue to notify when an invocation fails.
    TargetArn string
    ARN of an SNS topic or SQS queue to notify when an invocation fails.
    targetArn String
    ARN of an SNS topic or SQS queue to notify when an invocation fails.
    targetArn string
    ARN of an SNS topic or SQS queue to notify when an invocation fails.
    target_arn str
    ARN of an SNS topic or SQS queue to notify when an invocation fails.
    targetArn String
    ARN of an SNS topic or SQS queue to notify when an invocation fails.

    GetFunctionEnvironment

    Variables Dictionary<string, string>
    Map of environment variables that are accessible from the function code during execution.
    Variables map[string]string
    Map of environment variables that are accessible from the function code during execution.
    variables Map<String,String>
    Map of environment variables that are accessible from the function code during execution.
    variables {[key: string]: string}
    Map of environment variables that are accessible from the function code during execution.
    variables Mapping[str, str]
    Map of environment variables that are accessible from the function code during execution.
    variables Map<String>
    Map of environment variables that are accessible from the function code during execution.

    GetFunctionEphemeralStorage

    Size int
    Size of the Lambda function ephemeral storage (/tmp) in MB.
    Size int
    Size of the Lambda function ephemeral storage (/tmp) in MB.
    size Integer
    Size of the Lambda function ephemeral storage (/tmp) in MB.
    size number
    Size of the Lambda function ephemeral storage (/tmp) in MB.
    size int
    Size of the Lambda function ephemeral storage (/tmp) in MB.
    size Number
    Size of the Lambda function ephemeral storage (/tmp) in MB.

    GetFunctionFileSystemConfig

    Arn string
    ARN of the Amazon EFS Access Point that provides access to the file system.
    LocalMountPath string
    Path where the function can access the file system, starting with /mnt/.
    Arn string
    ARN of the Amazon EFS Access Point that provides access to the file system.
    LocalMountPath string
    Path where the function can access the file system, starting with /mnt/.
    arn String
    ARN of the Amazon EFS Access Point that provides access to the file system.
    localMountPath String
    Path where the function can access the file system, starting with /mnt/.
    arn string
    ARN of the Amazon EFS Access Point that provides access to the file system.
    localMountPath string
    Path where the function can access the file system, starting with /mnt/.
    arn str
    ARN of the Amazon EFS Access Point that provides access to the file system.
    local_mount_path str
    Path where the function can access the file system, starting with /mnt/.
    arn String
    ARN of the Amazon EFS Access Point that provides access to the file system.
    localMountPath String
    Path where the function can access the file system, starting with /mnt/.

    GetFunctionLoggingConfig

    ApplicationLogLevel string
    Detail level of the logs your application sends to CloudWatch when using supported logging libraries.
    LogFormat string
    Format for your function's logs. Valid values: Text, JSON.
    LogGroup string
    CloudWatch log group your function sends logs to.
    SystemLogLevel string
    Detail level of the Lambda platform event logs sent to CloudWatch.
    ApplicationLogLevel string
    Detail level of the logs your application sends to CloudWatch when using supported logging libraries.
    LogFormat string
    Format for your function's logs. Valid values: Text, JSON.
    LogGroup string
    CloudWatch log group your function sends logs to.
    SystemLogLevel string
    Detail level of the Lambda platform event logs sent to CloudWatch.
    applicationLogLevel String
    Detail level of the logs your application sends to CloudWatch when using supported logging libraries.
    logFormat String
    Format for your function's logs. Valid values: Text, JSON.
    logGroup String
    CloudWatch log group your function sends logs to.
    systemLogLevel String
    Detail level of the Lambda platform event logs sent to CloudWatch.
    applicationLogLevel string
    Detail level of the logs your application sends to CloudWatch when using supported logging libraries.
    logFormat string
    Format for your function's logs. Valid values: Text, JSON.
    logGroup string
    CloudWatch log group your function sends logs to.
    systemLogLevel string
    Detail level of the Lambda platform event logs sent to CloudWatch.
    application_log_level str
    Detail level of the logs your application sends to CloudWatch when using supported logging libraries.
    log_format str
    Format for your function's logs. Valid values: Text, JSON.
    log_group str
    CloudWatch log group your function sends logs to.
    system_log_level str
    Detail level of the Lambda platform event logs sent to CloudWatch.
    applicationLogLevel String
    Detail level of the logs your application sends to CloudWatch when using supported logging libraries.
    logFormat String
    Format for your function's logs. Valid values: Text, JSON.
    logGroup String
    CloudWatch log group your function sends logs to.
    systemLogLevel String
    Detail level of the Lambda platform event logs sent to CloudWatch.

    GetFunctionTracingConfig

    Mode string
    Tracing mode. Valid values: Active, PassThrough.
    Mode string
    Tracing mode. Valid values: Active, PassThrough.
    mode String
    Tracing mode. Valid values: Active, PassThrough.
    mode string
    Tracing mode. Valid values: Active, PassThrough.
    mode str
    Tracing mode. Valid values: Active, PassThrough.
    mode String
    Tracing mode. Valid values: Active, PassThrough.

    GetFunctionVpcConfig

    Ipv6AllowedForDualStack bool
    SecurityGroupIds List<string>
    List of security group IDs associated with the Lambda function.
    SubnetIds List<string>
    List of subnet IDs associated with the Lambda function.
    VpcId string
    ID of the VPC.
    Ipv6AllowedForDualStack bool
    SecurityGroupIds []string
    List of security group IDs associated with the Lambda function.
    SubnetIds []string
    List of subnet IDs associated with the Lambda function.
    VpcId string
    ID of the VPC.
    ipv6AllowedForDualStack Boolean
    securityGroupIds List<String>
    List of security group IDs associated with the Lambda function.
    subnetIds List<String>
    List of subnet IDs associated with the Lambda function.
    vpcId String
    ID of the VPC.
    ipv6AllowedForDualStack boolean
    securityGroupIds string[]
    List of security group IDs associated with the Lambda function.
    subnetIds string[]
    List of subnet IDs associated with the Lambda function.
    vpcId string
    ID of the VPC.
    ipv6_allowed_for_dual_stack bool
    security_group_ids Sequence[str]
    List of security group IDs associated with the Lambda function.
    subnet_ids Sequence[str]
    List of subnet IDs associated with the Lambda function.
    vpc_id str
    ID of the VPC.
    ipv6AllowedForDualStack Boolean
    securityGroupIds List<String>
    List of security group IDs associated with the Lambda function.
    subnetIds List<String>
    List of subnet IDs associated with the Lambda function.
    vpcId String
    ID of the VPC.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.4.0 published on Wednesday, Aug 13, 2025 by Pulumi