com.pulumi.cloudflare.kotlin.inputs.LogpushJobOutputOptionsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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