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

com.pulumi.awsnative.ivs.kotlin.StorageConfigurationArgs.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.ivs.kotlin

import com.pulumi.awsnative.ivs.StorageConfigurationArgs.builder
import com.pulumi.awsnative.ivs.kotlin.inputs.StorageConfigurationS3StorageConfigurationArgs
import com.pulumi.awsnative.ivs.kotlin.inputs.StorageConfigurationS3StorageConfigurationArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::IVS::StorageConfiguration
 * @property name Storage Configuration Name.
 * @property s3 An S3 storage configuration contains information about where recorded video will be stored. See the [S3StorageConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-s3storageconfiguration.html) property type for more information.
 * @property tags A list of key-value pairs that contain metadata for the asset model.
 */
public data class StorageConfigurationArgs(
    public val name: Output? = null,
    public val s3: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ivs.StorageConfigurationArgs =
        com.pulumi.awsnative.ivs.StorageConfigurationArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .s3(s3?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var s3: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Storage Configuration Name.
     */
    @JvmName("lgaecphoirhbcrvw")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value An S3 storage configuration contains information about where recorded video will be stored. See the [S3StorageConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-s3storageconfiguration.html) property type for more information.
     */
    @JvmName("ysylamfqknuhuewa")
    public suspend fun s3(`value`: Output) {
        this.s3 = value
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("pkgmqthdthonvjpy")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("qphyvxhsjtclqfyk")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Storage Configuration Name.
     */
    @JvmName("nxlmvykjvowxqcku")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value An S3 storage configuration contains information about where recorded video will be stored. See the [S3StorageConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-s3storageconfiguration.html) property type for more information.
     */
    @JvmName("xkcgfthxutctyywt")
    public suspend fun s3(`value`: StorageConfigurationS3StorageConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3 = mapped
    }

    /**
     * @param argument An S3 storage configuration contains information about where recorded video will be stored. See the [S3StorageConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-storageconfiguration-s3storageconfiguration.html) property type for more information.
     */
    @JvmName("ssbutfgvrtmghdvd")
    public suspend fun s3(argument: suspend StorageConfigurationS3StorageConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = StorageConfigurationS3StorageConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.s3 = mapped
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("iolulpugaxjgltlv")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("qaulaqmemfqmwnuh")
    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 A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("cjitcnqscxxbobrb")
    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 A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("uitucuslvsulrjyp")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A list of key-value pairs that contain metadata for the asset model.
     */
    @JvmName("nxvpafhqoxljlhtr")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): StorageConfigurationArgs = StorageConfigurationArgs(
        name = name,
        s3 = s3,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy