Class FunctionUrlOptions.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.FunctionUrlOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FunctionUrlOptions>
- Enclosing interface:
FunctionUrlOptions
@Stability(Stable)
public static final class FunctionUrlOptions.Builder
extends Object
implements software.amazon.jsii.Builder<FunctionUrlOptions>
A builder for
FunctionUrlOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthType
(FunctionUrlAuthType authType) Sets the value ofFunctionUrlOptions.getAuthType()
build()
Builds the configured instance.cors
(FunctionUrlCorsOptions cors) Sets the value ofFunctionUrlOptions.getCors()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authType
Sets the value ofFunctionUrlOptions.getAuthType()
- Parameters:
authType
- The type of authentication that your function URL uses.- Returns:
this
-
cors
Sets the value ofFunctionUrlOptions.getCors()
- Parameters:
cors
- The cross-origin resource sharing (CORS) settings for your function URL.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FunctionUrlOptions>
- Returns:
- a new instance of
FunctionUrlOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-