
com.pulumi.awsnative.osis.kotlin.inputs.PipelineLogPublishingOptionsArgs.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.osis.kotlin.inputs
import com.pulumi.awsnative.osis.inputs.PipelineLogPublishingOptionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Key-value pairs to configure log publishing.
* @property cloudWatchLogDestination The destination for OpenSearch Ingestion Service logs sent to Amazon CloudWatch.
* @property isLoggingEnabled Whether logs should be published.
*/
public data class PipelineLogPublishingOptionsArgs(
public val cloudWatchLogDestination: Output? = null,
public val isLoggingEnabled: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.osis.inputs.PipelineLogPublishingOptionsArgs =
com.pulumi.awsnative.osis.inputs.PipelineLogPublishingOptionsArgs.builder()
.cloudWatchLogDestination(
cloudWatchLogDestination?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.isLoggingEnabled(isLoggingEnabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PipelineLogPublishingOptionsArgs].
*/
@PulumiTagMarker
public class PipelineLogPublishingOptionsArgsBuilder internal constructor() {
private var cloudWatchLogDestination:
Output? = null
private var isLoggingEnabled: Output? = null
/**
* @param value The destination for OpenSearch Ingestion Service logs sent to Amazon CloudWatch.
*/
@JvmName("imloqckmtepbbrun")
public suspend fun cloudWatchLogDestination(`value`: Output) {
this.cloudWatchLogDestination = value
}
/**
* @param value Whether logs should be published.
*/
@JvmName("edxkcmkwatcdqnuq")
public suspend fun isLoggingEnabled(`value`: Output) {
this.isLoggingEnabled = value
}
/**
* @param value The destination for OpenSearch Ingestion Service logs sent to Amazon CloudWatch.
*/
@JvmName("lwfcdiadowulacpt")
public suspend fun cloudWatchLogDestination(`value`: PipelineLogPublishingOptionsCloudWatchLogDestinationPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cloudWatchLogDestination = mapped
}
/**
* @param argument The destination for OpenSearch Ingestion Service logs sent to Amazon CloudWatch.
*/
@JvmName("xkyqedqsifntoawq")
public suspend fun cloudWatchLogDestination(argument: suspend PipelineLogPublishingOptionsCloudWatchLogDestinationPropertiesArgsBuilder.() -> Unit) {
val toBeMapped =
PipelineLogPublishingOptionsCloudWatchLogDestinationPropertiesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.cloudWatchLogDestination = mapped
}
/**
* @param value Whether logs should be published.
*/
@JvmName("fkwqjnqftinshimb")
public suspend fun isLoggingEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.isLoggingEnabled = mapped
}
internal fun build(): PipelineLogPublishingOptionsArgs = PipelineLogPublishingOptionsArgs(
cloudWatchLogDestination = cloudWatchLogDestination,
isLoggingEnabled = isLoggingEnabled,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy