Interface KinesisStreamProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
KinesisStreamProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:47.736Z") @Stability(Stable) public interface KinesisStreamProps extends software.amazon.jsii.JsiiSerializable
Customize the Kinesis Stream Event Target.

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.events.*;
 import software.amazon.awscdk.services.events.targets.*;
 RuleTargetInput ruleTargetInput;
 KinesisStreamProps kinesisStreamProps = KinesisStreamProps.builder()
         .message(ruleTargetInput)
         .partitionKeyPath("partitionKeyPath")
         .build();
 
  • Method Details

    • getMessage

      @Stability(Stable) @Nullable default RuleTargetInput getMessage()
      The message to send to the stream.

      Must be a valid JSON text passed to the target stream.

      Default: - the entire CloudWatch event

    • getPartitionKeyPath

      @Stability(Stable) @Nullable default String getPartitionKeyPath()
      Partition Key Path for records sent to this stream.

      Default: - eventId as the partition key

    • builder

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