com.pulumi.awsnative.cloudtrail.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.cloudtrail.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property channelArn `Ref` returns the ARN of the CloudTrail channel, such as `arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890` .
* @property destinations One or more resources to which events arriving through a channel are logged and stored.
* @property name The name of the channel.
*/
public data class GetChannelResult(
public val channelArn: String? = null,
public val destinations: List? = null,
public val name: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.cloudtrail.outputs.GetChannelResult): GetChannelResult = GetChannelResult(
channelArn = javaType.channelArn().map({ args0 -> args0 }).orElse(null),
destinations = javaType.destinations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.cloudtrail.kotlin.outputs.ChannelDestination.Companion.toKotlin(args0)
})
}),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
)
}
}