com.pulumi.aws.iot.kotlin.outputs.TopicRuleKafka.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.iot.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property clientProperties Properties of the Apache Kafka producer client. For more info, see the [AWS documentation](https://docs.aws.amazon.com/iot/latest/developerguide/apache-kafka-rule-action.html).
* @property destinationArn The ARN of Kafka action's VPC `aws.iot.TopicRuleDestination`.
* @property headers The list of Kafka headers that you specify. Nested arguments below.
* @property key The Kafka message key.
* @property partition The Kafka message partition.
* @property topic The Kafka topic for messages to be sent to the Kafka broker.
*/
public data class TopicRuleKafka(
public val clientProperties: Map,
public val destinationArn: String,
public val headers: List? = null,
public val key: String? = null,
public val partition: String? = null,
public val topic: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.aws.iot.outputs.TopicRuleKafka): TopicRuleKafka =
TopicRuleKafka(
clientProperties = javaType.clientProperties().map({ args0 -> args0.key.to(args0.value) }).toMap(),
destinationArn = javaType.destinationArn(),
headers = javaType.headers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.aws.iot.kotlin.outputs.TopicRuleKafkaHeader.Companion.toKotlin(args0)
})
}),
key = javaType.key().map({ args0 -> args0 }).orElse(null),
partition = javaType.partition().map({ args0 -> args0 }).orElse(null),
topic = javaType.topic(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy