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

com.pulumi.aws.codedeploy.outputs.DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption 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.aws.codedeploy.outputs;

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

@CustomType
public final class DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption {
    /**
     * @return When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.
     * * `CONTINUE_DEPLOYMENT`: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
     * * `STOP_DEPLOYMENT`: Do not register new instances with load balancer unless traffic is rerouted manually. If traffic is not rerouted manually before the end of the specified wait period, the deployment status is changed to Stopped.
     * 
     */
    private @Nullable String actionOnTimeout;
    /**
     * @return The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the `STOP_DEPLOYMENT` option for `action_on_timeout`.
     * 
     */
    private @Nullable Integer waitTimeInMinutes;

    private DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption() {}
    /**
     * @return When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.
     * * `CONTINUE_DEPLOYMENT`: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
     * * `STOP_DEPLOYMENT`: Do not register new instances with load balancer unless traffic is rerouted manually. If traffic is not rerouted manually before the end of the specified wait period, the deployment status is changed to Stopped.
     * 
     */
    public Optional actionOnTimeout() {
        return Optional.ofNullable(this.actionOnTimeout);
    }
    /**
     * @return The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the `STOP_DEPLOYMENT` option for `action_on_timeout`.
     * 
     */
    public Optional waitTimeInMinutes() {
        return Optional.ofNullable(this.waitTimeInMinutes);
    }

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

    public static Builder builder(DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String actionOnTimeout;
        private @Nullable Integer waitTimeInMinutes;
        public Builder() {}
        public Builder(DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actionOnTimeout = defaults.actionOnTimeout;
    	      this.waitTimeInMinutes = defaults.waitTimeInMinutes;
        }

        @CustomType.Setter
        public Builder actionOnTimeout(@Nullable String actionOnTimeout) {

            this.actionOnTimeout = actionOnTimeout;
            return this;
        }
        @CustomType.Setter
        public Builder waitTimeInMinutes(@Nullable Integer waitTimeInMinutes) {

            this.waitTimeInMinutes = waitTimeInMinutes;
            return this;
        }
        public DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption build() {
            final var _resultValue = new DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption();
            _resultValue.actionOnTimeout = actionOnTimeout;
            _resultValue.waitTimeInMinutes = waitTimeInMinutes;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy