Class: AWSCDK::Bedrock::CfnDataSource::PatternObjectFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnDataSource::PatternObjectFilterProperty
- 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
-
#exclusion_filters ⇒ Array<String>?
readonly
A list of one or more exclusion regular expression patterns to exclude certain object types that adhere to the pattern.
-
#inclusion_filters ⇒ Array<String>?
readonly
A list of one or more inclusion regular expression patterns to include certain object types that adhere to the pattern.
-
#object_type ⇒ String
readonly
The supported object type or content type of the data source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(object_type:, exclusion_filters: nil, inclusion_filters: nil) ⇒ PatternObjectFilterProperty
constructor
A new instance of PatternObjectFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(object_type:, exclusion_filters: nil, inclusion_filters: nil) ⇒ PatternObjectFilterProperty
Returns a new instance of PatternObjectFilterProperty.
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_filters ⇒ Array<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_filters ⇒ Array<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_type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |