Interface IFunctionUrlOptions
Options to add a url to a Lambda function.
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public interface IFunctionUrlOptions
Syntax (vb)
Public Interface 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
Properties
AuthType | The type of authentication that your function URL uses. |
Cors | The cross-origin resource sharing (CORS) settings for your function URL. |
Properties
AuthType
The type of authentication that your function URL uses.
virtual Nullable<FunctionUrlAuthType> AuthType { get; }
Property Value
System.Nullable<FunctionUrlAuthType>
Remarks
Default: FunctionUrlAuthType.AWS_IAM
Cors
The cross-origin resource sharing (CORS) settings for your function URL.
virtual IFunctionUrlCorsOptions Cors { get; }
Property Value
Remarks
Default: - No CORS configuration.