Class: AWSCDK::QuickSight::CfnAnalysis::PivotTableFieldCollapseStateOptionProperty

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



21951
21952
21953
21954
21955
21956
# File 'quick_sight/cfn_analysis.rb', line 21951

def initialize(target:, state: nil)
  @target = target.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::PivotTableFieldCollapseStateTargetProperty.new(**target.transform_keys(&:to_sym)) : target
  Jsii::Type.check_type(@target, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlBpdm90VGFibGVGaWVsZENvbGxhcHNlU3RhdGVUYXJnZXRQcm9wZXJ0eSJ9XX19")), "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


21970
21971
21972
# File 'quick_sight/cfn_analysis.rb', line 21970

def state
  @state
end

Class Method Details

.jsii_propertiesObject



21972
21973
21974
21975
21976
21977
# File 'quick_sight/cfn_analysis.rb', line 21972

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

Instance Method Details

#to_jsiiObject



21979
21980
21981
21982
21983
21984
21985
21986
# File 'quick_sight/cfn_analysis.rb', line 21979

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