use of com.amazonaws.services.kinesisanalytics.flink.connectors.config.ProducerConfigConstants in project aws-doc-sdk-examples by awsdocs.
the class StreamingJob method createFirehoseSinkFromStaticConfig.
private static FlinkKinesisFirehoseProducer<String> createFirehoseSinkFromStaticConfig() {
/*
* com.amazonaws.services.kinesisanalytics.flink.connectors.config.ProducerConfigConstants
* lists of all of the properties that firehose sink can be configured with.
*/
Properties outputProperties = new Properties();
outputProperties.setProperty(ConsumerConfigConstants.AWS_REGION, region);
FlinkKinesisFirehoseProducer<String> sink = new FlinkKinesisFirehoseProducer<>(outputStreamName, new SimpleStringSchema(), outputProperties);
ProducerConfigConstants config = new ProducerConfigConstants();
return sink;
}
Aggregations