Class: AWSCDK::QuickSight::CfnTemplate::TotalOptionsProperty

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

Overview

The total options for a table visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(custom_label: nil, placement: nil, scroll_status: nil, total_aggregation_options: nil, total_cell_style: nil, totals_visibility: nil) ⇒ TotalOptionsProperty

Returns a new instance of TotalOptionsProperty.

Parameters:



28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
# File 'quick_sight/cfn_template.rb', line 28512

def initialize(custom_label: nil, placement: nil, scroll_status: nil, total_aggregation_options: nil, total_cell_style: nil, totals_visibility: nil)
  @custom_label = custom_label
  Jsii::Type.check_type(@custom_label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customLabel") unless @custom_label.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 = 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?
end

Instance Attribute Details

#custom_labelString? (readonly)

The custom label string for the total cells.



28531
28532
28533
# File 'quick_sight/cfn_template.rb', line 28531

def custom_label
  @custom_label
end

#placementString? (readonly)

The placement (start, end) for the total cells.



28536
28537
28538
# File 'quick_sight/cfn_template.rb', line 28536

def placement
  @placement
end

#scroll_statusString? (readonly)

The scroll status (pinned, scrolled) for the total cells.



28541
28542
28543
# File 'quick_sight/cfn_template.rb', line 28541

def scroll_status
  @scroll_status
end

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

The total aggregation settings for each value field.



28546
28547
28548
# File 'quick_sight/cfn_template.rb', line 28546

def total_aggregation_options
  @total_aggregation_options
end

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

Cell styling options for the total cells.



28551
28552
28553
# File 'quick_sight/cfn_template.rb', line 28551

def total_cell_style
  @total_cell_style
end

#totals_visibilityString? (readonly)

The visibility configuration for the total cells.



28556
28557
28558
# File 'quick_sight/cfn_template.rb', line 28556

def totals_visibility
  @totals_visibility
end

Class Method Details

.jsii_propertiesObject



28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
# File 'quick_sight/cfn_template.rb', line 28558

def self.jsii_properties
  {
    :custom_label => "customLabel",
    :placement => "placement",
    :scroll_status => "scrollStatus",
    :total_aggregation_options => "totalAggregationOptions",
    :total_cell_style => "totalCellStyle",
    :totals_visibility => "totalsVisibility",
  }
end

Instance Method Details

#to_jsiiObject



28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
# File 'quick_sight/cfn_template.rb', line 28569

def to_jsii
  result = {}
  result.merge!({
    "customLabel" => @custom_label,
    "placement" => @placement,
    "scrollStatus" => @scroll_status,
    "totalAggregationOptions" => @total_aggregation_options,
    "totalCellStyle" => @total_cell_style,
    "totalsVisibility" => @totals_visibility,
  })
  result.compact
end