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

com.pulumi.awsnative.iotevents.kotlin.inputs.InputAttributeArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iotevents.kotlin.inputs

import com.pulumi.awsnative.iotevents.inputs.InputAttributeArgs.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

/**
 * The attributes from the JSON payload that are made available by the input. Inputs are derived from messages sent to the ITE system using ``BatchPutMessage``. Each such message contains a JSON payload. Those attributes (and their paired values) specified here are available for use in the ``condition`` expressions used by detectors.
 * @property jsonPath An expression that specifies an attribute-value pair in a JSON structure. Use this to specify an attribute from the JSON payload that is made available by the input. Inputs are derived from messages sent to ITE (``BatchPutMessage``). Each such message contains a JSON payload. The attribute (and its paired value) specified here are available for use in the ``condition`` expressions used by detectors.
 *  Syntax: ``....``
 */
public data class InputAttributeArgs(
    public val jsonPath: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotevents.inputs.InputAttributeArgs =
        com.pulumi.awsnative.iotevents.inputs.InputAttributeArgs.builder()
            .jsonPath(jsonPath.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InputAttributeArgs].
 */
@PulumiTagMarker
public class InputAttributeArgsBuilder internal constructor() {
    private var jsonPath: Output? = null

    /**
     * @param value An expression that specifies an attribute-value pair in a JSON structure. Use this to specify an attribute from the JSON payload that is made available by the input. Inputs are derived from messages sent to ITE (``BatchPutMessage``). Each such message contains a JSON payload. The attribute (and its paired value) specified here are available for use in the ``condition`` expressions used by detectors.
     *  Syntax: ``....``
     */
    @JvmName("ynsouqpfpqwiuixh")
    public suspend fun jsonPath(`value`: Output) {
        this.jsonPath = value
    }

    /**
     * @param value An expression that specifies an attribute-value pair in a JSON structure. Use this to specify an attribute from the JSON payload that is made available by the input. Inputs are derived from messages sent to ITE (``BatchPutMessage``). Each such message contains a JSON payload. The attribute (and its paired value) specified here are available for use in the ``condition`` expressions used by detectors.
     *  Syntax: ``....``
     */
    @JvmName("erjeasrxgyyltgym")
    public suspend fun jsonPath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jsonPath = mapped
    }

    internal fun build(): InputAttributeArgs = InputAttributeArgs(
        jsonPath = jsonPath ?: throw PulumiNullFieldException("jsonPath"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy