Experimental
@aws-cdk/aws-pipes-targets-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
FirehoseTargetParameters Struct
Amazon Data Firehose target properties.
| Stability | Experimental |
|---|---|
| Source | lib/firehose.ts |
Example
ts
declare const sourceQueue: sqs.Queue;
declare const targetDeliveryStream: firehose.DeliveryStream;
const deliveryStreamTarget = new targets.FirehoseTarget(targetDeliveryStream, {
inputTransformation: pipes.InputTransformation.fromObject({ body: "👀" }),
});
const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SqsSource(sourceQueue),
target: deliveryStreamTarget,
});
python
# source_queue: sqs.Queue
# target_delivery_stream: firehose.DeliveryStream
delivery_stream_target = targets.FirehoseTarget(target_delivery_stream,
input_transformation=pipes.InputTransformation.from_object({"body": "👀"})
)
pipe = pipes.Pipe(self, "Pipe",
source=SqsSource(source_queue),
target=delivery_stream_target
)
java
Queue sourceQueue;
DeliveryStream targetDeliveryStream;
FirehoseTarget deliveryStreamTarget = FirehoseTarget.Builder.create(targetDeliveryStream)
.inputTransformation(InputTransformation.fromObject(Map.of("body", "👀")))
.build();
Pipe pipe = Pipe.Builder.create(this, "Pipe")
.source(new SqsSource(sourceQueue))
.target(deliveryStreamTarget)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Pipes.Targets.Alpha
Queue sourceQueue;
DeliveryStream targetDeliveryStream;
var deliveryStreamTarget = new FirehoseTarget(targetDeliveryStream, new FirehoseTargetParameters {
InputTransformation = InputTransformation.FromObject(new Dictionary<string, object> { { "body", "👀" } })
});
var pipe = new Pipe(this, "Pipe", new PipeProps {
Source = new SqsSource(sourceQueue),
Target = deliveryStreamTarget
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdkpipestargetsalpha/v2
var sourceQueue Queue
var targetDeliveryStream DeliveryStream
deliveryStreamTarget := targets.NewFirehoseTarget(targetDeliveryStream, &FirehoseTargetParameters{
InputTransformation: pipes.InputTransformation_FromObject(map[string]interface{}{
"body": jsii.String("👀"),
}),
})
pipe := pipes.NewPipe(this, jsii.String("Pipe"), &PipeProps{
Source: awscdkpipessourcesalpha.NewSqsSource(sourceQueue),
Target: deliveryStreamTarget,
})
Properties
inputTransformationoptionalIInputTransformationinput_transformationoptionalIInputTransformationinputTransformationoptionalIInputTransformationInputTransformationoptionalIInputTransformationInputTransformationoptionalIInputTransformation = none #The input transformation to apply to the message before sending it to the target.