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

com.pulumi.awsnative.kinesis.kotlin.StreamArgs.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.kinesis.kotlin

import com.pulumi.awsnative.kinesis.StreamArgs.builder
import com.pulumi.awsnative.kinesis.kotlin.inputs.StreamEncryptionArgs
import com.pulumi.awsnative.kinesis.kotlin.inputs.StreamEncryptionArgsBuilder
import com.pulumi.awsnative.kinesis.kotlin.inputs.StreamModeDetailsArgs
import com.pulumi.awsnative.kinesis.kotlin.inputs.StreamModeDetailsArgsBuilder
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Kinesis::Stream
 * @property name The name of the Kinesis stream.
 * @property retentionPeriodHours The number of hours for the data records that are stored in shards to remain accessible.
 * @property shardCount The number of shards that the stream uses. Required when StreamMode = PROVISIONED is passed.
 * @property streamEncryption When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.
 * @property streamModeDetails The mode in which the stream is running.
 * @property tags An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.
 */
public data class StreamArgs(
    public val name: Output? = null,
    public val retentionPeriodHours: Output? = null,
    public val shardCount: Output? = null,
    public val streamEncryption: Output? = null,
    public val streamModeDetails: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kinesis.StreamArgs =
        com.pulumi.awsnative.kinesis.StreamArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .retentionPeriodHours(retentionPeriodHours?.applyValue({ args0 -> args0 }))
            .shardCount(shardCount?.applyValue({ args0 -> args0 }))
            .streamEncryption(streamEncryption?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .streamModeDetails(streamModeDetails?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [StreamArgs].
 */
@PulumiTagMarker
public class StreamArgsBuilder internal constructor() {
    private var name: Output? = null

    private var retentionPeriodHours: Output? = null

    private var shardCount: Output? = null

    private var streamEncryption: Output? = null

    private var streamModeDetails: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the Kinesis stream.
     */
    @JvmName("mcskoinqwnlylnag")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The number of hours for the data records that are stored in shards to remain accessible.
     */
    @JvmName("lbsopqsahgvqgope")
    public suspend fun retentionPeriodHours(`value`: Output) {
        this.retentionPeriodHours = value
    }

    /**
     * @param value The number of shards that the stream uses. Required when StreamMode = PROVISIONED is passed.
     */
    @JvmName("kvdxcxhftktdpkol")
    public suspend fun shardCount(`value`: Output) {
        this.shardCount = value
    }

    /**
     * @param value When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.
     */
    @JvmName("oweibcoccbfltuku")
    public suspend fun streamEncryption(`value`: Output) {
        this.streamEncryption = value
    }

    /**
     * @param value The mode in which the stream is running.
     */
    @JvmName("puuicqknxqdmlpgl")
    public suspend fun streamModeDetails(`value`: Output) {
        this.streamModeDetails = value
    }

    /**
     * @param value An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.
     */
    @JvmName("lkxggbbmihudeosq")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("yalpqyqlnoafnwkm")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.
     */
    @JvmName("twoaudemujcytalj")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name of the Kinesis stream.
     */
    @JvmName("tyymioaowjiqoqcr")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The number of hours for the data records that are stored in shards to remain accessible.
     */
    @JvmName("ojtyvssdgcasyksh")
    public suspend fun retentionPeriodHours(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionPeriodHours = mapped
    }

    /**
     * @param value The number of shards that the stream uses. Required when StreamMode = PROVISIONED is passed.
     */
    @JvmName("mbnumjfiebtbgwhc")
    public suspend fun shardCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.shardCount = mapped
    }

    /**
     * @param value When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.
     */
    @JvmName("pjbfcghxmctaebui")
    public suspend fun streamEncryption(`value`: StreamEncryptionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streamEncryption = mapped
    }

    /**
     * @param argument When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.
     */
    @JvmName("iktvdhlwhevdsyeq")
    public suspend fun streamEncryption(argument: suspend StreamEncryptionArgsBuilder.() -> Unit) {
        val toBeMapped = StreamEncryptionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.streamEncryption = mapped
    }

    /**
     * @param value The mode in which the stream is running.
     */
    @JvmName("yvdmehkqkhthtfbu")
    public suspend fun streamModeDetails(`value`: StreamModeDetailsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streamModeDetails = mapped
    }

    /**
     * @param argument The mode in which the stream is running.
     */
    @JvmName("ggpiuutfdftmiqfo")
    public suspend fun streamModeDetails(argument: suspend StreamModeDetailsArgsBuilder.() -> Unit) {
        val toBeMapped = StreamModeDetailsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.streamModeDetails = mapped
    }

    /**
     * @param value An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.
     */
    @JvmName("vuxivjsddmxdsrgh")
    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) to associate with the Kinesis stream.
     */
    @JvmName("ofljtqfigbtgqgcs")
    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) to associate with the Kinesis stream.
     */
    @JvmName("krasdpxfugjhntsv")
    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) to associate with the Kinesis stream.
     */
    @JvmName("tmvkoiscootgquip")
    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) to associate with the Kinesis stream.
     */
    @JvmName("jmwmimihsmxnqiie")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): StreamArgs = StreamArgs(
        name = name,
        retentionPeriodHours = retentionPeriodHours,
        shardCount = shardCount,
        streamEncryption = streamEncryption,
        streamModeDetails = streamModeDetails,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy