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

com.pulumi.aws.codedeploy.inputs.DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs 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.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 DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs Empty = new DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs();

    /**
     * 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.
     * 
     */
    @Import(name="actionOnTimeout")
    private @Nullable Output actionOnTimeout;

    /**
     * @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);
    }

    /**
     * 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`.
     * 
     */
    @Import(name="waitTimeInMinutes")
    private @Nullable Output waitTimeInMinutes;

    /**
     * @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);
    }

    private DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs() {}

    private DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs(DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs $) {
        this.actionOnTimeout = $.actionOnTimeout;
        this.waitTimeInMinutes = $.waitTimeInMinutes;
    }

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

    public static final class Builder {
        private DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs $;

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

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

        /**
         * @param actionOnTimeout 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.
         * 
         * @return builder
         * 
         */
        public Builder actionOnTimeout(@Nullable Output actionOnTimeout) {
            $.actionOnTimeout = actionOnTimeout;
            return this;
        }

        /**
         * @param actionOnTimeout 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.
         * 
         * @return builder
         * 
         */
        public Builder actionOnTimeout(String actionOnTimeout) {
            return actionOnTimeout(Output.of(actionOnTimeout));
        }

        /**
         * @param waitTimeInMinutes 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`.
         * 
         * @return builder
         * 
         */
        public Builder waitTimeInMinutes(@Nullable Output waitTimeInMinutes) {
            $.waitTimeInMinutes = waitTimeInMinutes;
            return this;
        }

        /**
         * @param waitTimeInMinutes 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`.
         * 
         * @return builder
         * 
         */
        public Builder waitTimeInMinutes(Integer waitTimeInMinutes) {
            return waitTimeInMinutes(Output.of(waitTimeInMinutes));
        }

        public DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy