1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. lambdaweb
  6. getFunction
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi

    Provides details about an AWS Lambda Web function.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.lambdaweb.getFunction({
        functionName: "example",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.lambdaweb.get_function(function_name="example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambdaweb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := lambdaweb.LookupFunction(ctx, &lambdaweb.LookupFunctionArgs{
    			FunctionName: "example",
    		}, nil)
    		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.LambdaWeb.GetFunction.Invoke(new()
        {
            FunctionName = "example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.lambdaweb.LambdawebFunctions;
    import com.pulumi.aws.lambdaweb.inputs.GetFunctionArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 = LambdawebFunctions.getFunction(GetFunctionArgs.builder()
                .functionName("example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:lambdaweb:getFunction
          arguments:
            functionName: example
    
    terraform {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_lambdaweb_function" "example" {
      function_name = "example"
    }
    

    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?: InvokeOutputOptions): Output<GetFunctionResult>
    def get_function(function_name: Optional[str] = None,
                     region: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetFunctionResult
    def get_function_output(function_name: pulumi.Input[Optional[str]] = None,
                     region: pulumi.Input[Optional[str]] = None,
                     opts: Optional[InvokeOutputOptions] = 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 Output<GetFunctionResult> Invoke(GetFunctionInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
    public static Output<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
    public static Output<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws:lambdaweb/getFunction:getFunction
      arguments:
        # arguments dictionary
    data "aws_lambdaweb_get_function" "name" {
        # arguments
    }

    The following arguments are supported:

    FunctionName string

    Name of the function.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    FunctionName string

    Name of the function.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    function_name string

    Name of the function.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    functionName String

    Name of the function.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    functionName string

    Name of the function.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    function_name str

    Name of the function.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    functionName String

    Name of the function.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    getFunction Result

    The following output properties are available:

    Arn string
    ARN of the function.
    FunctionName string
    LatestRevisionId string
    ID of the newest revision of the function.
    Region string
    State string
    Current state of the function.
    StateReason string
    Reason for the current state.
    Tags Dictionary<string, string>
    Map of tags assigned to the function.
    Arn string
    ARN of the function.
    FunctionName string
    LatestRevisionId string
    ID of the newest revision of the function.
    Region string
    State string
    Current state of the function.
    StateReason string
    Reason for the current state.
    Tags map[string]string
    Map of tags assigned to the function.
    arn string
    ARN of the function.
    function_name string
    latest_revision_id string
    ID of the newest revision of the function.
    region string
    state string
    Current state of the function.
    state_reason string
    Reason for the current state.
    tags map(string)
    Map of tags assigned to the function.
    arn String
    ARN of the function.
    functionName String
    latestRevisionId String
    ID of the newest revision of the function.
    region String
    state String
    Current state of the function.
    stateReason String
    Reason for the current state.
    tags Map<String,String>
    Map of tags assigned to the function.
    arn string
    ARN of the function.
    functionName string
    latestRevisionId string
    ID of the newest revision of the function.
    region string
    state string
    Current state of the function.
    stateReason string
    Reason for the current state.
    tags {[key: string]: string}
    Map of tags assigned to the function.
    arn str
    ARN of the function.
    function_name str
    latest_revision_id str
    ID of the newest revision of the function.
    region str
    state str
    Current state of the function.
    state_reason str
    Reason for the current state.
    tags Mapping[str, str]
    Map of tags assigned to the function.
    arn String
    ARN of the function.
    functionName String
    latestRevisionId String
    ID of the newest revision of the function.
    region String
    state String
    Current state of the function.
    stateReason String
    Reason for the current state.
    tags Map<String>
    Map of tags assigned to the function.

    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 logo
    Viewing docs for AWS v7.55.0
    published on Friday, Nov 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial