Class DataprocAutoscalingPolicyWorkerConfig.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- com.hashicorp.cdktf.providers.google.dataproc_autoscaling_policy.DataprocAutoscalingPolicyWorkerConfig.Jsii$Proxy
-
- All Implemented Interfaces:
DataprocAutoscalingPolicyWorkerConfig,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- DataprocAutoscalingPolicyWorkerConfig
@Stability(Stable) @Internal public static final class DataprocAutoscalingPolicyWorkerConfig.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataprocAutoscalingPolicyWorkerConfig
An implementation forDataprocAutoscalingPolicyWorkerConfig
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface com.hashicorp.cdktf.providers.google.dataproc_autoscaling_policy.DataprocAutoscalingPolicyWorkerConfig
DataprocAutoscalingPolicyWorkerConfig.Builder, DataprocAutoscalingPolicyWorkerConfig.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(DataprocAutoscalingPolicyWorkerConfig.Builder builder)Constructor that initializes the object based on literal property values passed by theDataprocAutoscalingPolicyWorkerConfig.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)NumbergetMaxInstances()Maximum number of instances for this group.NumbergetMinInstances()Minimum number of instances for this group.NumbergetWeight()Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(DataprocAutoscalingPolicyWorkerConfig.Builder builder)
Constructor that initializes the object based on literal property values passed by theDataprocAutoscalingPolicyWorkerConfig.Builder.
-
-
Method Detail
-
getMaxInstances
public final Number getMaxInstances()
Description copied from interface:DataprocAutoscalingPolicyWorkerConfigMaximum number of instances for this group.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_autoscaling_policy#max_instances DataprocAutoscalingPolicy#max_instances}
- Specified by:
getMaxInstancesin interfaceDataprocAutoscalingPolicyWorkerConfig
-
getMinInstances
public final Number getMinInstances()
Description copied from interface:DataprocAutoscalingPolicyWorkerConfigMinimum number of instances for this group. Bounds: [2, maxInstances]. Defaults to 2.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_autoscaling_policy#min_instances DataprocAutoscalingPolicy#min_instances}
- Specified by:
getMinInstancesin interfaceDataprocAutoscalingPolicyWorkerConfig
-
getWeight
public final Number getWeight()
Description copied from interface:DataprocAutoscalingPolicyWorkerConfigWeight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group.For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if maxInstances for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_autoscaling_policy#weight DataprocAutoscalingPolicy#weight}
- Specified by:
getWeightin interfaceDataprocAutoscalingPolicyWorkerConfig
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-