Class CfnAutoScalingConfiguration
Specify an AWS App Runner Automatic Scaling configuration by using the AWS::AppRunner::AutoScalingConfiguration
resource in an AWS CloudFormation template.
Inherited Members
Namespace: Amazon.CDK.AWS.AppRunner
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAutoScalingConfiguration : CfnResource, IInspectable, ITaggableV2
Syntax (vb)
Public Class CfnAutoScalingConfiguration
Inherits CfnResource
Implements IInspectable, ITaggableV2
Remarks
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.
CloudformationResource: AWS::AppRunner::AutoScalingConfiguration
ExampleMetadata: fixture=_generated
Examples
// 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 cfnAutoScalingConfiguration = new CfnAutoScalingConfiguration(this, "MyCfnAutoScalingConfiguration", new CfnAutoScalingConfigurationProps {
AutoScalingConfigurationName = "autoScalingConfigurationName",
MaxConcurrency = 123,
MaxSize = 123,
MinSize = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnAutoScalingConfiguration(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnAutoScalingConfiguration(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnAutoScalingConfiguration(Construct, String, ICfnAutoScalingConfigurationProps) |
Properties
AttrAutoScalingConfigurationArn | The Amazon Resource Name (ARN) of this auto scaling configuration. |
AttrAutoScalingConfigurationRevision | The revision of this auto scaling configuration. |
AttrLatest | It's set to true for the configuration with the highest |
AutoScalingConfigurationName | The customer-provided auto scaling configuration name. |
CdkTagManager | Tag Manager which manages the tags for this resource. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
MaxConcurrency | The maximum number of concurrent requests that an instance processes. |
MaxSize | The maximum number of instances that a service scales up to. |
MinSize | The minimum number of instances that App Runner provisions for a service. |
Tags | A list of metadata items that you can associate with your auto scaling configuration resource. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnAutoScalingConfiguration(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnAutoScalingConfiguration(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnAutoScalingConfiguration(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnAutoScalingConfiguration(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnAutoScalingConfiguration(Construct, String, ICfnAutoScalingConfigurationProps)
public CfnAutoScalingConfiguration(Construct scope, string id, ICfnAutoScalingConfigurationProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnAutoScalingConfigurationProps
Resource properties.
Properties
AttrAutoScalingConfigurationArn
The Amazon Resource Name (ARN) of this auto scaling configuration.
public virtual string AttrAutoScalingConfigurationArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: AutoScalingConfigurationArn
AttrAutoScalingConfigurationRevision
The revision of this auto scaling configuration.
public virtual double AttrAutoScalingConfigurationRevision { get; }
Property Value
System.Double
Remarks
It's unique among all the active configurations that share the same AutoScalingConfigurationName
.
CloudformationAttribute: AutoScalingConfigurationRevision
AttrLatest
It's set to true for the configuration with the highest Revision
among all configurations that share the same AutoScalingConfigurationName
.
public virtual IResolvable AttrLatest { get; }
Property Value
Remarks
It's set to false otherwise. App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
CloudformationAttribute: Latest
AutoScalingConfigurationName
The customer-provided auto scaling configuration name.
public virtual string AutoScalingConfigurationName { get; set; }
Property Value
System.String
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
MaxConcurrency
The maximum number of concurrent requests that an instance processes.
public virtual Nullable<double> MaxConcurrency { get; set; }
Property Value
System.Nullable<System.Double>
MaxSize
The maximum number of instances that a service scales up to.
public virtual Nullable<double> MaxSize { get; set; }
Property Value
System.Nullable<System.Double>
MinSize
The minimum number of instances that App Runner provisions for a service.
public virtual Nullable<double> MinSize { get; set; }
Property Value
System.Nullable<System.Double>
Tags
A list of metadata items that you can associate with your auto scaling configuration resource.
public virtual ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>