com.pulumi.aws.verifiedaccess.kotlin.inputs.InstanceLoggingConfigurationAccessLogsCloudwatchLogsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.verifiedaccess.kotlin.inputs
import com.pulumi.aws.verifiedaccess.inputs.InstanceLoggingConfigurationAccessLogsCloudwatchLogsArgs.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enabled Indicates whether logging is enabled.
* @property logGroup The name of the CloudWatch Logs Log Group.
*/
public data class InstanceLoggingConfigurationAccessLogsCloudwatchLogsArgs(
public val enabled: Output,
public val logGroup: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.verifiedaccess.inputs.InstanceLoggingConfigurationAccessLogsCloudwatchLogsArgs =
com.pulumi.aws.verifiedaccess.inputs.InstanceLoggingConfigurationAccessLogsCloudwatchLogsArgs.builder()
.enabled(enabled.applyValue({ args0 -> args0 }))
.logGroup(logGroup?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceLoggingConfigurationAccessLogsCloudwatchLogsArgs].
*/
@PulumiTagMarker
public class InstanceLoggingConfigurationAccessLogsCloudwatchLogsArgsBuilder internal constructor() {
private var enabled: Output? = null
private var logGroup: Output? = null
/**
* @param value Indicates whether logging is enabled.
*/
@JvmName("jjxvsebjyvojdxbb")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The name of the CloudWatch Logs Log Group.
*/
@JvmName("jysyxmxwrdprukje")
public suspend fun logGroup(`value`: Output) {
this.logGroup = value
}
/**
* @param value Indicates whether logging is enabled.
*/
@JvmName("okdnrvxhvrtotavn")
public suspend fun enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value The name of the CloudWatch Logs Log Group.
*/
@JvmName("sfdmhntrejaodtil")
public suspend fun logGroup(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logGroup = mapped
}
internal fun build(): InstanceLoggingConfigurationAccessLogsCloudwatchLogsArgs =
InstanceLoggingConfigurationAccessLogsCloudwatchLogsArgs(
enabled = enabled ?: throw PulumiNullFieldException("enabled"),
logGroup = logGroup,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy