Class: AWSCDK::QuickSight::CfnAnalysis::SubtotalOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.rb

Overview

The subtotal options.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(custom_label: nil, field_level: nil, field_level_options: nil, metric_header_cell_style: nil, style_targets: nil, total_cell_style: nil, totals_visibility: nil, value_cell_style: nil) ⇒ SubtotalOptionsProperty

Returns a new instance of SubtotalOptionsProperty.

Parameters:



27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
# File 'quick_sight/cfn_analysis.rb', line 27544

def initialize(custom_label: nil, field_level: nil, field_level_options: nil, metric_header_cell_style: nil, style_targets: 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?
  @field_level = field_level
  Jsii::Type.check_type(@field_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldLevel") unless @field_level.nil?
  @field_level_options = field_level_options
  Jsii::Type.check_type(@field_level_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5BbmFseXNpcy5QaXZvdFRhYmxlRmllbGRTdWJ0b3RhbE9wdGlvbnNQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "fieldLevelOptions") unless @field_level_options.nil?
  @metric_header_cell_style = metric_header_cell_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlRhYmxlQ2VsbFN0eWxlUHJvcGVydHkifV19fQ==")), "metricHeaderCellStyle") unless @metric_header_cell_style.nil?
  @style_targets = style_targets
  Jsii::Type.check_type(@style_targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5BbmFseXNpcy5UYWJsZVN0eWxlVGFyZ2V0UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "styleTargets") unless @style_targets.nil?
  @total_cell_style = total_cell_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::TableCellStyleProperty.new(**total_cell_style.transform_keys(&:to_sym)) : total_cell_style
  Jsii::Type.check_type(@total_cell_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlRhYmxlQ2VsbFN0eWxlUHJvcGVydHkifV19fQ==")), "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::CfnAnalysis::TableCellStyleProperty.new(**value_cell_style.transform_keys(&:to_sym)) : value_cell_style
  Jsii::Type.check_type(@value_cell_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlRhYmxlQ2VsbFN0eWxlUHJvcGVydHkifV19fQ==")), "valueCellStyle") unless @value_cell_style.nil?
end

Instance Attribute Details

#custom_labelString? (readonly)

The custom label string for the subtotal cells.



27567
27568
27569
# File 'quick_sight/cfn_analysis.rb', line 27567

def custom_label
  @custom_label
end

#field_levelString? (readonly)

The field level (all, custom, last) for the subtotal cells.



27572
27573
27574
# File 'quick_sight/cfn_analysis.rb', line 27572

def field_level
  @field_level
end

#field_level_optionsAWSCDK::IResolvable, ... (readonly)

The optional configuration of subtotal cells.



27577
27578
27579
# File 'quick_sight/cfn_analysis.rb', line 27577

def field_level_options
  @field_level_options
end

#metric_header_cell_styleAWSCDK::IResolvable, ... (readonly)

The cell styling options for the subtotals of header cells.



27582
27583
27584
# File 'quick_sight/cfn_analysis.rb', line 27582

def metric_header_cell_style
  @metric_header_cell_style
end

#style_targetsAWSCDK::IResolvable, ... (readonly)

The style targets options for subtotals.



27587
27588
27589
# File 'quick_sight/cfn_analysis.rb', line 27587

def style_targets
  @style_targets
end

#total_cell_styleAWSCDK::IResolvable, ... (readonly)

The cell styling options for the subtotal cells.



27592
27593
27594
# File 'quick_sight/cfn_analysis.rb', line 27592

def total_cell_style
  @total_cell_style
end

#totals_visibilityString? (readonly)

The visibility configuration for the subtotal cells.



27597
27598
27599
# File 'quick_sight/cfn_analysis.rb', line 27597

def totals_visibility
  @totals_visibility
end

#value_cell_styleAWSCDK::IResolvable, ... (readonly)

The cell styling options for the subtotals of value cells.



27602
27603
27604
# File 'quick_sight/cfn_analysis.rb', line 27602

def value_cell_style
  @value_cell_style
end

Class Method Details

.jsii_propertiesObject



27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
# File 'quick_sight/cfn_analysis.rb', line 27604

def self.jsii_properties
  {
    :custom_label => "customLabel",
    :field_level => "fieldLevel",
    :field_level_options => "fieldLevelOptions",
    :metric_header_cell_style => "metricHeaderCellStyle",
    :style_targets => "styleTargets",
    :total_cell_style => "totalCellStyle",
    :totals_visibility => "totalsVisibility",
    :value_cell_style => "valueCellStyle",
  }
end

Instance Method Details

#to_jsiiObject



27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
# File 'quick_sight/cfn_analysis.rb', line 27617

def to_jsii
  result = {}
  result.merge!({
    "customLabel" => @custom_label,
    "fieldLevel" => @field_level,
    "fieldLevelOptions" => @field_level_options,
    "metricHeaderCellStyle" => @metric_header_cell_style,
    "styleTargets" => @style_targets,
    "totalCellStyle" => @total_cell_style,
    "totalsVisibility" => @totals_visibility,
    "valueCellStyle" => @value_cell_style,
  })
  result.compact
end