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

com.pulumi.aws.ecs.ClusterCapacityProvidersArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show 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;

import com.pulumi.aws.ecs.inputs.ClusterCapacityProvidersDefaultCapacityProviderStrategyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ClusterCapacityProvidersArgs Empty = new ClusterCapacityProvidersArgs();

    /**
     * Set of names of one or more capacity providers to associate with the cluster. Valid values also include `FARGATE` and `FARGATE_SPOT`.
     * 
     */
    @Import(name="capacityProviders")
    private @Nullable Output> capacityProviders;

    /**
     * @return Set of names of one or more capacity providers to associate with the cluster. Valid values also include `FARGATE` and `FARGATE_SPOT`.
     * 
     */
    public Optional>> capacityProviders() {
        return Optional.ofNullable(this.capacityProviders);
    }

    /**
     * Name of the ECS cluster to manage capacity providers for.
     * 
     */
    @Import(name="clusterName", required=true)
    private Output clusterName;

    /**
     * @return Name of the ECS cluster to manage capacity providers for.
     * 
     */
    public Output clusterName() {
        return this.clusterName;
    }

    /**
     * Set of capacity provider strategies to use by default for the cluster. Detailed below.
     * 
     */
    @Import(name="defaultCapacityProviderStrategies")
    private @Nullable Output> defaultCapacityProviderStrategies;

    /**
     * @return Set of capacity provider strategies to use by default for the cluster. Detailed below.
     * 
     */
    public Optional>> defaultCapacityProviderStrategies() {
        return Optional.ofNullable(this.defaultCapacityProviderStrategies);
    }

    private ClusterCapacityProvidersArgs() {}

    private ClusterCapacityProvidersArgs(ClusterCapacityProvidersArgs $) {
        this.capacityProviders = $.capacityProviders;
        this.clusterName = $.clusterName;
        this.defaultCapacityProviderStrategies = $.defaultCapacityProviderStrategies;
    }

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

    public static final class Builder {
        private ClusterCapacityProvidersArgs $;

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

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

        /**
         * @param capacityProviders Set of names of one or more capacity providers to associate with the cluster. Valid values also include `FARGATE` and `FARGATE_SPOT`.
         * 
         * @return builder
         * 
         */
        public Builder capacityProviders(@Nullable Output> capacityProviders) {
            $.capacityProviders = capacityProviders;
            return this;
        }

        /**
         * @param capacityProviders Set of names of one or more capacity providers to associate with the cluster. Valid values also include `FARGATE` and `FARGATE_SPOT`.
         * 
         * @return builder
         * 
         */
        public Builder capacityProviders(List capacityProviders) {
            return capacityProviders(Output.of(capacityProviders));
        }

        /**
         * @param capacityProviders Set of names of one or more capacity providers to associate with the cluster. Valid values also include `FARGATE` and `FARGATE_SPOT`.
         * 
         * @return builder
         * 
         */
        public Builder capacityProviders(String... capacityProviders) {
            return capacityProviders(List.of(capacityProviders));
        }

        /**
         * @param clusterName Name of the ECS cluster to manage capacity providers for.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

        /**
         * @param clusterName Name of the ECS cluster to manage capacity providers for.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(String clusterName) {
            return clusterName(Output.of(clusterName));
        }

        /**
         * @param defaultCapacityProviderStrategies Set of capacity provider strategies to use by default for the cluster. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder defaultCapacityProviderStrategies(@Nullable Output> defaultCapacityProviderStrategies) {
            $.defaultCapacityProviderStrategies = defaultCapacityProviderStrategies;
            return this;
        }

        /**
         * @param defaultCapacityProviderStrategies Set of capacity provider strategies to use by default for the cluster. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder defaultCapacityProviderStrategies(List defaultCapacityProviderStrategies) {
            return defaultCapacityProviderStrategies(Output.of(defaultCapacityProviderStrategies));
        }

        /**
         * @param defaultCapacityProviderStrategies Set of capacity provider strategies to use by default for the cluster. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder defaultCapacityProviderStrategies(ClusterCapacityProvidersDefaultCapacityProviderStrategyArgs... defaultCapacityProviderStrategies) {
            return defaultCapacityProviderStrategies(List.of(defaultCapacityProviderStrategies));
        }

        public ClusterCapacityProvidersArgs build() {
            if ($.clusterName == null) {
                throw new MissingRequiredPropertyException("ClusterCapacityProvidersArgs", "clusterName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy