1. Packages
  2. AWS Classic
  3. API Docs
  4. apprunner
  5. DefaultAutoScalingConfigurationVersion

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.30.0 published on Thursday, Apr 11, 2024 by Pulumi

aws.apprunner.DefaultAutoScalingConfigurationVersion

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.30.0 published on Thursday, Apr 11, 2024 by Pulumi

    Manages the default App Runner auto scaling configuration. When creating or updating this resource the existing default auto scaling configuration will be set to non-default automatically. When creating or updating this resource the configuration is automatically assigned as the default to the new services you create in the future. The new default designation doesn’t affect the associations that were previously set for existing services. Each account can have only one default auto scaling configuration per Region.

    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,
    });
    const exampleDefaultAutoScalingConfigurationVersion = new aws.apprunner.DefaultAutoScalingConfigurationVersion("example", {autoScalingConfigurationArn: example.arn});
    
    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)
    example_default_auto_scaling_configuration_version = aws.apprunner.DefaultAutoScalingConfigurationVersion("example", auto_scaling_configuration_arn=example.arn)
    
    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 {
    		example, err := apprunner.NewAutoScalingConfigurationVersion(ctx, "example", &apprunner.AutoScalingConfigurationVersionArgs{
    			AutoScalingConfigurationName: pulumi.String("example"),
    			MaxConcurrency:               pulumi.Int(50),
    			MaxSize:                      pulumi.Int(10),
    			MinSize:                      pulumi.Int(2),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = apprunner.NewDefaultAutoScalingConfigurationVersion(ctx, "example", &apprunner.DefaultAutoScalingConfigurationVersionArgs{
    			AutoScalingConfigurationArn: example.Arn,
    		})
    		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,
        });
    
        var exampleDefaultAutoScalingConfigurationVersion = new Aws.AppRunner.DefaultAutoScalingConfigurationVersion("example", new()
        {
            AutoScalingConfigurationArn = example.Arn,
        });
    
    });
    
    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 com.pulumi.aws.apprunner.DefaultAutoScalingConfigurationVersion;
    import com.pulumi.aws.apprunner.DefaultAutoScalingConfigurationVersionArgs;
    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)
                .build());
    
            var exampleDefaultAutoScalingConfigurationVersion = new DefaultAutoScalingConfigurationVersion("exampleDefaultAutoScalingConfigurationVersion", DefaultAutoScalingConfigurationVersionArgs.builder()        
                .autoScalingConfigurationArn(example.arn())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:apprunner:AutoScalingConfigurationVersion
        properties:
          autoScalingConfigurationName: example
          maxConcurrency: 50
          maxSize: 10
          minSize: 2
      exampleDefaultAutoScalingConfigurationVersion:
        type: aws:apprunner:DefaultAutoScalingConfigurationVersion
        name: example
        properties:
          autoScalingConfigurationArn: ${example.arn}
    

    Create DefaultAutoScalingConfigurationVersion Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

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

    Example

    The following reference example uses placeholder values for all input properties.

    var defaultAutoScalingConfigurationVersionResource = new Aws.AppRunner.DefaultAutoScalingConfigurationVersion("defaultAutoScalingConfigurationVersionResource", new()
    {
        AutoScalingConfigurationArn = "string",
    });
    
    example, err := apprunner.NewDefaultAutoScalingConfigurationVersion(ctx, "defaultAutoScalingConfigurationVersionResource", &apprunner.DefaultAutoScalingConfigurationVersionArgs{
    	AutoScalingConfigurationArn: pulumi.String("string"),
    })
    
    var defaultAutoScalingConfigurationVersionResource = new DefaultAutoScalingConfigurationVersion("defaultAutoScalingConfigurationVersionResource", DefaultAutoScalingConfigurationVersionArgs.builder()        
        .autoScalingConfigurationArn("string")
        .build());
    
    default_auto_scaling_configuration_version_resource = aws.apprunner.DefaultAutoScalingConfigurationVersion("defaultAutoScalingConfigurationVersionResource", auto_scaling_configuration_arn="string")
    
    const defaultAutoScalingConfigurationVersionResource = new aws.apprunner.DefaultAutoScalingConfigurationVersion("defaultAutoScalingConfigurationVersionResource", {autoScalingConfigurationArn: "string"});
    
    type: aws:apprunner:DefaultAutoScalingConfigurationVersion
    properties:
        autoScalingConfigurationArn: string
    

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

    AutoScalingConfigurationArn string
    The ARN of the App Runner auto scaling configuration that you want to set as the default.
    AutoScalingConfigurationArn string
    The ARN of the App Runner auto scaling configuration that you want to set as the default.
    autoScalingConfigurationArn String
    The ARN of the App Runner auto scaling configuration that you want to set as the default.
    autoScalingConfigurationArn string
    The ARN of the App Runner auto scaling configuration that you want to set as the default.
    auto_scaling_configuration_arn str
    The ARN of the App Runner auto scaling configuration that you want to set as the default.
    autoScalingConfigurationArn String
    The ARN of the App Runner auto scaling configuration that you want to set as the default.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DefaultAutoScalingConfigurationVersion Resource

    Get an existing DefaultAutoScalingConfigurationVersion 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?: DefaultAutoScalingConfigurationVersionState, opts?: CustomResourceOptions): DefaultAutoScalingConfigurationVersion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_scaling_configuration_arn: Optional[str] = None) -> DefaultAutoScalingConfigurationVersion
    func GetDefaultAutoScalingConfigurationVersion(ctx *Context, name string, id IDInput, state *DefaultAutoScalingConfigurationVersionState, opts ...ResourceOption) (*DefaultAutoScalingConfigurationVersion, error)
    public static DefaultAutoScalingConfigurationVersion Get(string name, Input<string> id, DefaultAutoScalingConfigurationVersionState? state, CustomResourceOptions? opts = null)
    public static DefaultAutoScalingConfigurationVersion get(String name, Output<String> id, DefaultAutoScalingConfigurationVersionState 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:
    AutoScalingConfigurationArn string
    The ARN of the App Runner auto scaling configuration that you want to set as the default.
    AutoScalingConfigurationArn string
    The ARN of the App Runner auto scaling configuration that you want to set as the default.
    autoScalingConfigurationArn String
    The ARN of the App Runner auto scaling configuration that you want to set as the default.
    autoScalingConfigurationArn string
    The ARN of the App Runner auto scaling configuration that you want to set as the default.
    auto_scaling_configuration_arn str
    The ARN of the App Runner auto scaling configuration that you want to set as the default.
    autoScalingConfigurationArn String
    The ARN of the App Runner auto scaling configuration that you want to set as the default.

    Import

    Using pulumi import, import App Runner default auto scaling configurations using the current Region. For example:

    $ pulumi import aws:apprunner/defaultAutoScalingConfigurationVersion:DefaultAutoScalingConfigurationVersion example us-west-2
    

    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.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.30.0 published on Thursday, Apr 11, 2024 by Pulumi