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

com.pulumi.awsnative.kinesisvideo.kotlin.StreamArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.kinesisvideo.kotlin

import com.pulumi.awsnative.kinesisvideo.StreamArgs.builder
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::KinesisVideo::Stream
 * @property dataRetentionInHours The number of hours till which Kinesis Video will retain the data in the stream
 * @property deviceName The name of the device that is writing to the stream.
 * @property kmsKeyId AWS KMS key ID that Kinesis Video Streams uses to encrypt stream data.
 * @property mediaType The media type of the stream. Consumers of the stream can use this information when processing the stream.
 * @property name The name of the Kinesis Video stream.
 * @property tags An array of key-value pairs associated with the Kinesis Video Stream.
 */
public data class StreamArgs(
    public val dataRetentionInHours: Output? = null,
    public val deviceName: Output? = null,
    public val kmsKeyId: Output? = null,
    public val mediaType: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kinesisvideo.StreamArgs =
        com.pulumi.awsnative.kinesisvideo.StreamArgs.builder()
            .dataRetentionInHours(dataRetentionInHours?.applyValue({ args0 -> args0 }))
            .deviceName(deviceName?.applyValue({ args0 -> args0 }))
            .kmsKeyId(kmsKeyId?.applyValue({ args0 -> args0 }))
            .mediaType(mediaType?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var deviceName: Output? = null

    private var kmsKeyId: Output? = null

    private var mediaType: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The number of hours till which Kinesis Video will retain the data in the stream
     */
    @JvmName("hlpeausygtnjdnqk")
    public suspend fun dataRetentionInHours(`value`: Output) {
        this.dataRetentionInHours = value
    }

    /**
     * @param value The name of the device that is writing to the stream.
     */
    @JvmName("jxltjjydrrdmgkri")
    public suspend fun deviceName(`value`: Output) {
        this.deviceName = value
    }

    /**
     * @param value AWS KMS key ID that Kinesis Video Streams uses to encrypt stream data.
     */
    @JvmName("qglmokhhycmijqwc")
    public suspend fun kmsKeyId(`value`: Output) {
        this.kmsKeyId = value
    }

    /**
     * @param value The media type of the stream. Consumers of the stream can use this information when processing the stream.
     */
    @JvmName("bphyhtoeswcrmrhm")
    public suspend fun mediaType(`value`: Output) {
        this.mediaType = value
    }

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

    /**
     * @param value An array of key-value pairs associated with the Kinesis Video Stream.
     */
    @JvmName("popggorjgxgaawra")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs associated with the Kinesis Video Stream.
     */
    @JvmName("gvxbefewlumoqkyl")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The number of hours till which Kinesis Video will retain the data in the stream
     */
    @JvmName("cyctgdyqcticfyjb")
    public suspend fun dataRetentionInHours(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataRetentionInHours = mapped
    }

    /**
     * @param value The name of the device that is writing to the stream.
     */
    @JvmName("gdhxanmicochgmxy")
    public suspend fun deviceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deviceName = mapped
    }

    /**
     * @param value AWS KMS key ID that Kinesis Video Streams uses to encrypt stream data.
     */
    @JvmName("aysfkddohmjawtaj")
    public suspend fun kmsKeyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyId = mapped
    }

    /**
     * @param value The media type of the stream. Consumers of the stream can use this information when processing the stream.
     */
    @JvmName("fslibboxgfskjqdx")
    public suspend fun mediaType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mediaType = mapped
    }

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

    /**
     * @param value An array of key-value pairs associated with the Kinesis Video Stream.
     */
    @JvmName("hxvhdwqbpnigcdpb")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs associated with the Kinesis Video Stream.
     */
    @JvmName("unppujboclaysivk")
    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 array of key-value pairs associated with the Kinesis Video Stream.
     */
    @JvmName("qsthnvlqmhidxlvs")
    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 array of key-value pairs associated with the Kinesis Video Stream.
     */
    @JvmName("siyywxbvlergwctm")
    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 array of key-value pairs associated with the Kinesis Video Stream.
     */
    @JvmName("mpcmgcdqekpyodsr")
    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(
        dataRetentionInHours = dataRetentionInHours,
        deviceName = deviceName,
        kmsKeyId = kmsKeyId,
        mediaType = mediaType,
        name = name,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy