published on Friday, Nov 13, 2026 by Pulumi
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 dictionarydata "aws_lambdaweb_get_function" "name" {
# arguments
}The following arguments are supported:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
getFunction Result
The following output properties are available:
- Arn string
- ARN of the function.
- Function
Name string - Latest
Revision stringId - 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.
- Dictionary<string, string>
- Map of tags assigned to the function.
- Arn string
- ARN of the function.
- Function
Name string - Latest
Revision stringId - 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.
- map[string]string
- Map of tags assigned to the function.
- arn string
- ARN of the function.
- function_
name string - latest_
revision_ stringid - 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.
- map(string)
- Map of tags assigned to the function.
- arn String
- ARN of the function.
- function
Name String - latest
Revision StringId - 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.
- Map<String,String>
- Map of tags assigned to the function.
- arn string
- ARN of the function.
- function
Name string - latest
Revision stringId - 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.
- {[key: string]: string}
- Map of tags assigned to the function.
- arn str
- ARN of the function.
- function_
name str - latest_
revision_ strid - 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.
- Mapping[str, str]
- Map of tags assigned to the function.
- arn String
- ARN of the function.
- function
Name String - latest
Revision StringId - 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.
- 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
awsTerraform Provider.
published on Friday, Nov 13, 2026 by Pulumi