Skip to content

Commit e16812c

Browse files
Added Impala connector support
1 parent bc5d88e commit e16812c

File tree

10 files changed

+427
-2
lines changed

10 files changed

+427
-2
lines changed

generator/ServiceModels/quicksight/quicksight-2018-04-01.api.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8558,7 +8558,8 @@
85588558
"DatabricksParameters":{"shape":"DatabricksParameters"},
85598559
"StarburstParameters":{"shape":"StarburstParameters"},
85608560
"TrinoParameters":{"shape":"TrinoParameters"},
8561-
"BigQueryParameters":{"shape":"BigQueryParameters"}
8561+
"BigQueryParameters":{"shape":"BigQueryParameters"},
8562+
"ImpalaParameters":{"shape":"ImpalaParameters"}
85628563
}
85638564
},
85648565
"DataSourceParametersList":{
@@ -14339,6 +14340,20 @@
1433914340
"Source":{"shape":"StaticFileSource"}
1434014341
}
1434114342
},
14343+
"ImpalaParameters":{
14344+
"type":"structure",
14345+
"required":[
14346+
"Host",
14347+
"Port",
14348+
"SqlEndpointPath"
14349+
],
14350+
"members":{
14351+
"Host":{"shape":"Host"},
14352+
"Port":{"shape":"Port"},
14353+
"Database":{"shape":"Database"},
14354+
"SqlEndpointPath":{"shape":"SqlEndpointPath"}
14355+
}
14356+
},
1434214357
"IncludeFolderMembers":{
1434314358
"type":"string",
1434414359
"enum":[

generator/ServiceModels/quicksight/quicksight-2018-04-01.docs.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4179,6 +4179,7 @@
41794179
"refs": {
41804180
"AuroraParameters$Database": "<p>Database.</p>",
41814181
"AuroraPostgreSqlParameters$Database": "<p>The Amazon Aurora PostgreSQL database to connect to.</p>",
4182+
"ImpalaParameters$Database": "<p>The database of the Impala data source.</p>",
41824183
"MariaDbParameters$Database": "<p>Database.</p>",
41834184
"MySqlParameters$Database": "<p>Database.</p>",
41844185
"OracleParameters$Database": "<p>The database.</p>",
@@ -7141,6 +7142,7 @@
71417142
"AuroraPostgreSqlParameters$Host": "<p>The Amazon Aurora PostgreSQL-Compatible host to connect to.</p>",
71427143
"DatabricksParameters$Host": "<p>The host name of the Databricks data source.</p>",
71437144
"ExasolParameters$Host": "<p>The hostname or IP address of the Exasol data source.</p>",
7145+
"ImpalaParameters$Host": "<p>The host name of the Impala data source.</p>",
71447146
"MariaDbParameters$Host": "<p>Host.</p>",
71457147
"MySqlParameters$Host": "<p>Host.</p>",
71467148
"OracleParameters$Host": "<p>An Oracle host.</p>",
@@ -7355,6 +7357,12 @@
73557357
"StaticFile$ImageStaticFile": "<p>The image static file.</p>"
73567358
}
73577359
},
7360+
"ImpalaParameters": {
7361+
"base": "<p>The parameters that are required to connect to a Impala data source.</p>",
7362+
"refs": {
7363+
"DataSourceParameters$ImpalaParameters": "<p>The parameters for Impala.</p>"
7364+
}
7365+
},
73587366
"IncludeFolderMembers": {
73597367
"base": null,
73607368
"refs": {
@@ -9825,6 +9833,7 @@
98259833
"AuroraPostgreSqlParameters$Port": "<p>The port that Amazon Aurora PostgreSQL is listening on.</p>",
98269834
"DatabricksParameters$Port": "<p>The port for the Databricks data source.</p>",
98279835
"ExasolParameters$Port": "<p>The port for the Exasol data source.</p>",
9836+
"ImpalaParameters$Port": "<p>The port of the Impala data source.</p>",
98289837
"MariaDbParameters$Port": "<p>Port.</p>",
98299838
"MySqlParameters$Port": "<p>Port.</p>",
98309839
"OracleParameters$Port": "<p>The port.</p>",
@@ -12077,7 +12086,8 @@
1207712086
"SqlEndpointPath": {
1207812087
"base": null,
1207912088
"refs": {
12080-
"DatabricksParameters$SqlEndpointPath": "<p>The HTTP path of the Databricks data source.</p>"
12089+
"DatabricksParameters$SqlEndpointPath": "<p>The HTTP path of the Databricks data source.</p>",
12090+
"ImpalaParameters$SqlEndpointPath": "<p>The HTTP path of the Impala data source.</p>"
1208112091
}
1208212092
},
1208312093
"SqlQuery": {

generator/ServiceModels/quicksight/quicksight-2018-04-01.normal.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12229,6 +12229,10 @@
1222912229
"BigQueryParameters":{
1223012230
"shape":"BigQueryParameters",
1223112231
"documentation":"<p>The parameters that are required to connect to a Google BigQuery data source.</p>"
12232+
},
12233+
"ImpalaParameters":{
12234+
"shape":"ImpalaParameters",
12235+
"documentation":"<p>The parameters for Impala.</p>"
1223212236
}
1223312237
},
1223412238
"documentation":"<p>The parameters that Amazon QuickSight uses to connect to your underlying data source. This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.</p>"
@@ -21280,6 +21284,33 @@
2128021284
},
2128121285
"documentation":"<p>A static file that contains an image.</p>"
2128221286
},
21287+
"ImpalaParameters":{
21288+
"type":"structure",
21289+
"required":[
21290+
"Host",
21291+
"Port",
21292+
"SqlEndpointPath"
21293+
],
21294+
"members":{
21295+
"Host":{
21296+
"shape":"Host",
21297+
"documentation":"<p>The host name of the Impala data source.</p>"
21298+
},
21299+
"Port":{
21300+
"shape":"Port",
21301+
"documentation":"<p>The port of the Impala data source.</p>"
21302+
},
21303+
"Database":{
21304+
"shape":"Database",
21305+
"documentation":"<p>The database of the Impala data source.</p>"
21306+
},
21307+
"SqlEndpointPath":{
21308+
"shape":"SqlEndpointPath",
21309+
"documentation":"<p>The HTTP path of the Impala data source.</p>"
21310+
}
21311+
},
21312+
"documentation":"<p>The parameters that are required to connect to a Impala data source.</p>"
21313+
},
2128321314
"IncludeFolderMembers":{
2128421315
"type":"string",
2128521316
"enum":[

sdk/code-analysis/ServiceAnalysis/QuickSight/Generated/PropertyValueRules.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4769,6 +4769,26 @@
47694769
<max>512</max>
47704770
<pattern>[\w\-]+</pattern>
47714771
</property-value-rule>
4772+
<property-value-rule>
4773+
<property>Amazon.QuickSight.Model.ImpalaParameters.Database</property>
4774+
<min>1</min>
4775+
<max>128</max>
4776+
</property-value-rule>
4777+
<property-value-rule>
4778+
<property>Amazon.QuickSight.Model.ImpalaParameters.Host</property>
4779+
<min>1</min>
4780+
<max>256</max>
4781+
</property-value-rule>
4782+
<property-value-rule>
4783+
<property>Amazon.QuickSight.Model.ImpalaParameters.Port</property>
4784+
<min>1</min>
4785+
<max>65535</max>
4786+
</property-value-rule>
4787+
<property-value-rule>
4788+
<property>Amazon.QuickSight.Model.ImpalaParameters.SqlEndpointPath</property>
4789+
<min>1</min>
4790+
<max>4096</max>
4791+
</property-value-rule>
47724792
<property-value-rule>
47734793
<property>Amazon.QuickSight.Model.Ingestion.IngestionId</property>
47744794
<min>1</min>

sdk/src/Services/QuickSight/Generated/Model/DataSourceParameters.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public partial class DataSourceParameters
4545
private BigQueryParameters _bigQueryParameters;
4646
private DatabricksParameters _databricksParameters;
4747
private ExasolParameters _exasolParameters;
48+
private ImpalaParameters _impalaParameters;
4849
private JiraParameters _jiraParameters;
4950
private MariaDbParameters _mariaDbParameters;
5051
private MySqlParameters _mySqlParameters;
@@ -225,6 +226,24 @@ internal bool IsSetExasolParameters()
225226
return this._exasolParameters != null;
226227
}
227228

229+
/// <summary>
230+
/// Gets and sets the property ImpalaParameters.
231+
/// <para>
232+
/// The parameters for Impala.
233+
/// </para>
234+
/// </summary>
235+
public ImpalaParameters ImpalaParameters
236+
{
237+
get { return this._impalaParameters; }
238+
set { this._impalaParameters = value; }
239+
}
240+
241+
// Check to see if ImpalaParameters property is set
242+
internal bool IsSetImpalaParameters()
243+
{
244+
return this._impalaParameters != null;
245+
}
246+
228247
/// <summary>
229248
/// Gets and sets the property JiraParameters.
230249
/// <para>
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the quicksight-2018-04-01.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.QuickSight.Model
31+
{
32+
/// <summary>
33+
/// The parameters that are required to connect to a Impala data source.
34+
/// </summary>
35+
public partial class ImpalaParameters
36+
{
37+
private string _database;
38+
private string _host;
39+
private int? _port;
40+
private string _sqlEndpointPath;
41+
42+
/// <summary>
43+
/// Gets and sets the property Database.
44+
/// <para>
45+
/// The database of the Impala data source.
46+
/// </para>
47+
/// </summary>
48+
[AWSProperty(Min=1, Max=128)]
49+
public string Database
50+
{
51+
get { return this._database; }
52+
set { this._database = value; }
53+
}
54+
55+
// Check to see if Database property is set
56+
internal bool IsSetDatabase()
57+
{
58+
return this._database != null;
59+
}
60+
61+
/// <summary>
62+
/// Gets and sets the property Host.
63+
/// <para>
64+
/// The host name of the Impala data source.
65+
/// </para>
66+
/// </summary>
67+
[AWSProperty(Required=true, Min=1, Max=256)]
68+
public string Host
69+
{
70+
get { return this._host; }
71+
set { this._host = value; }
72+
}
73+
74+
// Check to see if Host property is set
75+
internal bool IsSetHost()
76+
{
77+
return this._host != null;
78+
}
79+
80+
/// <summary>
81+
/// Gets and sets the property Port.
82+
/// <para>
83+
/// The port of the Impala data source.
84+
/// </para>
85+
/// </summary>
86+
[AWSProperty(Required=true, Min=1, Max=65535)]
87+
public int Port
88+
{
89+
get { return this._port.GetValueOrDefault(); }
90+
set { this._port = value; }
91+
}
92+
93+
// Check to see if Port property is set
94+
internal bool IsSetPort()
95+
{
96+
return this._port.HasValue;
97+
}
98+
99+
/// <summary>
100+
/// Gets and sets the property SqlEndpointPath.
101+
/// <para>
102+
/// The HTTP path of the Impala data source.
103+
/// </para>
104+
/// </summary>
105+
[AWSProperty(Required=true, Min=1, Max=4096)]
106+
public string SqlEndpointPath
107+
{
108+
get { return this._sqlEndpointPath; }
109+
set { this._sqlEndpointPath = value; }
110+
}
111+
112+
// Check to see if SqlEndpointPath property is set
113+
internal bool IsSetSqlEndpointPath()
114+
{
115+
return this._sqlEndpointPath != null;
116+
}
117+
118+
}
119+
}

sdk/src/Services/QuickSight/Generated/Model/Internal/MarshallTransformations/DataSourceParametersMarshaller.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,17 @@ public void Marshall(DataSourceParameters requestObject, JsonMarshallerContext c
147147
context.Writer.WriteObjectEnd();
148148
}
149149

150+
if(requestObject.IsSetImpalaParameters())
151+
{
152+
context.Writer.WritePropertyName("ImpalaParameters");
153+
context.Writer.WriteObjectStart();
154+
155+
var marshaller = ImpalaParametersMarshaller.Instance;
156+
marshaller.Marshall(requestObject.ImpalaParameters, context);
157+
158+
context.Writer.WriteObjectEnd();
159+
}
160+
150161
if(requestObject.IsSetJiraParameters())
151162
{
152163
context.Writer.WritePropertyName("JiraParameters");

sdk/src/Services/QuickSight/Generated/Model/Internal/MarshallTransformations/DataSourceParametersUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ public DataSourceParameters Unmarshall(JsonUnmarshallerContext context)
120120
unmarshalledObject.ExasolParameters = unmarshaller.Unmarshall(context);
121121
continue;
122122
}
123+
if (context.TestExpression("ImpalaParameters", targetDepth))
124+
{
125+
var unmarshaller = ImpalaParametersUnmarshaller.Instance;
126+
unmarshalledObject.ImpalaParameters = unmarshaller.Unmarshall(context);
127+
continue;
128+
}
123129
if (context.TestExpression("JiraParameters", targetDepth))
124130
{
125131
var unmarshaller = JiraParametersUnmarshaller.Instance;

0 commit comments

Comments
 (0)