WebCrawlerConfigurationProperty Struct
The configuration of web URLs that you want to crawl.
You should be authorized to crawl the URLs.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const webCrawlerConfigurationProperty: bedrock.CfnDataSource.WebCrawlerConfigurationProperty = {
crawlerLimits: {
maxPages: 123,
rateLimit: 123,
},
exclusionFilters: ['exclusionFilters'],
inclusionFilters: ['inclusionFilters'],
scope: 'scope',
userAgent: 'userAgent',
userAgentHeader: 'userAgentHeader',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock
web_crawler_configuration_property = bedrock.CfnDataSource.WebCrawlerConfigurationProperty(
crawler_limits=bedrock.CfnDataSource.WebCrawlerLimitsProperty(
max_pages=123,
rate_limit=123
),
exclusion_filters=["exclusionFilters"],
inclusion_filters=["inclusionFilters"],
scope="scope",
user_agent="userAgent",
user_agent_header="userAgentHeader"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
WebCrawlerConfigurationProperty webCrawlerConfigurationProperty = WebCrawlerConfigurationProperty.builder()
.crawlerLimits(WebCrawlerLimitsProperty.builder()
.maxPages(123)
.rateLimit(123)
.build())
.exclusionFilters(List.of("exclusionFilters"))
.inclusionFilters(List.of("inclusionFilters"))
.scope("scope")
.userAgent("userAgent")
.userAgentHeader("userAgentHeader")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var webCrawlerConfigurationProperty = new WebCrawlerConfigurationProperty {
CrawlerLimits = new WebCrawlerLimitsProperty {
MaxPages = 123,
RateLimit = 123
},
ExclusionFilters = new [] { "exclusionFilters" },
InclusionFilters = new [] { "inclusionFilters" },
Scope = "scope",
UserAgent = "userAgent",
UserAgentHeader = "userAgentHeader"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
webCrawlerConfigurationProperty := &WebCrawlerConfigurationProperty{
CrawlerLimits: &WebCrawlerLimitsProperty{
MaxPages: jsii.Number(123),
RateLimit: jsii.Number(123),
},
ExclusionFilters: []*string{
jsii.String("exclusionFilters"),
},
InclusionFilters: []*string{
jsii.String("inclusionFilters"),
},
Scope: jsii.String("scope"),
UserAgent: jsii.String("userAgent"),
UserAgentHeader: jsii.String("userAgentHeader"),
}
Properties
crawlerLimitsoptionalIResolvable | CfnDataSource.crawler_limitsoptionaltyping.Union[IResolvable, WebCrawlerLimitsProperty]crawlerLimitsoptionalIResolvableCrawlerLimitsoptionalIResolvableCrawlerLimitsoptionalinterface{} #exclusionFiltersoptionalstring[]exclusion_filtersoptionaltyping.List[str]exclusionFiltersoptionalList<String>ExclusionFiltersoptionalstring[]ExclusionFiltersoptional*[]*string #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.
inclusionFiltersoptionalstring[]inclusion_filtersoptionaltyping.List[str]inclusionFiltersoptionalList<String>InclusionFiltersoptionalstring[]InclusionFiltersoptional*[]*string #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.
notes
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".
userAgentoptionalstringuser_agentoptionalstruserAgentoptionalStringUserAgentoptionalstringUserAgentoptional*string #userAgentHeaderoptionalstringuser_agent_headeroptionalstruserAgentHeaderoptionalStringUserAgentHeaderoptionalstringUserAgentHeaderoptional*string #notes
The user agent header value consists of the bedrockbot , UUID, and a user agent suffix for your crawler (if one is provided). By default, it is set to bedrockbot_UUID . You can optionally append a custom suffix to bedrockbot_UUID to allowlist a specific user agent permitted to access your source URLs.