Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.googlenative.dataproc.v1.inputs.InstanceGroupAutoscalingPolicyConfigArgs Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.googlenative.dataproc.v1.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Configuration for the size bounds of an instance group, including its proportional size to other groups.
*
*/
public final class InstanceGroupAutoscalingPolicyConfigArgs extends com.pulumi.resources.ResourceArgs {
public static final InstanceGroupAutoscalingPolicyConfigArgs Empty = new InstanceGroupAutoscalingPolicyConfigArgs();
/**
* Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set.Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.
*
*/
@Import(name="maxInstances", required=true)
private Output maxInstances;
/**
* @return Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set.Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.
*
*/
public Output maxInstances() {
return this.maxInstances;
}
/**
* Optional. Minimum number of instances for this group.Primary workers - Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: 0, max_instances. Default: 0.
*
*/
@Import(name="minInstances")
private @Nullable Output minInstances;
/**
* @return Optional. Minimum number of instances for this group.Primary workers - Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: 0, max_instances. Default: 0.
*
*/
public Optional> minInstances() {
return Optional.ofNullable(this.minInstances);
}
/**
* Optional. Weight 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 max_instances 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.
*
*/
@Import(name="weight")
private @Nullable Output weight;
/**
* @return Optional. Weight 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 max_instances 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.
*
*/
public Optional> weight() {
return Optional.ofNullable(this.weight);
}
private InstanceGroupAutoscalingPolicyConfigArgs() {}
private InstanceGroupAutoscalingPolicyConfigArgs(InstanceGroupAutoscalingPolicyConfigArgs $) {
this.maxInstances = $.maxInstances;
this.minInstances = $.minInstances;
this.weight = $.weight;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(InstanceGroupAutoscalingPolicyConfigArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private InstanceGroupAutoscalingPolicyConfigArgs $;
public Builder() {
$ = new InstanceGroupAutoscalingPolicyConfigArgs();
}
public Builder(InstanceGroupAutoscalingPolicyConfigArgs defaults) {
$ = new InstanceGroupAutoscalingPolicyConfigArgs(Objects.requireNonNull(defaults));
}
/**
* @param maxInstances Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set.Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.
*
* @return builder
*
*/
public Builder maxInstances(Output maxInstances) {
$.maxInstances = maxInstances;
return this;
}
/**
* @param maxInstances Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set.Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.
*
* @return builder
*
*/
public Builder maxInstances(Integer maxInstances) {
return maxInstances(Output.of(maxInstances));
}
/**
* @param minInstances Optional. Minimum number of instances for this group.Primary workers - Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: 0, max_instances. Default: 0.
*
* @return builder
*
*/
public Builder minInstances(@Nullable Output minInstances) {
$.minInstances = minInstances;
return this;
}
/**
* @param minInstances Optional. Minimum number of instances for this group.Primary workers - Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: 0, max_instances. Default: 0.
*
* @return builder
*
*/
public Builder minInstances(Integer minInstances) {
return minInstances(Output.of(minInstances));
}
/**
* @param weight Optional. Weight 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 max_instances 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.
*
* @return builder
*
*/
public Builder weight(@Nullable Output weight) {
$.weight = weight;
return this;
}
/**
* @param weight Optional. Weight 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 max_instances 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.
*
* @return builder
*
*/
public Builder weight(Integer weight) {
return weight(Output.of(weight));
}
public InstanceGroupAutoscalingPolicyConfigArgs build() {
$.maxInstances = Objects.requireNonNull($.maxInstances, "expected parameter 'maxInstances' to be non-null");
return $;
}
}
}