io.burkard.cdk.services.kendra.CfnDataSourceProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.kendra
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnDataSourceProps {
def apply(
name: String,
indexId: String,
`type`: String,
customDocumentEnrichmentConfiguration: Option[software.amazon.awscdk.services.kendra.CfnDataSource.CustomDocumentEnrichmentConfigurationProperty] = None,
description: Option[String] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
roleArn: Option[String] = None,
dataSourceConfiguration: Option[software.amazon.awscdk.services.kendra.CfnDataSource.DataSourceConfigurationProperty] = None,
schedule: Option[String] = None
): software.amazon.awscdk.services.kendra.CfnDataSourceProps =
(new software.amazon.awscdk.services.kendra.CfnDataSourceProps.Builder)
.name(name)
.indexId(indexId)
.`type`(`type`)
.customDocumentEnrichmentConfiguration(customDocumentEnrichmentConfiguration.orNull)
.description(description.orNull)
.tags(tags.map(_.asJava).orNull)
.roleArn(roleArn.orNull)
.dataSourceConfiguration(dataSourceConfiguration.orNull)
.schedule(schedule.orNull)
.build()
}