Class CfnTopicRule.KafkaActionProperty
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
Inheritance
System.Object
CfnTopicRule.KafkaActionProperty
Implements
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.AWS.IoT.dll
Syntax (csharp)
public class KafkaActionProperty : Object, CfnTopicRule.IKafkaActionProperty
Syntax (vb)
Public Class KafkaActionProperty
Inherits Object
Implements CfnTopicRule.IKafkaActionProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var kafkaActionProperty = new KafkaActionProperty {
ClientProperties = new Dictionary<string, string> {
{ "clientPropertiesKey", "clientProperties" }
},
DestinationArn = "destinationArn",
Topic = "topic",
// the properties below are optional
Key = "key",
Partition = "partition"
};
Synopsis
Constructors
KafkaActionProperty() |
Properties
ClientProperties | Properties of the Apache Kafka producer client. |
DestinationArn | The ARN of Kafka action's VPC |
Key | The Kafka message key. |
Partition | The Kafka message partition. |
Topic | The Kafka topic for messages to be sent to the Kafka broker. |
Constructors
KafkaActionProperty()
public KafkaActionProperty()
Properties
ClientProperties
Properties of the Apache Kafka producer client.
public object ClientProperties { get; set; }
Property Value
System.Object
Remarks
DestinationArn
The ARN of Kafka action's VPC TopicRuleDestination
.
public string DestinationArn { get; set; }
Property Value
System.String
Remarks
Key
The Kafka message key.
public string Key { get; set; }
Property Value
System.String
Remarks
Partition
The Kafka message partition.
public string Partition { get; set; }
Property Value
System.String
Remarks
Topic
The Kafka topic for messages to be sent to the Kafka broker.
public string Topic { get; set; }
Property Value
System.String