Class AutoScalingConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.AutoScalingConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AutoScalingConfigurationProps>
- Enclosing interface:
AutoScalingConfigurationProps
@Stability(Experimental)
public static final class AutoScalingConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<AutoScalingConfigurationProps>
A builder for
AutoScalingConfigurationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingConfigurationName
(String autoScalingConfigurationName) Sets the value ofAutoScalingConfigurationProps.getAutoScalingConfigurationName()
build()
Builds the configured instance.maxConcurrency
(Number maxConcurrency) Sets the value ofAutoScalingConfigurationProps.getMaxConcurrency()
Sets the value ofAutoScalingConfigurationProps.getMaxSize()
Sets the value ofAutoScalingConfigurationProps.getMinSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingConfigurationName
@Stability(Experimental) public AutoScalingConfigurationProps.Builder autoScalingConfigurationName(String autoScalingConfigurationName) Sets the value ofAutoScalingConfigurationProps.getAutoScalingConfigurationName()
- Parameters:
autoScalingConfigurationName
- The name for the Auto Scaling Configuration.- Returns:
this
-
maxConcurrency
@Stability(Experimental) public AutoScalingConfigurationProps.Builder maxConcurrency(Number maxConcurrency) Sets the value ofAutoScalingConfigurationProps.getMaxConcurrency()
- Parameters:
maxConcurrency
- The maximum number of concurrent requests that an instance processes. If the number of concurrent requests exceeds this limit, App Runner scales the service up.Must be between 1 and 200.
- Returns:
this
-
maxSize
Sets the value ofAutoScalingConfigurationProps.getMaxSize()
- Parameters:
maxSize
- The maximum number of instances that a service scales up to. At most maxSize instances actively serve traffic for your service.Must be between 1 and 25.
- Returns:
this
-
minSize
Sets the value ofAutoScalingConfigurationProps.getMinSize()
- Parameters:
minSize
- The minimum number of instances that App Runner provisions for a service. The service always has at least minSize provisioned instances.Must be between 1 and 25.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AutoScalingConfigurationProps>
- Returns:
- a new instance of
AutoScalingConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-