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

com.pulumi.aws.iot.inputs.TopicRuleElasticsearchArgs 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.iot.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final TopicRuleElasticsearchArgs Empty = new TopicRuleElasticsearchArgs();

    /**
     * The endpoint of your Elasticsearch domain.
     * 
     */
    @Import(name="endpoint", required=true)
    private Output endpoint;

    /**
     * @return The endpoint of your Elasticsearch domain.
     * 
     */
    public Output endpoint() {
        return this.endpoint;
    }

    /**
     * The unique identifier for the document you are storing.
     * 
     */
    @Import(name="id", required=true)
    private Output id;

    /**
     * @return The unique identifier for the document you are storing.
     * 
     */
    public Output id() {
        return this.id;
    }

    /**
     * The Elasticsearch index where you want to store your data.
     * 
     */
    @Import(name="index", required=true)
    private Output index;

    /**
     * @return The Elasticsearch index where you want to store your data.
     * 
     */
    public Output index() {
        return this.index;
    }

    /**
     * The IAM role ARN that has access to Elasticsearch.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return The IAM role ARN that has access to Elasticsearch.
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    /**
     * The type of document you are storing.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The type of document you are storing.
     * 
     */
    public Output type() {
        return this.type;
    }

    private TopicRuleElasticsearchArgs() {}

    private TopicRuleElasticsearchArgs(TopicRuleElasticsearchArgs $) {
        this.endpoint = $.endpoint;
        this.id = $.id;
        this.index = $.index;
        this.roleArn = $.roleArn;
        this.type = $.type;
    }

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

    public static final class Builder {
        private TopicRuleElasticsearchArgs $;

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

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

        /**
         * @param endpoint The endpoint of your Elasticsearch domain.
         * 
         * @return builder
         * 
         */
        public Builder endpoint(Output endpoint) {
            $.endpoint = endpoint;
            return this;
        }

        /**
         * @param endpoint The endpoint of your Elasticsearch domain.
         * 
         * @return builder
         * 
         */
        public Builder endpoint(String endpoint) {
            return endpoint(Output.of(endpoint));
        }

        /**
         * @param id The unique identifier for the document you are storing.
         * 
         * @return builder
         * 
         */
        public Builder id(Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The unique identifier for the document you are storing.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param index The Elasticsearch index where you want to store your data.
         * 
         * @return builder
         * 
         */
        public Builder index(Output index) {
            $.index = index;
            return this;
        }

        /**
         * @param index The Elasticsearch index where you want to store your data.
         * 
         * @return builder
         * 
         */
        public Builder index(String index) {
            return index(Output.of(index));
        }

        /**
         * @param roleArn The IAM role ARN that has access to Elasticsearch.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The IAM role ARN that has access to Elasticsearch.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        /**
         * @param type The type of document you are storing.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of document you are storing.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public TopicRuleElasticsearchArgs build() {
            if ($.endpoint == null) {
                throw new MissingRequiredPropertyException("TopicRuleElasticsearchArgs", "endpoint");
            }
            if ($.id == null) {
                throw new MissingRequiredPropertyException("TopicRuleElasticsearchArgs", "id");
            }
            if ($.index == null) {
                throw new MissingRequiredPropertyException("TopicRuleElasticsearchArgs", "index");
            }
            if ($.roleArn == null) {
                throw new MissingRequiredPropertyException("TopicRuleElasticsearchArgs", "roleArn");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("TopicRuleElasticsearchArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy