Class: AWSCDK::QuickSight::CfnTemplate::PivotTableFieldCollapseStateOptionProperty

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



20077
20078
20079
20080
20081
20082
# File 'quick_sight/cfn_template.rb', line 20077

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


20096
20097
20098
# File 'quick_sight/cfn_template.rb', line 20096

def state
  @state
end

Class Method Details

.jsii_propertiesObject



20098
20099
20100
20101
20102
20103
# File 'quick_sight/cfn_template.rb', line 20098

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

Instance Method Details

#to_jsiiObject



20105
20106
20107
20108
20109
20110
20111
20112
# File 'quick_sight/cfn_template.rb', line 20105

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