Class: AWSCDK::QuickSight::CfnTemplate::SubtotalOptionsProperty

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



25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
# File 'quick_sight/cfn_template.rb', line 25412

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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5UZW1wbGF0ZS5QaXZvdFRhYmxlRmllbGRTdWJ0b3RhbE9wdGlvbnNQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "fieldLevelOptions") unless @field_level_options.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?
  @style_targets = style_targets
  Jsii::Type.check_type(@style_targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5UZW1wbGF0ZS5UYWJsZVN0eWxlVGFyZ2V0UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "styleTargets") unless @style_targets.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_labelString? (readonly)

The custom label string for the subtotal cells.



25435
25436
25437
# File 'quick_sight/cfn_template.rb', line 25435

def custom_label
  @custom_label
end

#field_levelString? (readonly)

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



25440
25441
25442
# File 'quick_sight/cfn_template.rb', line 25440

def field_level
  @field_level
end

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

The optional configuration of subtotal cells.



25445
25446
25447
# File 'quick_sight/cfn_template.rb', line 25445

def field_level_options
  @field_level_options
end

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

The cell styling options for the subtotals of header cells.



25450
25451
25452
# File 'quick_sight/cfn_template.rb', line 25450

def metric_header_cell_style
  @metric_header_cell_style
end

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

The style targets options for subtotals.



25455
25456
25457
# File 'quick_sight/cfn_template.rb', line 25455

def style_targets
  @style_targets
end

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

The cell styling options for the subtotal cells.



25460
25461
25462
# File 'quick_sight/cfn_template.rb', line 25460

def total_cell_style
  @total_cell_style
end

#totals_visibilityString? (readonly)

The visibility configuration for the subtotal cells.



25465
25466
25467
# File 'quick_sight/cfn_template.rb', line 25465

def totals_visibility
  @totals_visibility
end

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

The cell styling options for the subtotals of value cells.



25470
25471
25472
# File 'quick_sight/cfn_template.rb', line 25470

def value_cell_style
  @value_cell_style
end

Class Method Details

.jsii_propertiesObject



25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
# File 'quick_sight/cfn_template.rb', line 25472

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



25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
# File 'quick_sight/cfn_template.rb', line 25485

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