Show / Hide Table of Contents

Interface IAutoScalingConfigurationProps

(experimental) Properties of the App Runner Auto Scaling Configuration.

Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public interface IAutoScalingConfigurationProps
Syntax (vb)
Public Interface IAutoScalingConfigurationProps
Remarks

Stability: Experimental

ExampleMetadata: infused

Examples
var autoScalingConfiguration = new AutoScalingConfiguration(this, "AutoScalingConfiguration", new AutoScalingConfigurationProps {
                 AutoScalingConfigurationName = "MyAutoScalingConfiguration",
                 MaxConcurrency = 150,
                 MaxSize = 20,
                 MinSize = 5
             });

             new Service(this, "DemoService", new ServiceProps {
                 Source = Source.FromEcrPublic(new EcrPublicProps {
                     ImageConfiguration = new ImageConfiguration { Port = 8000 },
                     ImageIdentifier = "public.ecr.aws/aws-containers/hello-app-runner:latest"
                 }),
                 AutoScalingConfiguration = autoScalingConfiguration
             });

Synopsis

Properties

AutoScalingConfigurationName

(experimental) The name for the Auto Scaling Configuration.

MaxConcurrency

(experimental) The maximum number of concurrent requests that an instance processes.

MaxSize

(experimental) The maximum number of instances that a service scales up to.

MinSize

(experimental) The minimum number of instances that App Runner provisions for a service.

Properties

AutoScalingConfigurationName

(experimental) The name for the Auto Scaling Configuration.

string? AutoScalingConfigurationName { get; }
Property Value

string

Remarks

Default: - a name generated by CloudFormation

Stability: Experimental

MaxConcurrency

(experimental) The maximum number of concurrent requests that an instance processes.

double? MaxConcurrency { get; }
Property Value

double?

Remarks

If the number of concurrent requests exceeds this limit, App Runner scales the service up.

Must be between 1 and 200.

Default: 100

Stability: Experimental

MaxSize

(experimental) The maximum number of instances that a service scales up to.

double? MaxSize { get; }
Property Value

double?

Remarks

At most maxSize instances actively serve traffic for your service.

Must be between 1 and 25.

Default: 25

Stability: Experimental

MinSize

(experimental) The minimum number of instances that App Runner provisions for a service.

double? MinSize { get; }
Property Value

double?

Remarks

The service always has at least minSize provisioned instances.

Must be between 1 and 25.

Default: 1

Stability: Experimental

Back to top Generated by DocFX