Class: AWSCDK::QuickSight::CfnAnalysis::FilterScopeConfigurationProperty

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

Overview

The scope configuration for a FilterGroup .

This is a union type structure. For this structure to be valid, only one of the attributes can be defined.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(all_sheets: nil, selected_sheets: nil) ⇒ FilterScopeConfigurationProperty

Returns a new instance of FilterScopeConfigurationProperty.

Parameters:



10606
10607
10608
10609
10610
10611
# File 'quick_sight/cfn_analysis.rb', line 10606

def initialize(all_sheets: nil, selected_sheets: nil)
  @all_sheets = all_sheets
  Jsii::Type.check_type(@all_sheets, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "allSheets") unless @all_sheets.nil?
  @selected_sheets = selected_sheets.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::SelectedSheetsFilterScopeConfigurationProperty.new(**selected_sheets.transform_keys(&:to_sym)) : selected_sheets
  Jsii::Type.check_type(@selected_sheets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNlbGVjdGVkU2hlZXRzRmlsdGVyU2NvcGVDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "selectedSheets") unless @selected_sheets.nil?
end

Instance Attribute Details

#all_sheetsObject? (readonly)

The configuration that applies a filter to all sheets.

When you choose AllSheets as the value for a FilterScopeConfiguration , this filter is applied to all visuals of all sheets in an Analysis, Dashboard, or Template. The AllSheetsFilterScopeConfiguration is chosen.



10619
10620
10621
# File 'quick_sight/cfn_analysis.rb', line 10619

def all_sheets
  @all_sheets
end

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

The configuration for applying a filter to specific sheets.



10624
10625
10626
# File 'quick_sight/cfn_analysis.rb', line 10624

def selected_sheets
  @selected_sheets
end

Class Method Details

.jsii_propertiesObject



10626
10627
10628
10629
10630
10631
# File 'quick_sight/cfn_analysis.rb', line 10626

def self.jsii_properties
  {
    :all_sheets => "allSheets",
    :selected_sheets => "selectedSheets",
  }
end

Instance Method Details

#to_jsiiObject



10633
10634
10635
10636
10637
10638
10639
10640
# File 'quick_sight/cfn_analysis.rb', line 10633

def to_jsii
  result = {}
  result.merge!({
    "allSheets" => @all_sheets,
    "selectedSheets" => @selected_sheets,
  })
  result.compact
end