FirehoseActionProperty
Struct External
Describes an action that writes data to an Amazon Kinesis Firehose stream.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const firehoseActionProperty: iot.CfnTopicRule.FirehoseActionProperty = {
deliveryStreamName: 'deliveryStreamName',
roleArn: 'roleArn',
// the properties below are optional
batchMode: false,
separator: 'separator',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot
firehose_action_property = iot.CfnTopicRule.FirehoseActionProperty(
delivery_stream_name="deliveryStreamName",
role_arn="roleArn",
# the properties below are optional
batch_mode=False,
separator="separator"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;
FirehoseActionProperty firehoseActionProperty = FirehoseActionProperty.builder()
.deliveryStreamName("deliveryStreamName")
.roleArn("roleArn")
// the properties below are optional
.batchMode(false)
.separator("separator")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var firehoseActionProperty = new FirehoseActionProperty {
DeliveryStreamName = "deliveryStreamName",
RoleArn = "roleArn",
// the properties below are optional
BatchMode = false,
Separator = "separator"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
firehoseActionProperty := &FirehoseActionProperty{
DeliveryStreamName: jsii.String("deliveryStreamName"),
RoleArn: jsii.String("roleArn"),
// the properties below are optional
BatchMode: jsii.Boolean(false),
Separator: jsii.String("separator"),
}
Properties
batchModeoptionalboolean | IResolvablebatch_modeoptionaltyping.Union[bool, IResolvable]batchModeoptionalBooleanBatchModeoptionalboolBatchModeoptionalinterface{} #Whether to deliver the Kinesis Data Firehose stream as a batch by using `PutRecordBatch` . The default value is `false` .
notes
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.
deliveryStreamNamestringdelivery_stream_namestrdeliveryStreamNameStringDeliveryStreamNamestringDeliveryStreamName*string required #The delivery stream name.
The IAM role that grants access to the Amazon Kinesis Firehose stream.
separatoroptionalstringseparatoroptionalstrseparatoroptionalStringSeparatoroptionalstringSeparatoroptional*string #A character separator that will be used to separate records written to the Firehose stream.
Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).