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

com.pulumi.awsnative.timestream.kotlin.inputs.ScheduledQueryTargetConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.timestream.kotlin.inputs

import com.pulumi.awsnative.timestream.inputs.ScheduledQueryTargetConfigurationArgs.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

/**
 * Configuration of target store where scheduled query results are written to.
 * @property timestreamConfiguration Configuration needed to write data into the Timestream database and table.
 */
public data class ScheduledQueryTargetConfigurationArgs(
    public val timestreamConfiguration: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.timestream.inputs.ScheduledQueryTargetConfigurationArgs =
        com.pulumi.awsnative.timestream.inputs.ScheduledQueryTargetConfigurationArgs.builder()
            .timestreamConfiguration(
                timestreamConfiguration.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ScheduledQueryTargetConfigurationArgs].
 */
@PulumiTagMarker
public class ScheduledQueryTargetConfigurationArgsBuilder internal constructor() {
    private var timestreamConfiguration: Output? = null

    /**
     * @param value Configuration needed to write data into the Timestream database and table.
     */
    @JvmName("ylfokvlfgnmeotec")
    public suspend fun timestreamConfiguration(`value`: Output) {
        this.timestreamConfiguration = value
    }

    /**
     * @param value Configuration needed to write data into the Timestream database and table.
     */
    @JvmName("rjahimpwnrbnvigc")
    public suspend fun timestreamConfiguration(`value`: ScheduledQueryTimestreamConfigurationArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timestreamConfiguration = mapped
    }

    /**
     * @param argument Configuration needed to write data into the Timestream database and table.
     */
    @JvmName("xscxhtgilhicdndv")
    public suspend fun timestreamConfiguration(argument: suspend ScheduledQueryTimestreamConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ScheduledQueryTimestreamConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.timestreamConfiguration = mapped
    }

    internal fun build(): ScheduledQueryTargetConfigurationArgs =
        ScheduledQueryTargetConfigurationArgs(
            timestreamConfiguration = timestreamConfiguration ?: throw
                PulumiNullFieldException("timestreamConfiguration"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy