
com.pulumi.aws.codedeploy.outputs.DeploymentGroupBlueGreenDeploymentConfig 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.aws.codedeploy.outputs.DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption;
import com.pulumi.aws.codedeploy.outputs.DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption;
import com.pulumi.aws.codedeploy.outputs.DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DeploymentGroupBlueGreenDeploymentConfig {
/**
* @return Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below).
*
*/
private @Nullable DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption deploymentReadyOption;
/**
* @return Information about how instances are provisioned for a replacement environment in a blue/green deployment (documented below).
*
*/
private @Nullable DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption greenFleetProvisioningOption;
/**
* @return Information about whether to terminate instances in the original fleet during a blue/green deployment (documented below).
*
* _Only one `blue_green_deployment_config` is allowed_.
*
*/
private @Nullable DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess terminateBlueInstancesOnDeploymentSuccess;
private DeploymentGroupBlueGreenDeploymentConfig() {}
/**
* @return Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below).
*
*/
public Optional deploymentReadyOption() {
return Optional.ofNullable(this.deploymentReadyOption);
}
/**
* @return Information about how instances are provisioned for a replacement environment in a blue/green deployment (documented below).
*
*/
public Optional greenFleetProvisioningOption() {
return Optional.ofNullable(this.greenFleetProvisioningOption);
}
/**
* @return Information about whether to terminate instances in the original fleet during a blue/green deployment (documented below).
*
* _Only one `blue_green_deployment_config` is allowed_.
*
*/
public Optional terminateBlueInstancesOnDeploymentSuccess() {
return Optional.ofNullable(this.terminateBlueInstancesOnDeploymentSuccess);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DeploymentGroupBlueGreenDeploymentConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption deploymentReadyOption;
private @Nullable DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption greenFleetProvisioningOption;
private @Nullable DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess terminateBlueInstancesOnDeploymentSuccess;
public Builder() {}
public Builder(DeploymentGroupBlueGreenDeploymentConfig defaults) {
Objects.requireNonNull(defaults);
this.deploymentReadyOption = defaults.deploymentReadyOption;
this.greenFleetProvisioningOption = defaults.greenFleetProvisioningOption;
this.terminateBlueInstancesOnDeploymentSuccess = defaults.terminateBlueInstancesOnDeploymentSuccess;
}
@CustomType.Setter
public Builder deploymentReadyOption(@Nullable DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption deploymentReadyOption) {
this.deploymentReadyOption = deploymentReadyOption;
return this;
}
@CustomType.Setter
public Builder greenFleetProvisioningOption(@Nullable DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption greenFleetProvisioningOption) {
this.greenFleetProvisioningOption = greenFleetProvisioningOption;
return this;
}
@CustomType.Setter
public Builder terminateBlueInstancesOnDeploymentSuccess(@Nullable DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess terminateBlueInstancesOnDeploymentSuccess) {
this.terminateBlueInstancesOnDeploymentSuccess = terminateBlueInstancesOnDeploymentSuccess;
return this;
}
public DeploymentGroupBlueGreenDeploymentConfig build() {
final var _resultValue = new DeploymentGroupBlueGreenDeploymentConfig();
_resultValue.deploymentReadyOption = deploymentReadyOption;
_resultValue.greenFleetProvisioningOption = greenFleetProvisioningOption;
_resultValue.terminateBlueInstancesOnDeploymentSuccess = terminateBlueInstancesOnDeploymentSuccess;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy