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

com.pulumi.awsnative.ec2.kotlin.inputs.DestinationOptionsPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.DestinationOptionsPropertiesArgs.builder
import com.pulumi.awsnative.ec2.kotlin.enums.FlowLogDestinationOptionsPropertiesFileFormat
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.Suppress
import kotlin.jvm.JvmName

/**
 * The destination options.
 * @property fileFormat The format for the flow log. The default is `plain-text` .
 * @property hiveCompatiblePartitions Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3. The default is `false` .
 * @property perHourPartition Indicates whether to partition the flow log per hour. This reduces the cost and response time for queries. The default is `false` .
 */
public data class DestinationOptionsPropertiesArgs(
    public val fileFormat: Output,
    public val hiveCompatiblePartitions: Output,
    public val perHourPartition: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.DestinationOptionsPropertiesArgs =
        com.pulumi.awsnative.ec2.inputs.DestinationOptionsPropertiesArgs.builder()
            .fileFormat(fileFormat.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .hiveCompatiblePartitions(hiveCompatiblePartitions.applyValue({ args0 -> args0 }))
            .perHourPartition(perHourPartition.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DestinationOptionsPropertiesArgs].
 */
@PulumiTagMarker
public class DestinationOptionsPropertiesArgsBuilder internal constructor() {
    private var fileFormat: Output? = null

    private var hiveCompatiblePartitions: Output? = null

    private var perHourPartition: Output? = null

    /**
     * @param value The format for the flow log. The default is `plain-text` .
     */
    @JvmName("dintqekkxgxnixdk")
    public suspend fun fileFormat(`value`: Output) {
        this.fileFormat = value
    }

    /**
     * @param value Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3. The default is `false` .
     */
    @JvmName("hemxcnsbwwfeswsk")
    public suspend fun hiveCompatiblePartitions(`value`: Output) {
        this.hiveCompatiblePartitions = value
    }

    /**
     * @param value Indicates whether to partition the flow log per hour. This reduces the cost and response time for queries. The default is `false` .
     */
    @JvmName("gwlwpcthorayqaxy")
    public suspend fun perHourPartition(`value`: Output) {
        this.perHourPartition = value
    }

    /**
     * @param value The format for the flow log. The default is `plain-text` .
     */
    @JvmName("knwsnaxkvbuocqsb")
    public suspend fun fileFormat(`value`: FlowLogDestinationOptionsPropertiesFileFormat) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fileFormat = mapped
    }

    /**
     * @param value Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3. The default is `false` .
     */
    @JvmName("ewuyrbpxnavjutyu")
    public suspend fun hiveCompatiblePartitions(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hiveCompatiblePartitions = mapped
    }

    /**
     * @param value Indicates whether to partition the flow log per hour. This reduces the cost and response time for queries. The default is `false` .
     */
    @JvmName("waxpinkoqknbubyu")
    public suspend fun perHourPartition(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.perHourPartition = mapped
    }

    internal fun build(): DestinationOptionsPropertiesArgs = DestinationOptionsPropertiesArgs(
        fileFormat = fileFormat ?: throw PulumiNullFieldException("fileFormat"),
        hiveCompatiblePartitions = hiveCompatiblePartitions ?: throw
            PulumiNullFieldException("hiveCompatiblePartitions"),
        perHourPartition = perHourPartition ?: throw PulumiNullFieldException("perHourPartition"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy