Class FunctionUrlProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.FunctionUrlProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FunctionUrlProps>
- Enclosing interface:
- FunctionUrlProps
@Stability(Stable)
public static final class FunctionUrlProps.Builder
extends Object
implements software.amazon.jsii.Builder<FunctionUrlProps>
A builder for
FunctionUrlProps
-
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()
Sets the value ofFunctionUrlProps.getFunction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
function
Sets the value ofFunctionUrlProps.getFunction()
- Parameters:
function
- The function to which this url refers. This parameter is required. It can also be anAlias
but not aVersion
.- Returns:
this
-
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<FunctionUrlProps>
- Returns:
- a new instance of
FunctionUrlProps
- Throws:
NullPointerException
- if any required attribute was not provided
-