aws.apprunner.AutoScalingConfigurationVersion
Explore with Pulumi AI
Manages an App Runner AutoScaling Configuration Version.
Example Usage
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",
},
});
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",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.AppRunner.AutoScalingConfigurationVersion("example", new()
{
AutoScalingConfigurationName = "example",
MaxConcurrency = 50,
MaxSize = 10,
MinSize = 2,
Tags =
{
{ "Name", "example-apprunner-autoscaling" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apprunner.AutoScalingConfigurationVersion;
import com.pulumi.aws.apprunner.AutoScalingConfigurationVersionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
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());
}
}
resources:
example:
type: aws:apprunner:AutoScalingConfigurationVersion
properties:
autoScalingConfigurationName: example
maxConcurrency: 50
maxSize: 10
minSize: 2
tags:
Name: example-apprunner-autoscaling
Create AutoScalingConfigurationVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AutoScalingConfigurationVersion(name: string, args: AutoScalingConfigurationVersionArgs, opts?: CustomResourceOptions);
@overload
def AutoScalingConfigurationVersion(resource_name: str,
args: AutoScalingConfigurationVersionArgs,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var autoScalingConfigurationVersionResource = new Aws.AppRunner.AutoScalingConfigurationVersion("autoScalingConfigurationVersionResource", new()
{
AutoScalingConfigurationName = "string",
MaxConcurrency = 0,
MaxSize = 0,
MinSize = 0,
Tags =
{
{ "string", "string" },
},
});
example, err := apprunner.NewAutoScalingConfigurationVersion(ctx, "autoScalingConfigurationVersionResource", &apprunner.AutoScalingConfigurationVersionArgs{
AutoScalingConfigurationName: pulumi.String("string"),
MaxConcurrency: pulumi.Int(0),
MaxSize: pulumi.Int(0),
MinSize: pulumi.Int(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var autoScalingConfigurationVersionResource = new AutoScalingConfigurationVersion("autoScalingConfigurationVersionResource", AutoScalingConfigurationVersionArgs.builder()
.autoScalingConfigurationName("string")
.maxConcurrency(0)
.maxSize(0)
.minSize(0)
.tags(Map.of("string", "string"))
.build());
auto_scaling_configuration_version_resource = aws.apprunner.AutoScalingConfigurationVersion("autoScalingConfigurationVersionResource",
auto_scaling_configuration_name="string",
max_concurrency=0,
max_size=0,
min_size=0,
tags={
"string": "string",
})
const autoScalingConfigurationVersionResource = new aws.apprunner.AutoScalingConfigurationVersion("autoScalingConfigurationVersionResource", {
autoScalingConfigurationName: "string",
maxConcurrency: 0,
maxSize: 0,
minSize: 0,
tags: {
string: "string",
},
});
type: aws:apprunner:AutoScalingConfigurationVersion
properties:
autoScalingConfigurationName: string
maxConcurrency: 0
maxSize: 0
minSize: 0
tags:
string: string
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:
- Auto
Scaling stringConfiguration Name - Name of the auto scaling configuration.
- Max
Concurrency int - 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 - Maximal number of instances that App Runner provisions for your service.
- Min
Size int - Minimal number of instances that App Runner provisions for your service.
- 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.
- Auto
Scaling stringConfiguration Name - Name of the auto scaling configuration.
- Max
Concurrency int - 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 - Maximal number of instances that App Runner provisions for your service.
- Min
Size int - Minimal number of instances that App Runner provisions for your service.
- 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.
- auto
Scaling StringConfiguration Name - Name of the auto scaling configuration.
- max
Concurrency Integer - 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 Integer - Maximal number of instances that App Runner provisions for your service.
- min
Size Integer - Minimal number of instances that App Runner provisions for your service.
- 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.
- auto
Scaling stringConfiguration Name - Name of the auto scaling configuration.
- max
Concurrency number - 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 number - Maximal number of instances that App Runner provisions for your service.
- min
Size number - Minimal number of instances that App Runner provisions for your service.
- {[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_ strconfiguration_ name - Name of the auto scaling configuration.
- max_
concurrency int - 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 - Maximal number of instances that App Runner provisions for your service.
- min_
size int - Minimal number of instances that App Runner provisions for your service.
- 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.
- auto
Scaling StringConfiguration Name - Name of the auto scaling configuration.
- max
Concurrency Number - 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 Number - Maximal number of instances that App Runner provisions for your service.
- min
Size Number - Minimal number of instances that App Runner provisions for your service.
- 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.
- Auto
Scaling intConfiguration Revision - The revision of this auto scaling configuration.
- Has
Associated boolService - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - Latest bool
- Whether the auto scaling configuration has the highest
auto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
. - Status string
- 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.
- Dictionary<string, string>
- 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.
- Auto
Scaling intConfiguration Revision - The revision of this auto scaling configuration.
- Has
Associated boolService - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - Latest bool
- Whether the auto scaling configuration has the highest
auto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
. - Status string
- 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.
- map[string]string
- 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.
- auto
Scaling IntegerConfiguration Revision - The revision of this auto scaling configuration.
- has
Associated BooleanService - id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - latest Boolean
- Whether the auto scaling configuration has the highest
auto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
. - status String
- 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.
- Map<String,String>
- 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.
- auto
Scaling numberConfiguration Revision - The revision of this auto scaling configuration.
- has
Associated booleanService - id string
- The provider-assigned unique ID for this managed resource.
- is
Default boolean - latest boolean
- Whether the auto scaling configuration has the highest
auto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
. - status string
- 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.
- {[key: string]: string}
- 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_ intconfiguration_ revision - The revision of this auto scaling configuration.
- has_
associated_ boolservice - id str
- The provider-assigned unique ID for this managed resource.
- is_
default bool - latest bool
- Whether the auto scaling configuration has the highest
auto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
. - status str
- 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.
- Mapping[str, str]
- 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.
- auto
Scaling NumberConfiguration Revision - The revision of this auto scaling configuration.
- has
Associated BooleanService - id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - latest Boolean
- Whether the auto scaling configuration has the highest
auto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
. - status String
- 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.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up 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,
has_associated_service: Optional[bool] = None,
is_default: Optional[bool] = 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.
- Arn string
- ARN of this auto scaling configuration version.
- Auto
Scaling stringConfiguration Name - Name of the auto scaling configuration.
- Auto
Scaling intConfiguration Revision - The revision of this auto scaling configuration.
- Has
Associated boolService - Is
Default bool - Latest bool
- Whether the auto scaling configuration has the highest
auto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
. - Max
Concurrency int - 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 - Maximal number of instances that App Runner provisions for your service.
- Min
Size int - Minimal number of instances that App Runner provisions for your service.
- Status string
- 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.
- 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. - Dictionary<string, string>
- 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.
- Auto
Scaling stringConfiguration Name - Name of the auto scaling configuration.
- Auto
Scaling intConfiguration Revision - The revision of this auto scaling configuration.
- Has
Associated boolService - Is
Default bool - Latest bool
- Whether the auto scaling configuration has the highest
auto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
. - Max
Concurrency int - 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 - Maximal number of instances that App Runner provisions for your service.
- Min
Size int - Minimal number of instances that App Runner provisions for your service.
- Status string
- 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.
- 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. - map[string]string
- 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.
- auto
Scaling StringConfiguration Name - Name of the auto scaling configuration.
- auto
Scaling IntegerConfiguration Revision - The revision of this auto scaling configuration.
- has
Associated BooleanService - is
Default Boolean - latest Boolean
- Whether the auto scaling configuration has the highest
auto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
. - max
Concurrency Integer - 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 Integer - Maximal number of instances that App Runner provisions for your service.
- min
Size Integer - Minimal number of instances that App Runner provisions for your service.
- status String
- 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.
- 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. - Map<String,String>
- 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.
- auto
Scaling stringConfiguration Name - Name of the auto scaling configuration.
- auto
Scaling numberConfiguration Revision - The revision of this auto scaling configuration.
- has
Associated booleanService - is
Default boolean - latest boolean
- Whether the auto scaling configuration has the highest
auto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
. - max
Concurrency number - 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 number - Maximal number of instances that App Runner provisions for your service.
- min
Size number - Minimal number of instances that App Runner provisions for your service.
- status string
- 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.
- {[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. - {[key: string]: string}
- 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_ strconfiguration_ name - Name of the auto scaling configuration.
- auto_
scaling_ intconfiguration_ revision - The revision of this auto scaling configuration.
- has_
associated_ boolservice - is_
default bool - latest bool
- Whether the auto scaling configuration has the highest
auto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
. - max_
concurrency int - 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 - Maximal number of instances that App Runner provisions for your service.
- min_
size int - Minimal number of instances that App Runner provisions for your service.
- status str
- 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.
- 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. - Mapping[str, str]
- 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.
- auto
Scaling StringConfiguration Name - Name of the auto scaling configuration.
- auto
Scaling NumberConfiguration Revision - The revision of this auto scaling configuration.
- has
Associated BooleanService - is
Default Boolean - latest Boolean
- Whether the auto scaling configuration has the highest
auto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
. - max
Concurrency Number - 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 Number - Maximal number of instances that App Runner provisions for your service.
- min
Size Number - Minimal number of instances that App Runner provisions for your service.
- status String
- 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.
- 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. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Using pulumi import
, import App Runner AutoScaling Configuration Versions using the arn
. For example:
$ pulumi import aws:apprunner/autoScalingConfigurationVersion:AutoScalingConfigurationVersion example "arn:aws:apprunner:us-east-1:1234567890:autoscalingconfiguration/example/1/69bdfe0115224b0db49398b7beb68e0f
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.