![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.fis.kotlin.inputs.ExperimentTemplateLogConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.fis.kotlin.inputs
import com.pulumi.awsnative.fis.inputs.ExperimentTemplateLogConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property cloudWatchLogsConfiguration The configuration for experiment logging to CloudWatch Logs .
* @property logSchemaVersion The schema version.
* @property s3Configuration The configuration for experiment logging to Amazon S3 .
*/
public data class ExperimentTemplateLogConfigurationArgs(
public val cloudWatchLogsConfiguration: Output? = null,
public val logSchemaVersion: Output,
public val s3Configuration: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.fis.inputs.ExperimentTemplateLogConfigurationArgs =
com.pulumi.awsnative.fis.inputs.ExperimentTemplateLogConfigurationArgs.builder()
.cloudWatchLogsConfiguration(
cloudWatchLogsConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.logSchemaVersion(logSchemaVersion.applyValue({ args0 -> args0 }))
.s3Configuration(
s3Configuration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ExperimentTemplateLogConfigurationArgs].
*/
@PulumiTagMarker
public class ExperimentTemplateLogConfigurationArgsBuilder internal constructor() {
private var cloudWatchLogsConfiguration:
Output? = null
private var logSchemaVersion: Output? = null
private var s3Configuration:
Output? = null
/**
* @param value The configuration for experiment logging to CloudWatch Logs .
*/
@JvmName("ynrfhjtglxkdqqll")
public suspend fun cloudWatchLogsConfiguration(`value`: Output) {
this.cloudWatchLogsConfiguration = value
}
/**
* @param value The schema version.
*/
@JvmName("jdelphhkdnooqgss")
public suspend fun logSchemaVersion(`value`: Output) {
this.logSchemaVersion = value
}
/**
* @param value The configuration for experiment logging to Amazon S3 .
*/
@JvmName("ajuygjteqwbgipqq")
public suspend fun s3Configuration(`value`: Output) {
this.s3Configuration = value
}
/**
* @param value The configuration for experiment logging to CloudWatch Logs .
*/
@JvmName("hrmhuccrisguotus")
public suspend fun cloudWatchLogsConfiguration(`value`: ExperimentTemplateLogConfigurationCloudWatchLogsConfigurationPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cloudWatchLogsConfiguration = mapped
}
/**
* @param argument The configuration for experiment logging to CloudWatch Logs .
*/
@JvmName("vqlixjtwtkfbqaoh")
public suspend fun cloudWatchLogsConfiguration(argument: suspend ExperimentTemplateLogConfigurationCloudWatchLogsConfigurationPropertiesArgsBuilder.() -> Unit) {
val toBeMapped =
ExperimentTemplateLogConfigurationCloudWatchLogsConfigurationPropertiesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.cloudWatchLogsConfiguration = mapped
}
/**
* @param value The schema version.
*/
@JvmName("jugkaqfipgpbmjvj")
public suspend fun logSchemaVersion(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.logSchemaVersion = mapped
}
/**
* @param value The configuration for experiment logging to Amazon S3 .
*/
@JvmName("kyrtblsuhnhccdpo")
public suspend fun s3Configuration(`value`: ExperimentTemplateLogConfigurationS3ConfigurationPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.s3Configuration = mapped
}
/**
* @param argument The configuration for experiment logging to Amazon S3 .
*/
@JvmName("ejkunuuxvgdthqpd")
public suspend fun s3Configuration(argument: suspend ExperimentTemplateLogConfigurationS3ConfigurationPropertiesArgsBuilder.() -> Unit) {
val toBeMapped =
ExperimentTemplateLogConfigurationS3ConfigurationPropertiesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.s3Configuration = mapped
}
internal fun build(): ExperimentTemplateLogConfigurationArgs =
ExperimentTemplateLogConfigurationArgs(
cloudWatchLogsConfiguration = cloudWatchLogsConfiguration,
logSchemaVersion = logSchemaVersion ?: throw PulumiNullFieldException("logSchemaVersion"),
s3Configuration = s3Configuration,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy