Class: AWSCDK::Bedrock::CfnDataSource::PatternObjectFilterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_data_source.rb

Overview

The specific filters applied to your data source content.

You can filter out or include certain content.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_type:, exclusion_filters: nil, inclusion_filters: nil) ⇒ PatternObjectFilterProperty

Returns a new instance of PatternObjectFilterProperty.

Parameters:

  • object_type (String)

    The supported object type or content type of the data source.

  • exclusion_filters (Array<String>, nil) (defaults to: nil)

    A list of one or more exclusion regular expression patterns to exclude certain object types that adhere to the pattern.

  • inclusion_filters (Array<String>, nil) (defaults to: nil)

    A list of one or more inclusion regular expression patterns to include certain object types that adhere to the pattern.



1771
1772
1773
1774
1775
1776
1777
1778
# File 'bedrock/cfn_data_source.rb', line 1771

def initialize(object_type:, exclusion_filters: nil, inclusion_filters: nil)
  @object_type = object_type
  Jsii::Type.check_type(@object_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "objectType")
  @exclusion_filters = exclusion_filters
  Jsii::Type.check_type(@exclusion_filters, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "exclusionFilters") unless @exclusion_filters.nil?
  @inclusion_filters = inclusion_filters
  Jsii::Type.check_type(@inclusion_filters, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "inclusionFilters") unless @inclusion_filters.nil?
end

Instance Attribute Details

#exclusion_filtersArray<String>? (readonly)

A list of one or more exclusion regular expression patterns to exclude certain object types that adhere to the pattern.

If you specify an inclusion and exclusion filter/pattern and both match a document, the exclusion filter takes precedence and the document isn’t crawled.



1791
1792
1793
# File 'bedrock/cfn_data_source.rb', line 1791

def exclusion_filters
  @exclusion_filters
end

#inclusion_filtersArray<String>? (readonly)

A list of one or more inclusion regular expression patterns to include certain object types that adhere to the pattern.

If you specify an inclusion and exclusion filter/pattern and both match a document, the exclusion filter takes precedence and the document isn’t crawled.



1798
1799
1800
# File 'bedrock/cfn_data_source.rb', line 1798

def inclusion_filters
  @inclusion_filters
end

#object_typeString (readonly)

The supported object type or content type of the data source.



1784
1785
1786
# File 'bedrock/cfn_data_source.rb', line 1784

def object_type
  @object_type
end

Class Method Details

.jsii_propertiesObject



1800
1801
1802
1803
1804
1805
1806
# File 'bedrock/cfn_data_source.rb', line 1800

def self.jsii_properties
  {
    :object_type => "objectType",
    :exclusion_filters => "exclusionFilters",
    :inclusion_filters => "inclusionFilters",
  }
end

Instance Method Details

#to_jsiiObject



1808
1809
1810
1811
1812
1813
1814
1815
1816
# File 'bedrock/cfn_data_source.rb', line 1808

def to_jsii
  result = {}
  result.merge!({
    "objectType" => @object_type,
    "exclusionFilters" => @exclusion_filters,
    "inclusionFilters" => @inclusion_filters,
  })
  result.compact
end