CfnAutoScalingConfigurationProps

class aws_cdk.aws_apprunner.CfnAutoScalingConfigurationProps(*, auto_scaling_configuration_name=None, max_concurrency=None, max_size=None, min_size=None, tags=None)

Bases: object

Properties for defining a CfnAutoScalingConfiguration.

Parameters:
  • auto_scaling_configuration_name (Optional[str]) – The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.

  • max_concurrency (Union[int, float, None]) – 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.

  • max_size (Union[int, float, None]) – The maximum number of instances that a service scales up to. At most MaxSize instances actively serve traffic for your service.

  • min_size (Union[int, float, None]) – The minimum number of instances that App Runner provisions for a service. 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.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-autoscalingconfiguration.html

ExampleMetadata:

fixture=_generated

Example:

# 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"
    )]
)

Attributes

auto_scaling_configuration_name

The customer-provided auto scaling configuration name.

It can be used in multiple revisions of a configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-autoscalingconfiguration.html#cfn-apprunner-autoscalingconfiguration-autoscalingconfigurationname

max_concurrency

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-autoscalingconfiguration.html#cfn-apprunner-autoscalingconfiguration-maxconcurrency

max_size

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

At most MaxSize instances actively serve traffic for your service.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-autoscalingconfiguration.html#cfn-apprunner-autoscalingconfiguration-maxsize

min_size

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

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-autoscalingconfiguration.html#cfn-apprunner-autoscalingconfiguration-minsize

tags

A list of metadata items that you can associate with your auto scaling configuration resource.

A tag is a key-value pair.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-autoscalingconfiguration.html#cfn-apprunner-autoscalingconfiguration-tags