We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi
Resource Type definition for AWS::Lambda::WebFunctionRevision. An immutable revision of a Lambda web function, containing the function code and configuration.
Create WebFunctionRevision Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WebFunctionRevision(name: string, args: WebFunctionRevisionArgs, opts?: CustomResourceOptions);@overload
def WebFunctionRevision(resource_name: str,
args: WebFunctionRevisionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WebFunctionRevision(resource_name: str,
opts: Optional[ResourceOptions] = None,
build_config: Optional[BuildConfigPropertiesArgs] = None,
function_name: Optional[str] = None,
service_config: Optional[ServiceConfigPropertiesArgs] = None,
description: Optional[str] = None,
kms_key_arn: Optional[str] = None)func NewWebFunctionRevision(ctx *Context, name string, args WebFunctionRevisionArgs, opts ...ResourceOption) (*WebFunctionRevision, error)public WebFunctionRevision(string name, WebFunctionRevisionArgs args, CustomResourceOptions? opts = null)
public WebFunctionRevision(String name, WebFunctionRevisionArgs args)
public WebFunctionRevision(String name, WebFunctionRevisionArgs args, CustomResourceOptions options)
type: aws-native:lambda:WebFunctionRevision
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_lambda_web_function_revision" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args WebFunctionRevisionArgs
- 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 WebFunctionRevisionArgs
- 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 WebFunctionRevisionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebFunctionRevisionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebFunctionRevisionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WebFunctionRevision 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 WebFunctionRevision resource accepts the following input properties:
- Build
Config Pulumi.Aws Native. Lambda. Inputs. Build Config Properties - The build configuration for the revision.
- Function
Name string - The name of the web function this revision belongs to. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- Service
Config Pulumi.Aws Native. Lambda. Inputs. Service Config Properties - The service configuration for the revision.
- Description string
- A description of the revision.
- Kms
Key stringArn - The ARN of the KMS key used to encrypt the revision.
- Build
Config BuildConfig Properties Args - The build configuration for the revision.
- Function
Name string - The name of the web function this revision belongs to. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- Service
Config ServiceConfig Properties Args - The service configuration for the revision.
- Description string
- A description of the revision.
- Kms
Key stringArn - The ARN of the KMS key used to encrypt the revision.
- build_
config object - The build configuration for the revision.
- function_
name string - The name of the web function this revision belongs to. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- service_
config object - The service configuration for the revision.
- description string
- A description of the revision.
- kms_
key_ stringarn - The ARN of the KMS key used to encrypt the revision.
- build
Config BuildConfig Properties - The build configuration for the revision.
- function
Name String - The name of the web function this revision belongs to. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- service
Config ServiceConfig Properties - The service configuration for the revision.
- description String
- A description of the revision.
- kms
Key StringArn - The ARN of the KMS key used to encrypt the revision.
- build
Config BuildConfig Properties - The build configuration for the revision.
- function
Name string - The name of the web function this revision belongs to. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- service
Config ServiceConfig Properties - The service configuration for the revision.
- description string
- A description of the revision.
- kms
Key stringArn - The ARN of the KMS key used to encrypt the revision.
- build_
config BuildConfig Properties Args - The build configuration for the revision.
- function_
name str - The name of the web function this revision belongs to. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- service_
config ServiceConfig Properties Args - The service configuration for the revision.
- description str
- A description of the revision.
- kms_
key_ strarn - The ARN of the KMS key used to encrypt the revision.
- build
Config Property Map - The build configuration for the revision.
- function
Name String - The name of the web function this revision belongs to. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- service
Config Property Map - The service configuration for the revision.
- description String
- A description of the revision.
- kms
Key StringArn - The ARN of the KMS key used to encrypt the revision.
Outputs
All input properties are implicitly available as output properties. Additionally, the WebFunctionRevision resource produces the following output properties:
- Created
At string - The timestamp when the revision was created.
- Function
Arn string - The Amazon Resource Name (ARN) of the function.
- Id string
- The provider-assigned unique ID for this managed resource.
- Revision
Arn string - The Amazon Resource Name (ARN) of the revision.
- Revision
Id string - The unique identifier of the revision.
- State
Pulumi.
Aws Native. Lambda. Web Function Revision State - The current state of the revision.
- State
Reason string - The reason for the revision's current state.
- Created
At string - The timestamp when the revision was created.
- Function
Arn string - The Amazon Resource Name (ARN) of the function.
- Id string
- The provider-assigned unique ID for this managed resource.
- Revision
Arn string - The Amazon Resource Name (ARN) of the revision.
- Revision
Id string - The unique identifier of the revision.
- State
Web
Function Revision State Enum - The current state of the revision.
- State
Reason string - The reason for the revision's current state.
- created_
at string - The timestamp when the revision was created.
- function_
arn string - The Amazon Resource Name (ARN) of the function.
- id string
- The provider-assigned unique ID for this managed resource.
- revision_
arn string - The Amazon Resource Name (ARN) of the revision.
- revision_
id string - The unique identifier of the revision.
- state "Pending" | "Active" | "Failed"
- The current state of the revision.
- state_
reason string - The reason for the revision's current state.
- created
At String - The timestamp when the revision was created.
- function
Arn String - The Amazon Resource Name (ARN) of the function.
- id String
- The provider-assigned unique ID for this managed resource.
- revision
Arn String - The Amazon Resource Name (ARN) of the revision.
- revision
Id String - The unique identifier of the revision.
- state
Web
Function Revision State - The current state of the revision.
- state
Reason String - The reason for the revision's current state.
- created
At string - The timestamp when the revision was created.
- function
Arn string - The Amazon Resource Name (ARN) of the function.
- id string
- The provider-assigned unique ID for this managed resource.
- revision
Arn string - The Amazon Resource Name (ARN) of the revision.
- revision
Id string - The unique identifier of the revision.
- state
Web
Function Revision State - The current state of the revision.
- state
Reason string - The reason for the revision's current state.
- created_
at str - The timestamp when the revision was created.
- function_
arn str - The Amazon Resource Name (ARN) of the function.
- id str
- The provider-assigned unique ID for this managed resource.
- revision_
arn str - The Amazon Resource Name (ARN) of the revision.
- revision_
id str - The unique identifier of the revision.
- state
Web
Function Revision State - The current state of the revision.
- state_
reason str - The reason for the revision's current state.
- created
At String - The timestamp when the revision was created.
- function
Arn String - The Amazon Resource Name (ARN) of the function.
- id String
- The provider-assigned unique ID for this managed resource.
- revision
Arn String - The Amazon Resource Name (ARN) of the revision.
- revision
Id String - The unique identifier of the revision.
- state "Pending" | "Active" | "Failed"
- The current state of the revision.
- state
Reason String - The reason for the revision's current state.
Supporting Types
BuildConfigProperties, BuildConfigPropertiesArgs
The build configuration for the revision.- Code
Config Pulumi.Aws Native. Lambda. Inputs. Build Config Properties Code Config Properties - The code configuration for the revision.
- Runtime
Config Pulumi.Aws Native. Lambda. Inputs. Build Config Properties Runtime Config Properties - The runtime configuration for the revision.
- Code
Config BuildConfig Properties Code Config Properties - The code configuration for the revision.
- Runtime
Config BuildConfig Properties Runtime Config Properties - The runtime configuration for the revision.
- code_
config object - The code configuration for the revision.
- runtime_
config object - The runtime configuration for the revision.
- code
Config BuildConfig Properties Code Config Properties - The code configuration for the revision.
- runtime
Config BuildConfig Properties Runtime Config Properties - The runtime configuration for the revision.
- code
Config BuildConfig Properties Code Config Properties - The code configuration for the revision.
- runtime
Config BuildConfig Properties Runtime Config Properties - The runtime configuration for the revision.
- code_
config BuildConfig Properties Code Config Properties - The code configuration for the revision.
- runtime_
config BuildConfig Properties Runtime Config Properties - The runtime configuration for the revision.
- code
Config Property Map - The code configuration for the revision.
- runtime
Config Property Map - The runtime configuration for the revision.
BuildConfigPropertiesCodeConfigProperties, BuildConfigPropertiesCodeConfigPropertiesArgs
The code configuration for the revision.- S3Object
Pulumi.
Aws Native. Lambda. Inputs. Web Function Revision S3Object - The Amazon S3 location of the deployment artifact.
- S3Object
Web
Function Revision S3Object - The Amazon S3 location of the deployment artifact.
- s3Object
Web
Function Revision S3Object - The Amazon S3 location of the deployment artifact.
- s3Object
Web
Function Revision S3Object - The Amazon S3 location of the deployment artifact.
- s3_
object WebFunction Revision S3Object - The Amazon S3 location of the deployment artifact.
- s3Object Property Map
- The Amazon S3 location of the deployment artifact.
BuildConfigPropertiesRuntimeConfigProperties, BuildConfigPropertiesRuntimeConfigPropertiesArgs
The runtime configuration for the revision.- Runtime string
- The runtime identifier.
- Runtime string
- The runtime identifier.
- runtime string
- The runtime identifier.
- runtime String
- The runtime identifier.
- runtime string
- The runtime identifier.
- runtime str
- The runtime identifier.
- runtime String
- The runtime identifier.
ServiceConfigProperties, ServiceConfigPropertiesArgs
The service configuration for the revision.- Execution
Role stringArn - The ARN of the execution role.
- Egress
Network stringConnector Arn - The versioned ARN of the network connector used for outbound network access from the revision.
- Environment
Variables Dictionary<string, string> - Environment variables for the function.
- Max
Concurrency intPer Environment - The maximum concurrency per environment.
- Telemetry
Config Pulumi.Aws Native. Lambda. Inputs. Service Config Properties Telemetry Config Properties - The telemetry configuration.
- Timeout
Seconds int - The function timeout in seconds.
- Execution
Role stringArn - The ARN of the execution role.
- Egress
Network stringConnector Arn - The versioned ARN of the network connector used for outbound network access from the revision.
- Environment
Variables map[string]string - Environment variables for the function.
- Max
Concurrency intPer Environment - The maximum concurrency per environment.
- Telemetry
Config ServiceConfig Properties Telemetry Config Properties - The telemetry configuration.
- Timeout
Seconds int - The function timeout in seconds.
- execution_
role_ stringarn - The ARN of the execution role.
- egress_
network_ stringconnector_ arn - The versioned ARN of the network connector used for outbound network access from the revision.
- environment_
variables map(string) - Environment variables for the function.
- max_
concurrency_ numberper_ environment - The maximum concurrency per environment.
- telemetry_
config object - The telemetry configuration.
- timeout_
seconds number - The function timeout in seconds.
- execution
Role StringArn - The ARN of the execution role.
- egress
Network StringConnector Arn - The versioned ARN of the network connector used for outbound network access from the revision.
- environment
Variables Map<String,String> - Environment variables for the function.
- max
Concurrency IntegerPer Environment - The maximum concurrency per environment.
- telemetry
Config ServiceConfig Properties Telemetry Config Properties - The telemetry configuration.
- timeout
Seconds Integer - The function timeout in seconds.
- execution
Role stringArn - The ARN of the execution role.
- egress
Network stringConnector Arn - The versioned ARN of the network connector used for outbound network access from the revision.
- environment
Variables {[key: string]: string} - Environment variables for the function.
- max
Concurrency numberPer Environment - The maximum concurrency per environment.
- telemetry
Config ServiceConfig Properties Telemetry Config Properties - The telemetry configuration.
- timeout
Seconds number - The function timeout in seconds.
- execution_
role_ strarn - The ARN of the execution role.
- egress_
network_ strconnector_ arn - The versioned ARN of the network connector used for outbound network access from the revision.
- environment_
variables Mapping[str, str] - Environment variables for the function.
- max_
concurrency_ intper_ environment - The maximum concurrency per environment.
- telemetry_
config ServiceConfig Properties Telemetry Config Properties - The telemetry configuration.
- timeout_
seconds int - The function timeout in seconds.
- execution
Role StringArn - The ARN of the execution role.
- egress
Network StringConnector Arn - The versioned ARN of the network connector used for outbound network access from the revision.
- environment
Variables Map<String> - Environment variables for the function.
- max
Concurrency NumberPer Environment - The maximum concurrency per environment.
- telemetry
Config Property Map - The telemetry configuration.
- timeout
Seconds Number - The function timeout in seconds.
ServiceConfigPropertiesTelemetryConfigProperties, ServiceConfigPropertiesTelemetryConfigPropertiesArgs
The telemetry configuration.- Logging
Config Pulumi.Aws Native. Lambda. Inputs. Web Function Revision Logging Config - The logging configuration for the web function.
- Logging
Config WebFunction Revision Logging Config - The logging configuration for the web function.
- logging_
config object - The logging configuration for the web function.
- logging
Config WebFunction Revision Logging Config - The logging configuration for the web function.
- logging
Config WebFunction Revision Logging Config - The logging configuration for the web function.
- logging_
config WebFunction Revision Logging Config - The logging configuration for the web function.
- logging
Config Property Map - The logging configuration for the web function.
WebFunctionRevisionLoggingConfig, WebFunctionRevisionLoggingConfigArgs
The logging configuration.- Application
Log Pulumi.Level Aws Native. Lambda. Web Function Revision Logging Config Application Log Level - The application log level.
- Log
Group string - The CloudWatch log group name.
- System
Log Pulumi.Level Aws Native. Lambda. Web Function Revision Logging Config System Log Level - The system log level.
- Application
Log WebLevel Function Revision Logging Config Application Log Level - The application log level.
- Log
Group string - The CloudWatch log group name.
- System
Log WebLevel Function Revision Logging Config System Log Level - The system log level.
- application_
log_ "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL"level - The application log level.
- log_
group string - The CloudWatch log group name.
- system_
log_ "DEBUG" | "INFO" | "WARN"level - The system log level.
- application
Log WebLevel Function Revision Logging Config Application Log Level - The application log level.
- log
Group String - The CloudWatch log group name.
- system
Log WebLevel Function Revision Logging Config System Log Level - The system log level.
- application
Log WebLevel Function Revision Logging Config Application Log Level - The application log level.
- log
Group string - The CloudWatch log group name.
- system
Log WebLevel Function Revision Logging Config System Log Level - The system log level.
- application_
log_ Weblevel Function Revision Logging Config Application Log Level - The application log level.
- log_
group str - The CloudWatch log group name.
- system_
log_ Weblevel Function Revision Logging Config System Log Level - The system log level.
- application
Log "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL"Level - The application log level.
- log
Group String - The CloudWatch log group name.
- system
Log "DEBUG" | "INFO" | "WARN"Level - The system log level.
WebFunctionRevisionLoggingConfigApplicationLogLevel, WebFunctionRevisionLoggingConfigApplicationLogLevelArgs
- Trace
TRACE- Debug
DEBUG- Info
INFO- Warn
WARN- Error
ERROR- Fatal
FATAL
- Web
Function Revision Logging Config Application Log Level Trace TRACE- Web
Function Revision Logging Config Application Log Level Debug DEBUG- Web
Function Revision Logging Config Application Log Level Info INFO- Web
Function Revision Logging Config Application Log Level Warn WARN- Web
Function Revision Logging Config Application Log Level Error ERROR- Web
Function Revision Logging Config Application Log Level Fatal FATAL
- "TRACE"
TRACE- "DEBUG"
DEBUG- "INFO"
INFO- "WARN"
WARN- "ERROR"
ERROR- "FATAL"
FATAL
- Trace
TRACE- Debug
DEBUG- Info
INFO- Warn
WARN- Error
ERROR- Fatal
FATAL
- Trace
TRACE- Debug
DEBUG- Info
INFO- Warn
WARN- Error
ERROR- Fatal
FATAL
- TRACE
TRACE- DEBUG
DEBUG- INFO
INFO- WARN
WARN- ERROR
ERROR- FATAL
FATAL
- "TRACE"
TRACE- "DEBUG"
DEBUG- "INFO"
INFO- "WARN"
WARN- "ERROR"
ERROR- "FATAL"
FATAL
WebFunctionRevisionLoggingConfigSystemLogLevel, WebFunctionRevisionLoggingConfigSystemLogLevelArgs
- Debug
DEBUG- Info
INFO- Warn
WARN
- Web
Function Revision Logging Config System Log Level Debug DEBUG- Web
Function Revision Logging Config System Log Level Info INFO- Web
Function Revision Logging Config System Log Level Warn WARN
- "DEBUG"
DEBUG- "INFO"
INFO- "WARN"
WARN
- Debug
DEBUG- Info
INFO- Warn
WARN
- Debug
DEBUG- Info
INFO- Warn
WARN
- DEBUG
DEBUG- INFO
INFO- WARN
WARN
- "DEBUG"
DEBUG- "INFO"
INFO- "WARN"
WARN
WebFunctionRevisionS3Object, WebFunctionRevisionS3ObjectArgs
The S3 location of the function code.- bucket string
- The S3 bucket name.
- key string
- The S3 object key.
- version_
id string - The S3 object version ID.
- bucket str
- The S3 bucket name.
- key str
- The S3 object key.
- version_
id str - The S3 object version ID.
WebFunctionRevisionState, WebFunctionRevisionStateArgs
- Pending
Pending- Active
Active- Failed
Failed
- Web
Function Revision State Pending Pending- Web
Function Revision State Active Active- Web
Function Revision State Failed Failed
- "Pending"
Pending- "Active"
Active- "Failed"
Failed
- Pending
Pending- Active
Active- Failed
Failed
- Pending
Pending- Active
Active- Failed
Failed
- PENDING
Pending- ACTIVE
Active- FAILED
Failed
- "Pending"
Pending- "Active"
Active- "Failed"
Failed
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi