@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-10T17:05:56.562Z") @Stability(value=Stable) public interface FunctionUrlProps extends software.amazon.jsii.JsiiSerializable, FunctionUrlOptions
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
FunctionUrlProps.Builder
A builder for
FunctionUrlProps |
static class |
FunctionUrlProps.Jsii$Proxy
An implementation for
FunctionUrlProps |
| Modifier and Type | Method and Description |
|---|---|
static FunctionUrlProps.Builder |
builder() |
IFunction |
getFunction()
The function to which this url refers.
|
getAuthType, getCors@Stability(value=Stable) @NotNull IFunction getFunction()
It can also be an Alias but not a Version.
@Stability(value=Stable) static FunctionUrlProps.Builder builder()
builder in interface FunctionUrlOptionsFunctionUrlProps.Builder of FunctionUrlPropsCopyright © 2023. All rights reserved.