
com.pulumi.awsnative.qbusiness.kotlin.outputs.DataSourceDocumentAttributeCondition.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.qbusiness.kotlin.outputs
import com.pulumi.awsnative.qbusiness.kotlin.enums.DataSourceDocumentEnrichmentConditionOperator
import kotlin.Any
import kotlin.String
import kotlin.Suppress
/**
*
* @property key 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 Q Business currently doesn't support `_document_body` as an attribute key used for the condition.
* @property operator 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 Q Business currently does not support `_document_body` as an attribute key used for the condition.
* @property value The value of a document attribute. You can only provide one value for a document attribute.
*/
public data class DataSourceDocumentAttributeCondition(
public val key: String,
public val `operator`: DataSourceDocumentEnrichmentConditionOperator,
public val `value`: Any? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.qbusiness.outputs.DataSourceDocumentAttributeCondition): DataSourceDocumentAttributeCondition = DataSourceDocumentAttributeCondition(
key = javaType.key(),
`operator` = javaType.`operator`().let({ args0 ->
com.pulumi.awsnative.qbusiness.kotlin.enums.DataSourceDocumentEnrichmentConditionOperator.Companion.toKotlin(args0)
}),
`value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy