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

com.pulumi.aws.glue.kotlin.inputs.ClassifierGrokClassifierArgs.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.glue.kotlin.inputs

import com.pulumi.aws.glue.inputs.ClassifierGrokClassifierArgs.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 classification An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.
 * @property customPatterns Custom grok patterns used by this classifier.
 * @property grokPattern The grok pattern used by this classifier.
 */
public data class ClassifierGrokClassifierArgs(
    public val classification: Output,
    public val customPatterns: Output? = null,
    public val grokPattern: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.glue.inputs.ClassifierGrokClassifierArgs =
        com.pulumi.aws.glue.inputs.ClassifierGrokClassifierArgs.builder()
            .classification(classification.applyValue({ args0 -> args0 }))
            .customPatterns(customPatterns?.applyValue({ args0 -> args0 }))
            .grokPattern(grokPattern.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClassifierGrokClassifierArgs].
 */
@PulumiTagMarker
public class ClassifierGrokClassifierArgsBuilder internal constructor() {
    private var classification: Output? = null

    private var customPatterns: Output? = null

    private var grokPattern: Output? = null

    /**
     * @param value An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.
     */
    @JvmName("muyfxcuvxompokyw")
    public suspend fun classification(`value`: Output) {
        this.classification = value
    }

    /**
     * @param value Custom grok patterns used by this classifier.
     */
    @JvmName("garpgwijrkpygmof")
    public suspend fun customPatterns(`value`: Output) {
        this.customPatterns = value
    }

    /**
     * @param value The grok pattern used by this classifier.
     */
    @JvmName("juyenksgrqjptcnm")
    public suspend fun grokPattern(`value`: Output) {
        this.grokPattern = value
    }

    /**
     * @param value An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.
     */
    @JvmName("rkglcxporyefidxv")
    public suspend fun classification(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.classification = mapped
    }

    /**
     * @param value Custom grok patterns used by this classifier.
     */
    @JvmName("qxtumpcgcxgagmyk")
    public suspend fun customPatterns(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customPatterns = mapped
    }

    /**
     * @param value The grok pattern used by this classifier.
     */
    @JvmName("hqyxbfotrmuajnge")
    public suspend fun grokPattern(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.grokPattern = mapped
    }

    internal fun build(): ClassifierGrokClassifierArgs = ClassifierGrokClassifierArgs(
        classification = classification ?: throw PulumiNullFieldException("classification"),
        customPatterns = customPatterns,
        grokPattern = grokPattern ?: throw PulumiNullFieldException("grokPattern"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy