Interface FunctionUrlProps
- All Superinterfaces:
FunctionUrlOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FunctionUrlProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.762Z")
@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.services.lambda.*; import software.amazon.awscdk.core.*; 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()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forFunctionUrlProps
static final class
An implementation forFunctionUrlProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionUrlProps.Builder
builder()
The function to which this url refers.Methods inherited from interface software.amazon.awscdk.services.lambda.FunctionUrlOptions
getAuthType, getCors
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFunction
The function to which this url refers.It can also be an
Alias
but not aVersion
. -
builder
- Returns:
- a
FunctionUrlProps.Builder
ofFunctionUrlProps
-