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

com.pulumi.awsnative.imagebuilder.kotlin.inputs.InfrastructureConfigurationLoggingArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.imagebuilder.kotlin.inputs

import com.pulumi.awsnative.imagebuilder.inputs.InfrastructureConfigurationLoggingArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The logging configuration of the infrastructure configuration.
 * @property s3Logs The Amazon S3 logging configuration.
 */
public data class InfrastructureConfigurationLoggingArgs(
    public val s3Logs: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.imagebuilder.inputs.InfrastructureConfigurationLoggingArgs =
        com.pulumi.awsnative.imagebuilder.inputs.InfrastructureConfigurationLoggingArgs.builder()
            .s3Logs(s3Logs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [InfrastructureConfigurationLoggingArgs].
 */
@PulumiTagMarker
public class InfrastructureConfigurationLoggingArgsBuilder internal constructor() {
    private var s3Logs: Output? = null

    /**
     * @param value The Amazon S3 logging configuration.
     */
    @JvmName("fdjfseirjbuvxgkv")
    public suspend fun s3Logs(`value`: Output) {
        this.s3Logs = value
    }

    /**
     * @param value The Amazon S3 logging configuration.
     */
    @JvmName("miwhjlronbqneakb")
    public suspend fun s3Logs(`value`: InfrastructureConfigurationS3LogsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3Logs = mapped
    }

    /**
     * @param argument The Amazon S3 logging configuration.
     */
    @JvmName("xrlpitrwqfrgpkrx")
    public suspend fun s3Logs(argument: suspend InfrastructureConfigurationS3LogsArgsBuilder.() -> Unit) {
        val toBeMapped = InfrastructureConfigurationS3LogsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.s3Logs = mapped
    }

    internal fun build(): InfrastructureConfigurationLoggingArgs =
        InfrastructureConfigurationLoggingArgs(
            s3Logs = s3Logs,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy