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::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:
- 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.
-
List<Pulumi.
Aws Native. Inputs. Tag> - 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.
-
Tag
Args - 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.
- list(object)
- 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.
- List<Tag>
- 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.
- 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.
-
Sequence[Tag
Args] - 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.
- 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:
- 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
Pulumi.
Aws Native. Lambda. Web Function State - 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.
- 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
Web
Function State Enum - 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.
- 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.
- 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
Web
Function State - 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.
- 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
Web
Function State - 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.
- 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
Web
Function State - 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.
- 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.
Supporting Types
Tag, TagArgs
A set of tags to apply to the resource.WebFunctionState, WebFunctionStateArgs
- Pending
Pending- Active
Active- Failed
Failed- Deleting
Deleting
- Web
Function State Pending Pending- Web
Function State Active Active- Web
Function State Failed Failed- Web
Function State 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
- "Pending"
Pending- "Active"
Active- "Failed"
Failed- "Deleting"
Deleting
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