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

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

package com.pulumi.cloudflare.kotlin.outputs

import kotlin.Boolean
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 LogpushJobOutputOptions(
    public val batchPrefix: String? = null,
    public val batchSuffix: String? = null,
    public val cve20214428: Boolean? = null,
    public val fieldDelimiter: String? = null,
    public val fieldNames: List? = null,
    public val outputType: String? = null,
    public val recordDelimiter: String? = null,
    public val recordPrefix: String? = null,
    public val recordSuffix: String? = null,
    public val recordTemplate: String? = null,
    public val sampleRate: Double? = null,
    public val timestampFormat: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.LogpushJobOutputOptions): LogpushJobOutputOptions = LogpushJobOutputOptions(
            batchPrefix = javaType.batchPrefix().map({ args0 -> args0 }).orElse(null),
            batchSuffix = javaType.batchSuffix().map({ args0 -> args0 }).orElse(null),
            cve20214428 = javaType.cve20214428().map({ args0 -> args0 }).orElse(null),
            fieldDelimiter = javaType.fieldDelimiter().map({ args0 -> args0 }).orElse(null),
            fieldNames = javaType.fieldNames().map({ args0 -> args0 }),
            outputType = javaType.outputType().map({ args0 -> args0 }).orElse(null),
            recordDelimiter = javaType.recordDelimiter().map({ args0 -> args0 }).orElse(null),
            recordPrefix = javaType.recordPrefix().map({ args0 -> args0 }).orElse(null),
            recordSuffix = javaType.recordSuffix().map({ args0 -> args0 }).orElse(null),
            recordTemplate = javaType.recordTemplate().map({ args0 -> args0 }).orElse(null),
            sampleRate = javaType.sampleRate().map({ args0 -> args0 }).orElse(null),
            timestampFormat = javaType.timestampFormat().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy