aws logo
AWS Classic v5.28.0, Jan 23 23

aws.lambda.getFunctions

Data resource to get a list of Lambda Functions.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var all = Aws.Lambda.GetFunctions.Invoke();

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.GetFunctions(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.LambdaFunctions;
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 all = LambdaFunctions.getFunctions();

    }
}
import pulumi
import pulumi_aws as aws

all = aws.lambda.get_functions()
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const all = aws.lambda.getFunctions({});
variables:
  all:
    fn::invoke:
      Function: aws:lambda:getFunctions
      Arguments: {}

Using getFunctions

function getFunctions(opts?: InvokeOptions): Promise<GetFunctionsResult>
def get_functions(opts: Optional[InvokeOptions] = None) -> GetFunctionsResult
func GetFunctions(ctx *Context, opts ...InvokeOption) (*GetFunctionsResult, error)

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

public static class GetFunctions 
{
    public static Task<GetFunctionsResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetFunctionsResult> getFunctions(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aws:lambda/getFunctions:getFunctions
  arguments:
    # arguments dictionary

getFunctions Result

The following output properties are available:

FunctionArns List<string>

A list of Lambda Function ARNs.

FunctionNames List<string>

A list of Lambda Function names.

Id string

The provider-assigned unique ID for this managed resource.

FunctionArns []string

A list of Lambda Function ARNs.

FunctionNames []string

A list of Lambda Function names.

Id string

The provider-assigned unique ID for this managed resource.

functionArns List<String>

A list of Lambda Function ARNs.

functionNames List<String>

A list of Lambda Function names.

id String

The provider-assigned unique ID for this managed resource.

functionArns string[]

A list of Lambda Function ARNs.

functionNames string[]

A list of Lambda Function names.

id string

The provider-assigned unique ID for this managed resource.

function_arns Sequence[str]

A list of Lambda Function ARNs.

function_names Sequence[str]

A list of Lambda Function names.

id str

The provider-assigned unique ID for this managed resource.

functionArns List<String>

A list of Lambda Function ARNs.

functionNames List<String>

A list of Lambda Function names.

id String

The provider-assigned unique ID for this managed resource.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.