Class: AWSCDK::QuickSight::CfnAnalysis::DataLabelTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::DataLabelTypeProperty
- Defined in:
- quick_sight/cfn_analysis.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.
6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 |
# File 'quick_sight/cfn_analysis.rb', line 6467 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::CfnAnalysis::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRhdGFQYXRoTGFiZWxUeXBlUHJvcGVydHkifV19fQ==")), "dataPathLabelType") unless @data_path_label_type.nil? @field_label_type = field_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::FieldLabelTypeProperty.new(**field_label_type.transform_keys(&:to_sym)) : field_label_type Jsii::Type.check_type(@field_label_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkZpZWxkTGFiZWxUeXBlUHJvcGVydHkifV19fQ==")), "fieldLabelType") unless @field_label_type.nil? @maximum_label_type = maximum_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::MaximumLabelTypeProperty.new(**maximum_label_type.transform_keys(&:to_sym)) : maximum_label_type Jsii::Type.check_type(@maximum_label_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLk1heGltdW1MYWJlbFR5cGVQcm9wZXJ0eSJ9XX19")), "maximumLabelType") unless @maximum_label_type.nil? @minimum_label_type = minimum_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::MinimumLabelTypeProperty.new(**minimum_label_type.transform_keys(&:to_sym)) : minimum_label_type Jsii::Type.check_type(@minimum_label_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLk1pbmltdW1MYWJlbFR5cGVQcm9wZXJ0eSJ9XX19")), "minimumLabelType") unless @minimum_label_type.nil? @range_ends_label_type = range_ends_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlJhbmdlRW5kc0xhYmVsVHlwZVByb3BlcnR5In1dfX0=")), "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.
6484 6485 6486 |
# File 'quick_sight/cfn_analysis.rb', line 6484 def data_path_label_type @data_path_label_type end |
#field_label_type ⇒ AWSCDK::IResolvable, ... (readonly)
Determines the label configuration for the entire field.
6489 6490 6491 |
# File 'quick_sight/cfn_analysis.rb', line 6489 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.
6494 6495 6496 |
# File 'quick_sight/cfn_analysis.rb', line 6494 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.
6499 6500 6501 |
# File 'quick_sight/cfn_analysis.rb', line 6499 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.
6504 6505 6506 |
# File 'quick_sight/cfn_analysis.rb', line 6504 def range_ends_label_type @range_ends_label_type end |
Class Method Details
.jsii_properties ⇒ Object
6506 6507 6508 6509 6510 6511 6512 6513 6514 |
# File 'quick_sight/cfn_analysis.rb', line 6506 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
6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 |
# File 'quick_sight/cfn_analysis.rb', line 6516 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 |