All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.alb.inputs.TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** 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.aws.alb.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs extends com.pulumi.resources.ResourceArgs {

    public static final TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs Empty = new TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs();

    /**
     * The minimum number of targets that must be healthy. If the number of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are `1` to the maximum number of targets. The default is `1`.
     * 
     */
    @Import(name="minimumHealthyTargetsCount")
    private @Nullable Output minimumHealthyTargetsCount;

    /**
     * @return The minimum number of targets that must be healthy. If the number of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are `1` to the maximum number of targets. The default is `1`.
     * 
     */
    public Optional> minimumHealthyTargetsCount() {
        return Optional.ofNullable(this.minimumHealthyTargetsCount);
    }

    /**
     * The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are `off` or an integer from `1` to `100`. The default is `off`.
     * 
     */
    @Import(name="minimumHealthyTargetsPercentage")
    private @Nullable Output minimumHealthyTargetsPercentage;

    /**
     * @return The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are `off` or an integer from `1` to `100`. The default is `off`.
     * 
     */
    public Optional> minimumHealthyTargetsPercentage() {
        return Optional.ofNullable(this.minimumHealthyTargetsPercentage);
    }

    private TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs() {}

    private TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs(TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs $) {
        this.minimumHealthyTargetsCount = $.minimumHealthyTargetsCount;
        this.minimumHealthyTargetsPercentage = $.minimumHealthyTargetsPercentage;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs $;

        public Builder() {
            $ = new TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs();
        }

        public Builder(TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs defaults) {
            $ = new TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param minimumHealthyTargetsCount The minimum number of targets that must be healthy. If the number of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are `1` to the maximum number of targets. The default is `1`.
         * 
         * @return builder
         * 
         */
        public Builder minimumHealthyTargetsCount(@Nullable Output minimumHealthyTargetsCount) {
            $.minimumHealthyTargetsCount = minimumHealthyTargetsCount;
            return this;
        }

        /**
         * @param minimumHealthyTargetsCount The minimum number of targets that must be healthy. If the number of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are `1` to the maximum number of targets. The default is `1`.
         * 
         * @return builder
         * 
         */
        public Builder minimumHealthyTargetsCount(Integer minimumHealthyTargetsCount) {
            return minimumHealthyTargetsCount(Output.of(minimumHealthyTargetsCount));
        }

        /**
         * @param minimumHealthyTargetsPercentage The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are `off` or an integer from `1` to `100`. The default is `off`.
         * 
         * @return builder
         * 
         */
        public Builder minimumHealthyTargetsPercentage(@Nullable Output minimumHealthyTargetsPercentage) {
            $.minimumHealthyTargetsPercentage = minimumHealthyTargetsPercentage;
            return this;
        }

        /**
         * @param minimumHealthyTargetsPercentage The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are `off` or an integer from `1` to `100`. The default is `off`.
         * 
         * @return builder
         * 
         */
        public Builder minimumHealthyTargetsPercentage(String minimumHealthyTargetsPercentage) {
            return minimumHealthyTargetsPercentage(Output.of(minimumHealthyTargetsPercentage));
        }

        public TargetGroupTargetGroupHealthUnhealthyStateRoutingArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy