AWS Fundamentals Logo
AWS Fundamentals
AWS::Lambda::Url

Lambda Url

Resource Type definition for AWS::Lambda::Url

Properties

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

Filter:
PropertyTypeFlags
AuthType
string
Required
TargetFunctionArn
string
RequiredCreate-only
Cors
Cors
InvokeMode
string
Qualifier
string
Create-only

Return Values

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

AttributeTypeDescription
FunctionArnstringThe full Amazon Resource Name (ARN) of the function associated with the Function URL.
FunctionUrlstringThe generated url for this resource.

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

Resources:
  MyResource:
    Type: AWS::Lambda::Url
    Properties:
      TargetFunctionArn: "arn:aws:service:region:account:resource"
      AuthType: "AWS_IAM"

Required IAM Permissions

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

create

lambda:CreateFunctionUrlConfig

read

lambda:GetFunctionUrlConfig

update

lambda:UpdateFunctionUrlConfig

list

lambda:ListFunctionUrlConfigs

delete

lambda:DeleteFunctionUrlConfig

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
Required2
TaggingNot supported
Primary IDFunctionArn

Supported Operations

CreateReadUpdateListDelete

Immutable After Creation

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

TargetFunctionArnQualifier

External Links