Class CfnAutoScalingConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnAutoScalingConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingConfigurationProps>
- Enclosing interface:
CfnAutoScalingConfigurationProps
@Stability(Stable)
public static final class CfnAutoScalingConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutoScalingConfigurationProps>
A builder for
CfnAutoScalingConfigurationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingConfigurationName
(String autoScalingConfigurationName) Sets the value ofCfnAutoScalingConfigurationProps.getAutoScalingConfigurationName()
build()
Builds the configured instance.maxConcurrency
(Number maxConcurrency) Sets the value ofCfnAutoScalingConfigurationProps.getMaxConcurrency()
Sets the value ofCfnAutoScalingConfigurationProps.getMaxSize()
Sets the value ofCfnAutoScalingConfigurationProps.getMinSize()
Sets the value ofCfnAutoScalingConfigurationProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingConfigurationName
@Stability(Stable) public CfnAutoScalingConfigurationProps.Builder autoScalingConfigurationName(String autoScalingConfigurationName) Sets the value ofCfnAutoScalingConfigurationProps.getAutoScalingConfigurationName()
- Parameters:
autoScalingConfigurationName
- The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.- Returns:
this
-
maxConcurrency
@Stability(Stable) public CfnAutoScalingConfigurationProps.Builder maxConcurrency(Number maxConcurrency) Sets the value ofCfnAutoScalingConfigurationProps.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.- Returns:
this
-
maxSize
Sets the value ofCfnAutoScalingConfigurationProps.getMaxSize()
- Parameters:
maxSize
- The maximum number of instances that a service scales up to. At mostMaxSize
instances actively serve traffic for your service.- Returns:
this
-
minSize
Sets the value ofCfnAutoScalingConfigurationProps.getMinSize()
- Parameters:
minSize
- The minimum number of instances that App Runner provisions for a service. The service always has at leastMinSize
provisioned instances. Some of them actively serve traffic. The rest of them (provisioned and inactive instances) are a cost-effective compute capacity reserve and are ready to be quickly activated. You pay for memory usage of all the provisioned instances. You pay for CPU usage of only the active subset.App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
- Returns:
this
-
tags
@Stability(Stable) public CfnAutoScalingConfigurationProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnAutoScalingConfigurationProps.getTags()
- Parameters:
tags
- A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAutoScalingConfigurationProps>
- Returns:
- a new instance of
CfnAutoScalingConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-