Class CfnAutoScalingConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingConfiguration>
- Enclosing class:
CfnAutoScalingConfiguration
CfnAutoScalingConfiguration
.-
Method Summary
Modifier and TypeMethodDescriptionautoScalingConfigurationName
(String autoScalingConfigurationName) The customer-provided auto scaling configuration name.build()
maxConcurrency
(Number maxConcurrency) The maximum number of concurrent requests that an instance processes.The maximum number of instances that a service scales up to.The minimum number of instances that App Runner provisions for a service.A list of metadata items that you can associate with your auto scaling configuration resource.
-
Method Details
-
create
@Stability(Stable) public static CfnAutoScalingConfiguration.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnAutoScalingConfiguration.Builder
.
-
autoScalingConfigurationName
@Stability(Stable) public CfnAutoScalingConfiguration.Builder autoScalingConfigurationName(String autoScalingConfigurationName) The customer-provided auto scaling configuration name.It can be used in multiple revisions of a configuration.
- Parameters:
autoScalingConfigurationName
- The customer-provided auto scaling configuration name. This parameter is required.- Returns:
this
- See Also:
-
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.
- Parameters:
maxConcurrency
- The maximum number of concurrent requests that an instance processes. This parameter is required.- Returns:
this
- See Also:
-
maxSize
The maximum number of instances that a service scales up to.At most
MaxSize
instances actively serve traffic for your service.- Parameters:
maxSize
- The maximum number of instances that a service scales up to. This parameter is required.- Returns:
this
- See Also:
-
minSize
The minimum number of instances that App Runner provisions for a service.The service always has at least
MinSize
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.
- Parameters:
minSize
- The minimum number of instances that App Runner provisions for a service. This parameter is required.- Returns:
this
- See Also:
-
tags
A list of metadata items that you can associate with your auto scaling configuration resource.A tag is a key-value pair.
- Parameters:
tags
- A list of metadata items that you can associate with your auto scaling configuration resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAutoScalingConfiguration>
- Returns:
- a newly built instance of
CfnAutoScalingConfiguration
.
-