Class DataprocAutoscalingPolicySecondaryWorkerConfig.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- com.hashicorp.cdktf.providers.google.dataproc_autoscaling_policy.DataprocAutoscalingPolicySecondaryWorkerConfig.Jsii$Proxy
-
- All Implemented Interfaces:
DataprocAutoscalingPolicySecondaryWorkerConfig,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- DataprocAutoscalingPolicySecondaryWorkerConfig
@Stability(Stable) @Internal public static final class DataprocAutoscalingPolicySecondaryWorkerConfig.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataprocAutoscalingPolicySecondaryWorkerConfig
An implementation forDataprocAutoscalingPolicySecondaryWorkerConfig
-
-
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.DataprocAutoscalingPolicySecondaryWorkerConfig
DataprocAutoscalingPolicySecondaryWorkerConfig.Builder, DataprocAutoscalingPolicySecondaryWorkerConfig.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(DataprocAutoscalingPolicySecondaryWorkerConfig.Builder builder)Constructor that initializes the object based on literal property values passed by theDataprocAutoscalingPolicySecondaryWorkerConfig.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(DataprocAutoscalingPolicySecondaryWorkerConfig.Builder builder)
Constructor that initializes the object based on literal property values passed by theDataprocAutoscalingPolicySecondaryWorkerConfig.Builder.
-
-
Method Detail
-
getMaxInstances
public final Number getMaxInstances()
Description copied from interface:DataprocAutoscalingPolicySecondaryWorkerConfigMaximum number of instances for this group.Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set. Bounds: [minInstances, ). Defaults to 0. 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 interfaceDataprocAutoscalingPolicySecondaryWorkerConfig
-
getMinInstances
public final Number getMinInstances()
Description copied from interface:DataprocAutoscalingPolicySecondaryWorkerConfigMinimum number of instances for this group. Bounds: [0, maxInstances]. Defaults to 0.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 interfaceDataprocAutoscalingPolicySecondaryWorkerConfig
-
getWeight
public final Number getWeight()
Description copied from interface:DataprocAutoscalingPolicySecondaryWorkerConfigWeight 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 interfaceDataprocAutoscalingPolicySecondaryWorkerConfig
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-