Class CfnAutoScalingConfigurationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apprunner.CfnAutoScalingConfigurationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingConfigurationMixinProps>
- Enclosing interface:
CfnAutoScalingConfigurationMixinProps
@Stability(Stable)
public static final class CfnAutoScalingConfigurationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutoScalingConfigurationMixinProps>
A builder for
CfnAutoScalingConfigurationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScalingConfigurationName(String autoScalingConfigurationName) Sets the value ofCfnAutoScalingConfigurationMixinProps.getAutoScalingConfigurationName()build()Builds the configured instance.maxConcurrency(Number maxConcurrency) Sets the value ofCfnAutoScalingConfigurationMixinProps.getMaxConcurrency()Sets the value ofCfnAutoScalingConfigurationMixinProps.getMaxSize()Sets the value ofCfnAutoScalingConfigurationMixinProps.getMinSize()Sets the value ofCfnAutoScalingConfigurationMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingConfigurationName
@Stability(Stable) public CfnAutoScalingConfigurationMixinProps.Builder autoScalingConfigurationName(String autoScalingConfigurationName) Sets the value ofCfnAutoScalingConfigurationMixinProps.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 CfnAutoScalingConfigurationMixinProps.Builder maxConcurrency(Number maxConcurrency) Sets the value ofCfnAutoScalingConfigurationMixinProps.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 ofCfnAutoScalingConfigurationMixinProps.getMaxSize()- Parameters:
maxSize- The maximum number of instances that a service scales up to. At mostMaxSizeinstances actively serve traffic for your service.- Returns:
this
-
minSize
Sets the value ofCfnAutoScalingConfigurationMixinProps.getMinSize()- Parameters:
minSize- The minimum number of instances that App Runner provisions for a service. The service always has at leastMinSizeprovisioned 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 CfnAutoScalingConfigurationMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnAutoScalingConfigurationMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnAutoScalingConfigurationMixinProps>- Returns:
- a new instance of
CfnAutoScalingConfigurationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-