![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.bedrock.kotlin.inputs.PromptTextS3LocationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.bedrock.kotlin.inputs
import com.pulumi.awsnative.bedrock.inputs.PromptTextS3LocationArgs.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
/**
* The identifier for the S3 resource.
* @property bucket A bucket in S3
* @property key A object key in S3
* @property version The version of the the S3 object to use
*/
public data class PromptTextS3LocationArgs(
public val bucket: Output,
public val key: Output,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.bedrock.inputs.PromptTextS3LocationArgs =
com.pulumi.awsnative.bedrock.inputs.PromptTextS3LocationArgs.builder()
.bucket(bucket.applyValue({ args0 -> args0 }))
.key(key.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PromptTextS3LocationArgs].
*/
@PulumiTagMarker
public class PromptTextS3LocationArgsBuilder internal constructor() {
private var bucket: Output? = null
private var key: Output? = null
private var version: Output? = null
/**
* @param value A bucket in S3
*/
@JvmName("iayhitankdmbaetf")
public suspend fun bucket(`value`: Output) {
this.bucket = value
}
/**
* @param value A object key in S3
*/
@JvmName("wnwihfccfarpntow")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value The version of the the S3 object to use
*/
@JvmName("jvuiaqwmxhcrlwrk")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value A bucket in S3
*/
@JvmName("jqvmapamejjmbbuv")
public suspend fun bucket(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.bucket = mapped
}
/**
* @param value A object key in S3
*/
@JvmName("gkwwimjwapkcpwox")
public suspend fun key(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.key = mapped
}
/**
* @param value The version of the the S3 object to use
*/
@JvmName("jaiulhlqflelaafh")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): PromptTextS3LocationArgs = PromptTextS3LocationArgs(
bucket = bucket ?: throw PulumiNullFieldException("bucket"),
key = key ?: throw PulumiNullFieldException("key"),
version = version,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy