Class FunctionUrlProps
Properties for a FunctionUrl.
Inheritance
System.Object
FunctionUrlProps
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class FunctionUrlProps : Object, IFunctionUrlProps, IFunctionUrlOptions
Syntax (vb)
Public Class FunctionUrlProps
Inherits Object
Implements IFunctionUrlProps, 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
Constructors
FunctionUrlProps() |
Properties
AuthType | The type of authentication that your function URL uses. |
Cors | The cross-origin resource sharing (CORS) settings for your function URL. |
Function | The function to which this url refers. |
InvokeMode | The type of invocation mode that your Lambda function uses. |
Constructors
FunctionUrlProps()
public FunctionUrlProps()
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.
Function
The function to which this url refers.
public IFunction Function { get; set; }
Property Value
Remarks
It can also be an Alias
but not a Version
.
InvokeMode
The type of invocation mode that your Lambda function uses.
public Nullable<InvokeMode> InvokeMode { get; set; }
Property Value
System.Nullable<InvokeMode>
Remarks
Default: InvokeMode.BUFFERED