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

com.pulumi.awsnative.iotanalytics.kotlin.ChannelArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iotanalytics.kotlin

import com.pulumi.awsnative.iotanalytics.ChannelArgs.builder
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.ChannelRetentionPeriodArgs
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.ChannelRetentionPeriodArgsBuilder
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.ChannelStorageArgs
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.ChannelStorageArgsBuilder
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::IoTAnalytics::Channel
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property channelName The name of the channel.
 * @property channelStorage Where channel data is stored.
 * @property retentionPeriod How long, in days, message data is kept for the channel.
 * @property tags Metadata which can be used to manage the channel.
 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
 */
public data class ChannelArgs(
    public val channelName: Output? = null,
    public val channelStorage: Output? = null,
    public val retentionPeriod: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotanalytics.ChannelArgs =
        com.pulumi.awsnative.iotanalytics.ChannelArgs.builder()
            .channelName(channelName?.applyValue({ args0 -> args0 }))
            .channelStorage(channelStorage?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .retentionPeriod(retentionPeriod?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ChannelArgs].
 */
@PulumiTagMarker
public class ChannelArgsBuilder internal constructor() {
    private var channelName: Output? = null

    private var channelStorage: Output? = null

    private var retentionPeriod: Output? = null

    private var tags: Output>? = null

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

    /**
     * @param value Where channel data is stored.
     */
    @JvmName("syqktpmxpldrsyum")
    public suspend fun channelStorage(`value`: Output) {
        this.channelStorage = value
    }

    /**
     * @param value How long, in days, message data is kept for the channel.
     */
    @JvmName("ajcdtownnjkqjqrg")
    public suspend fun retentionPeriod(`value`: Output) {
        this.retentionPeriod = value
    }

    /**
     * @param value Metadata which can be used to manage the channel.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("hrmklplkmhyhqkil")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Metadata which can be used to manage the channel.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("ufmatbvxnliclpdm")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value Where channel data is stored.
     */
    @JvmName("uujfsbdxkyirqyjf")
    public suspend fun channelStorage(`value`: ChannelStorageArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.channelStorage = mapped
    }

    /**
     * @param argument Where channel data is stored.
     */
    @JvmName("unfsjrwuexirmrua")
    public suspend fun channelStorage(argument: suspend ChannelStorageArgsBuilder.() -> Unit) {
        val toBeMapped = ChannelStorageArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.channelStorage = mapped
    }

    /**
     * @param value How long, in days, message data is kept for the channel.
     */
    @JvmName("cqyvvloesyjchiiu")
    public suspend fun retentionPeriod(`value`: ChannelRetentionPeriodArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionPeriod = mapped
    }

    /**
     * @param argument How long, in days, message data is kept for the channel.
     */
    @JvmName("dnhbigutcavaaybc")
    public suspend fun retentionPeriod(argument: suspend ChannelRetentionPeriodArgsBuilder.() -> Unit) {
        val toBeMapped = ChannelRetentionPeriodArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.retentionPeriod = mapped
    }

    /**
     * @param value Metadata which can be used to manage the channel.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("vwvrytsojjxwolck")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Metadata which can be used to manage the channel.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("tygybthynpngdpoe")
    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 Metadata which can be used to manage the channel.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("qgajiuflrnjulfxu")
    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 Metadata which can be used to manage the channel.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("kvhmbhpvcengprtj")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Metadata which can be used to manage the channel.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("udvdtjasiuojqofx")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ChannelArgs = ChannelArgs(
        channelName = channelName,
        channelStorage = channelStorage,
        retentionPeriod = retentionPeriod,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy