@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:56.434Z") public interface FunctionUrlProps extends 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
IFunction getFunction()
It can also be an Alias
but not a Version
.
static FunctionUrlProps.Builder builder()
builder
in interface FunctionUrlOptions
FunctionUrlProps.Builder
of FunctionUrlProps