
com.pulumi.awsnative.kendra.kotlin.outputs.GetDataSourceResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.kendra.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property arn The Amazon Resource Name (ARN) of the data source. For example:
* `arn:aws:kendra:us-west-2:111122223333:index/335c3741-41df-46a6-b5d3-61f85b787884/data-source/b8cae438-6787-4091-8897-684a652bbb0a`
* @property customDocumentEnrichmentConfiguration Configuration information for altering document metadata and content during the document ingestion process.
* @property dataSourceConfiguration Configuration information for an Amazon Kendra data source. The contents of the configuration depend on the type of data source. You can only specify one type of data source in the configuration.
* You can't specify the `Configuration` parameter when the `Type` parameter is set to `CUSTOM` .
* The `Configuration` parameter is required for all other data sources.
* @property description A description for the data source connector.
* @property id The identifier for the data source. For example:
* `b8cae438-6787-4091-8897-684a652bbb0a` .
* @property indexId The identifier of the index you want to use with the data source connector.
* @property languageCode The code for a language. This shows a supported language for all documents in the data source. English is supported by default. For more information on supported languages, including their codes, see [Adding documents in languages other than English](https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html) .
* @property name The name of the data source.
* @property roleArn The Amazon Resource Name (ARN) of a role with permission to access the data source.
* You can't specify the `RoleArn` parameter when the `Type` parameter is set to `CUSTOM` .
* The `RoleArn` parameter is required for all other data sources.
* @property schedule Sets the frequency that Amazon Kendra checks the documents in your data source and updates the index. If you don't set a schedule, Amazon Kendra doesn't periodically update the index.
* @property tags Tags for labeling the data source
*/
public data class GetDataSourceResult(
public val arn: String? = null,
public val customDocumentEnrichmentConfiguration: DataSourceCustomDocumentEnrichmentConfiguration? =
null,
public val dataSourceConfiguration: DataSourceConfiguration? = null,
public val description: String? = null,
public val id: String? = null,
public val indexId: String? = null,
public val languageCode: String? = null,
public val name: String? = null,
public val roleArn: String? = null,
public val schedule: String? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.kendra.outputs.GetDataSourceResult): GetDataSourceResult = GetDataSourceResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
customDocumentEnrichmentConfiguration = javaType.customDocumentEnrichmentConfiguration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kendra.kotlin.outputs.DataSourceCustomDocumentEnrichmentConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
dataSourceConfiguration = javaType.dataSourceConfiguration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kendra.kotlin.outputs.DataSourceConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
indexId = javaType.indexId().map({ args0 -> args0 }).orElse(null),
languageCode = javaType.languageCode().map({ args0 -> args0 }).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
roleArn = javaType.roleArn().map({ args0 -> args0 }).orElse(null),
schedule = javaType.schedule().map({ args0 -> args0 }).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy