published on Friday, Nov 13, 2026 by Pulumi
published on Friday, Nov 13, 2026 by Pulumi
Manages an AWS Lambda Web function revision. A revision represents a specific version of the function code and configuration and is immutable (updating any attribute recreates the resource).
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleFunction = new aws.lambdaweb.Function("example", {functionName: "example-function"});
const example = new aws.lambdaweb.FunctionRevision("example", {
buildConfig: {
runtimeConfig: {
runtime: "nodejs24.x",
},
codeConfig: {
s3Object: {
bucket: exampleAwsS3Object.bucket,
key: exampleAwsS3Object.key,
},
},
},
serviceConfig: {
executionRoleArn: exampleAwsIamRole.arn,
},
functionName: exampleFunction.functionName,
});
import pulumi
import pulumi_aws as aws
example_function = aws.lambdaweb.Function("example", function_name="example-function")
example = aws.lambdaweb.FunctionRevision("example",
build_config={
"runtime_config": {
"runtime": "nodejs24.x",
},
"code_config": {
"s3_object": {
"bucket": example_aws_s3_object["bucket"],
"key": example_aws_s3_object["key"],
},
},
},
service_config={
"execution_role_arn": example_aws_iam_role["arn"],
},
function_name=example_function.function_name)
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 {
exampleFunction, err := lambdaweb.NewFunction(ctx, "example", &lambdaweb.FunctionArgs{
FunctionName: pulumi.String("example-function"),
})
if err != nil {
return err
}
_, err = lambdaweb.NewFunctionRevision(ctx, "example", &lambdaweb.FunctionRevisionArgs{
BuildConfig: &lambdaweb.FunctionRevisionBuildConfigArgs{
RuntimeConfig: &lambdaweb.FunctionRevisionBuildConfigRuntimeConfigArgs{
Runtime: pulumi.String("nodejs24.x"),
},
CodeConfig: &lambdaweb.FunctionRevisionBuildConfigCodeConfigArgs{
S3Object: &lambdaweb.FunctionRevisionBuildConfigCodeConfigS3ObjectArgs{
Bucket: pulumi.Any(exampleAwsS3Object.Bucket),
Key: pulumi.Any(exampleAwsS3Object.Key),
},
},
},
ServiceConfig: &lambdaweb.FunctionRevisionServiceConfigArgs{
ExecutionRoleArn: pulumi.Any(exampleAwsIamRole.Arn),
},
FunctionName: exampleFunction.FunctionName,
})
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 exampleFunction = new Aws.LambdaWeb.Function("example", new()
{
FunctionName = "example-function",
});
var example = new Aws.LambdaWeb.FunctionRevision("example", new()
{
BuildConfig = new Aws.LambdaWeb.Inputs.FunctionRevisionBuildConfigArgs
{
RuntimeConfig = new Aws.LambdaWeb.Inputs.FunctionRevisionBuildConfigRuntimeConfigArgs
{
Runtime = "nodejs24.x",
},
CodeConfig = new Aws.LambdaWeb.Inputs.FunctionRevisionBuildConfigCodeConfigArgs
{
S3Object = new Aws.LambdaWeb.Inputs.FunctionRevisionBuildConfigCodeConfigS3ObjectArgs
{
Bucket = exampleAwsS3Object.Bucket,
Key = exampleAwsS3Object.Key,
},
},
},
ServiceConfig = new Aws.LambdaWeb.Inputs.FunctionRevisionServiceConfigArgs
{
ExecutionRoleArn = exampleAwsIamRole.Arn,
},
FunctionName = exampleFunction.FunctionName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambdaweb.Function;
import com.pulumi.aws.lambdaweb.FunctionArgs;
import com.pulumi.aws.lambdaweb.FunctionRevision;
import com.pulumi.aws.lambdaweb.FunctionRevisionArgs;
import com.pulumi.aws.lambdaweb.inputs.FunctionRevisionBuildConfigArgs;
import com.pulumi.aws.lambdaweb.inputs.FunctionRevisionBuildConfigRuntimeConfigArgs;
import com.pulumi.aws.lambdaweb.inputs.FunctionRevisionBuildConfigCodeConfigArgs;
import com.pulumi.aws.lambdaweb.inputs.FunctionRevisionBuildConfigCodeConfigS3ObjectArgs;
import com.pulumi.aws.lambdaweb.inputs.FunctionRevisionServiceConfigArgs;
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) {
var exampleFunction = new Function("exampleFunction", FunctionArgs.builder()
.functionName("example-function")
.build());
var example = new FunctionRevision("example", FunctionRevisionArgs.builder()
.buildConfig(FunctionRevisionBuildConfigArgs.builder()
.runtimeConfig(FunctionRevisionBuildConfigRuntimeConfigArgs.builder()
.runtime("nodejs24.x")
.build())
.codeConfig(FunctionRevisionBuildConfigCodeConfigArgs.builder()
.s3Object(FunctionRevisionBuildConfigCodeConfigS3ObjectArgs.builder()
.bucket(exampleAwsS3Object.get("bucket"))
.key(exampleAwsS3Object.get("key"))
.build())
.build())
.build())
.serviceConfig(FunctionRevisionServiceConfigArgs.builder()
.executionRoleArn(exampleAwsIamRole.get("arn"))
.build())
.functionName(exampleFunction.functionName())
.build());
}
}
resources:
example:
type: aws:lambdaweb:FunctionRevision
properties:
buildConfig:
runtimeConfig:
runtime: nodejs24.x
codeConfig:
s3Object:
bucket: ${exampleAwsS3Object.bucket}
key: ${exampleAwsS3Object.key}
serviceConfig:
executionRoleArn: ${exampleAwsIamRole.arn}
functionName: ${exampleFunction.functionName}
exampleFunction:
type: aws:lambdaweb:Function
name: example
properties:
functionName: example-function
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_lambdaweb_function_revision" "example" {
lifecycle {
create_before_destroy = true
}
build_config {
runtime_config {
runtime = "nodejs24.x"
}
code_config {
s3_object {
bucket = exampleAwsS3Object.bucket
key = exampleAwsS3Object.key
}
}
}
service_config {
execution_role_arn = exampleAwsIamRole.arn
}
function_name = aws_lambdaweb_function.example.function_name
}
resource "aws_lambdaweb_function" "example" {
lifecycle {
create_before_destroy = true
}
function_name = "example-function"
}
Create FunctionRevision Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FunctionRevision(name: string, args: FunctionRevisionArgs, opts?: CustomResourceOptions);@overload
def FunctionRevision(resource_name: str,
args: FunctionRevisionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FunctionRevision(resource_name: str,
opts: Optional[ResourceOptions] = None,
build_config: Optional[FunctionRevisionBuildConfigArgs] = None,
function_name: Optional[str] = None,
service_config: Optional[FunctionRevisionServiceConfigArgs] = None,
description: Optional[str] = None,
kms_key_arn: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[FunctionRevisionTimeoutsArgs] = None)func NewFunctionRevision(ctx *Context, name string, args FunctionRevisionArgs, opts ...ResourceOption) (*FunctionRevision, error)public FunctionRevision(string name, FunctionRevisionArgs args, CustomResourceOptions? opts = null)
public FunctionRevision(String name, FunctionRevisionArgs args)
public FunctionRevision(String name, FunctionRevisionArgs args, CustomResourceOptions options)
type: aws:lambdaweb:FunctionRevision
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_lambdaweb_function_revision" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args FunctionRevisionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FunctionRevisionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FunctionRevisionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionRevisionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FunctionRevisionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var functionRevisionResource = new Aws.LambdaWeb.FunctionRevision("functionRevisionResource", new()
{
BuildConfig = new Aws.LambdaWeb.Inputs.FunctionRevisionBuildConfigArgs
{
CodeConfig = new Aws.LambdaWeb.Inputs.FunctionRevisionBuildConfigCodeConfigArgs
{
S3Object = new Aws.LambdaWeb.Inputs.FunctionRevisionBuildConfigCodeConfigS3ObjectArgs
{
Bucket = "string",
Key = "string",
VersionId = "string",
},
},
RuntimeConfig = new Aws.LambdaWeb.Inputs.FunctionRevisionBuildConfigRuntimeConfigArgs
{
Runtime = "string",
},
},
FunctionName = "string",
ServiceConfig = new Aws.LambdaWeb.Inputs.FunctionRevisionServiceConfigArgs
{
ExecutionRoleArn = "string",
EgressNetworkConnectorArn = "string",
EnvironmentVariables =
{
{ "string", "string" },
},
MaxConcurrencyPerEnvironment = 0,
TelemetryConfig = new Aws.LambdaWeb.Inputs.FunctionRevisionServiceConfigTelemetryConfigArgs
{
LoggingConfig = new Aws.LambdaWeb.Inputs.FunctionRevisionServiceConfigTelemetryConfigLoggingConfigArgs
{
ApplicationLogLevel = "string",
LogGroup = "string",
SystemLogLevel = "string",
},
},
TelemetryConfigActuals = new[]
{
new Aws.LambdaWeb.Inputs.FunctionRevisionServiceConfigTelemetryConfigActualArgs
{
LoggingConfigs = new[]
{
new Aws.LambdaWeb.Inputs.FunctionRevisionServiceConfigTelemetryConfigActualLoggingConfigArgs
{
ApplicationLogLevel = "string",
LogGroup = "string",
SystemLogLevel = "string",
},
},
},
},
TimeoutSeconds = 0,
},
Description = "string",
KmsKeyArn = "string",
Region = "string",
Timeouts = new Aws.LambdaWeb.Inputs.FunctionRevisionTimeoutsArgs
{
Create = "string",
},
});
example, err := lambdaweb.NewFunctionRevision(ctx, "functionRevisionResource", &lambdaweb.FunctionRevisionArgs{
BuildConfig: &lambdaweb.FunctionRevisionBuildConfigArgs{
CodeConfig: &lambdaweb.FunctionRevisionBuildConfigCodeConfigArgs{
S3Object: &lambdaweb.FunctionRevisionBuildConfigCodeConfigS3ObjectArgs{
Bucket: pulumi.String("string"),
Key: pulumi.String("string"),
VersionId: pulumi.String("string"),
},
},
RuntimeConfig: &lambdaweb.FunctionRevisionBuildConfigRuntimeConfigArgs{
Runtime: pulumi.String("string"),
},
},
FunctionName: pulumi.String("string"),
ServiceConfig: &lambdaweb.FunctionRevisionServiceConfigArgs{
ExecutionRoleArn: pulumi.String("string"),
EgressNetworkConnectorArn: pulumi.String("string"),
EnvironmentVariables: pulumi.StringMap{
"string": pulumi.String("string"),
},
MaxConcurrencyPerEnvironment: pulumi.Int(0),
TelemetryConfig: &lambdaweb.FunctionRevisionServiceConfigTelemetryConfigArgs{
LoggingConfig: &lambdaweb.FunctionRevisionServiceConfigTelemetryConfigLoggingConfigArgs{
ApplicationLogLevel: pulumi.String("string"),
LogGroup: pulumi.String("string"),
SystemLogLevel: pulumi.String("string"),
},
},
TelemetryConfigActuals: lambdaweb.FunctionRevisionServiceConfigTelemetryConfigActualArray{
&lambdaweb.FunctionRevisionServiceConfigTelemetryConfigActualArgs{
LoggingConfigs: lambdaweb.FunctionRevisionServiceConfigTelemetryConfigActualLoggingConfigArray{
&lambdaweb.FunctionRevisionServiceConfigTelemetryConfigActualLoggingConfigArgs{
ApplicationLogLevel: pulumi.String("string"),
LogGroup: pulumi.String("string"),
SystemLogLevel: pulumi.String("string"),
},
},
},
},
TimeoutSeconds: pulumi.Int(0),
},
Description: pulumi.String("string"),
KmsKeyArn: pulumi.String("string"),
Region: pulumi.String("string"),
Timeouts: &lambdaweb.FunctionRevisionTimeoutsArgs{
Create: pulumi.String("string"),
},
})
resource "aws_lambdaweb_function_revision" "functionRevisionResource" {
lifecycle {
create_before_destroy = true
}
build_config = {
code_config = {
s3_object = {
bucket = "string"
key = "string"
version_id = "string"
}
}
runtime_config = {
runtime = "string"
}
}
function_name = "string"
service_config = {
execution_role_arn = "string"
egress_network_connector_arn = "string"
environment_variables = {
"string" = "string"
}
max_concurrency_per_environment = 0
telemetry_config = {
logging_config = {
application_log_level = "string"
log_group = "string"
system_log_level = "string"
}
}
telemetry_config_actuals = [{
logging_configs = [{
application_log_level = "string"
log_group = "string"
system_log_level = "string"
}]
}]
timeout_seconds = 0
}
description = "string"
kms_key_arn = "string"
region = "string"
_ {
timeouts = {
create = "string"
}
}
}
var functionRevisionResource = new FunctionRevision("functionRevisionResource", FunctionRevisionArgs.builder()
.buildConfig(FunctionRevisionBuildConfigArgs.builder()
.codeConfig(FunctionRevisionBuildConfigCodeConfigArgs.builder()
.s3Object(FunctionRevisionBuildConfigCodeConfigS3ObjectArgs.builder()
.bucket("string")
.key("string")
.versionId("string")
.build())
.build())
.runtimeConfig(FunctionRevisionBuildConfigRuntimeConfigArgs.builder()
.runtime("string")
.build())
.build())
.functionName("string")
.serviceConfig(FunctionRevisionServiceConfigArgs.builder()
.executionRoleArn("string")
.egressNetworkConnectorArn("string")
.environmentVariables(Map.of("string", "string"))
.maxConcurrencyPerEnvironment(0)
.telemetryConfig(FunctionRevisionServiceConfigTelemetryConfigArgs.builder()
.loggingConfig(FunctionRevisionServiceConfigTelemetryConfigLoggingConfigArgs.builder()
.applicationLogLevel("string")
.logGroup("string")
.systemLogLevel("string")
.build())
.build())
.telemetryConfigActuals(FunctionRevisionServiceConfigTelemetryConfigActualArgs.builder()
.loggingConfigs(FunctionRevisionServiceConfigTelemetryConfigActualLoggingConfigArgs.builder()
.applicationLogLevel("string")
.logGroup("string")
.systemLogLevel("string")
.build())
.build())
.timeoutSeconds(0)
.build())
.description("string")
.kmsKeyArn("string")
.region("string")
.timeouts(FunctionRevisionTimeoutsArgs.builder()
.create("string")
.build())
.build());
function_revision_resource = aws.lambdaweb.FunctionRevision("functionRevisionResource",
build_config={
"code_config": {
"s3_object": {
"bucket": "string",
"key": "string",
"version_id": "string",
},
},
"runtime_config": {
"runtime": "string",
},
},
function_name="string",
service_config={
"execution_role_arn": "string",
"egress_network_connector_arn": "string",
"environment_variables": {
"string": "string",
},
"max_concurrency_per_environment": 0,
"telemetry_config": {
"logging_config": {
"application_log_level": "string",
"log_group": "string",
"system_log_level": "string",
},
},
"telemetry_config_actuals": [{
"logging_configs": [{
"application_log_level": "string",
"log_group": "string",
"system_log_level": "string",
}],
}],
"timeout_seconds": 0,
},
description="string",
kms_key_arn="string",
region="string",
timeouts={
"create": "string",
})
const functionRevisionResource = new aws.lambdaweb.FunctionRevision("functionRevisionResource", {
buildConfig: {
codeConfig: {
s3Object: {
bucket: "string",
key: "string",
versionId: "string",
},
},
runtimeConfig: {
runtime: "string",
},
},
functionName: "string",
serviceConfig: {
executionRoleArn: "string",
egressNetworkConnectorArn: "string",
environmentVariables: {
string: "string",
},
maxConcurrencyPerEnvironment: 0,
telemetryConfig: {
loggingConfig: {
applicationLogLevel: "string",
logGroup: "string",
systemLogLevel: "string",
},
},
telemetryConfigActuals: [{
loggingConfigs: [{
applicationLogLevel: "string",
logGroup: "string",
systemLogLevel: "string",
}],
}],
timeoutSeconds: 0,
},
description: "string",
kmsKeyArn: "string",
region: "string",
timeouts: {
create: "string",
},
});
type: aws:lambdaweb:FunctionRevision
properties:
buildConfig:
codeConfig:
s3Object:
bucket: string
key: string
versionId: string
runtimeConfig:
runtime: string
description: string
functionName: string
kmsKeyArn: string
region: string
serviceConfig:
egressNetworkConnectorArn: string
environmentVariables:
string: string
executionRoleArn: string
maxConcurrencyPerEnvironment: 0
telemetryConfig:
loggingConfig:
applicationLogLevel: string
logGroup: string
systemLogLevel: string
telemetryConfigActuals:
- loggingConfigs:
- applicationLogLevel: string
logGroup: string
systemLogLevel: string
timeoutSeconds: 0
timeouts:
create: string
FunctionRevision Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FunctionRevision resource accepts the following input properties:
- Build
Config FunctionRevision Build Config - Build configuration for the revision. See
buildConfigBlock below. - Function
Name string - Web function name.
- Service
Config FunctionRevision Service Config Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- Description string
- Description of the revision.
- Kms
Key stringArn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Timeouts
Function
Revision Timeouts
- Build
Config FunctionRevision Build Config Args - Build configuration for the revision. See
buildConfigBlock below. - Function
Name string - Web function name.
- Service
Config FunctionRevision Service Config Args Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- Description string
- Description of the revision.
- Kms
Key stringArn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Timeouts
Function
Revision Timeouts Args
- build_
config object - Build configuration for the revision. See
buildConfigBlock below. - function_
name string - Web function name.
- service_
config object Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- description string
- Description of the revision.
- kms_
key_ stringarn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts object
- build
Config FunctionRevision Build Config - Build configuration for the revision. See
buildConfigBlock below. - function
Name String - Web function name.
- service
Config FunctionRevision Service Config Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- description String
- Description of the revision.
- kms
Key StringArn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Function
Revision Timeouts
- build
Config FunctionRevision Build Config - Build configuration for the revision. See
buildConfigBlock below. - function
Name string - Web function name.
- service
Config FunctionRevision Service Config Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- description string
- Description of the revision.
- kms
Key stringArn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Function
Revision Timeouts
- build_
config FunctionRevision Build Config Args - Build configuration for the revision. See
buildConfigBlock below. - function_
name str - Web function name.
- service_
config FunctionRevision Service Config Args Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- description str
- Description of the revision.
- kms_
key_ strarn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Function
Revision Timeouts Args
- build
Config Property Map - Build configuration for the revision. See
buildConfigBlock below. - function
Name String - Web function name.
- service
Config Property Map Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- description String
- Description of the revision.
- kms
Key StringArn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the FunctionRevision resource produces the following output properties:
- Arn string
- ARN of the revision.
- Id string
- The provider-assigned unique ID for this managed resource.
- Revision
Id string - ID of the revision.
- Arn string
- ARN of the revision.
- Id string
- The provider-assigned unique ID for this managed resource.
- Revision
Id string - ID of the revision.
- arn string
- ARN of the revision.
- id string
- The provider-assigned unique ID for this managed resource.
- revision_
id string - ID of the revision.
- arn String
- ARN of the revision.
- id String
- The provider-assigned unique ID for this managed resource.
- revision
Id String - ID of the revision.
- arn string
- ARN of the revision.
- id string
- The provider-assigned unique ID for this managed resource.
- revision
Id string - ID of the revision.
- arn str
- ARN of the revision.
- id str
- The provider-assigned unique ID for this managed resource.
- revision_
id str - ID of the revision.
- arn String
- ARN of the revision.
- id String
- The provider-assigned unique ID for this managed resource.
- revision
Id String - ID of the revision.
Look up Existing FunctionRevision Resource
Get an existing FunctionRevision resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FunctionRevisionState, opts?: CustomResourceOptions): FunctionRevision@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
build_config: Optional[FunctionRevisionBuildConfigArgs] = None,
description: Optional[str] = None,
function_name: Optional[str] = None,
kms_key_arn: Optional[str] = None,
region: Optional[str] = None,
revision_id: Optional[str] = None,
service_config: Optional[FunctionRevisionServiceConfigArgs] = None,
timeouts: Optional[FunctionRevisionTimeoutsArgs] = None) -> FunctionRevisionfunc GetFunctionRevision(ctx *Context, name string, id IDInput, state *FunctionRevisionState, opts ...ResourceOption) (*FunctionRevision, error)public static FunctionRevision Get(string name, Input<string> id, FunctionRevisionState? state, CustomResourceOptions? opts = null)public static FunctionRevision get(String name, Output<String> id, FunctionRevisionState state, CustomResourceOptions options)resources: existingFunctionRevision: type: aws:lambdaweb:FunctionRevision get: id: ${id}import {
to = aws_lambdaweb_function_revision.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state FunctionRevisionState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state FunctionRevisionState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state FunctionRevisionState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state FunctionRevisionState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Arn string
- ARN of the revision.
- Build
Config FunctionRevision Build Config - Build configuration for the revision. See
buildConfigBlock below. - Description string
- Description of the revision.
- Function
Name string - Web function name.
- Kms
Key stringArn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Revision
Id string - ID of the revision.
- Service
Config FunctionRevision Service Config Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- Timeouts
Function
Revision Timeouts
- Arn string
- ARN of the revision.
- Build
Config FunctionRevision Build Config Args - Build configuration for the revision. See
buildConfigBlock below. - Description string
- Description of the revision.
- Function
Name string - Web function name.
- Kms
Key stringArn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Revision
Id string - ID of the revision.
- Service
Config FunctionRevision Service Config Args Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- Timeouts
Function
Revision Timeouts Args
- arn string
- ARN of the revision.
- build_
config object - Build configuration for the revision. See
buildConfigBlock below. - description string
- Description of the revision.
- function_
name string - Web function name.
- kms_
key_ stringarn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- revision_
id string - ID of the revision.
- service_
config object Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- timeouts object
- arn String
- ARN of the revision.
- build
Config FunctionRevision Build Config - Build configuration for the revision. See
buildConfigBlock below. - description String
- Description of the revision.
- function
Name String - Web function name.
- kms
Key StringArn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- revision
Id String - ID of the revision.
- service
Config FunctionRevision Service Config Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- timeouts
Function
Revision Timeouts
- arn string
- ARN of the revision.
- build
Config FunctionRevision Build Config - Build configuration for the revision. See
buildConfigBlock below. - description string
- Description of the revision.
- function
Name string - Web function name.
- kms
Key stringArn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- revision
Id string - ID of the revision.
- service
Config FunctionRevision Service Config Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- timeouts
Function
Revision Timeouts
- arn str
- ARN of the revision.
- build_
config FunctionRevision Build Config Args - Build configuration for the revision. See
buildConfigBlock below. - description str
- Description of the revision.
- function_
name str - Web function name.
- kms_
key_ strarn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- revision_
id str - ID of the revision.
- service_
config FunctionRevision Service Config Args Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- timeouts
Function
Revision Timeouts Args
- arn String
- ARN of the revision.
- build
Config Property Map - Build configuration for the revision. See
buildConfigBlock below. - description String
- Description of the revision.
- function
Name String - Web function name.
- kms
Key StringArn - ARN of the KMS key used to encrypt the revision's code and environment variables.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- revision
Id String - ID of the revision.
- service
Config Property Map Service configuration for the revision. See
serviceConfigBlock below.The following arguments are optional:
- timeouts Property Map
Supporting Types
FunctionRevisionBuildConfig, FunctionRevisionBuildConfigArgs
- Code
Config FunctionRevision Build Config Code Config - Code configuration. See
build_config.code_configBlock below. - Runtime
Config FunctionRevision Build Config Runtime Config - Runtime configuration for the revision. See
build_config.runtime_configBlock below.
- Code
Config FunctionRevision Build Config Code Config - Code configuration. See
build_config.code_configBlock below. - Runtime
Config FunctionRevision Build Config Runtime Config - Runtime configuration for the revision. See
build_config.runtime_configBlock below.
- code_
config object - Code configuration. See
build_config.code_configBlock below. - runtime_
config object - Runtime configuration for the revision. See
build_config.runtime_configBlock below.
- code
Config FunctionRevision Build Config Code Config - Code configuration. See
build_config.code_configBlock below. - runtime
Config FunctionRevision Build Config Runtime Config - Runtime configuration for the revision. See
build_config.runtime_configBlock below.
- code
Config FunctionRevision Build Config Code Config - Code configuration. See
build_config.code_configBlock below. - runtime
Config FunctionRevision Build Config Runtime Config - Runtime configuration for the revision. See
build_config.runtime_configBlock below.
- code_
config FunctionRevision Build Config Code Config - Code configuration. See
build_config.code_configBlock below. - runtime_
config FunctionRevision Build Config Runtime Config - Runtime configuration for the revision. See
build_config.runtime_configBlock below.
- code
Config Property Map - Code configuration. See
build_config.code_configBlock below. - runtime
Config Property Map - Runtime configuration for the revision. See
build_config.runtime_configBlock below.
FunctionRevisionBuildConfigCodeConfig, FunctionRevisionBuildConfigCodeConfigArgs
- S3Object
Function
Revision Build Config Code Config S3Object - Amazon S3 location of the deployment artifact. See
build_config.code_config.s3_objectBlock below.
- S3Object
Function
Revision Build Config Code Config S3Object - Amazon S3 location of the deployment artifact. See
build_config.code_config.s3_objectBlock below.
- s3Object
Function
Revision Build Config Code Config S3Object - Amazon S3 location of the deployment artifact. See
build_config.code_config.s3_objectBlock below.
- s3Object
Function
Revision Build Config Code Config S3Object - Amazon S3 location of the deployment artifact. See
build_config.code_config.s3_objectBlock below.
- s3_
object FunctionRevision Build Config Code Config S3Object - Amazon S3 location of the deployment artifact. See
build_config.code_config.s3_objectBlock below.
- s3Object Property Map
- Amazon S3 location of the deployment artifact. See
build_config.code_config.s3_objectBlock below.
FunctionRevisionBuildConfigCodeConfigS3Object, FunctionRevisionBuildConfigCodeConfigS3ObjectArgs
- bucket string
- Name of the Amazon S3 bucket.
- key string
- Amazon S3 object key.
- version_
id string - Version ID of the Amazon S3 object.
- bucket str
- Name of the Amazon S3 bucket.
- key str
- Amazon S3 object key.
- version_
id str - Version ID of the Amazon S3 object.
FunctionRevisionBuildConfigRuntimeConfig, FunctionRevisionBuildConfigRuntimeConfigArgs
- Runtime string
- Runtime identifier for the web function, e.g.
nodejs24.x.
- Runtime string
- Runtime identifier for the web function, e.g.
nodejs24.x.
- runtime string
- Runtime identifier for the web function, e.g.
nodejs24.x.
- runtime String
- Runtime identifier for the web function, e.g.
nodejs24.x.
- runtime string
- Runtime identifier for the web function, e.g.
nodejs24.x.
- runtime str
- Runtime identifier for the web function, e.g.
nodejs24.x.
- runtime String
- Runtime identifier for the web function, e.g.
nodejs24.x.
FunctionRevisionServiceConfig, FunctionRevisionServiceConfigArgs
- Execution
Role stringArn - ARN of the IAM role that the web function assumes when it runs. The trust principal must be
lambda.amazonaws.com. - Egress
Network stringConnector Arn - ARN of the Lambda network connector that gives the web function access to resources in a VPC. Specify the fully qualified ARN, including the connector version, which pins the revision to that version. Supported only with
HomeRegionendpoints. - Environment
Variables Dictionary<string, string> - Map of environment variable key-value pairs available to the web function at runtime.
- Max
Concurrency intPer Environment - Maximum number of concurrent requests handled per execution environment. The default is
64. - Telemetry
Config FunctionRevision Service Config Telemetry Config - Telemetry configuration for the web function. See
service_config.telemetry_configBlock below. - Telemetry
Config List<FunctionActuals Revision Service Config Telemetry Config Actual> - Actual deployed telemetry configuration.
- Timeout
Seconds int - Amount of time (in seconds) that Lambda allows the web function to run before stopping it. The default is
30.
- Execution
Role stringArn - ARN of the IAM role that the web function assumes when it runs. The trust principal must be
lambda.amazonaws.com. - Egress
Network stringConnector Arn - ARN of the Lambda network connector that gives the web function access to resources in a VPC. Specify the fully qualified ARN, including the connector version, which pins the revision to that version. Supported only with
HomeRegionendpoints. - Environment
Variables map[string]string - Map of environment variable key-value pairs available to the web function at runtime.
- Max
Concurrency intPer Environment - Maximum number of concurrent requests handled per execution environment. The default is
64. - Telemetry
Config FunctionRevision Service Config Telemetry Config - Telemetry configuration for the web function. See
service_config.telemetry_configBlock below. - Telemetry
Config []FunctionActuals Revision Service Config Telemetry Config Actual - Actual deployed telemetry configuration.
- Timeout
Seconds int - Amount of time (in seconds) that Lambda allows the web function to run before stopping it. The default is
30.
- execution_
role_ stringarn - ARN of the IAM role that the web function assumes when it runs. The trust principal must be
lambda.amazonaws.com. - egress_
network_ stringconnector_ arn - ARN of the Lambda network connector that gives the web function access to resources in a VPC. Specify the fully qualified ARN, including the connector version, which pins the revision to that version. Supported only with
HomeRegionendpoints. - environment_
variables map(string) - Map of environment variable key-value pairs available to the web function at runtime.
- max_
concurrency_ numberper_ environment - Maximum number of concurrent requests handled per execution environment. The default is
64. - telemetry_
config object - Telemetry configuration for the web function. See
service_config.telemetry_configBlock below. - telemetry_
config_ list(object)actuals - Actual deployed telemetry configuration.
- timeout_
seconds number - Amount of time (in seconds) that Lambda allows the web function to run before stopping it. The default is
30.
- execution
Role StringArn - ARN of the IAM role that the web function assumes when it runs. The trust principal must be
lambda.amazonaws.com. - egress
Network StringConnector Arn - ARN of the Lambda network connector that gives the web function access to resources in a VPC. Specify the fully qualified ARN, including the connector version, which pins the revision to that version. Supported only with
HomeRegionendpoints. - environment
Variables Map<String,String> - Map of environment variable key-value pairs available to the web function at runtime.
- max
Concurrency IntegerPer Environment - Maximum number of concurrent requests handled per execution environment. The default is
64. - telemetry
Config FunctionRevision Service Config Telemetry Config - Telemetry configuration for the web function. See
service_config.telemetry_configBlock below. - telemetry
Config List<FunctionActuals Revision Service Config Telemetry Config Actual> - Actual deployed telemetry configuration.
- timeout
Seconds Integer - Amount of time (in seconds) that Lambda allows the web function to run before stopping it. The default is
30.
- execution
Role stringArn - ARN of the IAM role that the web function assumes when it runs. The trust principal must be
lambda.amazonaws.com. - egress
Network stringConnector Arn - ARN of the Lambda network connector that gives the web function access to resources in a VPC. Specify the fully qualified ARN, including the connector version, which pins the revision to that version. Supported only with
HomeRegionendpoints. - environment
Variables {[key: string]: string} - Map of environment variable key-value pairs available to the web function at runtime.
- max
Concurrency numberPer Environment - Maximum number of concurrent requests handled per execution environment. The default is
64. - telemetry
Config FunctionRevision Service Config Telemetry Config - Telemetry configuration for the web function. See
service_config.telemetry_configBlock below. - telemetry
Config FunctionActuals Revision Service Config Telemetry Config Actual[] - Actual deployed telemetry configuration.
- timeout
Seconds number - Amount of time (in seconds) that Lambda allows the web function to run before stopping it. The default is
30.
- execution_
role_ strarn - ARN of the IAM role that the web function assumes when it runs. The trust principal must be
lambda.amazonaws.com. - egress_
network_ strconnector_ arn - ARN of the Lambda network connector that gives the web function access to resources in a VPC. Specify the fully qualified ARN, including the connector version, which pins the revision to that version. Supported only with
HomeRegionendpoints. - environment_
variables Mapping[str, str] - Map of environment variable key-value pairs available to the web function at runtime.
- max_
concurrency_ intper_ environment - Maximum number of concurrent requests handled per execution environment. The default is
64. - telemetry_
config FunctionRevision Service Config Telemetry Config - Telemetry configuration for the web function. See
service_config.telemetry_configBlock below. - telemetry_
config_ Sequence[Functionactuals Revision Service Config Telemetry Config Actual] - Actual deployed telemetry configuration.
- timeout_
seconds int - Amount of time (in seconds) that Lambda allows the web function to run before stopping it. The default is
30.
- execution
Role StringArn - ARN of the IAM role that the web function assumes when it runs. The trust principal must be
lambda.amazonaws.com. - egress
Network StringConnector Arn - ARN of the Lambda network connector that gives the web function access to resources in a VPC. Specify the fully qualified ARN, including the connector version, which pins the revision to that version. Supported only with
HomeRegionendpoints. - environment
Variables Map<String> - Map of environment variable key-value pairs available to the web function at runtime.
- max
Concurrency NumberPer Environment - Maximum number of concurrent requests handled per execution environment. The default is
64. - telemetry
Config Property Map - Telemetry configuration for the web function. See
service_config.telemetry_configBlock below. - telemetry
Config List<Property Map>Actuals - Actual deployed telemetry configuration.
- timeout
Seconds Number - Amount of time (in seconds) that Lambda allows the web function to run before stopping it. The default is
30.
FunctionRevisionServiceConfigTelemetryConfig, FunctionRevisionServiceConfigTelemetryConfigArgs
- Logging
Config FunctionRevision Service Config Telemetry Config Logging Config - Deployed logging configuration.
- Logging
Config FunctionRevision Service Config Telemetry Config Logging Config - Deployed logging configuration.
- logging_
config object - Deployed logging configuration.
- logging
Config FunctionRevision Service Config Telemetry Config Logging Config - Deployed logging configuration.
- logging
Config FunctionRevision Service Config Telemetry Config Logging Config - Deployed logging configuration.
- logging_
config FunctionRevision Service Config Telemetry Config Logging Config - Deployed logging configuration.
- logging
Config Property Map - Deployed logging configuration.
FunctionRevisionServiceConfigTelemetryConfigActual, FunctionRevisionServiceConfigTelemetryConfigActualArgs
- Logging
Configs List<FunctionRevision Service Config Telemetry Config Actual Logging Config> - Deployed logging configuration.
- Logging
Configs []FunctionRevision Service Config Telemetry Config Actual Logging Config - Deployed logging configuration.
- logging_
configs list(object) - Deployed logging configuration.
- logging
Configs List<FunctionRevision Service Config Telemetry Config Actual Logging Config> - Deployed logging configuration.
- logging
Configs FunctionRevision Service Config Telemetry Config Actual Logging Config[] - Deployed logging configuration.
- logging_
configs Sequence[FunctionRevision Service Config Telemetry Config Actual Logging Config] - Deployed logging configuration.
- logging
Configs List<Property Map> - Deployed logging configuration.
FunctionRevisionServiceConfigTelemetryConfigActualLoggingConfig, FunctionRevisionServiceConfigTelemetryConfigActualLoggingConfigArgs
- Application
Log stringLevel - Log level for application logs emitted by the web function.
- Log
Group string - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- System
Log stringLevel - Log level for system logs emitted by the Lambda runtime.
- Application
Log stringLevel - Log level for application logs emitted by the web function.
- Log
Group string - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- System
Log stringLevel - Log level for system logs emitted by the Lambda runtime.
- application_
log_ stringlevel - Log level for application logs emitted by the web function.
- log_
group string - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- system_
log_ stringlevel - Log level for system logs emitted by the Lambda runtime.
- application
Log StringLevel - Log level for application logs emitted by the web function.
- log
Group String - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- system
Log StringLevel - Log level for system logs emitted by the Lambda runtime.
- application
Log stringLevel - Log level for application logs emitted by the web function.
- log
Group string - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- system
Log stringLevel - Log level for system logs emitted by the Lambda runtime.
- application_
log_ strlevel - Log level for application logs emitted by the web function.
- log_
group str - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- system_
log_ strlevel - Log level for system logs emitted by the Lambda runtime.
- application
Log StringLevel - Log level for application logs emitted by the web function.
- log
Group String - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- system
Log StringLevel - Log level for system logs emitted by the Lambda runtime.
FunctionRevisionServiceConfigTelemetryConfigLoggingConfig, FunctionRevisionServiceConfigTelemetryConfigLoggingConfigArgs
- Application
Log stringLevel - Log level for application logs emitted by the web function.
- Log
Group string - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- System
Log stringLevel - Log level for system logs emitted by the Lambda runtime.
- Application
Log stringLevel - Log level for application logs emitted by the web function.
- Log
Group string - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- System
Log stringLevel - Log level for system logs emitted by the Lambda runtime.
- application_
log_ stringlevel - Log level for application logs emitted by the web function.
- log_
group string - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- system_
log_ stringlevel - Log level for system logs emitted by the Lambda runtime.
- application
Log StringLevel - Log level for application logs emitted by the web function.
- log
Group String - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- system
Log StringLevel - Log level for system logs emitted by the Lambda runtime.
- application
Log stringLevel - Log level for application logs emitted by the web function.
- log
Group string - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- system
Log stringLevel - Log level for system logs emitted by the Lambda runtime.
- application_
log_ strlevel - Log level for application logs emitted by the web function.
- log_
group str - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- system_
log_ strlevel - Log level for system logs emitted by the Lambda runtime.
- application
Log StringLevel - Log level for application logs emitted by the web function.
- log
Group String - Name of the Amazon CloudWatch Logs log group the web function sends logs to.
- system
Log StringLevel - Log level for system logs emitted by the Lambda runtime.
FunctionRevisionTimeouts, FunctionRevisionTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Identity Schema
Required
functionName(String) Web function name.revisionId(String) ID of the revision.
Optional
accountId(String) AWS Account where this resource is managed.region(String) Region where this resource is managed.
Using pulumi import, import a revision using functionName and revisionId separated by a comma (,). For example:
$ pulumi import aws:lambdaweb/functionRevision:FunctionRevision example example-function,rev-sglsh
To learn more about importing existing cloud resources, see Importing resources.
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