dannycranmer commented on a change in pull request #18930: URL: https://github.com/apache/flink/pull/18930#discussion_r816788205
########## File path: docs/content/docs/connectors/table/firehose.md ########## @@ -0,0 +1,312 @@ +--- +title: Firehose +weight: 5 +type: docs +aliases: +- /dev/table/connectors/firehose.html +--- + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +# Amazon Kinesis Data Firehose SQL Connector + +{{< label "Sink: Streaming Append Mode" >}} + +The Firehose connector allows for writing data into [Amazon Kinesis Data Firehose (KDF)](https://aws.amazon.com/kinesis/data-firehose/). + +Dependencies +------------ + +{{< sql_download_table "aws-kinesis-firehose" >}} + +How to create a Kinesis data firehose table +----------------------------------------- + +Follow the instructions from the [Amazon KDF Developer Guide](https://docs.aws.amazon.com/ses/latest/dg/event-publishing-kinesis-analytics-firehose-stream.html) to set up a firehose stream. +The following example shows how to create a table backed by a Kinesis data firehose delivery stream with minimum required options: + +```sql +CREATE TABLE FirehoseTable ( + `user_id` BIGINT, + `item_id` BIGINT, + `category_id` BIGINT, + `behavior` STRING +) +WITH ( + 'connector' = 'firehose', + 'delivery-stream' = 'user_behavior', + 'aws.region' = 'us-east-2', + 'format' = 'csv' +); +``` + +Connector Options +----------------- + +<table class="table table-bordered"> + <thead> + <tr> + <th class="text-left" style="width: 25%">Option</th> + <th class="text-center" style="width: 8%">Required</th> + <th class="text-center" style="width: 7%">Default</th> + <th class="text-center" style="width: 10%">Type</th> + <th class="text-center" style="width: 50%">Description</th> + </tr> + <tr> + <th colspan="5" class="text-left" style="width: 100%">Common Options</th> + </tr> + </thead> + <tbody> + <tr> + <td><h5>connector</h5></td> + <td>required</td> + <td style="word-wrap: break-word;">(none)</td> + <td>String</td> + <td>Specify what connector to use. For Kinesis Firehose use <code>'firehose'</code>.</td> + </tr> + <tr> + <td><h5>delivery-stream</h5></td> + <td>required</td> + <td style="word-wrap: break-word;">(none)</td> + <td>String</td> + <td>Name of the Kinesis data firehose delivery stream backing this table.</td> + </tr> + <tr> + <td><h5>format</h5></td> + <td>required</td> + <td style="word-wrap: break-word;">(none)</td> + <td>String</td> + <td>The format used to deserialize and serialize Kinesis data firehose records. See <a href="#data-type-mapping">Data Type Mapping</a> for details.</td> + </tr> + <tr> + <td><h5>aws.region</h5></td> + <td>required</td> + <td style="word-wrap: break-word;">(none)</td> + <td>String</td> + <td>The AWS region where the delivery stream is defined. This option is required for <code>KinesisDataFirehoseSink</code> creation.</td> + </tr> + <tr> + <td><h5>aws.endpoint</h5></td> + <td>optional</td> + <td style="word-wrap: break-word;">(none)</td> + <td>String</td> + <td>The AWS endpoint for Kinesis Firehose.</td> + </tr> + <tr> + <td><h5>aws.trust.all.certificates</h5></td> Review comment: This line is inconsistent with others, is it correct? There is a mixture of `trust-all-certificates` and `trustAllCertificates` in the options -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org