Skip to content
v2.276.0

CfnAutoScalingConfigurationProps Struct ​

Properties for defining a CfnAutoScalingConfiguration.

Example ​

ts
// 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',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apprunner as apprunner

cfn_auto_scaling_configuration_props = apprunner.CfnAutoScalingConfigurationProps(
    auto_scaling_configuration_name="autoScalingConfigurationName",
    max_concurrency=123,
    max_size=123,
    min_size=123,
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apprunner.*;

CfnAutoScalingConfigurationProps cfnAutoScalingConfigurationProps = CfnAutoScalingConfigurationProps.builder()
        .autoScalingConfigurationName("autoScalingConfigurationName")
        .maxConcurrency(123)
        .maxSize(123)
        .minSize(123)
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner;

var cfnAutoScalingConfigurationProps = new CfnAutoScalingConfigurationProps {
    AutoScalingConfigurationName = "autoScalingConfigurationName",
    MaxConcurrency = 123,
    MaxSize = 123,
    MinSize = 123,
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnAutoScalingConfigurationProps := &CfnAutoScalingConfigurationProps{
	AutoScalingConfigurationName: jsii.String("autoScalingConfigurationName"),
	MaxConcurrency: jsii.Number(123),
	MaxSize: jsii.Number(123),
	MinSize: jsii.Number(123),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

autoScalingConfigurationNameoptionalstringauto_scaling_configuration_nameoptionalstrautoScalingConfigurationNameoptionalStringAutoScalingConfigurationNameoptionalstringAutoScalingConfigurationNameoptional*string#
The customer-provided auto scaling configuration name.

It can be used in multiple revisions of a configuration.

maxConcurrencyoptionalnumbermax_concurrencyoptionalint | floatmaxConcurrencyoptionalNumberMaxConcurrencyoptionaldoubleMaxConcurrencyoptional*float64#
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.

maxSizeoptionalnumbermax_sizeoptionalint | floatmaxSizeoptionalNumberMaxSizeoptionaldoubleMaxSizeoptional*float64#
The maximum number of instances that a service scales up to.

At most MaxSize instances actively serve traffic for your service.

minSizeoptionalnumbermin_sizeoptionalint | floatminSizeoptionalNumberMinSizeoptionaldoubleMinSizeoptional*float64#
The minimum number of instances that App Runner provisions for a service.
notes

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.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
A list of metadata items that you can associate with your auto scaling configuration resource.

A tag is a key-value pair.