Class: AWSCDK::QuickSight::CfnDashboard::DataLabelTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::DataLabelTypeProperty
- Defined in:
- quick_sight/cfn_dashboard.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.
6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 |
# File 'quick_sight/cfn_dashboard.rb', line 6921 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::CfnDashboard::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5EYXRhUGF0aExhYmVsVHlwZVByb3BlcnR5In1dfX0=")), "dataPathLabelType") unless @data_path_label_type.nil? @field_label_type = field_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::FieldLabelTypeProperty.new(**field_label_type.transform_keys(&:to_sym)) : field_label_type Jsii::Type.check_type(@field_label_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5GaWVsZExhYmVsVHlwZVByb3BlcnR5In1dfX0=")), "fieldLabelType") unless @field_label_type.nil? @maximum_label_type = maximum_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::MaximumLabelTypeProperty.new(**maximum_label_type.transform_keys(&:to_sym)) : maximum_label_type Jsii::Type.check_type(@maximum_label_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5NYXhpbXVtTGFiZWxUeXBlUHJvcGVydHkifV19fQ==")), "maximumLabelType") unless @maximum_label_type.nil? @minimum_label_type = minimum_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::MinimumLabelTypeProperty.new(**minimum_label_type.transform_keys(&:to_sym)) : minimum_label_type Jsii::Type.check_type(@minimum_label_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5NaW5pbXVtTGFiZWxUeXBlUHJvcGVydHkifV19fQ==")), "minimumLabelType") unless @minimum_label_type.nil? @range_ends_label_type = range_ends_label_type.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5SYW5nZUVuZHNMYWJlbFR5cGVQcm9wZXJ0eSJ9XX19")), "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.
6938 6939 6940 |
# File 'quick_sight/cfn_dashboard.rb', line 6938 def data_path_label_type @data_path_label_type end |
#field_label_type ⇒ AWSCDK::IResolvable, ... (readonly)
Determines the label configuration for the entire field.
6943 6944 6945 |
# File 'quick_sight/cfn_dashboard.rb', line 6943 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.
6948 6949 6950 |
# File 'quick_sight/cfn_dashboard.rb', line 6948 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.
6953 6954 6955 |
# File 'quick_sight/cfn_dashboard.rb', line 6953 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.
6958 6959 6960 |
# File 'quick_sight/cfn_dashboard.rb', line 6958 def range_ends_label_type @range_ends_label_type end |
Class Method Details
.jsii_properties ⇒ Object
6960 6961 6962 6963 6964 6965 6966 6967 6968 |
# File 'quick_sight/cfn_dashboard.rb', line 6960 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
6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 |
# File 'quick_sight/cfn_dashboard.rb', line 6970 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 |