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

com.pulumi.awsnative.kendra.kotlin.outputs.DataSourceDocumentAttributeCondition.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.kendra.kotlin.outputs

import com.pulumi.awsnative.kendra.kotlin.enums.DataSourceConditionOperator
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property conditionDocumentAttributeKey The identifier of the document attribute used for the condition.
 * For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
 * Amazon Kendra currently does not support `_document_body` as an attribute key used for the condition.
 * @property conditionOnValue The value used by the operator.
 * For example, you can specify the value 'financial' for strings in the 'Source_URI' field that partially match or contain this value.
 * @property operator The condition operator.
 * For example, you can use 'Contains' to partially match a string.
 */
public data class DataSourceDocumentAttributeCondition(
    public val conditionDocumentAttributeKey: String,
    public val conditionOnValue: DataSourceDocumentAttributeValue? = null,
    public val `operator`: DataSourceConditionOperator,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.kendra.outputs.DataSourceDocumentAttributeCondition): DataSourceDocumentAttributeCondition = DataSourceDocumentAttributeCondition(
            conditionDocumentAttributeKey = javaType.conditionDocumentAttributeKey(),
            conditionOnValue = javaType.conditionOnValue().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kendra.kotlin.outputs.DataSourceDocumentAttributeValue.Companion.toKotlin(args0)
                })
            }).orElse(null),
            `operator` = javaType.`operator`().let({ args0 ->
                com.pulumi.awsnative.kendra.kotlin.enums.DataSourceConditionOperator.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy