Class CfnUrlMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnUrlMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUrlMixinProps>
- Enclosing interface:
CfnUrlMixinProps
@Stability(Stable)
public static final class CfnUrlMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUrlMixinProps>
A builder for
CfnUrlMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnUrlMixinProps.getAuthType()build()Builds the configured instance.Sets the value ofCfnUrlMixinProps.getCors()cors(IResolvable cors) Sets the value ofCfnUrlMixinProps.getCors()invokeMode(String invokeMode) Sets the value ofCfnUrlMixinProps.getInvokeMode()Sets the value ofCfnUrlMixinProps.getQualifier()targetFunctionArn(String targetFunctionArn) Sets the value ofCfnUrlMixinProps.getTargetFunctionArn()targetFunctionArn(IFunctionRef targetFunctionArn) Sets the value ofCfnUrlMixinProps.getTargetFunctionArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authType
Sets the value ofCfnUrlMixinProps.getAuthType()- Parameters:
authType- The type of authentication that your function URL uses. Set toAWS_IAMif you want to restrict access to authenticated users only. Set toNONEif you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs .- Returns:
this
-
cors
Sets the value ofCfnUrlMixinProps.getCors()- Parameters:
cors- The Cross-Origin Resource Sharing (CORS) settings for your function URL.- Returns:
this
-
cors
Sets the value ofCfnUrlMixinProps.getCors()- Parameters:
cors- The Cross-Origin Resource Sharing (CORS) settings for your function URL.- Returns:
this
-
invokeMode
Sets the value ofCfnUrlMixinProps.getInvokeMode()- Parameters:
invokeMode- Use one of the following options:.BUFFERED– This is the default option. Lambda invokes your function using theInvokeAPI operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.RESPONSE_STREAM– Your function streams payload results as they become available. Lambda invokes your function using theInvokeWithResponseStreamAPI operation. The maximum response payload size is 200 MB.
- Returns:
this
-
qualifier
Sets the value ofCfnUrlMixinProps.getQualifier()- Parameters:
qualifier- The alias name.- Returns:
this
-
targetFunctionArn
Sets the value ofCfnUrlMixinProps.getTargetFunctionArn()- Parameters:
targetFunctionArn- The name of the Lambda function. Name formats - Function name -my-function.- Function ARN -
lambda: : :function:my-function. - Partial ARN -
:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- Function ARN -
- Returns:
this
-
targetFunctionArn
@Stability(Stable) public CfnUrlMixinProps.Builder targetFunctionArn(IFunctionRef targetFunctionArn) Sets the value ofCfnUrlMixinProps.getTargetFunctionArn()- Parameters:
targetFunctionArn- The name of the Lambda function. Name formats - Function name -my-function.- Function ARN -
lambda: : :function:my-function. - Partial ARN -
:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- Function ARN -
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUrlMixinProps>- Returns:
- a new instance of
CfnUrlMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-