aws.apprunner.AutoScalingConfigurationVersion
Manages an App Runner AutoScaling Configuration Version.
Example Usage
using System.Collections.Generic;
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 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 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());
}
}
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 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:
- 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.
- 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 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.
- 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 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.
- 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 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.
- 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 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.
- 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 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.
- 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 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,
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
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
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.