Class: AWSCDK::QuickSight::CfnDashboard::FilterScopeConfigurationProperty

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



11359
11360
11361
11362
11363
11364
# File 'quick_sight/cfn_dashboard.rb', line 11359

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::CfnDashboard::SelectedSheetsFilterScopeConfigurationProperty.new(**selected_sheets.transform_keys(&:to_sym)) : selected_sheets
  Jsii::Type.check_type(@selected_sheets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5TZWxlY3RlZFNoZWV0c0ZpbHRlclNjb3BlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "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.



11372
11373
11374
# File 'quick_sight/cfn_dashboard.rb', line 11372

def all_sheets
  @all_sheets
end

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

The configuration for applying a filter to specific sheets.



11377
11378
11379
# File 'quick_sight/cfn_dashboard.rb', line 11377

def selected_sheets
  @selected_sheets
end

Class Method Details

.jsii_propertiesObject



11379
11380
11381
11382
11383
11384
# File 'quick_sight/cfn_dashboard.rb', line 11379

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

Instance Method Details

#to_jsiiObject



11386
11387
11388
11389
11390
11391
11392
11393
# File 'quick_sight/cfn_dashboard.rb', line 11386

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