Interface CfnTopicRule.RepublishActionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTopicRule.RepublishActionProperty.Jsii$Proxy
Enclosing class:
CfnTopicRule

@Stability(Stable) public static interface CfnTopicRule.RepublishActionProperty extends software.amazon.jsii.JsiiSerializable
Describes an action to republish to another topic.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.iot.*;
 RepublishActionProperty republishActionProperty = RepublishActionProperty.builder()
         .roleArn("roleArn")
         .topic("topic")
         // the properties below are optional
         .headers(RepublishActionHeadersProperty.builder()
                 .contentType("contentType")
                 .correlationData("correlationData")
                 .messageExpiry("messageExpiry")
                 .payloadFormatIndicator("payloadFormatIndicator")
                 .responseTopic("responseTopic")
                 .userProperties(List.of(UserPropertyProperty.builder()
                         .key("key")
                         .value("value")
                         .build()))
                 .build())
         .qos(123)
         .build();
 
  • Method Details

    • getRoleArn

      @Stability(Stable) @NotNull String getRoleArn()
      The ARN of the IAM role that grants access.
    • getTopic

      @Stability(Stable) @NotNull String getTopic()
      The name of the MQTT topic.
    • getHeaders

      @Stability(Stable) @Nullable default Object getHeaders()
      MQTT Version 5.0 headers information. For more information, see [MQTT](https://docs.aws.amazon.com//iot/latest/developerguide/mqtt.html) in the IoT Core Developer Guide.
    • getQos

      @Stability(Stable) @Nullable default Number getQos()
      The Quality of Service (QoS) level to use when republishing messages.

      The default value is 0.

    • builder

      @Stability(Stable) static CfnTopicRule.RepublishActionProperty.Builder builder()
      Returns:
      a CfnTopicRule.RepublishActionProperty.Builder of CfnTopicRule.RepublishActionProperty