Class: AWSCDK::QuickSight::CfnAnalysis::CustomFilterConfigurationProperty

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



5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
# File 'quick_sight/cfn_analysis.rb', line 5892

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 .



5925
5926
5927
# File 'quick_sight/cfn_analysis.rb', line 5925

def category_value
  @category_value
end

#match_operatorString (readonly)

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



5909
5910
5911
# File 'quick_sight/cfn_analysis.rb', line 5909

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.


5918
5919
5920
# File 'quick_sight/cfn_analysis.rb', line 5918

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 .



5932
5933
5934
# File 'quick_sight/cfn_analysis.rb', line 5932

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


5939
5940
5941
# File 'quick_sight/cfn_analysis.rb', line 5939

def select_all_options
  @select_all_options
end

Class Method Details

.jsii_propertiesObject



5941
5942
5943
5944
5945
5946
5947
5948
5949
# File 'quick_sight/cfn_analysis.rb', line 5941

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



5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
# File 'quick_sight/cfn_analysis.rb', line 5951

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