Skip to content

Commit 3d2fac0

Browse files
Added DigitGroupingStyle in ThousandsSeparator to allow grouping by LAKH( Indian Grouping system ) currency. Support LAKH and CRORE currency types in Column Formatting.
1 parent 09c1c1c commit 3d2fac0

File tree

9 files changed

+148
-11
lines changed

9 files changed

+148
-11
lines changed

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

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11831,6 +11831,13 @@
1183111831
"SourceColumn":{"shape":"ColumnIdentifier"}
1183211832
}
1183311833
},
11834+
"DigitGroupingStyle":{
11835+
"type":"string",
11836+
"enum":[
11837+
"DEFAULT",
11838+
"LAKHS"
11839+
]
11840+
},
1183411841
"DimensionField":{
1183511842
"type":"structure",
1183611843
"members":{
@@ -16994,7 +17001,9 @@
1699417001
"THOUSANDS",
1699517002
"MILLIONS",
1699617003
"BILLIONS",
16997-
"TRILLIONS"
17004+
"TRILLIONS",
17005+
"LAKHS",
17006+
"CRORES"
1699817007
]
1699917008
},
1700017009
"NumericAxisOptions":{
@@ -20986,7 +20995,7 @@
2098620995
"TableFieldOptionList":{
2098720996
"type":"list",
2098820997
"member":{"shape":"TableFieldOption"},
20989-
"max":100
20998+
"max":201
2099020999
},
2099121000
"TableFieldOptions":{
2099221001
"type":"structure",
@@ -21107,10 +21116,15 @@
2110721116
"SCROLLED"
2110821117
]
2110921118
},
21119+
"TableUnaggregatedFieldList":{
21120+
"type":"list",
21121+
"member":{"shape":"UnaggregatedField"},
21122+
"max":201
21123+
},
2111021124
"TableUnaggregatedFieldWells":{
2111121125
"type":"structure",
2111221126
"members":{
21113-
"Values":{"shape":"UnaggregatedFieldList"}
21127+
"Values":{"shape":"TableUnaggregatedFieldList"}
2111421128
}
2111521129
},
2111621130
"TableVisual":{
@@ -21515,7 +21529,8 @@
2151521529
"type":"structure",
2151621530
"members":{
2151721531
"Symbol":{"shape":"NumericSeparatorSymbol"},
21518-
"Visibility":{"shape":"Visibility"}
21532+
"Visibility":{"shape":"Visibility"},
21533+
"GroupingStyle":{"shape":"DigitGroupingStyle"}
2151921534
}
2152021535
},
2152121536
"ThrottlingException":{

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5432,6 +5432,12 @@
54325432
"SetParameterValueConfiguration$Value": null
54335433
}
54345434
},
5435+
"DigitGroupingStyle": {
5436+
"base": null,
5437+
"refs": {
5438+
"ThousandSeparatorOptions$GroupingStyle": "<p>Determines the way numbers are styled to accommodate different readability standards. The <code>DEFAULT</code> value uses the standard international grouping system and groups numbers by the thousands. The <code>LAKHS</code> value uses the Indian numbering system and groups numbers by lakhs and crores.</p>"
5439+
}
5440+
},
54355441
"DimensionField": {
54365442
"base": "<p>The dimension type field.</p>",
54375443
"refs": {
@@ -13479,6 +13485,12 @@
1347913485
"TotalOptions$ScrollStatus": "<p>The scroll status (pinned, scrolled) for the total cells.</p>"
1348013486
}
1348113487
},
13488+
"TableUnaggregatedFieldList": {
13489+
"base": null,
13490+
"refs": {
13491+
"TableUnaggregatedFieldWells$Values": "<p>The values field well for a pivot table. Values are unaggregated for an unaggregated table.</p>"
13492+
}
13493+
},
1348213494
"TableUnaggregatedFieldWells": {
1348313495
"base": "<p>The unaggregated field well for the table.</p>",
1348413496
"refs": {
@@ -14599,14 +14611,14 @@
1459914611
"base": "<p>The unaggregated field for a table.</p>",
1460014612
"refs": {
1460114613
"GeospatialLayerJoinDefinition$DatasetKeyField": null,
14614+
"TableUnaggregatedFieldList$member": null,
1460214615
"UnaggregatedFieldList$member": null
1460314616
}
1460414617
},
1460514618
"UnaggregatedFieldList": {
1460614619
"base": null,
1460714620
"refs": {
14608-
"PluginVisualFieldWell$Unaggregated": "<p>A list of unaggregated fields that exist in the field well.</p>",
14609-
"TableUnaggregatedFieldWells$Values": "<p>The values field well for a pivot table. Values are unaggregated for an unaggregated table.</p>"
14621+
"PluginVisualFieldWell$Unaggregated": "<p>A list of unaggregated fields that exist in the field well.</p>"
1461014622
}
1461114623
},
1461214624
"UndefinedSpecifiedValueType": {

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

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16920,6 +16920,13 @@
1692016920
},
1692116921
"documentation":"<p>The configuration of destination parameter values.</p> <p>This is a union type structure. For this structure to be valid, only one of the attributes can be defined.</p>"
1692216922
},
16923+
"DigitGroupingStyle":{
16924+
"type":"string",
16925+
"enum":[
16926+
"DEFAULT",
16927+
"LAKHS"
16928+
]
16929+
},
1692316930
"DimensionField":{
1692416931
"type":"structure",
1692516932
"members":{
@@ -25217,7 +25224,9 @@
2521725224
"THOUSANDS",
2521825225
"MILLIONS",
2521925226
"BILLIONS",
25220-
"TRILLIONS"
25227+
"TRILLIONS",
25228+
"LAKHS",
25229+
"CRORES"
2522125230
]
2522225231
},
2522325232
"NumericAxisOptions":{
@@ -31878,7 +31887,7 @@
3187831887
"TableFieldOptionList":{
3187931888
"type":"list",
3188031889
"member":{"shape":"TableFieldOption"},
31881-
"max":100
31890+
"max":201
3188231891
},
3188331892
"TableFieldOptions":{
3188431893
"type":"structure",
@@ -32089,11 +32098,16 @@
3208932098
"SCROLLED"
3209032099
]
3209132100
},
32101+
"TableUnaggregatedFieldList":{
32102+
"type":"list",
32103+
"member":{"shape":"UnaggregatedField"},
32104+
"max":201
32105+
},
3209232106
"TableUnaggregatedFieldWells":{
3209332107
"type":"structure",
3209432108
"members":{
3209532109
"Values":{
32096-
"shape":"UnaggregatedFieldList",
32110+
"shape":"TableUnaggregatedFieldList",
3209732111
"documentation":"<p>The values field well for a pivot table. Values are unaggregated for an unaggregated table.</p>"
3209832112
}
3209932113
},
@@ -32846,6 +32860,10 @@
3284632860
"Visibility":{
3284732861
"shape":"Visibility",
3284832862
"documentation":"<p>Determines the visibility of the thousands separator.</p>"
32863+
},
32864+
"GroupingStyle":{
32865+
"shape":"DigitGroupingStyle",
32866+
"documentation":"<p>Determines the way numbers are styled to accommodate different readability standards. The <code>DEFAULT</code> value uses the standard international grouping system and groups numbers by the thousands. The <code>LAKHS</code> value uses the Indian numbering system and groups numbers by lakhs and crores.</p>"
3284932867
}
3285032868
},
3285132869
"documentation":"<p>The options that determine the thousands separator configuration.</p>"

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ public void Marshall(ThousandSeparatorOptions requestObject, JsonMarshallerConte
4848
{
4949
if(requestObject == null)
5050
return;
51+
if(requestObject.IsSetGroupingStyle())
52+
{
53+
context.Writer.WritePropertyName("GroupingStyle");
54+
context.Writer.Write(requestObject.GroupingStyle);
55+
}
56+
5157
if(requestObject.IsSetSymbol())
5258
{
5359
context.Writer.WritePropertyName("Symbol");

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ internal bool IsSetPinnedFieldOptions()
8181
/// The field options to be configured to a table.
8282
/// </para>
8383
/// </summary>
84-
[AWSProperty(Max=100)]
84+
[AWSProperty(Max=201)]
8585
public List<TableFieldOption> SelectedFieldOptions
8686
{
8787
get { return this._selectedFieldOptions; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public partial class TableUnaggregatedFieldWells
4343
/// table.
4444
/// </para>
4545
/// </summary>
46-
[AWSProperty(Max=200)]
46+
[AWSProperty(Max=201)]
4747
public List<UnaggregatedField> Values
4848
{
4949
get { return this._values; }

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,31 @@ namespace Amazon.QuickSight.Model
3434
/// </summary>
3535
public partial class ThousandSeparatorOptions
3636
{
37+
private DigitGroupingStyle _groupingStyle;
3738
private NumericSeparatorSymbol _symbol;
3839
private Visibility _visibility;
3940

41+
/// <summary>
42+
/// Gets and sets the property GroupingStyle.
43+
/// <para>
44+
/// Determines the way numbers are styled to accommodate different readability standards.
45+
/// The <c>DEFAULT</c> value uses the standard international grouping system and groups
46+
/// numbers by the thousands. The <c>LAKHS</c> value uses the Indian numbering system
47+
/// and groups numbers by lakhs and crores.
48+
/// </para>
49+
/// </summary>
50+
public DigitGroupingStyle GroupingStyle
51+
{
52+
get { return this._groupingStyle; }
53+
set { this._groupingStyle = value; }
54+
}
55+
56+
// Check to see if GroupingStyle property is set
57+
internal bool IsSetGroupingStyle()
58+
{
59+
return this._groupingStyle != null;
60+
}
61+
4062
/// <summary>
4163
/// Gets and sets the property Symbol.
4264
/// <para>

sdk/src/Services/QuickSight/Generated/ServiceEnumerations.cs

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4432,6 +4432,56 @@ public static implicit operator DefaultAggregation(string value)
44324432
}
44334433

44344434

4435+
/// <summary>
4436+
/// Constants used for properties of type DigitGroupingStyle.
4437+
/// </summary>
4438+
public class DigitGroupingStyle : ConstantClass
4439+
{
4440+
4441+
/// <summary>
4442+
/// Constant DEFAULT for DigitGroupingStyle
4443+
/// </summary>
4444+
public static readonly DigitGroupingStyle DEFAULT = new DigitGroupingStyle("DEFAULT");
4445+
/// <summary>
4446+
/// Constant LAKHS for DigitGroupingStyle
4447+
/// </summary>
4448+
public static readonly DigitGroupingStyle LAKHS = new DigitGroupingStyle("LAKHS");
4449+
4450+
/// <summary>
4451+
/// This constant constructor does not need to be called if the constant
4452+
/// you are attempting to use is already defined as a static instance of
4453+
/// this class.
4454+
/// This constructor should be used to construct constants that are not
4455+
/// defined as statics, for instance if attempting to use a feature that is
4456+
/// newer than the current version of the SDK.
4457+
/// </summary>
4458+
public DigitGroupingStyle(string value)
4459+
: base(value)
4460+
{
4461+
}
4462+
4463+
/// <summary>
4464+
/// Finds the constant for the unique value.
4465+
/// </summary>
4466+
/// <param name="value">The unique value for the constant</param>
4467+
/// <returns>The constant for the unique value</returns>
4468+
public static DigitGroupingStyle FindValue(string value)
4469+
{
4470+
return FindValue<DigitGroupingStyle>(value);
4471+
}
4472+
4473+
/// <summary>
4474+
/// Utility method to convert strings to the constant class.
4475+
/// </summary>
4476+
/// <param name="value">The string value to convert to the constant class.</param>
4477+
/// <returns></returns>
4478+
public static implicit operator DigitGroupingStyle(string value)
4479+
{
4480+
return FindValue(value);
4481+
}
4482+
}
4483+
4484+
44354485
/// <summary>
44364486
/// Constants used for properties of type DisplayFormat.
44374487
/// </summary>
@@ -8265,6 +8315,14 @@ public class NumberScale : ConstantClass
82658315
/// </summary>
82668316
public static readonly NumberScale BILLIONS = new NumberScale("BILLIONS");
82678317
/// <summary>
8318+
/// Constant CRORES for NumberScale
8319+
/// </summary>
8320+
public static readonly NumberScale CRORES = new NumberScale("CRORES");
8321+
/// <summary>
8322+
/// Constant LAKHS for NumberScale
8323+
/// </summary>
8324+
public static readonly NumberScale LAKHS = new NumberScale("LAKHS");
8325+
/// <summary>
82688326
/// Constant MILLIONS for NumberScale
82698327
/// </summary>
82708328
public static readonly NumberScale MILLIONS = new NumberScale("MILLIONS");

0 commit comments

Comments
 (0)