Class FunctionUrlOptions
Options to add a url to a Lambda function.
Inheritance
System.Object
FunctionUrlOptions
Implements
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public class FunctionUrlOptions : Object, IFunctionUrlOptions
Syntax (vb)
Public Class FunctionUrlOptions
Inherits Object
Implements IFunctionUrlOptions
Remarks
ExampleMetadata: infused
Examples
// Can be a Function or an Alias
Function fn;
var fnUrl = fn.AddFunctionUrl(new FunctionUrlOptions {
AuthType = FunctionUrlAuthType.NONE
});
new CfnOutput(this, "TheUrl", new CfnOutputProps {
Value = fnUrl.Url
});
Synopsis
Constructors
FunctionUrlOptions() |
Properties
AuthType | The type of authentication that your function URL uses. |
Cors | The cross-origin resource sharing (CORS) settings for your function URL. |
Constructors
FunctionUrlOptions()
public FunctionUrlOptions()
Properties
AuthType
The type of authentication that your function URL uses.
public Nullable<FunctionUrlAuthType> AuthType { get; set; }
Property Value
System.Nullable<FunctionUrlAuthType>
Remarks
Default: FunctionUrlAuthType.AWS_IAM
Cors
The cross-origin resource sharing (CORS) settings for your function URL.
public IFunctionUrlCorsOptions Cors { get; set; }
Property Value
Remarks
Default: - No CORS configuration.