Interface FunctionUrlProps
- All Superinterfaces:
FunctionUrlOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FunctionUrlProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:08.844Z")
@Stability(Stable)
public interface FunctionUrlProps
extends software.amazon.jsii.JsiiSerializable, FunctionUrlOptions
Properties for a FunctionUrl.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.lambda.*;
Function function_;
FunctionUrlProps functionUrlProps = FunctionUrlProps.builder()
.function(function_)
// the properties below are optional
.authType(FunctionUrlAuthType.AWS_IAM)
.cors(FunctionUrlCorsOptions.builder()
.allowCredentials(false)
.allowedHeaders(List.of("allowedHeaders"))
.allowedMethods(List.of(HttpMethod.GET))
.allowedOrigins(List.of("allowedOrigins"))
.exposedHeaders(List.of("exposedHeaders"))
.maxAge(Duration.minutes(30))
.build())
.invokeMode(InvokeMode.BUFFERED)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forFunctionUrlPropsstatic final classAn implementation forFunctionUrlProps -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionUrlProps.Builderbuilder()The function to which this url refers.Methods inherited from interface software.amazon.awscdk.services.lambda.FunctionUrlOptions
getAuthType, getCors, getInvokeModeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFunction
The function to which this url refers.It can also be an
Aliasbut not aVersion. -
builder
- Returns:
- a
FunctionUrlProps.BuilderofFunctionUrlProps
-