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

com.pulumi.aws.emr.InstanceFleetArgs 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.emr;

import com.pulumi.aws.emr.inputs.InstanceFleetInstanceTypeConfigArgs;
import com.pulumi.aws.emr.inputs.InstanceFleetLaunchSpecificationsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final InstanceFleetArgs Empty = new InstanceFleetArgs();

    /**
     * ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="clusterId", required=true)
    private Output clusterId;

    /**
     * @return ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
     * 
     */
    public Output clusterId() {
        return this.clusterId;
    }

    /**
     * Configuration block for instance fleet
     * 
     */
    @Import(name="instanceTypeConfigs")
    private @Nullable Output> instanceTypeConfigs;

    /**
     * @return Configuration block for instance fleet
     * 
     */
    public Optional>> instanceTypeConfigs() {
        return Optional.ofNullable(this.instanceTypeConfigs);
    }

    /**
     * Configuration block for launch specification
     * 
     */
    @Import(name="launchSpecifications")
    private @Nullable Output launchSpecifications;

    /**
     * @return Configuration block for launch specification
     * 
     */
    public Optional> launchSpecifications() {
        return Optional.ofNullable(this.launchSpecifications);
    }

    /**
     * Friendly name given to the instance fleet.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Friendly name given to the instance fleet.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
     * 
     */
    @Import(name="targetOnDemandCapacity")
    private @Nullable Output targetOnDemandCapacity;

    /**
     * @return The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
     * 
     */
    public Optional> targetOnDemandCapacity() {
        return Optional.ofNullable(this.targetOnDemandCapacity);
    }

    /**
     * The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
     * 
     */
    @Import(name="targetSpotCapacity")
    private @Nullable Output targetSpotCapacity;

    /**
     * @return The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
     * 
     */
    public Optional> targetSpotCapacity() {
        return Optional.ofNullable(this.targetSpotCapacity);
    }

    private InstanceFleetArgs() {}

    private InstanceFleetArgs(InstanceFleetArgs $) {
        this.clusterId = $.clusterId;
        this.instanceTypeConfigs = $.instanceTypeConfigs;
        this.launchSpecifications = $.launchSpecifications;
        this.name = $.name;
        this.targetOnDemandCapacity = $.targetOnDemandCapacity;
        this.targetSpotCapacity = $.targetSpotCapacity;
    }

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

    public static final class Builder {
        private InstanceFleetArgs $;

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

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

        /**
         * @param clusterId ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(Output clusterId) {
            $.clusterId = clusterId;
            return this;
        }

        /**
         * @param clusterId ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(String clusterId) {
            return clusterId(Output.of(clusterId));
        }

        /**
         * @param instanceTypeConfigs Configuration block for instance fleet
         * 
         * @return builder
         * 
         */
        public Builder instanceTypeConfigs(@Nullable Output> instanceTypeConfigs) {
            $.instanceTypeConfigs = instanceTypeConfigs;
            return this;
        }

        /**
         * @param instanceTypeConfigs Configuration block for instance fleet
         * 
         * @return builder
         * 
         */
        public Builder instanceTypeConfigs(List instanceTypeConfigs) {
            return instanceTypeConfigs(Output.of(instanceTypeConfigs));
        }

        /**
         * @param instanceTypeConfigs Configuration block for instance fleet
         * 
         * @return builder
         * 
         */
        public Builder instanceTypeConfigs(InstanceFleetInstanceTypeConfigArgs... instanceTypeConfigs) {
            return instanceTypeConfigs(List.of(instanceTypeConfigs));
        }

        /**
         * @param launchSpecifications Configuration block for launch specification
         * 
         * @return builder
         * 
         */
        public Builder launchSpecifications(@Nullable Output launchSpecifications) {
            $.launchSpecifications = launchSpecifications;
            return this;
        }

        /**
         * @param launchSpecifications Configuration block for launch specification
         * 
         * @return builder
         * 
         */
        public Builder launchSpecifications(InstanceFleetLaunchSpecificationsArgs launchSpecifications) {
            return launchSpecifications(Output.of(launchSpecifications));
        }

        /**
         * @param name Friendly name given to the instance fleet.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Friendly name given to the instance fleet.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param targetOnDemandCapacity The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
         * 
         * @return builder
         * 
         */
        public Builder targetOnDemandCapacity(@Nullable Output targetOnDemandCapacity) {
            $.targetOnDemandCapacity = targetOnDemandCapacity;
            return this;
        }

        /**
         * @param targetOnDemandCapacity The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
         * 
         * @return builder
         * 
         */
        public Builder targetOnDemandCapacity(Integer targetOnDemandCapacity) {
            return targetOnDemandCapacity(Output.of(targetOnDemandCapacity));
        }

        /**
         * @param targetSpotCapacity The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
         * 
         * @return builder
         * 
         */
        public Builder targetSpotCapacity(@Nullable Output targetSpotCapacity) {
            $.targetSpotCapacity = targetSpotCapacity;
            return this;
        }

        /**
         * @param targetSpotCapacity The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
         * 
         * @return builder
         * 
         */
        public Builder targetSpotCapacity(Integer targetSpotCapacity) {
            return targetSpotCapacity(Output.of(targetSpotCapacity));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy