Class CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty>
- Enclosing interface:
CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty
@Stability(Stable)
public static final class CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty>
A builder for
CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.crawlerLimits(CfnDataSourcePropsMixin.WebCrawlerLimitsProperty crawlerLimits) crawlerLimits(IResolvable crawlerLimits) exclusionFilters(List<String> exclusionFilters) inclusionFilters(List<String> inclusionFilters) Sets the value ofCfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.getScope()Sets the value ofCfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.getUserAgent()userAgentHeader(String userAgentHeader)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
crawlerLimits
@Stability(Stable) public CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.Builder crawlerLimits(IResolvable crawlerLimits) - Parameters:
crawlerLimits- The configuration of crawl limits for the web URLs.- Returns:
this
-
crawlerLimits
@Stability(Stable) public CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.Builder crawlerLimits(CfnDataSourcePropsMixin.WebCrawlerLimitsProperty crawlerLimits) - Parameters:
crawlerLimits- The configuration of crawl limits for the web URLs.- Returns:
this
-
exclusionFilters
@Stability(Stable) public CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.Builder exclusionFilters(List<String> exclusionFilters) - 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 CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.Builder inclusionFilters(List<String> inclusionFilters) - 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
@Stability(Stable) public CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.Builder scope(String scope) Sets the value ofCfnDataSourcePropsMixin.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
-
userAgent
@Stability(Stable) public CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.Builder userAgent(String userAgent) Sets the value ofCfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.getUserAgent()- Parameters:
userAgent- Returns the user agent suffix for your web crawler.- Returns:
this
-
userAgentHeader
@Stability(Stable) public CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty.Builder userAgentHeader(String userAgentHeader) - Parameters:
userAgentHeader- A string used for identifying the crawler or bot when it accesses a web server. The user agent header value consists of thebedrockbot, UUID, and a user agent suffix for your crawler (if one is provided). By default, it is set tobedrockbot_UUID. You can optionally append a custom suffix tobedrockbot_UUIDto allowlist a specific user agent permitted to access your source URLs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty>- Returns:
- a new instance of
CfnDataSourcePropsMixin.WebCrawlerConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-