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

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::WebFunction. Creates a Lambda Web function container.

    Create WebFunction Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new WebFunction(name: string, args?: WebFunctionArgs, opts?: CustomResourceOptions);
    @overload
    def WebFunction(resource_name: str,
                    args: Optional[WebFunctionArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def WebFunction(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    function_name: Optional[str] = None,
                    tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewWebFunction(ctx *Context, name string, args *WebFunctionArgs, opts ...ResourceOption) (*WebFunction, error)
    public WebFunction(string name, WebFunctionArgs? args = null, CustomResourceOptions? opts = null)
    public WebFunction(String name, WebFunctionArgs args)
    public WebFunction(String name, WebFunctionArgs args, CustomResourceOptions options)
    
    type: aws-native:lambda:WebFunction
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_lambda_web_function" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args WebFunctionArgs
    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 WebFunctionArgs
    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 WebFunctionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WebFunctionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WebFunctionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    WebFunction 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 WebFunction resource accepts the following input properties:

    FunctionName string
    The name of the web function. The name can contain letters, numbers, hyphens (-), and underscores (_), and cannot begin or end with a hyphen or an underscore. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    A list of tags to apply to the function.
    FunctionName string
    The name of the web function. The name can contain letters, numbers, hyphens (-), and underscores (_), and cannot begin or end with a hyphen or an underscore. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
    Tags TagArgs
    A list of tags to apply to the function.
    function_name string
    The name of the web function. The name can contain letters, numbers, hyphens (-), and underscores (_), and cannot begin or end with a hyphen or an underscore. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
    tags list(object)
    A list of tags to apply to the function.
    functionName String
    The name of the web function. The name can contain letters, numbers, hyphens (-), and underscores (_), and cannot begin or end with a hyphen or an underscore. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
    tags List<Tag>
    A list of tags to apply to the function.
    functionName string
    The name of the web function. The name can contain letters, numbers, hyphens (-), and underscores (_), and cannot begin or end with a hyphen or an underscore. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
    tags Tag[]
    A list of tags to apply to the function.
    function_name str
    The name of the web function. The name can contain letters, numbers, hyphens (-), and underscores (_), and cannot begin or end with a hyphen or an underscore. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
    tags Sequence[TagArgs]
    A list of tags to apply to the function.
    functionName String
    The name of the web function. The name can contain letters, numbers, hyphens (-), and underscores (_), and cannot begin or end with a hyphen or an underscore. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
    tags List<Property Map>
    A list of tags to apply to the function.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WebFunction resource produces the following output properties:

    CreatedAt string
    The timestamp when the function was created.
    FunctionArn string
    The Amazon Resource Name (ARN) of the function.
    Id string
    The provider-assigned unique ID for this managed resource.
    State Pulumi.AwsNative.Lambda.WebFunctionState
    The current state of the function.
    StateReason string
    The reason for the function's current state.
    UpdatedAt string
    The timestamp when the function was last updated.
    CreatedAt string
    The timestamp when the function was created.
    FunctionArn string
    The Amazon Resource Name (ARN) of the function.
    Id string
    The provider-assigned unique ID for this managed resource.
    State WebFunctionStateEnum
    The current state of the function.
    StateReason string
    The reason for the function's current state.
    UpdatedAt string
    The timestamp when the function was last updated.
    created_at string
    The timestamp when the function was created.
    function_arn string
    The Amazon Resource Name (ARN) of the function.
    id string
    The provider-assigned unique ID for this managed resource.
    state "Pending" | "Active" | "Failed" | "Deleting"
    The current state of the function.
    state_reason string
    The reason for the function's current state.
    updated_at string
    The timestamp when the function was last updated.
    createdAt String
    The timestamp when the function was created.
    functionArn String
    The Amazon Resource Name (ARN) of the function.
    id String
    The provider-assigned unique ID for this managed resource.
    state WebFunctionState
    The current state of the function.
    stateReason String
    The reason for the function's current state.
    updatedAt String
    The timestamp when the function was last updated.
    createdAt string
    The timestamp when the function was created.
    functionArn string
    The Amazon Resource Name (ARN) of the function.
    id string
    The provider-assigned unique ID for this managed resource.
    state WebFunctionState
    The current state of the function.
    stateReason string
    The reason for the function's current state.
    updatedAt string
    The timestamp when the function was last updated.
    created_at str
    The timestamp when the function was created.
    function_arn str
    The Amazon Resource Name (ARN) of the function.
    id str
    The provider-assigned unique ID for this managed resource.
    state WebFunctionState
    The current state of the function.
    state_reason str
    The reason for the function's current state.
    updated_at str
    The timestamp when the function was last updated.
    createdAt String
    The timestamp when the function was created.
    functionArn String
    The Amazon Resource Name (ARN) of the function.
    id String
    The provider-assigned unique ID for this managed resource.
    state "Pending" | "Active" | "Failed" | "Deleting"
    The current state of the function.
    stateReason String
    The reason for the function's current state.
    updatedAt String
    The timestamp when the function was last updated.

    Supporting Types

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    WebFunctionState, WebFunctionStateArgs

    Pending
    Pending
    Active
    Active
    Failed
    Failed
    Deleting
    Deleting
    WebFunctionStatePending
    Pending
    WebFunctionStateActive
    Active
    WebFunctionStateFailed
    Failed
    WebFunctionStateDeleting
    Deleting
    "Pending"
    Pending
    "Active"
    Active
    "Failed"
    Failed
    "Deleting"
    Deleting
    Pending
    Pending
    Active
    Active
    Failed
    Failed
    Deleting
    Deleting
    Pending
    Pending
    Active
    Active
    Failed
    Failed
    Deleting
    Deleting
    PENDING
    Pending
    ACTIVE
    Active
    FAILED
    Failed
    DELETING
    Deleting
    "Pending"
    Pending
    "Active"
    Active
    "Failed"
    Failed
    "Deleting"
    Deleting

    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