Class AutoScalingConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.apprunner.alpha.AutoScalingConfiguration
All Implemented Interfaces:
IResource, IAutoScalingConfiguration, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:11.359Z") @Stability(Experimental) public class AutoScalingConfiguration extends Resource implements IAutoScalingConfiguration
(experimental) The App Runner Auto Scaling Configuration.

Example:

 AutoScalingConfiguration autoScalingConfiguration = AutoScalingConfiguration.Builder.create(this, "AutoScalingConfiguration")
         .autoScalingConfigurationName("MyAutoScalingConfiguration")
         .maxConcurrency(150)
         .maxSize(20)
         .minSize(5)
         .build();
 Service.Builder.create(this, "DemoService")
         .source(Source.fromEcrPublic(EcrPublicProps.builder()
                 .imageConfiguration(ImageConfiguration.builder().port(8000).build())
                 .imageIdentifier("public.ecr.aws/aws-containers/hello-app-runner:latest")
                 .build()))
         .autoScalingConfiguration(autoScalingConfiguration)
         .build();
 
  • Constructor Details

    • AutoScalingConfiguration

      protected AutoScalingConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
    • AutoScalingConfiguration

      protected AutoScalingConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • AutoScalingConfiguration

      @Stability(Experimental) public AutoScalingConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable AutoScalingConfigurationProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • AutoScalingConfiguration

      @Stability(Experimental) public AutoScalingConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • fromArn

      @Stability(Experimental) @NotNull public static IAutoScalingConfiguration fromArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String autoScalingConfigurationArn)
      (experimental) Imports an App Runner Auto Scaling Configuration from its ARN.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      autoScalingConfigurationArn - This parameter is required.
    • fromAutoScalingConfigurationAttributes

      @Stability(Experimental) @NotNull public static IAutoScalingConfiguration fromAutoScalingConfigurationAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AutoScalingConfigurationAttributes attrs)
      (experimental) Imports an App Runner Auto Scaling Configuration from attributes.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      attrs - This parameter is required.
    • getAutoScalingConfigurationArn

      @Stability(Experimental) @NotNull public String getAutoScalingConfigurationArn()
      (experimental) The ARN of the Auto Scaling Configuration.
      Specified by:
      getAutoScalingConfigurationArn in interface IAutoScalingConfiguration
    • getAutoScalingConfigurationName

      @Stability(Experimental) @NotNull public String getAutoScalingConfigurationName()
      (experimental) The name of the Auto Scaling Configuration.
      Specified by:
      getAutoScalingConfigurationName in interface IAutoScalingConfiguration
    • getAutoScalingConfigurationRevision

      @Stability(Experimental) @NotNull public Number getAutoScalingConfigurationRevision()
      (experimental) The revision of the Auto Scaling Configuration.
      Specified by:
      getAutoScalingConfigurationRevision in interface IAutoScalingConfiguration