From bcd5deaa6b14cbec189db5b8bf2ed28361c9a0a7 Mon Sep 17 00:00:00 2001 From: Oscar Cassetti Date: Fri, 23 Jul 2021 07:57:13 +0800 Subject: [PATCH] Adding #12687 * azurerm_kusto_eventgrid_data_connection Adding validation support for ORC * Adding all other data formats support for EventGrid according to https://github.com/Azure/azure-rest-api-specs/blob/master/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2020-09-18/kusto.json * adding supported format to the documentation --- .../kusto/kusto_eventgrid_data_connection_resource.go | 5 +++++ website/docs/r/kusto_eventhub_data_connection.html.markdown | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/azurerm/internal/services/kusto/kusto_eventgrid_data_connection_resource.go b/azurerm/internal/services/kusto/kusto_eventgrid_data_connection_resource.go index e20992a43ac1..9912a4705034 100644 --- a/azurerm/internal/services/kusto/kusto_eventgrid_data_connection_resource.go +++ b/azurerm/internal/services/kusto/kusto_eventgrid_data_connection_resource.go @@ -118,17 +118,22 @@ func resourceKustoEventGridDataConnection() *pluginsdk.Resource { Type: pluginsdk.TypeString, Optional: true, ValidateFunc: validation.StringInSlice([]string{ + string(kusto.APACHEAVRO), string(kusto.AVRO), string(kusto.CSV), string(kusto.JSON), string(kusto.MULTIJSON), + string(kusto.ORC), + string(kusto.PARQUET), string(kusto.PSV), string(kusto.RAW), string(kusto.SCSV), string(kusto.SINGLEJSON), string(kusto.SOHSV), string(kusto.TSV), + string(kusto.TSVE), string(kusto.TXT), + string(kusto.W3CLOGFILE), }, false), }, }, diff --git a/website/docs/r/kusto_eventhub_data_connection.html.markdown b/website/docs/r/kusto_eventhub_data_connection.html.markdown index af988ee33969..9f577fcd1a03 100644 --- a/website/docs/r/kusto_eventhub_data_connection.html.markdown +++ b/website/docs/r/kusto_eventhub_data_connection.html.markdown @@ -103,7 +103,7 @@ The following arguments are supported: * `mapping_rule_name` - (Optional) Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created. -* `data_format` - (Optional) Specifies the data format of the EventHub messages. Allowed values: `APACHEAVRO`, `AVRO`, `CSV`, `JSON`, `MULTIJSON`, `PSV`, `RAW`, `SCSV`, `SINGLEJSON`, `SOHSV`, `TSV` and `TXT` +* `data_format` - (Optional) Specifies the data format of the EventHub messages. Allowed values: `APACHEAVRO`, `AVRO`, `CSV`, `JSON`, `MULTIJSON`, `ORC`, `PARQUET`, `PSV`, `RAW`, `SCSV`, `SINGLEJSON`, `SOHSV`, `TSVE`, `TSV`, `TXT`, and `W3CLOGFILE`. ## Attributes Reference