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

com.pulumi.digitalocean.kotlin.outputs.AppSpecWorkerLogDestination.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 4.35.0.0
Show newest version
@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),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy