Class CfnAutoScalingConfigurationPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
AWS::AppRunner::AutoScalingConfiguration resource in an AWS CloudFormation template.
The AWS::AppRunner::AutoScalingConfiguration resource is an AWS App Runner resource type that specifies an App Runner automatic scaling configuration.
App Runner requires this resource to set non-default auto scaling settings for instances used to process the web requests. You can share an auto scaling configuration across multiple services.
Create multiple revisions of a configuration by calling this action multiple times using the same AutoScalingConfigurationName . The call returns incremental AutoScalingConfigurationRevision values. When you create a service and configure an auto scaling configuration resource, the service uses the latest active revision of the auto scaling configuration by default. You can optionally configure the service to use a specific revision.
Configure a higher MinSize to increase the spread of your App Runner service over more Availability Zones in the AWS Region . The tradeoff is a higher minimal cost.
Configure a lower MaxSize to control your cost. The tradeoff is lower responsiveness during peak demand.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.apprunner.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnAutoScalingConfigurationPropsMixin cfnAutoScalingConfigurationPropsMixin = CfnAutoScalingConfigurationPropsMixin.Builder.create(CfnAutoScalingConfigurationMixinProps.builder()
.autoScalingConfigurationName("autoScalingConfigurationName")
.maxConcurrency(123)
.maxSize(123)
.minSize(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnAutoScalingConfigurationPropsMixin.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::AppRunner::AutoScalingConfiguration.CfnAutoScalingConfigurationPropsMixin(CfnAutoScalingConfigurationMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::AppRunner::AutoScalingConfiguration.protectedCfnAutoScalingConfigurationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAutoScalingConfigurationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnAutoScalingConfigurationMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnAutoScalingConfigurationPropsMixin
protected CfnAutoScalingConfigurationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAutoScalingConfigurationPropsMixin
protected CfnAutoScalingConfigurationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAutoScalingConfigurationPropsMixin
@Stability(Stable) public CfnAutoScalingConfigurationPropsMixin(@NotNull CfnAutoScalingConfigurationMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::AppRunner::AutoScalingConfiguration.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnAutoScalingConfigurationPropsMixin
@Stability(Stable) public CfnAutoScalingConfigurationPropsMixin(@NotNull CfnAutoScalingConfigurationMixinProps props) Create a mixin to apply properties toAWS::AppRunner::AutoScalingConfiguration.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-