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

com.pulumi.aws.opensearchingest.PipelineArgs 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.opensearchingest;

import com.pulumi.aws.opensearchingest.inputs.PipelineBufferOptionsArgs;
import com.pulumi.aws.opensearchingest.inputs.PipelineEncryptionAtRestOptionsArgs;
import com.pulumi.aws.opensearchingest.inputs.PipelineLogPublishingOptionsArgs;
import com.pulumi.aws.opensearchingest.inputs.PipelineTimeoutsArgs;
import com.pulumi.aws.opensearchingest.inputs.PipelineVpcOptionsArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PipelineArgs Empty = new PipelineArgs();

    /**
     * Key-value pairs to configure persistent buffering for the pipeline. See `buffer_options` below.
     * 
     */
    @Import(name="bufferOptions")
    private @Nullable Output bufferOptions;

    /**
     * @return Key-value pairs to configure persistent buffering for the pipeline. See `buffer_options` below.
     * 
     */
    public Optional> bufferOptions() {
        return Optional.ofNullable(this.bufferOptions);
    }

    /**
     * Key-value pairs to configure encryption for data that is written to a persistent buffer. See `encryption_at_rest_options` below.
     * 
     */
    @Import(name="encryptionAtRestOptions")
    private @Nullable Output encryptionAtRestOptions;

    /**
     * @return Key-value pairs to configure encryption for data that is written to a persistent buffer. See `encryption_at_rest_options` below.
     * 
     */
    public Optional> encryptionAtRestOptions() {
        return Optional.ofNullable(this.encryptionAtRestOptions);
    }

    /**
     * Key-value pairs to configure log publishing. See `log_publishing_options` below.
     * 
     */
    @Import(name="logPublishingOptions")
    private @Nullable Output logPublishingOptions;

    /**
     * @return Key-value pairs to configure log publishing. See `log_publishing_options` below.
     * 
     */
    public Optional> logPublishingOptions() {
        return Optional.ofNullable(this.logPublishingOptions);
    }

    /**
     * The maximum pipeline capacity, in Ingestion Compute Units (ICUs).
     * 
     */
    @Import(name="maxUnits", required=true)
    private Output maxUnits;

    /**
     * @return The maximum pipeline capacity, in Ingestion Compute Units (ICUs).
     * 
     */
    public Output maxUnits() {
        return this.maxUnits;
    }

    /**
     * The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
     * 
     */
    @Import(name="minUnits", required=true)
    private Output minUnits;

    /**
     * @return The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
     * 
     */
    public Output minUnits() {
        return this.minUnits;
    }

    /**
     * The pipeline configuration in YAML format. This argument accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \n.
     * 
     */
    @Import(name="pipelineConfigurationBody", required=true)
    private Output pipelineConfigurationBody;

    /**
     * @return The pipeline configuration in YAML format. This argument accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \n.
     * 
     */
    public Output pipelineConfigurationBody() {
        return this.pipelineConfigurationBody;
    }

    /**
     * The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by an account within an AWS Region.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="pipelineName", required=true)
    private Output pipelineName;

    /**
     * @return The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by an account within an AWS Region.
     * 
     * The following arguments are optional:
     * 
     */
    public Output pipelineName() {
        return this.pipelineName;
    }

    /**
     * A map of tags to assign to the pipeline. 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 A map of tags to assign to the pipeline. 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);
    }

    @Import(name="timeouts")
    private @Nullable Output timeouts;

    public Optional> timeouts() {
        return Optional.ofNullable(this.timeouts);
    }

    /**
     * Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint. See `vpc_options` below.
     * 
     */
    @Import(name="vpcOptions")
    private @Nullable Output vpcOptions;

    /**
     * @return Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint. See `vpc_options` below.
     * 
     */
    public Optional> vpcOptions() {
        return Optional.ofNullable(this.vpcOptions);
    }

    private PipelineArgs() {}

    private PipelineArgs(PipelineArgs $) {
        this.bufferOptions = $.bufferOptions;
        this.encryptionAtRestOptions = $.encryptionAtRestOptions;
        this.logPublishingOptions = $.logPublishingOptions;
        this.maxUnits = $.maxUnits;
        this.minUnits = $.minUnits;
        this.pipelineConfigurationBody = $.pipelineConfigurationBody;
        this.pipelineName = $.pipelineName;
        this.tags = $.tags;
        this.timeouts = $.timeouts;
        this.vpcOptions = $.vpcOptions;
    }

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

    public static final class Builder {
        private PipelineArgs $;

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

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

        /**
         * @param bufferOptions Key-value pairs to configure persistent buffering for the pipeline. See `buffer_options` below.
         * 
         * @return builder
         * 
         */
        public Builder bufferOptions(@Nullable Output bufferOptions) {
            $.bufferOptions = bufferOptions;
            return this;
        }

        /**
         * @param bufferOptions Key-value pairs to configure persistent buffering for the pipeline. See `buffer_options` below.
         * 
         * @return builder
         * 
         */
        public Builder bufferOptions(PipelineBufferOptionsArgs bufferOptions) {
            return bufferOptions(Output.of(bufferOptions));
        }

        /**
         * @param encryptionAtRestOptions Key-value pairs to configure encryption for data that is written to a persistent buffer. See `encryption_at_rest_options` below.
         * 
         * @return builder
         * 
         */
        public Builder encryptionAtRestOptions(@Nullable Output encryptionAtRestOptions) {
            $.encryptionAtRestOptions = encryptionAtRestOptions;
            return this;
        }

        /**
         * @param encryptionAtRestOptions Key-value pairs to configure encryption for data that is written to a persistent buffer. See `encryption_at_rest_options` below.
         * 
         * @return builder
         * 
         */
        public Builder encryptionAtRestOptions(PipelineEncryptionAtRestOptionsArgs encryptionAtRestOptions) {
            return encryptionAtRestOptions(Output.of(encryptionAtRestOptions));
        }

        /**
         * @param logPublishingOptions Key-value pairs to configure log publishing. See `log_publishing_options` below.
         * 
         * @return builder
         * 
         */
        public Builder logPublishingOptions(@Nullable Output logPublishingOptions) {
            $.logPublishingOptions = logPublishingOptions;
            return this;
        }

        /**
         * @param logPublishingOptions Key-value pairs to configure log publishing. See `log_publishing_options` below.
         * 
         * @return builder
         * 
         */
        public Builder logPublishingOptions(PipelineLogPublishingOptionsArgs logPublishingOptions) {
            return logPublishingOptions(Output.of(logPublishingOptions));
        }

        /**
         * @param maxUnits The maximum pipeline capacity, in Ingestion Compute Units (ICUs).
         * 
         * @return builder
         * 
         */
        public Builder maxUnits(Output maxUnits) {
            $.maxUnits = maxUnits;
            return this;
        }

        /**
         * @param maxUnits The maximum pipeline capacity, in Ingestion Compute Units (ICUs).
         * 
         * @return builder
         * 
         */
        public Builder maxUnits(Integer maxUnits) {
            return maxUnits(Output.of(maxUnits));
        }

        /**
         * @param minUnits The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
         * 
         * @return builder
         * 
         */
        public Builder minUnits(Output minUnits) {
            $.minUnits = minUnits;
            return this;
        }

        /**
         * @param minUnits The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
         * 
         * @return builder
         * 
         */
        public Builder minUnits(Integer minUnits) {
            return minUnits(Output.of(minUnits));
        }

        /**
         * @param pipelineConfigurationBody The pipeline configuration in YAML format. This argument accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \n.
         * 
         * @return builder
         * 
         */
        public Builder pipelineConfigurationBody(Output pipelineConfigurationBody) {
            $.pipelineConfigurationBody = pipelineConfigurationBody;
            return this;
        }

        /**
         * @param pipelineConfigurationBody The pipeline configuration in YAML format. This argument accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \n.
         * 
         * @return builder
         * 
         */
        public Builder pipelineConfigurationBody(String pipelineConfigurationBody) {
            return pipelineConfigurationBody(Output.of(pipelineConfigurationBody));
        }

        /**
         * @param pipelineName The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by an account within an AWS Region.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder pipelineName(Output pipelineName) {
            $.pipelineName = pipelineName;
            return this;
        }

        /**
         * @param pipelineName The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by an account within an AWS Region.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder pipelineName(String pipelineName) {
            return pipelineName(Output.of(pipelineName));
        }

        /**
         * @param tags A map of tags to assign to the pipeline. 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 A map of tags to assign to the pipeline. 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 Builder timeouts(@Nullable Output timeouts) {
            $.timeouts = timeouts;
            return this;
        }

        public Builder timeouts(PipelineTimeoutsArgs timeouts) {
            return timeouts(Output.of(timeouts));
        }

        /**
         * @param vpcOptions Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint. See `vpc_options` below.
         * 
         * @return builder
         * 
         */
        public Builder vpcOptions(@Nullable Output vpcOptions) {
            $.vpcOptions = vpcOptions;
            return this;
        }

        /**
         * @param vpcOptions Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint. See `vpc_options` below.
         * 
         * @return builder
         * 
         */
        public Builder vpcOptions(PipelineVpcOptionsArgs vpcOptions) {
            return vpcOptions(Output.of(vpcOptions));
        }

        public PipelineArgs build() {
            if ($.maxUnits == null) {
                throw new MissingRequiredPropertyException("PipelineArgs", "maxUnits");
            }
            if ($.minUnits == null) {
                throw new MissingRequiredPropertyException("PipelineArgs", "minUnits");
            }
            if ($.pipelineConfigurationBody == null) {
                throw new MissingRequiredPropertyException("PipelineArgs", "pipelineConfigurationBody");
            }
            if ($.pipelineName == null) {
                throw new MissingRequiredPropertyException("PipelineArgs", "pipelineName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy