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

com.pulumi.aws.dms.kotlin.inputs.EndpointElasticsearchSettingsArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.dms.kotlin.inputs

import com.pulumi.aws.dms.inputs.EndpointElasticsearchSettingsArgs.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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property endpointUri Endpoint for the OpenSearch cluster.
 * @property errorRetryDuration Maximum number of seconds for which DMS retries failed API requests to the OpenSearch cluster. Default is `300`.
 * @property fullLoadErrorPercentage Maximum percentage of records that can fail to be written before a full load operation stops. Default is `10`.
 * @property serviceAccessRoleArn ARN of the IAM Role with permissions to write to the OpenSearch cluster.
 * @property useNewMappingType Enable to migrate documentation using the documentation type `_doc`. OpenSearch and an Elasticsearch clusters only support the _doc documentation type in versions 7.x and later. The default value is `false`.
 */
public data class EndpointElasticsearchSettingsArgs(
    public val endpointUri: Output,
    public val errorRetryDuration: Output? = null,
    public val fullLoadErrorPercentage: Output? = null,
    public val serviceAccessRoleArn: Output,
    public val useNewMappingType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.dms.inputs.EndpointElasticsearchSettingsArgs =
        com.pulumi.aws.dms.inputs.EndpointElasticsearchSettingsArgs.builder()
            .endpointUri(endpointUri.applyValue({ args0 -> args0 }))
            .errorRetryDuration(errorRetryDuration?.applyValue({ args0 -> args0 }))
            .fullLoadErrorPercentage(fullLoadErrorPercentage?.applyValue({ args0 -> args0 }))
            .serviceAccessRoleArn(serviceAccessRoleArn.applyValue({ args0 -> args0 }))
            .useNewMappingType(useNewMappingType?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EndpointElasticsearchSettingsArgs].
 */
@PulumiTagMarker
public class EndpointElasticsearchSettingsArgsBuilder internal constructor() {
    private var endpointUri: Output? = null

    private var errorRetryDuration: Output? = null

    private var fullLoadErrorPercentage: Output? = null

    private var serviceAccessRoleArn: Output? = null

    private var useNewMappingType: Output? = null

    /**
     * @param value Endpoint for the OpenSearch cluster.
     */
    @JvmName("itxqknrmyfpkqmyq")
    public suspend fun endpointUri(`value`: Output) {
        this.endpointUri = value
    }

    /**
     * @param value Maximum number of seconds for which DMS retries failed API requests to the OpenSearch cluster. Default is `300`.
     */
    @JvmName("slodmkmulldnscug")
    public suspend fun errorRetryDuration(`value`: Output) {
        this.errorRetryDuration = value
    }

    /**
     * @param value Maximum percentage of records that can fail to be written before a full load operation stops. Default is `10`.
     */
    @JvmName("qcndpejodllklsrw")
    public suspend fun fullLoadErrorPercentage(`value`: Output) {
        this.fullLoadErrorPercentage = value
    }

    /**
     * @param value ARN of the IAM Role with permissions to write to the OpenSearch cluster.
     */
    @JvmName("jwhdjtagdqacniiw")
    public suspend fun serviceAccessRoleArn(`value`: Output) {
        this.serviceAccessRoleArn = value
    }

    /**
     * @param value Enable to migrate documentation using the documentation type `_doc`. OpenSearch and an Elasticsearch clusters only support the _doc documentation type in versions 7.x and later. The default value is `false`.
     */
    @JvmName("sdrmwcwnsunsmcls")
    public suspend fun useNewMappingType(`value`: Output) {
        this.useNewMappingType = value
    }

    /**
     * @param value Endpoint for the OpenSearch cluster.
     */
    @JvmName("kunndhvgrfldpyic")
    public suspend fun endpointUri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpointUri = mapped
    }

    /**
     * @param value Maximum number of seconds for which DMS retries failed API requests to the OpenSearch cluster. Default is `300`.
     */
    @JvmName("juunxnhnxgfjhycu")
    public suspend fun errorRetryDuration(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.errorRetryDuration = mapped
    }

    /**
     * @param value Maximum percentage of records that can fail to be written before a full load operation stops. Default is `10`.
     */
    @JvmName("vsswhjbjqcalifwm")
    public suspend fun fullLoadErrorPercentage(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fullLoadErrorPercentage = mapped
    }

    /**
     * @param value ARN of the IAM Role with permissions to write to the OpenSearch cluster.
     */
    @JvmName("saeyklftsvdaydcy")
    public suspend fun serviceAccessRoleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceAccessRoleArn = mapped
    }

    /**
     * @param value Enable to migrate documentation using the documentation type `_doc`. OpenSearch and an Elasticsearch clusters only support the _doc documentation type in versions 7.x and later. The default value is `false`.
     */
    @JvmName("ebrwhfifggusqjdx")
    public suspend fun useNewMappingType(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useNewMappingType = mapped
    }

    internal fun build(): EndpointElasticsearchSettingsArgs = EndpointElasticsearchSettingsArgs(
        endpointUri = endpointUri ?: throw PulumiNullFieldException("endpointUri"),
        errorRetryDuration = errorRetryDuration,
        fullLoadErrorPercentage = fullLoadErrorPercentage,
        serviceAccessRoleArn = serviceAccessRoleArn ?: throw
            PulumiNullFieldException("serviceAccessRoleArn"),
        useNewMappingType = useNewMappingType,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy