![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.kendra.kotlin.inputs.DataSourceS3PathArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.kendra.kotlin.inputs
import com.pulumi.awsnative.kendra.inputs.DataSourceS3PathArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property bucket The name of the S3 bucket that contains the file.
* @property key The name of the file.
*/
public data class DataSourceS3PathArgs(
public val bucket: Output,
public val key: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.kendra.inputs.DataSourceS3PathArgs =
com.pulumi.awsnative.kendra.inputs.DataSourceS3PathArgs.builder()
.bucket(bucket.applyValue({ args0 -> args0 }))
.key(key.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DataSourceS3PathArgs].
*/
@PulumiTagMarker
public class DataSourceS3PathArgsBuilder internal constructor() {
private var bucket: Output? = null
private var key: Output? = null
/**
* @param value The name of the S3 bucket that contains the file.
*/
@JvmName("pbqnmngmnobwvmib")
public suspend fun bucket(`value`: Output) {
this.bucket = value
}
/**
* @param value The name of the file.
*/
@JvmName("ytkpccdpubtjopol")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value The name of the S3 bucket that contains the file.
*/
@JvmName("bnteiwfyeyfroesg")
public suspend fun bucket(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.bucket = mapped
}
/**
* @param value The name of the file.
*/
@JvmName("sqeitigiycrlykkv")
public suspend fun key(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.key = mapped
}
internal fun build(): DataSourceS3PathArgs = DataSourceS3PathArgs(
bucket = bucket ?: throw PulumiNullFieldException("bucket"),
key = key ?: throw PulumiNullFieldException("key"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy