aws.lambda.getFunction
Explore with Pulumi AI
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 noqualifier
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:
- Function
Name 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
, or1
. 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.
- Dictionary<string, string>
- Map of tags assigned to the Lambda Function.
- Function
Name 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
, or1
. 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.
- map[string]string
- Map of tags assigned to the Lambda Function.
- function
Name 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
, or1
. 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.
- Map<String,String>
- Map of tags assigned to the Lambda Function.
- function
Name 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
, or1
. 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.
- {[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
, or1
. 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.
- Mapping[str, str]
- Map of tags assigned to the Lambda Function.
- function
Name 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
, or1
. 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.
- 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.
- Code
Sha256 string - Base64-encoded representation of raw SHA-256 sum of the zip file.
- Code
Signing stringConfig Arn - ARN for a Code Signing Configuration.
- Dead
Letter GetConfig Function Dead Letter Config - Configuration for the function's dead letter queue. See below.
- Description string
- Description of what your Lambda Function does.
- Environment
Get
Function Environment - Lambda environment's configuration settings. See below.
- Ephemeral
Storages List<GetFunction Ephemeral Storage> - Amount of ephemeral storage (
/tmp
) allocated for the Lambda Function. See below. - File
System List<GetConfigs Function File System Config> - Connection settings for an Amazon EFS file system. See below.
- Function
Name string - Handler string
- Function entrypoint in your code.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Uri string - URI of the container image.
- Invoke
Arn 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. - Kms
Key stringArn - ARN for the KMS encryption key.
- Last
Modified string - Date this resource was last modified.
- Layers List<string>
- List of Lambda Layer ARNs attached to your Lambda Function.
- Logging
Configs List<GetFunction Logging Config> - Advanced logging settings. See below.
- Memory
Size int - Amount of memory in MB your Lambda Function can use at runtime.
- Qualified
Arn string - Qualified (
:QUALIFIER
or:VERSION
suffix) ARN identifying your Lambda Function. See alsoarn
. - Qualified
Invoke stringArn - Qualified (
:QUALIFIER
or:VERSION
suffix) ARN to be used for invoking Lambda Function from API Gateway. See alsoinvoke_arn
. - Region string
- Reserved
Concurrent intExecutions - 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.
- Signing
Job stringArn - ARN of a signing job.
- Signing
Profile stringVersion Arn - ARN for a signing profile version.
- Source
Code stringHash - (Deprecated use
code_sha256
instead) Base64-encoded representation of raw SHA-256 sum of the zip file. - Source
Code intSize - Size in bytes of the function .zip file.
- Dictionary<string, string>
- Map of tags assigned to the Lambda Function.
- Timeout int
- Function execution time at which Lambda should terminate the function.
- Tracing
Config GetFunction Tracing Config - 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
. - Vpc
Config GetFunction Vpc Config - 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.
- Code
Sha256 string - Base64-encoded representation of raw SHA-256 sum of the zip file.
- Code
Signing stringConfig Arn - ARN for a Code Signing Configuration.
- Dead
Letter GetConfig Function Dead Letter Config - Configuration for the function's dead letter queue. See below.
- Description string
- Description of what your Lambda Function does.
- Environment
Get
Function Environment - Lambda environment's configuration settings. See below.
- Ephemeral
Storages []GetFunction Ephemeral Storage - Amount of ephemeral storage (
/tmp
) allocated for the Lambda Function. See below. - File
System []GetConfigs Function File System Config - Connection settings for an Amazon EFS file system. See below.
- Function
Name string - Handler string
- Function entrypoint in your code.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Uri string - URI of the container image.
- Invoke
Arn 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. - Kms
Key stringArn - ARN for the KMS encryption key.
- Last
Modified string - Date this resource was last modified.
- Layers []string
- List of Lambda Layer ARNs attached to your Lambda Function.
- Logging
Configs []GetFunction Logging Config - Advanced logging settings. See below.
- Memory
Size int - Amount of memory in MB your Lambda Function can use at runtime.
- Qualified
Arn string - Qualified (
:QUALIFIER
or:VERSION
suffix) ARN identifying your Lambda Function. See alsoarn
. - Qualified
Invoke stringArn - Qualified (
:QUALIFIER
or:VERSION
suffix) ARN to be used for invoking Lambda Function from API Gateway. See alsoinvoke_arn
. - Region string
- Reserved
Concurrent intExecutions - 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.
- Signing
Job stringArn - ARN of a signing job.
- Signing
Profile stringVersion Arn - ARN for a signing profile version.
- Source
Code stringHash - (Deprecated use
code_sha256
instead) Base64-encoded representation of raw SHA-256 sum of the zip file. - Source
Code intSize - Size in bytes of the function .zip file.
- map[string]string
- Map of tags assigned to the Lambda Function.
- Timeout int
- Function execution time at which Lambda should terminate the function.
- Tracing
Config GetFunction Tracing Config - 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
. - Vpc
Config GetFunction Vpc Config - 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.
- code
Sha256 String - Base64-encoded representation of raw SHA-256 sum of the zip file.
- code
Signing StringConfig Arn - ARN for a Code Signing Configuration.
- dead
Letter GetConfig Function Dead Letter Config - Configuration for the function's dead letter queue. See below.
- description String
- Description of what your Lambda Function does.
- environment
Get
Function Environment - Lambda environment's configuration settings. See below.
- ephemeral
Storages List<GetFunction Ephemeral Storage> - Amount of ephemeral storage (
/tmp
) allocated for the Lambda Function. See below. - file
System List<GetConfigs Function File System Config> - Connection settings for an Amazon EFS file system. See below.
- function
Name String - handler String
- Function entrypoint in your code.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Uri String - URI of the container image.
- invoke
Arn 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. - kms
Key StringArn - ARN for the KMS encryption key.
- last
Modified String - Date this resource was last modified.
- layers List<String>
- List of Lambda Layer ARNs attached to your Lambda Function.
- logging
Configs List<GetFunction Logging Config> - Advanced logging settings. See below.
- memory
Size Integer - Amount of memory in MB your Lambda Function can use at runtime.
- qualified
Arn String - Qualified (
:QUALIFIER
or:VERSION
suffix) ARN identifying your Lambda Function. See alsoarn
. - qualified
Invoke StringArn - Qualified (
:QUALIFIER
or:VERSION
suffix) ARN to be used for invoking Lambda Function from API Gateway. See alsoinvoke_arn
. - region String
- reserved
Concurrent IntegerExecutions - 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.
- signing
Job StringArn - ARN of a signing job.
- signing
Profile StringVersion Arn - ARN for a signing profile version.
- source
Code StringHash - (Deprecated use
code_sha256
instead) Base64-encoded representation of raw SHA-256 sum of the zip file. - source
Code IntegerSize - Size in bytes of the function .zip file.
- Map<String,String>
- Map of tags assigned to the Lambda Function.
- timeout Integer
- Function execution time at which Lambda should terminate the function.
- tracing
Config GetFunction Tracing Config - 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
. - vpc
Config GetFunction Vpc Config - 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.
- code
Sha256 string - Base64-encoded representation of raw SHA-256 sum of the zip file.
- code
Signing stringConfig Arn - ARN for a Code Signing Configuration.
- dead
Letter GetConfig Function Dead Letter Config - Configuration for the function's dead letter queue. See below.
- description string
- Description of what your Lambda Function does.
- environment
Get
Function Environment - Lambda environment's configuration settings. See below.
- ephemeral
Storages GetFunction Ephemeral Storage[] - Amount of ephemeral storage (
/tmp
) allocated for the Lambda Function. See below. - file
System GetConfigs Function File System Config[] - Connection settings for an Amazon EFS file system. See below.
- function
Name string - handler string
- Function entrypoint in your code.
- id string
- The provider-assigned unique ID for this managed resource.
- image
Uri string - URI of the container image.
- invoke
Arn 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. - kms
Key stringArn - ARN for the KMS encryption key.
- last
Modified string - Date this resource was last modified.
- layers string[]
- List of Lambda Layer ARNs attached to your Lambda Function.
- logging
Configs GetFunction Logging Config[] - Advanced logging settings. See below.
- memory
Size number - Amount of memory in MB your Lambda Function can use at runtime.
- qualified
Arn string - Qualified (
:QUALIFIER
or:VERSION
suffix) ARN identifying your Lambda Function. See alsoarn
. - qualified
Invoke stringArn - Qualified (
:QUALIFIER
or:VERSION
suffix) ARN to be used for invoking Lambda Function from API Gateway. See alsoinvoke_arn
. - region string
- reserved
Concurrent numberExecutions - 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.
- signing
Job stringArn - ARN of a signing job.
- signing
Profile stringVersion Arn - ARN for a signing profile version.
- source
Code stringHash - (Deprecated use
code_sha256
instead) Base64-encoded representation of raw SHA-256 sum of the zip file. - source
Code numberSize - Size in bytes of the function .zip file.
- {[key: string]: string}
- Map of tags assigned to the Lambda Function.
- timeout number
- Function execution time at which Lambda should terminate the function.
- tracing
Config GetFunction Tracing Config - 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
. - vpc
Config GetFunction Vpc Config - 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_ strconfig_ arn - ARN for a Code Signing Configuration.
- dead_
letter_ Getconfig Function Dead Letter Config - Configuration for the function's dead letter queue. See below.
- description str
- Description of what your Lambda Function does.
- environment
Get
Function Environment - Lambda environment's configuration settings. See below.
- ephemeral_
storages Sequence[GetFunction Ephemeral Storage] - Amount of ephemeral storage (
/tmp
) allocated for the Lambda Function. See below. - file_
system_ Sequence[Getconfigs Function File System Config] - 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_ strarn - 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[GetFunction Logging Config] - 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 alsoarn
. - qualified_
invoke_ strarn - Qualified (
:QUALIFIER
or:VERSION
suffix) ARN to be used for invoking Lambda Function from API Gateway. See alsoinvoke_arn
. - region str
- reserved_
concurrent_ intexecutions - 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_ strarn - ARN of a signing job.
- signing_
profile_ strversion_ arn - ARN for a signing profile version.
- source_
code_ strhash - (Deprecated use
code_sha256
instead) Base64-encoded representation of raw SHA-256 sum of the zip file. - source_
code_ intsize - Size in bytes of the function .zip file.
- 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 GetFunction Tracing Config - 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 GetFunction Vpc Config - 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.
- code
Sha256 String - Base64-encoded representation of raw SHA-256 sum of the zip file.
- code
Signing StringConfig Arn - ARN for a Code Signing Configuration.
- dead
Letter Property MapConfig - 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.
- ephemeral
Storages List<Property Map> - Amount of ephemeral storage (
/tmp
) allocated for the Lambda Function. See below. - file
System List<Property Map>Configs - Connection settings for an Amazon EFS file system. See below.
- function
Name String - handler String
- Function entrypoint in your code.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Uri String - URI of the container image.
- invoke
Arn 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. - kms
Key StringArn - ARN for the KMS encryption key.
- last
Modified String - Date this resource was last modified.
- layers List<String>
- List of Lambda Layer ARNs attached to your Lambda Function.
- logging
Configs List<Property Map> - Advanced logging settings. See below.
- memory
Size Number - Amount of memory in MB your Lambda Function can use at runtime.
- qualified
Arn String - Qualified (
:QUALIFIER
or:VERSION
suffix) ARN identifying your Lambda Function. See alsoarn
. - qualified
Invoke StringArn - Qualified (
:QUALIFIER
or:VERSION
suffix) ARN to be used for invoking Lambda Function from API Gateway. See alsoinvoke_arn
. - region String
- reserved
Concurrent NumberExecutions - 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.
- signing
Job StringArn - ARN of a signing job.
- signing
Profile StringVersion Arn - ARN for a signing profile version.
- source
Code StringHash - (Deprecated use
code_sha256
instead) Base64-encoded representation of raw SHA-256 sum of the zip file. - source
Code NumberSize - Size in bytes of the function .zip file.
- Map<String>
- Map of tags assigned to the Lambda Function.
- timeout Number
- Function execution time at which Lambda should terminate the function.
- tracing
Config 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
. - vpc
Config Property Map - VPC configuration associated with your Lambda function. See below.
- qualifier String
Supporting Types
GetFunctionDeadLetterConfig
- Target
Arn string - ARN of an SNS topic or SQS queue to notify when an invocation fails.
- Target
Arn string - ARN of an SNS topic or SQS queue to notify when an invocation fails.
- target
Arn String - ARN of an SNS topic or SQS queue to notify when an invocation fails.
- target
Arn 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.
- target
Arn 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.
- Local
Mount stringPath - 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.
- Local
Mount stringPath - 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.
- local
Mount StringPath - 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.
- local
Mount stringPath - 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_ strpath - 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.
- local
Mount StringPath - Path where the function can access the file system, starting with
/mnt/
.
GetFunctionLoggingConfig
- Application
Log stringLevel - Detail level of the logs your application sends to CloudWatch when using supported logging libraries.
- Log
Format string - Format for your function's logs. Valid values:
Text
,JSON
. - Log
Group string - CloudWatch log group your function sends logs to.
- System
Log stringLevel - Detail level of the Lambda platform event logs sent to CloudWatch.
- Application
Log stringLevel - Detail level of the logs your application sends to CloudWatch when using supported logging libraries.
- Log
Format string - Format for your function's logs. Valid values:
Text
,JSON
. - Log
Group string - CloudWatch log group your function sends logs to.
- System
Log stringLevel - Detail level of the Lambda platform event logs sent to CloudWatch.
- application
Log StringLevel - Detail level of the logs your application sends to CloudWatch when using supported logging libraries.
- log
Format String - Format for your function's logs. Valid values:
Text
,JSON
. - log
Group String - CloudWatch log group your function sends logs to.
- system
Log StringLevel - Detail level of the Lambda platform event logs sent to CloudWatch.
- application
Log stringLevel - Detail level of the logs your application sends to CloudWatch when using supported logging libraries.
- log
Format string - Format for your function's logs. Valid values:
Text
,JSON
. - log
Group string - CloudWatch log group your function sends logs to.
- system
Log stringLevel - Detail level of the Lambda platform event logs sent to CloudWatch.
- application_
log_ strlevel - 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_ strlevel - Detail level of the Lambda platform event logs sent to CloudWatch.
- application
Log StringLevel - Detail level of the logs your application sends to CloudWatch when using supported logging libraries.
- log
Format String - Format for your function's logs. Valid values:
Text
,JSON
. - log
Group String - CloudWatch log group your function sends logs to.
- system
Log StringLevel - 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
- Ipv6Allowed
For boolDual Stack - Security
Group List<string>Ids - List of security group IDs associated with the Lambda function.
- Subnet
Ids List<string> - List of subnet IDs associated with the Lambda function.
- Vpc
Id string - ID of the VPC.
- Ipv6Allowed
For boolDual Stack - Security
Group []stringIds - List of security group IDs associated with the Lambda function.
- Subnet
Ids []string - List of subnet IDs associated with the Lambda function.
- Vpc
Id string - ID of the VPC.
- ipv6Allowed
For BooleanDual Stack - security
Group List<String>Ids - List of security group IDs associated with the Lambda function.
- subnet
Ids List<String> - List of subnet IDs associated with the Lambda function.
- vpc
Id String - ID of the VPC.
- ipv6Allowed
For booleanDual Stack - security
Group string[]Ids - List of security group IDs associated with the Lambda function.
- subnet
Ids string[] - List of subnet IDs associated with the Lambda function.
- vpc
Id string - ID of the VPC.
- ipv6_
allowed_ boolfor_ dual_ stack - security_
group_ Sequence[str]ids - 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.
- ipv6Allowed
For BooleanDual Stack - security
Group List<String>Ids - List of security group IDs associated with the Lambda function.
- subnet
Ids List<String> - List of subnet IDs associated with the Lambda function.
- vpc
Id 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.