Interface FirehosePutRecordActionProps

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

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-02T12:05:33.185Z") @Stability(Experimental) public interface FirehosePutRecordActionProps extends software.amazon.jsii.JsiiSerializable, CommonActionProps
(experimental) Configuration properties of an action for the Amazon Data Firehose stream.

Example:

 import software.amazon.awscdk.services.kinesisfirehose.*;
 Bucket bucket = new Bucket(this, "MyBucket");
 DeliveryStream stream = DeliveryStream.Builder.create(this, "MyStream")
         .destination(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 Amazon 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 Amazon 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