AWS Native is in preview. AWS Classic is fully supported.
aws-native.apprunner.AutoScalingConfiguration
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Describes an AWS App Runner automatic configuration resource that enables automatic scaling of instances used to process web requests. You can share an auto scaling configuration across multiple services.
Create AutoScalingConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AutoScalingConfiguration(name: string, args?: AutoScalingConfigurationArgs, opts?: CustomResourceOptions);
@overload
def AutoScalingConfiguration(resource_name: str,
args: Optional[AutoScalingConfigurationArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AutoScalingConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_scaling_configuration_name: Optional[str] = None,
max_concurrency: Optional[int] = None,
max_size: Optional[int] = None,
min_size: Optional[int] = None,
tags: Optional[Sequence[_root_inputs.CreateOnlyTagArgs]] = None)
func NewAutoScalingConfiguration(ctx *Context, name string, args *AutoScalingConfigurationArgs, opts ...ResourceOption) (*AutoScalingConfiguration, error)
public AutoScalingConfiguration(string name, AutoScalingConfigurationArgs? args = null, CustomResourceOptions? opts = null)
public AutoScalingConfiguration(String name, AutoScalingConfigurationArgs args)
public AutoScalingConfiguration(String name, AutoScalingConfigurationArgs args, CustomResourceOptions options)
type: aws-native:apprunner:AutoScalingConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AutoScalingConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AutoScalingConfigurationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AutoScalingConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutoScalingConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AutoScalingConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AutoScalingConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AutoScalingConfiguration resource accepts the following input properties:
- Auto
Scaling stringConfiguration Name - The customer-provided auto scaling configuration name. When you use it for the first time in an AWS Region, App Runner creates revision number 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration. The auto scaling configuration name can be used in multiple revisions of a configuration.
- Max
Concurrency int - 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 to use more instances to process the requests.
- Max
Size int - The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
- Min
Size int - 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.
- List<Pulumi.
Aws Native. Inputs. Create Only Tag> - A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
- Auto
Scaling stringConfiguration Name - The customer-provided auto scaling configuration name. When you use it for the first time in an AWS Region, App Runner creates revision number 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration. The auto scaling configuration name can be used in multiple revisions of a configuration.
- Max
Concurrency int - 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 to use more instances to process the requests.
- Max
Size int - The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
- Min
Size int - 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.
- Create
Only Tag Args - A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
- auto
Scaling StringConfiguration Name - The customer-provided auto scaling configuration name. When you use it for the first time in an AWS Region, App Runner creates revision number 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration. The auto scaling configuration name can be used in multiple revisions of a configuration.
- max
Concurrency Integer - 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 to use more instances to process the requests.
- max
Size Integer - The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
- min
Size Integer - 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.
- List<Create
Only Tag> - A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
- auto
Scaling stringConfiguration Name - The customer-provided auto scaling configuration name. When you use it for the first time in an AWS Region, App Runner creates revision number 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration. The auto scaling configuration name can be used in multiple revisions of a configuration.
- max
Concurrency number - 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 to use more instances to process the requests.
- max
Size number - The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
- min
Size number - 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.
- Create
Only Tag[] - A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
- auto_
scaling_ strconfiguration_ name - The customer-provided auto scaling configuration name. When you use it for the first time in an AWS Region, App Runner creates revision number 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration. The auto scaling configuration name can be used in multiple revisions of a configuration.
- max_
concurrency int - 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 to use more instances to process the requests.
- max_
size int - The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
- min_
size int - 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.
- Sequence[Create
Only Tag Args] - A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
- auto
Scaling StringConfiguration Name - The customer-provided auto scaling configuration name. When you use it for the first time in an AWS Region, App Runner creates revision number 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration. The auto scaling configuration name can be used in multiple revisions of a configuration.
- max
Concurrency Number - 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 to use more instances to process the requests.
- max
Size Number - The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
- min
Size Number - 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.
- List<Property Map>
- A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
Outputs
All input properties are implicitly available as output properties. Additionally, the AutoScalingConfiguration resource produces the following output properties:
- Auto
Scaling stringConfiguration Arn - The Amazon Resource Name (ARN) of this auto scaling configuration.
- Auto
Scaling intConfiguration Revision - The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest bool
- It's set to true for the configuration with the highest Revision among all configurations that share the same AutoScalingConfigurationName. 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.
- Auto
Scaling stringConfiguration Arn - The Amazon Resource Name (ARN) of this auto scaling configuration.
- Auto
Scaling intConfiguration Revision - The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest bool
- It's set to true for the configuration with the highest Revision among all configurations that share the same AutoScalingConfigurationName. 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.
- auto
Scaling StringConfiguration Arn - The Amazon Resource Name (ARN) of this auto scaling configuration.
- auto
Scaling IntegerConfiguration Revision - The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
- id String
- The provider-assigned unique ID for this managed resource.
- latest Boolean
- It's set to true for the configuration with the highest Revision among all configurations that share the same AutoScalingConfigurationName. 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.
- auto
Scaling stringConfiguration Arn - The Amazon Resource Name (ARN) of this auto scaling configuration.
- auto
Scaling numberConfiguration Revision - The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
- id string
- The provider-assigned unique ID for this managed resource.
- latest boolean
- It's set to true for the configuration with the highest Revision among all configurations that share the same AutoScalingConfigurationName. 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.
- auto_
scaling_ strconfiguration_ arn - The Amazon Resource Name (ARN) of this auto scaling configuration.
- auto_
scaling_ intconfiguration_ revision - The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
- id str
- The provider-assigned unique ID for this managed resource.
- latest bool
- It's set to true for the configuration with the highest Revision among all configurations that share the same AutoScalingConfigurationName. 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.
- auto
Scaling StringConfiguration Arn - The Amazon Resource Name (ARN) of this auto scaling configuration.
- auto
Scaling NumberConfiguration Revision - The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
- id String
- The provider-assigned unique ID for this managed resource.
- latest Boolean
- It's set to true for the configuration with the highest Revision among all configurations that share the same AutoScalingConfigurationName. 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.
Supporting Types
CreateOnlyTag, CreateOnlyTagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.