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

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

import com.pulumi.aws.ecs.inputs.ClusterConfigurationArgs;
import com.pulumi.aws.ecs.inputs.ClusterServiceConnectDefaultsArgs;
import com.pulumi.aws.ecs.inputs.ClusterSettingArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ClusterArgs Empty = new ClusterArgs();

    /**
     * Execute command configuration for the cluster. See `configuration` Block for details.
     * 
     */
    @Import(name="configuration")
    private @Nullable Output configuration;

    /**
     * @return Execute command configuration for the cluster. See `configuration` Block for details.
     * 
     */
    public Optional> configuration() {
        return Optional.ofNullable(this.configuration);
    }

    /**
     * Name of the cluster (up to 255 letters, numbers, hyphens, and underscores)
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the cluster (up to 255 letters, numbers, hyphens, and underscores)
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Default Service Connect namespace. See `service_connect_defaults` Block for details.
     * 
     */
    @Import(name="serviceConnectDefaults")
    private @Nullable Output serviceConnectDefaults;

    /**
     * @return Default Service Connect namespace. See `service_connect_defaults` Block for details.
     * 
     */
    public Optional> serviceConnectDefaults() {
        return Optional.ofNullable(this.serviceConnectDefaults);
    }

    /**
     * Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. See `setting` Block for details.
     * 
     */
    @Import(name="settings")
    private @Nullable Output> settings;

    /**
     * @return Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. See `setting` Block for details.
     * 
     */
    public Optional>> settings() {
        return Optional.ofNullable(this.settings);
    }

    /**
     * Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ClusterArgs() {}

    private ClusterArgs(ClusterArgs $) {
        this.configuration = $.configuration;
        this.name = $.name;
        this.serviceConnectDefaults = $.serviceConnectDefaults;
        this.settings = $.settings;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ClusterArgs $;

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

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

        /**
         * @param configuration Execute command configuration for the cluster. See `configuration` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder configuration(@Nullable Output configuration) {
            $.configuration = configuration;
            return this;
        }

        /**
         * @param configuration Execute command configuration for the cluster. See `configuration` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder configuration(ClusterConfigurationArgs configuration) {
            return configuration(Output.of(configuration));
        }

        /**
         * @param name Name of the cluster (up to 255 letters, numbers, hyphens, and underscores)
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the cluster (up to 255 letters, numbers, hyphens, and underscores)
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param serviceConnectDefaults Default Service Connect namespace. See `service_connect_defaults` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder serviceConnectDefaults(@Nullable Output serviceConnectDefaults) {
            $.serviceConnectDefaults = serviceConnectDefaults;
            return this;
        }

        /**
         * @param serviceConnectDefaults Default Service Connect namespace. See `service_connect_defaults` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder serviceConnectDefaults(ClusterServiceConnectDefaultsArgs serviceConnectDefaults) {
            return serviceConnectDefaults(Output.of(serviceConnectDefaults));
        }

        /**
         * @param settings Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. See `setting` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder settings(@Nullable Output> settings) {
            $.settings = settings;
            return this;
        }

        /**
         * @param settings Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. See `setting` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder settings(List settings) {
            return settings(Output.of(settings));
        }

        /**
         * @param settings Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. See `setting` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder settings(ClusterSettingArgs... settings) {
            return settings(List.of(settings));
        }

        /**
         * @param tags Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ClusterArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy