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

com.pulumi.awsnative.iotevents.kotlin.inputs.DetectorModelPayloadArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 * Information needed to configure the payload.
 * By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.
 * @property contentExpression The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.
 * @property type The value of the payload type can be either `STRING` or `JSON`.
 */
public data class DetectorModelPayloadArgs(
    public val contentExpression: Output,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotevents.inputs.DetectorModelPayloadArgs =
        com.pulumi.awsnative.iotevents.inputs.DetectorModelPayloadArgs.builder()
            .contentExpression(contentExpression.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DetectorModelPayloadArgs].
 */
@PulumiTagMarker
public class DetectorModelPayloadArgsBuilder internal constructor() {
    private var contentExpression: Output? = null

    private var type: Output? = null

    /**
     * @param value The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.
     */
    @JvmName("mgvxvtwvjmeuiwhf")
    public suspend fun contentExpression(`value`: Output) {
        this.contentExpression = value
    }

    /**
     * @param value The value of the payload type can be either `STRING` or `JSON`.
     */
    @JvmName("tkqjptpiahtbdtsg")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.
     */
    @JvmName("rwkkvhuhlujafuiu")
    public suspend fun contentExpression(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contentExpression = mapped
    }

    /**
     * @param value The value of the payload type can be either `STRING` or `JSON`.
     */
    @JvmName("wrnljsobvwvcpstf")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): DetectorModelPayloadArgs = DetectorModelPayloadArgs(
        contentExpression = contentExpression ?: throw PulumiNullFieldException("contentExpression"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy