Class: AWSCDK::QuickSight::CfnDashboard::SubtotalOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.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:



28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598
28599
# File 'quick_sight/cfn_dashboard.rb', line 28582

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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXNoYm9hcmQuUGl2b3RUYWJsZUZpZWxkU3VidG90YWxPcHRpb25zUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "fieldLevelOptions") unless @field_level_options.nil?
  @metric_header_cell_style = metric_header_cell_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5UYWJsZUNlbGxTdHlsZVByb3BlcnR5In1dfX0=")), "metricHeaderCellStyle") unless @metric_header_cell_style.nil?
  @style_targets = style_targets
  Jsii::Type.check_type(@style_targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXNoYm9hcmQuVGFibGVTdHlsZVRhcmdldFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "styleTargets") unless @style_targets.nil?
  @total_cell_style = total_cell_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::TableCellStyleProperty.new(**total_cell_style.transform_keys(&:to_sym)) : total_cell_style
  Jsii::Type.check_type(@total_cell_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5UYWJsZUNlbGxTdHlsZVByb3BlcnR5In1dfX0=")), "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::CfnDashboard::TableCellStyleProperty.new(**value_cell_style.transform_keys(&:to_sym)) : value_cell_style
  Jsii::Type.check_type(@value_cell_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5UYWJsZUNlbGxTdHlsZVByb3BlcnR5In1dfX0=")), "valueCellStyle") unless @value_cell_style.nil?
end

Instance Attribute Details

#custom_labelString? (readonly)

The custom label string for the subtotal cells.



28605
28606
28607
# File 'quick_sight/cfn_dashboard.rb', line 28605

def custom_label
  @custom_label
end

#field_levelString? (readonly)

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



28610
28611
28612
# File 'quick_sight/cfn_dashboard.rb', line 28610

def field_level
  @field_level
end

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

The optional configuration of subtotal cells.



28615
28616
28617
# File 'quick_sight/cfn_dashboard.rb', line 28615

def field_level_options
  @field_level_options
end

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

The cell styling options for the subtotals of header cells.



28620
28621
28622
# File 'quick_sight/cfn_dashboard.rb', line 28620

def metric_header_cell_style
  @metric_header_cell_style
end

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

The style targets options for subtotals.



28625
28626
28627
# File 'quick_sight/cfn_dashboard.rb', line 28625

def style_targets
  @style_targets
end

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

The cell styling options for the subtotal cells.



28630
28631
28632
# File 'quick_sight/cfn_dashboard.rb', line 28630

def total_cell_style
  @total_cell_style
end

#totals_visibilityString? (readonly)

The visibility configuration for the subtotal cells.



28635
28636
28637
# File 'quick_sight/cfn_dashboard.rb', line 28635

def totals_visibility
  @totals_visibility
end

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

The cell styling options for the subtotals of value cells.



28640
28641
28642
# File 'quick_sight/cfn_dashboard.rb', line 28640

def value_cell_style
  @value_cell_style
end

Class Method Details

.jsii_propertiesObject



28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
# File 'quick_sight/cfn_dashboard.rb', line 28642

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



28655
28656
28657
28658
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
# File 'quick_sight/cfn_dashboard.rb', line 28655

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