com.pulumi.digitalocean.kotlin.outputs.AppSpecFunctionLogDestination.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property datadog Datadog configuration.
* @property logtail Logtail configuration.
* @property name Name of the log destination. Minimum length: 2. Maximum length: 42.
* @property papertrail Papertrail configuration.
*/
public data class AppSpecFunctionLogDestination(
public val datadog: AppSpecFunctionLogDestinationDatadog? = null,
public val logtail: AppSpecFunctionLogDestinationLogtail? = null,
public val name: String,
public val papertrail: AppSpecFunctionLogDestinationPapertrail? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.AppSpecFunctionLogDestination): AppSpecFunctionLogDestination = AppSpecFunctionLogDestination(
datadog = javaType.datadog().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecFunctionLogDestinationDatadog.Companion.toKotlin(args0)
})
}).orElse(null),
logtail = javaType.logtail().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecFunctionLogDestinationLogtail.Companion.toKotlin(args0)
})
}).orElse(null),
name = javaType.name(),
papertrail = javaType.papertrail().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecFunctionLogDestinationPapertrail.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}