com.pulumi.digitalocean.kotlin.outputs.AppSpecWorkerLogDestination.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-digitalocean-kotlin Show documentation
Show all versions of pulumi-digitalocean-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.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 AppSpecWorkerLogDestination(
public val datadog: AppSpecWorkerLogDestinationDatadog? = null,
public val logtail: AppSpecWorkerLogDestinationLogtail? = null,
public val name: String,
public val papertrail: AppSpecWorkerLogDestinationPapertrail? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.AppSpecWorkerLogDestination): AppSpecWorkerLogDestination = AppSpecWorkerLogDestination(
datadog = javaType.datadog().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecWorkerLogDestinationDatadog.Companion.toKotlin(args0)
})
}).orElse(null),
logtail = javaType.logtail().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecWorkerLogDestinationLogtail.Companion.toKotlin(args0)
})
}).orElse(null),
name = javaType.name(),
papertrail = javaType.papertrail().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecWorkerLogDestinationPapertrail.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}