aws-cdk-lib.aws_lambda.FunctionUrlOptions

interface FunctionUrlOptions

LanguageType name
.NETAmazon.CDK.AWS.Lambda.FunctionUrlOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslambda#FunctionUrlOptions
Javasoftware.amazon.awscdk.services.lambda.FunctionUrlOptions
Pythonaws_cdk.aws_lambda.FunctionUrlOptions
TypeScript (source)aws-cdk-lib » aws_lambda » FunctionUrlOptions

Options to add a url to a Lambda function.

Example

declare const fn: lambda.Function;

fn.addFunctionUrl({
  authType: lambda.FunctionUrlAuthType.NONE,
  invokeMode: lambda.InvokeMode.RESPONSE_STREAM,
});

Properties

NameTypeDescription
authType?FunctionUrlAuthTypeThe type of authentication that your function URL uses.
cors?FunctionUrlCorsOptionsThe cross-origin resource sharing (CORS) settings for your function URL.
invokeMode?InvokeModeThe type of invocation mode that your Lambda function uses.

authType?

Type: FunctionUrlAuthType (optional, default: FunctionUrlAuthType.AWS_IAM)

The type of authentication that your function URL uses.


cors?

Type: FunctionUrlCorsOptions (optional, default: No CORS configuration.)

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


invokeMode?

Type: InvokeMode (optional, default: InvokeMode.BUFFERED)

The type of invocation mode that your Lambda function uses.