Interface CfnTopicRule.KafkaActionProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnTopicRule.KafkaActionProperty extends
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 KafkaActionProperty kafkaActionProperty = KafkaActionProperty.builder()
                 "clientPropertiesKey", "clientProperties"))
         // the properties below are optional
  • Method Details

    • getClientProperties

      @Stability(Stable) @NotNull Object getClientProperties()
      Properties of the Apache Kafka producer client.
    • getDestinationArn

      @Stability(Stable) @NotNull String getDestinationArn()
      The ARN of Kafka action's VPC TopicRuleDestination .
    • getTopic

      @Stability(Stable) @NotNull String getTopic()
      The Kafka topic for messages to be sent to the Kafka broker.
    • getKey

      @Stability(Stable) @Nullable default String getKey()
      The Kafka message key.
    • getPartition

      @Stability(Stable) @Nullable default String getPartition()
      The Kafka message partition.
    • builder

      @Stability(Stable) static CfnTopicRule.KafkaActionProperty.Builder builder()
      a CfnTopicRule.KafkaActionProperty.Builder of CfnTopicRule.KafkaActionProperty