
com.pulumi.awsnative.iot.kotlin.TopicRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy