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

com.pulumi.awsnative.cloudfront.kotlin.inputs.RealtimeLogConfigEndPointArgs.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.cloudfront.kotlin.inputs

import com.pulumi.awsnative.cloudfront.inputs.RealtimeLogConfigEndPointArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property kinesisStreamConfig Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
 * @property streamType The type of data stream where you are sending real-time log data. The only valid value is `Kinesis` .
 */
public data class RealtimeLogConfigEndPointArgs(
    public val kinesisStreamConfig: Output,
    public val streamType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.RealtimeLogConfigEndPointArgs =
        com.pulumi.awsnative.cloudfront.inputs.RealtimeLogConfigEndPointArgs.builder()
            .kinesisStreamConfig(
                kinesisStreamConfig.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .streamType(streamType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RealtimeLogConfigEndPointArgs].
 */
@PulumiTagMarker
public class RealtimeLogConfigEndPointArgsBuilder internal constructor() {
    private var kinesisStreamConfig: Output? = null

    private var streamType: Output? = null

    /**
     * @param value Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
     */
    @JvmName("xxsqalspemkhuibv")
    public suspend fun kinesisStreamConfig(`value`: Output) {
        this.kinesisStreamConfig = value
    }

    /**
     * @param value The type of data stream where you are sending real-time log data. The only valid value is `Kinesis` .
     */
    @JvmName("xkdtpbbtqdlmbkho")
    public suspend fun streamType(`value`: Output) {
        this.streamType = value
    }

    /**
     * @param value Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
     */
    @JvmName("eovflogesjtikyyd")
    public suspend fun kinesisStreamConfig(`value`: RealtimeLogConfigKinesisStreamConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.kinesisStreamConfig = mapped
    }

    /**
     * @param argument Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
     */
    @JvmName("jlpoxuopgejreoqo")
    public suspend fun kinesisStreamConfig(argument: suspend RealtimeLogConfigKinesisStreamConfigArgsBuilder.() -> Unit) {
        val toBeMapped = RealtimeLogConfigKinesisStreamConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.kinesisStreamConfig = mapped
    }

    /**
     * @param value The type of data stream where you are sending real-time log data. The only valid value is `Kinesis` .
     */
    @JvmName("eknspkiqvbajouam")
    public suspend fun streamType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streamType = mapped
    }

    internal fun build(): RealtimeLogConfigEndPointArgs = RealtimeLogConfigEndPointArgs(
        kinesisStreamConfig = kinesisStreamConfig ?: throw PulumiNullFieldException("kinesisStreamConfig"),
        streamType = streamType ?: throw PulumiNullFieldException("streamType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy