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

com.pulumi.azurenative.awsconnector.inputs.AutoDeploymentArgs Maven / Gradle / Ivy

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.azurenative.awsconnector.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of AutoDeployment
 * 
 */
public final class AutoDeploymentArgs extends com.pulumi.resources.ResourceArgs {

    public static final AutoDeploymentArgs Empty = new AutoDeploymentArgs();

    /**
     * If set to true, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return If set to true, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.
     * 
     */
    @Import(name="retainStacksOnAccountRemoval")
    private @Nullable Output retainStacksOnAccountRemoval;

    /**
     * @return If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.
     * 
     */
    public Optional> retainStacksOnAccountRemoval() {
        return Optional.ofNullable(this.retainStacksOnAccountRemoval);
    }

    private AutoDeploymentArgs() {}

    private AutoDeploymentArgs(AutoDeploymentArgs $) {
        this.enabled = $.enabled;
        this.retainStacksOnAccountRemoval = $.retainStacksOnAccountRemoval;
    }

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

    public static final class Builder {
        private AutoDeploymentArgs $;

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

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

        /**
         * @param enabled If set to true, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled If set to true, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param retainStacksOnAccountRemoval If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.
         * 
         * @return builder
         * 
         */
        public Builder retainStacksOnAccountRemoval(@Nullable Output retainStacksOnAccountRemoval) {
            $.retainStacksOnAccountRemoval = retainStacksOnAccountRemoval;
            return this;
        }

        /**
         * @param retainStacksOnAccountRemoval If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.
         * 
         * @return builder
         * 
         */
        public Builder retainStacksOnAccountRemoval(Boolean retainStacksOnAccountRemoval) {
            return retainStacksOnAccountRemoval(Output.of(retainStacksOnAccountRemoval));
        }

        public AutoDeploymentArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy