Search in sources :

Example 1 with ProducerConfigConstants

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;
}
Also used : SimpleStringSchema(org.apache.flink.api.common.serialization.SimpleStringSchema) Properties(java.util.Properties) ProducerConfigConstants(com.amazonaws.services.kinesisanalytics.flink.connectors.config.ProducerConfigConstants) FlinkKinesisFirehoseProducer(com.amazonaws.services.kinesisanalytics.flink.connectors.producer.FlinkKinesisFirehoseProducer)

Aggregations

ProducerConfigConstants (com.amazonaws.services.kinesisanalytics.flink.connectors.config.ProducerConfigConstants)1 FlinkKinesisFirehoseProducer (com.amazonaws.services.kinesisanalytics.flink.connectors.producer.FlinkKinesisFirehoseProducer)1 Properties (java.util.Properties)1 SimpleStringSchema (org.apache.flink.api.common.serialization.SimpleStringSchema)1