AWS::Lambda::WebFunction

Lambda WebFunction

Resource Type definition for AWS::Lambda::WebFunction. Creates a Lambda Web function container.

Properties

2 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
FunctionName
string
RequiredCreate-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
CreatedAtstringThe timestamp when the function was created.
FunctionArnstringThe Amazon Resource Name (ARN) of the function.
StatestringThe current state of the function.
StateReasonstringThe reason for the function's current state.
UpdatedAtstringThe timestamp when the function was last updated.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lambda::WebFunction

Resources:
  MyResource:
    Type: AWS::Lambda::WebFunction
    Properties:
      FunctionName: "my-functionname"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

lambda:CreateWebFunctionlambda:GetWebFunctionlambda:TagResourcelambda:ListTags

read

lambda:GetWebFunctionlambda:ListTags

update

lambda:GetWebFunctionlambda:TagResourcelambda:UntagResourcelambda:ListTags

delete

lambda:DeleteWebFunctionlambda:GetWebFunctionlambda:ListTags

list

lambda:ListWebFunctions

Get the Lambda Cheat Sheet

Everything you need to know about Lambda on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceLambda
Properties7
Required1
TaggingSupported
Primary IDFunctionArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

FunctionName

External Links