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

com.pulumi.aws.batch.ComputeEnvironmentArgs 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.72.0
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.batch;

import com.pulumi.aws.batch.inputs.ComputeEnvironmentComputeResourcesArgs;
import com.pulumi.aws.batch.inputs.ComputeEnvironmentEksConfigurationArgs;
import com.pulumi.aws.batch.inputs.ComputeEnvironmentUpdatePolicyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ComputeEnvironmentArgs Empty = new ComputeEnvironmentArgs();

    /**
     * The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, and underscores are allowed. If omitted, the provider will assign a random, unique name.
     * 
     */
    @Import(name="computeEnvironmentName")
    private @Nullable Output computeEnvironmentName;

    /**
     * @return The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, and underscores are allowed. If omitted, the provider will assign a random, unique name.
     * 
     */
    public Optional> computeEnvironmentName() {
        return Optional.ofNullable(this.computeEnvironmentName);
    }

    /**
     * Creates a unique compute environment name beginning with the specified prefix. Conflicts with `compute_environment_name`.
     * 
     */
    @Import(name="computeEnvironmentNamePrefix")
    private @Nullable Output computeEnvironmentNamePrefix;

    /**
     * @return Creates a unique compute environment name beginning with the specified prefix. Conflicts with `compute_environment_name`.
     * 
     */
    public Optional> computeEnvironmentNamePrefix() {
        return Optional.ofNullable(this.computeEnvironmentNamePrefix);
    }

    /**
     * Details of the compute resources managed by the compute environment. This parameter is required for managed compute environments. See details below.
     * 
     */
    @Import(name="computeResources")
    private @Nullable Output computeResources;

    /**
     * @return Details of the compute resources managed by the compute environment. This parameter is required for managed compute environments. See details below.
     * 
     */
    public Optional> computeResources() {
        return Optional.ofNullable(this.computeResources);
    }

    /**
     * Details for the Amazon EKS cluster that supports the compute environment. See details below.
     * 
     */
    @Import(name="eksConfiguration")
    private @Nullable Output eksConfiguration;

    /**
     * @return Details for the Amazon EKS cluster that supports the compute environment. See details below.
     * 
     */
    public Optional> eksConfiguration() {
        return Optional.ofNullable(this.eksConfiguration);
    }

    /**
     * The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.
     * 
     */
    @Import(name="serviceRole")
    private @Nullable Output serviceRole;

    /**
     * @return The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.
     * 
     */
    public Optional> serviceRole() {
        return Optional.ofNullable(this.serviceRole);
    }

    /**
     * The state of the compute environment. If the state is `ENABLED`, then the compute environment accepts jobs from a queue and can scale out automatically based on queues. Valid items are `ENABLED` or `DISABLED`. Defaults to `ENABLED`.
     * 
     */
    @Import(name="state")
    private @Nullable Output state;

    /**
     * @return The state of the compute environment. If the state is `ENABLED`, then the compute environment accepts jobs from a queue and can scale out automatically based on queues. Valid items are `ENABLED` or `DISABLED`. Defaults to `ENABLED`.
     * 
     */
    public Optional> state() {
        return Optional.ofNullable(this.state);
    }

    /**
     * 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);
    }

    /**
     * The type of the compute environment. Valid items are `MANAGED` or `UNMANAGED`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The type of the compute environment. Valid items are `MANAGED` or `UNMANAGED`.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * Specifies the infrastructure update policy for the compute environment. See details below.
     * 
     */
    @Import(name="updatePolicy")
    private @Nullable Output updatePolicy;

    /**
     * @return Specifies the infrastructure update policy for the compute environment. See details below.
     * 
     */
    public Optional> updatePolicy() {
        return Optional.ofNullable(this.updatePolicy);
    }

    private ComputeEnvironmentArgs() {}

    private ComputeEnvironmentArgs(ComputeEnvironmentArgs $) {
        this.computeEnvironmentName = $.computeEnvironmentName;
        this.computeEnvironmentNamePrefix = $.computeEnvironmentNamePrefix;
        this.computeResources = $.computeResources;
        this.eksConfiguration = $.eksConfiguration;
        this.serviceRole = $.serviceRole;
        this.state = $.state;
        this.tags = $.tags;
        this.type = $.type;
        this.updatePolicy = $.updatePolicy;
    }

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

    public static final class Builder {
        private ComputeEnvironmentArgs $;

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

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

        /**
         * @param computeEnvironmentName The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, and underscores are allowed. If omitted, the provider will assign a random, unique name.
         * 
         * @return builder
         * 
         */
        public Builder computeEnvironmentName(@Nullable Output computeEnvironmentName) {
            $.computeEnvironmentName = computeEnvironmentName;
            return this;
        }

        /**
         * @param computeEnvironmentName The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, and underscores are allowed. If omitted, the provider will assign a random, unique name.
         * 
         * @return builder
         * 
         */
        public Builder computeEnvironmentName(String computeEnvironmentName) {
            return computeEnvironmentName(Output.of(computeEnvironmentName));
        }

        /**
         * @param computeEnvironmentNamePrefix Creates a unique compute environment name beginning with the specified prefix. Conflicts with `compute_environment_name`.
         * 
         * @return builder
         * 
         */
        public Builder computeEnvironmentNamePrefix(@Nullable Output computeEnvironmentNamePrefix) {
            $.computeEnvironmentNamePrefix = computeEnvironmentNamePrefix;
            return this;
        }

        /**
         * @param computeEnvironmentNamePrefix Creates a unique compute environment name beginning with the specified prefix. Conflicts with `compute_environment_name`.
         * 
         * @return builder
         * 
         */
        public Builder computeEnvironmentNamePrefix(String computeEnvironmentNamePrefix) {
            return computeEnvironmentNamePrefix(Output.of(computeEnvironmentNamePrefix));
        }

        /**
         * @param computeResources Details of the compute resources managed by the compute environment. This parameter is required for managed compute environments. See details below.
         * 
         * @return builder
         * 
         */
        public Builder computeResources(@Nullable Output computeResources) {
            $.computeResources = computeResources;
            return this;
        }

        /**
         * @param computeResources Details of the compute resources managed by the compute environment. This parameter is required for managed compute environments. See details below.
         * 
         * @return builder
         * 
         */
        public Builder computeResources(ComputeEnvironmentComputeResourcesArgs computeResources) {
            return computeResources(Output.of(computeResources));
        }

        /**
         * @param eksConfiguration Details for the Amazon EKS cluster that supports the compute environment. See details below.
         * 
         * @return builder
         * 
         */
        public Builder eksConfiguration(@Nullable Output eksConfiguration) {
            $.eksConfiguration = eksConfiguration;
            return this;
        }

        /**
         * @param eksConfiguration Details for the Amazon EKS cluster that supports the compute environment. See details below.
         * 
         * @return builder
         * 
         */
        public Builder eksConfiguration(ComputeEnvironmentEksConfigurationArgs eksConfiguration) {
            return eksConfiguration(Output.of(eksConfiguration));
        }

        /**
         * @param serviceRole The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.
         * 
         * @return builder
         * 
         */
        public Builder serviceRole(@Nullable Output serviceRole) {
            $.serviceRole = serviceRole;
            return this;
        }

        /**
         * @param serviceRole The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.
         * 
         * @return builder
         * 
         */
        public Builder serviceRole(String serviceRole) {
            return serviceRole(Output.of(serviceRole));
        }

        /**
         * @param state The state of the compute environment. If the state is `ENABLED`, then the compute environment accepts jobs from a queue and can scale out automatically based on queues. Valid items are `ENABLED` or `DISABLED`. Defaults to `ENABLED`.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output state) {
            $.state = state;
            return this;
        }

        /**
         * @param state The state of the compute environment. If the state is `ENABLED`, then the compute environment accepts jobs from a queue and can scale out automatically based on queues. Valid items are `ENABLED` or `DISABLED`. Defaults to `ENABLED`.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Output.of(state));
        }

        /**
         * @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));
        }

        /**
         * @param type The type of the compute environment. Valid items are `MANAGED` or `UNMANAGED`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of the compute environment. Valid items are `MANAGED` or `UNMANAGED`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param updatePolicy Specifies the infrastructure update policy for the compute environment. See details below.
         * 
         * @return builder
         * 
         */
        public Builder updatePolicy(@Nullable Output updatePolicy) {
            $.updatePolicy = updatePolicy;
            return this;
        }

        /**
         * @param updatePolicy Specifies the infrastructure update policy for the compute environment. See details below.
         * 
         * @return builder
         * 
         */
        public Builder updatePolicy(ComputeEnvironmentUpdatePolicyArgs updatePolicy) {
            return updatePolicy(Output.of(updatePolicy));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy