Interface FunctionUrlOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
FunctionUrlProps
- All Known Implementing Classes:
FunctionUrlOptions.Jsii$Proxy,FunctionUrlProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:08.843Z")
@Stability(Stable)
public interface FunctionUrlOptions
extends software.amazon.jsii.JsiiSerializable
Options to add a url to a Lambda function.
Example:
import software.amazon.awscdk.services.lambda.*;
Function fn;
FunctionUrl fnUrl = fn.addFunctionUrl(FunctionUrlOptions.builder()
.authType(FunctionUrlAuthType.AWS_IAM)
.build());
Distribution.Builder.create(this, "MyDistribution")
.defaultBehavior(BehaviorOptions.builder()
.origin(FunctionUrlOrigin.withOriginAccessControl(fnUrl))
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forFunctionUrlOptionsstatic final classAn implementation forFunctionUrlOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionUrlOptions.Builderbuilder()default FunctionUrlAuthTypeThe type of authentication that your function URL uses.default FunctionUrlCorsOptionsgetCors()The cross-origin resource sharing (CORS) settings for your function URL.default InvokeModeThe type of invocation mode that your Lambda function uses.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthType
The type of authentication that your function URL uses.Default: FunctionUrlAuthType.AWS_IAM
-
getCors
The cross-origin resource sharing (CORS) settings for your function URL.Default: - No CORS configuration.
-
getInvokeMode
The type of invocation mode that your Lambda function uses.Default: InvokeMode.BUFFERED
-
builder
- Returns:
- a
FunctionUrlOptions.BuilderofFunctionUrlOptions
-