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

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

package com.pulumi.awsnative.personalize.kotlin

import com.pulumi.awsnative.personalize.DatasetArgs.builder
import com.pulumi.awsnative.personalize.kotlin.enums.DatasetType
import com.pulumi.awsnative.personalize.kotlin.inputs.DatasetImportJobArgs
import com.pulumi.awsnative.personalize.kotlin.inputs.DatasetImportJobArgsBuilder
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.jvm.JvmName

/**
 * Resource schema for AWS::Personalize::Dataset.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property datasetGroupArn The Amazon Resource Name (ARN) of the dataset group to add the dataset to
 * @property datasetImportJob Describes a job that imports training data from a data source (Amazon S3 bucket) to an Amazon Personalize dataset. If you specify a dataset import job as part of a dataset, all dataset import job fields are required.
 * @property datasetType The type of dataset
 * @property name The name for the dataset
 * @property schemaArn The ARN of the schema to associate with the dataset. The schema defines the dataset fields.
 */
public data class DatasetArgs(
    public val datasetGroupArn: Output? = null,
    public val datasetImportJob: Output? = null,
    public val datasetType: Output? = null,
    public val name: Output? = null,
    public val schemaArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.personalize.DatasetArgs =
        com.pulumi.awsnative.personalize.DatasetArgs.builder()
            .datasetGroupArn(datasetGroupArn?.applyValue({ args0 -> args0 }))
            .datasetImportJob(datasetImportJob?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .datasetType(datasetType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .schemaArn(schemaArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatasetArgs].
 */
@PulumiTagMarker
public class DatasetArgsBuilder internal constructor() {
    private var datasetGroupArn: Output? = null

    private var datasetImportJob: Output? = null

    private var datasetType: Output? = null

    private var name: Output? = null

    private var schemaArn: Output? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the dataset group to add the dataset to
     */
    @JvmName("juutbmhyxtejjytf")
    public suspend fun datasetGroupArn(`value`: Output) {
        this.datasetGroupArn = value
    }

    /**
     * @param value Describes a job that imports training data from a data source (Amazon S3 bucket) to an Amazon Personalize dataset. If you specify a dataset import job as part of a dataset, all dataset import job fields are required.
     */
    @JvmName("eylggktwccjwfndw")
    public suspend fun datasetImportJob(`value`: Output) {
        this.datasetImportJob = value
    }

    /**
     * @param value The type of dataset
     */
    @JvmName("qclvmlprxbtkovwg")
    public suspend fun datasetType(`value`: Output) {
        this.datasetType = value
    }

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

    /**
     * @param value The ARN of the schema to associate with the dataset. The schema defines the dataset fields.
     */
    @JvmName("aeaiovdqpxftwbwk")
    public suspend fun schemaArn(`value`: Output) {
        this.schemaArn = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the dataset group to add the dataset to
     */
    @JvmName("gnnjhkhycvufgvmq")
    public suspend fun datasetGroupArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datasetGroupArn = mapped
    }

    /**
     * @param value Describes a job that imports training data from a data source (Amazon S3 bucket) to an Amazon Personalize dataset. If you specify a dataset import job as part of a dataset, all dataset import job fields are required.
     */
    @JvmName("nidhrcxvlanvwxtt")
    public suspend fun datasetImportJob(`value`: DatasetImportJobArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datasetImportJob = mapped
    }

    /**
     * @param argument Describes a job that imports training data from a data source (Amazon S3 bucket) to an Amazon Personalize dataset. If you specify a dataset import job as part of a dataset, all dataset import job fields are required.
     */
    @JvmName("prfkxuisfdmruoem")
    public suspend fun datasetImportJob(argument: suspend DatasetImportJobArgsBuilder.() -> Unit) {
        val toBeMapped = DatasetImportJobArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.datasetImportJob = mapped
    }

    /**
     * @param value The type of dataset
     */
    @JvmName("lyrrnydetmdgpptn")
    public suspend fun datasetType(`value`: DatasetType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datasetType = mapped
    }

    /**
     * @param value The name for the dataset
     */
    @JvmName("oynraviljjeociqx")
    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 schema to associate with the dataset. The schema defines the dataset fields.
     */
    @JvmName("ddlmjwbuyuscgaef")
    public suspend fun schemaArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schemaArn = mapped
    }

    internal fun build(): DatasetArgs = DatasetArgs(
        datasetGroupArn = datasetGroupArn,
        datasetImportJob = datasetImportJob,
        datasetType = datasetType,
        name = name,
        schemaArn = schemaArn,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy