interface FunctionUrlOptions
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.Lambda.FunctionUrlOptions | 
|  Java | software.amazon.awscdk.services.lambda.FunctionUrlOptions | 
|  Python | aws_cdk.aws_lambda.FunctionUrlOptions | 
|  TypeScript (source) | @aws-cdk/aws-lambda»FunctionUrlOptions | 
Options to add a url to a Lambda function.
Example
// Can be a Function or an Alias
declare const fn: lambda.Function;
const fnUrl = fn.addFunctionUrl({
  authType: lambda.FunctionUrlAuthType.NONE,
});
new CfnOutput(this, 'TheUrl', {
  value: fnUrl.url,
});
Properties
| Name | Type | Description | 
|---|---|---|
| auth | Function | The type of authentication that your function URL uses. | 
| cors? | Function | The cross-origin resource sharing (CORS) settings for your function URL. | 
authType?
Type:
Function
(optional, default: FunctionUrlAuthType.AWS_IAM)
The type of authentication that your function URL uses.
cors?
Type:
Function
(optional, default: No CORS configuration.)
The cross-origin resource sharing (CORS) settings for your function URL.
