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

com.pulumi.aws.ecs.outputs.ServiceDeploymentCircuitBreaker 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.ecs.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;

@CustomType
public final class ServiceDeploymentCircuitBreaker {
    /**
     * @return Whether to enable the deployment circuit breaker logic for the service.
     * 
     */
    private Boolean enable;
    /**
     * @return Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
     * 
     */
    private Boolean rollback;

    private ServiceDeploymentCircuitBreaker() {}
    /**
     * @return Whether to enable the deployment circuit breaker logic for the service.
     * 
     */
    public Boolean enable() {
        return this.enable;
    }
    /**
     * @return Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
     * 
     */
    public Boolean rollback() {
        return this.rollback;
    }

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

    public static Builder builder(ServiceDeploymentCircuitBreaker defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean enable;
        private Boolean rollback;
        public Builder() {}
        public Builder(ServiceDeploymentCircuitBreaker defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enable = defaults.enable;
    	      this.rollback = defaults.rollback;
        }

        @CustomType.Setter
        public Builder enable(Boolean enable) {
            if (enable == null) {
              throw new MissingRequiredPropertyException("ServiceDeploymentCircuitBreaker", "enable");
            }
            this.enable = enable;
            return this;
        }
        @CustomType.Setter
        public Builder rollback(Boolean rollback) {
            if (rollback == null) {
              throw new MissingRequiredPropertyException("ServiceDeploymentCircuitBreaker", "rollback");
            }
            this.rollback = rollback;
            return this;
        }
        public ServiceDeploymentCircuitBreaker build() {
            final var _resultValue = new ServiceDeploymentCircuitBreaker();
            _resultValue.enable = enable;
            _resultValue.rollback = rollback;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy