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
Constructors -
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()invokeMode(InvokeMode invokeMode) Sets the value ofFunctionUrlOptions.getInvokeMode()
-
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 anAliasbut 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
-
invokeMode
Sets the value ofFunctionUrlOptions.getInvokeMode()- Parameters:
invokeMode- The type of invocation mode that your Lambda function uses.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FunctionUrlProps>- Returns:
- a new instance of
FunctionUrlProps - Throws:
NullPointerException- if any required attribute was not provided
-