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

com.pulumi.aws.cloudwatch.kotlin.inputs.EventTargetInputTransformerArgs.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.cloudwatch.kotlin.inputs

import com.pulumi.aws.cloudwatch.inputs.EventTargetInputTransformerArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property inputPaths Key value pairs specified in the form of JSONPath (for example, time = $.time)
 * * You can have as many as 100 key-value pairs.
 * * You must use JSON dot notation, not bracket notation.
 * * The keys can't start with "AWS".
 * @property inputTemplate Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes.
 */
public data class EventTargetInputTransformerArgs(
    public val inputPaths: Output>? = null,
    public val inputTemplate: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.cloudwatch.inputs.EventTargetInputTransformerArgs =
        com.pulumi.aws.cloudwatch.inputs.EventTargetInputTransformerArgs.builder()
            .inputPaths(
                inputPaths?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .inputTemplate(inputTemplate.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EventTargetInputTransformerArgs].
 */
@PulumiTagMarker
public class EventTargetInputTransformerArgsBuilder internal constructor() {
    private var inputPaths: Output>? = null

    private var inputTemplate: Output? = null

    /**
     * @param value Key value pairs specified in the form of JSONPath (for example, time = $.time)
     * * You can have as many as 100 key-value pairs.
     * * You must use JSON dot notation, not bracket notation.
     * * The keys can't start with "AWS".
     */
    @JvmName("fnanfdoajtfasptj")
    public suspend fun inputPaths(`value`: Output>) {
        this.inputPaths = value
    }

    /**
     * @param value Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes.
     */
    @JvmName("wibyikuxnipmyrlt")
    public suspend fun inputTemplate(`value`: Output) {
        this.inputTemplate = value
    }

    /**
     * @param value Key value pairs specified in the form of JSONPath (for example, time = $.time)
     * * You can have as many as 100 key-value pairs.
     * * You must use JSON dot notation, not bracket notation.
     * * The keys can't start with "AWS".
     */
    @JvmName("mnjmnohfasiacijt")
    public suspend fun inputPaths(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputPaths = mapped
    }

    /**
     * @param values Key value pairs specified in the form of JSONPath (for example, time = $.time)
     * * You can have as many as 100 key-value pairs.
     * * You must use JSON dot notation, not bracket notation.
     * * The keys can't start with "AWS".
     */
    @JvmName("exgeenehdkqtgfxn")
    public fun inputPaths(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputPaths = mapped
    }

    /**
     * @param value Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes.
     */
    @JvmName("hufpbquqnoxdpspe")
    public suspend fun inputTemplate(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputTemplate = mapped
    }

    internal fun build(): EventTargetInputTransformerArgs = EventTargetInputTransformerArgs(
        inputPaths = inputPaths,
        inputTemplate = inputTemplate ?: throw PulumiNullFieldException("inputTemplate"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy