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

com.pulumi.aws.ecs.inputs.ServiceDeploymentCircuitBreakerArgs 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.inputs;

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


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

    public static final ServiceDeploymentCircuitBreakerArgs Empty = new ServiceDeploymentCircuitBreakerArgs();

    /**
     * Whether to enable the deployment circuit breaker logic for the service.
     * 
     */
    @Import(name="enable", required=true)
    private Output enable;

    /**
     * @return Whether to enable the deployment circuit breaker logic for the service.
     * 
     */
    public Output enable() {
        return this.enable;
    }

    /**
     * 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.
     * 
     */
    @Import(name="rollback", required=true)
    private Output rollback;

    /**
     * @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 Output rollback() {
        return this.rollback;
    }

    private ServiceDeploymentCircuitBreakerArgs() {}

    private ServiceDeploymentCircuitBreakerArgs(ServiceDeploymentCircuitBreakerArgs $) {
        this.enable = $.enable;
        this.rollback = $.rollback;
    }

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

    public static final class Builder {
        private ServiceDeploymentCircuitBreakerArgs $;

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

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

        /**
         * @param enable Whether to enable the deployment circuit breaker logic for the service.
         * 
         * @return builder
         * 
         */
        public Builder enable(Output enable) {
            $.enable = enable;
            return this;
        }

        /**
         * @param enable Whether to enable the deployment circuit breaker logic for the service.
         * 
         * @return builder
         * 
         */
        public Builder enable(Boolean enable) {
            return enable(Output.of(enable));
        }

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

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

        public ServiceDeploymentCircuitBreakerArgs build() {
            if ($.enable == null) {
                throw new MissingRequiredPropertyException("ServiceDeploymentCircuitBreakerArgs", "enable");
            }
            if ($.rollback == null) {
                throw new MissingRequiredPropertyException("ServiceDeploymentCircuitBreakerArgs", "rollback");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy