Skip to content

Commit 6fcd087

Browse files
Add support to analysis and sheet level highlighting in QuickSight.
1 parent d834e2a commit 6fcd087

16 files changed

+664
-20
lines changed

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

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@
134134
{"shape":"ThrottlingException"},
135135
{"shape":"InvalidRequestException"},
136136
{"shape":"LimitExceededException"},
137-
{"shape":"AccessDeniedException"},
138137
{"shape":"ConflictException"},
138+
{"shape":"AccessDeniedException"},
139139
{"shape":"InternalServerException"}
140140
]
141141
},
@@ -592,8 +592,8 @@
592592
{"shape":"ThrottlingException"},
593593
{"shape":"InvalidRequestException"},
594594
{"shape":"ResourceNotFoundException"},
595-
{"shape":"AccessDeniedException"},
596595
{"shape":"ConflictException"},
596+
{"shape":"AccessDeniedException"},
597597
{"shape":"InternalServerException"}
598598
],
599599
"idempotent":true
@@ -611,8 +611,8 @@
611611
{"shape":"ThrottlingException"},
612612
{"shape":"InvalidRequestException"},
613613
{"shape":"ResourceNotFoundException"},
614-
{"shape":"AccessDeniedException"},
615614
{"shape":"ConflictException"},
615+
{"shape":"AccessDeniedException"},
616616
{"shape":"InternalServerException"}
617617
],
618618
"idempotent":true
@@ -1219,8 +1219,8 @@
12191219
{"shape":"ThrottlingException"},
12201220
{"shape":"InvalidRequestException"},
12211221
{"shape":"ResourceNotFoundException"},
1222-
{"shape":"AccessDeniedException"},
12231222
{"shape":"ConflictException"},
1223+
{"shape":"AccessDeniedException"},
12241224
{"shape":"InternalServerException"}
12251225
]
12261226
},
@@ -1237,8 +1237,8 @@
12371237
{"shape":"ThrottlingException"},
12381238
{"shape":"InvalidRequestException"},
12391239
{"shape":"ResourceNotFoundException"},
1240-
{"shape":"AccessDeniedException"},
12411240
{"shape":"ConflictException"},
1241+
{"shape":"AccessDeniedException"},
12421242
{"shape":"InternalServerException"}
12431243
]
12441244
},
@@ -1255,8 +1255,8 @@
12551255
{"shape":"ThrottlingException"},
12561256
{"shape":"InvalidRequestException"},
12571257
{"shape":"ResourceNotFoundException"},
1258-
{"shape":"AccessDeniedException"},
12591258
{"shape":"ConflictException"},
1259+
{"shape":"AccessDeniedException"},
12601260
{"shape":"InternalServerException"}
12611261
]
12621262
},
@@ -3037,8 +3037,8 @@
30373037
{"shape":"ThrottlingException"},
30383038
{"shape":"InvalidRequestException"},
30393039
{"shape":"ResourceNotFoundException"},
3040-
{"shape":"AccessDeniedException"},
30413040
{"shape":"ConflictException"},
3041+
{"shape":"AccessDeniedException"},
30423042
{"shape":"InternalServerException"}
30433043
],
30443044
"idempotent":true
@@ -3056,8 +3056,8 @@
30563056
{"shape":"ThrottlingException"},
30573057
{"shape":"InvalidRequestException"},
30583058
{"shape":"ResourceNotFoundException"},
3059-
{"shape":"AccessDeniedException"},
30603059
{"shape":"ConflictException"},
3060+
{"shape":"AccessDeniedException"},
30613061
{"shape":"InternalServerException"}
30623062
],
30633063
"idempotent":true
@@ -3075,8 +3075,8 @@
30753075
{"shape":"ThrottlingException"},
30763076
{"shape":"InvalidRequestException"},
30773077
{"shape":"ResourceNotFoundException"},
3078-
{"shape":"AccessDeniedException"},
30793078
{"shape":"ConflictException"},
3079+
{"shape":"AccessDeniedException"},
30803080
{"shape":"InternalServerException"}
30813081
],
30823082
"idempotent":true
@@ -5092,7 +5092,8 @@
50925092
"Timezone":{"shape":"String"},
50935093
"WeekStart":{"shape":"DayOfTheWeek"},
50945094
"QBusinessInsightsStatus":{"shape":"QBusinessInsightsStatus"},
5095-
"ExcludedDataSetArns":{"shape":"DataSetArnsList"}
5095+
"ExcludedDataSetArns":{"shape":"DataSetArnsList"},
5096+
"CustomActionDefaults":{"shape":"VisualCustomActionDefaults"}
50965097
}
50975098
},
50985099
"AssignmentStatus":{
@@ -19995,7 +19996,8 @@
1999519996
"Images":{"shape":"SheetImageList"},
1999619997
"Layouts":{"shape":"LayoutList"},
1999719998
"SheetControlLayouts":{"shape":"SheetControlLayoutList"},
19998-
"ContentType":{"shape":"SheetContentType"}
19999+
"ContentType":{"shape":"SheetContentType"},
20000+
"CustomActionDefaults":{"shape":"VisualCustomActionDefaults"}
1999920001
}
2000020002
},
2000120003
"SheetDefinitionList":{
@@ -24467,6 +24469,12 @@
2446724469
"ActionOperations":{"shape":"VisualCustomActionOperationList"}
2446824470
}
2446924471
},
24472+
"VisualCustomActionDefaults":{
24473+
"type":"structure",
24474+
"members":{
24475+
"highlightOperation":{"shape":"VisualHighlightOperation"}
24476+
}
24477+
},
2447024478
"VisualCustomActionList":{
2447124479
"type":"list",
2447224480
"member":{"shape":"VisualCustomAction"},
@@ -24499,6 +24507,21 @@
2449924507
"DATA_POINT_MENU"
2450024508
]
2450124509
},
24510+
"VisualHighlightOperation":{
24511+
"type":"structure",
24512+
"required":["Trigger"],
24513+
"members":{
24514+
"Trigger":{"shape":"VisualHighlightTrigger"}
24515+
}
24516+
},
24517+
"VisualHighlightTrigger":{
24518+
"type":"string",
24519+
"enum":[
24520+
"DATA_POINT_CLICK",
24521+
"DATA_POINT_HOVER",
24522+
"NONE"
24523+
]
24524+
},
2450224525
"VisualInteractionOptions":{
2450324526
"type":"structure",
2450424527
"members":{

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15585,6 +15585,13 @@
1558515585
"VisualCustomActionList$member": null
1558615586
}
1558715587
},
15588+
"VisualCustomActionDefaults": {
15589+
"base": "<p>A list of custom actions applied to visuals in an analysis or sheet.</p>",
15590+
"refs": {
15591+
"AssetOptions$CustomActionDefaults": "<p>A list of visual custom actions for the analysis.</p>",
15592+
"SheetDefinition$CustomActionDefaults": "<p>A list of visual custom actions for the sheet.</p>"
15593+
}
15594+
},
1558815595
"VisualCustomActionList": {
1558915596
"base": null,
1559015597
"refs": {
@@ -15637,6 +15644,18 @@
1563715644
"VisualCustomAction$Trigger": "<p>The trigger of the <code>VisualCustomAction</code>.</p> <p>Valid values are defined as follows:</p> <ul> <li> <p> <code>DATA_POINT_CLICK</code>: Initiates a custom action by a left pointer click on a data point.</p> </li> <li> <p> <code>DATA_POINT_MENU</code>: Initiates a custom action by right pointer click from the menu.</p> </li> </ul>"
1563815645
}
1563915646
},
15647+
"VisualHighlightOperation": {
15648+
"base": "<p>Defines what initiates a highlight operation on a visual, such as a click or hover.</p>",
15649+
"refs": {
15650+
"VisualCustomActionDefaults$highlightOperation": "<p>A list of highlight operations available for visuals in an analysis or sheet.</p>"
15651+
}
15652+
},
15653+
"VisualHighlightTrigger": {
15654+
"base": null,
15655+
"refs": {
15656+
"VisualHighlightOperation$Trigger": "<p>Specifies whether a highlight operation is initiated by a click or hover, or whether it's disabled.</p>"
15657+
}
15658+
},
1564015659
"VisualInteractionOptions": {
1564115660
"base": "<p>The general visual interactions setup for visual publish options</p>",
1564215661
"refs": {

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

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@
140140
{"shape":"ThrottlingException"},
141141
{"shape":"InvalidRequestException"},
142142
{"shape":"LimitExceededException"},
143-
{"shape":"AccessDeniedException"},
144143
{"shape":"ConflictException"},
144+
{"shape":"AccessDeniedException"},
145145
{"shape":"InternalServerException"}
146146
],
147147
"documentation":"<p>Creates an Amazon QuickSight brand.</p>"
@@ -622,8 +622,8 @@
622622
{"shape":"ThrottlingException"},
623623
{"shape":"InvalidRequestException"},
624624
{"shape":"ResourceNotFoundException"},
625-
{"shape":"AccessDeniedException"},
626625
{"shape":"ConflictException"},
626+
{"shape":"AccessDeniedException"},
627627
{"shape":"InternalServerException"}
628628
],
629629
"documentation":"<p>Deletes an Amazon QuickSight brand.</p>",
@@ -642,8 +642,8 @@
642642
{"shape":"ThrottlingException"},
643643
{"shape":"InvalidRequestException"},
644644
{"shape":"ResourceNotFoundException"},
645-
{"shape":"AccessDeniedException"},
646645
{"shape":"ConflictException"},
646+
{"shape":"AccessDeniedException"},
647647
{"shape":"InternalServerException"}
648648
],
649649
"documentation":"<p>Deletes a brand assignment.</p>",
@@ -1285,8 +1285,8 @@
12851285
{"shape":"ThrottlingException"},
12861286
{"shape":"InvalidRequestException"},
12871287
{"shape":"ResourceNotFoundException"},
1288-
{"shape":"AccessDeniedException"},
12891288
{"shape":"ConflictException"},
1289+
{"shape":"AccessDeniedException"},
12901290
{"shape":"InternalServerException"}
12911291
],
12921292
"documentation":"<p>Describes a brand.</p>"
@@ -1304,8 +1304,8 @@
13041304
{"shape":"ThrottlingException"},
13051305
{"shape":"InvalidRequestException"},
13061306
{"shape":"ResourceNotFoundException"},
1307-
{"shape":"AccessDeniedException"},
13081307
{"shape":"ConflictException"},
1308+
{"shape":"AccessDeniedException"},
13091309
{"shape":"InternalServerException"}
13101310
],
13111311
"documentation":"<p>Describes a brand assignment.</p>"
@@ -1323,8 +1323,8 @@
13231323
{"shape":"ThrottlingException"},
13241324
{"shape":"InvalidRequestException"},
13251325
{"shape":"ResourceNotFoundException"},
1326-
{"shape":"AccessDeniedException"},
13271326
{"shape":"ConflictException"},
1327+
{"shape":"AccessDeniedException"},
13281328
{"shape":"InternalServerException"}
13291329
],
13301330
"documentation":"<p>Describes the published version of the brand.</p>"
@@ -3207,8 +3207,8 @@
32073207
{"shape":"ThrottlingException"},
32083208
{"shape":"InvalidRequestException"},
32093209
{"shape":"ResourceNotFoundException"},
3210-
{"shape":"AccessDeniedException"},
32113210
{"shape":"ConflictException"},
3211+
{"shape":"AccessDeniedException"},
32123212
{"shape":"InternalServerException"}
32133213
],
32143214
"documentation":"<p>Updates a brand.</p>",
@@ -3227,8 +3227,8 @@
32273227
{"shape":"ThrottlingException"},
32283228
{"shape":"InvalidRequestException"},
32293229
{"shape":"ResourceNotFoundException"},
3230-
{"shape":"AccessDeniedException"},
32313230
{"shape":"ConflictException"},
3231+
{"shape":"AccessDeniedException"},
32323232
{"shape":"InternalServerException"}
32333233
],
32343234
"documentation":"<p>Updates a brand assignment.</p>",
@@ -3247,8 +3247,8 @@
32473247
{"shape":"ThrottlingException"},
32483248
{"shape":"InvalidRequestException"},
32493249
{"shape":"ResourceNotFoundException"},
3250-
{"shape":"AccessDeniedException"},
32513250
{"shape":"ConflictException"},
3251+
{"shape":"AccessDeniedException"},
32523252
{"shape":"InternalServerException"}
32533253
],
32543254
"documentation":"<p>Updates the published version of a brand.</p>",
@@ -6092,6 +6092,10 @@
60926092
"ExcludedDataSetArns":{
60936093
"shape":"DataSetArnsList",
60946094
"documentation":"<p>A list of dataset ARNS to exclude from Dashboard Q&amp;A.</p>"
6095+
},
6096+
"CustomActionDefaults":{
6097+
"shape":"VisualCustomActionDefaults",
6098+
"documentation":"<p>A list of visual custom actions for the analysis.</p>"
60956099
}
60966100
},
60976101
"documentation":"<p>An array of analysis level configurations.</p>"
@@ -30307,6 +30311,10 @@
3030730311
"ContentType":{
3030830312
"shape":"SheetContentType",
3030930313
"documentation":"<p>The layout content type of the sheet. Choose one of the following options:</p> <ul> <li> <p> <code>PAGINATED</code>: Creates a sheet for a paginated report.</p> </li> <li> <p> <code>INTERACTIVE</code>: Creates a sheet for an interactive dashboard.</p> </li> </ul>"
30314+
},
30315+
"CustomActionDefaults":{
30316+
"shape":"VisualCustomActionDefaults",
30317+
"documentation":"<p>A list of visual custom actions for the sheet.</p>"
3031030318
}
3031130319
},
3031230320
"documentation":"<p>A sheet is an object that contains a set of visuals that are viewed together on one page in a paginated report. Every analysis and dashboard must contain at least one sheet.</p>"
@@ -37924,6 +37932,16 @@
3792437932
},
3792537933
"documentation":"<p>A custom action defined on a visual.</p>"
3792637934
},
37935+
"VisualCustomActionDefaults":{
37936+
"type":"structure",
37937+
"members":{
37938+
"highlightOperation":{
37939+
"shape":"VisualHighlightOperation",
37940+
"documentation":"<p>A list of highlight operations available for visuals in an analysis or sheet.</p>"
37941+
}
37942+
},
37943+
"documentation":"<p>A list of custom actions applied to visuals in an analysis or sheet.</p>"
37944+
},
3792737945
"VisualCustomActionList":{
3792837946
"type":"list",
3792937947
"member":{"shape":"VisualCustomAction"},
@@ -37969,6 +37987,25 @@
3796937987
"DATA_POINT_MENU"
3797037988
]
3797137989
},
37990+
"VisualHighlightOperation":{
37991+
"type":"structure",
37992+
"required":["Trigger"],
37993+
"members":{
37994+
"Trigger":{
37995+
"shape":"VisualHighlightTrigger",
37996+
"documentation":"<p>Specifies whether a highlight operation is initiated by a click or hover, or whether it's disabled.</p>"
37997+
}
37998+
},
37999+
"documentation":"<p>Defines what initiates a highlight operation on a visual, such as a click or hover.</p>"
38000+
},
38001+
"VisualHighlightTrigger":{
38002+
"type":"string",
38003+
"enum":[
38004+
"DATA_POINT_CLICK",
38005+
"DATA_POINT_HOVER",
38006+
"NONE"
38007+
]
38008+
},
3797238009
"VisualInteractionOptions":{
3797338010
"type":"structure",
3797438011
"members":{

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,30 @@ namespace Amazon.QuickSight.Model
3434
/// </summary>
3535
public partial class AssetOptions
3636
{
37+
private VisualCustomActionDefaults _customActionDefaults;
3738
private List<string> _excludedDataSetArns = AWSConfigs.InitializeCollections ? new List<string>() : null;
3839
private QBusinessInsightsStatus _qBusinessInsightsStatus;
3940
private string _timezone;
4041
private DayOfTheWeek _weekStart;
4142

43+
/// <summary>
44+
/// Gets and sets the property CustomActionDefaults.
45+
/// <para>
46+
/// A list of visual custom actions for the analysis.
47+
/// </para>
48+
/// </summary>
49+
public VisualCustomActionDefaults CustomActionDefaults
50+
{
51+
get { return this._customActionDefaults; }
52+
set { this._customActionDefaults = value; }
53+
}
54+
55+
// Check to see if CustomActionDefaults property is set
56+
internal bool IsSetCustomActionDefaults()
57+
{
58+
return this._customActionDefaults != null;
59+
}
60+
4261
/// <summary>
4362
/// Gets and sets the property ExcludedDataSetArns.
4463
/// <para>

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ public void Marshall(AssetOptions requestObject, JsonMarshallerContext context)
4848
{
4949
if(requestObject == null)
5050
return;
51+
if(requestObject.IsSetCustomActionDefaults())
52+
{
53+
context.Writer.WritePropertyName("CustomActionDefaults");
54+
context.Writer.WriteObjectStart();
55+
56+
var marshaller = VisualCustomActionDefaultsMarshaller.Instance;
57+
marshaller.Marshall(requestObject.CustomActionDefaults, context);
58+
59+
context.Writer.WriteObjectEnd();
60+
}
61+
5162
if(requestObject.IsSetExcludedDataSetArns())
5263
{
5364
context.Writer.WritePropertyName("ExcludedDataSetArns");

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ public AssetOptions Unmarshall(JsonUnmarshallerContext context)
6666
int targetDepth = context.CurrentDepth;
6767
while (context.ReadAtDepth(targetDepth))
6868
{
69+
if (context.TestExpression("CustomActionDefaults", targetDepth))
70+
{
71+
var unmarshaller = VisualCustomActionDefaultsUnmarshaller.Instance;
72+
unmarshalledObject.CustomActionDefaults = unmarshaller.Unmarshall(context);
73+
continue;
74+
}
6975
if (context.TestExpression("ExcludedDataSetArns", targetDepth))
7076
{
7177
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);

0 commit comments

Comments
 (0)