Class: AWSCDK::QBusiness::CfnDataAccessor::AttributeFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QBusiness::CfnDataAccessor::AttributeFilterProperty
- Defined in:
- q_business/cfn_data_accessor.rb
Overview
Enables filtering of responses based on document attributes or metadata fields.
Instance Attribute Summary collapse
-
#and_all_filters ⇒ AWSCDK::IResolvable, ...
readonly
Performs a logical
ANDoperation on all supplied filters. -
#contains_all ⇒ AWSCDK::IResolvable, ...
readonly
Returns
truewhen a document contains all the specified document attributes or metadata fields. -
#contains_any ⇒ AWSCDK::IResolvable, ...
readonly
Returns
truewhen a document contains any of the specified document attributes or metadata fields. -
#equals_to ⇒ AWSCDK::IResolvable, ...
readonly
Performs an equals operation on two document attributes or metadata fields.
-
#greater_than ⇒ AWSCDK::IResolvable, ...
readonly
Performs a greater than operation on two document attributes or metadata fields.
-
#greater_than_or_equals ⇒ AWSCDK::IResolvable, ...
readonly
Performs a greater or equals than operation on two document attributes or metadata fields.
-
#less_than ⇒ AWSCDK::IResolvable, ...
readonly
Performs a less than operation on two document attributes or metadata fields.
-
#less_than_or_equals ⇒ AWSCDK::IResolvable, ...
readonly
Performs a less than or equals operation on two document attributes or metadata fields.Supported for the following document attribute value type :
dateValueandlongValue. -
#not_filter ⇒ AWSCDK::IResolvable, ...
readonly
Performs a logical
NOToperation on all supplied filters. -
#or_all_filters ⇒ AWSCDK::IResolvable, ...
readonly
Performs a logical
ORoperation on all supplied filters.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(and_all_filters: nil, contains_all: nil, contains_any: nil, equals_to: nil, greater_than: nil, greater_than_or_equals: nil, less_than: nil, less_than_or_equals: nil, not_filter: nil, or_all_filters: nil) ⇒ AttributeFilterProperty
constructor
A new instance of AttributeFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(and_all_filters: nil, contains_all: nil, contains_any: nil, equals_to: nil, greater_than: nil, greater_than_or_equals: nil, less_than: nil, less_than_or_equals: nil, not_filter: nil, or_all_filters: nil) ⇒ AttributeFilterProperty
Returns a new instance of AttributeFilterProperty.
702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 |
# File 'q_business/cfn_data_accessor.rb', line 702 def initialize(and_all_filters: nil, contains_all: nil, contains_any: nil, equals_to: nil, greater_than: nil, greater_than_or_equals: nil, less_than: nil, less_than_or_equals: nil, not_filter: nil, or_all_filters: nil) @and_all_filters = and_all_filters Jsii::Type.check_type(@and_all_filters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcWJ1c2luZXNzLkNmbkRhdGFBY2Nlc3Nvci5BdHRyaWJ1dGVGaWx0ZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "andAllFilters") unless @and_all_filters.nil? @contains_all = contains_all.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeProperty.new(**contains_all.transform_keys(&:to_sym)) : contains_all Jsii::Type.check_type(@contains_all, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YUFjY2Vzc29yLkRvY3VtZW50QXR0cmlidXRlUHJvcGVydHkifV19fQ==")), "containsAll") unless @contains_all.nil? @contains_any = contains_any.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeProperty.new(**contains_any.transform_keys(&:to_sym)) : contains_any Jsii::Type.check_type(@contains_any, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YUFjY2Vzc29yLkRvY3VtZW50QXR0cmlidXRlUHJvcGVydHkifV19fQ==")), "containsAny") unless @contains_any.nil? @equals_to = equals_to.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeProperty.new(**equals_to.transform_keys(&:to_sym)) : equals_to Jsii::Type.check_type(@equals_to, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YUFjY2Vzc29yLkRvY3VtZW50QXR0cmlidXRlUHJvcGVydHkifV19fQ==")), "equalsTo") unless @equals_to.nil? @greater_than = greater_than.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeProperty.new(**greater_than.transform_keys(&:to_sym)) : greater_than Jsii::Type.check_type(@greater_than, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YUFjY2Vzc29yLkRvY3VtZW50QXR0cmlidXRlUHJvcGVydHkifV19fQ==")), "greaterThan") unless @greater_than.nil? @greater_than_or_equals = greater_than_or_equals.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeProperty.new(**greater_than_or_equals.transform_keys(&:to_sym)) : greater_than_or_equals Jsii::Type.check_type(@greater_than_or_equals, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YUFjY2Vzc29yLkRvY3VtZW50QXR0cmlidXRlUHJvcGVydHkifV19fQ==")), "greaterThanOrEquals") unless @greater_than_or_equals.nil? @less_than = less_than.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeProperty.new(**less_than.transform_keys(&:to_sym)) : less_than Jsii::Type.check_type(@less_than, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YUFjY2Vzc29yLkRvY3VtZW50QXR0cmlidXRlUHJvcGVydHkifV19fQ==")), "lessThan") unless @less_than.nil? @less_than_or_equals = less_than_or_equals.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeProperty.new(**less_than_or_equals.transform_keys(&:to_sym)) : less_than_or_equals Jsii::Type.check_type(@less_than_or_equals, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YUFjY2Vzc29yLkRvY3VtZW50QXR0cmlidXRlUHJvcGVydHkifV19fQ==")), "lessThanOrEquals") unless @less_than_or_equals.nil? @not_filter = not_filter.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataAccessor::AttributeFilterProperty.new(**not_filter.transform_keys(&:to_sym)) : not_filter Jsii::Type.check_type(@not_filter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YUFjY2Vzc29yLkF0dHJpYnV0ZUZpbHRlclByb3BlcnR5In1dfX0=")), "notFilter") unless @not_filter.nil? @or_all_filters = or_all_filters Jsii::Type.check_type(@or_all_filters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcWJ1c2luZXNzLkNmbkRhdGFBY2Nlc3Nvci5BdHRyaWJ1dGVGaWx0ZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "orAllFilters") unless @or_all_filters.nil? end |
Instance Attribute Details
#and_all_filters ⇒ AWSCDK::IResolvable, ... (readonly)
Performs a logical AND operation on all supplied filters.
729 730 731 |
# File 'q_business/cfn_data_accessor.rb', line 729 def and_all_filters @and_all_filters end |
#contains_all ⇒ AWSCDK::IResolvable, ... (readonly)
Returns true when a document contains all the specified document attributes or metadata fields.
Supported for the following document attribute value types : string_list_value .
736 737 738 |
# File 'q_business/cfn_data_accessor.rb', line 736 def contains_all @contains_all end |
#contains_any ⇒ AWSCDK::IResolvable, ... (readonly)
Returns true when a document contains any of the specified document attributes or metadata fields.
Supported for the following document attribute value types : string_list_value .
743 744 745 |
# File 'q_business/cfn_data_accessor.rb', line 743 def contains_any @contains_any end |
#equals_to ⇒ AWSCDK::IResolvable, ... (readonly)
Performs an equals operation on two document attributes or metadata fields.
Supported for the following document attribute value types : date_value , long_value , string_list_value and string_value .
750 751 752 |
# File 'q_business/cfn_data_accessor.rb', line 750 def equals_to @equals_to end |
#greater_than ⇒ AWSCDK::IResolvable, ... (readonly)
Performs a greater than operation on two document attributes or metadata fields.
Supported for the following document attribute value types : date_value and long_value .
757 758 759 |
# File 'q_business/cfn_data_accessor.rb', line 757 def greater_than @greater_than end |
#greater_than_or_equals ⇒ AWSCDK::IResolvable, ... (readonly)
Performs a greater or equals than operation on two document attributes or metadata fields.
Supported for the following document attribute value types : date_value and long_value .
764 765 766 |
# File 'q_business/cfn_data_accessor.rb', line 764 def greater_than_or_equals @greater_than_or_equals end |
#less_than ⇒ AWSCDK::IResolvable, ... (readonly)
Performs a less than operation on two document attributes or metadata fields.
Supported for the following document attribute value types : date_value and long_value .
771 772 773 |
# File 'q_business/cfn_data_accessor.rb', line 771 def less_than @less_than end |
#less_than_or_equals ⇒ AWSCDK::IResolvable, ... (readonly)
Performs a less than or equals operation on two document attributes or metadata fields.Supported for the following document attribute value type : dateValue and longValue .
776 777 778 |
# File 'q_business/cfn_data_accessor.rb', line 776 def less_than_or_equals @less_than_or_equals end |
#not_filter ⇒ AWSCDK::IResolvable, ... (readonly)
Performs a logical NOT operation on all supplied filters.
781 782 783 |
# File 'q_business/cfn_data_accessor.rb', line 781 def not_filter @not_filter end |
#or_all_filters ⇒ AWSCDK::IResolvable, ... (readonly)
Performs a logical OR operation on all supplied filters.
786 787 788 |
# File 'q_business/cfn_data_accessor.rb', line 786 def or_all_filters @or_all_filters end |
Class Method Details
.jsii_properties ⇒ Object
788 789 790 791 792 793 794 795 796 797 798 799 800 801 |
# File 'q_business/cfn_data_accessor.rb', line 788 def self.jsii_properties { :and_all_filters => "andAllFilters", :contains_all => "containsAll", :contains_any => "containsAny", :equals_to => "equalsTo", :greater_than => "greaterThan", :greater_than_or_equals => "greaterThanOrEquals", :less_than => "lessThan", :less_than_or_equals => "lessThanOrEquals", :not_filter => "notFilter", :or_all_filters => "orAllFilters", } end |
Instance Method Details
#to_jsii ⇒ Object
803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 |
# File 'q_business/cfn_data_accessor.rb', line 803 def to_jsii result = {} result.merge!({ "andAllFilters" => @and_all_filters, "containsAll" => @contains_all, "containsAny" => @contains_any, "equalsTo" => @equals_to, "greaterThan" => @greater_than, "greaterThanOrEquals" => @greater_than_or_equals, "lessThan" => @less_than, "lessThanOrEquals" => @less_than_or_equals, "notFilter" => @not_filter, "orAllFilters" => @or_all_filters, }) result.compact end |