Class CfnDataSource.WebCrawlerConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnDataSource.WebCrawlerConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.WebCrawlerConfigurationProperty>
- Enclosing interface:
CfnDataSource.WebCrawlerConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.WebCrawlerConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.WebCrawlerConfigurationProperty>
A builder for
CfnDataSource.WebCrawlerConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.crawlerLimits
(IResolvable crawlerLimits) Sets the value ofCfnDataSource.WebCrawlerConfigurationProperty.getCrawlerLimits()
crawlerLimits
(CfnDataSource.WebCrawlerLimitsProperty crawlerLimits) Sets the value ofCfnDataSource.WebCrawlerConfigurationProperty.getCrawlerLimits()
exclusionFilters
(List<String> exclusionFilters) Sets the value ofCfnDataSource.WebCrawlerConfigurationProperty.getExclusionFilters()
inclusionFilters
(List<String> inclusionFilters) Sets the value ofCfnDataSource.WebCrawlerConfigurationProperty.getInclusionFilters()
Sets the value ofCfnDataSource.WebCrawlerConfigurationProperty.getScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
crawlerLimits
@Stability(Stable) public CfnDataSource.WebCrawlerConfigurationProperty.Builder crawlerLimits(IResolvable crawlerLimits) Sets the value ofCfnDataSource.WebCrawlerConfigurationProperty.getCrawlerLimits()
- Parameters:
crawlerLimits
- The configuration of crawl limits for the web URLs.- Returns:
this
-
crawlerLimits
@Stability(Stable) public CfnDataSource.WebCrawlerConfigurationProperty.Builder crawlerLimits(CfnDataSource.WebCrawlerLimitsProperty crawlerLimits) Sets the value ofCfnDataSource.WebCrawlerConfigurationProperty.getCrawlerLimits()
- Parameters:
crawlerLimits
- The configuration of crawl limits for the web URLs.- Returns:
this
-
exclusionFilters
@Stability(Stable) public CfnDataSource.WebCrawlerConfigurationProperty.Builder exclusionFilters(List<String> exclusionFilters) Sets the value ofCfnDataSource.WebCrawlerConfigurationProperty.getExclusionFilters()
- Parameters:
exclusionFilters
- A list of one or more exclusion regular expression patterns to exclude certain URLs. If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion filter takes precedence and the web content of the URL isn’t crawled.- Returns:
this
-
inclusionFilters
@Stability(Stable) public CfnDataSource.WebCrawlerConfigurationProperty.Builder inclusionFilters(List<String> inclusionFilters) Sets the value ofCfnDataSource.WebCrawlerConfigurationProperty.getInclusionFilters()
- Parameters:
inclusionFilters
- A list of one or more inclusion regular expression patterns to include certain URLs. If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion filter takes precedence and the web content of the URL isn’t crawled.- Returns:
this
-
scope
Sets the value ofCfnDataSource.WebCrawlerConfigurationProperty.getScope()
- Parameters:
scope
- The scope of what is crawled for your URLs. You can choose to crawl only web pages that belong to the same host or primary domain. For example, only web pages that contain the seed URL "https://docs.aws.amazon.com/bedrock/latest/userguide/" and no other domains. You can choose to include sub domains in addition to the host or primary domain. For example, web pages that contain "aws.amazon.com" can also include sub domain "docs.aws.amazon.com".- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.WebCrawlerConfigurationProperty>
- Returns:
- a new instance of
CfnDataSource.WebCrawlerConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-