aws-cdk-lib.aws_apprunner.CfnAutoScalingConfigurationProps

interface CfnAutoScalingConfigurationProps

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.CfnAutoScalingConfigurationProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapprunner#CfnAutoScalingConfigurationProps
Javasoftware.amazon.awscdk.services.apprunner.CfnAutoScalingConfigurationProps
Pythonaws_cdk.aws_apprunner.CfnAutoScalingConfigurationProps
TypeScript 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

NameTypeDescription
autoScalingConfigurationName?stringThe customer-provided auto scaling configuration name.
maxConcurrency?numberThe maximum number of concurrent requests that an instance processes.
maxSize?numberThe maximum number of instances that a service scales up to.
minSize?numberThe minimum number of instances that App Runner provisions for a service.
tags?CfnTag[]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: CfnTag[] (optional)

A list of metadata items that you can associate with your auto scaling configuration resource.

A tag is a key-value pair.