Interface IFunctionUrlProps
Properties for a FunctionUrl.
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IFunctionUrlProps : IFunctionUrlOptions
Syntax (vb)
Public Interface IFunctionUrlProps Inherits IFunctionUrlOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.Lambda;
Function function_;
var functionUrlProps = new FunctionUrlProps {
Function = function_,
// the properties below are optional
AuthType = FunctionUrlAuthType.AWS_IAM,
Cors = new FunctionUrlCorsOptions {
AllowCredentials = false,
AllowedHeaders = new [] { "allowedHeaders" },
AllowedMethods = new [] { HttpMethod.GET },
AllowedOrigins = new [] { "allowedOrigins" },
ExposedHeaders = new [] { "exposedHeaders" },
MaxAge = Duration.Minutes(30)
},
InvokeMode = InvokeMode.BUFFERED
};
Synopsis
Properties
| Function | The function to which this url refers. |
Properties
Function
The function to which this url refers.
IFunction Function { get; }
Property Value
Remarks
It can also be an Alias but not a Version.