Class: AWSCDK::Bedrock::CfnDataSource::CrawlFilterConfigurationProperty

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

Overview

The configuration of filtering the data source content.

For example, configuring regular expression patterns to include or exclude certain content.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, pattern_object_filter: nil) ⇒ CrawlFilterConfigurationProperty

Returns a new instance of CrawlFilterConfigurationProperty.

Parameters:



1076
1077
1078
1079
1080
1081
# File 'bedrock/cfn_data_source.rb', line 1076

def initialize(type:, pattern_object_filter: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @pattern_object_filter = pattern_object_filter.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataSource::PatternObjectFilterConfigurationProperty.new(**pattern_object_filter.transform_keys(&:to_sym)) : pattern_object_filter
  Jsii::Type.check_type(@pattern_object_filter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFTb3VyY2UuUGF0dGVybk9iamVjdEZpbHRlckNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "patternObjectFilter") unless @pattern_object_filter.nil?
end

Instance Attribute Details

#pattern_object_filterAWSCDK::IResolvable, ... (readonly)

The configuration of filtering certain objects or content types of the data source.



1094
1095
1096
# File 'bedrock/cfn_data_source.rb', line 1094

def pattern_object_filter
  @pattern_object_filter
end

#typeString (readonly)

The type of filtering that you want to apply to certain objects or content of the data source.

For example, the PATTERN type is regular expression patterns you can apply to filter your content.



1089
1090
1091
# File 'bedrock/cfn_data_source.rb', line 1089

def type
  @type
end

Class Method Details

.jsii_propertiesObject



1096
1097
1098
1099
1100
1101
# File 'bedrock/cfn_data_source.rb', line 1096

def self.jsii_properties
  {
    :type => "type",
    :pattern_object_filter => "patternObjectFilter",
  }
end

Instance Method Details

#to_jsiiObject



1103
1104
1105
1106
1107
1108
1109
1110
# File 'bedrock/cfn_data_source.rb', line 1103

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "patternObjectFilter" => @pattern_object_filter,
  })
  result.compact
end