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

com.pulumi.awsnative.cleanroomsml.kotlin.TrainingDatasetArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cleanroomsml.kotlin

import com.pulumi.awsnative.cleanroomsml.TrainingDatasetArgs.builder
import com.pulumi.awsnative.cleanroomsml.kotlin.inputs.TrainingDatasetDatasetArgs
import com.pulumi.awsnative.cleanroomsml.kotlin.inputs.TrainingDatasetDatasetArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::CleanRoomsML::TrainingDataset Resource Type
 * @property description The description of the training dataset.
 * @property name The name of the training dataset.
 * @property roleArn The ARN of the IAM role that Clean Rooms ML can assume to read the data referred to in the `dataSource` field of each dataset.
 * Passing a role across accounts is not allowed. If you pass a role that isn't in your account, you get an `AccessDeniedException` error.
 * @property tags An arbitrary set of tags (key-value pairs) for this cleanrooms-ml training dataset.
 * @property trainingData An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema. You must provide a role that has read access to these tables.
 */
public data class TrainingDatasetArgs(
    public val description: Output? = null,
    public val name: Output? = null,
    public val roleArn: Output? = null,
    public val tags: Output>? = null,
    public val trainingData: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cleanroomsml.TrainingDatasetArgs =
        com.pulumi.awsnative.cleanroomsml.TrainingDatasetArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .trainingData(
                trainingData?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [TrainingDatasetArgs].
 */
@PulumiTagMarker
public class TrainingDatasetArgsBuilder internal constructor() {
    private var description: Output? = null

    private var name: Output? = null

    private var roleArn: Output? = null

    private var tags: Output>? = null

    private var trainingData: Output>? = null

    /**
     * @param value The description of the training dataset.
     */
    @JvmName("iokfhtegpvnmmjvv")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the training dataset.
     */
    @JvmName("ssgcmcyjmnnpcylj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ARN of the IAM role that Clean Rooms ML can assume to read the data referred to in the `dataSource` field of each dataset.
     * Passing a role across accounts is not allowed. If you pass a role that isn't in your account, you get an `AccessDeniedException` error.
     */
    @JvmName("nnonefkgdawgkoub")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value An arbitrary set of tags (key-value pairs) for this cleanrooms-ml training dataset.
     */
    @JvmName("xdkjoxsoipclegtt")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("cyawwduygqmpckre")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An arbitrary set of tags (key-value pairs) for this cleanrooms-ml training dataset.
     */
    @JvmName("elfypyfesltojeio")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema. You must provide a role that has read access to these tables.
     */
    @JvmName("dqfljhtbovmajjcb")
    public suspend fun trainingData(`value`: Output>) {
        this.trainingData = value
    }

    @JvmName("nkoniavrrinpkyfb")
    public suspend fun trainingData(vararg values: Output) {
        this.trainingData = Output.all(values.asList())
    }

    /**
     * @param values An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema. You must provide a role that has read access to these tables.
     */
    @JvmName("gyqgqykmqgfvokmr")
    public suspend fun trainingData(values: List>) {
        this.trainingData = Output.all(values)
    }

    /**
     * @param value The description of the training dataset.
     */
    @JvmName("oebdnqfbawopdumr")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the training dataset.
     */
    @JvmName("fvpoulmdpciyscpy")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ARN of the IAM role that Clean Rooms ML can assume to read the data referred to in the `dataSource` field of each dataset.
     * Passing a role across accounts is not allowed. If you pass a role that isn't in your account, you get an `AccessDeniedException` error.
     */
    @JvmName("xjjkeknwvplpaprj")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value An arbitrary set of tags (key-value pairs) for this cleanrooms-ml training dataset.
     */
    @JvmName("dgcmtjhmfwpywqtw")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An arbitrary set of tags (key-value pairs) for this cleanrooms-ml training dataset.
     */
    @JvmName("ikvvffsbhfcyeewa")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An arbitrary set of tags (key-value pairs) for this cleanrooms-ml training dataset.
     */
    @JvmName("lrwpmpnuyfpjxofi")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An arbitrary set of tags (key-value pairs) for this cleanrooms-ml training dataset.
     */
    @JvmName("fraimqjtnsarorar")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An arbitrary set of tags (key-value pairs) for this cleanrooms-ml training dataset.
     */
    @JvmName("dsvjuytyrokealir")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema. You must provide a role that has read access to these tables.
     */
    @JvmName("pvcwgyaahondhqoy")
    public suspend fun trainingData(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trainingData = mapped
    }

    /**
     * @param argument An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema. You must provide a role that has read access to these tables.
     */
    @JvmName("tiqqhcxqrfexwxwu")
    public suspend fun trainingData(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TrainingDatasetDatasetArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.trainingData = mapped
    }

    /**
     * @param argument An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema. You must provide a role that has read access to these tables.
     */
    @JvmName("bmlpaibdnvwghbsh")
    public suspend fun trainingData(vararg argument: suspend TrainingDatasetDatasetArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TrainingDatasetDatasetArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.trainingData = mapped
    }

    /**
     * @param argument An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema. You must provide a role that has read access to these tables.
     */
    @JvmName("wscwcaauqvbnhsna")
    public suspend fun trainingData(argument: suspend TrainingDatasetDatasetArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TrainingDatasetDatasetArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.trainingData = mapped
    }

    /**
     * @param values An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema. You must provide a role that has read access to these tables.
     */
    @JvmName("nvcpycghrabsjose")
    public suspend fun trainingData(vararg values: TrainingDatasetDatasetArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.trainingData = mapped
    }

    internal fun build(): TrainingDatasetArgs = TrainingDatasetArgs(
        description = description,
        name = name,
        roleArn = roleArn,
        tags = tags,
        trainingData = trainingData,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy