Class: AWSCDK::QuickSight::CfnDashboard::PivotTableOptionsProperty

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

Overview

The table options for a pivot table visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cell_style: nil, collapsed_row_dimensions_visibility: nil, column_header_style: nil, column_names_visibility: nil, default_cell_width: nil, metric_placement: nil, row_alternate_color_options: nil, row_field_names_style: nil, row_header_style: nil, rows_label_options: nil, rows_layout: nil, single_metric_visibility: nil, toggle_buttons_visibility: nil) ⇒ PivotTableOptionsProperty

Returns a new instance of PivotTableOptionsProperty.

Parameters:



23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
# File 'quick_sight/cfn_dashboard.rb', line 23199

def initialize(cell_style: nil, collapsed_row_dimensions_visibility: nil, column_header_style: nil, column_names_visibility: nil, default_cell_width: nil, metric_placement: nil, row_alternate_color_options: nil, row_field_names_style: nil, row_header_style: nil, rows_label_options: nil, rows_layout: nil, single_metric_visibility: nil, toggle_buttons_visibility: nil)
  @cell_style = cell_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::TableCellStyleProperty.new(**cell_style.transform_keys(&:to_sym)) : cell_style
  Jsii::Type.check_type(@cell_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5UYWJsZUNlbGxTdHlsZVByb3BlcnR5In1dfX0=")), "cellStyle") unless @cell_style.nil?
  @collapsed_row_dimensions_visibility = collapsed_row_dimensions_visibility
  Jsii::Type.check_type(@collapsed_row_dimensions_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "collapsedRowDimensionsVisibility") unless @collapsed_row_dimensions_visibility.nil?
  @column_header_style = column_header_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::TableCellStyleProperty.new(**column_header_style.transform_keys(&:to_sym)) : column_header_style
  Jsii::Type.check_type(@column_header_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5UYWJsZUNlbGxTdHlsZVByb3BlcnR5In1dfX0=")), "columnHeaderStyle") unless @column_header_style.nil?
  @column_names_visibility = column_names_visibility
  Jsii::Type.check_type(@column_names_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "columnNamesVisibility") unless @column_names_visibility.nil?
  @default_cell_width = default_cell_width
  Jsii::Type.check_type(@default_cell_width, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultCellWidth") unless @default_cell_width.nil?
  @metric_placement = metric_placement
  Jsii::Type.check_type(@metric_placement, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metricPlacement") unless @metric_placement.nil?
  @row_alternate_color_options = row_alternate_color_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::RowAlternateColorOptionsProperty.new(**row_alternate_color_options.transform_keys(&:to_sym)) : row_alternate_color_options
  Jsii::Type.check_type(@row_alternate_color_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Sb3dBbHRlcm5hdGVDb2xvck9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "rowAlternateColorOptions") unless @row_alternate_color_options.nil?
  @row_field_names_style = row_field_names_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::TableCellStyleProperty.new(**row_field_names_style.transform_keys(&:to_sym)) : row_field_names_style
  Jsii::Type.check_type(@row_field_names_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5UYWJsZUNlbGxTdHlsZVByb3BlcnR5In1dfX0=")), "rowFieldNamesStyle") unless @row_field_names_style.nil?
  @row_header_style = row_header_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::TableCellStyleProperty.new(**row_header_style.transform_keys(&:to_sym)) : row_header_style
  Jsii::Type.check_type(@row_header_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5UYWJsZUNlbGxTdHlsZVByb3BlcnR5In1dfX0=")), "rowHeaderStyle") unless @row_header_style.nil?
  @rows_label_options = rows_label_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::PivotTableRowsLabelOptionsProperty.new(**rows_label_options.transform_keys(&:to_sym)) : rows_label_options
  Jsii::Type.check_type(@rows_label_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5QaXZvdFRhYmxlUm93c0xhYmVsT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "rowsLabelOptions") unless @rows_label_options.nil?
  @rows_layout = rows_layout
  Jsii::Type.check_type(@rows_layout, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "rowsLayout") unless @rows_layout.nil?
  @single_metric_visibility = single_metric_visibility
  Jsii::Type.check_type(@single_metric_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "singleMetricVisibility") unless @single_metric_visibility.nil?
  @toggle_buttons_visibility = toggle_buttons_visibility
  Jsii::Type.check_type(@toggle_buttons_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "toggleButtonsVisibility") unless @toggle_buttons_visibility.nil?
end

Instance Attribute Details

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

The table cell style of cells.



23232
23233
23234
# File 'quick_sight/cfn_dashboard.rb', line 23232

def cell_style
  @cell_style
end

#collapsed_row_dimensions_visibilityString? (readonly)

The visibility setting of a pivot table's collapsed row dimension fields.

If the value of this structure is HIDDEN , all collapsed columns in a pivot table are automatically hidden. The default value is VISIBLE .



23239
23240
23241
# File 'quick_sight/cfn_dashboard.rb', line 23239

def collapsed_row_dimensions_visibility
  @collapsed_row_dimensions_visibility
end

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

The table cell style of the column header.



23244
23245
23246
# File 'quick_sight/cfn_dashboard.rb', line 23244

def column_header_style
  @column_header_style
end

#column_names_visibilityString? (readonly)

The visibility of the column names.



23249
23250
23251
# File 'quick_sight/cfn_dashboard.rb', line 23249

def column_names_visibility
  @column_names_visibility
end

#default_cell_widthString? (readonly)

The default cell width of the pivot table.



23254
23255
23256
# File 'quick_sight/cfn_dashboard.rb', line 23254

def default_cell_width
  @default_cell_width
end

#metric_placementString? (readonly)

The metric placement (row, column) options.



23259
23260
23261
# File 'quick_sight/cfn_dashboard.rb', line 23259

def metric_placement
  @metric_placement
end

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

The row alternate color options (widget status, row alternate colors).



23264
23265
23266
# File 'quick_sight/cfn_dashboard.rb', line 23264

def row_alternate_color_options
  @row_alternate_color_options
end

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

The table cell style of row field names.



23269
23270
23271
# File 'quick_sight/cfn_dashboard.rb', line 23269

def row_field_names_style
  @row_field_names_style
end

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

The table cell style of the row headers.



23274
23275
23276
# File 'quick_sight/cfn_dashboard.rb', line 23274

def row_header_style
  @row_header_style
end

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

The options for the label that is located above the row headers.

This option is only applicable when RowsLayout is set to HIERARCHY .



23281
23282
23283
# File 'quick_sight/cfn_dashboard.rb', line 23281

def rows_label_options
  @rows_label_options
end

#rows_layoutString? (readonly)

The layout for the row dimension headers of a pivot table. Choose one of the following options.

  • TABULAR : (Default) Each row field is displayed in a separate column.
  • HIERARCHY : All row fields are displayed in a single column. Indentation is used to differentiate row headers of different fields.


23289
23290
23291
# File 'quick_sight/cfn_dashboard.rb', line 23289

def rows_layout
  @rows_layout
end

#single_metric_visibilityString? (readonly)

The visibility of the single metric options.



23294
23295
23296
# File 'quick_sight/cfn_dashboard.rb', line 23294

def single_metric_visibility
  @single_metric_visibility
end

#toggle_buttons_visibilityString? (readonly)

Determines the visibility of the pivot table.



23299
23300
23301
# File 'quick_sight/cfn_dashboard.rb', line 23299

def toggle_buttons_visibility
  @toggle_buttons_visibility
end

Class Method Details

.jsii_propertiesObject



23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
# File 'quick_sight/cfn_dashboard.rb', line 23301

def self.jsii_properties
  {
    :cell_style => "cellStyle",
    :collapsed_row_dimensions_visibility => "collapsedRowDimensionsVisibility",
    :column_header_style => "columnHeaderStyle",
    :column_names_visibility => "columnNamesVisibility",
    :default_cell_width => "defaultCellWidth",
    :metric_placement => "metricPlacement",
    :row_alternate_color_options => "rowAlternateColorOptions",
    :row_field_names_style => "rowFieldNamesStyle",
    :row_header_style => "rowHeaderStyle",
    :rows_label_options => "rowsLabelOptions",
    :rows_layout => "rowsLayout",
    :single_metric_visibility => "singleMetricVisibility",
    :toggle_buttons_visibility => "toggleButtonsVisibility",
  }
end

Instance Method Details

#to_jsiiObject



23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
# File 'quick_sight/cfn_dashboard.rb', line 23319

def to_jsii
  result = {}
  result.merge!({
    "cellStyle" => @cell_style,
    "collapsedRowDimensionsVisibility" => @collapsed_row_dimensions_visibility,
    "columnHeaderStyle" => @column_header_style,
    "columnNamesVisibility" => @column_names_visibility,
    "defaultCellWidth" => @default_cell_width,
    "metricPlacement" => @metric_placement,
    "rowAlternateColorOptions" => @row_alternate_color_options,
    "rowFieldNamesStyle" => @row_field_names_style,
    "rowHeaderStyle" => @row_header_style,
    "rowsLabelOptions" => @rows_label_options,
    "rowsLayout" => @rows_layout,
    "singleMetricVisibility" => @single_metric_visibility,
    "toggleButtonsVisibility" => @toggle_buttons_visibility,
  })
  result.compact
end