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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forFirehosePutRecordActionProps
static final class
An implementation forFirehosePutRecordActionProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Boolean
(experimental) Whether to deliver the Kinesis Data Firehose stream as a batch by usingPutRecordBatch
.default FirehoseRecordSeparator
(experimental) A character separator that will be used to separate records written to the Kinesis Data Firehose stream.Methods inherited from interface software.amazon.awscdk.services.iot.actions.CommonActionProps
getRole
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBatchMode
(experimental) Whether to deliver the Kinesis Data Firehose stream as a batch by usingPutRecordBatch
.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
(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
-