Interface ComputeRegionAutoscalerAutoscalingPolicy

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    ComputeRegionAutoscalerAutoscalingPolicy.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.102.0 (build e354887)",
               date="2024-08-31T03:59:18.674Z")
    @Stability(Stable)
    public interface ComputeRegionAutoscalerAutoscalingPolicy
    extends software.amazon.jsii.JsiiSerializable
    • Method Detail

      • getMaxReplicas

        @Stability(Stable)
        @NotNull
        Number getMaxReplicas()
        The maximum number of instances that the autoscaler can scale up to.

        This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#max_replicas ComputeRegionAutoscaler#max_replicas}

      • getMinReplicas

        @Stability(Stable)
        @NotNull
        Number getMinReplicas()
        The minimum number of replicas that the autoscaler can scale down to.

        This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#min_replicas ComputeRegionAutoscaler#min_replicas}

      • getCooldownPeriod

        @Stability(Stable)
        @Nullable
        default Number getCooldownPeriod()
        The number of seconds that the autoscaler should wait before it starts collecting information from a new instance.

        This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds. Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#cooldown_period ComputeRegionAutoscaler#cooldown_period}

      • getCpuUtilization

        @Stability(Stable)
        @Nullable
        default ComputeRegionAutoscalerAutoscalingPolicyCpuUtilization getCpuUtilization()
        cpu_utilization block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#cpu_utilization ComputeRegionAutoscaler#cpu_utilization}

      • getLoadBalancingUtilization

        @Stability(Stable)
        @Nullable
        default ComputeRegionAutoscalerAutoscalingPolicyLoadBalancingUtilization getLoadBalancingUtilization()
        load_balancing_utilization block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#load_balancing_utilization ComputeRegionAutoscaler#load_balancing_utilization}

      • getMetric

        @Stability(Stable)
        @Nullable
        default Object getMetric()
        metric block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#metric ComputeRegionAutoscaler#metric}

      • getMode

        @Stability(Stable)
        @Nullable
        default String getMode()
        Defines operating mode for this policy.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#mode ComputeRegionAutoscaler#mode}

      • getScaleInControl

        @Stability(Stable)
        @Nullable
        default ComputeRegionAutoscalerAutoscalingPolicyScaleInControl getScaleInControl()
        scale_in_control block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#scale_in_control ComputeRegionAutoscaler#scale_in_control}

      • getScalingSchedules

        @Stability(Stable)
        @Nullable
        default Object getScalingSchedules()
        scaling_schedules block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#scaling_schedules ComputeRegionAutoscaler#scaling_schedules}