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

com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleElasticsearchActionArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin.inputs

import com.pulumi.awsnative.iot.inputs.TopicRuleElasticsearchActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property endpoint The endpoint of your OpenSearch domain.
 * @property id The unique identifier for the document you are storing.
 * @property index The index where you want to store your data.
 * @property roleArn The IAM role ARN that has access to OpenSearch.
 * @property type The type of document you are storing.
 */
public data class TopicRuleElasticsearchActionArgs(
    public val endpoint: Output,
    public val id: Output,
    public val index: Output,
    public val roleArn: Output,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleElasticsearchActionArgs =
        com.pulumi.awsnative.iot.inputs.TopicRuleElasticsearchActionArgs.builder()
            .endpoint(endpoint.applyValue({ args0 -> args0 }))
            .id(id.applyValue({ args0 -> args0 }))
            .index(index.applyValue({ args0 -> args0 }))
            .roleArn(roleArn.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TopicRuleElasticsearchActionArgs].
 */
@PulumiTagMarker
public class TopicRuleElasticsearchActionArgsBuilder internal constructor() {
    private var endpoint: Output? = null

    private var id: Output? = null

    private var index: Output? = null

    private var roleArn: Output? = null

    private var type: Output? = null

    /**
     * @param value The endpoint of your OpenSearch domain.
     */
    @JvmName("beqyqeaajdqbhjip")
    public suspend fun endpoint(`value`: Output) {
        this.endpoint = value
    }

    /**
     * @param value The unique identifier for the document you are storing.
     */
    @JvmName("rqxbldlweesdirml")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The index where you want to store your data.
     */
    @JvmName("aigavvhrcptxqpba")
    public suspend fun index(`value`: Output) {
        this.index = value
    }

    /**
     * @param value The IAM role ARN that has access to OpenSearch.
     */
    @JvmName("ssivjcleostctkqf")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The type of document you are storing.
     */
    @JvmName("fjhagbyfwbekcebf")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The endpoint of your OpenSearch domain.
     */
    @JvmName("qqqekyrxeulismee")
    public suspend fun endpoint(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpoint = mapped
    }

    /**
     * @param value The unique identifier for the document you are storing.
     */
    @JvmName("vfrhevcfymrhnyti")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value The index where you want to store your data.
     */
    @JvmName("vaosmdahqplsuudv")
    public suspend fun index(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.index = mapped
    }

    /**
     * @param value The IAM role ARN that has access to OpenSearch.
     */
    @JvmName("tkonkmobkcyrucif")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The type of document you are storing.
     */
    @JvmName("eqtissitueysgmly")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): TopicRuleElasticsearchActionArgs = TopicRuleElasticsearchActionArgs(
        endpoint = endpoint ?: throw PulumiNullFieldException("endpoint"),
        id = id ?: throw PulumiNullFieldException("id"),
        index = index ?: throw PulumiNullFieldException("index"),
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy