Interface KinesisStreamProps

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

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-11T18:01:16.292Z") @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