AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

AutoScalingConfigurationVersion

Manages an App Runner AutoScaling Configuration Version.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.AppRunner.AutoScalingConfigurationVersion("example", new Aws.AppRunner.AutoScalingConfigurationVersionArgs
        {
            AutoScalingConfigurationName = "example",
            MaxConcurrency = 50,
            MaxSize = 10,
            MinSize = 2,
            Tags = 
            {
                { "Name", "example-apprunner-autoscaling" },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/apprunner"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apprunner.NewAutoScalingConfigurationVersion(ctx, "example", &apprunner.AutoScalingConfigurationVersionArgs{
			AutoScalingConfigurationName: pulumi.String("example"),
			MaxConcurrency:               pulumi.Int(50),
			MaxSize:                      pulumi.Int(10),
			MinSize:                      pulumi.Int(2),
			Tags: pulumi.StringMap{
				"Name": pulumi.String("example-apprunner-autoscaling"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new AutoScalingConfigurationVersion("example", AutoScalingConfigurationVersionArgs.builder()        
            .autoScalingConfigurationName("example")
            .maxConcurrency(50)
            .maxSize(10)
            .minSize(2)
            .tags(Map.of("Name", "example-apprunner-autoscaling"))
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.apprunner.AutoScalingConfigurationVersion("example",
    auto_scaling_configuration_name="example",
    max_concurrency=50,
    max_size=10,
    min_size=2,
    tags={
        "Name": "example-apprunner-autoscaling",
    })
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.apprunner.AutoScalingConfigurationVersion("example", {
    autoScalingConfigurationName: "example",
    maxConcurrency: 50,
    maxSize: 10,
    minSize: 2,
    tags: {
        Name: "example-apprunner-autoscaling",
    },
});
resources:
  example:
    type: aws:apprunner:AutoScalingConfigurationVersion
    properties:
      autoScalingConfigurationName: example
      maxConcurrency: 50
      maxSize: 10
      minSize: 2
      tags:
        Name: example-apprunner-autoscaling

Create a AutoScalingConfigurationVersion Resource

new AutoScalingConfigurationVersion(name: string, args: AutoScalingConfigurationVersionArgs, opts?: CustomResourceOptions);
@overload
def AutoScalingConfigurationVersion(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[Mapping[str, str]] = None)
@overload
def AutoScalingConfigurationVersion(resource_name: str,
                                    args: AutoScalingConfigurationVersionArgs,
                                    opts: Optional[ResourceOptions] = None)
func NewAutoScalingConfigurationVersion(ctx *Context, name string, args AutoScalingConfigurationVersionArgs, opts ...ResourceOption) (*AutoScalingConfigurationVersion, error)
public AutoScalingConfigurationVersion(string name, AutoScalingConfigurationVersionArgs args, CustomResourceOptions? opts = null)
public AutoScalingConfigurationVersion(String name, AutoScalingConfigurationVersionArgs args)
public AutoScalingConfigurationVersion(String name, AutoScalingConfigurationVersionArgs args, CustomResourceOptions options)
type: aws:apprunner:AutoScalingConfigurationVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AutoScalingConfigurationVersionArgs
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 AutoScalingConfigurationVersionArgs
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 AutoScalingConfigurationVersionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AutoScalingConfigurationVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AutoScalingConfigurationVersionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AutoScalingConfigurationVersion 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 AutoScalingConfigurationVersion resource accepts the following input properties:

AutoScalingConfigurationName string

Name of the auto scaling configuration.

MaxConcurrency int

The maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.

MaxSize int

The maximal number of instances that App Runner provisions for your service.

MinSize int

The minimal number of instances that App Runner provisions for your service.

Tags Dictionary<string, string>

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

AutoScalingConfigurationName string

Name of the auto scaling configuration.

MaxConcurrency int

The maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.

MaxSize int

The maximal number of instances that App Runner provisions for your service.

MinSize int

The minimal number of instances that App Runner provisions for your service.

Tags map[string]string

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

autoScalingConfigurationName String

Name of the auto scaling configuration.

maxConcurrency Integer

The maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.

maxSize Integer

The maximal number of instances that App Runner provisions for your service.

minSize Integer

The minimal number of instances that App Runner provisions for your service.

tags Map<String,String>

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

autoScalingConfigurationName string

Name of the auto scaling configuration.

maxConcurrency number

The maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.

maxSize number

The maximal number of instances that App Runner provisions for your service.

minSize number

The minimal number of instances that App Runner provisions for your service.

tags {[key: string]: string}

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

auto_scaling_configuration_name str

Name of the auto scaling configuration.

max_concurrency int

The maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.

max_size int

The maximal number of instances that App Runner provisions for your service.

min_size int

The minimal number of instances that App Runner provisions for your service.

tags Mapping[str, str]

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

autoScalingConfigurationName String

Name of the auto scaling configuration.

maxConcurrency Number

The maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.

maxSize Number

The maximal number of instances that App Runner provisions for your service.

minSize Number

The minimal number of instances that App Runner provisions for your service.

tags Map<String>

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Outputs

All input properties are implicitly available as output properties. Additionally, the AutoScalingConfigurationVersion resource produces the following output properties:

Arn string

ARN of this auto scaling configuration version.

AutoScalingConfigurationRevision int

The revision of this auto scaling configuration.

Id string

The provider-assigned unique ID for this managed resource.

Latest bool

Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name.

Status string

The current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Arn string

ARN of this auto scaling configuration version.

AutoScalingConfigurationRevision int

The revision of this auto scaling configuration.

Id string

The provider-assigned unique ID for this managed resource.

Latest bool

Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name.

Status string

The current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

ARN of this auto scaling configuration version.

autoScalingConfigurationRevision Integer

The revision of this auto scaling configuration.

id String

The provider-assigned unique ID for this managed resource.

latest Boolean

Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name.

status String

The current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn string

ARN of this auto scaling configuration version.

autoScalingConfigurationRevision number

The revision of this auto scaling configuration.

id string

The provider-assigned unique ID for this managed resource.

latest boolean

Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name.

status string

The current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn str

ARN of this auto scaling configuration version.

auto_scaling_configuration_revision int

The revision of this auto scaling configuration.

id str

The provider-assigned unique ID for this managed resource.

latest bool

Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name.

status str

The current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

ARN of this auto scaling configuration version.

autoScalingConfigurationRevision Number

The revision of this auto scaling configuration.

id String

The provider-assigned unique ID for this managed resource.

latest Boolean

Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name.

status String

The current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Look up an Existing AutoScalingConfigurationVersion Resource

Get an existing AutoScalingConfigurationVersion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AutoScalingConfigurationVersionState, opts?: CustomResourceOptions): AutoScalingConfigurationVersion
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        auto_scaling_configuration_name: Optional[str] = None,
        auto_scaling_configuration_revision: Optional[int] = None,
        latest: Optional[bool] = None,
        max_concurrency: Optional[int] = None,
        max_size: Optional[int] = None,
        min_size: Optional[int] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> AutoScalingConfigurationVersion
func GetAutoScalingConfigurationVersion(ctx *Context, name string, id IDInput, state *AutoScalingConfigurationVersionState, opts ...ResourceOption) (*AutoScalingConfigurationVersion, error)
public static AutoScalingConfigurationVersion Get(string name, Input<string> id, AutoScalingConfigurationVersionState? state, CustomResourceOptions? opts = null)
public static AutoScalingConfigurationVersion get(String name, Output<String> id, AutoScalingConfigurationVersionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Arn string

ARN of this auto scaling configuration version.

AutoScalingConfigurationName string

Name of the auto scaling configuration.

AutoScalingConfigurationRevision int

The revision of this auto scaling configuration.

Latest bool

Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name.

MaxConcurrency int

The maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.

MaxSize int

The maximal number of instances that App Runner provisions for your service.

MinSize int

The minimal number of instances that App Runner provisions for your service.

Status string

The current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.

Tags Dictionary<string, string>

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Arn string

ARN of this auto scaling configuration version.

AutoScalingConfigurationName string

Name of the auto scaling configuration.

AutoScalingConfigurationRevision int

The revision of this auto scaling configuration.

Latest bool

Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name.

MaxConcurrency int

The maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.

MaxSize int

The maximal number of instances that App Runner provisions for your service.

MinSize int

The minimal number of instances that App Runner provisions for your service.

Status string

The current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.

Tags map[string]string

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

ARN of this auto scaling configuration version.

autoScalingConfigurationName String

Name of the auto scaling configuration.

autoScalingConfigurationRevision Integer

The revision of this auto scaling configuration.

latest Boolean

Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name.

maxConcurrency Integer

The maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.

maxSize Integer

The maximal number of instances that App Runner provisions for your service.

minSize Integer

The minimal number of instances that App Runner provisions for your service.

status String

The current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.

tags Map<String,String>

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn string

ARN of this auto scaling configuration version.

autoScalingConfigurationName string

Name of the auto scaling configuration.

autoScalingConfigurationRevision number

The revision of this auto scaling configuration.

latest boolean

Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name.

maxConcurrency number

The maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.

maxSize number

The maximal number of instances that App Runner provisions for your service.

minSize number

The minimal number of instances that App Runner provisions for your service.

status string

The current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.

tags {[key: string]: string}

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn str

ARN of this auto scaling configuration version.

auto_scaling_configuration_name str

Name of the auto scaling configuration.

auto_scaling_configuration_revision int

The revision of this auto scaling configuration.

latest bool

Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name.

max_concurrency int

The maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.

max_size int

The maximal number of instances that App Runner provisions for your service.

min_size int

The minimal number of instances that App Runner provisions for your service.

status str

The current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.

tags Mapping[str, str]

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

ARN of this auto scaling configuration version.

autoScalingConfigurationName String

Name of the auto scaling configuration.

autoScalingConfigurationRevision Number

The revision of this auto scaling configuration.

latest Boolean

Whether the auto scaling configuration has the highest auto_scaling_configuration_revision among all configurations that share the same auto_scaling_configuration_name.

maxConcurrency Number

The maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.

maxSize Number

The maximal number of instances that App Runner provisions for your service.

minSize Number

The minimal number of instances that App Runner provisions for your service.

status String

The current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.

tags Map<String>

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Import

App Runner AutoScaling Configuration Versions can be imported by using the arn, e.g.,

 $ pulumi import aws:apprunner/autoScalingConfigurationVersion:AutoScalingConfigurationVersion example "arn:aws:apprunner:us-east-1:1234567890:autoscalingconfiguration/example/1/69bdfe0115224b0db49398b7beb68e0f

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.