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

com.pulumi.awsnative.iot.kotlin.TopicRuleArgs.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.iot.kotlin

import com.pulumi.awsnative.iot.TopicRuleArgs.builder
import com.pulumi.awsnative.iot.kotlin.inputs.TopicRulePayloadArgs
import com.pulumi.awsnative.iot.kotlin.inputs.TopicRulePayloadArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::IoT::TopicRule
 * @property ruleName The name of the rule.
 * *Pattern* : `^[a-zA-Z0-9_]+$`
 * @property tags Metadata which can be used to manage the topic rule.
 * > For URI Request parameters use format: ...key1=value1&key2=value2...
 * >
 * > For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..."
 * >
 * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
 * @property topicRulePayload The rule payload.
 */
public data class TopicRuleArgs(
    public val ruleName: Output? = null,
    public val tags: Output>? = null,
    public val topicRulePayload: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.TopicRuleArgs =
        com.pulumi.awsnative.iot.TopicRuleArgs.builder()
            .ruleName(ruleName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .topicRulePayload(
                topicRulePayload?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TopicRuleArgs].
 */
@PulumiTagMarker
public class TopicRuleArgsBuilder internal constructor() {
    private var ruleName: Output? = null

    private var tags: Output>? = null

    private var topicRulePayload: Output? = null

    /**
     * @param value The name of the rule.
     * *Pattern* : `^[a-zA-Z0-9_]+$`
     */
    @JvmName("mpqjsehnqyibqrxq")
    public suspend fun ruleName(`value`: Output) {
        this.ruleName = value
    }

    /**
     * @param value Metadata which can be used to manage the topic rule.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("tnrrndoywnlspxmk")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("yrghushsfhiaqlgm")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values Metadata which can be used to manage the topic rule.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("awxydobaurtuollf")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The rule payload.
     */
    @JvmName("vwoqjdqgwotldfdd")
    public suspend fun topicRulePayload(`value`: Output) {
        this.topicRulePayload = value
    }

    /**
     * @param value The name of the rule.
     * *Pattern* : `^[a-zA-Z0-9_]+$`
     */
    @JvmName("wvosxwamwspjiats")
    public suspend fun ruleName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleName = mapped
    }

    /**
     * @param value Metadata which can be used to manage the topic rule.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("qosluvxtdnkopddc")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Metadata which can be used to manage the topic rule.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("vlgatjygiukpkuvh")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata which can be used to manage the topic rule.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("rusjbyewgivfqnve")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata which can be used to manage the topic rule.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("ivbsygaqmtubwcjk")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Metadata which can be used to manage the topic rule.
     * > For URI Request parameters use format: ...key1=value1&key2=value2...
     * >
     * > For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..."
     * >
     * > For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
     */
    @JvmName("pewsuwfujbhtqwic")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The rule payload.
     */
    @JvmName("msksfkvdkbhgnfie")
    public suspend fun topicRulePayload(`value`: TopicRulePayloadArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.topicRulePayload = mapped
    }

    /**
     * @param argument The rule payload.
     */
    @JvmName("kejpuffxqpogdpod")
    public suspend fun topicRulePayload(argument: suspend TopicRulePayloadArgsBuilder.() -> Unit) {
        val toBeMapped = TopicRulePayloadArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.topicRulePayload = mapped
    }

    internal fun build(): TopicRuleArgs = TopicRuleArgs(
        ruleName = ruleName,
        tags = tags,
        topicRulePayload = topicRulePayload,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy