Class: AWSCDK::QuickSight::CfnDashboard::PivotTableFieldCollapseStateOptionProperty

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

Overview

The collapse state options for the pivot table field options.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target:, state: nil) ⇒ PivotTableFieldCollapseStateOptionProperty

Returns a new instance of PivotTableFieldCollapseStateOptionProperty.

Parameters:



22923
22924
22925
22926
22927
22928
# File 'quick_sight/cfn_dashboard.rb', line 22923

def initialize(target:, state: nil)
  @target = target.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::PivotTableFieldCollapseStateTargetProperty.new(**target.transform_keys(&:to_sym)) : target
  Jsii::Type.check_type(@target, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5QaXZvdFRhYmxlRmllbGRDb2xsYXBzZVN0YXRlVGFyZ2V0UHJvcGVydHkifV19fQ==")), "target")
  @state = state
  Jsii::Type.check_type(@state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "state") unless @state.nil?
end

Instance Attribute Details

#stateString? (readonly)

The state of the field target of a pivot table. Choose one of the following options:.

  • COLLAPSED
  • EXPANDED


22942
22943
22944
# File 'quick_sight/cfn_dashboard.rb', line 22942

def state
  @state
end

Class Method Details

.jsii_propertiesObject



22944
22945
22946
22947
22948
22949
# File 'quick_sight/cfn_dashboard.rb', line 22944

def self.jsii_properties
  {
    :target => "target",
    :state => "state",
  }
end

Instance Method Details

#to_jsiiObject



22951
22952
22953
22954
22955
22956
22957
22958
# File 'quick_sight/cfn_dashboard.rb', line 22951

def to_jsii
  result = {}
  result.merge!({
    "target" => @target,
    "state" => @state,
  })
  result.compact
end