Class AutoScalingConfigurationVersion


  • public class AutoScalingConfigurationVersion
    extends com.pulumi.resources.CustomResource
    Manages an App Runner AutoScaling Configuration Version. ## Example Usage
     
     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.ArrayList;
     import java.util.Arrays;
     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 ### Identity Schema #### Required - `arn` (String) ARN of the App Runner auto scaling configuration version. Using `pulumi import`, import App Runner AutoScaling Configuration Versions using the `arn`. For example: ```sh $ pulumi import aws:apprunner/autoScalingConfigurationVersion:AutoScalingConfigurationVersion example "arn:aws:apprunner:us-east-1:1234567890:autoscalingconfiguration/example/1/69bdfe0115224b0db49398b7beb68e0f ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> arn()  
      com.pulumi.core.Output<java.lang.String> autoScalingConfigurationName()  
      com.pulumi.core.Output<java.lang.Integer> autoScalingConfigurationRevision()  
      static AutoScalingConfigurationVersion get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, AutoScalingConfigurationVersionState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.Boolean> hasAssociatedService()  
      com.pulumi.core.Output<java.lang.Boolean> isDefault()  
      com.pulumi.core.Output<java.lang.Boolean> latest()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> maxConcurrency()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> maxSize()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> minSize()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.lang.String> status()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AutoScalingConfigurationVersion

        public AutoScalingConfigurationVersion​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • AutoScalingConfigurationVersion

        public AutoScalingConfigurationVersion​(java.lang.String name,
                                               AutoScalingConfigurationVersionArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • AutoScalingConfigurationVersion

        public AutoScalingConfigurationVersion​(java.lang.String name,
                                               AutoScalingConfigurationVersionArgs args,
                                               @Nullable
                                               com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        ARN of this auto scaling configuration version.
      • autoScalingConfigurationName

        public com.pulumi.core.Output<java.lang.String> autoScalingConfigurationName()
        Returns:
        Name of the auto scaling configuration.
      • autoScalingConfigurationRevision

        public com.pulumi.core.Output<java.lang.Integer> autoScalingConfigurationRevision()
        Returns:
        Revision of this auto scaling configuration.
      • hasAssociatedService

        public com.pulumi.core.Output<java.lang.Boolean> hasAssociatedService()
        Returns:
        Whether there is an App Runner service associated with this auto scaling configuration.
      • isDefault

        public com.pulumi.core.Output<java.lang.Boolean> isDefault()
        Returns:
        Whether the auto scaling configuration is the default for the AWS account and Region.
      • latest

        public com.pulumi.core.Output<java.lang.Boolean> latest()
        Returns:
        Whether the auto scaling configuration has the highest `autoScalingConfigurationRevision` among all configurations that share the same `autoScalingConfigurationName`.
      • maxConcurrency

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> maxConcurrency()
        Returns:
        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

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> maxSize()
        Returns:
        Maximal number of instances that App Runner provisions for your service.
      • minSize

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> minSize()
        Returns:
        Minimal number of instances that App Runner provisions for your service.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • status

        public com.pulumi.core.Output<java.lang.String> status()
        Returns:
        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

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
        Returns:
        Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
      • get

        public static AutoScalingConfigurationVersion get​(java.lang.String name,
                                                          com.pulumi.core.Output<java.lang.String> id,
                                                          @Nullable
                                                          AutoScalingConfigurationVersionState state,
                                                          @Nullable
                                                          com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.