Interface FirehosePutRecordActionProps

All Superinterfaces:
CommonActionProps, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
FirehosePutRecordActionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.992Z") @Stability(Experimental) public interface FirehosePutRecordActionProps extends software.amazon.jsii.JsiiSerializable, CommonActionProps
(experimental) Configuration properties of an action for the Kinesis Data Firehose stream.

Example:

 import software.amazon.awscdk.services.kinesisfirehose.*;
 import software.amazon.awscdk.services.kinesisfirehose.destinations.*;
 Bucket bucket = new Bucket(this, "MyBucket");
 DeliveryStream stream = DeliveryStream.Builder.create(this, "MyStream")
         .destinations(List.of(new S3Bucket(bucket)))
         .build();
 TopicRule topicRule = TopicRule.Builder.create(this, "TopicRule")
         .sql(IotSql.fromStringAsVer20160323("SELECT * FROM 'device/+/data'"))
         .actions(List.of(
             FirehosePutRecordAction.Builder.create(stream)
                     .batchMode(true)
                     .recordSeparator(FirehoseRecordSeparator.NEWLINE)
                     .build()))
         .build();
 
  • Method Details

    • getBatchMode

      @Stability(Experimental) @Nullable default Boolean getBatchMode()
      (experimental) Whether to deliver the Kinesis Data Firehose stream as a batch by using PutRecordBatch.

      When batchMode is true and the rule's SQL statement evaluates to an Array, each Array element forms one record in the PutRecordBatch request. The resulting array can't have more than 500 records.

      Default: false

    • getRecordSeparator

      @Stability(Experimental) @Nullable default FirehoseRecordSeparator getRecordSeparator()
      (experimental) A character separator that will be used to separate records written to the Kinesis Data Firehose stream.

      Default: - none -- the stream does not use a separator

    • builder

      @Stability(Experimental) static FirehosePutRecordActionProps.Builder builder()
      Returns:
      a FirehosePutRecordActionProps.Builder of FirehosePutRecordActionProps