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

com.pulumi.cloudflare.kotlin.inputs.LogpushJobOutputOptionsArgs.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: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.LogpushJobOutputOptionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property batchPrefix String to be prepended before each batch.
 * @property batchSuffix String to be appended after each batch.
 * @property cve20214428 Mitigation for CVE-2021-44228. If set to true, will cause all occurrences of ${ in the generated files to be replaced with x{. Defaults to `false`.
 * @property fieldDelimiter String to join fields. This field be ignored when record_template is set. Defaults to `,`.
 * @property fieldNames List of field names to be included in the Logpush output.
 * @property outputType Specifies the output type. Available values: `ndjson`, `csv`. Defaults to `ndjson`.
 * @property recordDelimiter String to be inserted in-between the records as separator.
 * @property recordPrefix String to be prepended before each record. Defaults to `{`.
 * @property recordSuffix String to be appended after each record. Defaults to `}
 * `.
 * @property recordTemplate String to use as template for each record instead of the default comma-separated list.
 * @property sampleRate Specifies the sampling rate. Defaults to `1`.
 * @property timestampFormat Specifies the format for timestamps. Available values: `unixnano`, `unix`, `rfc3339`. Defaults to `unixnano`.
 */
public data class LogpushJobOutputOptionsArgs(
    public val batchPrefix: Output? = null,
    public val batchSuffix: Output? = null,
    public val cve20214428: Output? = null,
    public val fieldDelimiter: Output? = null,
    public val fieldNames: Output>? = null,
    public val outputType: Output? = null,
    public val recordDelimiter: Output? = null,
    public val recordPrefix: Output? = null,
    public val recordSuffix: Output? = null,
    public val recordTemplate: Output? = null,
    public val sampleRate: Output? = null,
    public val timestampFormat: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.LogpushJobOutputOptionsArgs =
        com.pulumi.cloudflare.inputs.LogpushJobOutputOptionsArgs.builder()
            .batchPrefix(batchPrefix?.applyValue({ args0 -> args0 }))
            .batchSuffix(batchSuffix?.applyValue({ args0 -> args0 }))
            .cve20214428(cve20214428?.applyValue({ args0 -> args0 }))
            .fieldDelimiter(fieldDelimiter?.applyValue({ args0 -> args0 }))
            .fieldNames(fieldNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .outputType(outputType?.applyValue({ args0 -> args0 }))
            .recordDelimiter(recordDelimiter?.applyValue({ args0 -> args0 }))
            .recordPrefix(recordPrefix?.applyValue({ args0 -> args0 }))
            .recordSuffix(recordSuffix?.applyValue({ args0 -> args0 }))
            .recordTemplate(recordTemplate?.applyValue({ args0 -> args0 }))
            .sampleRate(sampleRate?.applyValue({ args0 -> args0 }))
            .timestampFormat(timestampFormat?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LogpushJobOutputOptionsArgs].
 */
@PulumiTagMarker
public class LogpushJobOutputOptionsArgsBuilder internal constructor() {
    private var batchPrefix: Output? = null

    private var batchSuffix: Output? = null

    private var cve20214428: Output? = null

    private var fieldDelimiter: Output? = null

    private var fieldNames: Output>? = null

    private var outputType: Output? = null

    private var recordDelimiter: Output? = null

    private var recordPrefix: Output? = null

    private var recordSuffix: Output? = null

    private var recordTemplate: Output? = null

    private var sampleRate: Output? = null

    private var timestampFormat: Output? = null

    /**
     * @param value String to be prepended before each batch.
     */
    @JvmName("xamlmvtvuwiqkdav")
    public suspend fun batchPrefix(`value`: Output) {
        this.batchPrefix = value
    }

    /**
     * @param value String to be appended after each batch.
     */
    @JvmName("mihbhsppxruxivie")
    public suspend fun batchSuffix(`value`: Output) {
        this.batchSuffix = value
    }

    /**
     * @param value Mitigation for CVE-2021-44228. If set to true, will cause all occurrences of ${ in the generated files to be replaced with x{. Defaults to `false`.
     */
    @JvmName("kgwunarhoejocnae")
    public suspend fun cve20214428(`value`: Output) {
        this.cve20214428 = value
    }

    /**
     * @param value String to join fields. This field be ignored when record_template is set. Defaults to `,`.
     */
    @JvmName("xsaumffaocukdvvf")
    public suspend fun fieldDelimiter(`value`: Output) {
        this.fieldDelimiter = value
    }

    /**
     * @param value List of field names to be included in the Logpush output.
     */
    @JvmName("aausavjrfernmgeq")
    public suspend fun fieldNames(`value`: Output>) {
        this.fieldNames = value
    }

    @JvmName("ivwlfjhmcafuplfc")
    public suspend fun fieldNames(vararg values: Output) {
        this.fieldNames = Output.all(values.asList())
    }

    /**
     * @param values List of field names to be included in the Logpush output.
     */
    @JvmName("ukiqikkhenipxybp")
    public suspend fun fieldNames(values: List>) {
        this.fieldNames = Output.all(values)
    }

    /**
     * @param value Specifies the output type. Available values: `ndjson`, `csv`. Defaults to `ndjson`.
     */
    @JvmName("voswwqavaqkjoyto")
    public suspend fun outputType(`value`: Output) {
        this.outputType = value
    }

    /**
     * @param value String to be inserted in-between the records as separator.
     */
    @JvmName("afmetllarauowdaw")
    public suspend fun recordDelimiter(`value`: Output) {
        this.recordDelimiter = value
    }

    /**
     * @param value String to be prepended before each record. Defaults to `{`.
     */
    @JvmName("txmgynjqsrhrewip")
    public suspend fun recordPrefix(`value`: Output) {
        this.recordPrefix = value
    }

    /**
     * @param value String to be appended after each record. Defaults to `}
     * `.
     */
    @JvmName("cylxcegnxgpquyps")
    public suspend fun recordSuffix(`value`: Output) {
        this.recordSuffix = value
    }

    /**
     * @param value String to use as template for each record instead of the default comma-separated list.
     */
    @JvmName("twymtrtlwjbuuyqc")
    public suspend fun recordTemplate(`value`: Output) {
        this.recordTemplate = value
    }

    /**
     * @param value Specifies the sampling rate. Defaults to `1`.
     */
    @JvmName("dufvklgtqgmvfphx")
    public suspend fun sampleRate(`value`: Output) {
        this.sampleRate = value
    }

    /**
     * @param value Specifies the format for timestamps. Available values: `unixnano`, `unix`, `rfc3339`. Defaults to `unixnano`.
     */
    @JvmName("usaoumycaxlfjcby")
    public suspend fun timestampFormat(`value`: Output) {
        this.timestampFormat = value
    }

    /**
     * @param value String to be prepended before each batch.
     */
    @JvmName("tdushqpjjextmggq")
    public suspend fun batchPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batchPrefix = mapped
    }

    /**
     * @param value String to be appended after each batch.
     */
    @JvmName("ogqerrdmictmceta")
    public suspend fun batchSuffix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batchSuffix = mapped
    }

    /**
     * @param value Mitigation for CVE-2021-44228. If set to true, will cause all occurrences of ${ in the generated files to be replaced with x{. Defaults to `false`.
     */
    @JvmName("amwcndebdgawrnxb")
    public suspend fun cve20214428(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cve20214428 = mapped
    }

    /**
     * @param value String to join fields. This field be ignored when record_template is set. Defaults to `,`.
     */
    @JvmName("nstjnbmbvbbtuovk")
    public suspend fun fieldDelimiter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fieldDelimiter = mapped
    }

    /**
     * @param value List of field names to be included in the Logpush output.
     */
    @JvmName("jduyuavourpdmqks")
    public suspend fun fieldNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fieldNames = mapped
    }

    /**
     * @param values List of field names to be included in the Logpush output.
     */
    @JvmName("ldscatxvobjvfyal")
    public suspend fun fieldNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fieldNames = mapped
    }

    /**
     * @param value Specifies the output type. Available values: `ndjson`, `csv`. Defaults to `ndjson`.
     */
    @JvmName("ootgfrtasmifsitf")
    public suspend fun outputType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outputType = mapped
    }

    /**
     * @param value String to be inserted in-between the records as separator.
     */
    @JvmName("pjrcesadsqnwbwtd")
    public suspend fun recordDelimiter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordDelimiter = mapped
    }

    /**
     * @param value String to be prepended before each record. Defaults to `{`.
     */
    @JvmName("grmmamkqtpwnxird")
    public suspend fun recordPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordPrefix = mapped
    }

    /**
     * @param value String to be appended after each record. Defaults to `}
     * `.
     */
    @JvmName("kdewbkjnifcgmitd")
    public suspend fun recordSuffix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordSuffix = mapped
    }

    /**
     * @param value String to use as template for each record instead of the default comma-separated list.
     */
    @JvmName("kxiqwaamesomcmta")
    public suspend fun recordTemplate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordTemplate = mapped
    }

    /**
     * @param value Specifies the sampling rate. Defaults to `1`.
     */
    @JvmName("xkdnocbeldnmwjjq")
    public suspend fun sampleRate(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sampleRate = mapped
    }

    /**
     * @param value Specifies the format for timestamps. Available values: `unixnano`, `unix`, `rfc3339`. Defaults to `unixnano`.
     */
    @JvmName("flinuvxmhbasdpwc")
    public suspend fun timestampFormat(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timestampFormat = mapped
    }

    internal fun build(): LogpushJobOutputOptionsArgs = LogpushJobOutputOptionsArgs(
        batchPrefix = batchPrefix,
        batchSuffix = batchSuffix,
        cve20214428 = cve20214428,
        fieldDelimiter = fieldDelimiter,
        fieldNames = fieldNames,
        outputType = outputType,
        recordDelimiter = recordDelimiter,
        recordPrefix = recordPrefix,
        recordSuffix = recordSuffix,
        recordTemplate = recordTemplate,
        sampleRate = sampleRate,
        timestampFormat = timestampFormat,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy