Class: AWSCDK::QuickSight::CfnTemplate::DataLabelTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::DataLabelTypeProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The option that determines the data label type.
This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
Instance Attribute Summary collapse
-
#data_path_label_type ⇒ AWSCDK::IResolvable, ...
readonly
The option that specifies individual data values for labels.
-
#field_label_type ⇒ AWSCDK::IResolvable, ...
readonly
Determines the label configuration for the entire field.
-
#maximum_label_type ⇒ AWSCDK::IResolvable, ...
readonly
Determines the label configuration for the maximum value in a visual.
-
#minimum_label_type ⇒ AWSCDK::IResolvable, ...
readonly
Determines the label configuration for the minimum value in a visual.
-
#range_ends_label_type ⇒ AWSCDK::IResolvable, ...
readonly
Determines the label configuration for range end value in a visual.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data_path_label_type: nil, field_label_type: nil, maximum_label_type: nil, minimum_label_type: nil, range_ends_label_type: nil) ⇒ DataLabelTypeProperty
constructor
A new instance of DataLabelTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(data_path_label_type: nil, field_label_type: nil, maximum_label_type: nil, minimum_label_type: nil, range_ends_label_type: nil) ⇒ DataLabelTypeProperty
Returns a new instance of DataLabelTypeProperty.
6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 |
# File 'quick_sight/cfn_template.rb', line 6318 def initialize(data_path_label_type: nil, field_label_type: nil, maximum_label_type: nil, minimum_label_type: nil, range_ends_label_type: nil) @data_path_label_type = data_path_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::DataPathLabelTypeProperty.new(**data_path_label_type.transform_keys(&:to_sym)) : data_path_label_type Jsii::Type.check_type(@data_path_label_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRhdGFQYXRoTGFiZWxUeXBlUHJvcGVydHkifV19fQ==")), "dataPathLabelType") unless @data_path_label_type.nil? @field_label_type = field_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::FieldLabelTypeProperty.new(**field_label_type.transform_keys(&:to_sym)) : field_label_type Jsii::Type.check_type(@field_label_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkZpZWxkTGFiZWxUeXBlUHJvcGVydHkifV19fQ==")), "fieldLabelType") unless @field_label_type.nil? @maximum_label_type = maximum_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::MaximumLabelTypeProperty.new(**maximum_label_type.transform_keys(&:to_sym)) : maximum_label_type Jsii::Type.check_type(@maximum_label_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLk1heGltdW1MYWJlbFR5cGVQcm9wZXJ0eSJ9XX19")), "maximumLabelType") unless @maximum_label_type.nil? @minimum_label_type = minimum_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::MinimumLabelTypeProperty.new(**minimum_label_type.transform_keys(&:to_sym)) : minimum_label_type Jsii::Type.check_type(@minimum_label_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLk1pbmltdW1MYWJlbFR5cGVQcm9wZXJ0eSJ9XX19")), "minimumLabelType") unless @minimum_label_type.nil? @range_ends_label_type = range_ends_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::RangeEndsLabelTypeProperty.new(**range_ends_label_type.transform_keys(&:to_sym)) : range_ends_label_type Jsii::Type.check_type(@range_ends_label_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlJhbmdlRW5kc0xhYmVsVHlwZVByb3BlcnR5In1dfX0=")), "rangeEndsLabelType") unless @range_ends_label_type.nil? end |
Instance Attribute Details
#data_path_label_type ⇒ AWSCDK::IResolvable, ... (readonly)
The option that specifies individual data values for labels.
6335 6336 6337 |
# File 'quick_sight/cfn_template.rb', line 6335 def data_path_label_type @data_path_label_type end |
#field_label_type ⇒ AWSCDK::IResolvable, ... (readonly)
Determines the label configuration for the entire field.
6340 6341 6342 |
# File 'quick_sight/cfn_template.rb', line 6340 def field_label_type @field_label_type end |
#maximum_label_type ⇒ AWSCDK::IResolvable, ... (readonly)
Determines the label configuration for the maximum value in a visual.
6345 6346 6347 |
# File 'quick_sight/cfn_template.rb', line 6345 def maximum_label_type @maximum_label_type end |
#minimum_label_type ⇒ AWSCDK::IResolvable, ... (readonly)
Determines the label configuration for the minimum value in a visual.
6350 6351 6352 |
# File 'quick_sight/cfn_template.rb', line 6350 def minimum_label_type @minimum_label_type end |
#range_ends_label_type ⇒ AWSCDK::IResolvable, ... (readonly)
Determines the label configuration for range end value in a visual.
6355 6356 6357 |
# File 'quick_sight/cfn_template.rb', line 6355 def range_ends_label_type @range_ends_label_type end |
Class Method Details
.jsii_properties ⇒ Object
6357 6358 6359 6360 6361 6362 6363 6364 6365 |
# File 'quick_sight/cfn_template.rb', line 6357 def self.jsii_properties { :data_path_label_type => "dataPathLabelType", :field_label_type => "fieldLabelType", :maximum_label_type => "maximumLabelType", :minimum_label_type => "minimumLabelType", :range_ends_label_type => "rangeEndsLabelType", } end |
Instance Method Details
#to_jsii ⇒ Object
6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 |
# File 'quick_sight/cfn_template.rb', line 6367 def to_jsii result = {} result.merge!({ "dataPathLabelType" => @data_path_label_type, "fieldLabelType" => @field_label_type, "maximumLabelType" => @maximum_label_type, "minimumLabelType" => @minimum_label_type, "rangeEndsLabelType" => @range_ends_label_type, }) result.compact end |