FirehoseProperty Struct
Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotevents as iotevents } from 'aws-cdk-lib';
const firehoseProperty: iotevents.CfnDetectorModel.FirehoseProperty = {
deliveryStreamName: 'deliveryStreamName',
// the properties below are optional
payload: {
contentExpression: 'contentExpression',
type: 'type',
},
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_iotevents as iotevents
firehose_property = iotevents.CfnDetectorModel.FirehoseProperty(
delivery_stream_name="deliveryStreamName",
# the properties below are optional
payload=iotevents.CfnDetectorModel.PayloadProperty(
content_expression="contentExpression",
type="type"
),
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.iotevents.*;
FirehoseProperty firehoseProperty = FirehoseProperty.builder()
.deliveryStreamName("deliveryStreamName")
// the properties below are optional
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.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.IoTEvents;
var firehoseProperty = new FirehoseProperty {
DeliveryStreamName = "deliveryStreamName",
// the properties below are optional
Payload = new PayloadProperty {
ContentExpression = "contentExpression",
Type = "type"
},
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"
firehoseProperty := &FirehoseProperty{
DeliveryStreamName: jsii.String("deliveryStreamName"),
// the properties below are optional
Payload: &PayloadProperty{
ContentExpression: jsii.String("contentExpression"),
Type: jsii.String("type"),
},
Separator: jsii.String("separator"),
}
Properties
deliveryStreamNamestringdelivery_stream_namestrdeliveryStreamNameStringDeliveryStreamNamestringDeliveryStreamName*stringrequired#The name of the Kinesis Data Firehose delivery stream where the data is written.
payloadoptionalIResolvable | CfnDetectorModel.PayloadPropertypayloadoptionaltyping.Union[IResolvable, PayloadProperty]payloadoptionalIResolvablePayloadoptionalIResolvablePayloadoptionalinterface{}#You can configure the action payload when you send a message to an Amazon Data Firehose delivery stream.
separatoroptionalstringseparatoroptionalstrseparatoroptionalStringSeparatoroptionalstringSeparatoroptional*string#A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream.
Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).