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

com.pulumi.aws.lb.kotlin.inputs.LoadBalancerAccessLogsArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.lb.kotlin.inputs

import com.pulumi.aws.lb.inputs.LoadBalancerAccessLogsArgs.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 bucket S3 bucket name to store the logs in.
 * @property enabled Boolean to enable / disable `access_logs`. Defaults to `false`, even when `bucket` is specified.
 * @property prefix S3 bucket prefix. Logs are stored in the root if not configured.
 */
public data class LoadBalancerAccessLogsArgs(
    public val bucket: Output,
    public val enabled: Output? = null,
    public val prefix: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lb.inputs.LoadBalancerAccessLogsArgs =
        com.pulumi.aws.lb.inputs.LoadBalancerAccessLogsArgs.builder()
            .bucket(bucket.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .prefix(prefix?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LoadBalancerAccessLogsArgs].
 */
@PulumiTagMarker
public class LoadBalancerAccessLogsArgsBuilder internal constructor() {
    private var bucket: Output? = null

    private var enabled: Output? = null

    private var prefix: Output? = null

    /**
     * @param value S3 bucket name to store the logs in.
     */
    @JvmName("xvwehltxysrigisf")
    public suspend fun bucket(`value`: Output) {
        this.bucket = value
    }

    /**
     * @param value Boolean to enable / disable `access_logs`. Defaults to `false`, even when `bucket` is specified.
     */
    @JvmName("aakiegqcvbtofass")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value S3 bucket prefix. Logs are stored in the root if not configured.
     */
    @JvmName("naxdpsvsueiyvfur")
    public suspend fun prefix(`value`: Output) {
        this.prefix = value
    }

    /**
     * @param value S3 bucket name to store the logs in.
     */
    @JvmName("jnnuujavotkgcmet")
    public suspend fun bucket(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bucket = mapped
    }

    /**
     * @param value Boolean to enable / disable `access_logs`. Defaults to `false`, even when `bucket` is specified.
     */
    @JvmName("roryjnsqvkxxxpca")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value S3 bucket prefix. Logs are stored in the root if not configured.
     */
    @JvmName("ingeaphataxnnyfv")
    public suspend fun prefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.prefix = mapped
    }

    internal fun build(): LoadBalancerAccessLogsArgs = LoadBalancerAccessLogsArgs(
        bucket = bucket ?: throw PulumiNullFieldException("bucket"),
        enabled = enabled,
        prefix = prefix,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy