interface CfnAutoScalingConfigurationProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppRunner.CfnAutoScalingConfigurationProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapprunner#CfnAutoScalingConfigurationProps |
![]() | software.amazon.awscdk.services.apprunner.CfnAutoScalingConfigurationProps |
![]() | aws_cdk.aws_apprunner.CfnAutoScalingConfigurationProps |
![]() | aws-cdk-lib » aws_apprunner » CfnAutoScalingConfigurationProps |
Properties for defining a CfnAutoScalingConfiguration
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apprunner as apprunner } from 'aws-cdk-lib';
const cfnAutoScalingConfigurationProps: apprunner.CfnAutoScalingConfigurationProps = {
autoScalingConfigurationName: 'autoScalingConfigurationName',
maxConcurrency: 123,
maxSize: 123,
minSize: 123,
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
auto | string | The customer-provided auto scaling configuration name. |
max | number | The maximum number of concurrent requests that an instance processes. |
max | number | The maximum number of instances that a service scales up to. |
min | number | The minimum number of instances that App Runner provisions for a service. |
tags? | Cfn [] | A list of metadata items that you can associate with your auto scaling configuration resource. |
autoScalingConfigurationName?
Type:
string
(optional)
The customer-provided auto scaling configuration name.
It can be used in multiple revisions of a configuration.
maxConcurrency?
Type:
number
(optional)
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.
maxSize?
Type:
number
(optional)
The maximum number of instances that a service scales up to.
At most MaxSize
instances actively serve traffic for your service.
minSize?
Type:
number
(optional)
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.
tags?
Type:
Cfn
[]
(optional)
A list of metadata items that you can associate with your auto scaling configuration resource.
A tag is a key-value pair.