Interface CfnTopicRulePropsMixin.KafkaActionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTopicRulePropsMixin.KafkaActionProperty.Jsii$Proxy
- Enclosing class:
CfnTopicRulePropsMixin
@Stability(Stable)
public static interface CfnTopicRulePropsMixin.KafkaActionProperty
extends software.amazon.jsii.JsiiSerializable
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.iot.*;
KafkaActionProperty kafkaActionProperty = KafkaActionProperty.builder()
.clientProperties(Map.of(
"clientPropertiesKey", "clientProperties"))
.destinationArn("destinationArn")
.headers(List.of(KafkaActionHeaderProperty.builder()
.key("key")
.value("value")
.build()))
.key("key")
.partition("partition")
.topic("topic")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTopicRulePropsMixin.KafkaActionPropertystatic final classAn implementation forCfnTopicRulePropsMixin.KafkaActionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectProperties of the Apache Kafka producer client.default StringThe ARN of Kafka action's VPCTopicRuleDestination.default ObjectThe list of Kafka headers that you specify.default StringgetKey()The Kafka message key.default StringThe Kafka message partition.default StringgetTopic()The Kafka topic for messages to be sent to the Kafka broker.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClientProperties
Properties of the Apache Kafka producer client.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
getDestinationArn
The ARN of Kafka action's VPCTopicRuleDestination.- See Also:
-
getHeaders
The list of Kafka headers that you specify.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTopicRulePropsMixin.KafkaActionHeaderProperty>- See Also:
-
getKey
The Kafka message key.- See Also:
-
getPartition
The Kafka message partition.- See Also:
-
getTopic
The Kafka topic for messages to be sent to the Kafka broker.- See Also:
-
builder
-