All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.kendra.kotlin.inputs.ThesaurusSourceS3PathArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.kendra.kotlin.inputs

import com.pulumi.aws.kendra.inputs.ThesaurusSourceS3PathArgs.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.
 * The following arguments are optional:
 */
public data class ThesaurusSourceS3PathArgs(
    public val bucket: Output,
    public val key: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.kendra.inputs.ThesaurusSourceS3PathArgs =
        com.pulumi.aws.kendra.inputs.ThesaurusSourceS3PathArgs.builder()
            .bucket(bucket.applyValue({ args0 -> args0 }))
            .key(key.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ThesaurusSourceS3PathArgs].
 */
@PulumiTagMarker
public class ThesaurusSourceS3PathArgsBuilder 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("tygpbdpncyspuyuk")
    public suspend fun bucket(`value`: Output) {
        this.bucket = value
    }

    /**
     * @param value The name of the file.
     * The following arguments are optional:
     */
    @JvmName("mdkhvfeoqlkmyugt")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value The name of the S3 bucket that contains the file.
     */
    @JvmName("jfmmyaferuxfwjmo")
    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.
     * The following arguments are optional:
     */
    @JvmName("bkrhaonqqwnyrckw")
    public suspend fun key(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.key = mapped
    }

    internal fun build(): ThesaurusSourceS3PathArgs = ThesaurusSourceS3PathArgs(
        bucket = bucket ?: throw PulumiNullFieldException("bucket"),
        key = key ?: throw PulumiNullFieldException("key"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy