com.pulumi.awsnative.iotanalytics.kotlin.outputs.GetChannelResult.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.iotanalytics.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property channelStorage Where channel data is stored.
* @property id
* @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 GetChannelResult(
public val channelStorage: ChannelStorage? = null,
public val id: String? = null,
public val retentionPeriod: ChannelRetentionPeriod? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iotanalytics.outputs.GetChannelResult): GetChannelResult = GetChannelResult(
channelStorage = javaType.channelStorage().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotanalytics.kotlin.outputs.ChannelStorage.Companion.toKotlin(args0)
})
}).orElse(null),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
retentionPeriod = javaType.retentionPeriod().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotanalytics.kotlin.outputs.ChannelRetentionPeriod.Companion.toKotlin(args0)
})
}).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
)
}
}