com.pulumi.awsnative.kinesis.kotlin.StreamArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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