enum FirehoseRecordSeparator
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.IoT.Actions.FirehoseRecordSeparator |
![]() | software.amazon.awscdk.services.iot.actions.FirehoseRecordSeparator |
![]() | aws_cdk.aws_iot_actions.FirehoseRecordSeparator |
![]() | @aws-cdk/aws-iot-actions » FirehoseRecordSeparator |
Record Separator to be used to separate records.
Example
import * as firehose from '@aws-cdk/aws-kinesisfirehose';
import * as destinations from '@aws-cdk/aws-kinesisfirehose-destinations';
const bucket = new s3.Bucket(this, 'MyBucket');
const stream = new firehose.DeliveryStream(this, 'MyStream', {
destinations: [new destinations.S3Bucket(bucket)],
});
const topicRule = new iot.TopicRule(this, 'TopicRule', {
sql: iot.IotSql.fromStringAsVer20160323("SELECT * FROM 'device/+/data'"),
actions: [
new actions.FirehosePutRecordAction(stream, {
batchMode: true,
recordSeparator: actions.FirehoseRecordSeparator.NEWLINE,
}),
],
});
Members
Name | Description |
---|---|
NEWLINE | Separate by a new line. |
TAB | Separate by a tab. |
WINDOWS_NEWLINE | Separate by a windows new line. |
COMMA | Separate by a commma. |
NEWLINE
Separate by a new line.
TAB
Separate by a tab.
WINDOWS_NEWLINE
Separate by a windows new line.
COMMA
Separate by a commma.