Interface IFunctionUrlProps
Properties for a FunctionUrl.
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.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.AWS.Lambda;
using Amazon.CDK;
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)
}
};
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
.