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

com.pulumi.awsnative.datazone.kotlin.inputs.DataSourceRedshiftStorage1PropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.datazone.kotlin.inputs

import com.pulumi.awsnative.datazone.inputs.DataSourceRedshiftStorage1PropertiesArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The details of the Amazon Redshift Serverless workgroup source.
 * @property redshiftServerlessSource
 */
public data class DataSourceRedshiftStorage1PropertiesArgs(
    public val redshiftServerlessSource: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datazone.inputs.DataSourceRedshiftStorage1PropertiesArgs =
        com.pulumi.awsnative.datazone.inputs.DataSourceRedshiftStorage1PropertiesArgs.builder()
            .redshiftServerlessSource(
                redshiftServerlessSource.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [DataSourceRedshiftStorage1PropertiesArgs].
 */
@PulumiTagMarker
public class DataSourceRedshiftStorage1PropertiesArgsBuilder internal constructor() {
    private var redshiftServerlessSource: Output? = null

    /**
     * @param value
     */
    @JvmName("pgmedgjvtexrhvoy")
    public suspend fun redshiftServerlessSource(`value`: Output) {
        this.redshiftServerlessSource = value
    }

    /**
     * @param value
     */
    @JvmName("gyavelfmnsrnoidh")
    public suspend fun redshiftServerlessSource(`value`: DataSourceRedshiftServerlessStorageArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.redshiftServerlessSource = mapped
    }

    /**
     * @param argument
     */
    @JvmName("tqdkiogfnxoakkeo")
    public suspend fun redshiftServerlessSource(argument: suspend DataSourceRedshiftServerlessStorageArgsBuilder.() -> Unit) {
        val toBeMapped = DataSourceRedshiftServerlessStorageArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.redshiftServerlessSource = mapped
    }

    internal fun build(): DataSourceRedshiftStorage1PropertiesArgs =
        DataSourceRedshiftStorage1PropertiesArgs(
            redshiftServerlessSource = redshiftServerlessSource ?: throw
                PulumiNullFieldException("redshiftServerlessSource"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy