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

com.pulumi.aws.cloudsearch.inputs.DomainScalingParametersArgs Maven / Gradle / Ivy

Go to download

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

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.aws.cloudsearch.inputs;

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


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

    public static final DomainScalingParametersArgs Empty = new DomainScalingParametersArgs();

    /**
     * The instance type that you want to preconfigure for your domain. See the [AWS documentation](https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_ScalingParameters.html) for valid values.
     * 
     */
    @Import(name="desiredInstanceType")
    private @Nullable Output desiredInstanceType;

    /**
     * @return The instance type that you want to preconfigure for your domain. See the [AWS documentation](https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_ScalingParameters.html) for valid values.
     * 
     */
    public Optional> desiredInstanceType() {
        return Optional.ofNullable(this.desiredInstanceType);
    }

    /**
     * The number of partitions you want to preconfigure for your domain. Only valid when you select `search.2xlarge` as the instance type.
     * 
     */
    @Import(name="desiredPartitionCount")
    private @Nullable Output desiredPartitionCount;

    /**
     * @return The number of partitions you want to preconfigure for your domain. Only valid when you select `search.2xlarge` as the instance type.
     * 
     */
    public Optional> desiredPartitionCount() {
        return Optional.ofNullable(this.desiredPartitionCount);
    }

    /**
     * The number of replicas you want to preconfigure for each index partition.
     * 
     */
    @Import(name="desiredReplicationCount")
    private @Nullable Output desiredReplicationCount;

    /**
     * @return The number of replicas you want to preconfigure for each index partition.
     * 
     */
    public Optional> desiredReplicationCount() {
        return Optional.ofNullable(this.desiredReplicationCount);
    }

    private DomainScalingParametersArgs() {}

    private DomainScalingParametersArgs(DomainScalingParametersArgs $) {
        this.desiredInstanceType = $.desiredInstanceType;
        this.desiredPartitionCount = $.desiredPartitionCount;
        this.desiredReplicationCount = $.desiredReplicationCount;
    }

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

    public static final class Builder {
        private DomainScalingParametersArgs $;

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

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

        /**
         * @param desiredInstanceType The instance type that you want to preconfigure for your domain. See the [AWS documentation](https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_ScalingParameters.html) for valid values.
         * 
         * @return builder
         * 
         */
        public Builder desiredInstanceType(@Nullable Output desiredInstanceType) {
            $.desiredInstanceType = desiredInstanceType;
            return this;
        }

        /**
         * @param desiredInstanceType The instance type that you want to preconfigure for your domain. See the [AWS documentation](https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_ScalingParameters.html) for valid values.
         * 
         * @return builder
         * 
         */
        public Builder desiredInstanceType(String desiredInstanceType) {
            return desiredInstanceType(Output.of(desiredInstanceType));
        }

        /**
         * @param desiredPartitionCount The number of partitions you want to preconfigure for your domain. Only valid when you select `search.2xlarge` as the instance type.
         * 
         * @return builder
         * 
         */
        public Builder desiredPartitionCount(@Nullable Output desiredPartitionCount) {
            $.desiredPartitionCount = desiredPartitionCount;
            return this;
        }

        /**
         * @param desiredPartitionCount The number of partitions you want to preconfigure for your domain. Only valid when you select `search.2xlarge` as the instance type.
         * 
         * @return builder
         * 
         */
        public Builder desiredPartitionCount(Integer desiredPartitionCount) {
            return desiredPartitionCount(Output.of(desiredPartitionCount));
        }

        /**
         * @param desiredReplicationCount The number of replicas you want to preconfigure for each index partition.
         * 
         * @return builder
         * 
         */
        public Builder desiredReplicationCount(@Nullable Output desiredReplicationCount) {
            $.desiredReplicationCount = desiredReplicationCount;
            return this;
        }

        /**
         * @param desiredReplicationCount The number of replicas you want to preconfigure for each index partition.
         * 
         * @return builder
         * 
         */
        public Builder desiredReplicationCount(Integer desiredReplicationCount) {
            return desiredReplicationCount(Output.of(desiredReplicationCount));
        }

        public DomainScalingParametersArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy