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

com.pulumi.awsnative.cleanroomsml.kotlin.TrainingDatasetArgs.kt Maven / Gradle / Ivy

@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("tocikeqmuwydqxcn")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the training dataset.
     */
    @JvmName("dfitpusnmewotsfg")
    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("bxsfntqwvectcwke")
    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("ijxwcrghxqpjecat")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("kirbulahkjatfeon")
    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("xmbvqypkwwretuxi")
    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("cfiuwbgjxbetfpvg")
    public suspend fun trainingData(`value`: Output>) {
        this.trainingData = value
    }

    @JvmName("mfvmncwthxpuygtf")
    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("gpeoumbhvwolekob")
    public suspend fun trainingData(values: List>) {
        this.trainingData = Output.all(values)
    }

    /**
     * @param value The description of the training dataset.
     */
    @JvmName("plvukrfufljnytxd")
    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("ubrvjimusfyejegd")
    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("rqwwttyyguntbrgk")
    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("gcmhvtwsntwqtome")
    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("srffitfhgnnxgkka")
    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("mslbknuxasvtwduf")
    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("cixjdfolitvebwqb")
    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("txhordfoneqmolov")
    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("sapessafnlvksisy")
    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("hyanuiodkqoxecel")
    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("ofbrqsiolyyrynjy")
    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("qivufsddvsbukyfq")
    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("nvvleyqdktmtuhxk")
    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