AWS::Lambda::WebFunctionRevision

Lambda WebFunctionRevision

Resource Type definition for AWS::Lambda::WebFunctionRevision. An immutable revision of a Lambda web function, containing the function code and configuration.

Properties

5 configurable properties. 3 required. Click a row to see details.

Filter:
PropertyTypeFlags
BuildConfig
object
RequiredCreate-only
FunctionName
string
RequiredCreate-only
ServiceConfig
object
RequiredCreate-only
Description
string
Create-only
KmsKeyArn
string
Create-only

Return Values

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

AttributeTypeDescription
CreatedAtstringThe timestamp when the revision was created.
FunctionArnstringThe Amazon Resource Name (ARN) of the function.
RevisionArnstringThe Amazon Resource Name (ARN) of the revision.
RevisionIdstringThe unique identifier of the revision.
StatestringThe current state of the revision.
StateReasonstringThe reason for the revision's current state.

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::WebFunctionRevision

Resources:
  MyResource:
    Type: AWS::Lambda::WebFunctionRevision
    Properties:
      FunctionName: "my-functionname"
      BuildConfig: {}
      ServiceConfig: {}
      Description: !Ref "AWS::StackName"

Required IAM Permissions

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

create

lambda:CreateWebFunctionRevisionlambda:GetWebFunctionRevisionlambda:PassNetworkConnectoriam:PassRoles3:GetObjects3:GetObjectVersionkms:CreateGrantkms:Decryptkms:DescribeKeykms:GenerateDataKey

read

lambda:GetWebFunctionRevisionkms:Decrypt

delete

lambda:DeleteWebFunctionRevisionlambda:GetWebFunctionRevisionkms:Decrypt

list

lambda:ListWebFunctionRevisions

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
Properties11
Required3
TaggingNot supported
Primary IDRevisionArn

Supported Operations

CreateReadDeleteList

Immutable After Creation

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

FunctionNameDescriptionKmsKeyArnBuildConfigServiceConfig

External Links