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

com.pulumi.aws.imagebuilder.kotlin.inputs.InfrastructureConfigurationLoggingS3LogsArgs.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.imagebuilder.kotlin.inputs

import com.pulumi.aws.imagebuilder.inputs.InfrastructureConfigurationLoggingS3LogsArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property s3BucketName Name of the S3 Bucket.
 * The following arguments are optional:
 * @property s3KeyPrefix Prefix to use for S3 logs. Defaults to `/`.
 */
public data class InfrastructureConfigurationLoggingS3LogsArgs(
    public val s3BucketName: Output,
    public val s3KeyPrefix: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.InfrastructureConfigurationLoggingS3LogsArgs =
        com.pulumi.aws.imagebuilder.inputs.InfrastructureConfigurationLoggingS3LogsArgs.builder()
            .s3BucketName(s3BucketName.applyValue({ args0 -> args0 }))
            .s3KeyPrefix(s3KeyPrefix?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InfrastructureConfigurationLoggingS3LogsArgs].
 */
@PulumiTagMarker
public class InfrastructureConfigurationLoggingS3LogsArgsBuilder internal constructor() {
    private var s3BucketName: Output? = null

    private var s3KeyPrefix: Output? = null

    /**
     * @param value Name of the S3 Bucket.
     * The following arguments are optional:
     */
    @JvmName("tmnqwjtegdavktia")
    public suspend fun s3BucketName(`value`: Output) {
        this.s3BucketName = value
    }

    /**
     * @param value Prefix to use for S3 logs. Defaults to `/`.
     */
    @JvmName("wmbtrcamwocphkco")
    public suspend fun s3KeyPrefix(`value`: Output) {
        this.s3KeyPrefix = value
    }

    /**
     * @param value Name of the S3 Bucket.
     * The following arguments are optional:
     */
    @JvmName("xyjjwjttjatvgrbk")
    public suspend fun s3BucketName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.s3BucketName = mapped
    }

    /**
     * @param value Prefix to use for S3 logs. Defaults to `/`.
     */
    @JvmName("tjoyttnipcvucgqs")
    public suspend fun s3KeyPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3KeyPrefix = mapped
    }

    internal fun build(): InfrastructureConfigurationLoggingS3LogsArgs =
        InfrastructureConfigurationLoggingS3LogsArgs(
            s3BucketName = s3BucketName ?: throw PulumiNullFieldException("s3BucketName"),
            s3KeyPrefix = s3KeyPrefix,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy