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

com.pulumi.awsnative.iot.kotlin.outputs.TopicRuleKafkaAction.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.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.
 * @property destinationArn The ARN of Kafka action's VPC `TopicRuleDestination` .
 * @property headers The list of Kafka headers that you specify.
 * @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 TopicRuleKafkaAction(
    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.awsnative.iot.outputs.TopicRuleKafkaAction): TopicRuleKafkaAction = TopicRuleKafkaAction(
            clientProperties = javaType.clientProperties().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            destinationArn = javaType.destinationArn(),
            headers = javaType.headers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iot.kotlin.outputs.TopicRuleKafkaActionHeader.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