AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

FunctionUrl

Defines a Lambda function url.

Import

import { FunctionUrl } from 'aws-cdk-lib/aws-lambda';

Or use the module namespace:

import * as lambda from 'aws-cdk-lib/aws-lambda';
// lambda.FunctionUrl

Properties

Configuration passed to the constructor as FunctionUrlProps.

functionRequired
IFunction

The function to which this url refers. It can also be an `Alias` but not a `Version`.

3 properties inherited from FunctionUrlOptions
authTypeOptionalinherited from FunctionUrlOptions
FunctionUrlAuthType

The type of authentication that your function URL uses.

Default: FunctionUrlAuthType.AWS_IAM

corsOptionalinherited from FunctionUrlOptions
FunctionUrlCorsOptions

The cross-origin resource sharing (CORS) settings for your function URL.

Default: - No CORS configuration.

invokeModeOptionalinherited from FunctionUrlOptions
InvokeMode

The type of invocation mode that your Lambda function uses.

Default: InvokeMode.BUFFERED

Get the AWS Lambda Cheat Sheet

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

Download Free Infographic