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

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

import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property arn The Amazon resource name (ARN) 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 GetStreamResult(
    public val arn: String? = null,
    public val retentionPeriodHours: Int? = null,
    public val shardCount: Int? = null,
    public val streamEncryption: StreamEncryption? = null,
    public val streamModeDetails: StreamModeDetails? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.kinesis.outputs.GetStreamResult): GetStreamResult = GetStreamResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            retentionPeriodHours = javaType.retentionPeriodHours().map({ args0 -> args0 }).orElse(null),
            shardCount = javaType.shardCount().map({ args0 -> args0 }).orElse(null),
            streamEncryption = javaType.streamEncryption().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kinesis.kotlin.outputs.StreamEncryption.Companion.toKotlin(args0)
                })
            }).orElse(null),
            streamModeDetails = javaType.streamModeDetails().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kinesis.kotlin.outputs.StreamModeDetails.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy