Skip to content

Commit 1c9138b

Browse files
Add support for PerformanceConfiguration attribute to Dataset entity. Allow PerformanceConfiguration specification in CreateDataset and UpdateDataset APIs.
1 parent d83ef1b commit 1c9138b

15 files changed

+640
-3
lines changed

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

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6922,7 +6922,8 @@
69226922
"Tags":{"shape":"TagList"},
69236923
"DataSetUsageConfiguration":{"shape":"DataSetUsageConfiguration"},
69246924
"DatasetParameters":{"shape":"DatasetParameterList"},
6925-
"FolderArns":{"shape":"FolderArnList"}
6925+
"FolderArns":{"shape":"FolderArnList"},
6926+
"PerformanceConfiguration":{"shape":"PerformanceConfiguration"}
69266927
}
69276928
},
69286929
"CreateDataSetResponse":{
@@ -8257,7 +8258,8 @@
82578258
"RowLevelPermissionTagConfiguration":{"shape":"RowLevelPermissionTagConfiguration"},
82588259
"ColumnLevelPermissionRules":{"shape":"ColumnLevelPermissionRuleList"},
82598260
"DataSetUsageConfiguration":{"shape":"DataSetUsageConfiguration"},
8260-
"DatasetParameters":{"shape":"DatasetParameterList"}
8261+
"DatasetParameters":{"shape":"DatasetParameterList"},
8262+
"PerformanceConfiguration":{"shape":"PerformanceConfiguration"}
82618263
}
82628264
},
82638265
"DataSetArnsList":{
@@ -17513,6 +17515,12 @@
1751317515
"max":100,
1751417516
"min":0
1751517517
},
17518+
"PerformanceConfiguration":{
17519+
"type":"structure",
17520+
"members":{
17521+
"UniqueKeys":{"shape":"UniqueKeyList"}
17522+
}
17523+
},
1751617524
"PeriodOverPeriodComputation":{
1751717525
"type":"structure",
1751817526
"required":["ComputationId"],
@@ -22498,6 +22506,25 @@
2249822506
"type":"string",
2249922507
"pattern":"^[^\\u0000-\\u00FF]$"
2250022508
},
22509+
"UniqueKey":{
22510+
"type":"structure",
22511+
"required":["ColumnNames"],
22512+
"members":{
22513+
"ColumnNames":{"shape":"UniqueKeyColumnNameList"}
22514+
}
22515+
},
22516+
"UniqueKeyColumnNameList":{
22517+
"type":"list",
22518+
"member":{"shape":"ColumnName"},
22519+
"max":1,
22520+
"min":1
22521+
},
22522+
"UniqueKeyList":{
22523+
"type":"list",
22524+
"member":{"shape":"UniqueKey"},
22525+
"max":1,
22526+
"min":1
22527+
},
2250122528
"UniqueValuesComputation":{
2250222529
"type":"structure",
2250322530
"required":["ComputationId"],
@@ -23070,7 +23097,8 @@
2307023097
"RowLevelPermissionTagConfiguration":{"shape":"RowLevelPermissionTagConfiguration"},
2307123098
"ColumnLevelPermissionRules":{"shape":"ColumnLevelPermissionRuleList"},
2307223099
"DataSetUsageConfiguration":{"shape":"DataSetUsageConfiguration"},
23073-
"DatasetParameters":{"shape":"DatasetParameterList"}
23100+
"DatasetParameters":{"shape":"DatasetParameterList"},
23101+
"PerformanceConfiguration":{"shape":"PerformanceConfiguration"}
2307423102
}
2307523103
},
2307623104
"UpdateDataSetResponse":{

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2867,6 +2867,7 @@
28672867
"RenameColumnOperation$ColumnName": "<p>The name of the column to be renamed.</p>",
28682868
"RenameColumnOperation$NewColumnName": "<p>The new name for the column.</p>",
28692869
"TagColumnOperation$ColumnName": "<p>The column that this operation acts on.</p>",
2870+
"UniqueKeyColumnNameList$member": null,
28702871
"UntagColumnOperation$ColumnName": "<p>The column that this operation acts on.</p>"
28712872
}
28722873
},
@@ -9622,6 +9623,14 @@
96229623
"PercentileAggregation$PercentileValue": "<p>The percentile value. This value can be any numeric constant 0–100. A percentile value of 50 computes the median value of the measure.</p>"
96239624
}
96249625
},
9626+
"PerformanceConfiguration": {
9627+
"base": "<p>The configuration for the performance optimization of the dataset that contains a <code>UniqueKey</code> configuration.</p>",
9628+
"refs": {
9629+
"CreateDataSetRequest$PerformanceConfiguration": "<p>The configuration for the performance optimization of the dataset that contains a <code>UniqueKey</code> configuration.</p>",
9630+
"DataSet$PerformanceConfiguration": "<p>The performance optimization configuration of a dataset.</p>",
9631+
"UpdateDataSetRequest$PerformanceConfiguration": "<p>The configuration for the performance optimization of the dataset that contains a <code>UniqueKey</code> configuration.</p>"
9632+
}
9633+
},
96259634
"PeriodOverPeriodComputation": {
96269635
"base": "<p>The period over period computation configuration.</p>",
96279636
"refs": {
@@ -14612,6 +14621,24 @@
1461214621
"ConditionalFormattingCustomIconOptions$UnicodeIcon": "<p>Determines the Unicode icon type.</p>"
1461314622
}
1461414623
},
14624+
"UniqueKey": {
14625+
"base": "<p>A <code>UniqueKey</code> configuration that references a dataset column.</p>",
14626+
"refs": {
14627+
"UniqueKeyList$member": null
14628+
}
14629+
},
14630+
"UniqueKeyColumnNameList": {
14631+
"base": null,
14632+
"refs": {
14633+
"UniqueKey$ColumnNames": "<p>The name of the column that is referenced in the <code>UniqueKey</code> configuration.</p>"
14634+
}
14635+
},
14636+
"UniqueKeyList": {
14637+
"base": null,
14638+
"refs": {
14639+
"PerformanceConfiguration$UniqueKeys": "<p>A <code>UniqueKey</code> configuration.</p>"
14640+
}
14641+
},
1461514642
"UniqueValuesComputation": {
1461614643
"base": "<p>The unique values computation configuration.</p>",
1461714644
"refs": {

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9255,6 +9255,10 @@
92559255
"FolderArns":{
92569256
"shape":"FolderArnList",
92579257
"documentation":"<p>When you create the dataset, Amazon QuickSight adds the dataset to these folders.</p>"
9258+
},
9259+
"PerformanceConfiguration":{
9260+
"shape":"PerformanceConfiguration",
9261+
"documentation":"<p>The configuration for the performance optimization of the dataset that contains a <code>UniqueKey</code> configuration.</p>"
92589262
}
92599263
}
92609264
},
@@ -11632,6 +11636,10 @@
1163211636
"DatasetParameters":{
1163311637
"shape":"DatasetParameterList",
1163411638
"documentation":"<p>The parameters that are declared in a dataset.</p>"
11639+
},
11640+
"PerformanceConfiguration":{
11641+
"shape":"PerformanceConfiguration",
11642+
"documentation":"<p>The performance optimization configuration of a dataset.</p>"
1163511643
}
1163611644
},
1163711645
"documentation":"<p>Dataset.</p>"
@@ -26127,6 +26135,16 @@
2612726135
"max":100,
2612826136
"min":0
2612926137
},
26138+
"PerformanceConfiguration":{
26139+
"type":"structure",
26140+
"members":{
26141+
"UniqueKeys":{
26142+
"shape":"UniqueKeyList",
26143+
"documentation":"<p>A <code>UniqueKey</code> configuration.</p>"
26144+
}
26145+
},
26146+
"documentation":"<p>The configuration for the performance optimization of the dataset that contains a <code>UniqueKey</code> configuration.</p>"
26147+
},
2613026148
"PeriodOverPeriodComputation":{
2613126149
"type":"structure",
2613226150
"required":["ComputationId"],
@@ -34725,6 +34743,29 @@
3472534743
"type":"string",
3472634744
"pattern":"^[^\\u0000-\\u00FF]$"
3472734745
},
34746+
"UniqueKey":{
34747+
"type":"structure",
34748+
"required":["ColumnNames"],
34749+
"members":{
34750+
"ColumnNames":{
34751+
"shape":"UniqueKeyColumnNameList",
34752+
"documentation":"<p>The name of the column that is referenced in the <code>UniqueKey</code> configuration.</p>"
34753+
}
34754+
},
34755+
"documentation":"<p>A <code>UniqueKey</code> configuration that references a dataset column.</p>"
34756+
},
34757+
"UniqueKeyColumnNameList":{
34758+
"type":"list",
34759+
"member":{"shape":"ColumnName"},
34760+
"max":1,
34761+
"min":1
34762+
},
34763+
"UniqueKeyList":{
34764+
"type":"list",
34765+
"member":{"shape":"UniqueKey"},
34766+
"max":1,
34767+
"min":1
34768+
},
3472834769
"UniqueValuesComputation":{
3472934770
"type":"structure",
3473034771
"required":["ComputationId"],
@@ -35638,6 +35679,10 @@
3563835679
"DatasetParameters":{
3563935680
"shape":"DatasetParameterList",
3564035681
"documentation":"<p>The parameter declarations of the dataset.</p>"
35682+
},
35683+
"PerformanceConfiguration":{
35684+
"shape":"PerformanceConfiguration",
35685+
"documentation":"<p>The configuration for the performance optimization of the dataset that contains a <code>UniqueKey</code> configuration.</p>"
3564135686
}
3564235687
}
3564335688
},

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public partial class CreateDataSetRequest : AmazonQuickSightRequest
4747
private DataSetImportMode _importMode;
4848
private Dictionary<string, LogicalTable> _logicalTableMap = AWSConfigs.InitializeCollections ? new Dictionary<string, LogicalTable>() : null;
4949
private string _name;
50+
private PerformanceConfiguration _performanceConfiguration;
5051
private List<ResourcePermission> _permissions = AWSConfigs.InitializeCollections ? new List<ResourcePermission>() : null;
5152
private Dictionary<string, PhysicalTable> _physicalTableMap = AWSConfigs.InitializeCollections ? new Dictionary<string, PhysicalTable>() : null;
5253
private RowLevelPermissionDataSet _rowLevelPermissionDataSet;
@@ -260,6 +261,25 @@ internal bool IsSetName()
260261
return this._name != null;
261262
}
262263

264+
/// <summary>
265+
/// Gets and sets the property PerformanceConfiguration.
266+
/// <para>
267+
/// The configuration for the performance optimization of the dataset that contains a
268+
/// <c>UniqueKey</c> configuration.
269+
/// </para>
270+
/// </summary>
271+
public PerformanceConfiguration PerformanceConfiguration
272+
{
273+
get { return this._performanceConfiguration; }
274+
set { this._performanceConfiguration = value; }
275+
}
276+
277+
// Check to see if PerformanceConfiguration property is set
278+
internal bool IsSetPerformanceConfiguration()
279+
{
280+
return this._performanceConfiguration != null;
281+
}
282+
263283
/// <summary>
264284
/// Gets and sets the property Permissions.
265285
/// <para>

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public partial class DataSet
4848
private Dictionary<string, LogicalTable> _logicalTableMap = AWSConfigs.InitializeCollections ? new Dictionary<string, LogicalTable>() : null;
4949
private string _name;
5050
private List<OutputColumn> _outputColumns = AWSConfigs.InitializeCollections ? new List<OutputColumn>() : null;
51+
private PerformanceConfiguration _performanceConfiguration;
5152
private Dictionary<string, PhysicalTable> _physicalTableMap = AWSConfigs.InitializeCollections ? new Dictionary<string, PhysicalTable>() : null;
5253
private RowLevelPermissionDataSet _rowLevelPermissionDataSet;
5354
private RowLevelPermissionTagConfiguration _rowLevelPermissionTagConfiguration;
@@ -314,6 +315,24 @@ internal bool IsSetOutputColumns()
314315
return this._outputColumns != null && (this._outputColumns.Count > 0 || !AWSConfigs.InitializeCollections);
315316
}
316317

318+
/// <summary>
319+
/// Gets and sets the property PerformanceConfiguration.
320+
/// <para>
321+
/// The performance optimization configuration of a dataset.
322+
/// </para>
323+
/// </summary>
324+
public PerformanceConfiguration PerformanceConfiguration
325+
{
326+
get { return this._performanceConfiguration; }
327+
set { this._performanceConfiguration = value; }
328+
}
329+
330+
// Check to see if PerformanceConfiguration property is set
331+
internal bool IsSetPerformanceConfiguration()
332+
{
333+
return this._performanceConfiguration != null;
334+
}
335+
317336
/// <summary>
318337
/// Gets and sets the property PhysicalTableMap.
319338
/// <para>

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,17 @@ public IRequest Marshall(CreateDataSetRequest publicRequest)
196196
context.Writer.Write(publicRequest.Name);
197197
}
198198

199+
if(publicRequest.IsSetPerformanceConfiguration())
200+
{
201+
context.Writer.WritePropertyName("PerformanceConfiguration");
202+
context.Writer.WriteObjectStart();
203+
204+
var marshaller = PerformanceConfigurationMarshaller.Instance;
205+
marshaller.Marshall(publicRequest.PerformanceConfiguration, context);
206+
207+
context.Writer.WriteObjectEnd();
208+
}
209+
199210
if(publicRequest.IsSetPermissions())
200211
{
201212
context.Writer.WritePropertyName("Permissions");

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ public DataSet Unmarshall(JsonUnmarshallerContext context)
150150
unmarshalledObject.OutputColumns = unmarshaller.Unmarshall(context);
151151
continue;
152152
}
153+
if (context.TestExpression("PerformanceConfiguration", targetDepth))
154+
{
155+
var unmarshaller = PerformanceConfigurationUnmarshaller.Instance;
156+
unmarshalledObject.PerformanceConfiguration = unmarshaller.Unmarshall(context);
157+
continue;
158+
}
153159
if (context.TestExpression("PhysicalTableMap", targetDepth))
154160
{
155161
var unmarshaller = new DictionaryUnmarshaller<string, PhysicalTable, StringUnmarshaller, PhysicalTableUnmarshaller>(StringUnmarshaller.Instance, PhysicalTableUnmarshaller.Instance);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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.Globalization;
22+
using System.IO;
23+
using System.Text;
24+
using System.Xml.Serialization;
25+
26+
using Amazon.QuickSight.Model;
27+
using Amazon.Runtime;
28+
using Amazon.Runtime.Internal;
29+
using Amazon.Runtime.Internal.Transform;
30+
using Amazon.Runtime.Internal.Util;
31+
using ThirdParty.Json.LitJson;
32+
33+
#pragma warning disable CS0612,CS0618
34+
namespace Amazon.QuickSight.Model.Internal.MarshallTransformations
35+
{
36+
/// <summary>
37+
/// PerformanceConfiguration Marshaller
38+
/// </summary>
39+
public class PerformanceConfigurationMarshaller : IRequestMarshaller<PerformanceConfiguration, JsonMarshallerContext>
40+
{
41+
/// <summary>
42+
/// Unmarshaller the response from the service to the response class.
43+
/// </summary>
44+
/// <param name="requestObject"></param>
45+
/// <param name="context"></param>
46+
/// <returns></returns>
47+
public void Marshall(PerformanceConfiguration requestObject, JsonMarshallerContext context)
48+
{
49+
if(requestObject == null)
50+
return;
51+
if(requestObject.IsSetUniqueKeys())
52+
{
53+
context.Writer.WritePropertyName("UniqueKeys");
54+
context.Writer.WriteArrayStart();
55+
foreach(var requestObjectUniqueKeysListValue in requestObject.UniqueKeys)
56+
{
57+
context.Writer.WriteObjectStart();
58+
59+
var marshaller = UniqueKeyMarshaller.Instance;
60+
marshaller.Marshall(requestObjectUniqueKeysListValue, context);
61+
62+
context.Writer.WriteObjectEnd();
63+
}
64+
context.Writer.WriteArrayEnd();
65+
}
66+
67+
}
68+
69+
/// <summary>
70+
/// Singleton Marshaller.
71+
/// </summary>
72+
public readonly static PerformanceConfigurationMarshaller Instance = new PerformanceConfigurationMarshaller();
73+
74+
}
75+
}

0 commit comments

Comments
 (0)