1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. lambda
  6. WebFunctionRevision

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.85.0
published on Monday, Nov 2, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.85.0
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:

    BuildConfig Pulumi.AwsNative.Lambda.Inputs.BuildConfigProperties
    The build configuration for the revision.
    FunctionName 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.
    ServiceConfig Pulumi.AwsNative.Lambda.Inputs.ServiceConfigProperties
    The service configuration for the revision.
    Description string
    A description of the revision.
    KmsKeyArn string
    The ARN of the KMS key used to encrypt the revision.
    BuildConfig BuildConfigPropertiesArgs
    The build configuration for the revision.
    FunctionName 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.
    ServiceConfig ServiceConfigPropertiesArgs
    The service configuration for the revision.
    Description string
    A description of the revision.
    KmsKeyArn string
    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_arn string
    The ARN of the KMS key used to encrypt the revision.
    buildConfig BuildConfigProperties
    The build configuration for the revision.
    functionName 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.
    serviceConfig ServiceConfigProperties
    The service configuration for the revision.
    description String
    A description of the revision.
    kmsKeyArn String
    The ARN of the KMS key used to encrypt the revision.
    buildConfig BuildConfigProperties
    The build configuration for the revision.
    functionName 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.
    serviceConfig ServiceConfigProperties
    The service configuration for the revision.
    description string
    A description of the revision.
    kmsKeyArn string
    The ARN of the KMS key used to encrypt the revision.
    build_config BuildConfigPropertiesArgs
    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 ServiceConfigPropertiesArgs
    The service configuration for the revision.
    description str
    A description of the revision.
    kms_key_arn str
    The ARN of the KMS key used to encrypt the revision.
    buildConfig Property Map
    The build configuration for the revision.
    functionName 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.
    serviceConfig Property Map
    The service configuration for the revision.
    description String
    A description of the revision.
    kmsKeyArn String
    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:

    CreatedAt string
    The timestamp when the revision was created.
    FunctionArn string
    The Amazon Resource Name (ARN) of the function.
    Id string
    The provider-assigned unique ID for this managed resource.
    RevisionArn string
    The Amazon Resource Name (ARN) of the revision.
    RevisionId string
    The unique identifier of the revision.
    State Pulumi.AwsNative.Lambda.WebFunctionRevisionState
    The current state of the revision.
    StateReason string
    The reason for the revision's current state.
    CreatedAt string
    The timestamp when the revision was created.
    FunctionArn string
    The Amazon Resource Name (ARN) of the function.
    Id string
    The provider-assigned unique ID for this managed resource.
    RevisionArn string
    The Amazon Resource Name (ARN) of the revision.
    RevisionId string
    The unique identifier of the revision.
    State WebFunctionRevisionStateEnum
    The current state of the revision.
    StateReason 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.
    createdAt String
    The timestamp when the revision was created.
    functionArn String
    The Amazon Resource Name (ARN) of the function.
    id String
    The provider-assigned unique ID for this managed resource.
    revisionArn String
    The Amazon Resource Name (ARN) of the revision.
    revisionId String
    The unique identifier of the revision.
    state WebFunctionRevisionState
    The current state of the revision.
    stateReason String
    The reason for the revision's current state.
    createdAt string
    The timestamp when the revision was created.
    functionArn string
    The Amazon Resource Name (ARN) of the function.
    id string
    The provider-assigned unique ID for this managed resource.
    revisionArn string
    The Amazon Resource Name (ARN) of the revision.
    revisionId string
    The unique identifier of the revision.
    state WebFunctionRevisionState
    The current state of the revision.
    stateReason 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 WebFunctionRevisionState
    The current state of the revision.
    state_reason str
    The reason for the revision's current state.
    createdAt String
    The timestamp when the revision was created.
    functionArn String
    The Amazon Resource Name (ARN) of the function.
    id String
    The provider-assigned unique ID for this managed resource.
    revisionArn String
    The Amazon Resource Name (ARN) of the revision.
    revisionId String
    The unique identifier of the revision.
    state "Pending" | "Active" | "Failed"
    The current state of the revision.
    stateReason String
    The reason for the revision's current state.

    Supporting Types

    BuildConfigProperties, BuildConfigPropertiesArgs

    The build configuration for the revision.
    CodeConfig BuildConfigPropertiesCodeConfigProperties
    The code configuration for the revision.
    RuntimeConfig BuildConfigPropertiesRuntimeConfigProperties
    The runtime configuration for the revision.
    code_config object
    The code configuration for the revision.
    runtime_config object
    The runtime configuration for the revision.
    codeConfig BuildConfigPropertiesCodeConfigProperties
    The code configuration for the revision.
    runtimeConfig BuildConfigPropertiesRuntimeConfigProperties
    The runtime configuration for the revision.
    codeConfig BuildConfigPropertiesCodeConfigProperties
    The code configuration for the revision.
    runtimeConfig BuildConfigPropertiesRuntimeConfigProperties
    The runtime configuration for the revision.
    code_config BuildConfigPropertiesCodeConfigProperties
    The code configuration for the revision.
    runtime_config BuildConfigPropertiesRuntimeConfigProperties
    The runtime configuration for the revision.
    codeConfig Property Map
    The code configuration for the revision.
    runtimeConfig Property Map
    The runtime configuration for the revision.

    BuildConfigPropertiesCodeConfigProperties, BuildConfigPropertiesCodeConfigPropertiesArgs

    The code configuration for the revision.
    S3Object Pulumi.AwsNative.Lambda.Inputs.WebFunctionRevisionS3Object
    The Amazon S3 location of the deployment artifact.
    S3Object WebFunctionRevisionS3Object
    The Amazon S3 location of the deployment artifact.
    s3_object object
    The Amazon S3 location of the deployment artifact.
    s3Object WebFunctionRevisionS3Object
    The Amazon S3 location of the deployment artifact.
    s3Object WebFunctionRevisionS3Object
    The Amazon S3 location of the deployment artifact.
    s3_object WebFunctionRevisionS3Object
    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.
    ExecutionRoleArn string
    The ARN of the execution role.
    EgressNetworkConnectorArn string
    The versioned ARN of the network connector used for outbound network access from the revision.
    EnvironmentVariables Dictionary<string, string>
    Environment variables for the function.
    MaxConcurrencyPerEnvironment int
    The maximum concurrency per environment.
    TelemetryConfig Pulumi.AwsNative.Lambda.Inputs.ServiceConfigPropertiesTelemetryConfigProperties
    The telemetry configuration.
    TimeoutSeconds int
    The function timeout in seconds.
    ExecutionRoleArn string
    The ARN of the execution role.
    EgressNetworkConnectorArn string
    The versioned ARN of the network connector used for outbound network access from the revision.
    EnvironmentVariables map[string]string
    Environment variables for the function.
    MaxConcurrencyPerEnvironment int
    The maximum concurrency per environment.
    TelemetryConfig ServiceConfigPropertiesTelemetryConfigProperties
    The telemetry configuration.
    TimeoutSeconds int
    The function timeout in seconds.
    execution_role_arn string
    The ARN of the execution role.
    egress_network_connector_arn string
    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_per_environment number
    The maximum concurrency per environment.
    telemetry_config object
    The telemetry configuration.
    timeout_seconds number
    The function timeout in seconds.
    executionRoleArn String
    The ARN of the execution role.
    egressNetworkConnectorArn String
    The versioned ARN of the network connector used for outbound network access from the revision.
    environmentVariables Map<String,String>
    Environment variables for the function.
    maxConcurrencyPerEnvironment Integer
    The maximum concurrency per environment.
    telemetryConfig ServiceConfigPropertiesTelemetryConfigProperties
    The telemetry configuration.
    timeoutSeconds Integer
    The function timeout in seconds.
    executionRoleArn string
    The ARN of the execution role.
    egressNetworkConnectorArn string
    The versioned ARN of the network connector used for outbound network access from the revision.
    environmentVariables {[key: string]: string}
    Environment variables for the function.
    maxConcurrencyPerEnvironment number
    The maximum concurrency per environment.
    telemetryConfig ServiceConfigPropertiesTelemetryConfigProperties
    The telemetry configuration.
    timeoutSeconds number
    The function timeout in seconds.
    execution_role_arn str
    The ARN of the execution role.
    egress_network_connector_arn str
    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_per_environment int
    The maximum concurrency per environment.
    telemetry_config ServiceConfigPropertiesTelemetryConfigProperties
    The telemetry configuration.
    timeout_seconds int
    The function timeout in seconds.
    executionRoleArn String
    The ARN of the execution role.
    egressNetworkConnectorArn String
    The versioned ARN of the network connector used for outbound network access from the revision.
    environmentVariables Map<String>
    Environment variables for the function.
    maxConcurrencyPerEnvironment Number
    The maximum concurrency per environment.
    telemetryConfig Property Map
    The telemetry configuration.
    timeoutSeconds Number
    The function timeout in seconds.

    ServiceConfigPropertiesTelemetryConfigProperties, ServiceConfigPropertiesTelemetryConfigPropertiesArgs

    The telemetry configuration.
    LoggingConfig WebFunctionRevisionLoggingConfig
    The logging configuration for the web function.
    logging_config object
    The logging configuration for the web function.
    loggingConfig WebFunctionRevisionLoggingConfig
    The logging configuration for the web function.
    loggingConfig WebFunctionRevisionLoggingConfig
    The logging configuration for the web function.
    logging_config WebFunctionRevisionLoggingConfig
    The logging configuration for the web function.
    loggingConfig Property Map
    The logging configuration for the web function.

    WebFunctionRevisionLoggingConfig, WebFunctionRevisionLoggingConfigArgs

    The logging configuration.
    application_log_level "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL"
    The application log level.
    log_group string
    The CloudWatch log group name.
    system_log_level "DEBUG" | "INFO" | "WARN"
    The system log level.
    applicationLogLevel "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL"
    The application log level.
    logGroup String
    The CloudWatch log group name.
    systemLogLevel "DEBUG" | "INFO" | "WARN"
    The system log level.

    WebFunctionRevisionLoggingConfigApplicationLogLevel, WebFunctionRevisionLoggingConfigApplicationLogLevelArgs

    Trace
    TRACE
    Debug
    DEBUG
    Info
    INFO
    Warn
    WARN
    Error
    ERROR
    Fatal
    FATAL
    WebFunctionRevisionLoggingConfigApplicationLogLevelTrace
    TRACE
    WebFunctionRevisionLoggingConfigApplicationLogLevelDebug
    DEBUG
    WebFunctionRevisionLoggingConfigApplicationLogLevelInfo
    INFO
    WebFunctionRevisionLoggingConfigApplicationLogLevelWarn
    WARN
    WebFunctionRevisionLoggingConfigApplicationLogLevelError
    ERROR
    WebFunctionRevisionLoggingConfigApplicationLogLevelFatal
    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
    WebFunctionRevisionLoggingConfigSystemLogLevelDebug
    DEBUG
    WebFunctionRevisionLoggingConfigSystemLogLevelInfo
    INFO
    WebFunctionRevisionLoggingConfigSystemLogLevelWarn
    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.
    VersionId string
    The S3 object version ID.
    Bucket string
    The S3 bucket name.
    Key string
    The S3 object key.
    VersionId string
    The S3 object version ID.
    bucket string
    The S3 bucket name.
    key string
    The S3 object key.
    version_id string
    The S3 object version ID.
    bucket String
    The S3 bucket name.
    key String
    The S3 object key.
    versionId String
    The S3 object version ID.
    bucket string
    The S3 bucket name.
    key string
    The S3 object key.
    versionId 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.
    bucket String
    The S3 bucket name.
    key String
    The S3 object key.
    versionId String
    The S3 object version ID.

    WebFunctionRevisionState, WebFunctionRevisionStateArgs

    Pending
    Pending
    Active
    Active
    Failed
    Failed
    WebFunctionRevisionStatePending
    Pending
    WebFunctionRevisionStateActive
    Active
    WebFunctionRevisionStateFailed
    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
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.85.0
    published on Monday, Nov 2, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial