Class: AWSCDK::QuickSight::CfnDashboard::CustomFilterConfigurationProperty

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

Overview

A custom filter that filters based on a single value.

This filter can be partially matched.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(match_operator:, null_option:, category_value: nil, parameter_name: nil, select_all_options: nil) ⇒ CustomFilterConfigurationProperty

Returns a new instance of CustomFilterConfigurationProperty.

Parameters:

  • match_operator (String)

    The match operator that is used to determine if a filter should be applied.

  • null_option (String)

    This option determines how null values should be treated when filtering data.

  • category_value (String, nil) (defaults to: nil)

    The category value for the filter.

  • parameter_name (String, nil) (defaults to: nil)

    The parameter whose value should be used for the filter value.

  • select_all_options (String, nil) (defaults to: nil)

    Select all of the values. Null is not the assigned value of select all.



5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
# File 'quick_sight/cfn_dashboard.rb', line 5758

def initialize(match_operator:, null_option:, category_value: nil, parameter_name: nil, select_all_options: nil)
  @match_operator = match_operator
  Jsii::Type.check_type(@match_operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "matchOperator")
  @null_option = null_option
  Jsii::Type.check_type(@null_option, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nullOption")
  @category_value = category_value
  Jsii::Type.check_type(@category_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "categoryValue") unless @category_value.nil?
  @parameter_name = parameter_name
  Jsii::Type.check_type(@parameter_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterName") unless @parameter_name.nil?
  @select_all_options = select_all_options
  Jsii::Type.check_type(@select_all_options, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "selectAllOptions") unless @select_all_options.nil?
end

Instance Attribute Details

#category_valueString? (readonly)

The category value for the filter.

This field is mutually exclusive to ParameterName .



5791
5792
5793
# File 'quick_sight/cfn_dashboard.rb', line 5791

def category_value
  @category_value
end

#match_operatorString (readonly)

The match operator that is used to determine if a filter should be applied.



5775
5776
5777
# File 'quick_sight/cfn_dashboard.rb', line 5775

def match_operator
  @match_operator
end

#null_optionString (readonly)

This option determines how null values should be treated when filtering data.

  • ALL_VALUES : Include null values in filtered results.
  • NULLS_ONLY : Only include null values in filtered results.
  • NON_NULLS_ONLY : Exclude null values from filtered results.


5784
5785
5786
# File 'quick_sight/cfn_dashboard.rb', line 5784

def null_option
  @null_option
end

#parameter_nameString? (readonly)

The parameter whose value should be used for the filter value.

This field is mutually exclusive to CategoryValue .



5798
5799
5800
# File 'quick_sight/cfn_dashboard.rb', line 5798

def parameter_name
  @parameter_name
end

#select_all_optionsString? (readonly)

Select all of the values. Null is not the assigned value of select all.

  • FILTER_ALL_VALUES


5805
5806
5807
# File 'quick_sight/cfn_dashboard.rb', line 5805

def select_all_options
  @select_all_options
end

Class Method Details

.jsii_propertiesObject



5807
5808
5809
5810
5811
5812
5813
5814
5815
# File 'quick_sight/cfn_dashboard.rb', line 5807

def self.jsii_properties
  {
    :match_operator => "matchOperator",
    :null_option => "nullOption",
    :category_value => "categoryValue",
    :parameter_name => "parameterName",
    :select_all_options => "selectAllOptions",
  }
end

Instance Method Details

#to_jsiiObject



5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
# File 'quick_sight/cfn_dashboard.rb', line 5817

def to_jsii
  result = {}
  result.merge!({
    "matchOperator" => @match_operator,
    "nullOption" => @null_option,
    "categoryValue" => @category_value,
    "parameterName" => @parameter_name,
    "selectAllOptions" => @select_all_options,
  })
  result.compact
end