Class CfnWebFunctionEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnWebFunctionEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebFunctionEndpointProps>
- Enclosing interface:
CfnWebFunctionEndpointProps
@Stability(Stable)
public static final class CfnWebFunctionEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebFunctionEndpointProps>
A builder for
CfnWebFunctionEndpointProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWebFunctionEndpointProps.getAuthType()build()Builds the configured instance.description(String description) Sets the value ofCfnWebFunctionEndpointProps.getDescription()endpointName(String endpointName) Sets the value ofCfnWebFunctionEndpointProps.getEndpointName()endpointType(String endpointType) Sets the value ofCfnWebFunctionEndpointProps.getEndpointType()functionName(String functionName) Sets the value ofCfnWebFunctionEndpointProps.getFunctionName()Sets the value ofCfnWebFunctionEndpointProps.getRegions()revisionWeights(List<? extends Object> revisionWeights) Sets the value ofCfnWebFunctionEndpointProps.getRevisionWeights()revisionWeights(IResolvable revisionWeights) Sets the value ofCfnWebFunctionEndpointProps.getRevisionWeights()scalingConfig(IResolvable scalingConfig) Sets the value ofCfnWebFunctionEndpointProps.getScalingConfig()scalingConfig(CfnWebFunctionEndpoint.ScalingConfigProperty scalingConfig) Sets the value ofCfnWebFunctionEndpointProps.getScalingConfig()throttleConfig(IResolvable throttleConfig) Sets the value ofCfnWebFunctionEndpointProps.getThrottleConfig()throttleConfig(CfnWebFunctionEndpoint.ThrottleConfigProperty throttleConfig) Sets the value ofCfnWebFunctionEndpointProps.getThrottleConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authType
Sets the value ofCfnWebFunctionEndpointProps.getAuthType()- Parameters:
authType- The authentication type for the endpoint. This parameter is required.- Returns:
this
-
endpointName
Sets the value ofCfnWebFunctionEndpointProps.getEndpointName()- Parameters:
endpointName- The name of the endpoint. This parameter is required.- Returns:
this
-
endpointType
Sets the value ofCfnWebFunctionEndpointProps.getEndpointType()- Parameters:
endpointType- The type of the endpoint. This parameter is required.- Returns:
this
-
functionName
Sets the value ofCfnWebFunctionEndpointProps.getFunctionName()- Parameters:
functionName- The name of the web function this endpoint belongs to. This parameter is required. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.- Returns:
this
-
description
Sets the value ofCfnWebFunctionEndpointProps.getDescription()- Parameters:
description- A description of the endpoint.- Returns:
this
-
regions
Sets the value ofCfnWebFunctionEndpointProps.getRegions()- Parameters:
regions- The list of AWS Regions for the endpoint.- Returns:
this
-
revisionWeights
@Stability(Stable) public CfnWebFunctionEndpointProps.Builder revisionWeights(IResolvable revisionWeights) Sets the value ofCfnWebFunctionEndpointProps.getRevisionWeights()- Parameters:
revisionWeights- List of revision routing entries. 1 or 2 entries. With 1 entry, weight must be 100. With 2 entries, weights must sum to 100.- Returns:
this
-
revisionWeights
@Stability(Stable) public CfnWebFunctionEndpointProps.Builder revisionWeights(List<? extends Object> revisionWeights) Sets the value ofCfnWebFunctionEndpointProps.getRevisionWeights()- Parameters:
revisionWeights- List of revision routing entries. 1 or 2 entries. With 1 entry, weight must be 100. With 2 entries, weights must sum to 100.- Returns:
this
-
scalingConfig
@Stability(Stable) public CfnWebFunctionEndpointProps.Builder scalingConfig(IResolvable scalingConfig) Sets the value ofCfnWebFunctionEndpointProps.getScalingConfig()- Parameters:
scalingConfig- The scaling configuration for the endpoint. Optionally constrains how many concurrent execution environments the endpoint can use, in addition to your account's vCPU quota.- Returns:
this
-
scalingConfig
@Stability(Stable) public CfnWebFunctionEndpointProps.Builder scalingConfig(CfnWebFunctionEndpoint.ScalingConfigProperty scalingConfig) Sets the value ofCfnWebFunctionEndpointProps.getScalingConfig()- Parameters:
scalingConfig- The scaling configuration for the endpoint. Optionally constrains how many concurrent execution environments the endpoint can use, in addition to your account's vCPU quota.- Returns:
this
-
throttleConfig
@Stability(Stable) public CfnWebFunctionEndpointProps.Builder throttleConfig(IResolvable throttleConfig) Sets the value ofCfnWebFunctionEndpointProps.getThrottleConfig()- Parameters:
throttleConfig- The throttling configuration for the endpoint. Optionally constrains the request rate that the endpoint accepts, in addition to your account's rate limit quota.- Returns:
this
-
throttleConfig
@Stability(Stable) public CfnWebFunctionEndpointProps.Builder throttleConfig(CfnWebFunctionEndpoint.ThrottleConfigProperty throttleConfig) Sets the value ofCfnWebFunctionEndpointProps.getThrottleConfig()- Parameters:
throttleConfig- The throttling configuration for the endpoint. Optionally constrains the request rate that the endpoint accepts, in addition to your account's rate limit quota.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebFunctionEndpointProps>- Returns:
- a new instance of
CfnWebFunctionEndpointProps - Throws:
NullPointerException- if any required attribute was not provided
-