Class: AWSCDK::QuickSight::CfnTemplate::PivotTotalOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::PivotTotalOptionsProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The optional configuration of totals cells in a PivotTableVisual .
Instance Attribute Summary collapse
-
#custom_label ⇒ String?
readonly
The custom label string for the total cells.
-
#metric_header_cell_style ⇒ AWSCDK::IResolvable, ...
readonly
The cell styling options for the total of header cells.
-
#placement ⇒ String?
readonly
The placement (start, end) for the total cells.
-
#scroll_status ⇒ String?
readonly
The scroll status (pinned, scrolled) for the total cells.
-
#total_aggregation_options ⇒ AWSCDK::IResolvable, ...
readonly
The total aggregation options for each value field.
-
#total_cell_style ⇒ AWSCDK::IResolvable, ...
readonly
The cell styling options for the total cells.
-
#totals_visibility ⇒ String?
readonly
The visibility configuration for the total cells.
-
#value_cell_style ⇒ AWSCDK::IResolvable, ...
readonly
The cell styling options for the totals of value cells.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(custom_label: nil, metric_header_cell_style: nil, placement: nil, scroll_status: nil, total_aggregation_options: nil, total_cell_style: nil, totals_visibility: nil, value_cell_style: nil) ⇒ PivotTotalOptionsProperty
constructor
A new instance of PivotTotalOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(custom_label: nil, metric_header_cell_style: nil, placement: nil, scroll_status: nil, total_aggregation_options: nil, total_cell_style: nil, totals_visibility: nil, value_cell_style: nil) ⇒ PivotTotalOptionsProperty
Returns a new instance of PivotTotalOptionsProperty.
20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 20855 20856 20857 20858 20859 |
# File 'quick_sight/cfn_template.rb', line 20842 def initialize(custom_label: nil, metric_header_cell_style: nil, placement: nil, scroll_status: nil, total_aggregation_options: nil, total_cell_style: nil, totals_visibility: nil, value_cell_style: nil) @custom_label = custom_label Jsii::Type.check_type(@custom_label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customLabel") unless @custom_label.nil? @metric_header_cell_style = metric_header_cell_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::TableCellStyleProperty.new(**metric_header_cell_style.transform_keys(&:to_sym)) : metric_header_cell_style Jsii::Type.check_type(@metric_header_cell_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlRhYmxlQ2VsbFN0eWxlUHJvcGVydHkifV19fQ==")), "metricHeaderCellStyle") unless @metric_header_cell_style.nil? @placement = placement Jsii::Type.check_type(@placement, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "placement") unless @placement.nil? @scroll_status = scroll_status Jsii::Type.check_type(@scroll_status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scrollStatus") unless @scroll_status.nil? @total_aggregation_options = Jsii::Type.check_type(@total_aggregation_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5UZW1wbGF0ZS5Ub3RhbEFnZ3JlZ2F0aW9uT3B0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "totalAggregationOptions") unless @total_aggregation_options.nil? @total_cell_style = total_cell_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::TableCellStyleProperty.new(**total_cell_style.transform_keys(&:to_sym)) : total_cell_style Jsii::Type.check_type(@total_cell_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlRhYmxlQ2VsbFN0eWxlUHJvcGVydHkifV19fQ==")), "totalCellStyle") unless @total_cell_style.nil? @totals_visibility = totals_visibility Jsii::Type.check_type(@totals_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "totalsVisibility") unless @totals_visibility.nil? @value_cell_style = value_cell_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::TableCellStyleProperty.new(**value_cell_style.transform_keys(&:to_sym)) : value_cell_style Jsii::Type.check_type(@value_cell_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlRhYmxlQ2VsbFN0eWxlUHJvcGVydHkifV19fQ==")), "valueCellStyle") unless @value_cell_style.nil? end |
Instance Attribute Details
#custom_label ⇒ String? (readonly)
The custom label string for the total cells.
20865 20866 20867 |
# File 'quick_sight/cfn_template.rb', line 20865 def custom_label @custom_label end |
#metric_header_cell_style ⇒ AWSCDK::IResolvable, ... (readonly)
The cell styling options for the total of header cells.
20870 20871 20872 |
# File 'quick_sight/cfn_template.rb', line 20870 def metric_header_cell_style @metric_header_cell_style end |
#placement ⇒ String? (readonly)
The placement (start, end) for the total cells.
20875 20876 20877 |
# File 'quick_sight/cfn_template.rb', line 20875 def placement @placement end |
#scroll_status ⇒ String? (readonly)
The scroll status (pinned, scrolled) for the total cells.
20880 20881 20882 |
# File 'quick_sight/cfn_template.rb', line 20880 def scroll_status @scroll_status end |
#total_aggregation_options ⇒ AWSCDK::IResolvable, ... (readonly)
The total aggregation options for each value field.
20885 20886 20887 |
# File 'quick_sight/cfn_template.rb', line 20885 def @total_aggregation_options end |
#total_cell_style ⇒ AWSCDK::IResolvable, ... (readonly)
The cell styling options for the total cells.
20890 20891 20892 |
# File 'quick_sight/cfn_template.rb', line 20890 def total_cell_style @total_cell_style end |
#totals_visibility ⇒ String? (readonly)
The visibility configuration for the total cells.
20895 20896 20897 |
# File 'quick_sight/cfn_template.rb', line 20895 def totals_visibility @totals_visibility end |
#value_cell_style ⇒ AWSCDK::IResolvable, ... (readonly)
The cell styling options for the totals of value cells.
20900 20901 20902 |
# File 'quick_sight/cfn_template.rb', line 20900 def value_cell_style @value_cell_style end |
Class Method Details
.jsii_properties ⇒ Object
20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 |
# File 'quick_sight/cfn_template.rb', line 20902 def self.jsii_properties { :custom_label => "customLabel", :metric_header_cell_style => "metricHeaderCellStyle", :placement => "placement", :scroll_status => "scrollStatus", :total_aggregation_options => "totalAggregationOptions", :total_cell_style => "totalCellStyle", :totals_visibility => "totalsVisibility", :value_cell_style => "valueCellStyle", } end |
Instance Method Details
#to_jsii ⇒ Object
20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 |
# File 'quick_sight/cfn_template.rb', line 20915 def to_jsii result = {} result.merge!({ "customLabel" => @custom_label, "metricHeaderCellStyle" => @metric_header_cell_style, "placement" => @placement, "scrollStatus" => @scroll_status, "totalAggregationOptions" => @total_aggregation_options, "totalCellStyle" => @total_cell_style, "totalsVisibility" => @totals_visibility, "valueCellStyle" => @value_cell_style, }) result.compact end |