Skip to content
v2.278.0

WebCrawlerConfigurationProperty Struct ​

The configuration of web URLs that you want to crawl.

You should be authorized to crawl the URLs.

Example ​

ts
// 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',
};
python
# 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"
)
java
// 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();
csharp
// 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"
};
go
// 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.WebCrawlerLimitsPropertycrawler_limitsoptionaltyping.Union[IResolvable, WebCrawlerLimitsProperty]crawlerLimitsoptionalIResolvableCrawlerLimitsoptionalIResolvableCrawlerLimitsoptionalinterface{} #
The configuration of crawl limits for the web URLs.
exclusionFiltersoptionalstring[]exclusion_filtersoptionaltyping.List[str]exclusionFiltersoptionalList<String>ExclusionFiltersoptionalstring[]ExclusionFiltersoptional*[]*string #
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.

inclusionFiltersoptionalstring[]inclusion_filtersoptionaltyping.List[str]inclusionFiltersoptionalList<String>InclusionFiltersoptionalstring[]InclusionFiltersoptional*[]*string #
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.

scopeoptionalstringscopeoptionalstrscopeoptionalStringScopeoptionalstringScopeoptional*string #
The scope of what is crawled for your URLs.
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 #
Returns the user agent suffix for your web crawler.
userAgentHeaderoptionalstringuser_agent_headeroptionalstruserAgentHeaderoptionalStringUserAgentHeaderoptionalstringUserAgentHeaderoptional*string #
A string used for identifying the crawler or bot when it accesses a web server.
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.