Interface ComputeAutoscalerAutoscalingPolicy
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ComputeAutoscalerAutoscalingPolicy.Jsii$Proxy
@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-08-31T03:59:18.290Z") @Stability(Stable) public interface ComputeAutoscalerAutoscalingPolicy extends software.amazon.jsii.JsiiSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classComputeAutoscalerAutoscalingPolicy.BuilderA builder forComputeAutoscalerAutoscalingPolicystatic classComputeAutoscalerAutoscalingPolicy.Jsii$ProxyAn implementation forComputeAutoscalerAutoscalingPolicy
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ComputeAutoscalerAutoscalingPolicy.Builderbuilder()default NumbergetCooldownPeriod()The number of seconds that the autoscaler should wait before it starts collecting information from a new instance.default ComputeAutoscalerAutoscalingPolicyCpuUtilizationgetCpuUtilization()cpu_utilization block.default ComputeAutoscalerAutoscalingPolicyLoadBalancingUtilizationgetLoadBalancingUtilization()load_balancing_utilization block.NumbergetMaxReplicas()The maximum number of instances that the autoscaler can scale up to.default ObjectgetMetric()metric block.NumbergetMinReplicas()The minimum number of replicas that the autoscaler can scale down to.default StringgetMode()Defines operating mode for this policy.default ComputeAutoscalerAutoscalingPolicyScaleInControlgetScaleInControl()scale_in_control block.default ObjectgetScalingSchedules()scaling_schedules block.
-
-
-
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_autoscaler#max_replicas ComputeAutoscaler#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_autoscaler#min_replicas ComputeAutoscaler#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_autoscaler#cooldown_period ComputeAutoscaler#cooldown_period}
-
getCpuUtilization
@Stability(Stable) @Nullable default ComputeAutoscalerAutoscalingPolicyCpuUtilization getCpuUtilization()
cpu_utilization block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#cpu_utilization ComputeAutoscaler#cpu_utilization}
-
getLoadBalancingUtilization
@Stability(Stable) @Nullable default ComputeAutoscalerAutoscalingPolicyLoadBalancingUtilization getLoadBalancingUtilization()
load_balancing_utilization block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#load_balancing_utilization ComputeAutoscaler#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_autoscaler#metric ComputeAutoscaler#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_autoscaler#mode ComputeAutoscaler#mode}
-
getScaleInControl
@Stability(Stable) @Nullable default ComputeAutoscalerAutoscalingPolicyScaleInControl getScaleInControl()
scale_in_control block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#scale_in_control ComputeAutoscaler#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_autoscaler#scaling_schedules ComputeAutoscaler#scaling_schedules}
-
builder
@Stability(Stable) static ComputeAutoscalerAutoscalingPolicy.Builder builder()
-
-